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 ALT_LINK="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS=yes # the TRACE() macro
566 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; 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"
615 if test "$DEBUG_MSGS" = "no"
617 cat >> confdefs.h <<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h <<\EOF
622 #define NO_TRACE_MSGS 1
626 if test "$TRACE_MSGS" = "no"
628 cat >> confdefs.h <<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 cat > conftestmake <<\EOF
644 @echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_${ac_make}_set=yes
651 eval ac_cv_prog_make_${ac_make}_set=no
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
659 echo "$ac_t""no" 1>&6
660 SET_MAKE="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
674 for ac_dir in $PATH; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 for ac_dir in $PATH; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
725 set dummy "$ac_dir/$ac_word" "$@"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
736 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 cat > conftest.$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no; then
774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling=$ac_cv_prog_cc_cross
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftest.c <<EOF
791 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
830 test "${CFLAGS+set}" = set || CFLAGS="-g"
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.$ac_ext >&5
864 CPP="${CC-cc} -E -traditional-cpp"
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
886 ac_cv_prog_CPP="$CPP"
888 CPP="$ac_cv_prog_CPP"
890 ac_cv_prog_CPP="$CPP"
892 echo "$ac_t""$CPP" 1>&6
894 # If we find X, set shell vars x_includes and x_libraries to the
895 # paths, otherwise set no_x=yes.
896 # Uses ac_ vars as temps to allow command line to override cache and checks.
897 # --without-x overrides everything else, but does not touch the cache.
898 echo $ac_n "checking for X""... $ac_c" 1>&6
899 echo "configure:900: checking for X" >&5
901 # Check whether --with-x or --without-x was given.
902 if test "${with_x+set}" = set; then
907 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
908 if test "x$with_x" = xno; then
909 # The user explicitly disabled X.
912 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
913 # Both variables are already set.
916 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 # One or both of the vars are not set, and there is no cached value.
920 ac_x_includes=NO ac_x_libraries=NO
922 if mkdir conftestdir; then
924 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
925 cat > Imakefile <<'EOF'
927 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
933 for ac_extension in a so sl; do
934 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
935 test -f $ac_im_libdir/libX11.$ac_extension; then
936 ac_im_usrlibdir=$ac_im_libdir; break
939 # Screen out bogus values from the imake configuration. They are
940 # bogus both because they are the default anyway, and because
941 # using them would break gcc on systems where it needs fixed includes.
942 case "$ac_im_incroot" in
944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
946 case "$ac_im_usrlibdir" in
948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
955 if test "$ac_x_includes" = NO; then
956 # Guess where to find include files, by looking for this one X11 .h file.
957 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
959 # First, try using that file with no special directory specified.
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 #include <$x_direct_test_include>
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
970 # We can compile using X headers with no special include directory.
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
977 # Look for the header file in a standard set of common directories.
978 # Check X11 before X11Rn because it is often a symlink to the current release.
990 /usr/local/X11/include \
991 /usr/local/X11R6/include \
992 /usr/local/X11R5/include \
993 /usr/local/X11R4/include \
995 /usr/local/include/X11 \
996 /usr/local/include/X11R6 \
997 /usr/local/include/X11R5 \
998 /usr/local/include/X11R4 \
1002 /usr/XFree86/include/X11 \
1005 /usr/local/include \
1006 /usr/unsupported/include \
1007 /usr/athena/include \
1008 /usr/local/x11r5/include \
1009 /usr/lpp/Xamples/include \
1011 /usr/openwin/include \
1012 /usr/openwin/share/include \
1015 if test -r "$ac_dir/$x_direct_test_include"; then
1016 ac_x_includes=$ac_dir
1022 fi # $ac_x_includes = NO
1024 if test "$ac_x_libraries" = NO; then
1025 # Check for the libraries.
1027 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1028 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1030 # See if we find them without any special options.
1031 # Don't add to $LIBS permanently.
1032 ac_save_LIBS="$LIBS"
1033 LIBS="-l$x_direct_test_library $LIBS"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1039 ${x_direct_test_function}()
1042 if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1044 LIBS="$ac_save_LIBS"
1045 # We can link X programs with no special library path.
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1051 LIBS="$ac_save_LIBS"
1052 # First see if replacing the include by lib works.
1053 # Check X11 before X11Rn because it is often a symlink to the current release.
1054 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1065 /usr/local/X11/lib \
1066 /usr/local/X11R6/lib \
1067 /usr/local/X11R5/lib \
1068 /usr/local/X11R4/lib \
1070 /usr/local/lib/X11 \
1071 /usr/local/lib/X11R6 \
1072 /usr/local/lib/X11R5 \
1073 /usr/local/lib/X11R4 \
1077 /usr/XFree86/lib/X11 \
1081 /usr/unsupported/lib \
1083 /usr/local/x11r5/lib \
1084 /usr/lpp/Xamples/lib \
1088 /usr/openwin/share/lib \
1091 for ac_extension in a so sl; do
1092 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1093 ac_x_libraries=$ac_dir
1100 fi # $ac_x_libraries = NO
1102 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1103 # Didn't find X anywhere. Cache the known absence of X.
1104 ac_cv_have_x="have_x=no"
1106 # Record where we found X for the cache.
1107 ac_cv_have_x="have_x=yes \
1108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112 eval "$ac_cv_have_x"
1115 if test "$have_x" != yes; then
1116 echo "$ac_t""$have_x" 1>&6
1119 # If each of the values was on the command line, it overrides each guess.
1120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1122 # Update the cache value to reflect the command line values.
1123 ac_cv_have_x="have_x=yes \
1124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1125 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1128 if test "$no_x" = yes; then
1129 # Not all programs may use this symbol, but it does not hurt to define it.
1130 cat >> confdefs.h <<\EOF
1131 #define X_DISPLAY_MISSING 1
1134 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1136 if test -n "$x_includes"; then
1137 X_CFLAGS="$X_CFLAGS -I$x_includes"
1140 # It would also be nice to do this for all -L options, not just this one.
1141 if test -n "$x_libraries"; then
1142 X_LIBS="$X_LIBS -L$x_libraries"
1143 # For Solaris; some versions of Sun CC require a space after -R and
1144 # others require no space. Words are not sufficient . . . .
1145 case "`(uname -sr) 2>/dev/null`" in
1147 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether -R must be followed by a space" >&5
1149 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1168 if test $ac_R_nospace = yes; then
1169 echo "$ac_t""no" 1>&6
1170 X_LIBS="$X_LIBS -R$x_libraries"
1172 LIBS="$ac_xsave_LIBS -R $x_libraries"
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1191 if test $ac_R_space = yes; then
1192 echo "$ac_t""yes" 1>&6
1193 X_LIBS="$X_LIBS -R $x_libraries"
1195 echo "$ac_t""neither works" 1>&6
1198 LIBS="$ac_xsave_LIBS"
1202 # Check for system-dependent libraries X programs must link with.
1203 # Do this before checking for the system-independent R6 libraries
1204 # (-lICE), since we may need -lsocket or whatever for X linking.
1206 if test "$ISC" = yes; then
1207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1209 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1210 # libraries were built with DECnet support. And karl@cs.umb.edu says
1211 # the Alpha needs dnet_stub (dnet does not exist).
1212 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1213 echo "configure:1214: checking for dnet_ntoa in -ldnet" >&5
1214 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 ac_save_LIBS="$LIBS"
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1239 eval "ac_cv_lib_$ac_lib_var=no"
1242 LIBS="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1249 echo "$ac_t""no" 1>&6
1252 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1253 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1254 echo "configure:1255: checking for dnet_ntoa in -ldnet_stub" >&5
1255 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 ac_save_LIBS="$LIBS"
1260 LIBS="-ldnet_stub $LIBS"
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264 /* Override any gcc2 internal prototype to avoid an error. */
1265 /* We use char because int might match the return type of a gcc2
1266 builtin and then its argument prototype would still apply. */
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 eval "ac_cv_lib_$ac_lib_var=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1280 eval "ac_cv_lib_$ac_lib_var=no"
1283 LIBS="$ac_save_LIBS"
1286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1290 echo "$ac_t""no" 1>&6
1295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1296 # to get the SysV transport functions.
1297 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # The nsl library prevents programs from opening the X display
1300 # on Irix 5.2, according to dickey@clark.net.
1301 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1302 echo "configure:1303: checking for gethostbyname" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char gethostbyname(); below. */
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char gethostbyname();
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1332 eval "ac_cv_func_gethostbyname=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1337 eval "ac_cv_func_gethostbyname=no"
1342 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 if test $ac_cv_func_gethostbyname = no; then
1350 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1351 echo "configure:1352: checking for gethostbyname in -lnsl" >&5
1352 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS="$LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1364 char gethostbyname();
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1387 echo "$ac_t""no" 1>&6
1392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1393 # socket/setsockopt and other routines are undefined under SCO ODT
1394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1395 # on later versions), says simon@lia.di.epfl.ch: it contains
1396 # gethostby* variants that don't use the nameserver (or something).
1397 # -lsocket must be given before -lnsl if both are needed.
1398 # We assume that if connect needs -lnsl, so does gethostbyname.
1399 echo $ac_n "checking for connect""... $ac_c" 1>&6
1400 echo "configure:1401: checking for connect" >&5
1401 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* System header to define __stub macros and hopefully few prototypes,
1408 which can conflict with char connect(); below. */
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_connect) || defined (__stub___connect)
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1430 eval "ac_cv_func_connect=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1435 eval "ac_cv_func_connect=no"
1440 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 if test $ac_cv_func_connect = no; then
1448 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1449 echo "configure:1450: checking for connect in -lsocket" >&5
1450 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_save_LIBS="$LIBS"
1455 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 eval "ac_cv_lib_$ac_lib_var=no"
1478 LIBS="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1485 echo "$ac_t""no" 1>&6
1490 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1491 echo $ac_n "checking for remove""... $ac_c" 1>&6
1492 echo "configure:1493: checking for remove" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char remove(); below. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_remove) || defined (__stub___remove)
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1522 eval "ac_cv_func_remove=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1527 eval "ac_cv_func_remove=no"
1532 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1536 echo "$ac_t""no" 1>&6
1539 if test $ac_cv_func_remove = no; then
1540 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for remove in -lposix" >&5
1542 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_save_LIBS="$LIBS"
1547 LIBS="-lposix $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 eval "ac_cv_lib_$ac_lib_var=no"
1570 LIBS="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1577 echo "$ac_t""no" 1>&6
1582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1583 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1584 echo "configure:1585: checking for shmat" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char shmat(); below. */
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_shmat) || defined (__stub___shmat)
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1614 eval "ac_cv_func_shmat=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 eval "ac_cv_func_shmat=no"
1624 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 if test $ac_cv_func_shmat = no; then
1632 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1633 echo "configure:1634: checking for shmat in -lipc" >&5
1634 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 ac_save_LIBS="$LIBS"
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1654 eval "ac_cv_lib_$ac_lib_var=yes"
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 eval "ac_cv_lib_$ac_lib_var=no"
1662 LIBS="$ac_save_LIBS"
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1669 echo "$ac_t""no" 1>&6
1675 # Check for libraries that X11R6 Xt/Xaw programs need.
1676 ac_save_LDFLAGS="$LDFLAGS"
1677 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1679 # check for ICE first), but we must link in the order -lSM -lICE or
1680 # we get undefined symbols. So assume we have SM if we have ICE.
1681 # These have to be linked with before -lX11, unlike the other
1682 # libraries we check for below, so use a different variable.
1683 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1684 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1685 echo "configure:1686: checking for IceConnectionNumber in -lICE" >&5
1686 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS="$LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char IceConnectionNumber();
1701 IceConnectionNumber()
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 eval "ac_cv_lib_$ac_lib_var=no"
1714 LIBS="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1721 echo "$ac_t""no" 1>&6
1724 LDFLAGS="$ac_save_LDFLAGS"
1728 for ac_prog in 'bison -y' byacc
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$YACC"; then
1738 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1741 for ac_dir in $PATH; do
1742 test -z "$ac_dir" && ac_dir=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_prog_YACC="$ac_prog"
1751 YACC="$ac_cv_prog_YACC"
1752 if test -n "$YACC"; then
1753 echo "$ac_t""$YACC" 1>&6
1755 echo "$ac_t""no" 1>&6
1758 test -n "$YACC" && break
1760 test -n "$YACC" || YACC="yacc"
1762 # Extract the first word of "flex", so it can be a program name with args.
1763 set dummy flex; ac_word=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1773 for ac_dir in $PATH; do
1774 test -z "$ac_dir" && ac_dir=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX="flex"
1781 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1784 LEX="$ac_cv_prog_LEX"
1785 if test -n "$LEX"; then
1786 echo "$ac_t""$LEX" 1>&6
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$LEXLIB"
1797 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1798 echo "configure:1799: checking for yywrap in -l$ac_lib" >&5
1799 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 ac_save_LIBS="$LIBS"
1804 LIBS="-l$ac_lib $LIBS"
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 eval "ac_cv_lib_$ac_lib_var=no"
1827 LIBS="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1839 # Extract the first word of "ranlib", so it can be a program name with args.
1840 set dummy ranlib; ac_word=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 if test -n "$RANLIB"; then
1847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1850 for ac_dir in $PATH; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB="ranlib"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1861 RANLIB="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 # Find a good install program. We prefer a C program (faster),
1869 # so one script is as good as another. But avoid the broken or
1870 # incompatible versions:
1871 # SysV /etc/install, /usr/sbin/install
1872 # SunOS /usr/etc/install
1873 # IRIX /sbin/install
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1879 echo "configure:1880: checking for a BSD compatible install" >&5
1880 if test -z "$INSTALL"; then
1881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1885 for ac_dir in $PATH; do
1886 # Account for people who put trailing slashes in PATH elements.
1888 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 for ac_prog in ginstall installbsd scoinst install; do
1892 if test -f $ac_dir/$ac_prog; then
1893 if test $ac_prog = install &&
1894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 ac_cv_path_install="$ac_dir/$ac_prog -c"
1910 if test "${ac_cv_path_install+set}" = set; then
1911 INSTALL="$ac_cv_path_install"
1913 # As a last resort, use the slow shell script. We don't cache a
1914 # path for INSTALL within a source directory, because that will
1915 # break other packages using the cache if that directory is
1916 # removed, or if the path is relative.
1917 INSTALL="$ac_install_sh"
1920 echo "$ac_t""$INSTALL" 1>&6
1922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1923 # It thinks the first close brace ends the variable substitution.
1924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ln -s works" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1934 if ln -s X conftestdata 2>/dev/null
1937 ac_cv_prog_LN_S="ln -s"
1942 LN_S="$ac_cv_prog_LN_S"
1943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1944 echo "$ac_t""yes" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "c2man", so it can be a program name with args.
1950 set dummy c2man; ac_word=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 if test -n "$C2MAN"; then
1957 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1960 for ac_dir in $PATH; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_C2MAN="c2man"
1968 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1971 C2MAN="$ac_cv_prog_C2MAN"
1972 if test -n "$C2MAN"; then
1973 echo "$ac_t""$C2MAN" 1>&6
1975 echo "$ac_t""no" 1>&6
1978 # Extract the first word of "ldconfig", so it can be a program name with args.
1979 set dummy ldconfig; ac_word=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1991 for ac_dir in /sbin:/usr/sbin:$PATH$ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1999 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2003 LDCONFIG="$ac_cv_path_LDCONFIG"
2004 if test -n "$LDCONFIG"; then
2005 echo "$ac_t""$LDCONFIG" 1>&6
2007 echo "$ac_t""no" 1>&6
2011 for ac_prog in lclint lint
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_word" >&5
2017 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 if test -n "$LINT"; then
2021 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2024 for ac_dir in $PATH; do
2025 test -z "$ac_dir" && ac_dir=.
2026 if test -f $ac_dir/$ac_word; then
2027 ac_cv_prog_LINT="$ac_prog"
2034 LINT="$ac_cv_prog_LINT"
2035 if test -n "$LINT"; then
2036 echo "$ac_t""$LINT" 1>&6
2038 echo "$ac_t""no" 1>&6
2041 test -n "$LINT" && break
2044 if test "$LINT" = "lint"
2046 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2052 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2053 echo "configure:2054: checking for sqrt in -lm" >&5
2054 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 ac_save_LIBS="$LIBS"
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* Override any gcc2 internal prototype to avoid an error. */
2064 /* We use char because int might match the return type of a gcc2
2065 builtin and then its argument prototype would still apply. */
2072 if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2074 eval "ac_cv_lib_$ac_lib_var=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2079 eval "ac_cv_lib_$ac_lib_var=no"
2082 LIBS="$ac_save_LIBS"
2085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2089 cat >> confdefs.h <<EOF
2090 #define $ac_tr_lib 1
2096 echo "$ac_t""no" 1>&6
2099 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2100 echo "configure:2101: checking for i386_set_ldt in -li386" >&5
2101 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 ac_save_LIBS="$LIBS"
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* Override any gcc2 internal prototype to avoid an error. */
2111 /* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2113 char i386_set_ldt();
2119 if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2121 eval "ac_cv_lib_$ac_lib_var=yes"
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 eval "ac_cv_lib_$ac_lib_var=no"
2129 LIBS="$ac_save_LIBS"
2132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2134 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2136 cat >> confdefs.h <<EOF
2137 #define $ac_tr_lib 1
2143 echo "$ac_t""no" 1>&6
2146 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2147 echo "configure:2148: checking for _oss_ioctl in -lossaudio" >&5
2148 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 ac_save_LIBS="$LIBS"
2153 LIBS="-lossaudio $LIBS"
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2183 cat >> confdefs.h <<EOF
2184 #define $ac_tr_lib 1
2187 LIBS="-lossaudio $LIBS"
2190 echo "$ac_t""no" 1>&6
2193 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2194 echo "configure:2195: checking for iswalnum in -lw" >&5
2195 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 ac_save_LIBS="$LIBS"
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* Override any gcc2 internal prototype to avoid an error. */
2205 /* We use char because int might match the return type of a gcc2
2206 builtin and then its argument prototype would still apply. */
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_lib 1
2237 echo "$ac_t""no" 1>&6
2240 for ac_func in gethostbyname
2242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_func" >&5
2244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $ac_func(); below. */
2253 /* Override any gcc2 internal prototype to avoid an error. */
2254 /* We use char because int might match the return type of a gcc2
2255 builtin and then its argument prototype would still apply. */
2260 /* The GNU C library defines this for functions which it implements
2261 to always fail with ENOSYS. Some functions are actually named
2262 something starting with __ and the normal name is an alias. */
2263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2271 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2273 eval "ac_cv_func_$ac_func=yes"
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 eval "ac_cv_func_$ac_func=no"
2283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2286 cat >> confdefs.h <<EOF
2287 #define $ac_tr_func 1
2291 echo "$ac_t""no" 1>&6
2292 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2293 echo "configure:2294: checking for gethostbyname in -lnsl" >&5
2294 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 ac_save_LIBS="$LIBS"
2299 LIBS="-lnsl -lsocket $LIBS"
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* Override any gcc2 internal prototype to avoid an error. */
2304 /* We use char because int might match the return type of a gcc2
2305 builtin and then its argument prototype would still apply. */
2306 char gethostbyname();
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 eval "ac_cv_lib_$ac_lib_var=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_lib_$ac_lib_var=no"
2322 LIBS="$ac_save_LIBS"
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2329 echo "$ac_t""no" 1>&6
2330 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2331 echo "configure:2332: checking for gethostbyname in -lsocket" >&5
2332 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 ac_save_LIBS="$LIBS"
2337 LIBS="-lsocket -lnsl $LIBS"
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* Override any gcc2 internal prototype to avoid an error. */
2342 /* We use char because int might match the return type of a gcc2
2343 builtin and then its argument prototype would still apply. */
2344 char gethostbyname();
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2352 eval "ac_cv_lib_$ac_lib_var=yes"
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2357 eval "ac_cv_lib_$ac_lib_var=no"
2360 LIBS="$ac_save_LIBS"
2363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2367 echo "$ac_t""no" 1>&6
2375 for ac_func in connect
2377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_func" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $ac_func(); below. */
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2408 eval "ac_cv_func_$ac_func=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 eval "ac_cv_func_$ac_func=no"
2418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_func 1
2426 echo "$ac_t""no" 1>&6
2427 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2428 echo "configure:2429: checking for connect in -lsocket" >&5
2429 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 ac_save_LIBS="$LIBS"
2434 LIBS="-lsocket $LIBS"
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h <<EOF
2465 #define $ac_tr_lib 1
2468 LIBS="-lsocket $LIBS"
2471 echo "$ac_t""no" 1>&6
2477 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2478 echo "configure:2479: checking for setrunelocale in -lxpg4" >&5
2479 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 ac_save_LIBS="$LIBS"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2491 char setrunelocale();
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 eval "ac_cv_lib_$ac_lib_var=no"
2507 LIBS="$ac_save_LIBS"
2510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2514 cat >> confdefs.h <<EOF
2515 #define $ac_tr_lib 1
2521 echo "$ac_t""no" 1>&6
2524 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2525 echo "configure:2526: checking for mmap in -lmmap" >&5
2526 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 ac_save_LIBS="$LIBS"
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 eval "ac_cv_lib_$ac_lib_var=no"
2554 LIBS="$ac_save_LIBS"
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_lib 1
2568 echo "$ac_t""no" 1>&6
2572 for ac_hdr in dlfcn.h
2574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_hdr" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err=`grep -v '^ *+' conftest.out`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2603 cat >> confdefs.h <<EOF
2604 #define $ac_tr_hdr 1
2606 for ac_func in dlopen
2608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_func" >&5
2610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $ac_func(); below. */
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 /* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2626 /* The GNU C library defines this for functions which it implements
2627 to always fail with ENOSYS. Some functions are actually named
2628 something starting with __ and the normal name is an alias. */
2629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2639 eval "ac_cv_func_$ac_func=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 eval "ac_cv_func_$ac_func=no"
2649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652 cat >> confdefs.h <<EOF
2653 #define $ac_tr_func 1
2655 cat >> confdefs.h <<\EOF
2656 #define HAVE_DL_API 1
2660 echo "$ac_t""no" 1>&6
2661 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2662 echo "configure:2663: checking for dlopen in -ldl" >&5
2663 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_save_LIBS="$LIBS"
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2683 eval "ac_cv_lib_$ac_lib_var=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 eval "ac_cv_lib_$ac_lib_var=no"
2691 LIBS="$ac_save_LIBS"
2694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 cat >> confdefs.h <<\EOF
2697 #define HAVE_DL_API 1
2703 echo "$ac_t""no" 1>&6
2712 echo "$ac_t""no" 1>&6
2717 if test "$have_x" = "yes"
2720 ac_save_CPPFLAGS="$CPPFLAGS"
2721 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2723 for ac_hdr in X11/xpm.h
2725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_hdr" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out`
2739 if test -z "$ac_err"; then
2741 eval "ac_cv_header_$ac_safe=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 eval "ac_cv_header_$ac_safe=no"
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2754 cat >> confdefs.h <<EOF
2755 #define $ac_tr_hdr 1
2759 echo "$ac_t""no" 1>&6
2763 if test "$ac_cv_header_X11_xpm_h" = "yes"
2765 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2766 echo "configure:2767: checking for XpmCreatePixmapFromData in -lXpm" >&5
2767 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 ac_save_LIBS="$LIBS"
2772 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2779 char XpmCreatePixmapFromData();
2782 XpmCreatePixmapFromData()
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2787 eval "ac_cv_lib_$ac_lib_var=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_lib_$ac_lib_var=no"
2795 LIBS="$ac_save_LIBS"
2798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_LIBXXPM 1
2803 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2805 echo "$ac_t""no" 1>&6
2810 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_hdr" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out`
2826 if test -z "$ac_err"; then
2828 eval "ac_cv_header_$ac_safe=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2834 eval "ac_cv_header_$ac_safe=no"
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2841 cat >> confdefs.h <<EOF
2842 #define $ac_tr_hdr 1
2846 echo "$ac_t""no" 1>&6
2850 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2852 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2853 echo "configure:2854: checking for XShmQueryExtension in -lXext" >&5
2854 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 ac_save_LIBS="$LIBS"
2859 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 /* Override any gcc2 internal prototype to avoid an error. */
2864 /* We use char because int might match the return type of a gcc2
2865 builtin and then its argument prototype would still apply. */
2866 char XShmQueryExtension();
2869 XShmQueryExtension()
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2874 eval "ac_cv_lib_$ac_lib_var=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 eval "ac_cv_lib_$ac_lib_var=no"
2882 LIBS="$ac_save_LIBS"
2885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 cat >> confdefs.h <<\EOF
2888 #define HAVE_LIBXXSHM 1
2892 echo "$ac_t""no" 1>&6
2896 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_hdr" >&5
2901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2910 { (eval echo configure:2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2911 ac_err=`grep -v '^ *+' conftest.out`
2912 if test -z "$ac_err"; then
2914 eval "ac_cv_header_$ac_safe=yes"
2917 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5
2920 eval "ac_cv_header_$ac_safe=no"
2924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2927 cat >> confdefs.h <<EOF
2928 #define $ac_tr_hdr 1
2932 echo "$ac_t""no" 1>&6
2936 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2938 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2939 echo "configure:2940: checking for XDGAQueryExtension in -lXxf86dga" >&5
2940 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
2941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 ac_save_LIBS="$LIBS"
2945 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2952 char XDGAQueryExtension();
2955 XDGAQueryExtension()
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 eval "ac_cv_lib_$ac_lib_var=no"
2968 LIBS="$ac_save_LIBS"
2971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 cat >> confdefs.h <<\EOF
2974 #define HAVE_LIBXXF86DGA2 1
2976 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2978 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2982 echo "configure:2983: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2983 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 ac_save_LIBS="$LIBS"
2988 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2995 char XF86DGAQueryExtension();
2998 XF86DGAQueryExtension()
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3003 eval "ac_cv_lib_$ac_lib_var=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 eval "ac_cv_lib_$ac_lib_var=no"
3011 LIBS="$ac_save_LIBS"
3014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3015 echo "$ac_t""yes" 1>&6
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_LIBXXF86DGA 1
3019 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3021 echo "$ac_t""no" 1>&6
3026 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_hdr" >&5
3031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err=`grep -v '^ *+' conftest.out`
3042 if test -z "$ac_err"; then
3044 eval "ac_cv_header_$ac_safe=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_header_$ac_safe=no"
3054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3055 echo "$ac_t""yes" 1>&6
3056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3057 cat >> confdefs.h <<EOF
3058 #define $ac_tr_hdr 1
3062 echo "$ac_t""no" 1>&6
3066 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3068 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3069 echo "configure:3070: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3070 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_save_LIBS="$LIBS"
3075 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3082 char XF86VidModeQueryExtension();
3085 XF86VidModeQueryExtension()
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3090 eval "ac_cv_lib_$ac_lib_var=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "ac_cv_lib_$ac_lib_var=no"
3098 LIBS="$ac_save_LIBS"
3101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3103 cat >> confdefs.h <<\EOF
3104 #define HAVE_LIBXXF86VM 1
3106 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3108 echo "$ac_t""no" 1>&6
3113 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_hdr" >&5
3118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3127 { (eval echo configure:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3128 ac_err=`grep -v '^ *+' conftest.out`
3129 if test -z "$ac_err"; then
3131 eval "ac_cv_header_$ac_safe=yes"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 eval "ac_cv_header_$ac_safe=no"
3141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3144 cat >> confdefs.h <<EOF
3145 #define $ac_tr_hdr 1
3149 echo "$ac_t""no" 1>&6
3153 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3155 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3156 echo "configure:3157: checking "for up-to-date Mesa version"" >&5
3157 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3165 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 wine_cv_mesa_version_OK="yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 wine_cv_mesa_version_OK="no"
3182 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3184 if test "$wine_cv_mesa_version_OK" = "yes"
3186 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3187 echo "configure:3188: checking for glXCreateContext in -lGL" >&5
3188 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 ac_save_LIBS="$LIBS"
3193 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $LIBS"
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3200 char glXCreateContext();
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3208 eval "ac_cv_lib_$ac_lib_var=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 eval "ac_cv_lib_$ac_lib_var=no"
3216 LIBS="$ac_save_LIBS"
3219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_LIBMESAGL 1
3224 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3226 echo "$ac_t""no" 1>&6
3229 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3231 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3232 echo "configure:3233: checking for glXCreateContext in -lMesaGL" >&5
3233 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 ac_save_LIBS="$LIBS"
3238 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3245 char glXCreateContext();
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3253 eval "ac_cv_lib_$ac_lib_var=yes"
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 eval "ac_cv_lib_$ac_lib_var=no"
3261 LIBS="$ac_save_LIBS"
3264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_LIBMESAGL 1
3269 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3271 echo "$ac_t""no" 1>&6
3278 CPPFLAGS="$ac_save_CPPFLAGS"
3285 for ac_hdr in ncurses.h
3287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_hdr" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3299 { (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3300 ac_err=`grep -v '^ *+' conftest.out`
3301 if test -z "$ac_err"; then
3303 eval "ac_cv_header_$ac_safe=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 eval "ac_cv_header_$ac_safe=no"
3313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3316 cat >> confdefs.h <<EOF
3317 #define $ac_tr_hdr 1
3321 echo "$ac_t""no" 1>&6
3325 if test "$ac_cv_header_ncurses_h" = "yes"
3327 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3328 echo "configure:3329: checking for waddch in -lncurses" >&5
3329 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 ac_save_LIBS="$LIBS"
3334 LIBS="-lncurses $LIBS"
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* Override any gcc2 internal prototype to avoid an error. */
3339 /* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3347 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3349 eval "ac_cv_lib_$ac_lib_var=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 eval "ac_cv_lib_$ac_lib_var=no"
3357 LIBS="$ac_save_LIBS"
3360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_lib 1
3368 LIBS="-lncurses $LIBS"
3371 echo "$ac_t""no" 1>&6
3375 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3377 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3378 echo "configure:3379: checking for resizeterm in -lncurses" >&5
3379 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 ac_save_LIBS="$LIBS"
3384 LIBS="-lncurses $LIBS"
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3399 eval "ac_cv_lib_$ac_lib_var=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_lib_$ac_lib_var=no"
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_RESIZETERM 1
3417 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3421 echo "configure:3422: checking for getbkgd in -lncurses" >&5
3422 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3427 LIBS="-lncurses $LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 cat >> confdefs.h <<\EOF
3456 #define HAVE_GETBKGD 1
3460 echo "$ac_t""no" 1>&6
3464 for ac_hdr in curses.h
3466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3468 echo "configure:3469: checking for $ac_hdr" >&5
3469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3478 { (eval echo configure:3479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3479 ac_err=`grep -v '^ *+' conftest.out`
3480 if test -z "$ac_err"; then
3482 eval "ac_cv_header_$ac_safe=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_header_$ac_safe=no"
3492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3495 cat >> confdefs.h <<EOF
3496 #define $ac_tr_hdr 1
3500 echo "$ac_t""no" 1>&6
3504 if test "$ac_cv_header_curses_h" = "yes"
3506 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3507 echo "configure:3508: checking for waddch in -lcurses" >&5
3508 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 ac_save_LIBS="$LIBS"
3513 LIBS="-lcurses $LIBS"
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3528 eval "ac_cv_lib_$ac_lib_var=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_lib_$ac_lib_var=no"
3536 LIBS="$ac_save_LIBS"
3539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3543 cat >> confdefs.h <<EOF
3544 #define $ac_tr_lib 1
3547 LIBS="-lcurses $LIBS"
3550 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3554 echo "configure:3555: checking for resizeterm in -lcurses" >&5
3555 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lcurses $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_RESIZETERM 1
3593 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3597 echo "configure:3598: checking for getbkgd in -lcurses" >&5
3598 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_save_LIBS="$LIBS"
3603 LIBS="-lcurses $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_lib_$ac_lib_var=no"
3626 LIBS="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 cat >> confdefs.h <<\EOF
3632 #define HAVE_GETBKGD 1
3636 echo "$ac_t""no" 1>&6
3642 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3643 echo "configure:3644: checking "for GNU style IPX support"" >&5
3644 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <sys/socket.h>
3651 #include <netipx/ipx.h>
3653 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_IPX_GNU 1
3662 ac_cv_c_ipx_gnu="yes"
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 ac_cv_c_ipx_gnu="no"
3673 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3675 if test "$ac_cv_c_ipx_gnu" = "no"
3677 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3678 echo "configure:3679: checking "for linux style IPX support"" >&5
3679 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 #include <sys/socket.h>
3686 #include <asm/types.h>
3687 #include <linux/ipx.h>
3689 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3692 if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3694 cat >> confdefs.h <<\EOF
3695 #define HAVE_IPX_LINUX 1
3698 ac_cv_c_ipx_linux="yes"
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 ac_cv_c_ipx_linux="no"
3709 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3712 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_hdr" >&5
3717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3726 { (eval echo configure:3727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3727 ac_err=`grep -v '^ *+' conftest.out`
3728 if test -z "$ac_err"; then
3730 eval "ac_cv_header_$ac_safe=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_header_$ac_safe=no"
3740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3743 cat >> confdefs.h <<EOF
3744 #define $ac_tr_hdr 1
3748 echo "$ac_t""no" 1>&6
3753 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3754 echo "configure:3755: checking "for Open Sound System"" >&5
3755 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3762 #if defined(HAVE_SYS_SOUNDCARD_H)
3763 #include <sys/soundcard.h>
3764 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3765 #include <machine/soundcard.h>
3766 #elif defined(HAVE_SOUNDCARD_H)
3767 #include <soundcard.h>
3773 /* check for one of the Open Sound System specific SNDCTL_ defines */
3774 #if !defined(SNDCTL_DSP_STEREO)
3775 #error No open sound system
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 ac_cv_c_opensoundsystem="yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 ac_cv_c_opensoundsystem="no"
3792 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3794 if test "$ac_cv_c_opensoundsystem" = "yes"
3796 cat >> confdefs.h <<\EOF
3802 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
3803 echo "configure:3804: checking "for Open Sound System/MIDI interface"" >&5
3804 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3811 #if defined(HAVE_SYS_SOUNDCARD_H)
3812 #include <sys/soundcard.h>
3813 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3814 #include <machine/soundcard.h>
3815 #elif defined(HAVE_SOUNDCARD_H)
3816 #include <soundcard.h>
3822 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3823 #if !defined(SNDCTL_SEQ_SYNC)
3824 #error No open sound system MIDI interface
3829 if { (eval echo configure:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 ac_cv_c_opensoundsystem_midi="yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 ac_cv_c_opensoundsystem_midi="no"
3841 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3843 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_OSS_MIDI 1
3851 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3854 if test "x${GCC}" = "xyes"
3856 CFLAGS="$CFLAGS -Wall"
3857 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3858 echo "configure:3859: checking "for gcc strength-reduce bug"" >&5
3859 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 if test "$cross_compiling" = yes; then
3863 ac_cv_c_gcc_strength_bug="yes"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3870 static int Array[3];
3873 for(i=0; i<B; i++) Array[i] = i - 3;
3874 exit( Array[1] != -2 );
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3879 ac_cv_c_gcc_strength_bug="no"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 ac_cv_c_gcc_strength_bug="yes"
3891 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3892 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3894 CFLAGS="$CFLAGS -fno-strength-reduce"
3899 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3900 echo "configure:3901: checking "whether external symbols need an underscore prefix"" >&5
3901 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3905 LIBS="conftest_asm.s $LIBS"
3906 cat > conftest_asm.s <<EOF
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3916 if (ac_test) return 1
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3921 ac_cv_c_extern_prefix="yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 ac_cv_c_extern_prefix="no"
3932 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3933 if test "$ac_cv_c_extern_prefix" = "yes"
3935 cat >> confdefs.h <<\EOF
3936 #define NEED_UNDERSCORE_PREFIX 1
3942 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3943 echo "configure:3944: checking "whether assembler accepts .string"" >&5
3944 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3948 LIBS="conftest_asm.s $LIBS"
3949 cat > conftest_asm.s <<EOF
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3962 ac_cv_c_asm_string="yes"
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 ac_cv_c_asm_string="no"
3973 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3974 if test "$ac_cv_c_asm_string" = "yes"
3976 cat >> confdefs.h <<\EOF
3977 #define HAVE_ASM_STRING 1
3986 if test "$LIB_TARGET" = "libwine.so.1.0"
3988 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3989 echo "configure:3990: checking "whether we can build a Linux dll"" >&5
3990 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 saved_cflags=$CFLAGS
3994 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4005 ac_cv_c_dll_linux="yes"
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4010 ac_cv_c_dll_linux="no"
4013 CFLAGS=$saved_cflags
4017 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4018 if test "$ac_cv_c_dll_linux" = "yes"
4022 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
4024 echo $ac_n "checking "whether we can build a UnixWare dll"""... $ac_c" 1>&6
4025 echo "configure:4026: checking "whether we can build a UnixWare dll"" >&5
4026 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 saved_cflags=$CFLAGS
4030 CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4041 ac_cv_c_dll_unixware="yes"
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 ac_cv_c_dll_unixware="no"
4049 CFLAGS=$saved_cflags
4053 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4054 if test "$ac_cv_c_dll_unixware" = "yes"
4058 LDSHARED="\$(CC) -Wl,-G,-h,/usr/local/lib/libwine.so"
4060 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4061 echo "configure:4062: checking "whether we can build a NetBSD dll"" >&5
4062 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 saved_cflags=$CFLAGS
4066 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4077 ac_cv_c_dll_netbsd="yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 ac_cv_c_dll_netbsd="no"
4085 CFLAGS=$saved_cflags
4089 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4090 if test "$ac_cv_c_dll_netbsd" = "yes"
4094 LDSHARED="ld -Bshareable -Bforcearchive"
4098 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4100 LIB_TARGET="libwine.a"
4108 wine_cv_libc_reentrant=no
4109 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4110 echo "configure:4111: checking "for reentrant libc: __errno_location"" >&5
4111 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 if test "$cross_compiling" = yes; then
4115 wine_cv_libc_r__errno_location=yes
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4122 int *__errno_location(){return &myerrno;}
4123 main(){connect(0,buf,255); exit(!myerrno);}
4125 if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4127 wine_cv_libc_r__errno_location=yes
4129 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4132 wine_cv_libc_r__errno_location=no
4140 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4141 if test "$wine_cv_libc_r__errno_location" = "yes"
4143 cat >> confdefs.h <<\EOF
4144 #define HAVE__ERRNO_LOCATION 1
4147 wine_cv_libc_reentrant=__errno_location
4149 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4150 echo "configure:4151: checking "for reentrant libc: __error"" >&5
4151 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 if test "$cross_compiling" = yes; then
4155 wine_cv_libc_r__error=yes
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4162 int *__error(){return &myerrno;}
4163 main(){connect(0,buf,255); exit(!myerrno);}
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4167 wine_cv_libc_r__error=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 wine_cv_libc_r__error=no
4180 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4181 if test "$wine_cv_libc_r__error" = "yes"
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE__ERROR 1
4187 wine_cv_libc_reentrant=__error
4189 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4190 echo "configure:4191: checking "for reentrant libc: ___errno"" >&5
4191 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 if test "$cross_compiling" = yes; then
4195 wine_cv_libc_r___errno=yes
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4202 int *___errno(){return &myerrno;}
4203 main(){connect(0,buf,255); exit(!myerrno);}
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4207 wine_cv_libc_r___errno=yes
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4212 wine_cv_libc_r___errno=no
4220 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4221 if test "$wine_cv_libc_r___errno" = "yes"
4223 cat >> confdefs.h <<\EOF
4224 #define HAVE___ERRNO 1
4227 wine_cv_libc_reentrant=___errno
4229 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4230 echo "configure:4231: checking "for reentrant libc: __thr_errno"" >&5
4231 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 if test "$cross_compiling" = yes; then
4235 wine_cv_libc_r__thr_errno=yes
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4242 int *__thr_errno(){return &myerrno;}
4243 main(){connect(0,buf,255); exit(!myerrno);}
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4247 wine_cv_libc_r__thr_errno=yes
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 wine_cv_libc_r__thr_errno=no
4260 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4261 if test "$wine_cv_libc_r__thr_errno" = "yes"
4263 cat >> confdefs.h <<\EOF
4264 #define HAVE__THR_ERRNO 1
4267 wine_cv_libc_reentrant=__thr_errno
4269 if test "$wine_cv_libc_reentrant" = "no"
4271 cat >> confdefs.h <<\EOF
4272 #define NO_REENTRANT_LIBC 1
4278 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4280 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4281 echo "configure:4282: checking "for reentrant X libraries"" >&5
4282 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4285 if test "x$with_reentrant_x" = "xno"
4287 wine_cv_x_reentrant=no
4290 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4291 if test -r $dir/libX11.so; then
4292 libX11_check="-D $dir/libX11.so"
4295 if test -r $dir/libX11.a; then
4296 libX11_check="$dir/libX11.a"
4300 if test "$libX11_check" != "none"; then
4301 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4303 wine_cv_x_reentrant=yes
4305 wine_cv_x_reentrant=no
4308 wine_cv_x_reentrant=unknown
4313 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4315 wine_cv_x_reentrant=no
4317 if test "$wine_cv_x_reentrant" = "no"
4319 cat >> confdefs.h <<\EOF
4320 #define NO_REENTRANT_X11 1
4326 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4327 # for constant arguments. Useless!
4328 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4329 echo "configure:4330: checking for working alloca.h" >&5
4330 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4338 char *p = alloca(2 * sizeof(int));
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4343 ac_cv_header_alloca_h=yes
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 ac_cv_header_alloca_h=no
4353 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4354 if test $ac_cv_header_alloca_h = yes; then
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_ALLOCA_H 1
4361 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4362 echo "configure:4363: checking for alloca" >&5
4363 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 # define alloca __builtin_alloca
4374 # include <alloca.h>
4379 # ifndef alloca /* predefined by HP cc +Olibcalls */
4387 char *p = (char *) alloca(1);
4390 if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4392 ac_cv_func_alloca_works=yes
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 ac_cv_func_alloca_works=no
4402 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4403 if test $ac_cv_func_alloca_works = yes; then
4404 cat >> confdefs.h <<\EOF
4405 #define HAVE_ALLOCA 1
4410 if test $ac_cv_func_alloca_works = no; then
4411 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4412 # that cause trouble. Some versions do not even contain alloca or
4413 # contain a buggy version. If you still want to use their alloca,
4414 # use ar to extract alloca.o from them instead of compiling alloca.c.
4416 cat >> confdefs.h <<\EOF
4421 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4422 echo "configure:4423: checking whether alloca needs Cray hooks" >&5
4423 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #if defined(CRAY) && ! defined(CRAY2)
4436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437 egrep "webecray" >/dev/null 2>&1; then
4448 echo "$ac_t""$ac_cv_os_cray" 1>&6
4449 if test $ac_cv_os_cray = yes; then
4450 for ac_func in _getb67 GETB67 getb67; do
4451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_func" >&5
4453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char $ac_func(); below. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4469 /* The GNU C library defines this for functions which it implements
4470 to always fail with ENOSYS. Some functions are actually named
4471 something starting with __ and the normal name is an alias. */
4472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4482 eval "ac_cv_func_$ac_func=yes"
4484 echo "configure: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4487 eval "ac_cv_func_$ac_func=no"
4492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 cat >> confdefs.h <<EOF
4495 #define CRAY_STACKSEG_END $ac_func
4500 echo "$ac_t""no" 1>&6
4506 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4507 echo "configure:4508: checking stack direction for C alloca" >&5
4508 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 if test "$cross_compiling" = yes; then
4512 ac_cv_c_stack_direction=0
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 find_stack_direction ()
4519 static char *addr = 0;
4524 return find_stack_direction ();
4527 return (&dummy > addr) ? 1 : -1;
4531 exit (find_stack_direction() < 0);
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4536 ac_cv_c_stack_direction=1
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 ac_cv_c_stack_direction=-1
4548 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4549 cat >> confdefs.h <<EOF
4550 #define STACK_DIRECTION $ac_cv_c_stack_direction
4574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4575 echo "configure:4576: checking for $ac_func" >&5
4576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* System header to define __stub macros and hopefully few prototypes,
4583 which can conflict with char $ac_func(); below. */
4585 /* Override any gcc2 internal prototype to avoid an error. */
4586 /* We use char because int might match the return type of a gcc2
4587 builtin and then its argument prototype would still apply. */
4592 /* The GNU C library defines this for functions which it implements
4593 to always fail with ENOSYS. Some functions are actually named
4594 something starting with __ and the normal name is an alias. */
4595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4605 eval "ac_cv_func_$ac_func=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4610 eval "ac_cv_func_$ac_func=no"
4615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4618 cat >> confdefs.h <<EOF
4619 #define $ac_tr_func 1
4623 echo "$ac_t""no" 1>&6
4664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_hdr" >&5
4667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4676 { (eval echo configure:4677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4677 ac_err=`grep -v '^ *+' conftest.out`
4678 if test -z "$ac_err"; then
4680 eval "ac_cv_header_$ac_safe=yes"
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4686 eval "ac_cv_header_$ac_safe=no"
4690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4693 cat >> confdefs.h <<EOF
4694 #define $ac_tr_hdr 1
4698 echo "$ac_t""no" 1>&6
4702 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4703 echo "configure:4704: checking whether stat file-mode macros are broken" >&5
4704 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 #include <sys/types.h>
4711 #include <sys/stat.h>
4713 #if defined(S_ISBLK) && defined(S_IFDIR)
4714 # if S_ISBLK (S_IFDIR)
4719 #if defined(S_ISBLK) && defined(S_IFCHR)
4720 # if S_ISBLK (S_IFCHR)
4725 #if defined(S_ISLNK) && defined(S_IFREG)
4726 # if S_ISLNK (S_IFREG)
4731 #if defined(S_ISSOCK) && defined(S_IFREG)
4732 # if S_ISSOCK (S_IFREG)
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 egrep "You lose" >/dev/null 2>&1; then
4741 ac_cv_header_stat_broken=yes
4744 ac_cv_header_stat_broken=no
4750 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4751 if test $ac_cv_header_stat_broken = yes; then
4752 cat >> confdefs.h <<\EOF
4753 #define STAT_MACROS_BROKEN 1
4760 echo $ac_n "checking for working const""... $ac_c" 1>&6
4761 echo "configure:4762: checking for working const" >&5
4762 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4771 /* Ultrix mips cc rejects this. */
4772 typedef int charset[2]; const charset x;
4773 /* SunOS 4.1.1 cc rejects this. */
4774 char const *const *ccp;
4776 /* NEC SVR4.0.2 mips cc rejects this. */
4777 struct point {int x, y;};
4778 static struct point const zero = {0,0};
4779 /* AIX XL C 1.02.0.0 rejects this.
4780 It does not let you subtract one const X* pointer from another in an arm
4781 of an if-expression whose if-part is not a constant expression */
4782 const char *g = "string";
4783 ccp = &g + (g ? g-g : 0);
4784 /* HPUX 7.0 cc rejects these. */
4787 ccp = (char const *const *) p;
4788 { /* SCO 3.2v4 cc rejects this. */
4790 char const *s = 0 ? (char *) 0 : (char const *) 0;
4794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4796 const int *foo = &x[0];
4799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4800 typedef const int *iptr;
4804 { /* AIX XL C 1.02.0.0 rejects this saying
4805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4806 struct s { int j; const int *ap[3]; };
4807 struct s *b; b->j = 5;
4809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4815 if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4827 echo "$ac_t""$ac_cv_c_const" 1>&6
4828 if test $ac_cv_c_const = no; then
4829 cat >> confdefs.h <<\EOF
4835 echo $ac_n "checking for inline""... $ac_c" 1>&6
4836 echo "configure:4837: checking for inline" >&5
4837 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4841 for ac_kw in inline __inline__ __inline; do
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4850 if { (eval echo configure:4851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4852 ac_cv_c_inline=$ac_kw; break
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4862 echo "$ac_t""$ac_cv_c_inline" 1>&6
4863 case "$ac_cv_c_inline" in
4865 no) cat >> confdefs.h <<\EOF
4869 *) cat >> confdefs.h <<EOF
4870 #define inline $ac_cv_c_inline
4875 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4876 echo "configure:4877: checking for ANSI C header files" >&5
4877 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4889 { (eval echo configure:4890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4890 ac_err=`grep -v '^ *+' conftest.out`
4891 if test -z "$ac_err"; then
4893 ac_cv_header_stdc=yes
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 ac_cv_header_stdc=no
4903 if test $ac_cv_header_stdc = yes; then
4904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 egrep "memchr" >/dev/null 2>&1; then
4915 ac_cv_header_stdc=no
4921 if test $ac_cv_header_stdc = yes; then
4922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 egrep "free" >/dev/null 2>&1; then
4933 ac_cv_header_stdc=no
4939 if test $ac_cv_header_stdc = yes; then
4940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4941 if test "$cross_compiling" = yes; then
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4948 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4951 int main () { int i; for (i = 0; i < 256; i++)
4952 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 ac_cv_header_stdc=no
4971 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4972 if test $ac_cv_header_stdc = yes; then
4973 cat >> confdefs.h <<\EOF
4974 #define STDC_HEADERS 1
4979 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4980 echo "configure:4981: checking for size_t" >&5
4981 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 #include <sys/types.h>
4993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4994 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4996 ac_cv_type_size_t=yes
4999 ac_cv_type_size_t=no
5004 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5005 if test $ac_cv_type_size_t = no; then
5006 cat >> confdefs.h <<\EOF
5007 #define size_t unsigned
5012 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5013 echo "configure:5014: checking size of long long" >&5
5014 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 if test "$cross_compiling" = yes; then
5018 ac_cv_sizeof_long_long=0
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5026 FILE *f=fopen("conftestval", "w");
5028 fprintf(f, "%d\n", sizeof(long long));
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5034 ac_cv_sizeof_long_long=`cat conftestval`
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 ac_cv_sizeof_long_long=0
5045 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5046 cat >> confdefs.h <<EOF
5047 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5052 if test "$ac_cv_header_linux_joystick_h" = "yes"
5054 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5055 echo "configure:5056: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5056 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5063 #include <sys/ioctl.h>
5064 #include <linux/joystick.h>
5066 struct js_event blub;
5072 if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5074 wine_cv_linux_joystick_22_api=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 wine_cv_linux_joystick_22_api=no
5085 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5086 if test "$wine_cv_linux_joystick_22_api"
5088 cat >> confdefs.h <<\EOF
5089 #define HAVE_LINUX_22_JOYSTICK_API 1
5096 if test "$ac_cv_header_sys_vfs_h" = "yes"
5098 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5099 echo "configure:5100: checking "whether sys/vfs.h defines statfs"" >&5
5100 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5107 #include <sys/types.h>
5108 #ifdef HAVE_SYS_PARAM_H
5109 # include <sys/param.h>
5111 #include <sys/vfs.h>
5117 memset(&stfs,0,sizeof(stfs));
5121 if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123 wine_cv_sys_vfs_has_statfs=yes
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 wine_cv_sys_vfs_has_statfs=no
5135 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5136 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5138 cat >> confdefs.h <<\EOF
5139 #define STATFS_DEFINED_BY_SYS_VFS 1
5145 if test "$ac_cv_header_sys_statfs_h" = "yes"
5147 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5148 echo "configure:5149: checking "whether sys/statfs.h defines statfs"" >&5
5149 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5156 #include <sys/types.h>
5157 #ifdef HAVE_SYS_PARAM_H
5158 # include <sys/param.h>
5160 #include <sys/statfs.h>
5168 if { (eval echo configure:5169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 wine_cv_sys_statfs_has_statfs=yes
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 wine_cv_sys_statfs_has_statfs=no
5182 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5183 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5185 cat >> confdefs.h <<\EOF
5186 #define STATFS_DEFINED_BY_SYS_STATFS 1
5192 if test "$ac_cv_header_sys_mount_h" = "yes"
5194 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5195 echo "configure:5196: checking "whether sys/mount.h defines statfs"" >&5
5196 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5203 #include <sys/types.h>
5204 #ifdef HAVE_SYS_PARAM_H
5205 # include <sys/param.h>
5207 #include <sys/mount.h>
5215 if { (eval echo configure:5216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5217 wine_cv_sys_mount_has_statfs=yes
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5222 wine_cv_sys_mount_has_statfs=no
5229 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5230 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5232 cat >> confdefs.h <<\EOF
5233 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5240 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5241 echo "configure:5242: checking "for statfs.f_bfree"" >&5
5242 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 if test "x$statfs_bfree" = "xno"
5247 wine_cv_statfs_bfree=no
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5253 #include <sys/types.h>
5254 #ifdef HAVE_SYS_PARAM_H
5255 # include <sys/param.h>
5257 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5258 # include <sys/mount.h>
5260 # ifdef STATFS_DEFINED_BY_SYS_VFS
5261 # include <sys/vfs.h>
5263 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5264 # include <sys/statfs.h>
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 wine_cv_statfs_bfree=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 wine_cv_statfs_bfree=no
5291 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5292 if test "$wine_cv_statfs_bfree" = "yes"
5294 cat >> confdefs.h <<\EOF
5295 #define STATFS_HAS_BFREE 1
5300 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5301 echo "configure:5302: checking "for statfs.f_bavail"" >&5
5302 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 if test "x$statfs_bavail" = "xno"
5307 wine_cv_statfs_bavail=no
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 #include <sys/types.h>
5314 #ifdef HAVE_SYS_PARAM_H
5315 # include <sys/param.h>
5317 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5318 # include <sys/mount.h>
5320 # ifdef STATFS_DEFINED_BY_SYS_VFS
5321 # include <sys/vfs.h>
5323 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5324 # include <sys/statfs.h>
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 wine_cv_statfs_bavail=yes
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 wine_cv_statfs_bavail=no
5351 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5352 if test "$wine_cv_statfs_bavail" = "yes"
5354 cat >> confdefs.h <<\EOF
5355 #define STATFS_HAS_BAVAIL 1
5361 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5362 echo "configure:5363: checking "for working sigaltstack"" >&5
5363 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 if test "$cross_compiling" = yes; then
5367 ac_cv_c_working_sigaltstack="no"
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5375 #include <time.h> /* <sys/time.h> ? bad magic without end */
5376 #include <sys/types.h>
5377 #include <sys/signal.h>
5378 #ifdef HAVE_SYS_PARAM_H
5379 # include <sys/param.h>
5381 #ifdef HAVE_SYSCALL_H
5382 # include <syscall.h>
5384 # ifdef HAVE_SYS_SYSCALL_H
5385 # include <sys/syscall.h>
5389 unsigned char *xaltstack;
5392 main(int argc,char **argv) {
5393 struct sigaltstack ss;
5395 xaltstack = malloc(16384);
5396 ss.ss_sp = xaltstack;
5399 if (sigaltstack(&ss, NULL) < 0) {
5400 /* this catches the glibc case */
5401 perror("sigaltstack");
5402 return (1); /* aka exit(1) aka fail */
5404 /* assume it works. */
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5411 ac_cv_c_working_sigaltstack="yes"
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5416 ac_cv_c_working_sigaltstack="no"
5423 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5425 if test "$ac_cv_c_working_sigaltstack" = "yes"
5427 cat >> confdefs.h <<\EOF
5428 #define HAVE_WORKING_SIGALTSTACK 1
5435 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5436 echo "configure:5437: checking "for msg_accrights in struct msghdr"" >&5
5437 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 #include <sys/types.h>
5444 #include <sys/socket.h>
5446 struct msghdr hdr; hdr.msg_accrights=0
5449 if { (eval echo configure:5450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5451 ac_cv_c_msg_accrights="yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 ac_cv_c_msg_accrights="no"
5461 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5462 if test "$ac_cv_c_msg_accrights" = "yes"
5464 cat >> confdefs.h <<\EOF
5465 #define HAVE_MSGHDR_ACCRIGHTS 1
5471 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5472 echo "configure:5473: checking "whether we need to define __i386__"" >&5
5473 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 egrep "yes" >/dev/null 2>&1; then
5486 ac_cv_cpp_def_i386="yes"
5489 ac_cv_cpp_def_i386="no"
5495 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5496 if test "$ac_cv_cpp_def_i386" = "yes"
5498 CFLAGS="$CFLAGS -D__i386__"
5499 LINTFLAGS="$LINTFLAGS -D__i386__"
5503 if test "$GCC" = "yes"
5505 GCC_NO_BUILTIN="-fno-builtin"
5510 MAKE_RULES=Make.rules
5514 cat > confcache <<\EOF
5515 # This file is a shell script that caches the results of configure
5516 # tests run on this system so they can be shared between configure
5517 # scripts and configure runs. It is not useful on other systems.
5518 # If it contains results you don't want to keep, you may remove or edit it.
5520 # By default, configure uses ./config.cache as the cache file,
5521 # creating it if it does not exist already. You can give configure
5522 # the --cache-file=FILE option to use a different cache file; that is
5523 # what configure does when it calls configure scripts in
5524 # subdirectories, so they share the cache.
5525 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5526 # config.status only pays attention to the cache file if you give it the
5527 # --recheck option to rerun configure.
5530 # The following way of writing the cache mishandles newlines in values,
5531 # but we know of no workaround that is simple, portable, and efficient.
5532 # So, don't put newlines in cache variables' values.
5533 # Ultrix sh set writes to stderr and can't be redirected directly,
5534 # and sets the high bit in the cache file unless we assign to the vars.
5536 case `(ac_space=' '; set) 2>&1` in
5538 # `set' does not quote correctly, so add quotes (double-quote substitution
5539 # turns \\\\ into \\, and sed turns \\ into \).
5541 -e "s/'/'\\\\''/g" \
5542 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5545 # `set' quotes correctly as required by POSIX, so do not add quotes.
5546 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5549 if cmp -s $cache_file confcache; then
5552 if test -w $cache_file; then
5553 echo "updating cache $cache_file"
5554 cat confcache > $cache_file
5556 echo "not updating unwritable cache $cache_file"
5561 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5564 # Let make expand exec_prefix.
5565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5567 # Any assignment to VPATH causes Sun make to only execute
5568 # the first set of double-colon rules, so remove it if not needed.
5569 # If there is a colon in the path, we need to keep it.
5570 if test "x$srcdir" = x.; then
5571 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5574 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5576 DEFS=-DHAVE_CONFIG_H
5578 # Without the "./", some shells look in PATH for config.status.
5579 : ${CONFIG_STATUS=./config.status}
5581 echo creating $CONFIG_STATUS
5582 rm -f $CONFIG_STATUS
5583 cat > $CONFIG_STATUS <<EOF
5585 # Generated automatically by configure.
5586 # Run this file to recreate the current configuration.
5587 # This directory was configured as follows,
5588 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5590 # $0 $ac_configure_args
5592 # Compiler output produced by configure, useful for debugging
5593 # configure, is in ./config.log if it exists.
5595 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5598 case "\$ac_option" in
5599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5600 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5601 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5602 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5603 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5605 -help | --help | --hel | --he | --h)
5606 echo "\$ac_cs_usage"; exit 0 ;;
5607 *) echo "\$ac_cs_usage"; exit 1 ;;
5611 ac_given_srcdir=$srcdir
5612 ac_given_INSTALL="$INSTALL"
5614 trap 'rm -fr `echo "
5621 dlls/advapi32/Makefile
5622 dlls/avifil32/Makefile
5623 dlls/comctl32/Makefile
5624 dlls/commdlg/Makefile
5625 dlls/crtdll/Makefile
5626 dlls/dciman32/Makefile
5627 dlls/imagehlp/Makefile
5629 dlls/lzexpand/Makefile
5632 dlls/msacm32/Makefile
5633 dlls/msnet32/Makefile
5634 dlls/msvideo/Makefile
5637 dlls/oleaut32/Makefile
5638 dlls/olecli/Makefile
5639 dlls/oledlg/Makefile
5640 dlls/olesvr/Makefile
5642 dlls/rasapi32/Makefile
5643 dlls/shell32/Makefile
5645 dlls/stress/Makefile
5646 dlls/tapi32/Makefile
5648 dlls/version/Makefile
5649 dlls/win32s/Makefile
5650 dlls/win87em/Makefile
5651 dlls/winaspi/Makefile
5652 dlls/windebug/Makefile
5654 dlls/winspool/Makefile
5655 dlls/wnaspi32/Makefile
5656 documentation/Makefile
5657 documentation/wine.conf.man
5658 documentation/wine.man
5661 graphics/enhmetafiledrv/Makefile
5662 graphics/metafiledrv/Makefile
5663 graphics/psdrv/Makefile
5664 graphics/ttydrv/Makefile
5665 graphics/win16drv/Makefile
5666 graphics/x11drv/Makefile
5682 programs/clock/Makefile
5683 programs/cmdlgtst/Makefile
5684 programs/control/Makefile
5685 programs/avitools/Makefile
5686 programs/osversioncheck/Makefile
5687 programs/notepad/Makefile
5688 programs/progman/Makefile
5689 programs/regtest/Makefile
5690 programs/regapi/Makefile
5691 programs/view/Makefile
5692 programs/wcmd/Makefile
5693 programs/winhelp/Makefile
5694 programs/winver/Makefile
5705 windows/ttydrv/Makefile
5706 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5708 cat >> $CONFIG_STATUS <<EOF
5710 # Protect against being on the right side of a sed subst in config.status.
5711 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5712 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5715 s%@CFLAGS@%$CFLAGS%g
5716 s%@CPPFLAGS@%$CPPFLAGS%g
5717 s%@CXXFLAGS@%$CXXFLAGS%g
5719 s%@LDFLAGS@%$LDFLAGS%g
5721 s%@exec_prefix@%$exec_prefix%g
5722 s%@prefix@%$prefix%g
5723 s%@program_transform_name@%$program_transform_name%g
5724 s%@bindir@%$bindir%g
5725 s%@sbindir@%$sbindir%g
5726 s%@libexecdir@%$libexecdir%g
5727 s%@datadir@%$datadir%g
5728 s%@sysconfdir@%$sysconfdir%g
5729 s%@sharedstatedir@%$sharedstatedir%g
5730 s%@localstatedir@%$localstatedir%g
5731 s%@libdir@%$libdir%g
5732 s%@includedir@%$includedir%g
5733 s%@oldincludedir@%$oldincludedir%g
5734 s%@infodir@%$infodir%g
5735 s%@mandir@%$mandir%g
5736 s%@PROGEXT@%$PROGEXT%g
5737 s%@MAIN_TARGET@%$MAIN_TARGET%g
5738 s%@LIB_TARGET@%$LIB_TARGET%g
5739 s%@ALT_LINK@%$ALT_LINK%g
5740 s%@OPTIONS@%$OPTIONS%g
5741 s%@SET_MAKE@%$SET_MAKE%g
5744 s%@X_CFLAGS@%$X_CFLAGS%g
5745 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5746 s%@X_LIBS@%$X_LIBS%g
5747 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5750 s%@LEXLIB@%$LEXLIB%g
5751 s%@RANLIB@%$RANLIB%g
5752 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5753 s%@INSTALL_DATA@%$INSTALL_DATA%g
5756 s%@LDCONFIG@%$LDCONFIG%g
5758 s%@LINTFLAGS@%$LINTFLAGS%g
5760 s%@BUILDFLAGS@%$BUILDFLAGS%g
5761 s%@DLLFLAGS@%$DLLFLAGS%g
5762 s%@LDSHARED@%$LDSHARED%g
5763 s%@ALLOCA@%$ALLOCA%g
5764 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5765 /@MAKE_RULES@/r $MAKE_RULES
5771 cat >> $CONFIG_STATUS <<\EOF
5773 # Split the substitutions into bite-sized pieces for seds with
5774 # small command number limits, like on Digital OSF/1 and HP-UX.
5775 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5776 ac_file=1 # Number of current file.
5777 ac_beg=1 # First line for current file.
5778 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5781 while $ac_more_lines; do
5782 if test $ac_beg -gt 1; then
5783 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5785 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5787 if test ! -s conftest.s$ac_file; then
5789 rm -f conftest.s$ac_file
5791 if test -z "$ac_sed_cmds"; then
5792 ac_sed_cmds="sed -f conftest.s$ac_file"
5794 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5796 ac_file=`expr $ac_file + 1`
5798 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5801 if test -z "$ac_sed_cmds"; then
5806 cat >> $CONFIG_STATUS <<EOF
5808 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5814 dlls/advapi32/Makefile
5815 dlls/avifil32/Makefile
5816 dlls/comctl32/Makefile
5817 dlls/commdlg/Makefile
5818 dlls/crtdll/Makefile
5819 dlls/dciman32/Makefile
5820 dlls/imagehlp/Makefile
5822 dlls/lzexpand/Makefile
5825 dlls/msacm32/Makefile
5826 dlls/msnet32/Makefile
5827 dlls/msvideo/Makefile
5830 dlls/oleaut32/Makefile
5831 dlls/olecli/Makefile
5832 dlls/oledlg/Makefile
5833 dlls/olesvr/Makefile
5835 dlls/rasapi32/Makefile
5836 dlls/shell32/Makefile
5838 dlls/stress/Makefile
5839 dlls/tapi32/Makefile
5841 dlls/version/Makefile
5842 dlls/win32s/Makefile
5843 dlls/win87em/Makefile
5844 dlls/winaspi/Makefile
5845 dlls/windebug/Makefile
5847 dlls/winspool/Makefile
5848 dlls/wnaspi32/Makefile
5849 documentation/Makefile
5850 documentation/wine.conf.man
5851 documentation/wine.man
5854 graphics/enhmetafiledrv/Makefile
5855 graphics/metafiledrv/Makefile
5856 graphics/psdrv/Makefile
5857 graphics/ttydrv/Makefile
5858 graphics/win16drv/Makefile
5859 graphics/x11drv/Makefile
5875 programs/clock/Makefile
5876 programs/cmdlgtst/Makefile
5877 programs/control/Makefile
5878 programs/avitools/Makefile
5879 programs/osversioncheck/Makefile
5880 programs/notepad/Makefile
5881 programs/progman/Makefile
5882 programs/regtest/Makefile
5883 programs/regapi/Makefile
5884 programs/view/Makefile
5885 programs/wcmd/Makefile
5886 programs/winhelp/Makefile
5887 programs/winver/Makefile
5898 windows/ttydrv/Makefile
5899 windows/x11drv/Makefile "}
5901 cat >> $CONFIG_STATUS <<\EOF
5902 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5903 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5905 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5906 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5907 *) ac_file_in="${ac_file}.in" ;;
5910 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5912 # Remove last slash and all that follows it. Not all systems have dirname.
5913 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5914 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5915 # The file is in a subdirectory.
5916 test ! -d "$ac_dir" && mkdir "$ac_dir"
5917 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5918 # A "../" for each directory in $ac_dir_suffix.
5919 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5921 ac_dir_suffix= ac_dots=
5924 case "$ac_given_srcdir" in
5926 if test -z "$ac_dots"; then top_srcdir=.
5927 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5928 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5930 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5931 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5934 case "$ac_given_INSTALL" in
5935 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5936 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5939 echo creating "$ac_file"
5941 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5943 *Makefile*) ac_comsub="1i\\
5944 # $configure_input" ;;
5948 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5950 s%@configure_input@%$configure_input%g
5951 s%@srcdir@%$srcdir%g
5952 s%@top_srcdir@%$top_srcdir%g
5953 s%@INSTALL@%$INSTALL%g
5954 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5958 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5959 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5961 # ac_d sets the value in "#define NAME VALUE" lines.
5962 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5963 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5966 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5967 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5968 ac_uB='\([ ]\)%\1#\2define\3'
5971 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5972 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5973 ac_eB='$%\1#\2define\3'
5977 if test "${CONFIG_HEADERS+set}" != set; then
5979 cat >> $CONFIG_STATUS <<EOF
5980 CONFIG_HEADERS="include/config.h"
5982 cat >> $CONFIG_STATUS <<\EOF
5984 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5987 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5988 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5989 *) ac_file_in="${ac_file}.in" ;;
5992 echo creating $ac_file
5994 rm -f conftest.frag conftest.in conftest.out
5995 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5996 cat $ac_file_inputs > conftest.in
6000 # Transform confdefs.h into a sed script conftest.vals that substitutes
6001 # the proper values into config.h.in to produce config.h. And first:
6002 # Protect against being on the right side of a sed subst in config.status.
6003 # Protect against being in an unquoted here document in config.status.
6005 cat > conftest.hdr <<\EOF
6008 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6012 sed -n -f conftest.hdr confdefs.h > conftest.vals
6015 # This sed command replaces #undef with comments. This is necessary, for
6016 # example, in the case of _POSIX_SOURCE, which is predefined and required
6017 # on some systems where configure will not decide to define it.
6018 cat >> conftest.vals <<\EOF
6019 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6022 # Break up conftest.vals because some shells have a limit on
6023 # the size of here documents, and old seds have small limits too.
6028 ac_lines=`grep -c . conftest.vals`
6029 # grep -c gives empty output for an empty file on some AIX systems.
6030 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6031 # Write a limited-size here document to conftest.frag.
6032 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6033 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6035 sed -f conftest.frag conftest.in > conftest.out
6037 mv conftest.out conftest.in
6039 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6041 mv conftest.tail conftest.vals
6045 cat >> $CONFIG_STATUS <<\EOF
6046 rm -f conftest.frag conftest.h
6047 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6048 cat conftest.in >> conftest.h
6050 if cmp -s $ac_file conftest.h 2>/dev/null; then
6051 echo "$ac_file is unchanged"
6054 # Remove last slash and all that follows it. Not all systems have dirname.
6055 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6056 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6057 # The file is in a subdirectory.
6058 test ! -d "$ac_dir" && mkdir "$ac_dir"
6061 mv conftest.h $ac_file
6066 cat >> $CONFIG_STATUS <<EOF
6069 cat >> $CONFIG_STATUS <<\EOF
6073 chmod +x $CONFIG_STATUS
6074 rm -fr confdefs* $ac_clean_files
6075 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6078 if test "$have_x" = "no"
6081 echo "*** Warning: X development files not found. Wine will be built without"
6082 echo "*** X support, which currently does not work, and would probably not be"
6083 echo "*** what you want anyway. You will need to install devel packages of"
6084 echo "*** Xlib/Xfree86 and Xpm at the very least."
6085 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6088 echo "*** Warning: Xpm development files not found. Wine will be built without"
6089 echo "*** Xpm support, which currently does not work. You will need to install"
6090 echo "*** devel packages of Xpm."
6093 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6096 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6097 echo "*** terminal resize support. Consider upgrading ncurses."
6100 if test "$wine_cv_libc_reentrant" = "no"
6103 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6104 echo "*** thread support. Consider upgrading libc to a more recent"
6105 echo "*** reentrant version of libc."
6108 if test "$wine_cv_mesa_version_OK" = "no"
6111 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6112 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6116 echo "Configure finished. Do 'make depend && make' to compile Wine."