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 --disable-lib build the Wine without building libwine.a"
22 --disable-debug compile out all debugging messages"
24 --disable-trace compile out TRACE messages"
26 --without-reentrant-x Compile for use with non-reentrant X libraries"
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host | --host | --hos | --ho)
205 -host=* | --host=* | --hos=* | --ho=*)
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
326 -site=* | --site=* | --sit=*)
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=controls/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
538 for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
541 ac_install_sh="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh; then
545 ac_install_sh="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
559 test -z "$PROGEXT" && PROGEXT=""
564 TRACE_MSGS=yes # the TRACE() macro
565 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
567 # Check whether --enable-emulator or --disable-emulator was given.
568 if test "${enable_emulator+set}" = set; then
569 enableval="$enable_emulator"
570 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
574 # Check whether --enable-dll or --disable-dll was given.
575 if test "${enable_dll+set}" = set; then
576 enableval="$enable_dll"
577 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
581 # Check whether --enable-lib or --disable-lib was given.
582 if test "${enable_lib+set}" = set; then
583 enableval="$enable_lib"
584 if test "$enableval" = "no"; then LIB_TARGET="\$(LIBOBJS)"; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval="$with_reentrant_x"
614 if test "$DEBUG_MSGS" = "no"
616 cat >> confdefs.h <<\EOF
617 #define NO_DEBUG_MSGS 1
620 cat >> confdefs.h <<\EOF
621 #define NO_TRACE_MSGS 1
625 if test "$TRACE_MSGS" = "no"
627 cat >> confdefs.h <<\EOF
628 #define NO_TRACE_MSGS 1
635 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
636 echo "configure:637: checking whether ${MAKE-make} sets \${MAKE}" >&5
637 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
638 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 cat > conftestmake <<\EOF
643 @echo 'ac_maketemp="${MAKE}"'
645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
646 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
647 if test -n "$ac_maketemp"; then
648 eval ac_cv_prog_make_${ac_make}_set=yes
650 eval ac_cv_prog_make_${ac_make}_set=no
654 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
655 echo "$ac_t""yes" 1>&6
658 echo "$ac_t""no" 1>&6
659 SET_MAKE="MAKE=${MAKE-make}"
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
673 for ac_dir in $PATH; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
684 if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
687 echo "$ac_t""no" 1>&6
690 if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692 set dummy cc; ac_word=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
703 for ac_dir in $PATH; do
704 test -z "$ac_dir" && ac_dir=.
705 if test -f $ac_dir/$ac_word; then
706 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
715 if test $ac_prog_rejected = yes; then
716 # We found a bogon in the path, so make sure we never use it.
717 set dummy $ac_cv_prog_CC
719 if test $# -gt 0; then
720 # We chose a different compiler from the bogus one.
721 # However, it has the same basename, so the bogon will be chosen
722 # first if we set CC to just the basename; use the full file name.
724 set dummy "$ac_dir/$ac_word" "$@"
732 if test -n "$CC"; then
733 echo "$ac_t""$CC" 1>&6
735 echo "$ac_t""no" 1>&6
738 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
742 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
746 ac_cpp='$CPP $CPPFLAGS'
747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
748 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
749 cross_compiling=$ac_cv_prog_cc_cross
751 cat > conftest.$ac_ext <<EOF
752 #line 753 "configure"
753 #include "confdefs.h"
756 if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
757 ac_cv_prog_cc_works=yes
758 # If we can't run a trivial program, we are probably using a cross compiler.
759 if (./conftest; exit) 2>/dev/null; then
760 ac_cv_prog_cc_cross=no
762 ac_cv_prog_cc_cross=yes
765 echo "configure: failed program was:" >&5
766 cat conftest.$ac_ext >&5
767 ac_cv_prog_cc_works=no
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftest.c <<EOF
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
801 ac_test_CFLAGS="${CFLAGS+set}"
802 ac_save_CFLAGS="$CFLAGS"
804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
805 echo "configure:806: checking whether ${CC-cc} accepts -g" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 echo 'void f(){}' > conftest.c
810 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
819 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
820 if test "$ac_test_CFLAGS" = set; then
821 CFLAGS="$ac_save_CFLAGS"
822 elif test $ac_cv_prog_cc_g = yes; then
829 test "${CFLAGS+set}" = set || CFLAGS="-g"
832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
833 echo "configure:834: checking how to run the C preprocessor" >&5
834 # On Suns, sometimes $CPP names a directory.
835 if test -n "$CPP" && test -d "$CPP"; then
838 if test -z "$CPP"; then
839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 # This must be in double quotes, not single quotes, because CPP may get
843 # substituted into the Makefile and "${CC-cc}" will confuse make.
845 # On the NeXT, cc -E runs the code through the compiler's parser,
846 # not just through cpp.
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
854 { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
855 ac_err=`grep -v '^ *+' conftest.out`
856 if test -z "$ac_err"; then
860 echo "configure: failed program was:" >&5
861 cat conftest.$ac_ext >&5
863 CPP="${CC-cc} -E -traditional-cpp"
864 cat > conftest.$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
871 { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
872 ac_err=`grep -v '^ *+' conftest.out`
873 if test -z "$ac_err"; then
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
885 ac_cv_prog_CPP="$CPP"
887 CPP="$ac_cv_prog_CPP"
889 ac_cv_prog_CPP="$CPP"
891 echo "$ac_t""$CPP" 1>&6
893 # If we find X, set shell vars x_includes and x_libraries to the
894 # paths, otherwise set no_x=yes.
895 # Uses ac_ vars as temps to allow command line to override cache and checks.
896 # --without-x overrides everything else, but does not touch the cache.
897 echo $ac_n "checking for X""... $ac_c" 1>&6
898 echo "configure:899: checking for X" >&5
900 # Check whether --with-x or --without-x was given.
901 if test "${with_x+set}" = set; then
906 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
907 if test "x$with_x" = xno; then
908 # The user explicitly disabled X.
911 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
912 # Both variables are already set.
915 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 # One or both of the vars are not set, and there is no cached value.
919 ac_x_includes=NO ac_x_libraries=NO
921 if mkdir conftestdir; then
923 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
924 cat > Imakefile <<'EOF'
926 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
928 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
930 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
931 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
932 for ac_extension in a so sl; do
933 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
934 test -f $ac_im_libdir/libX11.$ac_extension; then
935 ac_im_usrlibdir=$ac_im_libdir; break
938 # Screen out bogus values from the imake configuration. They are
939 # bogus both because they are the default anyway, and because
940 # using them would break gcc on systems where it needs fixed includes.
941 case "$ac_im_incroot" in
943 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
945 case "$ac_im_usrlibdir" in
947 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
954 if test "$ac_x_includes" = NO; then
955 # Guess where to find include files, by looking for this one X11 .h file.
956 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
958 # First, try using that file with no special directory specified.
959 cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
962 #include <$x_direct_test_include>
964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
966 ac_err=`grep -v '^ *+' conftest.out`
967 if test -z "$ac_err"; then
969 # We can compile using X headers with no special include directory.
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
976 # Look for the header file in a standard set of common directories.
977 # Check X11 before X11Rn because it is often a symlink to the current release.
989 /usr/local/X11/include \
990 /usr/local/X11R6/include \
991 /usr/local/X11R5/include \
992 /usr/local/X11R4/include \
994 /usr/local/include/X11 \
995 /usr/local/include/X11R6 \
996 /usr/local/include/X11R5 \
997 /usr/local/include/X11R4 \
1001 /usr/XFree86/include/X11 \
1004 /usr/local/include \
1005 /usr/unsupported/include \
1006 /usr/athena/include \
1007 /usr/local/x11r5/include \
1008 /usr/lpp/Xamples/include \
1010 /usr/openwin/include \
1011 /usr/openwin/share/include \
1014 if test -r "$ac_dir/$x_direct_test_include"; then
1015 ac_x_includes=$ac_dir
1021 fi # $ac_x_includes = NO
1023 if test "$ac_x_libraries" = NO; then
1024 # Check for the libraries.
1026 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1027 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1029 # See if we find them without any special options.
1030 # Don't add to $LIBS permanently.
1031 ac_save_LIBS="$LIBS"
1032 LIBS="-l$x_direct_test_library $LIBS"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1038 ${x_direct_test_function}()
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1043 LIBS="$ac_save_LIBS"
1044 # We can link X programs with no special library path.
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1050 LIBS="$ac_save_LIBS"
1051 # First see if replacing the include by lib works.
1052 # Check X11 before X11Rn because it is often a symlink to the current release.
1053 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1064 /usr/local/X11/lib \
1065 /usr/local/X11R6/lib \
1066 /usr/local/X11R5/lib \
1067 /usr/local/X11R4/lib \
1069 /usr/local/lib/X11 \
1070 /usr/local/lib/X11R6 \
1071 /usr/local/lib/X11R5 \
1072 /usr/local/lib/X11R4 \
1076 /usr/XFree86/lib/X11 \
1080 /usr/unsupported/lib \
1082 /usr/local/x11r5/lib \
1083 /usr/lpp/Xamples/lib \
1087 /usr/openwin/share/lib \
1090 for ac_extension in a so sl; do
1091 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1092 ac_x_libraries=$ac_dir
1099 fi # $ac_x_libraries = NO
1101 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1102 # Didn't find X anywhere. Cache the known absence of X.
1103 ac_cv_have_x="have_x=no"
1105 # Record where we found X for the cache.
1106 ac_cv_have_x="have_x=yes \
1107 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1111 eval "$ac_cv_have_x"
1114 if test "$have_x" != yes; then
1115 echo "$ac_t""$have_x" 1>&6
1118 # If each of the values was on the command line, it overrides each guess.
1119 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1120 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1121 # Update the cache value to reflect the command line values.
1122 ac_cv_have_x="have_x=yes \
1123 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1124 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1127 if test "$no_x" = yes; then
1128 # Not all programs may use this symbol, but it does not hurt to define it.
1129 cat >> confdefs.h <<\EOF
1130 #define X_DISPLAY_MISSING 1
1133 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1135 if test -n "$x_includes"; then
1136 X_CFLAGS="$X_CFLAGS -I$x_includes"
1139 # It would also be nice to do this for all -L options, not just this one.
1140 if test -n "$x_libraries"; then
1141 X_LIBS="$X_LIBS -L$x_libraries"
1142 # For Solaris; some versions of Sun CC require a space after -R and
1143 # others require no space. Words are not sufficient . . . .
1144 case "`(uname -sr) 2>/dev/null`" in
1146 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether -R must be followed by a space" >&5
1148 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1157 if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1167 if test $ac_R_nospace = yes; then
1168 echo "$ac_t""no" 1>&6
1169 X_LIBS="$X_LIBS -R$x_libraries"
1171 LIBS="$ac_xsave_LIBS -R $x_libraries"
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1180 if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1190 if test $ac_R_space = yes; then
1191 echo "$ac_t""yes" 1>&6
1192 X_LIBS="$X_LIBS -R $x_libraries"
1194 echo "$ac_t""neither works" 1>&6
1197 LIBS="$ac_xsave_LIBS"
1201 # Check for system-dependent libraries X programs must link with.
1202 # Do this before checking for the system-independent R6 libraries
1203 # (-lICE), since we may need -lsocket or whatever for X linking.
1205 if test "$ISC" = yes; then
1206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1208 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1209 # libraries were built with DECnet support. And karl@cs.umb.edu says
1210 # the Alpha needs dnet_stub (dnet does not exist).
1211 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1212 echo "configure:1213: checking for dnet_ntoa in -ldnet" >&5
1213 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 ac_save_LIBS="$LIBS"
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 /* Override any gcc2 internal prototype to avoid an error. */
1223 /* We use char because int might match the return type of a gcc2
1224 builtin and then its argument prototype would still apply. */
1231 if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1233 eval "ac_cv_lib_$ac_lib_var=yes"
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1238 eval "ac_cv_lib_$ac_lib_var=no"
1241 LIBS="$ac_save_LIBS"
1244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1245 echo "$ac_t""yes" 1>&6
1246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1248 echo "$ac_t""no" 1>&6
1251 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1252 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1253 echo "configure:1254: checking for dnet_ntoa in -ldnet_stub" >&5
1254 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 ac_save_LIBS="$LIBS"
1259 LIBS="-ldnet_stub $LIBS"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 /* Override any gcc2 internal prototype to avoid an error. */
1264 /* We use char because int might match the return type of a gcc2
1265 builtin and then its argument prototype would still apply. */
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1274 eval "ac_cv_lib_$ac_lib_var=yes"
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 eval "ac_cv_lib_$ac_lib_var=no"
1282 LIBS="$ac_save_LIBS"
1285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1289 echo "$ac_t""no" 1>&6
1294 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1295 # to get the SysV transport functions.
1296 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1298 # The nsl library prevents programs from opening the X display
1299 # on Irix 5.2, according to dickey@clark.net.
1300 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gethostbyname" >&5
1302 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 /* System header to define __stub macros and hopefully few prototypes,
1309 which can conflict with char gethostbyname(); below. */
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();
1318 /* The GNU C library defines this for functions which it implements
1319 to always fail with ENOSYS. Some functions are actually named
1320 something starting with __ and the normal name is an alias. */
1321 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1329 if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1331 eval "ac_cv_func_gethostbyname=yes"
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1336 eval "ac_cv_func_gethostbyname=no"
1341 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1342 echo "$ac_t""yes" 1>&6
1345 echo "$ac_t""no" 1>&6
1348 if test $ac_cv_func_gethostbyname = no; then
1349 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname in -lnsl" >&5
1351 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 ac_save_LIBS="$LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
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. */
1363 char gethostbyname();
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1371 eval "ac_cv_lib_$ac_lib_var=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_lib_$ac_lib_var=no"
1379 LIBS="$ac_save_LIBS"
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1386 echo "$ac_t""no" 1>&6
1391 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1392 # socket/setsockopt and other routines are undefined under SCO ODT
1393 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1394 # on later versions), says simon@lia.di.epfl.ch: it contains
1395 # gethostby* variants that don't use the nameserver (or something).
1396 # -lsocket must be given before -lnsl if both are needed.
1397 # We assume that if connect needs -lnsl, so does gethostbyname.
1398 echo $ac_n "checking for connect""... $ac_c" 1>&6
1399 echo "configure:1400: checking for connect" >&5
1400 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* System header to define __stub macros and hopefully few prototypes,
1407 which can conflict with char connect(); below. */
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. */
1416 /* The GNU C library defines this for functions which it implements
1417 to always fail with ENOSYS. Some functions are actually named
1418 something starting with __ and the normal name is an alias. */
1419 #if defined (__stub_connect) || defined (__stub___connect)
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1429 eval "ac_cv_func_connect=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1434 eval "ac_cv_func_connect=no"
1439 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1443 echo "$ac_t""no" 1>&6
1446 if test $ac_cv_func_connect = no; then
1447 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect in -lsocket" >&5
1449 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 ac_save_LIBS="$LIBS"
1454 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1469 eval "ac_cv_lib_$ac_lib_var=yes"
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 eval "ac_cv_lib_$ac_lib_var=no"
1477 LIBS="$ac_save_LIBS"
1480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1481 echo "$ac_t""yes" 1>&6
1482 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1484 echo "$ac_t""no" 1>&6
1489 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1490 echo $ac_n "checking for remove""... $ac_c" 1>&6
1491 echo "configure:1492: checking for remove" >&5
1492 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 /* System header to define __stub macros and hopefully few prototypes,
1499 which can conflict with char remove(); below. */
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. */
1508 /* The GNU C library defines this for functions which it implements
1509 to always fail with ENOSYS. Some functions are actually named
1510 something starting with __ and the normal name is an alias. */
1511 #if defined (__stub_remove) || defined (__stub___remove)
1519 if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1521 eval "ac_cv_func_remove=yes"
1523 echo "configure: failed program was:" >&5
1524 cat conftest.$ac_ext >&5
1526 eval "ac_cv_func_remove=no"
1531 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1532 echo "$ac_t""yes" 1>&6
1535 echo "$ac_t""no" 1>&6
1538 if test $ac_cv_func_remove = no; then
1539 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove in -lposix" >&5
1541 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 ac_save_LIBS="$LIBS"
1546 LIBS="-lposix $LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1561 eval "ac_cv_lib_$ac_lib_var=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 eval "ac_cv_lib_$ac_lib_var=no"
1569 LIBS="$ac_save_LIBS"
1572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1573 echo "$ac_t""yes" 1>&6
1574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1576 echo "$ac_t""no" 1>&6
1581 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1582 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1583 echo "configure:1584: checking for shmat" >&5
1584 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 /* System header to define __stub macros and hopefully few prototypes,
1591 which can conflict with char shmat(); below. */
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. */
1600 /* The GNU C library defines this for functions which it implements
1601 to always fail with ENOSYS. Some functions are actually named
1602 something starting with __ and the normal name is an alias. */
1603 #if defined (__stub_shmat) || defined (__stub___shmat)
1611 if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1613 eval "ac_cv_func_shmat=yes"
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1618 eval "ac_cv_func_shmat=no"
1623 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 if test $ac_cv_func_shmat = no; then
1631 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat in -lipc" >&5
1633 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 ac_save_LIBS="$LIBS"
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1653 eval "ac_cv_lib_$ac_lib_var=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1658 eval "ac_cv_lib_$ac_lib_var=no"
1661 LIBS="$ac_save_LIBS"
1664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1668 echo "$ac_t""no" 1>&6
1674 # Check for libraries that X11R6 Xt/Xaw programs need.
1675 ac_save_LDFLAGS="$LDFLAGS"
1676 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1678 # check for ICE first), but we must link in the order -lSM -lICE or
1679 # we get undefined symbols. So assume we have SM if we have ICE.
1680 # These have to be linked with before -lX11, unlike the other
1681 # libraries we check for below, so use a different variable.
1682 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1683 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1684 echo "configure:1685: checking for IceConnectionNumber in -lICE" >&5
1685 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 ac_save_LIBS="$LIBS"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* Override any gcc2 internal prototype to avoid an error. */
1695 /* We use char because int might match the return type of a gcc2
1696 builtin and then its argument prototype would still apply. */
1697 char IceConnectionNumber();
1700 IceConnectionNumber()
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1705 eval "ac_cv_lib_$ac_lib_var=yes"
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1710 eval "ac_cv_lib_$ac_lib_var=no"
1713 LIBS="$ac_save_LIBS"
1716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1720 echo "$ac_t""no" 1>&6
1723 LDFLAGS="$ac_save_LDFLAGS"
1727 for ac_prog in 'bison -y' byacc
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 if test -n "$YACC"; then
1737 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1740 for ac_dir in $PATH; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 ac_cv_prog_YACC="$ac_prog"
1750 YACC="$ac_cv_prog_YACC"
1751 if test -n "$YACC"; then
1752 echo "$ac_t""$YACC" 1>&6
1754 echo "$ac_t""no" 1>&6
1757 test -n "$YACC" && break
1759 test -n "$YACC" || YACC="yacc"
1761 # Extract the first word of "flex", so it can be a program name with args.
1762 set dummy flex; ac_word=$2
1763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_word" >&5
1765 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 if test -n "$LEX"; then
1769 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1772 for ac_dir in $PATH; do
1773 test -z "$ac_dir" && ac_dir=.
1774 if test -f $ac_dir/$ac_word; then
1775 ac_cv_prog_LEX="flex"
1780 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1783 LEX="$ac_cv_prog_LEX"
1784 if test -n "$LEX"; then
1785 echo "$ac_t""$LEX" 1>&6
1787 echo "$ac_t""no" 1>&6
1790 if test -z "$LEXLIB"
1796 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1797 echo "configure:1798: checking for yywrap in -l$ac_lib" >&5
1798 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_save_LIBS="$LIBS"
1803 LIBS="-l$ac_lib $LIBS"
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 eval "ac_cv_lib_$ac_lib_var=no"
1826 LIBS="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1833 echo "$ac_t""no" 1>&6
1838 # Extract the first word of "ranlib", so it can be a program name with args.
1839 set dummy ranlib; ac_word=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$RANLIB"; then
1846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1849 for ac_dir in $PATH; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_RANLIB="ranlib"
1857 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1860 RANLIB="$ac_cv_prog_RANLIB"
1861 if test -n "$RANLIB"; then
1862 echo "$ac_t""$RANLIB" 1>&6
1864 echo "$ac_t""no" 1>&6
1867 # Find a good install program. We prefer a C program (faster),
1868 # so one script is as good as another. But avoid the broken or
1869 # incompatible versions:
1870 # SysV /etc/install, /usr/sbin/install
1871 # SunOS /usr/etc/install
1872 # IRIX /sbin/install
1874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1876 # ./install, which can be erroneously created by make from ./install.sh.
1877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1878 echo "configure:1879: checking for a BSD compatible install" >&5
1879 if test -z "$INSTALL"; then
1880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1884 for ac_dir in $PATH; do
1885 # Account for people who put trailing slashes in PATH elements.
1887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1889 # OSF1 and SCO ODT 3.0 have their own names for install.
1890 for ac_prog in ginstall installbsd scoinst install; do
1891 if test -f $ac_dir/$ac_prog; then
1892 if test $ac_prog = install &&
1893 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1894 # AIX install. It has an incompatible calling convention.
1895 # OSF/1 installbsd also uses dspmsg, but is usable.
1898 ac_cv_path_install="$ac_dir/$ac_prog -c"
1909 if test "${ac_cv_path_install+set}" = set; then
1910 INSTALL="$ac_cv_path_install"
1912 # As a last resort, use the slow shell script. We don't cache a
1913 # path for INSTALL within a source directory, because that will
1914 # break other packages using the cache if that directory is
1915 # removed, or if the path is relative.
1916 INSTALL="$ac_install_sh"
1919 echo "$ac_t""$INSTALL" 1>&6
1921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1922 # It thinks the first close brace ends the variable substitution.
1923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1927 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether ln -s works" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1933 if ln -s X conftestdata 2>/dev/null
1936 ac_cv_prog_LN_S="ln -s"
1941 LN_S="$ac_cv_prog_LN_S"
1942 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1943 echo "$ac_t""yes" 1>&6
1945 echo "$ac_t""no" 1>&6
1948 # Extract the first word of "c2man", so it can be a program name with args.
1949 set dummy c2man; ac_word=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test -n "$C2MAN"; then
1956 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1959 for ac_dir in $PATH; do
1960 test -z "$ac_dir" && ac_dir=.
1961 if test -f $ac_dir/$ac_word; then
1962 ac_cv_prog_C2MAN="c2man"
1967 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1970 C2MAN="$ac_cv_prog_C2MAN"
1971 if test -n "$C2MAN"; then
1972 echo "$ac_t""$C2MAN" 1>&6
1974 echo "$ac_t""no" 1>&6
1979 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1980 echo "configure:1981: checking for i386_set_ldt in -li386" >&5
1981 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 ac_save_LIBS="$LIBS"
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* Override any gcc2 internal prototype to avoid an error. */
1991 /* We use char because int might match the return type of a gcc2
1992 builtin and then its argument prototype would still apply. */
1993 char i386_set_ldt();
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2001 eval "ac_cv_lib_$ac_lib_var=yes"
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2006 eval "ac_cv_lib_$ac_lib_var=no"
2009 LIBS="$ac_save_LIBS"
2012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_lib 1
2023 echo "$ac_t""no" 1>&6
2026 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2027 echo "configure:2028: checking for iswalnum in -lw" >&5
2028 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS="$LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 eval "ac_cv_lib_$ac_lib_var=no"
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2063 cat >> confdefs.h <<EOF
2064 #define $ac_tr_lib 1
2070 echo "$ac_t""no" 1>&6
2073 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2074 echo "configure:2075: checking for setrunelocale in -lxpg4" >&5
2075 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_save_LIBS="$LIBS"
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* Override any gcc2 internal prototype to avoid an error. */
2085 /* We use char because int might match the return type of a gcc2
2086 builtin and then its argument prototype would still apply. */
2087 char setrunelocale();
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2095 eval "ac_cv_lib_$ac_lib_var=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 eval "ac_cv_lib_$ac_lib_var=no"
2103 LIBS="$ac_save_LIBS"
2106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_lib 1
2117 echo "$ac_t""no" 1>&6
2120 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2121 echo "configure:2122: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2122 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_save_LIBS="$LIBS"
2127 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* Override any gcc2 internal prototype to avoid an error. */
2132 /* We use char because int might match the return type of a gcc2
2133 builtin and then its argument prototype would still apply. */
2134 char XF86DGAQueryExtension();
2137 XF86DGAQueryExtension()
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2142 eval "ac_cv_lib_$ac_lib_var=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_lib_$ac_lib_var=no"
2150 LIBS="$ac_save_LIBS"
2153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 cat >> confdefs.h <<\EOF
2156 #define HAVE_LIBXXF86DGA 1
2158 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2160 echo "$ac_t""no" 1>&6
2164 for ac_hdr in sys/soundcard.h machine/soundcard.h
2166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_hdr" >&5
2169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2178 { (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2179 ac_err=`grep -v '^ *+' conftest.out`
2180 if test -z "$ac_err"; then
2182 eval "ac_cv_header_$ac_safe=yes"
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2188 eval "ac_cv_header_$ac_safe=no"
2192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2193 echo "$ac_t""yes" 1>&6
2194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2195 cat >> confdefs.h <<EOF
2196 #define $ac_tr_hdr 1
2200 echo "$ac_t""no" 1>&6
2205 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2206 echo "configure:2207: checking "for Open Sound System"" >&5
2207 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2214 #ifdef HAVE_SYS_SOUNDCARD_H
2215 #include <sys/soundcard.h>
2217 #ifdef HAVE_MACHINE_SOUNDCARD_H
2218 #include <machine/soundcard.h>
2224 /* check for one of the Open Sound System specific SNDCTL_ defines */
2225 #if !defined(SNDCTL_DSP_STEREO)
2226 #error No open sound system
2231 if { (eval echo configure:2232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2233 ac_cv_c_opensoundsystem="yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2238 ac_cv_c_opensoundsystem="no"
2243 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2245 if test "$ac_cv_c_opensoundsystem" = "yes"
2247 cat >> confdefs.h <<\EOF
2254 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2255 echo "configure:2256: checking "for union semun"" >&5
2256 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <sys/types.h>
2263 #include <sys/sem.h>
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 ac_cv_c_union_semun="yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 ac_cv_c_union_semun="no"
2280 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2281 if test "$ac_cv_c_union_semun" = "yes"
2283 cat >> confdefs.h <<\EOF
2284 #define HAVE_UNION_SEMUN 1
2289 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2292 if test "x${GCC}" = "xyes"
2294 CFLAGS="$CFLAGS -Wall"
2295 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2296 echo "configure:2297: checking "for gcc strength-reduce bug"" >&5
2297 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test "$cross_compiling" = yes; then
2301 ac_cv_c_gcc_strength_bug="yes"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2308 static int Array[3];
2311 for(i=0; i<B; i++) Array[i] = i - 3;
2312 exit( Array[1] != -2 );
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2317 ac_cv_c_gcc_strength_bug="no"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2322 ac_cv_c_gcc_strength_bug="yes"
2329 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2330 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2332 CFLAGS="$CFLAGS -fno-strength-reduce"
2337 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2338 echo "configure:2339: checking "whether external symbols need an underscore prefix"" >&5
2339 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2343 LIBS="conftest_asm.s $LIBS"
2344 cat > conftest_asm.s <<EOF
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2354 if (ac_test) return 1
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2359 ac_cv_c_extern_prefix="yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 ac_cv_c_extern_prefix="no"
2370 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2371 if test "$ac_cv_c_extern_prefix" = "yes"
2373 cat >> confdefs.h <<\EOF
2374 #define NEED_UNDERSCORE_PREFIX 1
2380 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2381 echo "configure:2382: checking "whether assembler accepts .string"" >&5
2382 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2386 LIBS="conftest_asm.s $LIBS"
2387 cat > conftest_asm.s <<EOF
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2400 ac_cv_c_asm_string="yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 ac_cv_c_asm_string="no"
2411 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2412 if test "$ac_cv_c_asm_string" = "yes"
2414 cat >> confdefs.h <<\EOF
2415 #define HAVE_ASM_STRING 1
2422 if test "$LIB_TARGET" = "libwine.so.1.0"
2424 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2425 echo "configure:2426: checking "whether we can build a dll"" >&5
2426 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 saved_cflags=$CFLAGS
2430 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2449 CFLAGS=$saved_cflags
2453 echo "$ac_t""$ac_cv_c_dll" 1>&6
2454 if test "$ac_cv_c_dll" = "yes"
2458 LIB_TARGET="libwine.a"
2464 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
2465 echo "configure:2466: checking "for reentrant libc"" >&5
2466 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 if test "$cross_compiling" = yes; then
2470 wine_cv_libc_reentrant=yes
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2477 int *__errno_location(){return &myerrno;}
2478 main(){connect(0,buf,255); exit(!myerrno);}
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2482 wine_cv_libc_reentrant=yes
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 wine_cv_libc_reentrant=no
2494 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2495 if test "$wine_cv_libc_reentrant" = "no"
2497 cat >> confdefs.h <<\EOF
2498 #define NO_REENTRANT_LIBC 1
2504 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2505 echo "configure:2506: checking "for reentrant X libraries"" >&5
2506 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 if test "x$with_reentrant_x" = "xno"
2511 wine_cv_x_reentrant=no
2514 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2515 if test -r $dir/libX11.so; then
2516 libX11_check="-D $dir/libX11.so"
2519 if test -r $dir/libX11.a; then
2520 libX11_check="$dir/libX11.a"
2524 if test "$libX11_check" != "none"; then
2525 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
2527 wine_cv_x_reentrant=yes
2529 wine_cv_x_reentrant=no
2532 wine_cv_x_reentrant=unknown
2537 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2538 if test "$wine_cv_x_reentrant" = "no"
2540 cat >> confdefs.h <<\EOF
2541 #define NO_REENTRANT_X11 1
2547 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
2549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_func" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char $ac_func(); below. */
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2580 eval "ac_cv_func_$ac_func=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_func_$ac_func=no"
2590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2593 cat >> confdefs.h <<EOF
2594 #define $ac_tr_func 1
2598 echo "$ac_t""no" 1>&6
2602 for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h
2604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_hdr" >&5
2607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2616 { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2617 ac_err=`grep -v '^ *+' conftest.out`
2618 if test -z "$ac_err"; then
2620 eval "ac_cv_header_$ac_safe=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_header_$ac_safe=no"
2630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2631 echo "$ac_t""yes" 1>&6
2632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2633 cat >> confdefs.h <<EOF
2634 #define $ac_tr_hdr 1
2638 echo "$ac_t""no" 1>&6
2642 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2643 echo "configure:2644: checking whether stat file-mode macros are broken" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2653 #if defined(S_ISBLK) && defined(S_IFDIR)
2654 # if S_ISBLK (S_IFDIR)
2659 #if defined(S_ISBLK) && defined(S_IFCHR)
2660 # if S_ISBLK (S_IFCHR)
2665 #if defined(S_ISLNK) && defined(S_IFREG)
2666 # if S_ISLNK (S_IFREG)
2671 #if defined(S_ISSOCK) && defined(S_IFREG)
2672 # if S_ISSOCK (S_IFREG)
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 egrep "You lose" >/dev/null 2>&1; then
2681 ac_cv_header_stat_broken=yes
2684 ac_cv_header_stat_broken=no
2690 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2691 if test $ac_cv_header_stat_broken = yes; then
2692 cat >> confdefs.h <<\EOF
2693 #define STAT_MACROS_BROKEN 1
2698 echo $ac_n "checking for working const""... $ac_c" 1>&6
2699 echo "configure:2700: checking for working const" >&5
2700 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2709 /* Ultrix mips cc rejects this. */
2710 typedef int charset[2]; const charset x;
2711 /* SunOS 4.1.1 cc rejects this. */
2712 char const *const *ccp;
2714 /* NEC SVR4.0.2 mips cc rejects this. */
2715 struct point {int x, y;};
2716 static struct point const zero = {0,0};
2717 /* AIX XL C 1.02.0.0 rejects this.
2718 It does not let you subtract one const X* pointer from another in an arm
2719 of an if-expression whose if-part is not a constant expression */
2720 const char *g = "string";
2721 ccp = &g + (g ? g-g : 0);
2722 /* HPUX 7.0 cc rejects these. */
2725 ccp = (char const *const *) p;
2726 { /* SCO 3.2v4 cc rejects this. */
2728 char const *s = 0 ? (char *) 0 : (char const *) 0;
2732 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2734 const int *foo = &x[0];
2737 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2738 typedef const int *iptr;
2742 { /* AIX XL C 1.02.0.0 rejects this saying
2743 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2744 struct s { int j; const int *ap[3]; };
2745 struct s *b; b->j = 5;
2747 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2753 if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2765 echo "$ac_t""$ac_cv_c_const" 1>&6
2766 if test $ac_cv_c_const = no; then
2767 cat >> confdefs.h <<\EOF
2773 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2774 echo "configure:2775: checking for ANSI C header files" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out`
2789 if test -z "$ac_err"; then
2791 ac_cv_header_stdc=yes
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2797 ac_cv_header_stdc=no
2801 if test $ac_cv_header_stdc = yes; then
2802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809 egrep "memchr" >/dev/null 2>&1; then
2813 ac_cv_header_stdc=no
2819 if test $ac_cv_header_stdc = yes; then
2820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "free" >/dev/null 2>&1; then
2831 ac_cv_header_stdc=no
2837 if test $ac_cv_header_stdc = yes; then
2838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2839 if test "$cross_compiling" = yes; then
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2846 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2847 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2849 int main () { int i; for (i = 0; i < 256; i++)
2850 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 ac_cv_header_stdc=no
2869 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2870 if test $ac_cv_header_stdc = yes; then
2871 cat >> confdefs.h <<\EOF
2872 #define STDC_HEADERS 1
2877 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2878 echo "configure:2879: checking for size_t" >&5
2879 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 #include <sys/types.h>
2891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2894 ac_cv_type_size_t=yes
2897 ac_cv_type_size_t=no
2902 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2903 if test $ac_cv_type_size_t = no; then
2904 cat >> confdefs.h <<\EOF
2905 #define size_t unsigned
2910 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2911 echo "configure:2912: checking size of long long" >&5
2912 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$cross_compiling" = yes; then
2916 ac_cv_sizeof_long_long=0
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2924 FILE *f=fopen("conftestval", "w");
2926 fprintf(f, "%d\n", sizeof(long long));
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2932 ac_cv_sizeof_long_long=`cat conftestval`
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2937 ac_cv_sizeof_long_long=0
2943 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2944 cat >> confdefs.h <<EOF
2945 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2951 if test $ac_cv_func_sendmsg = no; then
2952 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
2953 echo "configure:2954: checking for sendmsg in -lsocket" >&5
2954 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 ac_save_LIBS="$LIBS"
2959 LIBS="-lsocket $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2979 eval "ac_cv_lib_$ac_lib_var=no"
2982 LIBS="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2989 cat >> confdefs.h <<EOF
2990 #define $ac_tr_lib 1
2993 LIBS="-lsocket $LIBS"
2996 echo "$ac_t""no" 1>&6
3002 if test "$ac_cv_header_sys_vfs_h" = "yes"
3004 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3005 echo "configure:3006: checking "whether sys/vfs.h defines statfs"" >&5
3006 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #ifdef HAVE_SYS_PARAM_H
3015 # include <sys/param.h>
3017 #include <sys/vfs.h>
3023 memset(&stfs,0,sizeof(stfs));
3027 if { (eval echo configure:3028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029 wine_cv_sys_vfs_has_statfs=yes
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3034 wine_cv_sys_vfs_has_statfs=no
3041 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3042 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3044 cat >> confdefs.h <<\EOF
3045 #define STATFS_DEFINED_BY_SYS_VFS 1
3051 if test "$ac_cv_header_sys_statfs_h" = "yes"
3053 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
3054 echo "configure:3055: checking "whether sys/statfs.h defines statfs"" >&5
3055 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3062 #include <sys/types.h>
3063 #ifdef HAVE_SYS_PARAM_H
3064 # include <sys/param.h>
3066 #include <sys/statfs.h>
3074 if { (eval echo configure:3075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 wine_cv_sys_statfs_has_statfs=yes
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 wine_cv_sys_statfs_has_statfs=no
3088 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3089 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3091 cat >> confdefs.h <<\EOF
3092 #define STATFS_DEFINED_BY_SYS_STATFS 1
3098 if test "$ac_cv_header_sys_mount_h" = "yes"
3100 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "whether sys/mount.h defines statfs"" >&5
3102 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3109 #include <sys/types.h>
3110 #ifdef HAVE_SYS_PARAM_H
3111 # include <sys/param.h>
3113 #include <sys/mount.h>
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123 wine_cv_sys_mount_has_statfs=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 wine_cv_sys_mount_has_statfs=no
3135 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3136 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3138 cat >> confdefs.h <<\EOF
3139 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3146 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
3147 echo "configure:3148: checking "for statfs.f_bfree"" >&5
3148 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 if test "x$statfs_bfree" = "xno"
3153 wine_cv_statfs_bfree=no
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3159 #include <sys/types.h>
3160 #ifdef HAVE_SYS_PARAM_H
3161 # include <sys/param.h>
3163 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3164 # include <sys/mount.h>
3166 # ifdef STATFS_DEFINED_BY_SYS_VFS
3167 # include <sys/vfs.h>
3169 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3170 # include <sys/statfs.h>
3183 if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185 wine_cv_statfs_bfree=yes
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 wine_cv_statfs_bfree=no
3197 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3198 if test "$wine_cv_statfs_bfree" = "yes"
3200 cat >> confdefs.h <<\EOF
3201 #define STATFS_HAS_BFREE 1
3206 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3207 echo "configure:3208: checking "for statfs.f_bavail"" >&5
3208 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test "x$statfs_bavail" = "xno"
3213 wine_cv_statfs_bavail=no
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #ifdef HAVE_SYS_PARAM_H
3221 # include <sys/param.h>
3223 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3224 # include <sys/mount.h>
3226 # ifdef STATFS_DEFINED_BY_SYS_VFS
3227 # include <sys/vfs.h>
3229 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3230 # include <sys/statfs.h>
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3245 wine_cv_statfs_bavail=yes
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 wine_cv_statfs_bavail=no
3257 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3258 if test "$wine_cv_statfs_bavail" = "yes"
3260 cat >> confdefs.h <<\EOF
3261 #define STATFS_HAS_BAVAIL 1
3267 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3268 echo "configure:3269: checking "for working sigaltstack"" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test "$cross_compiling" = yes; then
3273 ac_cv_c_working_sigaltstack="no"
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 #include <time.h> /* <sys/time.h> ? bad magic without end */
3282 #include <sys/types.h>
3283 #include <sys/signal.h>
3284 #ifdef HAVE_SYS_PARAM_H
3285 # include <sys/param.h>
3287 #ifdef HAVE_SYSCALL_H
3288 # include <syscall.h>
3290 # ifdef HAVE_SYS_SYSCALL_H
3291 # include <sys/syscall.h>
3295 unsigned char *xaltstack;
3298 main(int argc,char **argv) {
3299 struct sigaltstack ss;
3301 xaltstack = malloc(16384);
3302 ss.ss_sp = xaltstack;
3305 if (sigaltstack(&ss, NULL) < 0) {
3306 /* this catches the glibc case */
3307 perror("sigaltstack");
3308 return (1); /* aka exit(1) aka fail */
3310 /* assume it works. */
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3317 ac_cv_c_working_sigaltstack="yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 ac_cv_c_working_sigaltstack="no"
3329 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3331 if test "$ac_cv_c_working_sigaltstack" = "yes"
3333 cat >> confdefs.h <<\EOF
3334 #define HAVE_WORKING_SIGALTSTACK 1
3341 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
3342 echo "configure:3343: checking "for msg_accrights in struct msghdr"" >&5
3343 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3350 #include <sys/socket.h>
3352 struct msghdr hdr; hdr.msg_accrights=0
3355 if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357 ac_cv_c_msg_accrights="yes"
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3362 ac_cv_c_msg_accrights="no"
3367 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3368 if test "$ac_cv_c_msg_accrights" = "yes"
3370 cat >> confdefs.h <<\EOF
3371 #define HAVE_MSGHDR_ACCRIGHTS 1
3377 MAKE_RULES=Make.rules
3381 cat > confcache <<\EOF
3382 # This file is a shell script that caches the results of configure
3383 # tests run on this system so they can be shared between configure
3384 # scripts and configure runs. It is not useful on other systems.
3385 # If it contains results you don't want to keep, you may remove or edit it.
3387 # By default, configure uses ./config.cache as the cache file,
3388 # creating it if it does not exist already. You can give configure
3389 # the --cache-file=FILE option to use a different cache file; that is
3390 # what configure does when it calls configure scripts in
3391 # subdirectories, so they share the cache.
3392 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3393 # config.status only pays attention to the cache file if you give it the
3394 # --recheck option to rerun configure.
3397 # The following way of writing the cache mishandles newlines in values,
3398 # but we know of no workaround that is simple, portable, and efficient.
3399 # So, don't put newlines in cache variables' values.
3400 # Ultrix sh set writes to stderr and can't be redirected directly,
3401 # and sets the high bit in the cache file unless we assign to the vars.
3403 case `(ac_space=' '; set) 2>&1` in
3405 # `set' does not quote correctly, so add quotes (double-quote substitution
3406 # turns \\\\ into \\, and sed turns \\ into \).
3408 -e "s/'/'\\\\''/g" \
3409 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3412 # `set' quotes correctly as required by POSIX, so do not add quotes.
3413 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3416 if cmp -s $cache_file confcache; then
3419 if test -w $cache_file; then
3420 echo "updating cache $cache_file"
3421 cat confcache > $cache_file
3423 echo "not updating unwritable cache $cache_file"
3428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3431 # Let make expand exec_prefix.
3432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3434 # Any assignment to VPATH causes Sun make to only execute
3435 # the first set of double-colon rules, so remove it if not needed.
3436 # If there is a colon in the path, we need to keep it.
3437 if test "x$srcdir" = x.; then
3438 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3441 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3443 DEFS=-DHAVE_CONFIG_H
3445 # Without the "./", some shells look in PATH for config.status.
3446 : ${CONFIG_STATUS=./config.status}
3448 echo creating $CONFIG_STATUS
3449 rm -f $CONFIG_STATUS
3450 cat > $CONFIG_STATUS <<EOF
3452 # Generated automatically by configure.
3453 # Run this file to recreate the current configuration.
3454 # This directory was configured as follows,
3455 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3457 # $0 $ac_configure_args
3459 # Compiler output produced by configure, useful for debugging
3460 # configure, is in ./config.log if it exists.
3462 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3465 case "\$ac_option" in
3466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3467 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3468 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3469 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3470 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3472 -help | --help | --hel | --he | --h)
3473 echo "\$ac_cs_usage"; exit 0 ;;
3474 *) echo "\$ac_cs_usage"; exit 1 ;;
3478 ac_given_srcdir=$srcdir
3479 ac_given_INSTALL="$INSTALL"
3481 trap 'rm -fr `echo "
3487 dlls/comctl32/Makefile
3489 dlls/shell32/Makefile
3490 dlls/winaspi/Makefile
3491 dlls/wnaspi32/Makefile
3492 documentation/Makefile
3495 graphics/metafiledrv/Makefile
3496 graphics/psdrv/Makefile
3497 graphics/win16drv/Makefile
3498 graphics/x11drv/Makefile
3514 programs/clock/Makefile
3515 programs/control/Makefile
3516 programs/notepad/Makefile
3517 programs/progman/Makefile
3518 programs/regtest/Makefile
3519 programs/view/Makefile
3520 programs/winhelp/Makefile
3521 programs/winver/Makefile
3531 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3533 cat >> $CONFIG_STATUS <<EOF
3535 # Protect against being on the right side of a sed subst in config.status.
3536 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3537 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3540 s%@CFLAGS@%$CFLAGS%g
3541 s%@CPPFLAGS@%$CPPFLAGS%g
3542 s%@CXXFLAGS@%$CXXFLAGS%g
3544 s%@LDFLAGS@%$LDFLAGS%g
3546 s%@exec_prefix@%$exec_prefix%g
3547 s%@prefix@%$prefix%g
3548 s%@program_transform_name@%$program_transform_name%g
3549 s%@bindir@%$bindir%g
3550 s%@sbindir@%$sbindir%g
3551 s%@libexecdir@%$libexecdir%g
3552 s%@datadir@%$datadir%g
3553 s%@sysconfdir@%$sysconfdir%g
3554 s%@sharedstatedir@%$sharedstatedir%g
3555 s%@localstatedir@%$localstatedir%g
3556 s%@libdir@%$libdir%g
3557 s%@includedir@%$includedir%g
3558 s%@oldincludedir@%$oldincludedir%g
3559 s%@infodir@%$infodir%g
3560 s%@mandir@%$mandir%g
3561 s%@PROGEXT@%$PROGEXT%g
3562 s%@MAIN_TARGET@%$MAIN_TARGET%g
3563 s%@LIB_TARGET@%$LIB_TARGET%g
3564 s%@OPTIONS@%$OPTIONS%g
3565 s%@SET_MAKE@%$SET_MAKE%g
3568 s%@X_CFLAGS@%$X_CFLAGS%g
3569 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3570 s%@X_LIBS@%$X_LIBS%g
3571 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3574 s%@LEXLIB@%$LEXLIB%g
3575 s%@RANLIB@%$RANLIB%g
3576 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3577 s%@INSTALL_DATA@%$INSTALL_DATA%g
3580 s%@DLLFLAGS@%$DLLFLAGS%g
3581 /@MAKE_RULES@/r $MAKE_RULES
3587 cat >> $CONFIG_STATUS <<\EOF
3589 # Split the substitutions into bite-sized pieces for seds with
3590 # small command number limits, like on Digital OSF/1 and HP-UX.
3591 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3592 ac_file=1 # Number of current file.
3593 ac_beg=1 # First line for current file.
3594 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3597 while $ac_more_lines; do
3598 if test $ac_beg -gt 1; then
3599 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3601 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3603 if test ! -s conftest.s$ac_file; then
3605 rm -f conftest.s$ac_file
3607 if test -z "$ac_sed_cmds"; then
3608 ac_sed_cmds="sed -f conftest.s$ac_file"
3610 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3612 ac_file=`expr $ac_file + 1`
3614 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3617 if test -z "$ac_sed_cmds"; then
3622 cat >> $CONFIG_STATUS <<EOF
3624 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3629 dlls/comctl32/Makefile
3631 dlls/shell32/Makefile
3632 dlls/winaspi/Makefile
3633 dlls/wnaspi32/Makefile
3634 documentation/Makefile
3637 graphics/metafiledrv/Makefile
3638 graphics/psdrv/Makefile
3639 graphics/win16drv/Makefile
3640 graphics/x11drv/Makefile
3656 programs/clock/Makefile
3657 programs/control/Makefile
3658 programs/notepad/Makefile
3659 programs/progman/Makefile
3660 programs/regtest/Makefile
3661 programs/view/Makefile
3662 programs/winhelp/Makefile
3663 programs/winver/Makefile
3675 cat >> $CONFIG_STATUS <<\EOF
3676 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3679 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3680 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3681 *) ac_file_in="${ac_file}.in" ;;
3684 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3686 # Remove last slash and all that follows it. Not all systems have dirname.
3687 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3688 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3689 # The file is in a subdirectory.
3690 test ! -d "$ac_dir" && mkdir "$ac_dir"
3691 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3692 # A "../" for each directory in $ac_dir_suffix.
3693 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3695 ac_dir_suffix= ac_dots=
3698 case "$ac_given_srcdir" in
3700 if test -z "$ac_dots"; then top_srcdir=.
3701 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3702 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3704 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3705 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3708 case "$ac_given_INSTALL" in
3709 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3710 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3713 echo creating "$ac_file"
3715 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3717 *Makefile*) ac_comsub="1i\\
3718 # $configure_input" ;;
3722 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3724 s%@configure_input@%$configure_input%g
3725 s%@srcdir@%$srcdir%g
3726 s%@top_srcdir@%$top_srcdir%g
3727 s%@INSTALL@%$INSTALL%g
3728 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3732 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3733 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3735 # ac_d sets the value in "#define NAME VALUE" lines.
3736 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3737 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3740 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3741 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3742 ac_uB='\([ ]\)%\1#\2define\3'
3745 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3746 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3747 ac_eB='$%\1#\2define\3'
3751 if test "${CONFIG_HEADERS+set}" != set; then
3753 cat >> $CONFIG_STATUS <<EOF
3754 CONFIG_HEADERS="include/config.h"
3756 cat >> $CONFIG_STATUS <<\EOF
3758 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3761 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3762 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3763 *) ac_file_in="${ac_file}.in" ;;
3766 echo creating $ac_file
3768 rm -f conftest.frag conftest.in conftest.out
3769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3770 cat $ac_file_inputs > conftest.in
3774 # Transform confdefs.h into a sed script conftest.vals that substitutes
3775 # the proper values into config.h.in to produce config.h. And first:
3776 # Protect against being on the right side of a sed subst in config.status.
3777 # Protect against being in an unquoted here document in config.status.
3779 cat > conftest.hdr <<\EOF
3782 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3786 sed -n -f conftest.hdr confdefs.h > conftest.vals
3789 # This sed command replaces #undef with comments. This is necessary, for
3790 # example, in the case of _POSIX_SOURCE, which is predefined and required
3791 # on some systems where configure will not decide to define it.
3792 cat >> conftest.vals <<\EOF
3793 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3796 # Break up conftest.vals because some shells have a limit on
3797 # the size of here documents, and old seds have small limits too.
3802 ac_lines=`grep -c . conftest.vals`
3803 # grep -c gives empty output for an empty file on some AIX systems.
3804 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3805 # Write a limited-size here document to conftest.frag.
3806 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3807 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3809 sed -f conftest.frag conftest.in > conftest.out
3811 mv conftest.out conftest.in
3813 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3815 mv conftest.tail conftest.vals
3819 cat >> $CONFIG_STATUS <<\EOF
3820 rm -f conftest.frag conftest.h
3821 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3822 cat conftest.in >> conftest.h
3824 if cmp -s $ac_file conftest.h 2>/dev/null; then
3825 echo "$ac_file is unchanged"
3828 # Remove last slash and all that follows it. Not all systems have dirname.
3829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3831 # The file is in a subdirectory.
3832 test ! -d "$ac_dir" && mkdir "$ac_dir"
3835 mv conftest.h $ac_file
3840 cat >> $CONFIG_STATUS <<EOF
3843 cat >> $CONFIG_STATUS <<\EOF
3847 chmod +x $CONFIG_STATUS
3848 rm -fr confdefs* $ac_clean_files
3849 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3852 if test "$wine_cv_libc_reentrant" = "no"
3855 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
3856 echo "*** thread support. Consider upgrading libc to a more recent"
3857 echo "*** reentrant version of libc."
3862 echo "Configure finished. Do 'make depend; make' to compile Wine."