3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --enable-dll build the Wine library as a DLL"
20 --without-reentrant-x Compile for use with non-reentrant X libraries"
22 --with-x use the X Window System"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file
=.
/config.cache
37 program_transform_name
=s
,x
,x
,
45 bindir
='${exec_prefix}/bin'
46 sbindir
='${exec_prefix}/sbin'
47 libexecdir
='${exec_prefix}/libexec'
48 datadir
='${prefix}/share'
49 sysconfdir
='${prefix}/etc'
50 sharedstatedir
='${prefix}/com'
51 localstatedir
='${prefix}/var'
52 libdir
='${exec_prefix}/lib'
53 includedir
='${prefix}/include'
54 oldincludedir
='/usr/include'
55 infodir
='${prefix}/info'
56 mandir
='${prefix}/man'
58 # Initialize some other variables.
61 # Maximum number of lines to put in a shell here document.
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
76 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80 # Accept the important Cygnus configure options, so we can diagnose typos.
84 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
86 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
87 bindir
="$ac_optarg" ;;
89 -build |
--build |
--buil |
--bui |
--bu)
91 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
94 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
95 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
97 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
98 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
99 cache_file
="$ac_optarg" ;;
101 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
103 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
105 datadir
="$ac_optarg" ;;
107 -disable-* |
--disable-*)
108 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* |
--enable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
130 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
131 |
--exec |
--exe |
--ex)
132 ac_prev
=exec_prefix
;;
133 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
134 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
135 |
--exec=* |
--exe=* |
--ex=*)
136 exec_prefix
="$ac_optarg" ;;
138 -gas |
--gas |
--ga |
--g)
139 # Obsolete; use --with-gas.
142 -help |
--help |
--hel |
--he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
197 -host |
--host |
--hos |
--ho)
199 -host=* |
--host=* |
--hos=* |
--ho=*)
202 -includedir |
--includedir |
--includedi |
--included |
--include \
203 |
--includ |
--inclu |
--incl |
--inc)
204 ac_prev
=includedir
;;
205 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
206 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
207 includedir
="$ac_optarg" ;;
209 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
211 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
212 infodir
="$ac_optarg" ;;
214 -libdir |
--libdir |
--libdi |
--libd)
216 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
217 libdir
="$ac_optarg" ;;
219 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
220 |
--libexe |
--libex |
--libe)
221 ac_prev
=libexecdir
;;
222 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
223 |
--libexe=* |
--libex=* |
--libe=*)
224 libexecdir
="$ac_optarg" ;;
226 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
227 |
--localstate |
--localstat |
--localsta |
--localst \
228 |
--locals |
--local |
--loca |
--loc |
--lo)
229 ac_prev
=localstatedir
;;
230 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
231 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
232 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
233 localstatedir
="$ac_optarg" ;;
235 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
237 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
238 mandir
="$ac_optarg" ;;
241 # Obsolete; use --without-fp.
244 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
248 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
249 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
252 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
253 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
254 |
--oldin |
--oldi |
--old |
--ol |
--o)
255 ac_prev
=oldincludedir
;;
256 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
257 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
258 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
259 oldincludedir
="$ac_optarg" ;;
261 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
263 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
264 prefix
="$ac_optarg" ;;
266 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
267 |
--program-pre |
--program-pr |
--program-p)
268 ac_prev
=program_prefix
;;
269 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
270 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
271 program_prefix
="$ac_optarg" ;;
273 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
274 |
--program-suf |
--program-su |
--program-s)
275 ac_prev
=program_suffix
;;
276 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
277 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
278 program_suffix
="$ac_optarg" ;;
280 -program-transform-name |
--program-transform-name \
281 |
--program-transform-nam |
--program-transform-na \
282 |
--program-transform-n |
--program-transform- \
283 |
--program-transform |
--program-transfor \
284 |
--program-transfo |
--program-transf \
285 |
--program-trans |
--program-tran \
286 |
--progr-tra |
--program-tr |
--program-t)
287 ac_prev
=program_transform_name
;;
288 -program-transform-name=* |
--program-transform-name=* \
289 |
--program-transform-nam=* |
--program-transform-na=* \
290 |
--program-transform-n=* |
--program-transform-=* \
291 |
--program-transform=* |
--program-transfor=* \
292 |
--program-transfo=* |
--program-transf=* \
293 |
--program-trans=* |
--program-tran=* \
294 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
295 program_transform_name
="$ac_optarg" ;;
297 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
298 |
-silent |
--silent |
--silen |
--sile |
--sil)
301 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
303 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
305 sbindir
="$ac_optarg" ;;
307 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
308 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
309 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
311 ac_prev
=sharedstatedir
;;
312 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
313 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
314 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
316 sharedstatedir
="$ac_optarg" ;;
318 -site |
--site |
--sit)
320 -site=* |
--site=* |
--sit=*)
323 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
325 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
326 srcdir
="$ac_optarg" ;;
328 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
329 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
330 ac_prev
=sysconfdir
;;
331 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
332 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
333 sysconfdir
="$ac_optarg" ;;
335 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
337 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
338 target
="$ac_optarg" ;;
340 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
343 -version |
--version |
--versio |
--versi |
--vers)
344 echo "configure generated by autoconf version 2.12"
348 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package
=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* |
--without-*)
361 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
370 # Obsolete; use --with-x.
373 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
374 |
--x-incl |
--x-inc |
--x-in |
--x-i)
375 ac_prev
=x_includes
;;
376 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
377 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
378 x_includes
="$ac_optarg" ;;
380 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
381 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
382 ac_prev
=x_libraries
;;
383 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
384 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
385 x_libraries
="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE
; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
435 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
436 |
--no-cr |
--no-c) ;;
437 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
438 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
439 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest
* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file
=controls
/edit.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted
=yes
467 # Try the directory containing this script, then its parent.
469 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
472 if test ! -r $srcdir/$ac_unique_file; then
476 ac_srcdir_defaulted
=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE
; then
490 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
492 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file
in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
506 echo "creating cache $cache_file"
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp
='$CPP $CPPFLAGS'
513 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling
=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
526 ac_n
= ac_c
='\c' ac_t
=
532 for ac_dir
in tools
$srcdir/tools
; do
533 if test -f $ac_dir/install-sh
; then
535 ac_install_sh
="$ac_aux_dir/install-sh -c"
537 elif test -f $ac_dir/install.sh
; then
539 ac_install_sh
="$ac_aux_dir/install.sh -c"
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
546 ac_config_guess
=$ac_aux_dir/config.guess
547 ac_config_sub
=$ac_aux_dir/config.sub
548 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
551 # We want these before the checks, so the checks can modify their values.
553 test -z "$PROGEXT" && PROGEXT
=""
559 # Check whether --enable-emulator or --disable-emulator was given.
560 if test "${enable_emulator+set}" = set; then
561 enableval
="$enable_emulator"
562 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
566 # Check whether --enable-dll or --disable-dll was given.
567 if test "${enable_dll+set}" = set; then
568 enableval
="$enable_dll"
569 if test "$enableval" = "no"; then : ; else LIB_TARGET
="libwine.so.1.0"; fi
574 # Check whether --with-reentrant-x or --without-reentrant-x was given.
575 if test "${with_reentrant_x+set}" = set; then
576 withval
="$with_reentrant_x"
586 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
587 echo "configure:588: checking whether ${MAKE-make} sets \${MAKE}" >&5
588 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
589 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 cat > conftestmake
<<\EOF
594 @
echo 'ac_maketemp="${MAKE}"'
596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
597 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
598 if test -n "$ac_maketemp"; then
599 eval ac_cv_prog_make_
${ac_make}_set
=yes
601 eval ac_cv_prog_make_
${ac_make}_set
=no
605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
606 echo "$ac_t""yes" 1>&6
609 echo "$ac_t""no" 1>&6
610 SET_MAKE
="MAKE=${MAKE-make}"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc
; ac_word
=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC
="$CC" # Let the user override the test.
623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
624 for ac_dir
in $PATH; do
625 test -z "$ac_dir" && ac_dir
=.
626 if test -f $ac_dir/$ac_word; then
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
638 echo "$ac_t""no" 1>&6
641 if test -z "$CC"; then
642 # Extract the first word of "cc", so it can be a program name with args.
643 set dummy cc
; ac_word
=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC
="$CC" # Let the user override the test.
652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
654 for ac_dir
in $PATH; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp
='$CPP $CPPFLAGS'
698 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling
=$ac_cv_prog_cc_cross
702 cat > conftest.
$ac_ext <<EOF
703 #line 704 "configure"
704 #include "confdefs.h"
707 if { (eval echo configure
:708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
708 ac_cv_prog_cc_works
=yes
709 # If we can't run a trivial program, we are probably using a cross compiler.
710 if (.
/conftest
; exit) 2>/dev
/null
; then
711 ac_cv_prog_cc_cross
=no
713 ac_cv_prog_cc_cross
=yes
716 echo "configure: failed program was:" >&5
717 cat conftest.
$ac_ext >&5
718 ac_cv_prog_cc_works
=no
722 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
723 if test $ac_cv_prog_cc_works = no
; then
724 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
728 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
729 cross_compiling
=$ac_cv_prog_cc_cross
731 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
732 echo "configure:733: checking whether we are using GNU C" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftest.c
<<EOF
741 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
748 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
750 if test $ac_cv_prog_gcc = yes; then
752 ac_test_CFLAGS
="${CFLAGS+set}"
753 ac_save_CFLAGS
="$CFLAGS"
755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 echo 'void f(){}' > conftest.c
761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
771 if test "$ac_test_CFLAGS" = set; then
772 CFLAGS
="$ac_save_CFLAGS"
773 elif test $ac_cv_prog_cc_g = yes; then
780 test "${CFLAGS+set}" = set || CFLAGS
="-g"
783 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
784 echo "configure:785: checking how to run the C preprocessor" >&5
785 # On Suns, sometimes $CPP names a directory.
786 if test -n "$CPP" && test -d "$CPP"; then
789 if test -z "$CPP"; then
790 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 # This must be in double quotes, not single quotes, because CPP may get
794 # substituted into the Makefile and "${CC-cc}" will confuse make.
796 # On the NeXT, cc -E runs the code through the compiler's parser,
797 # not just through cpp.
798 cat > conftest.
$ac_ext <<EOF
799 #line 800 "configure"
800 #include "confdefs.h"
804 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
805 { (eval echo configure
:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
806 ac_err
=`grep -v '^ *+' conftest.out`
807 if test -z "$ac_err"; then
811 echo "configure: failed program was:" >&5
812 cat conftest.
$ac_ext >&5
814 CPP
="${CC-cc} -E -traditional-cpp"
815 cat > conftest.
$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822 { (eval echo configure
:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823 ac_err
=`grep -v '^ *+' conftest.out`
824 if test -z "$ac_err"; then
828 echo "configure: failed program was:" >&5
829 cat conftest.
$ac_ext >&5
836 ac_cv_prog_CPP
="$CPP"
838 CPP
="$ac_cv_prog_CPP"
840 ac_cv_prog_CPP
="$CPP"
842 echo "$ac_t""$CPP" 1>&6
844 # If we find X, set shell vars x_includes and x_libraries to the
845 # paths, otherwise set no_x=yes.
846 # Uses ac_ vars as temps to allow command line to override cache and checks.
847 # --without-x overrides everything else, but does not touch the cache.
848 echo $ac_n "checking for X""... $ac_c" 1>&6
849 echo "configure:850: checking for X" >&5
851 # Check whether --with-x or --without-x was given.
852 if test "${with_x+set}" = set; then
857 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
858 if test "x$with_x" = xno
; then
859 # The user explicitly disabled X.
862 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
863 # Both variables are already set.
866 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 # One or both of the vars are not set, and there is no cached value.
870 ac_x_includes
=NO ac_x_libraries
=NO
872 if mkdir conftestdir
; then
874 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
875 cat > Imakefile
<<'EOF'
877 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
879 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
881 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
883 for ac_extension
in a so sl
; do
884 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
885 test -f $ac_im_libdir/libX11.
$ac_extension; then
886 ac_im_usrlibdir
=$ac_im_libdir; break
889 # Screen out bogus values from the imake configuration. They are
890 # bogus both because they are the default anyway, and because
891 # using them would break gcc on systems where it needs fixed includes.
892 case "$ac_im_incroot" in
894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
896 case "$ac_im_usrlibdir" in
898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
905 if test "$ac_x_includes" = NO
; then
906 # Guess where to find include files, by looking for this one X11 .h file.
907 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
909 # First, try using that file with no special directory specified.
910 cat > conftest.
$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 #include <$x_direct_test_include>
915 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure
:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err
=`grep -v '^ *+' conftest.out`
918 if test -z "$ac_err"; then
920 # We can compile using X headers with no special include directory.
924 echo "configure: failed program was:" >&5
925 cat conftest.
$ac_ext >&5
927 # Look for the header file in a standard set of common directories.
928 # Check X11 before X11Rn because it is often a symlink to the current release.
940 /usr
/local
/X11
/include \
941 /usr
/local
/X11R
6/include \
942 /usr
/local
/X11R
5/include \
943 /usr
/local
/X11R
4/include \
945 /usr
/local
/include
/X11 \
946 /usr
/local
/include
/X11R6 \
947 /usr
/local
/include
/X11R5 \
948 /usr
/local
/include
/X11R4 \
952 /usr
/XFree86
/include
/X11 \
956 /usr
/unsupported
/include \
957 /usr
/athena
/include \
958 /usr
/local
/x11r
5/include \
959 /usr
/lpp
/Xamples
/include \
961 /usr
/openwin
/include \
962 /usr
/openwin
/share
/include \
965 if test -r "$ac_dir/$x_direct_test_include"; then
966 ac_x_includes
=$ac_dir
972 fi # $ac_x_includes = NO
974 if test "$ac_x_libraries" = NO
; then
975 # Check for the libraries.
977 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
978 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
980 # See if we find them without any special options.
981 # Don't add to $LIBS permanently.
983 LIBS
="-l$x_direct_test_library $LIBS"
984 cat > conftest.
$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
989 ${x_direct_test_function}()
992 if { (eval echo configure
:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
995 # We can link X programs with no special library path.
998 echo "configure: failed program was:" >&5
999 cat conftest.
$ac_ext >&5
1001 LIBS
="$ac_save_LIBS"
1002 # First see if replacing the include by lib works.
1003 # Check X11 before X11Rn because it is often a symlink to the current release.
1004 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1015 /usr
/local
/X11
/lib \
1016 /usr
/local
/X11R
6/lib \
1017 /usr
/local
/X11R
5/lib \
1018 /usr
/local
/X11R
4/lib \
1020 /usr
/local
/lib
/X11 \
1021 /usr
/local
/lib
/X11R6 \
1022 /usr
/local
/lib
/X11R5 \
1023 /usr
/local
/lib
/X11R4 \
1027 /usr
/XFree86
/lib
/X11 \
1031 /usr
/unsupported
/lib \
1033 /usr
/local
/x11r
5/lib \
1034 /usr
/lpp
/Xamples
/lib \
1038 /usr
/openwin
/share
/lib \
1041 for ac_extension
in a so sl
; do
1042 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1043 ac_x_libraries
=$ac_dir
1050 fi # $ac_x_libraries = NO
1052 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1053 # Didn't find X anywhere. Cache the known absence of X.
1054 ac_cv_have_x
="have_x=no"
1056 # Record where we found X for the cache.
1057 ac_cv_have_x
="have_x=yes \
1058 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1062 eval "$ac_cv_have_x"
1065 if test "$have_x" != yes; then
1066 echo "$ac_t""$have_x" 1>&6
1069 # If each of the values was on the command line, it overrides each guess.
1070 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1071 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1072 # Update the cache value to reflect the command line values.
1073 ac_cv_have_x
="have_x=yes \
1074 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1075 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1078 if test "$no_x" = yes; then
1079 # Not all programs may use this symbol, but it does not hurt to define it.
1080 cat >> confdefs.h
<<\EOF
1081 #define X_DISPLAY_MISSING 1
1084 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1086 if test -n "$x_includes"; then
1087 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1090 # It would also be nice to do this for all -L options, not just this one.
1091 if test -n "$x_libraries"; then
1092 X_LIBS
="$X_LIBS -L$x_libraries"
1093 # For Solaris; some versions of Sun CC require a space after -R and
1094 # others require no space. Words are not sufficient . . . .
1095 case "`(uname -sr) 2>/dev/null`" in
1097 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether -R must be followed by a space" >&5
1099 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1108 if { (eval echo configure
:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1112 echo "configure: failed program was:" >&5
1113 cat conftest.
$ac_ext >&5
1118 if test $ac_R_nospace = yes; then
1119 echo "$ac_t""no" 1>&6
1120 X_LIBS
="$X_LIBS -R$x_libraries"
1122 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1123 cat > conftest.
$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1131 if { (eval echo configure
:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1135 echo "configure: failed program was:" >&5
1136 cat conftest.
$ac_ext >&5
1141 if test $ac_R_space = yes; then
1142 echo "$ac_t""yes" 1>&6
1143 X_LIBS
="$X_LIBS -R $x_libraries"
1145 echo "$ac_t""neither works" 1>&6
1148 LIBS
="$ac_xsave_LIBS"
1152 # Check for system-dependent libraries X programs must link with.
1153 # Do this before checking for the system-independent R6 libraries
1154 # (-lICE), since we may need -lsocket or whatever for X linking.
1156 if test "$ISC" = yes; then
1157 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1159 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1160 # libraries were built with DECnet support. And karl@cs.umb.edu says
1161 # the Alpha needs dnet_stub (dnet does not exist).
1162 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1163 echo "configure:1164: checking for dnet_ntoa in -ldnet" >&5
1164 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 ac_save_LIBS
="$LIBS"
1170 cat > conftest.
$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 /* Override any gcc2 internal prototype to avoid an error. */
1174 /* We use char because int might match the return type of a gcc2
1175 builtin and then its argument prototype would still apply. */
1182 if { (eval echo configure
:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1184 eval "ac_cv_lib_$ac_lib_var=yes"
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1189 eval "ac_cv_lib_$ac_lib_var=no"
1192 LIBS
="$ac_save_LIBS"
1195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1197 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1199 echo "$ac_t""no" 1>&6
1202 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1203 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1204 echo "configure:1205: checking for dnet_ntoa in -ldnet_stub" >&5
1205 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 ac_save_LIBS
="$LIBS"
1210 LIBS
="-ldnet_stub $LIBS"
1211 cat > conftest.
$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1223 if { (eval echo configure
:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1225 eval "ac_cv_lib_$ac_lib_var=yes"
1227 echo "configure: failed program was:" >&5
1228 cat conftest.
$ac_ext >&5
1230 eval "ac_cv_lib_$ac_lib_var=no"
1233 LIBS
="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1240 echo "$ac_t""no" 1>&6
1245 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1246 # to get the SysV transport functions.
1247 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1249 # The nsl library prevents programs from opening the X display
1250 # on Irix 5.2, according to dickey@clark.net.
1251 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1252 echo "configure:1253: checking for gethostbyname" >&5
1253 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259 /* System header to define __stub macros and hopefully few prototypes,
1260 which can conflict with char gethostbyname(); below. */
1262 /* Override any gcc2 internal prototype to avoid an error. */
1263 /* We use char because int might match the return type of a gcc2
1264 builtin and then its argument prototype would still apply. */
1265 char gethostbyname();
1269 /* The GNU C library defines this for functions which it implements
1270 to always fail with ENOSYS. Some functions are actually named
1271 something starting with __ and the normal name is an alias. */
1272 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1280 if { (eval echo configure
:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1282 eval "ac_cv_func_gethostbyname=yes"
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1287 eval "ac_cv_func_gethostbyname=no"
1292 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1293 echo "$ac_t""yes" 1>&6
1296 echo "$ac_t""no" 1>&6
1299 if test $ac_cv_func_gethostbyname = no
; then
1300 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gethostbyname in -lnsl" >&5
1302 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 ac_save_LIBS
="$LIBS"
1308 cat > conftest.
$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314 char gethostbyname();
1320 if { (eval echo configure
:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 eval "ac_cv_lib_$ac_lib_var=no"
1330 LIBS
="$ac_save_LIBS"
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1337 echo "$ac_t""no" 1>&6
1342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1343 # socket/setsockopt and other routines are undefined under SCO ODT
1344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1345 # on later versions), says simon@lia.di.epfl.ch: it contains
1346 # gethostby* variants that don't use the nameserver (or something).
1347 # -lsocket must be given before -lnsl if both are needed.
1348 # We assume that if connect needs -lnsl, so does gethostbyname.
1349 echo $ac_n "checking for connect""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.
$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char connect(); below. */
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_connect) || defined (__stub___connect)
1378 if { (eval echo configure
:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1380 eval "ac_cv_func_connect=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 eval "ac_cv_func_connect=no"
1390 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_connect = no
; then
1398 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1399 echo "configure:1400: checking for connect in -lsocket" >&5
1400 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 ac_save_LIBS
="$LIBS"
1405 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1406 cat > conftest.
$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1418 if { (eval echo configure
:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1422 echo "configure: failed program was:" >&5
1423 cat conftest.
$ac_ext >&5
1425 eval "ac_cv_lib_$ac_lib_var=no"
1428 LIBS
="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1435 echo "$ac_t""no" 1>&6
1440 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1441 echo $ac_n "checking for remove""... $ac_c" 1>&6
1442 echo "configure:1443: checking for remove" >&5
1443 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.
$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 /* System header to define __stub macros and hopefully few prototypes,
1450 which can conflict with char remove(); below. */
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1459 /* The GNU C library defines this for functions which it implements
1460 to always fail with ENOSYS. Some functions are actually named
1461 something starting with __ and the normal name is an alias. */
1462 #if defined (__stub_remove) || defined (__stub___remove)
1470 if { (eval echo configure
:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1472 eval "ac_cv_func_remove=yes"
1474 echo "configure: failed program was:" >&5
1475 cat conftest.
$ac_ext >&5
1477 eval "ac_cv_func_remove=no"
1482 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1486 echo "$ac_t""no" 1>&6
1489 if test $ac_cv_func_remove = no
; then
1490 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1491 echo "configure:1492: checking for remove in -lposix" >&5
1492 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 ac_save_LIBS
="$LIBS"
1497 LIBS
="-lposix $LIBS"
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 /* Override any gcc2 internal prototype to avoid an error. */
1502 /* We use char because int might match the return type of a gcc2
1503 builtin and then its argument prototype would still apply. */
1510 if { (eval echo configure
:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1512 eval "ac_cv_lib_$ac_lib_var=yes"
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1517 eval "ac_cv_lib_$ac_lib_var=no"
1520 LIBS
="$ac_save_LIBS"
1523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1524 echo "$ac_t""yes" 1>&6
1525 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1527 echo "$ac_t""no" 1>&6
1532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1533 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1534 echo "configure:1535: checking for shmat" >&5
1535 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* System header to define __stub macros and hopefully few prototypes,
1542 which can conflict with char shmat(); below. */
1544 /* Override any gcc2 internal prototype to avoid an error. */
1545 /* We use char because int might match the return type of a gcc2
1546 builtin and then its argument prototype would still apply. */
1551 /* The GNU C library defines this for functions which it implements
1552 to always fail with ENOSYS. Some functions are actually named
1553 something starting with __ and the normal name is an alias. */
1554 #if defined (__stub_shmat) || defined (__stub___shmat)
1562 if { (eval echo configure
:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1564 eval "ac_cv_func_shmat=yes"
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 eval "ac_cv_func_shmat=no"
1574 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1578 echo "$ac_t""no" 1>&6
1581 if test $ac_cv_func_shmat = no
; then
1582 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1583 echo "configure:1584: checking for shmat in -lipc" >&5
1584 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 ac_save_LIBS
="$LIBS"
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* Override any gcc2 internal prototype to avoid an error. */
1594 /* We use char because int might match the return type of a gcc2
1595 builtin and then its argument prototype would still apply. */
1602 if { (eval echo configure
:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1604 eval "ac_cv_lib_$ac_lib_var=yes"
1606 echo "configure: failed program was:" >&5
1607 cat conftest.
$ac_ext >&5
1609 eval "ac_cv_lib_$ac_lib_var=no"
1612 LIBS
="$ac_save_LIBS"
1615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1619 echo "$ac_t""no" 1>&6
1625 # Check for libraries that X11R6 Xt/Xaw programs need.
1626 ac_save_LDFLAGS
="$LDFLAGS"
1627 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1628 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1629 # check for ICE first), but we must link in the order -lSM -lICE or
1630 # we get undefined symbols. So assume we have SM if we have ICE.
1631 # These have to be linked with before -lX11, unlike the other
1632 # libraries we check for below, so use a different variable.
1633 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1634 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1635 echo "configure:1636: checking for IceConnectionNumber in -lICE" >&5
1636 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 ac_save_LIBS
="$LIBS"
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* Override any gcc2 internal prototype to avoid an error. */
1646 /* We use char because int might match the return type of a gcc2
1647 builtin and then its argument prototype would still apply. */
1648 char IceConnectionNumber();
1651 IceConnectionNumber()
1654 if { (eval echo configure
:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1656 eval "ac_cv_lib_$ac_lib_var=yes"
1658 echo "configure: failed program was:" >&5
1659 cat conftest.
$ac_ext >&5
1661 eval "ac_cv_lib_$ac_lib_var=no"
1664 LIBS
="$ac_save_LIBS"
1667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1671 echo "$ac_t""no" 1>&6
1674 LDFLAGS
="$ac_save_LDFLAGS"
1678 for ac_prog
in 'bison -y' byacc
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy
$ac_prog; ac_word
=$2
1682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_word" >&5
1684 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 if test -n "$YACC"; then
1688 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1691 for ac_dir
in $PATH; do
1692 test -z "$ac_dir" && ac_dir
=.
1693 if test -f $ac_dir/$ac_word; then
1694 ac_cv_prog_YACC
="$ac_prog"
1701 YACC
="$ac_cv_prog_YACC"
1702 if test -n "$YACC"; then
1703 echo "$ac_t""$YACC" 1>&6
1705 echo "$ac_t""no" 1>&6
1708 test -n "$YACC" && break
1710 test -n "$YACC" || YACC
="yacc"
1712 # Extract the first word of "flex", so it can be a program name with args.
1713 set dummy flex
; ac_word
=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 if test -n "$LEX"; then
1720 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1722 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1723 for ac_dir
in $PATH; do
1724 test -z "$ac_dir" && ac_dir
=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_LEX
="flex"
1731 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1734 LEX
="$ac_cv_prog_LEX"
1735 if test -n "$LEX"; then
1736 echo "$ac_t""$LEX" 1>&6
1738 echo "$ac_t""no" 1>&6
1741 if test -z "$LEXLIB"
1747 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1748 echo "configure:1749: checking for yywrap in -l$ac_lib" >&5
1749 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS
="$LIBS"
1754 LIBS
="-l$ac_lib $LIBS"
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure
:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS
="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1784 echo "$ac_t""no" 1>&6
1789 # Extract the first word of "ranlib", so it can be a program name with args.
1790 set dummy ranlib
; ac_word
=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1793 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 if test -n "$RANLIB"; then
1797 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1800 for ac_dir
in $PATH; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB
="ranlib"
1808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1811 RANLIB
="$ac_cv_prog_RANLIB"
1812 if test -n "$RANLIB"; then
1813 echo "$ac_t""$RANLIB" 1>&6
1815 echo "$ac_t""no" 1>&6
1818 # Find a good install program. We prefer a C program (faster),
1819 # so one script is as good as another. But avoid the broken or
1820 # incompatible versions:
1821 # SysV /etc/install, /usr/sbin/install
1822 # SunOS /usr/etc/install
1823 # IRIX /sbin/install
1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1827 # ./install, which can be erroneously created by make from ./install.sh.
1828 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1829 echo "configure:1830: checking for a BSD compatible install" >&5
1830 if test -z "$INSTALL"; then
1831 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1835 for ac_dir
in $PATH; do
1836 # Account for people who put trailing slashes in PATH elements.
1838 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1840 # OSF1 and SCO ODT 3.0 have their own names for install.
1841 for ac_prog
in ginstall installbsd scoinst
install; do
1842 if test -f $ac_dir/$ac_prog; then
1843 if test $ac_prog = install &&
1844 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1845 # AIX install. It has an incompatible calling convention.
1846 # OSF/1 installbsd also uses dspmsg, but is usable.
1849 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1860 if test "${ac_cv_path_install+set}" = set; then
1861 INSTALL
="$ac_cv_path_install"
1863 # As a last resort, use the slow shell script. We don't cache a
1864 # path for INSTALL within a source directory, because that will
1865 # break other packages using the cache if that directory is
1866 # removed, or if the path is relative.
1867 INSTALL
="$ac_install_sh"
1870 echo "$ac_t""$INSTALL" 1>&6
1872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1873 # It thinks the first close brace ends the variable substitution.
1874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1876 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ln -s works" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1884 if ln -s X conftestdata
2>/dev
/null
1887 ac_cv_prog_LN_S
="ln -s"
1892 LN_S
="$ac_cv_prog_LN_S"
1893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1894 echo "$ac_t""yes" 1>&6
1896 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1902 echo "configure:1903: checking for i386_set_ldt in -li386" >&5
1903 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 ac_save_LIBS
="$LIBS"
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 /* Override any gcc2 internal prototype to avoid an error. */
1913 /* We use char because int might match the return type of a gcc2
1914 builtin and then its argument prototype would still apply. */
1915 char i386_set_ldt();
1921 if { (eval echo configure
:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1923 eval "ac_cv_lib_$ac_lib_var=yes"
1925 echo "configure: failed program was:" >&5
1926 cat conftest.
$ac_ext >&5
1928 eval "ac_cv_lib_$ac_lib_var=no"
1931 LIBS
="$ac_save_LIBS"
1934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1938 cat >> confdefs.h
<<EOF
1939 #define $ac_tr_lib 1
1945 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
1949 echo "configure:1950: checking for iswalnum in -lw" >&5
1950 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 ac_save_LIBS
="$LIBS"
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1968 if { (eval echo configure
:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.
$ac_ext >&5
1975 eval "ac_cv_lib_$ac_lib_var=no"
1978 LIBS
="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h
<<EOF
1986 #define $ac_tr_lib 1
1992 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1996 echo "configure:1997: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1997 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 ac_save_LIBS
="$LIBS"
2002 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* Override any gcc2 internal prototype to avoid an error. */
2007 /* We use char because int might match the return type of a gcc2
2008 builtin and then its argument prototype would still apply. */
2009 char XF86DGAQueryExtension();
2012 XF86DGAQueryExtension()
2015 if { (eval echo configure
:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 eval "ac_cv_lib_$ac_lib_var=no"
2025 LIBS
="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2030 cat >> confdefs.h
<<\EOF
2031 #define HAVE_LIBXXF86DGA 1
2033 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
2035 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
2041 echo "configure:2042: checking "for Open Sound System
"" >&5
2042 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.
$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 #include <sys/soundcard.h>
2051 /* check for one of the Open Sound System specific SNDCTL_ defines */
2052 #if !defined(SNDCTL_DSP_STEREO)
2053 #error No open sound system
2058 if { (eval echo configure
:2059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2060 ac_cv_c_opensoundsystem
="yes"
2062 echo "configure: failed program was:" >&5
2063 cat conftest.
$ac_ext >&5
2065 ac_cv_c_opensoundsystem
="no"
2070 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2072 echo $ac_n "checking "for Open Sound System on
*BSD
"""... $ac_c" 1>&6
2073 echo "configure:2074: checking "for Open Sound System on
*BSD
"" >&5
2074 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_bsd'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.
$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 #include <machine/soundcard.h>
2083 /* check for one of the Open Sound System specific SNDCTL_ defines */
2084 #if !defined(SNDCTL_DSP_STEREO)
2085 #error No open sound system
2090 if { (eval echo configure
:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092 ac_cv_c_opensoundsystem_bsd
="yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 ac_cv_c_opensoundsystem_bsd
="no"
2102 echo "$ac_t""$ac_cv_c_opensoundsystem_bsd" 1>&6
2104 if test "$ac_cv_c_opensoundsystem" = "yes" -o "$ac_cv_c_opensoundsystem_bsd" = "yes"
2106 cat >> confdefs.h
<<\EOF
2110 if test "$ac_cv_c_opensoundsystem_bsd" = "yes"
2112 cat >> confdefs.h
<<\EOF
2113 #define HAVE_MACHINE_SOUNDCARD_H 1
2120 echo $ac_n "checking "for union semun
"""... $ac_c" 1>&6
2121 echo "configure:2122: checking "for union semun
"" >&5
2122 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2129 #include <sys/sem.h>
2134 if { (eval echo configure
:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2136 ac_cv_c_union_semun
="yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2141 ac_cv_c_union_semun
="no"
2146 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2147 if test "$ac_cv_c_union_semun" = "yes"
2149 cat >> confdefs.h
<<\EOF
2150 #define HAVE_UNION_SEMUN 1
2155 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
2158 if test "x${GCC}" = "xyes"
2160 CFLAGS
="$CFLAGS -Wall"
2161 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
2162 echo "configure:2163: checking "for gcc strength-reduce bug
"" >&5
2163 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 if test "$cross_compiling" = yes; then
2167 ac_cv_c_gcc_strength_bug
="yes"
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2174 static int Array[3];
2177 for(i=0; i<B; i++) Array[i] = i - 3;
2178 exit( Array[1] != -2 );
2181 if { (eval echo configure
:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2183 ac_cv_c_gcc_strength_bug
="no"
2185 echo "configure: failed program was:" >&5
2186 cat conftest.
$ac_ext >&5
2188 ac_cv_c_gcc_strength_bug
="yes"
2195 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2196 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2198 CFLAGS
="$CFLAGS -fno-strength-reduce"
2203 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
2204 echo "configure:2205: checking "whether external symbols need an underscore prefix
"" >&5
2205 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2209 LIBS
="conftest_asm.s $LIBS"
2210 cat > conftest_asm.s
<<EOF
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2220 if (ac_test) return 1
2223 if { (eval echo configure
:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2225 ac_cv_c_extern_prefix
="yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.
$ac_ext >&5
2230 ac_cv_c_extern_prefix
="no"
2236 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2237 if test "$ac_cv_c_extern_prefix" = "yes"
2239 cat >> confdefs.h
<<\EOF
2240 #define NEED_UNDERSCORE_PREFIX 1
2246 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
2247 echo "configure:2248: checking "whether assembler accepts .string
"" >&5
2248 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2252 LIBS
="conftest_asm.s $LIBS"
2253 cat > conftest_asm.s
<<EOF
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2264 if { (eval echo configure
:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2266 ac_cv_c_asm_string
="yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.
$ac_ext >&5
2271 ac_cv_c_asm_string
="no"
2277 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2278 if test "$ac_cv_c_asm_string" = "yes"
2280 cat >> confdefs.h
<<\EOF
2281 #define HAVE_ASM_STRING 1
2288 if test "$LIB_TARGET" = "libwine.so.1.0"
2290 echo $ac_n "checking "whether we can build a dll
"""... $ac_c" 1>&6
2291 echo "configure:2292: checking "whether we can build a dll
"" >&5
2292 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 saved_cflags
=$CFLAGS
2296 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2305 if { (eval echo configure
:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2315 CFLAGS
=$saved_cflags
2319 echo "$ac_t""$ac_cv_c_dll" 1>&6
2320 if test "$ac_cv_c_dll" = "yes"
2324 LIB_TARGET
="libwine.a"
2330 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
2331 echo "configure:2332: checking "for reentrant X libraries
"" >&5
2332 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test "x$with_reentrant_x" = "xno"
2337 wine_cv_x_reentrant
=no
2340 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
2341 if test -e $dir/libX11.so
; then
2342 libX11_check
="-D $dir/libX11.so"
2345 if test -e $dir/libX11.a
; then
2346 libX11_check
="$dir/libX11.a"
2350 if test "$libX11_check" != "none"; then
2351 if nm
$libX11_check |
grep -q __errno_location
; then
2352 wine_cv_x_reentrant
=yes
2354 wine_cv_x_reentrant
=no
2357 wine_cv_x_reentrant
=unknown
2362 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2363 if test "$wine_cv_x_reentrant" = "no"
2365 cat >> confdefs.h
<<\EOF
2366 #define NO_REENTRANT_X11 1
2372 for ac_func
in clone memmove strerror tcgetattr timegm
usleep wait4 waitpid
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2403 if { (eval echo configure
:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2405 eval "ac_cv_func_$ac_func=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 eval "ac_cv_func_$ac_func=no"
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h
<<EOF
2419 #define $ac_tr_func 1
2423 echo "$ac_t""no" 1>&6
2427 for ac_hdr
in wctype.h
2429 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2431 echo "configure:2432: checking for $ac_hdr" >&5
2432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2440 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2441 { (eval echo configure
:2442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2442 ac_err
=`grep -v '^ *+' conftest.out`
2443 if test -z "$ac_err"; then
2445 eval "ac_cv_header_$ac_safe=yes"
2448 echo "configure: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2451 eval "ac_cv_header_$ac_safe=no"
2455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2456 echo "$ac_t""yes" 1>&6
2457 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2458 cat >> confdefs.h
<<EOF
2459 #define $ac_tr_hdr 1
2463 echo "$ac_t""no" 1>&6
2467 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2468 echo "configure:2469: checking whether stat file-mode macros are broken" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2476 #include <sys/stat.h>
2478 #if defined(S_ISBLK) && defined(S_IFDIR)
2479 # if S_ISBLK (S_IFDIR)
2484 #if defined(S_ISBLK) && defined(S_IFCHR)
2485 # if S_ISBLK (S_IFCHR)
2490 #if defined(S_ISLNK) && defined(S_IFREG)
2491 # if S_ISLNK (S_IFREG)
2496 #if defined(S_ISSOCK) && defined(S_IFREG)
2497 # if S_ISSOCK (S_IFREG)
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "You lose" >/dev
/null
2>&1; then
2506 ac_cv_header_stat_broken
=yes
2509 ac_cv_header_stat_broken
=no
2515 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2516 if test $ac_cv_header_stat_broken = yes; then
2517 cat >> confdefs.h
<<\EOF
2518 #define STAT_MACROS_BROKEN 1
2523 echo $ac_n "checking for working const""... $ac_c" 1>&6
2524 echo "configure:2525: checking for working const" >&5
2525 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2534 /* Ultrix mips cc rejects this. */
2535 typedef int charset[2]; const charset x;
2536 /* SunOS 4.1.1 cc rejects this. */
2537 char const *const *ccp;
2539 /* NEC SVR4.0.2 mips cc rejects this. */
2540 struct point {int x, y;};
2541 static struct point const zero = {0,0};
2542 /* AIX XL C 1.02.0.0 rejects this.
2543 It does not let you subtract one const X* pointer from another in an arm
2544 of an if-expression whose if-part is not a constant expression */
2545 const char *g = "string";
2546 ccp = &g + (g ? g-g : 0);
2547 /* HPUX 7.0 cc rejects these. */
2550 ccp = (char const *const *) p;
2551 { /* SCO 3.2v4 cc rejects this. */
2553 char const *s = 0 ? (char *) 0 : (char const *) 0;
2557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2559 const int *foo = &x[0];
2562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2563 typedef const int *iptr;
2567 { /* AIX XL C 1.02.0.0 rejects this saying
2568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2569 struct s { int j; const int *ap[3]; };
2570 struct s *b; b->j = 5;
2572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2578 if { (eval echo configure
:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2590 echo "$ac_t""$ac_cv_c_const" 1>&6
2591 if test $ac_cv_c_const = no
; then
2592 cat >> confdefs.h
<<\EOF
2598 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2599 echo "configure:2600: checking for ANSI C header files" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2611 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure
:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err
=`grep -v '^ *+' conftest.out`
2614 if test -z "$ac_err"; then
2616 ac_cv_header_stdc
=yes
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 ac_cv_header_stdc
=no
2626 if test $ac_cv_header_stdc = yes; then
2627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "memchr" >/dev
/null
2>&1; then
2638 ac_cv_header_stdc
=no
2644 if test $ac_cv_header_stdc = yes; then
2645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2646 cat > conftest.
$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652 egrep "free" >/dev
/null
2>&1; then
2656 ac_cv_header_stdc
=no
2662 if test $ac_cv_header_stdc = yes; then
2663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2664 if test "$cross_compiling" = yes; then
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2671 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2672 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2674 int main () { int i; for (i = 0; i < 256; i++)
2675 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2679 if { (eval echo configure
:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2683 echo "configure: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2686 ac_cv_header_stdc
=no
2694 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2695 if test $ac_cv_header_stdc = yes; then
2696 cat >> confdefs.h
<<\EOF
2697 #define STDC_HEADERS 1
2702 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2703 echo "configure:2704: checking for size_t" >&5
2704 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <sys/types.h>
2716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2719 ac_cv_type_size_t
=yes
2722 ac_cv_type_size_t
=no
2727 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2728 if test $ac_cv_type_size_t = no
; then
2729 cat >> confdefs.h
<<\EOF
2730 #define size_t unsigned
2737 MAKE_RULES
=Make.rules
2741 cat > confcache
<<\EOF
2742 # This file is a shell script that caches the results of configure
2743 # tests run on this system so they can be shared between configure
2744 # scripts and configure runs. It is not useful on other systems.
2745 # If it contains results you don't want to keep, you may remove or edit it.
2747 # By default, configure uses ./config.cache as the cache file,
2748 # creating it if it does not exist already. You can give configure
2749 # the --cache-file=FILE option to use a different cache file; that is
2750 # what configure does when it calls configure scripts in
2751 # subdirectories, so they share the cache.
2752 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2753 # config.status only pays attention to the cache file if you give it the
2754 # --recheck option to rerun configure.
2757 # The following way of writing the cache mishandles newlines in values,
2758 # but we know of no workaround that is simple, portable, and efficient.
2759 # So, don't put newlines in cache variables' values.
2760 # Ultrix sh set writes to stderr and can't be redirected directly,
2761 # and sets the high bit in the cache file unless we assign to the vars.
2763 case `(ac_space=' '; set) 2>&1` in
2765 # `set' does not quote correctly, so add quotes (double-quote substitution
2766 # turns \\\\ into \\, and sed turns \\ into \).
2768 -e "s/'/'\\\\''/g" \
2769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2772 # `set' quotes correctly as required by POSIX, so do not add quotes.
2773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2776 if cmp -s $cache_file confcache
; then
2779 if test -w $cache_file; then
2780 echo "updating cache $cache_file"
2781 cat confcache
> $cache_file
2783 echo "not updating unwritable cache $cache_file"
2788 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2790 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2791 # Let make expand exec_prefix.
2792 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2794 # Any assignment to VPATH causes Sun make to only execute
2795 # the first set of double-colon rules, so remove it if not needed.
2796 # If there is a colon in the path, we need to keep it.
2797 if test "x$srcdir" = x.
; then
2798 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2801 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2803 DEFS
=-DHAVE_CONFIG_H
2805 # Without the "./", some shells look in PATH for config.status.
2806 : ${CONFIG_STATUS=./config.status}
2808 echo creating
$CONFIG_STATUS
2809 rm -f $CONFIG_STATUS
2810 cat > $CONFIG_STATUS <<EOF
2812 # Generated automatically by configure.
2813 # Run this file to recreate the current configuration.
2814 # This directory was configured as follows,
2815 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2817 # $0 $ac_configure_args
2819 # Compiler output produced by configure, useful for debugging
2820 # configure, is in ./config.log if it exists.
2822 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2825 case "\$ac_option" in
2826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2827 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2828 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2829 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2830 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2832 -help | --help | --hel | --he | --h)
2833 echo "\$ac_cs_usage"; exit 0 ;;
2834 *) echo "\$ac_cs_usage"; exit 1 ;;
2838 ac_given_srcdir=$srcdir
2839 ac_given_INSTALL="$INSTALL"
2841 trap 'rm -fr `echo "
2846 documentation/Makefile
2849 graphics/metafiledrv/Makefile
2850 graphics/win16drv/Makefile
2851 graphics/x11drv/Makefile
2865 programs/clock/Makefile
2866 programs/notepad/Makefile
2867 programs/progman/Makefile
2868 programs/view/Makefile
2869 programs/winhelp/Makefile
2870 programs/winver/Makefile
2878 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2880 cat >> $CONFIG_STATUS <<EOF
2882 # Protect against being on the right side of a sed subst in config.status.
2883 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2884 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2887 s%@CFLAGS@%$CFLAGS%g
2888 s%@CPPFLAGS@%$CPPFLAGS%g
2889 s%@CXXFLAGS@%$CXXFLAGS%g
2891 s%@LDFLAGS@%$LDFLAGS%g
2893 s%@exec_prefix@%$exec_prefix%g
2894 s%@prefix@%$prefix%g
2895 s%@program_transform_name@%$program_transform_name%g
2896 s%@bindir@%$bindir%g
2897 s%@sbindir@%$sbindir%g
2898 s%@libexecdir@%$libexecdir%g
2899 s%@datadir@%$datadir%g
2900 s%@sysconfdir@%$sysconfdir%g
2901 s%@sharedstatedir@%$sharedstatedir%g
2902 s%@localstatedir@%$localstatedir%g
2903 s%@libdir@%$libdir%g
2904 s%@includedir@%$includedir%g
2905 s%@oldincludedir@%$oldincludedir%g
2906 s%@infodir@%$infodir%g
2907 s%@mandir@%$mandir%g
2908 s%@PROGEXT@%$PROGEXT%g
2909 s%@MAIN_TARGET@%$MAIN_TARGET%g
2910 s%@LIB_TARGET@%$LIB_TARGET%g
2911 s%@OPTIONS@%$OPTIONS%g
2912 s%@SET_MAKE@%$SET_MAKE%g
2915 s%@X_CFLAGS@%$X_CFLAGS%g
2916 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2917 s%@X_LIBS@%$X_LIBS%g
2918 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2921 s%@LEXLIB@%$LEXLIB%g
2922 s%@RANLIB@%$RANLIB%g
2923 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2924 s%@INSTALL_DATA@%$INSTALL_DATA%g
2926 s%@DLLFLAGS@%$DLLFLAGS%g
2927 /@MAKE_RULES@/r $MAKE_RULES
2933 cat >> $CONFIG_STATUS <<\EOF
2935 # Split the substitutions into bite-sized pieces for seds with
2936 # small command number limits, like on Digital OSF/1 and HP-UX.
2937 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2938 ac_file
=1 # Number of current file.
2939 ac_beg
=1 # First line for current file.
2940 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2943 while $ac_more_lines; do
2944 if test $ac_beg -gt 1; then
2945 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2947 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2949 if test ! -s conftest.s
$ac_file; then
2951 rm -f conftest.s
$ac_file
2953 if test -z "$ac_sed_cmds"; then
2954 ac_sed_cmds
="sed -f conftest.s$ac_file"
2956 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2958 ac_file
=`expr $ac_file + 1`
2960 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2963 if test -z "$ac_sed_cmds"; then
2968 cat >> $CONFIG_STATUS <<EOF
2970 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2974 documentation/Makefile
2977 graphics/metafiledrv/Makefile
2978 graphics/win16drv/Makefile
2979 graphics/x11drv/Makefile
2993 programs/clock/Makefile
2994 programs/notepad/Makefile
2995 programs/progman/Makefile
2996 programs/view/Makefile
2997 programs/winhelp/Makefile
2998 programs/winver/Makefile
3008 cat >> $CONFIG_STATUS <<\EOF
3009 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3012 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3013 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3014 *) ac_file_in
="${ac_file}.in" ;;
3017 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3019 # Remove last slash and all that follows it. Not all systems have dirname.
3020 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3021 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3022 # The file is in a subdirectory.
3023 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3024 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3025 # A "../" for each directory in $ac_dir_suffix.
3026 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3028 ac_dir_suffix
= ac_dots
=
3031 case "$ac_given_srcdir" in
3033 if test -z "$ac_dots"; then top_srcdir
=.
3034 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3035 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3037 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3038 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3041 case "$ac_given_INSTALL" in
3042 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3043 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3046 echo creating
"$ac_file"
3048 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3050 *Makefile
*) ac_comsub
="1i\\
3051 # $configure_input" ;;
3055 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3057 s%@configure_input@%$configure_input%g
3058 s%@srcdir@%$srcdir%g
3059 s%@top_srcdir@%$top_srcdir%g
3060 s%@INSTALL@%$INSTALL%g
3061 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3065 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3066 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3068 # ac_d sets the value in "#define NAME VALUE" lines.
3069 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3070 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3073 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3074 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3075 ac_uB
='\([ ]\)%\1#\2define\3'
3078 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3079 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3080 ac_eB
='$%\1#\2define\3'
3084 if test "${CONFIG_HEADERS+set}" != set; then
3086 cat >> $CONFIG_STATUS <<EOF
3087 CONFIG_HEADERS="include/config.h"
3089 cat >> $CONFIG_STATUS <<\EOF
3091 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3094 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3095 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3096 *) ac_file_in
="${ac_file}.in" ;;
3099 echo creating
$ac_file
3101 rm -f conftest.frag conftest.
in conftest.out
3102 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3103 cat $ac_file_inputs > conftest.
in
3107 # Transform confdefs.h into a sed script conftest.vals that substitutes
3108 # the proper values into config.h.in to produce config.h. And first:
3109 # Protect against being on the right side of a sed subst in config.status.
3110 # Protect against being in an unquoted here document in config.status.
3112 cat > conftest.hdr
<<\EOF
3115 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3119 sed -n -f conftest.hdr confdefs.h > conftest.vals
3122 # This sed command replaces #undef with comments. This is necessary, for
3123 # example, in the case of _POSIX_SOURCE, which is predefined and required
3124 # on some systems where configure will not decide to define it.
3125 cat >> conftest.vals <<\EOF
3126 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3129 # Break up conftest.vals because some shells have a limit on
3130 # the size of here documents, and old seds have small limits too.
3135 ac_lines=`grep -c . conftest.vals
`
3136 # grep -c gives empty output for an empty file on some AIX systems.
3137 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3138 # Write a limited-size here document to conftest.frag.
3139 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3140 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3142 sed -f conftest.frag conftest.in > conftest.out
3144 mv conftest.out conftest.in
3146 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3148 mv conftest.tail conftest.vals
3152 cat >> $CONFIG_STATUS <<\EOF
3153 rm -f conftest.frag conftest.h
3154 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3155 cat conftest.in >> conftest.h
3157 if cmp -s $ac_file conftest.h 2>/dev/null; then
3158 echo "$ac_file is unchanged"
3161 # Remove last slash and all that follows it. Not all systems have dirname.
3162 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3164 # The file is in a subdirectory.
3165 test ! -d "$ac_dir" && mkdir "$ac_dir"
3168 mv conftest.h $ac_file
3173 cat >> $CONFIG_STATUS <<EOF
3176 cat >> $CONFIG_STATUS <<\EOF
3180 chmod +x $CONFIG_STATUS
3181 rm -fr confdefs* $ac_clean_files
3182 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3186 echo "Configure finished. Do 'make depend; make' to compile Wine."