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 dlopen in -ldl""... $ac_c" 1>&6
2121 echo "configure:2122: checking for dlopen in -ldl" >&5
2122 ac_lib_var=`echo dl'_'dlopen | 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"
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. */
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 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2157 cat >> confdefs.h <<EOF
2158 #define $ac_tr_lib 1
2164 echo "$ac_t""no" 1>&6
2167 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2168 echo "configure:2169: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2169 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 ac_save_LIBS="$LIBS"
2174 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2181 char XF86DGAQueryExtension();
2184 XF86DGAQueryExtension()
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2189 eval "ac_cv_lib_$ac_lib_var=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 eval "ac_cv_lib_$ac_lib_var=no"
2197 LIBS="$ac_save_LIBS"
2200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 cat >> confdefs.h <<\EOF
2203 #define HAVE_LIBXXF86DGA 1
2205 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2207 echo "$ac_t""no" 1>&6
2211 for ac_hdr in sys/soundcard.h machine/soundcard.h
2213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_hdr" >&5
2216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225 { (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226 ac_err=`grep -v '^ *+' conftest.out`
2227 if test -z "$ac_err"; then
2229 eval "ac_cv_header_$ac_safe=yes"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2235 eval "ac_cv_header_$ac_safe=no"
2239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2242 cat >> confdefs.h <<EOF
2243 #define $ac_tr_hdr 1
2247 echo "$ac_t""no" 1>&6
2252 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2253 echo "configure:2254: checking "for Open Sound System"" >&5
2254 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2261 #ifdef HAVE_SYS_SOUNDCARD_H
2262 #include <sys/soundcard.h>
2264 #ifdef HAVE_MACHINE_SOUNDCARD_H
2265 #include <machine/soundcard.h>
2271 /* check for one of the Open Sound System specific SNDCTL_ defines */
2272 #if !defined(SNDCTL_DSP_STEREO)
2273 #error No open sound system
2278 if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 ac_cv_c_opensoundsystem="yes"
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 ac_cv_c_opensoundsystem="no"
2290 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2292 if test "$ac_cv_c_opensoundsystem" = "yes"
2294 cat >> confdefs.h <<\EOF
2301 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2302 echo "configure:2303: checking "for union semun"" >&5
2303 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <sys/types.h>
2310 #include <sys/sem.h>
2315 if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2317 ac_cv_c_union_semun="yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2322 ac_cv_c_union_semun="no"
2327 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2328 if test "$ac_cv_c_union_semun" = "yes"
2330 cat >> confdefs.h <<\EOF
2331 #define HAVE_UNION_SEMUN 1
2336 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2339 if test "x${GCC}" = "xyes"
2341 CFLAGS="$CFLAGS -Wall"
2342 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2343 echo "configure:2344: checking "for gcc strength-reduce bug"" >&5
2344 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 if test "$cross_compiling" = yes; then
2348 ac_cv_c_gcc_strength_bug="yes"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 static int Array[3];
2358 for(i=0; i<B; i++) Array[i] = i - 3;
2359 exit( Array[1] != -2 );
2362 if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2364 ac_cv_c_gcc_strength_bug="no"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 ac_cv_c_gcc_strength_bug="yes"
2376 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2377 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2379 CFLAGS="$CFLAGS -fno-strength-reduce"
2384 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2385 echo "configure:2386: checking "whether external symbols need an underscore prefix"" >&5
2386 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2390 LIBS="conftest_asm.s $LIBS"
2391 cat > conftest_asm.s <<EOF
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2401 if (ac_test) return 1
2404 if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2406 ac_cv_c_extern_prefix="yes"
2408 echo "configure: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2411 ac_cv_c_extern_prefix="no"
2417 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2418 if test "$ac_cv_c_extern_prefix" = "yes"
2420 cat >> confdefs.h <<\EOF
2421 #define NEED_UNDERSCORE_PREFIX 1
2427 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2428 echo "configure:2429: checking "whether assembler accepts .string"" >&5
2429 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2433 LIBS="conftest_asm.s $LIBS"
2434 cat > conftest_asm.s <<EOF
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2447 ac_cv_c_asm_string="yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2452 ac_cv_c_asm_string="no"
2458 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2459 if test "$ac_cv_c_asm_string" = "yes"
2461 cat >> confdefs.h <<\EOF
2462 #define HAVE_ASM_STRING 1
2469 if test "$LIB_TARGET" = "libwine.so.1.0"
2471 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2472 echo "configure:2473: checking "whether we can build a dll"" >&5
2473 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 saved_cflags=$CFLAGS
2477 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2496 CFLAGS=$saved_cflags
2500 echo "$ac_t""$ac_cv_c_dll" 1>&6
2501 if test "$ac_cv_c_dll" = "yes"
2505 LIB_TARGET="libwine.a"
2511 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
2512 echo "configure:2513: checking "for reentrant libc"" >&5
2513 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 if test "$cross_compiling" = yes; then
2517 wine_cv_libc_reentrant=yes
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2524 int *__errno_location(){return &myerrno;}
2525 main(){connect(0,buf,255); exit(!myerrno);}
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2529 wine_cv_libc_reentrant=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 wine_cv_libc_reentrant=no
2541 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2542 if test "$wine_cv_libc_reentrant" = "no"
2544 cat >> confdefs.h <<\EOF
2545 #define NO_REENTRANT_LIBC 1
2551 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2552 echo "configure:2553: checking "for reentrant X libraries"" >&5
2553 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 if test "x$with_reentrant_x" = "xno"
2558 wine_cv_x_reentrant=no
2561 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2562 if test -r $dir/libX11.so; then
2563 libX11_check="-D $dir/libX11.so"
2566 if test -r $dir/libX11.a; then
2567 libX11_check="$dir/libX11.a"
2571 if test "$libX11_check" != "none"; then
2572 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
2574 wine_cv_x_reentrant=yes
2576 wine_cv_x_reentrant=no
2579 wine_cv_x_reentrant=unknown
2584 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2585 if test "$wine_cv_x_reentrant" = "no"
2587 cat >> confdefs.h <<\EOF
2588 #define NO_REENTRANT_X11 1
2594 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
2596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_func" >&5
2598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $ac_func(); below. */
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 /* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2627 eval "ac_cv_func_$ac_func=yes"
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 eval "ac_cv_func_$ac_func=no"
2637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2640 cat >> confdefs.h <<EOF
2641 #define $ac_tr_func 1
2645 echo "$ac_t""no" 1>&6
2649 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 dlfcn.h
2651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_hdr" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out`
2665 if test -z "$ac_err"; then
2667 eval "ac_cv_header_$ac_safe=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_header_$ac_safe=no"
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2680 cat >> confdefs.h <<EOF
2681 #define $ac_tr_hdr 1
2685 echo "$ac_t""no" 1>&6
2689 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2690 echo "configure:2691: checking whether stat file-mode macros are broken" >&5
2691 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 #include <sys/types.h>
2698 #include <sys/stat.h>
2700 #if defined(S_ISBLK) && defined(S_IFDIR)
2701 # if S_ISBLK (S_IFDIR)
2706 #if defined(S_ISBLK) && defined(S_IFCHR)
2707 # if S_ISBLK (S_IFCHR)
2712 #if defined(S_ISLNK) && defined(S_IFREG)
2713 # if S_ISLNK (S_IFREG)
2718 #if defined(S_ISSOCK) && defined(S_IFREG)
2719 # if S_ISSOCK (S_IFREG)
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "You lose" >/dev/null 2>&1; then
2728 ac_cv_header_stat_broken=yes
2731 ac_cv_header_stat_broken=no
2737 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2738 if test $ac_cv_header_stat_broken = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define STAT_MACROS_BROKEN 1
2745 echo $ac_n "checking for working const""... $ac_c" 1>&6
2746 echo "configure:2747: checking for working const" >&5
2747 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2756 /* Ultrix mips cc rejects this. */
2757 typedef int charset[2]; const charset x;
2758 /* SunOS 4.1.1 cc rejects this. */
2759 char const *const *ccp;
2761 /* NEC SVR4.0.2 mips cc rejects this. */
2762 struct point {int x, y;};
2763 static struct point const zero = {0,0};
2764 /* AIX XL C 1.02.0.0 rejects this.
2765 It does not let you subtract one const X* pointer from another in an arm
2766 of an if-expression whose if-part is not a constant expression */
2767 const char *g = "string";
2768 ccp = &g + (g ? g-g : 0);
2769 /* HPUX 7.0 cc rejects these. */
2772 ccp = (char const *const *) p;
2773 { /* SCO 3.2v4 cc rejects this. */
2775 char const *s = 0 ? (char *) 0 : (char const *) 0;
2779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2781 const int *foo = &x[0];
2784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2785 typedef const int *iptr;
2789 { /* AIX XL C 1.02.0.0 rejects this saying
2790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2791 struct s { int j; const int *ap[3]; };
2792 struct s *b; b->j = 5;
2794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2812 echo "$ac_t""$ac_cv_c_const" 1>&6
2813 if test $ac_cv_c_const = no; then
2814 cat >> confdefs.h <<\EOF
2820 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2821 echo "configure:2822: checking for ANSI C header files" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2834 { (eval echo configure:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2835 ac_err=`grep -v '^ *+' conftest.out`
2836 if test -z "$ac_err"; then
2838 ac_cv_header_stdc=yes
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2844 ac_cv_header_stdc=no
2848 if test $ac_cv_header_stdc = yes; then
2849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "memchr" >/dev/null 2>&1; then
2860 ac_cv_header_stdc=no
2866 if test $ac_cv_header_stdc = yes; then
2867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 egrep "free" >/dev/null 2>&1; then
2878 ac_cv_header_stdc=no
2884 if test $ac_cv_header_stdc = yes; then
2885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2886 if test "$cross_compiling" = yes; then
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2893 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2894 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2896 int main () { int i; for (i = 0; i < 256; i++)
2897 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 ac_cv_header_stdc=no
2916 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2917 if test $ac_cv_header_stdc = yes; then
2918 cat >> confdefs.h <<\EOF
2919 #define STDC_HEADERS 1
2924 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for size_t" >&5
2926 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2941 ac_cv_type_size_t=yes
2944 ac_cv_type_size_t=no
2949 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2950 if test $ac_cv_type_size_t = no; then
2951 cat >> confdefs.h <<\EOF
2952 #define size_t unsigned
2957 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2958 echo "configure:2959: checking size of long long" >&5
2959 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test "$cross_compiling" = yes; then
2963 ac_cv_sizeof_long_long=0
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2971 FILE *f=fopen("conftestval", "w");
2973 fprintf(f, "%d\n", sizeof(long long));
2977 if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2979 ac_cv_sizeof_long_long=`cat conftestval`
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2984 ac_cv_sizeof_long_long=0
2990 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2991 cat >> confdefs.h <<EOF
2992 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2998 if test $ac_cv_func_sendmsg = no; then
2999 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
3000 echo "configure:3001: checking for sendmsg in -lsocket" >&5
3001 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
3002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 ac_save_LIBS="$LIBS"
3006 LIBS="-lsocket $LIBS"
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 eval "ac_cv_lib_$ac_lib_var=no"
3029 LIBS="$ac_save_LIBS"
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3040 LIBS="-lsocket $LIBS"
3043 echo "$ac_t""no" 1>&6
3049 if test "$ac_cv_header_sys_vfs_h" = "yes"
3051 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3052 echo "configure:3053: checking "whether sys/vfs.h defines statfs"" >&5
3053 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3060 #include <sys/types.h>
3061 #ifdef HAVE_SYS_PARAM_H
3062 # include <sys/param.h>
3064 #include <sys/vfs.h>
3070 memset(&stfs,0,sizeof(stfs));
3074 if { (eval echo configure:3075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 wine_cv_sys_vfs_has_statfs=yes
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 wine_cv_sys_vfs_has_statfs=no
3088 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3089 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3091 cat >> confdefs.h <<\EOF
3092 #define STATFS_DEFINED_BY_SYS_VFS 1
3098 if test "$ac_cv_header_sys_statfs_h" = "yes"
3100 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "whether sys/statfs.h defines statfs"" >&5
3102 if eval "test \"`echo '$''{'wine_cv_sys_statfs_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/statfs.h>
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123 wine_cv_sys_statfs_has_statfs=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 wine_cv_sys_statfs_has_statfs=no
3135 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3136 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3138 cat >> confdefs.h <<\EOF
3139 #define STATFS_DEFINED_BY_SYS_STATFS 1
3145 if test "$ac_cv_header_sys_mount_h" = "yes"
3147 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
3148 echo "configure:3149: checking "whether sys/mount.h defines statfs"" >&5
3149 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3156 #include <sys/types.h>
3157 #ifdef HAVE_SYS_PARAM_H
3158 # include <sys/param.h>
3160 #include <sys/mount.h>
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 wine_cv_sys_mount_has_statfs=yes
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 wine_cv_sys_mount_has_statfs=no
3182 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3183 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3185 cat >> confdefs.h <<\EOF
3186 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3193 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
3194 echo "configure:3195: checking "for statfs.f_bfree"" >&5
3195 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 if test "x$statfs_bfree" = "xno"
3200 wine_cv_statfs_bfree=no
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3206 #include <sys/types.h>
3207 #ifdef HAVE_SYS_PARAM_H
3208 # include <sys/param.h>
3210 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3211 # include <sys/mount.h>
3213 # ifdef STATFS_DEFINED_BY_SYS_VFS
3214 # include <sys/vfs.h>
3216 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3217 # include <sys/statfs.h>
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232 wine_cv_statfs_bfree=yes
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 wine_cv_statfs_bfree=no
3244 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3245 if test "$wine_cv_statfs_bfree" = "yes"
3247 cat >> confdefs.h <<\EOF
3248 #define STATFS_HAS_BFREE 1
3253 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3254 echo "configure:3255: checking "for statfs.f_bavail"" >&5
3255 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 if test "x$statfs_bavail" = "xno"
3260 wine_cv_statfs_bavail=no
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3266 #include <sys/types.h>
3267 #ifdef HAVE_SYS_PARAM_H
3268 # include <sys/param.h>
3270 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3271 # include <sys/mount.h>
3273 # ifdef STATFS_DEFINED_BY_SYS_VFS
3274 # include <sys/vfs.h>
3276 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3277 # include <sys/statfs.h>
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 wine_cv_statfs_bavail=yes
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 wine_cv_statfs_bavail=no
3304 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3305 if test "$wine_cv_statfs_bavail" = "yes"
3307 cat >> confdefs.h <<\EOF
3308 #define STATFS_HAS_BAVAIL 1
3314 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3315 echo "configure:3316: checking "for working sigaltstack"" >&5
3316 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 if test "$cross_compiling" = yes; then
3320 ac_cv_c_working_sigaltstack="no"
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3328 #include <time.h> /* <sys/time.h> ? bad magic without end */
3329 #include <sys/types.h>
3330 #include <sys/signal.h>
3331 #ifdef HAVE_SYS_PARAM_H
3332 # include <sys/param.h>
3334 #ifdef HAVE_SYSCALL_H
3335 # include <syscall.h>
3337 # ifdef HAVE_SYS_SYSCALL_H
3338 # include <sys/syscall.h>
3342 unsigned char *xaltstack;
3345 main(int argc,char **argv) {
3346 struct sigaltstack ss;
3348 xaltstack = malloc(16384);
3349 ss.ss_sp = xaltstack;
3352 if (sigaltstack(&ss, NULL) < 0) {
3353 /* this catches the glibc case */
3354 perror("sigaltstack");
3355 return (1); /* aka exit(1) aka fail */
3357 /* assume it works. */
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3364 ac_cv_c_working_sigaltstack="yes"
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3369 ac_cv_c_working_sigaltstack="no"
3376 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3378 if test "$ac_cv_c_working_sigaltstack" = "yes"
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_WORKING_SIGALTSTACK 1
3388 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
3389 echo "configure:3390: checking "for msg_accrights in struct msghdr"" >&5
3390 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <sys/types.h>
3397 #include <sys/socket.h>
3399 struct msghdr hdr; hdr.msg_accrights=0
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 ac_cv_c_msg_accrights="yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 ac_cv_c_msg_accrights="no"
3414 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3415 if test "$ac_cv_c_msg_accrights" = "yes"
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_MSGHDR_ACCRIGHTS 1
3424 MAKE_RULES=Make.rules
3428 cat > confcache <<\EOF
3429 # This file is a shell script that caches the results of configure
3430 # tests run on this system so they can be shared between configure
3431 # scripts and configure runs. It is not useful on other systems.
3432 # If it contains results you don't want to keep, you may remove or edit it.
3434 # By default, configure uses ./config.cache as the cache file,
3435 # creating it if it does not exist already. You can give configure
3436 # the --cache-file=FILE option to use a different cache file; that is
3437 # what configure does when it calls configure scripts in
3438 # subdirectories, so they share the cache.
3439 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3440 # config.status only pays attention to the cache file if you give it the
3441 # --recheck option to rerun configure.
3444 # The following way of writing the cache mishandles newlines in values,
3445 # but we know of no workaround that is simple, portable, and efficient.
3446 # So, don't put newlines in cache variables' values.
3447 # Ultrix sh set writes to stderr and can't be redirected directly,
3448 # and sets the high bit in the cache file unless we assign to the vars.
3450 case `(ac_space=' '; set) 2>&1` in
3452 # `set' does not quote correctly, so add quotes (double-quote substitution
3453 # turns \\\\ into \\, and sed turns \\ into \).
3455 -e "s/'/'\\\\''/g" \
3456 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3459 # `set' quotes correctly as required by POSIX, so do not add quotes.
3460 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3463 if cmp -s $cache_file confcache; then
3466 if test -w $cache_file; then
3467 echo "updating cache $cache_file"
3468 cat confcache > $cache_file
3470 echo "not updating unwritable cache $cache_file"
3475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3478 # Let make expand exec_prefix.
3479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3481 # Any assignment to VPATH causes Sun make to only execute
3482 # the first set of double-colon rules, so remove it if not needed.
3483 # If there is a colon in the path, we need to keep it.
3484 if test "x$srcdir" = x.; then
3485 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3488 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3490 DEFS=-DHAVE_CONFIG_H
3492 # Without the "./", some shells look in PATH for config.status.
3493 : ${CONFIG_STATUS=./config.status}
3495 echo creating $CONFIG_STATUS
3496 rm -f $CONFIG_STATUS
3497 cat > $CONFIG_STATUS <<EOF
3499 # Generated automatically by configure.
3500 # Run this file to recreate the current configuration.
3501 # This directory was configured as follows,
3502 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3504 # $0 $ac_configure_args
3506 # Compiler output produced by configure, useful for debugging
3507 # configure, is in ./config.log if it exists.
3509 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3512 case "\$ac_option" in
3513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3514 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3515 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3516 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3517 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3519 -help | --help | --hel | --he | --h)
3520 echo "\$ac_cs_usage"; exit 0 ;;
3521 *) echo "\$ac_cs_usage"; exit 1 ;;
3525 ac_given_srcdir=$srcdir
3526 ac_given_INSTALL="$INSTALL"
3528 trap 'rm -fr `echo "
3534 dlls/comctl32/Makefile
3536 dlls/shell32/Makefile
3537 dlls/winaspi/Makefile
3538 dlls/wnaspi32/Makefile
3539 documentation/Makefile
3542 graphics/metafiledrv/Makefile
3543 graphics/psdrv/Makefile
3544 graphics/win16drv/Makefile
3545 graphics/x11drv/Makefile
3561 programs/clock/Makefile
3562 programs/control/Makefile
3563 programs/notepad/Makefile
3564 programs/progman/Makefile
3565 programs/regtest/Makefile
3566 programs/view/Makefile
3567 programs/winhelp/Makefile
3568 programs/winver/Makefile
3578 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3580 cat >> $CONFIG_STATUS <<EOF
3582 # Protect against being on the right side of a sed subst in config.status.
3583 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3584 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3587 s%@CFLAGS@%$CFLAGS%g
3588 s%@CPPFLAGS@%$CPPFLAGS%g
3589 s%@CXXFLAGS@%$CXXFLAGS%g
3591 s%@LDFLAGS@%$LDFLAGS%g
3593 s%@exec_prefix@%$exec_prefix%g
3594 s%@prefix@%$prefix%g
3595 s%@program_transform_name@%$program_transform_name%g
3596 s%@bindir@%$bindir%g
3597 s%@sbindir@%$sbindir%g
3598 s%@libexecdir@%$libexecdir%g
3599 s%@datadir@%$datadir%g
3600 s%@sysconfdir@%$sysconfdir%g
3601 s%@sharedstatedir@%$sharedstatedir%g
3602 s%@localstatedir@%$localstatedir%g
3603 s%@libdir@%$libdir%g
3604 s%@includedir@%$includedir%g
3605 s%@oldincludedir@%$oldincludedir%g
3606 s%@infodir@%$infodir%g
3607 s%@mandir@%$mandir%g
3608 s%@PROGEXT@%$PROGEXT%g
3609 s%@MAIN_TARGET@%$MAIN_TARGET%g
3610 s%@LIB_TARGET@%$LIB_TARGET%g
3611 s%@OPTIONS@%$OPTIONS%g
3612 s%@SET_MAKE@%$SET_MAKE%g
3615 s%@X_CFLAGS@%$X_CFLAGS%g
3616 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3617 s%@X_LIBS@%$X_LIBS%g
3618 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3621 s%@LEXLIB@%$LEXLIB%g
3622 s%@RANLIB@%$RANLIB%g
3623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3624 s%@INSTALL_DATA@%$INSTALL_DATA%g
3627 s%@DLLFLAGS@%$DLLFLAGS%g
3628 /@MAKE_RULES@/r $MAKE_RULES
3634 cat >> $CONFIG_STATUS <<\EOF
3636 # Split the substitutions into bite-sized pieces for seds with
3637 # small command number limits, like on Digital OSF/1 and HP-UX.
3638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3639 ac_file=1 # Number of current file.
3640 ac_beg=1 # First line for current file.
3641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3644 while $ac_more_lines; do
3645 if test $ac_beg -gt 1; then
3646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3650 if test ! -s conftest.s$ac_file; then
3652 rm -f conftest.s$ac_file
3654 if test -z "$ac_sed_cmds"; then
3655 ac_sed_cmds="sed -f conftest.s$ac_file"
3657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3659 ac_file=`expr $ac_file + 1`
3661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3664 if test -z "$ac_sed_cmds"; then
3669 cat >> $CONFIG_STATUS <<EOF
3671 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3676 dlls/comctl32/Makefile
3678 dlls/shell32/Makefile
3679 dlls/winaspi/Makefile
3680 dlls/wnaspi32/Makefile
3681 documentation/Makefile
3684 graphics/metafiledrv/Makefile
3685 graphics/psdrv/Makefile
3686 graphics/win16drv/Makefile
3687 graphics/x11drv/Makefile
3703 programs/clock/Makefile
3704 programs/control/Makefile
3705 programs/notepad/Makefile
3706 programs/progman/Makefile
3707 programs/regtest/Makefile
3708 programs/view/Makefile
3709 programs/winhelp/Makefile
3710 programs/winver/Makefile
3722 cat >> $CONFIG_STATUS <<\EOF
3723 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3728 *) ac_file_in="${ac_file}.in" ;;
3731 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3733 # Remove last slash and all that follows it. Not all systems have dirname.
3734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3736 # The file is in a subdirectory.
3737 test ! -d "$ac_dir" && mkdir "$ac_dir"
3738 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3739 # A "../" for each directory in $ac_dir_suffix.
3740 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3742 ac_dir_suffix= ac_dots=
3745 case "$ac_given_srcdir" in
3747 if test -z "$ac_dots"; then top_srcdir=.
3748 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3749 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3751 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3752 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3755 case "$ac_given_INSTALL" in
3756 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3757 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3760 echo creating "$ac_file"
3762 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3764 *Makefile*) ac_comsub="1i\\
3765 # $configure_input" ;;
3769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3771 s%@configure_input@%$configure_input%g
3772 s%@srcdir@%$srcdir%g
3773 s%@top_srcdir@%$top_srcdir%g
3774 s%@INSTALL@%$INSTALL%g
3775 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3782 # ac_d sets the value in "#define NAME VALUE" lines.
3783 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3784 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3787 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3788 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3789 ac_uB='\([ ]\)%\1#\2define\3'
3792 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3793 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3794 ac_eB='$%\1#\2define\3'
3798 if test "${CONFIG_HEADERS+set}" != set; then
3800 cat >> $CONFIG_STATUS <<EOF
3801 CONFIG_HEADERS="include/config.h"
3803 cat >> $CONFIG_STATUS <<\EOF
3805 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3808 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3809 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3810 *) ac_file_in="${ac_file}.in" ;;
3813 echo creating $ac_file
3815 rm -f conftest.frag conftest.in conftest.out
3816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3817 cat $ac_file_inputs > conftest.in
3821 # Transform confdefs.h into a sed script conftest.vals that substitutes
3822 # the proper values into config.h.in to produce config.h. And first:
3823 # Protect against being on the right side of a sed subst in config.status.
3824 # Protect against being in an unquoted here document in config.status.
3826 cat > conftest.hdr <<\EOF
3829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3833 sed -n -f conftest.hdr confdefs.h > conftest.vals
3836 # This sed command replaces #undef with comments. This is necessary, for
3837 # example, in the case of _POSIX_SOURCE, which is predefined and required
3838 # on some systems where configure will not decide to define it.
3839 cat >> conftest.vals <<\EOF
3840 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3843 # Break up conftest.vals because some shells have a limit on
3844 # the size of here documents, and old seds have small limits too.
3849 ac_lines=`grep -c . conftest.vals`
3850 # grep -c gives empty output for an empty file on some AIX systems.
3851 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3852 # Write a limited-size here document to conftest.frag.
3853 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3854 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3856 sed -f conftest.frag conftest.in > conftest.out
3858 mv conftest.out conftest.in
3860 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3862 mv conftest.tail conftest.vals
3866 cat >> $CONFIG_STATUS <<\EOF
3867 rm -f conftest.frag conftest.h
3868 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3869 cat conftest.in >> conftest.h
3871 if cmp -s $ac_file conftest.h 2>/dev/null; then
3872 echo "$ac_file is unchanged"
3875 # Remove last slash and all that follows it. Not all systems have dirname.
3876 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3878 # The file is in a subdirectory.
3879 test ! -d "$ac_dir" && mkdir "$ac_dir"
3882 mv conftest.h $ac_file
3887 cat >> $CONFIG_STATUS <<EOF
3890 cat >> $CONFIG_STATUS <<\EOF
3894 chmod +x $CONFIG_STATUS
3895 rm -fr confdefs* $ac_clean_files
3896 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3899 if test "$wine_cv_libc_reentrant" = "no"
3902 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
3903 echo "*** thread support. Consider upgrading libc to a more recent"
3904 echo "*** reentrant version of libc."
3909 echo "Configure finished. Do 'make depend; make' to compile Wine."