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.13
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-dll build static libraries instead of DLLs"
18 --disable-debug compile out all debugging messages"
20 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
22 --disable-trace compile out TRACE messages"
24 --without-curses do not use curses"
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 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=controls/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
541 for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 LIBEXT=so # library type .so or .a
562 TRACE_MSGS=yes # the TRACE() macro
563 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
567 # Check whether --enable-dll or --disable-dll was given.
568 if test "${enable_dll+set}" = set; then
569 enableval="$enable_dll"
570 if test "$enableval" = "no"; then LIBEXT="a"; fi
574 # Check whether --enable-debug or --disable-debug was given.
575 if test "${enable_debug+set}" = set; then
576 enableval="$enable_debug"
577 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
581 # Check whether --enable-opengl or --disable-opengl was given.
582 if test "${enable_opengl+set}" = set; then
583 enableval="$enable_opengl"
584 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
588 # Check whether --enable-trace or --disable-trace was given.
589 if test "${enable_trace+set}" = set; then
590 enableval="$enable_trace"
591 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
595 # Check whether --with-curses or --without-curses was given.
596 if test "${with_curses+set}" = set; then
597 withval="$with_curses"
598 if test "$withval" = "no"; then CURSES="no"; fi
602 # Check whether --with-reentrant-x or --without-reentrant-x was given.
603 if test "${with_reentrant_x+set}" = set; then
604 withval="$with_reentrant_x"
611 if test "$DEBUG_MSGS" = "no"
613 cat >> confdefs.h <<\EOF
614 #define NO_DEBUG_MSGS 1
617 cat >> confdefs.h <<\EOF
618 #define NO_TRACE_MSGS 1
622 if test "$TRACE_MSGS" = "no"
624 cat >> confdefs.h <<\EOF
625 #define NO_TRACE_MSGS 1
632 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
633 echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5
634 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
635 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 cat > conftestmake <<\EOF
640 @echo 'ac_maketemp="${MAKE}"'
642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
643 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
644 if test -n "$ac_maketemp"; then
645 eval ac_cv_prog_make_${ac_make}_set=yes
647 eval ac_cv_prog_make_${ac_make}_set=no
651 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
652 echo "$ac_t""yes" 1>&6
655 echo "$ac_t""no" 1>&6
656 SET_MAKE="MAKE=${MAKE-make}"
659 # Extract the first word of "gcc", so it can be a program name with args.
660 set dummy gcc; ac_word=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 echo "configure:663: checking for $ac_word" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690 set dummy cc; ac_word=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
714 if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
723 set dummy "$ac_dir/$ac_word" "$@"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
740 # Extract the first word of "cl", so it can be a program name with args.
741 set dummy cl; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
766 echo "$ac_t""no" 1>&6
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779 ac_cpp='$CPP $CPPFLAGS'
780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782 cross_compiling=$ac_cv_prog_cc_cross
784 cat > conftest.$ac_ext << EOF
786 #line 787 "configure"
787 #include "confdefs.h"
791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
797 ac_cv_prog_cc_cross=yes
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813 if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819 cross_compiling=$ac_cv_prog_cc_cross
821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822 echo "configure:823: checking whether we are using GNU C" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.c <<EOF
831 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
840 if test $ac_cv_prog_gcc = yes; then
846 ac_test_CFLAGS="${CFLAGS+set}"
847 ac_save_CFLAGS="$CFLAGS"
849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 echo 'void f(){}' > conftest.c
855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865 if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867 elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
874 if test "$GCC" = yes; then
881 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
882 echo "configure:883: checking how to run the C preprocessor" >&5
883 # On Suns, sometimes $CPP names a directory.
884 if test -n "$CPP" && test -d "$CPP"; then
887 if test -z "$CPP"; then
888 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 # This must be in double quotes, not single quotes, because CPP may get
892 # substituted into the Makefile and "${CC-cc}" will confuse make.
894 # On the NeXT, cc -E runs the code through the compiler's parser,
895 # not just through cpp.
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
912 CPP="${CC-cc} -E -traditional-cpp"
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
929 CPP="${CC-cc} -nologo -E"
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
953 ac_cv_prog_CPP="$CPP"
955 CPP="$ac_cv_prog_CPP"
957 ac_cv_prog_CPP="$CPP"
959 echo "$ac_t""$CPP" 1>&6
961 # If we find X, set shell vars x_includes and x_libraries to the
962 # paths, otherwise set no_x=yes.
963 # Uses ac_ vars as temps to allow command line to override cache and checks.
964 # --without-x overrides everything else, but does not touch the cache.
965 echo $ac_n "checking for X""... $ac_c" 1>&6
966 echo "configure:967: checking for X" >&5
968 # Check whether --with-x or --without-x was given.
969 if test "${with_x+set}" = set; then
974 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
975 if test "x$with_x" = xno; then
976 # The user explicitly disabled X.
979 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
980 # Both variables are already set.
983 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 # One or both of the vars are not set, and there is no cached value.
987 ac_x_includes=NO ac_x_libraries=NO
989 if mkdir conftestdir; then
991 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
992 cat > Imakefile <<'EOF'
994 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
996 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
999 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1000 for ac_extension in a so sl; do
1001 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1002 test -f $ac_im_libdir/libX11.$ac_extension; then
1003 ac_im_usrlibdir=$ac_im_libdir; break
1006 # Screen out bogus values from the imake configuration. They are
1007 # bogus both because they are the default anyway, and because
1008 # using them would break gcc on systems where it needs fixed includes.
1009 case "$ac_im_incroot" in
1011 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1013 case "$ac_im_usrlibdir" in
1015 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1022 if test "$ac_x_includes" = NO; then
1023 # Guess where to find include files, by looking for this one X11 .h file.
1024 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1026 # First, try using that file with no special directory specified.
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <$x_direct_test_include>
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1037 # We can compile using X headers with no special include directory.
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1044 # Look for the header file in a standard set of common directories.
1045 # Check X11 before X11Rn because it is often a symlink to the current release.
1048 /usr/X11R6/include \
1049 /usr/X11R5/include \
1050 /usr/X11R4/include \
1053 /usr/include/X11R6 \
1054 /usr/include/X11R5 \
1055 /usr/include/X11R4 \
1057 /usr/local/X11/include \
1058 /usr/local/X11R6/include \
1059 /usr/local/X11R5/include \
1060 /usr/local/X11R4/include \
1062 /usr/local/include/X11 \
1063 /usr/local/include/X11R6 \
1064 /usr/local/include/X11R5 \
1065 /usr/local/include/X11R4 \
1069 /usr/XFree86/include/X11 \
1072 /usr/local/include \
1073 /usr/unsupported/include \
1074 /usr/athena/include \
1075 /usr/local/x11r5/include \
1076 /usr/lpp/Xamples/include \
1078 /usr/openwin/include \
1079 /usr/openwin/share/include \
1082 if test -r "$ac_dir/$x_direct_test_include"; then
1083 ac_x_includes=$ac_dir
1089 fi # $ac_x_includes = NO
1091 if test "$ac_x_libraries" = NO; then
1092 # Check for the libraries.
1094 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1095 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1097 # See if we find them without any special options.
1098 # Don't add to $LIBS permanently.
1099 ac_save_LIBS="$LIBS"
1100 LIBS="-l$x_direct_test_library $LIBS"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1106 ${x_direct_test_function}()
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1111 LIBS="$ac_save_LIBS"
1112 # We can link X programs with no special library path.
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1118 LIBS="$ac_save_LIBS"
1119 # First see if replacing the include by lib works.
1120 # Check X11 before X11Rn because it is often a symlink to the current release.
1121 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1132 /usr/local/X11/lib \
1133 /usr/local/X11R6/lib \
1134 /usr/local/X11R5/lib \
1135 /usr/local/X11R4/lib \
1137 /usr/local/lib/X11 \
1138 /usr/local/lib/X11R6 \
1139 /usr/local/lib/X11R5 \
1140 /usr/local/lib/X11R4 \
1144 /usr/XFree86/lib/X11 \
1148 /usr/unsupported/lib \
1150 /usr/local/x11r5/lib \
1151 /usr/lpp/Xamples/lib \
1155 /usr/openwin/share/lib \
1158 for ac_extension in a so sl; do
1159 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1160 ac_x_libraries=$ac_dir
1167 fi # $ac_x_libraries = NO
1169 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1170 # Didn't find X anywhere. Cache the known absence of X.
1171 ac_cv_have_x="have_x=no"
1173 # Record where we found X for the cache.
1174 ac_cv_have_x="have_x=yes \
1175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1179 eval "$ac_cv_have_x"
1182 if test "$have_x" != yes; then
1183 echo "$ac_t""$have_x" 1>&6
1186 # If each of the values was on the command line, it overrides each guess.
1187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1189 # Update the cache value to reflect the command line values.
1190 ac_cv_have_x="have_x=yes \
1191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1195 if test "$no_x" = yes; then
1196 # Not all programs may use this symbol, but it does not hurt to define it.
1197 cat >> confdefs.h <<\EOF
1198 #define X_DISPLAY_MISSING 1
1201 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1203 if test -n "$x_includes"; then
1204 X_CFLAGS="$X_CFLAGS -I$x_includes"
1207 # It would also be nice to do this for all -L options, not just this one.
1208 if test -n "$x_libraries"; then
1209 X_LIBS="$X_LIBS -L$x_libraries"
1210 # For Solaris; some versions of Sun CC require a space after -R and
1211 # others require no space. Words are not sufficient . . . .
1212 case "`(uname -sr) 2>/dev/null`" in
1214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether -R must be followed by a space" >&5
1216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1225 if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1235 if test $ac_R_nospace = yes; then
1236 echo "$ac_t""no" 1>&6
1237 X_LIBS="$X_LIBS -R$x_libraries"
1239 LIBS="$ac_xsave_LIBS -R $x_libraries"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1258 if test $ac_R_space = yes; then
1259 echo "$ac_t""yes" 1>&6
1260 X_LIBS="$X_LIBS -R $x_libraries"
1262 echo "$ac_t""neither works" 1>&6
1265 LIBS="$ac_xsave_LIBS"
1269 # Check for system-dependent libraries X programs must link with.
1270 # Do this before checking for the system-independent R6 libraries
1271 # (-lICE), since we may need -lsocket or whatever for X linking.
1273 if test "$ISC" = yes; then
1274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1277 # libraries were built with DECnet support. And karl@cs.umb.edu says
1278 # the Alpha needs dnet_stub (dnet does not exist).
1279 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1280 echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5
1281 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1316 echo "$ac_t""no" 1>&6
1319 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1321 echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5
1322 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 ac_save_LIBS="$LIBS"
1327 LIBS="-ldnet_stub $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1347 eval "ac_cv_lib_$ac_lib_var=no"
1350 LIBS="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1357 echo "$ac_t""no" 1>&6
1362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1363 # to get the SysV transport functions.
1364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1366 # The nsl library prevents programs from opening the X display
1367 # on Irix 5.2, according to dickey@clark.net.
1368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1369 echo "configure:1370: checking for gethostbyname" >&5
1370 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* System header to define __stub macros and hopefully few prototypes,
1377 which can conflict with char gethostbyname(); below. */
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382 char gethostbyname();
1386 /* The GNU C library defines this for functions which it implements
1387 to always fail with ENOSYS. Some functions are actually named
1388 something starting with __ and the normal name is an alias. */
1389 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399 eval "ac_cv_func_gethostbyname=yes"
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1404 eval "ac_cv_func_gethostbyname=no"
1409 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1413 echo "$ac_t""no" 1>&6
1416 if test $ac_cv_func_gethostbyname = no; then
1417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1418 echo "configure:1419: checking for gethostbyname in -lnsl" >&5
1419 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 ac_save_LIBS="$LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char gethostbyname();
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1444 eval "ac_cv_lib_$ac_lib_var=no"
1447 LIBS="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1454 echo "$ac_t""no" 1>&6
1459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1460 # socket/setsockopt and other routines are undefined under SCO ODT
1461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1462 # on later versions), says simon@lia.di.epfl.ch: it contains
1463 # gethostby* variants that don't use the nameserver (or something).
1464 # -lsocket must be given before -lnsl if both are needed.
1465 # We assume that if connect needs -lnsl, so does gethostbyname.
1466 echo $ac_n "checking for connect""... $ac_c" 1>&6
1467 echo "configure:1468: checking for connect" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char connect(); below. */
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_connect) || defined (__stub___connect)
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1497 eval "ac_cv_func_connect=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_func_connect=no"
1507 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1511 echo "$ac_t""no" 1>&6
1514 if test $ac_cv_func_connect = no; then
1515 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1516 echo "configure:1517: checking for connect in -lsocket" >&5
1517 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_save_LIBS="$LIBS"
1522 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1542 eval "ac_cv_lib_$ac_lib_var=no"
1545 LIBS="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1552 echo "$ac_t""no" 1>&6
1557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1558 echo $ac_n "checking for remove""... $ac_c" 1>&6
1559 echo "configure:1560: checking for remove" >&5
1560 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char remove(); below. */
1569 /* Override any gcc2 internal prototype to avoid an error. */
1570 /* We use char because int might match the return type of a gcc2
1571 builtin and then its argument prototype would still apply. */
1576 /* The GNU C library defines this for functions which it implements
1577 to always fail with ENOSYS. Some functions are actually named
1578 something starting with __ and the normal name is an alias. */
1579 #if defined (__stub_remove) || defined (__stub___remove)
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1589 eval "ac_cv_func_remove=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1594 eval "ac_cv_func_remove=no"
1599 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1603 echo "$ac_t""no" 1>&6
1606 if test $ac_cv_func_remove = no; then
1607 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1608 echo "configure:1609: checking for remove in -lposix" >&5
1609 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 ac_save_LIBS="$LIBS"
1614 LIBS="-lposix $LIBS"
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1634 eval "ac_cv_lib_$ac_lib_var=no"
1637 LIBS="$ac_save_LIBS"
1640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1644 echo "$ac_t""no" 1>&6
1649 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1650 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1651 echo "configure:1652: checking for shmat" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char shmat(); below. */
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_shmat) || defined (__stub___shmat)
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1681 eval "ac_cv_func_shmat=yes"
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1686 eval "ac_cv_func_shmat=no"
1691 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1695 echo "$ac_t""no" 1>&6
1698 if test $ac_cv_func_shmat = no; then
1699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1700 echo "configure:1701: checking for shmat in -lipc" >&5
1701 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 ac_save_LIBS="$LIBS"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1726 eval "ac_cv_lib_$ac_lib_var=no"
1729 LIBS="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1736 echo "$ac_t""no" 1>&6
1742 # Check for libraries that X11R6 Xt/Xaw programs need.
1743 ac_save_LDFLAGS="$LDFLAGS"
1744 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1745 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1746 # check for ICE first), but we must link in the order -lSM -lICE or
1747 # we get undefined symbols. So assume we have SM if we have ICE.
1748 # These have to be linked with before -lX11, unlike the other
1749 # libraries we check for below, so use a different variable.
1750 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1751 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1752 echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5
1753 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765 char IceConnectionNumber();
1768 IceConnectionNumber()
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 eval "ac_cv_lib_$ac_lib_var=no"
1781 LIBS="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1788 echo "$ac_t""no" 1>&6
1791 LDFLAGS="$ac_save_LDFLAGS"
1795 for ac_prog in 'bison -y' byacc
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_word" >&5
1801 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 if test -n "$YACC"; then
1805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1809 for ac_dir in $ac_dummy; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1812 ac_cv_prog_YACC="$ac_prog"
1819 YACC="$ac_cv_prog_YACC"
1820 if test -n "$YACC"; then
1821 echo "$ac_t""$YACC" 1>&6
1823 echo "$ac_t""no" 1>&6
1826 test -n "$YACC" && break
1828 test -n "$YACC" || YACC="yacc"
1830 # Extract the first word of "flex", so it can be a program name with args.
1831 set dummy flex; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 if test -n "$LEX"; then
1838 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_LEX="flex"
1850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1853 LEX="$ac_cv_prog_LEX"
1854 if test -n "$LEX"; then
1855 echo "$ac_t""$LEX" 1>&6
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$LEXLIB"
1866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1867 echo "configure:1868: checking for yywrap in -l$ac_lib" >&5
1868 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 ac_save_LIBS="$LIBS"
1873 LIBS="-l$ac_lib $LIBS"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1903 echo "$ac_t""no" 1>&6
1908 # Extract the first word of "ranlib", so it can be a program name with args.
1909 set dummy ranlib; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$RANLIB"; then
1916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_RANLIB="ranlib"
1928 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1931 RANLIB="$ac_cv_prog_RANLIB"
1932 if test -n "$RANLIB"; then
1933 echo "$ac_t""$RANLIB" 1>&6
1935 echo "$ac_t""no" 1>&6
1938 # Find a good install program. We prefer a C program (faster),
1939 # so one script is as good as another. But avoid the broken or
1940 # incompatible versions:
1941 # SysV /etc/install, /usr/sbin/install
1942 # SunOS /usr/etc/install
1943 # IRIX /sbin/install
1945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1948 # ./install, which can be erroneously created by make from ./install.sh.
1949 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1950 echo "configure:1951: checking for a BSD compatible install" >&5
1951 if test -z "$INSTALL"; then
1952 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1956 for ac_dir in $PATH; do
1957 # Account for people who put trailing slashes in PATH elements.
1959 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1961 # OSF1 and SCO ODT 3.0 have their own names for install.
1962 # Don't use installbsd from OSF since it installs stuff as root
1964 for ac_prog in ginstall scoinst install; do
1965 if test -f $ac_dir/$ac_prog; then
1966 if test $ac_prog = install &&
1967 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1968 # AIX install. It has an incompatible calling convention.
1971 ac_cv_path_install="$ac_dir/$ac_prog -c"
1982 if test "${ac_cv_path_install+set}" = set; then
1983 INSTALL="$ac_cv_path_install"
1985 # As a last resort, use the slow shell script. We don't cache a
1986 # path for INSTALL within a source directory, because that will
1987 # break other packages using the cache if that directory is
1988 # removed, or if the path is relative.
1989 INSTALL="$ac_install_sh"
1992 echo "$ac_t""$INSTALL" 1>&6
1994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1995 # It thinks the first close brace ends the variable substitution.
1996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2002 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2003 echo "configure:2004: checking whether ln -s works" >&5
2004 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2008 if ln -s X conftestdata 2>/dev/null
2011 ac_cv_prog_LN_S="ln -s"
2016 LN_S="$ac_cv_prog_LN_S"
2017 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2018 echo "$ac_t""yes" 1>&6
2020 echo "$ac_t""no" 1>&6
2023 # Extract the first word of "c2man", so it can be a program name with args.
2024 set dummy c2man; ac_word=$2
2025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_word" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 if test -n "$C2MAN"; then
2031 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/$ac_word; then
2038 ac_cv_prog_C2MAN="c2man"
2043 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2046 C2MAN="$ac_cv_prog_C2MAN"
2047 if test -n "$C2MAN"; then
2048 echo "$ac_t""$C2MAN" 1>&6
2050 echo "$ac_t""no" 1>&6
2053 # Extract the first word of "ldconfig", so it can be a program name with args.
2054 set dummy ldconfig; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2062 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2065 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 ac_dummy="/sbin:/usr/sbin:$PATH"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word; then
2073 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2078 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2082 LDCONFIG="$ac_cv_path_LDCONFIG"
2083 if test -n "$LDCONFIG"; then
2084 echo "$ac_t""$LDCONFIG" 1>&6
2086 echo "$ac_t""no" 1>&6
2090 for ac_prog in lclint lint
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 if test -n "$LINT"; then
2100 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/$ac_word; then
2107 ac_cv_prog_LINT="$ac_prog"
2114 LINT="$ac_cv_prog_LINT"
2115 if test -n "$LINT"; then
2116 echo "$ac_t""$LINT" 1>&6
2118 echo "$ac_t""no" 1>&6
2121 test -n "$LINT" && break
2124 if test "$LINT" = "lint"
2126 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2132 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2133 echo "configure:2134: checking for sqrt in -lm" >&5
2134 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 ac_save_LIBS="$LIBS"
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2154 eval "ac_cv_lib_$ac_lib_var=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2159 eval "ac_cv_lib_$ac_lib_var=no"
2162 LIBS="$ac_save_LIBS"
2165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2169 cat >> confdefs.h <<EOF
2170 #define $ac_tr_lib 1
2176 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2180 echo "configure:2181: checking for i386_set_ldt in -li386" >&5
2181 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS="$LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char i386_set_ldt();
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_lib 1
2223 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2227 echo "configure:2228: checking for _oss_ioctl in -lossaudio" >&5
2228 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 ac_save_LIBS="$LIBS"
2233 LIBS="-lossaudio $LIBS"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_lib_$ac_lib_var=no"
2256 LIBS="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_lib 1
2267 LIBS="-lossaudio $LIBS"
2270 echo "$ac_t""no" 1>&6
2273 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2274 echo "configure:2275: checking for iswalnum in -lw" >&5
2275 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 ac_save_LIBS="$LIBS"
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2295 eval "ac_cv_lib_$ac_lib_var=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 eval "ac_cv_lib_$ac_lib_var=no"
2303 LIBS="$ac_save_LIBS"
2306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_lib 1
2317 echo "$ac_t""no" 1>&6
2320 for ac_func in gethostbyname
2322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_func" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char $ac_func(); below. */
2333 /* Override any gcc2 internal prototype to avoid an error. */
2334 /* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 eval "ac_cv_func_$ac_func=yes"
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 eval "ac_cv_func_$ac_func=no"
2363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_func 1
2371 echo "$ac_t""no" 1>&6
2372 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2373 echo "configure:2374: checking for gethostbyname in -lnsl" >&5
2374 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 ac_save_LIBS="$LIBS"
2379 LIBS="-lnsl -lsocket $LIBS"
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 /* Override any gcc2 internal prototype to avoid an error. */
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char gethostbyname();
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 eval "ac_cv_lib_$ac_lib_var=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 eval "ac_cv_lib_$ac_lib_var=no"
2402 LIBS="$ac_save_LIBS"
2405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2409 echo "$ac_t""no" 1>&6
2410 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2411 echo "configure:2412: checking for gethostbyname in -lsocket" >&5
2412 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 ac_save_LIBS="$LIBS"
2417 LIBS="-lsocket -lnsl $LIBS"
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424 char gethostbyname();
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432 eval "ac_cv_lib_$ac_lib_var=yes"
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 eval "ac_cv_lib_$ac_lib_var=no"
2440 LIBS="$ac_save_LIBS"
2443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2447 echo "$ac_t""no" 1>&6
2455 for ac_func in connect
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2488 eval "ac_cv_func_$ac_func=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 eval "ac_cv_func_$ac_func=no"
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2506 echo "$ac_t""no" 1>&6
2507 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2508 echo "configure:2509: checking for connect in -lsocket" >&5
2509 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 ac_save_LIBS="$LIBS"
2514 LIBS="-lsocket $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_lib_$ac_lib_var=no"
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544 cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2548 LIBS="-lsocket $LIBS"
2551 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2558 echo "configure:2559: checking for setrunelocale in -lxpg4" >&5
2559 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 ac_save_LIBS="$LIBS"
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* Override any gcc2 internal prototype to avoid an error. */
2569 /* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2571 char setrunelocale();
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579 eval "ac_cv_lib_$ac_lib_var=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_lib_$ac_lib_var=no"
2587 LIBS="$ac_save_LIBS"
2590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2593 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2594 cat >> confdefs.h <<EOF
2595 #define $ac_tr_lib 1
2601 echo "$ac_t""no" 1>&6
2604 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2605 echo "configure:2606: checking for mmap in -lmmap" >&5
2606 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 ac_save_LIBS="$LIBS"
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2631 eval "ac_cv_lib_$ac_lib_var=no"
2634 LIBS="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h <<EOF
2642 #define $ac_tr_lib 1
2648 echo "$ac_t""no" 1>&6
2651 for ac_func in openpty
2653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_func" >&5
2655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 /* System header to define __stub macros and hopefully few prototypes,
2662 which can conflict with char $ac_func(); below. */
2664 /* Override any gcc2 internal prototype to avoid an error. */
2665 /* We use char because int might match the return type of a gcc2
2666 builtin and then its argument prototype would still apply. */
2671 /* The GNU C library defines this for functions which it implements
2672 to always fail with ENOSYS. Some functions are actually named
2673 something starting with __ and the normal name is an alias. */
2674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2684 eval "ac_cv_func_$ac_func=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2689 eval "ac_cv_func_$ac_func=no"
2694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_func 1
2702 echo "$ac_t""no" 1>&6
2703 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2704 echo "configure:2705: checking for openpty in -lutil" >&5
2705 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_save_LIBS="$LIBS"
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 /* Override any gcc2 internal prototype to avoid an error. */
2715 /* We use char because int might match the return type of a gcc2
2716 builtin and then its argument prototype would still apply. */
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725 eval "ac_cv_lib_$ac_lib_var=yes"
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2730 eval "ac_cv_lib_$ac_lib_var=no"
2733 LIBS="$ac_save_LIBS"
2736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 cat >> confdefs.h <<\EOF
2739 #define HAVE_OPENPTY 1
2745 echo "$ac_t""no" 1>&6
2752 for ac_hdr in dlfcn.h
2754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_hdr" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2766 { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2768 if test -z "$ac_err"; then
2770 eval "ac_cv_header_$ac_safe=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_header_$ac_safe=no"
2780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2783 cat >> confdefs.h <<EOF
2784 #define $ac_tr_hdr 1
2786 for ac_func in dlopen
2788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_func" >&5
2790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $ac_func(); below. */
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819 eval "ac_cv_func_$ac_func=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 eval "ac_cv_func_$ac_func=no"
2829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_func 1
2835 cat >> confdefs.h <<\EOF
2836 #define HAVE_DL_API 1
2840 echo "$ac_t""no" 1>&6
2841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2842 echo "configure:2843: checking for dlopen in -ldl" >&5
2843 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 ac_save_LIBS="$LIBS"
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 /* We use char because int might match the return type of a gcc2
2854 builtin and then its argument prototype would still apply. */
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 eval "ac_cv_lib_$ac_lib_var=yes"
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 eval "ac_cv_lib_$ac_lib_var=no"
2871 LIBS="$ac_save_LIBS"
2874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 cat >> confdefs.h <<\EOF
2877 #define HAVE_DL_API 1
2882 echo "$ac_t""no" 1>&6
2892 echo "$ac_t""no" 1>&6
2913 if test "$have_x" = "yes"
2916 ac_save_CPPFLAGS="$CPPFLAGS"
2917 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2919 for ac_hdr in X11/xpm.h
2921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_hdr" >&5
2924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2933 { (eval echo configure:2934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2935 if test -z "$ac_err"; then
2937 eval "ac_cv_header_$ac_safe=yes"
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2943 eval "ac_cv_header_$ac_safe=no"
2947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2950 cat >> confdefs.h <<EOF
2951 #define $ac_tr_hdr 1
2953 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2954 echo "configure:2955: checking for XpmCreatePixmapFromData in -lXpm" >&5
2955 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 ac_save_LIBS="$LIBS"
2960 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2968 char XpmCreatePixmapFromData();
2971 XpmCreatePixmapFromData()
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 eval "ac_cv_lib_$ac_lib_var=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 eval "ac_cv_lib_$ac_lib_var=no"
2984 LIBS="$ac_save_LIBS"
2987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2988 echo "$ac_t""yes" 1>&6
2989 cat >> confdefs.h <<\EOF
2990 #define HAVE_LIBXXPM 1
2992 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2994 echo "$ac_t""no" 1>&6
2999 echo "$ac_t""no" 1>&6
3000 echo "Redhat : xpm xpm-devel"
3001 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3003 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3005 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3006 echo "the directory /contrib/libraries."
3015 for ac_hdr in X11/Xlib.h
3017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_hdr" >&5
3020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3029 { (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3031 if test -z "$ac_err"; then
3033 eval "ac_cv_header_$ac_safe=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 eval "ac_cv_header_$ac_safe=no"
3043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3046 cat >> confdefs.h <<EOF
3047 #define $ac_tr_hdr 1
3050 for ac_hdr in X11/extensions/XShm.h
3052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_hdr" >&5
3055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3064 { (eval echo configure:3065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3066 if test -z "$ac_err"; then
3068 eval "ac_cv_header_$ac_safe=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_header_$ac_safe=no"
3078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3079 echo "$ac_t""yes" 1>&6
3080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3081 cat >> confdefs.h <<EOF
3082 #define $ac_tr_hdr 1
3084 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3085 echo "configure:3086: checking for XShmQueryExtension in -lXext" >&5
3086 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 ac_save_LIBS="$LIBS"
3091 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3098 char XShmQueryExtension();
3101 XShmQueryExtension()
3104 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3106 eval "ac_cv_lib_$ac_lib_var=yes"
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 eval "ac_cv_lib_$ac_lib_var=no"
3114 LIBS="$ac_save_LIBS"
3117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 cat >> confdefs.h <<\EOF
3120 #define HAVE_LIBXXSHM 1
3124 echo "$ac_t""no" 1>&6
3129 echo "$ac_t""no" 1>&6
3130 echo "configure: warning: Xshm extension not found!!" 1>&2
3136 for ac_hdr in X11/extensions/xf86dga.h
3138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_hdr" >&5
3141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3154 eval "ac_cv_header_$ac_safe=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3160 eval "ac_cv_header_$ac_safe=no"
3164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167 cat >> confdefs.h <<EOF
3168 #define $ac_tr_hdr 1
3170 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3171 echo "configure:3172: checking for XDGAQueryExtension in -lXxf86dga" >&5
3172 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 ac_save_LIBS="$LIBS"
3177 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185 char XDGAQueryExtension();
3188 XDGAQueryExtension()
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3193 eval "ac_cv_lib_$ac_lib_var=yes"
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3198 eval "ac_cv_lib_$ac_lib_var=no"
3201 LIBS="$ac_save_LIBS"
3204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 cat >> confdefs.h <<\EOF
3207 #define HAVE_LIBXXF86DGA2 1
3210 cat >> confdefs.h <<\EOF
3211 #define HAVE_LIBXXF86DGA 1
3214 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3215 DGA_SRCS='$(DGA_SRCS)'
3216 DGA2_SRCS='$(DGA2_SRCS)'
3219 echo "$ac_t""no" 1>&6
3220 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3221 echo "configure:3222: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3222 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 ac_save_LIBS="$LIBS"
3227 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* Override any gcc2 internal prototype to avoid an error. */
3233 /* We use char because int might match the return type of a gcc2
3234 builtin and then its argument prototype would still apply. */
3235 char XF86DGAQueryExtension();
3238 XF86DGAQueryExtension()
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 eval "ac_cv_lib_$ac_lib_var=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_lib_$ac_lib_var=no"
3251 LIBS="$ac_save_LIBS"
3254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_LIBXXF86DGA 1
3260 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3261 DGA_SRCS='$(DGA_SRCS)'
3264 echo "$ac_t""no" 1>&6
3272 echo "$ac_t""no" 1>&6
3273 echo "configure: warning: DGA extension not found!!" 1>&2
3279 for ac_hdr in X11/extensions/xf86vmode.h
3281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_hdr" >&5
3284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3297 eval "ac_cv_header_$ac_safe=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_header_$ac_safe=no"
3307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3310 cat >> confdefs.h <<EOF
3311 #define $ac_tr_hdr 1
3313 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3314 echo "configure:3315: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3315 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 ac_save_LIBS="$LIBS"
3320 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char XF86VidModeQueryExtension();
3331 XF86VidModeQueryExtension()
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 eval "ac_cv_lib_$ac_lib_var=no"
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_LIBXXF86VM 1
3353 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3356 echo "$ac_t""no" 1>&6
3361 echo "$ac_t""no" 1>&6
3362 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3370 echo "$ac_t""no" 1>&6
3374 if test $OPENGL = "yes" -o $OPENGL = "normal"
3376 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_hdr" >&5
3381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3390 { (eval echo configure:3391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3392 if test -z "$ac_err"; then
3394 eval "ac_cv_header_$ac_safe=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3400 eval "ac_cv_header_$ac_safe=no"
3404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3407 cat >> confdefs.h <<EOF
3408 #define $ac_tr_hdr 1
3412 echo "$ac_t""no" 1>&6
3416 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" -a "$ac_cv_header_GL_glext_h" = "yes"
3418 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3419 echo "configure:3420: checking "for up-to-date OpenGL version"" >&5
3420 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3428 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 wine_cv_opengl_version_OK="yes"
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 wine_cv_opengl_version_OK="no"
3445 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3447 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3448 echo "configure:3449: checking "for thread-safe OpenGL version"" >&5
3449 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3459 pthread_getspecific();
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 wine_cv_opengl_version_threadsafe="yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 wine_cv_opengl_version_threadsafe="no"
3476 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3478 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3480 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3481 echo "configure:3482: checking for glXCreateContext in -lGL" >&5
3482 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 ac_save_LIBS="$LIBS"
3487 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char glXCreateContext();
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3516 MESA_SRCS='$(MESA_SRCS)'
3519 echo "$ac_t""no" 1>&6
3523 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3525 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3526 echo "configure:3527: checking "for the OpenGL Color Index extension"" >&5
3527 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3535 GLenum test = GL_COLOR_INDEX8_EXT;
3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_GL_COLOR_TABLE 1
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3551 echo "$ac_t""$dummy" 1>&6
3553 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3554 echo "configure:3555: checking for glColorTableEXT in -lGL" >&5
3555 ac_lib_var=`echo GL'_'glColorTableEXT | 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="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $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. */
3567 char glColorTableEXT();
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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_GL_PALETTED_TEXTURE 1
3593 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3597 echo "configure:3598: checking for glXGetProcAddressARB in -lGL" >&5
3598 ac_lib_var=`echo GL'_'glXGetProcAddressARB | 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="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $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. */
3610 char glXGetProcAddressARB();
3613 glXGetProcAddressARB()
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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_GLX_GETPROCADDRESS 1
3636 echo "$ac_t""no" 1>&6
3640 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_OPENGL 1
3646 OPENGL32_DLL=opengl32
3647 OPENGLFILES='$(OPENGLFILES)'
3654 CPPFLAGS="$ac_save_CPPFLAGS"
3663 if test "$CURSES" = "yes"
3665 for ac_hdr in ncurses.h
3667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3669 echo "configure:3670: checking for $ac_hdr" >&5
3670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3679 { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3681 if test -z "$ac_err"; then
3683 eval "ac_cv_header_$ac_safe=yes"
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3689 eval "ac_cv_header_$ac_safe=no"
3693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3696 cat >> confdefs.h <<EOF
3697 #define $ac_tr_hdr 1
3701 echo "$ac_t""no" 1>&6
3705 if test "$ac_cv_header_ncurses_h" = "yes"
3707 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3708 echo "configure:3709: checking for waddch in -lncurses" >&5
3709 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 ac_save_LIBS="$LIBS"
3714 LIBS="-lncurses $LIBS"
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 eval "ac_cv_lib_$ac_lib_var=no"
3737 LIBS="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3744 cat >> confdefs.h <<EOF
3745 #define $ac_tr_lib 1
3748 LIBS="-lncurses $LIBS"
3751 echo "$ac_t""no" 1>&6
3755 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3757 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3758 echo "configure:3759: checking for resizeterm in -lncurses" >&5
3759 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_save_LIBS="$LIBS"
3764 LIBS="-lncurses $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3779 eval "ac_cv_lib_$ac_lib_var=yes"
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 eval "ac_cv_lib_$ac_lib_var=no"
3787 LIBS="$ac_save_LIBS"
3790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 cat >> confdefs.h <<\EOF
3793 #define HAVE_RESIZETERM 1
3797 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3801 echo "configure:3802: checking for getbkgd in -lncurses" >&5
3802 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_save_LIBS="$LIBS"
3807 LIBS="-lncurses $LIBS"
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 eval "ac_cv_lib_$ac_lib_var=no"
3830 LIBS="$ac_save_LIBS"
3833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_GETBKGD 1
3840 echo "$ac_t""no" 1>&6
3844 for ac_hdr in curses.h
3846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_hdr" >&5
3849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3858 { (eval echo configure:3859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3860 if test -z "$ac_err"; then
3862 eval "ac_cv_header_$ac_safe=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "ac_cv_header_$ac_safe=no"
3872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_hdr 1
3880 echo "$ac_t""no" 1>&6
3884 if test "$ac_cv_header_curses_h" = "yes"
3886 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3887 echo "configure:3888: checking for waddch in -lcurses" >&5
3888 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 ac_save_LIBS="$LIBS"
3893 LIBS="-lcurses $LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3908 eval "ac_cv_lib_$ac_lib_var=yes"
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3913 eval "ac_cv_lib_$ac_lib_var=no"
3916 LIBS="$ac_save_LIBS"
3919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3923 cat >> confdefs.h <<EOF
3924 #define $ac_tr_lib 1
3927 LIBS="-lcurses $LIBS"
3930 echo "$ac_t""no" 1>&6
3933 if test "$ac_cv_lib_curses_waddch" = "yes"
3935 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3936 echo "configure:3937: checking for resizeterm in -lcurses" >&5
3937 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 ac_save_LIBS="$LIBS"
3942 LIBS="-lcurses $LIBS"
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 eval "ac_cv_lib_$ac_lib_var=yes"
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3962 eval "ac_cv_lib_$ac_lib_var=no"
3965 LIBS="$ac_save_LIBS"
3968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_RESIZETERM 1
3975 echo "$ac_t""no" 1>&6
3978 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3979 echo "configure:3980: checking for getbkgd in -lcurses" >&5
3980 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_save_LIBS="$LIBS"
3985 LIBS="-lcurses $LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 eval "ac_cv_lib_$ac_lib_var=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_lib_$ac_lib_var=no"
4008 LIBS="$ac_save_LIBS"
4011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_GETBKGD 1
4018 echo "$ac_t""no" 1>&6
4026 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4027 echo "configure:4028: checking "for GNU style IPX support"" >&5
4028 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/socket.h>
4035 #include <netipx/ipx.h>
4037 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_c_ipx_gnu="yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 ac_cv_c_ipx_gnu="no"
4053 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4054 if test "$ac_cv_c_ipx_gnu" = "yes"
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_IPX_GNU 1
4062 if test "$ac_cv_c_ipx_gnu" = "no"
4064 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4065 echo "configure:4066: checking "for linux style IPX support"" >&5
4066 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <sys/socket.h>
4073 #include <asm/types.h>
4074 #include <linux/ipx.h>
4076 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4079 if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 ac_cv_c_ipx_linux="yes"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4086 ac_cv_c_ipx_linux="no"
4092 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4093 if test "$ac_cv_c_ipx_linux" = "yes"
4095 cat >> confdefs.h <<\EOF
4096 #define HAVE_IPX_LINUX 1
4102 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4106 echo "configure:4107: checking for $ac_hdr" >&5
4107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4116 { (eval echo configure:4117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4118 if test -z "$ac_err"; then
4120 eval "ac_cv_header_$ac_safe=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 eval "ac_cv_header_$ac_safe=no"
4130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4133 cat >> confdefs.h <<EOF
4134 #define $ac_tr_hdr 1
4138 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4144 echo "configure:4145: checking "for Open Sound System"" >&5
4145 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4152 #if defined(HAVE_SYS_SOUNDCARD_H)
4153 #include <sys/soundcard.h>
4154 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4155 #include <machine/soundcard.h>
4156 #elif defined(HAVE_SOUNDCARD_H)
4157 #include <soundcard.h>
4163 /* check for one of the Open Sound System specific SNDCTL_ defines */
4164 #if !defined(SNDCTL_DSP_STEREO)
4165 #error No open sound system
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172 ac_cv_c_opensoundsystem="yes"
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4177 ac_cv_c_opensoundsystem="no"
4182 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4184 if test "$ac_cv_c_opensoundsystem" = "yes"
4186 cat >> confdefs.h <<\EOF
4192 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4193 echo "configure:4194: checking "for Open Sound System/MIDI interface"" >&5
4194 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4201 #if defined(HAVE_SYS_SOUNDCARD_H)
4202 #include <sys/soundcard.h>
4203 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4204 #include <machine/soundcard.h>
4205 #elif defined(HAVE_SOUNDCARD_H)
4206 #include <soundcard.h>
4212 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4213 #if !defined(SNDCTL_SEQ_SYNC)
4214 #error No open sound system MIDI interface
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 ac_cv_c_opensoundsystem_midi="yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 ac_cv_c_opensoundsystem_midi="no"
4231 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4233 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4235 cat >> confdefs.h <<\EOF
4236 #define HAVE_OSS_MIDI 1
4241 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4244 if test "x${GCC}" = "xyes"
4246 CFLAGS="$CFLAGS -Wall"
4247 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4248 echo "configure:4249: checking "for gcc strength-reduce bug"" >&5
4249 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 if test "$cross_compiling" = yes; then
4253 ac_cv_c_gcc_strength_bug="yes"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 static int Array[3];
4263 for(i=0; i<B; i++) Array[i] = i - 3;
4264 exit( Array[1] != -2 );
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4269 ac_cv_c_gcc_strength_bug="no"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 ac_cv_c_gcc_strength_bug="yes"
4281 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4282 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4284 CFLAGS="$CFLAGS -fno-strength-reduce"
4289 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4290 echo "configure:4291: checking "whether external symbols need an underscore prefix"" >&5
4291 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4295 LIBS="conftest_asm.s $LIBS"
4296 cat > conftest_asm.s <<EOF
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4306 if (ac_test) return 1
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4311 ac_cv_c_extern_prefix="yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 ac_cv_c_extern_prefix="no"
4322 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4323 if test "$ac_cv_c_extern_prefix" = "yes"
4325 cat >> confdefs.h <<\EOF
4326 #define NEED_UNDERSCORE_PREFIX 1
4332 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4333 echo "configure:4334: checking "whether assembler accepts .string"" >&5
4334 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4338 LIBS="conftest_asm.s $LIBS"
4339 cat > conftest_asm.s <<EOF
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 ac_cv_c_asm_string="yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 ac_cv_c_asm_string="no"
4363 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4364 if test "$ac_cv_c_asm_string" = "yes"
4366 cat >> confdefs.h <<\EOF
4367 #define HAVE_ASM_STRING 1
4374 if test "$LIBEXT" = "so"
4376 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4377 echo "configure:4378: checking "whether we can build a Linux dll"" >&5
4378 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 saved_cflags=$CFLAGS
4382 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 ac_cv_c_dll_linux="yes"
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4398 ac_cv_c_dll_linux="no"
4401 CFLAGS=$saved_cflags
4405 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4406 if test "$ac_cv_c_dll_linux" = "yes"
4408 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4410 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4411 echo "configure:4412: checking whether we can build a UnixWare (Solaris) dll" >&5
4412 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 saved_cflags=$CFLAGS
4416 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 ac_cv_c_dll_unixware="yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4432 ac_cv_c_dll_unixware="no"
4435 CFLAGS=$saved_cflags
4439 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4440 if test "$ac_cv_c_dll_unixware" = "yes"
4442 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4444 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4445 echo "configure:4446: checking "whether we can build a NetBSD dll"" >&5
4446 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 saved_cflags=$CFLAGS
4450 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 ac_cv_c_dll_netbsd="yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 ac_cv_c_dll_netbsd="no"
4469 CFLAGS=$saved_cflags
4473 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4474 if test "$ac_cv_c_dll_netbsd" = "yes"
4476 LDSHARED="ld -Bshareable -Bforcearchive"
4480 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4488 if test "$LIBEXT" = "so"; then
4490 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4492 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4493 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4494 echo "configure:4495: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4495 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 saved_cflags=$CFLAGS
4499 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4510 ac_cv_c_whole_archive="yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 ac_cv_c_whole_archive="no"
4518 CFLAGS=$saved_cflags
4522 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4523 if test "$ac_cv_c_whole_archive" = "yes"
4525 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4527 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4528 echo "configure:4529: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4529 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 saved_cflags=$CFLAGS
4533 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 ac_cv_c_allextract="yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 ac_cv_c_allextract="no"
4552 CFLAGS=$saved_cflags
4556 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4557 if test "$ac_cv_c_allextract" = "yes"
4559 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4570 wine_cv_libc_reentrant=no
4571 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4572 echo "configure:4573: checking "for reentrant libc: __errno_location"" >&5
4573 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 if test "$cross_compiling" = yes; then
4577 wine_cv_libc_r__errno_location=yes
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4584 int *__errno_location(){return &myerrno;}
4585 main(){connect(0,buf,255); exit(!myerrno);}
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4589 wine_cv_libc_r__errno_location=yes
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 wine_cv_libc_r__errno_location=no
4602 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4603 if test "$wine_cv_libc_r__errno_location" = "yes"
4605 cat >> confdefs.h <<\EOF
4606 #define HAVE__ERRNO_LOCATION 1
4609 wine_cv_libc_reentrant=__errno_location
4611 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4612 echo "configure:4613: checking "for reentrant libc: __error"" >&5
4613 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 if test "$cross_compiling" = yes; then
4617 wine_cv_libc_r__error=yes
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4624 int *__error(){return &myerrno;}
4625 main(){connect(0,buf,255); exit(!myerrno);}
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4629 wine_cv_libc_r__error=yes
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 wine_cv_libc_r__error=no
4642 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4643 if test "$wine_cv_libc_r__error" = "yes"
4645 cat >> confdefs.h <<\EOF
4646 #define HAVE__ERROR 1
4649 wine_cv_libc_reentrant=__error
4651 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4652 echo "configure:4653: checking "for reentrant libc: ___errno"" >&5
4653 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 if test "$cross_compiling" = yes; then
4657 wine_cv_libc_r___errno=yes
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4664 int *___errno(){return &myerrno;}
4665 main(){connect(0,buf,255); exit(!myerrno);}
4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4669 wine_cv_libc_r___errno=yes
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 wine_cv_libc_r___errno=no
4682 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4683 if test "$wine_cv_libc_r___errno" = "yes"
4685 cat >> confdefs.h <<\EOF
4686 #define HAVE___ERRNO 1
4689 wine_cv_libc_reentrant=___errno
4691 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4692 echo "configure:4693: checking "for reentrant libc: __thr_errno"" >&5
4693 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 if test "$cross_compiling" = yes; then
4697 wine_cv_libc_r__thr_errno=yes
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4704 int *__thr_errno(){return &myerrno;}
4705 main(){connect(0,buf,255); exit(!myerrno);}
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4709 wine_cv_libc_r__thr_errno=yes
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 wine_cv_libc_r__thr_errno=no
4722 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4723 if test "$wine_cv_libc_r__thr_errno" = "yes"
4725 cat >> confdefs.h <<\EOF
4726 #define HAVE__THR_ERRNO 1
4729 wine_cv_libc_reentrant=__thr_errno
4731 if test "$wine_cv_libc_reentrant" = "no"
4733 cat >> confdefs.h <<\EOF
4734 #define NO_REENTRANT_LIBC 1
4740 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4742 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4743 echo "configure:4744: checking "for reentrant X libraries"" >&5
4744 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 if test "x$with_reentrant_x" = "xno"
4749 wine_cv_x_reentrant=no
4752 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4753 if test -r $dir/libX11.so; then
4754 libX11_check="-D $dir/libX11.so"
4757 if test -r $dir/libX11.a; then
4758 libX11_check="$dir/libX11.a"
4762 if test "$libX11_check" != "none"; then
4763 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4765 wine_cv_x_reentrant=yes
4767 wine_cv_x_reentrant=no
4770 wine_cv_x_reentrant=unknown
4775 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4777 wine_cv_x_reentrant=no
4779 if test "$wine_cv_x_reentrant" = "no"
4781 cat >> confdefs.h <<\EOF
4782 #define NO_REENTRANT_X11 1
4788 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4789 echo "configure:4790: checking whether byte ordering is bigendian" >&5
4790 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 ac_cv_c_bigendian=unknown
4794 # See if sys/param.h defines the BYTE_ORDER macro.
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <sys/types.h>
4799 #include <sys/param.h>
4802 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4807 if { (eval echo configure:4808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4809 # It does; now see whether it defined to BIG_ENDIAN or not.
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #include <sys/types.h>
4814 #include <sys/param.h>
4817 #if BYTE_ORDER != BIG_ENDIAN
4822 if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824 ac_cv_c_bigendian=yes
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 ac_cv_c_bigendian=no
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4837 if test $ac_cv_c_bigendian = unknown; then
4838 if test "$cross_compiling" = yes; then
4839 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4845 /* Are we little or big endian? From Harbison&Steele. */
4849 char c[sizeof (long)];
4852 exit (u.c[sizeof (long) - 1] == 1);
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4857 ac_cv_c_bigendian=no
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 ac_cv_c_bigendian=yes
4870 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4871 if test $ac_cv_c_bigendian = yes; then
4872 cat >> confdefs.h <<\EOF
4873 #define WORDS_BIGENDIAN 1
4880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4881 # for constant arguments. Useless!
4882 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4883 echo "configure:4884: checking for working alloca.h" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4892 void *p = alloca(2 * sizeof(int));
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 ac_cv_header_alloca_h=yes
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 ac_cv_header_alloca_h=no
4907 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4908 if test $ac_cv_header_alloca_h = yes; then
4909 cat >> confdefs.h <<\EOF
4910 #define HAVE_ALLOCA_H 1
4915 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4916 echo "configure:4917: checking for alloca" >&5
4917 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4925 # define alloca __builtin_alloca
4928 # include <malloc.h>
4929 # define alloca _alloca
4932 # include <alloca.h>
4937 # ifndef alloca /* predefined by HP cc +Olibcalls */
4946 char *p = (char *) alloca(1);
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 ac_cv_func_alloca_works=yes
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 ac_cv_func_alloca_works=no
4961 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4962 if test $ac_cv_func_alloca_works = yes; then
4963 cat >> confdefs.h <<\EOF
4964 #define HAVE_ALLOCA 1
4969 if test $ac_cv_func_alloca_works = no; then
4970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4971 # that cause trouble. Some versions do not even contain alloca or
4972 # contain a buggy version. If you still want to use their alloca,
4973 # use ar to extract alloca.o from them instead of compiling alloca.c.
4974 ALLOCA=alloca.${ac_objext}
4975 cat >> confdefs.h <<\EOF
4980 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4981 echo "configure:4982: checking whether alloca needs Cray hooks" >&5
4982 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 #if defined(CRAY) && ! defined(CRAY2)
4995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996 egrep "webecray" >/dev/null 2>&1; then
5007 echo "$ac_t""$ac_cv_os_cray" 1>&6
5008 if test $ac_cv_os_cray = yes; then
5009 for ac_func in _getb67 GETB67 getb67; do
5010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_func" >&5
5012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* System header to define __stub macros and hopefully few prototypes,
5019 which can conflict with char $ac_func(); below. */
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5028 /* The GNU C library defines this for functions which it implements
5029 to always fail with ENOSYS. Some functions are actually named
5030 something starting with __ and the normal name is an alias. */
5031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 eval "ac_cv_func_$ac_func=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 eval "ac_cv_func_$ac_func=no"
5051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 cat >> confdefs.h <<EOF
5054 #define CRAY_STACKSEG_END $ac_func
5059 echo "$ac_t""no" 1>&6
5065 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5066 echo "configure:5067: checking stack direction for C alloca" >&5
5067 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 if test "$cross_compiling" = yes; then
5071 ac_cv_c_stack_direction=0
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 find_stack_direction ()
5078 static char *addr = 0;
5083 return find_stack_direction ();
5086 return (&dummy > addr) ? 1 : -1;
5090 exit (find_stack_direction() < 0);
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5095 ac_cv_c_stack_direction=1
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5100 ac_cv_c_stack_direction=-1
5107 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5108 cat >> confdefs.h <<EOF
5109 #define STACK_DIRECTION $ac_cv_c_stack_direction
5144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_func" >&5
5146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 eval "ac_cv_func_$ac_func=yes"
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 eval "ac_cv_func_$ac_func=no"
5185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 cat >> confdefs.h <<EOF
5189 #define $ac_tr_func 1
5193 echo "$ac_t""no" 1>&6
5249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5251 echo "configure:5252: checking for $ac_hdr" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5261 { (eval echo configure:5262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5263 if test -z "$ac_err"; then
5265 eval "ac_cv_header_$ac_safe=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5271 eval "ac_cv_header_$ac_safe=no"
5275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5278 cat >> confdefs.h <<EOF
5279 #define $ac_tr_hdr 1
5283 echo "$ac_t""no" 1>&6
5287 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5288 echo "configure:5289: checking whether stat file-mode macros are broken" >&5
5289 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 #include <sys/types.h>
5296 #include <sys/stat.h>
5298 #if defined(S_ISBLK) && defined(S_IFDIR)
5299 # if S_ISBLK (S_IFDIR)
5304 #if defined(S_ISBLK) && defined(S_IFCHR)
5305 # if S_ISBLK (S_IFCHR)
5310 #if defined(S_ISLNK) && defined(S_IFREG)
5311 # if S_ISLNK (S_IFREG)
5316 #if defined(S_ISSOCK) && defined(S_IFREG)
5317 # if S_ISSOCK (S_IFREG)
5323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5324 egrep "You lose" >/dev/null 2>&1; then
5326 ac_cv_header_stat_broken=yes
5329 ac_cv_header_stat_broken=no
5335 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5336 if test $ac_cv_header_stat_broken = yes; then
5337 cat >> confdefs.h <<\EOF
5338 #define STAT_MACROS_BROKEN 1
5345 echo $ac_n "checking for working const""... $ac_c" 1>&6
5346 echo "configure:5347: checking for working const" >&5
5347 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5356 /* Ultrix mips cc rejects this. */
5357 typedef int charset[2]; const charset x = {0,0};
5358 /* SunOS 4.1.1 cc rejects this. */
5359 char const *const *ccp;
5361 /* NEC SVR4.0.2 mips cc rejects this. */
5362 struct point {int x, y;};
5363 static struct point const zero = {0,0};
5364 /* AIX XL C 1.02.0.0 rejects this.
5365 It does not let you subtract one const X* pointer from another in an arm
5366 of an if-expression whose if-part is not a constant expression */
5367 const char *g = "string";
5368 ccp = &g + (g ? g-g : 0);
5369 /* HPUX 7.0 cc rejects these. */
5372 ccp = (char const *const *) p;
5373 { /* SCO 3.2v4 cc rejects this. */
5375 char const *s = 0 ? (char *) 0 : (char const *) 0;
5379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5381 const int *foo = &x[0];
5384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5385 typedef const int *iptr;
5389 { /* AIX XL C 1.02.0.0 rejects this saying
5390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5391 struct s { int j; const int *ap[3]; };
5392 struct s *b; b->j = 5;
5394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5412 echo "$ac_t""$ac_cv_c_const" 1>&6
5413 if test $ac_cv_c_const = no; then
5414 cat >> confdefs.h <<\EOF
5420 echo $ac_n "checking for inline""... $ac_c" 1>&6
5421 echo "configure:5422: checking for inline" >&5
5422 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5426 for ac_kw in inline __inline__ __inline; do
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5432 } int $ac_kw foo() {
5435 if { (eval echo configure:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437 ac_cv_c_inline=$ac_kw; break
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5447 echo "$ac_t""$ac_cv_c_inline" 1>&6
5448 case "$ac_cv_c_inline" in
5450 no) cat >> confdefs.h <<\EOF
5454 *) cat >> confdefs.h <<EOF
5455 #define inline $ac_cv_c_inline
5460 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5461 echo "configure:5462: checking for ANSI C header files" >&5
5462 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5474 { (eval echo configure:5475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5476 if test -z "$ac_err"; then
5478 ac_cv_header_stdc=yes
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5484 ac_cv_header_stdc=no
5488 if test $ac_cv_header_stdc = yes; then
5489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 egrep "memchr" >/dev/null 2>&1; then
5500 ac_cv_header_stdc=no
5506 if test $ac_cv_header_stdc = yes; then
5507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514 egrep "free" >/dev/null 2>&1; then
5518 ac_cv_header_stdc=no
5524 if test $ac_cv_header_stdc = yes; then
5525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5526 if test "$cross_compiling" = yes; then
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5533 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5534 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5536 int main () { int i; for (i = 0; i < 256; i++)
5537 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5548 ac_cv_header_stdc=no
5556 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5557 if test $ac_cv_header_stdc = yes; then
5558 cat >> confdefs.h <<\EOF
5559 #define STDC_HEADERS 1
5564 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5565 echo "configure:5566: checking for size_t" >&5
5566 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5572 #include <sys/types.h>
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5581 ac_cv_type_size_t=yes
5584 ac_cv_type_size_t=no
5589 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5590 if test $ac_cv_type_size_t = no; then
5591 cat >> confdefs.h <<\EOF
5592 #define size_t unsigned
5597 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5598 echo "configure:5599: checking size of long long" >&5
5599 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5602 if test "$cross_compiling" = yes; then
5603 ac_cv_sizeof_long_long=0
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5611 FILE *f=fopen("conftestval", "w");
5613 fprintf(f, "%d\n", sizeof(long long));
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5619 ac_cv_sizeof_long_long=`cat conftestval`
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 ac_cv_sizeof_long_long=0
5630 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5631 cat >> confdefs.h <<EOF
5632 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5637 if test "$ac_cv_header_linux_joystick_h" = "yes"
5639 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5640 echo "configure:5641: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5641 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5648 #include <sys/ioctl.h>
5649 #include <linux/joystick.h>
5651 struct js_event blub;
5652 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5653 #error "no 2.2 header"
5660 if { (eval echo configure:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 wine_cv_linux_joystick_22_api=yes
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5667 wine_cv_linux_joystick_22_api=no
5673 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5674 if test "$wine_cv_linux_joystick_22_api" = "yes"
5676 cat >> confdefs.h <<\EOF
5677 #define HAVE_LINUX_22_JOYSTICK_API 1
5684 if test "$ac_cv_header_sys_vfs_h" = "yes"
5686 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5687 echo "configure:5688: checking "whether sys/vfs.h defines statfs"" >&5
5688 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5695 #include <sys/types.h>
5696 #ifdef HAVE_SYS_PARAM_H
5697 # include <sys/param.h>
5699 #include <sys/vfs.h>
5705 memset(&stfs,0,sizeof(stfs));
5709 if { (eval echo configure:5710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5711 wine_cv_sys_vfs_has_statfs=yes
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 wine_cv_sys_vfs_has_statfs=no
5723 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5724 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5726 cat >> confdefs.h <<\EOF
5727 #define STATFS_DEFINED_BY_SYS_VFS 1
5733 if test "$ac_cv_header_sys_statfs_h" = "yes"
5735 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5736 echo "configure:5737: checking "whether sys/statfs.h defines statfs"" >&5
5737 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 cat > conftest.$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5744 #include <sys/types.h>
5745 #ifdef HAVE_SYS_PARAM_H
5746 # include <sys/param.h>
5748 #include <sys/statfs.h>
5756 if { (eval echo configure:5757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5758 wine_cv_sys_statfs_has_statfs=yes
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 wine_cv_sys_statfs_has_statfs=no
5770 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5771 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5773 cat >> confdefs.h <<\EOF
5774 #define STATFS_DEFINED_BY_SYS_STATFS 1
5780 if test "$ac_cv_header_sys_mount_h" = "yes"
5782 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5783 echo "configure:5784: checking "whether sys/mount.h defines statfs"" >&5
5784 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5791 #include <sys/types.h>
5792 #ifdef HAVE_SYS_PARAM_H
5793 # include <sys/param.h>
5795 #include <sys/mount.h>
5803 if { (eval echo configure:5804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5805 wine_cv_sys_mount_has_statfs=yes
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 wine_cv_sys_mount_has_statfs=no
5817 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5818 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5820 cat >> confdefs.h <<\EOF
5821 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5828 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5829 echo "configure:5830: checking "for statfs.f_bfree"" >&5
5830 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 if test "x$statfs_bfree" = "xno"
5835 wine_cv_statfs_bfree=no
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5841 #include <sys/types.h>
5842 #ifdef HAVE_SYS_PARAM_H
5843 # include <sys/param.h>
5845 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5846 # include <sys/mount.h>
5848 # ifdef STATFS_DEFINED_BY_SYS_VFS
5849 # include <sys/vfs.h>
5851 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5852 # include <sys/statfs.h>
5865 if { (eval echo configure:5866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5867 wine_cv_statfs_bfree=yes
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 wine_cv_statfs_bfree=no
5879 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5880 if test "$wine_cv_statfs_bfree" = "yes"
5882 cat >> confdefs.h <<\EOF
5883 #define STATFS_HAS_BFREE 1
5888 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5889 echo "configure:5890: checking "for statfs.f_bavail"" >&5
5890 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 if test "x$statfs_bavail" = "xno"
5895 wine_cv_statfs_bavail=no
5897 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure"
5899 #include "confdefs.h"
5901 #include <sys/types.h>
5902 #ifdef HAVE_SYS_PARAM_H
5903 # include <sys/param.h>
5905 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5906 # include <sys/mount.h>
5908 # ifdef STATFS_DEFINED_BY_SYS_VFS
5909 # include <sys/vfs.h>
5911 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5912 # include <sys/statfs.h>
5925 if { (eval echo configure:5926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5927 wine_cv_statfs_bavail=yes
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 wine_cv_statfs_bavail=no
5939 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5940 if test "$wine_cv_statfs_bavail" = "yes"
5942 cat >> confdefs.h <<\EOF
5943 #define STATFS_HAS_BAVAIL 1
5949 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5950 echo "configure:5951: checking "for msg_accrights in struct msghdr"" >&5
5951 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5952 echo $ac_n "(cached) $ac_c" 1>&6
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <sys/types.h>
5958 #include <sys/socket.h>
5960 struct msghdr hdr; hdr.msg_accrights=0
5963 if { (eval echo configure:5964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5965 ac_cv_c_msg_accrights="yes"
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5970 ac_cv_c_msg_accrights="no"
5975 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5976 if test "$ac_cv_c_msg_accrights" = "yes"
5978 cat >> confdefs.h <<\EOF
5979 #define HAVE_MSGHDR_ACCRIGHTS 1
5985 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5986 echo "configure:5987: checking "for sun_len in struct sockaddr_un"" >&5
5987 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 #include <sys/types.h>
5994 #include <sys/socket.h>
5997 static struct sockaddr_un addr; addr.sun_len = 1
6000 if { (eval echo configure:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6002 ac_cv_c_sun_len="yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 ac_cv_c_sun_len="no"
6012 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6013 if test "$ac_cv_c_sun_len" = "yes"
6015 cat >> confdefs.h <<\EOF
6016 #define HAVE_SOCKADDR_SUN_LEN 1
6022 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6023 echo "configure:6024: checking "whether we need to define __i386__"" >&5
6024 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 egrep "yes" >/dev/null 2>&1; then
6037 ac_cv_cpp_def_i386="yes"
6040 ac_cv_cpp_def_i386="no"
6046 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6047 if test "$ac_cv_cpp_def_i386" = "yes"
6049 CFLAGS="$CFLAGS -D__i386__"
6050 LINTFLAGS="$LINTFLAGS -D__i386__"
6054 if test "$GCC" = "yes"
6056 GCC_NO_BUILTIN="-fno-builtin"
6063 MAKE_RULES=Make.rules
6066 MAKE_DLL_RULES=dlls/Makedll.rules
6070 cat > confcache <<\EOF
6071 # This file is a shell script that caches the results of configure
6072 # tests run on this system so they can be shared between configure
6073 # scripts and configure runs. It is not useful on other systems.
6074 # If it contains results you don't want to keep, you may remove or edit it.
6076 # By default, configure uses ./config.cache as the cache file,
6077 # creating it if it does not exist already. You can give configure
6078 # the --cache-file=FILE option to use a different cache file; that is
6079 # what configure does when it calls configure scripts in
6080 # subdirectories, so they share the cache.
6081 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6082 # config.status only pays attention to the cache file if you give it the
6083 # --recheck option to rerun configure.
6086 # The following way of writing the cache mishandles newlines in values,
6087 # but we know of no workaround that is simple, portable, and efficient.
6088 # So, don't put newlines in cache variables' values.
6089 # Ultrix sh set writes to stderr and can't be redirected directly,
6090 # and sets the high bit in the cache file unless we assign to the vars.
6092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6094 # `set' does not quote correctly, so add quotes (double-quote substitution
6095 # turns \\\\ into \\, and sed turns \\ into \).
6097 -e "s/'/'\\\\''/g" \
6098 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6101 # `set' quotes correctly as required by POSIX, so do not add quotes.
6102 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6105 if cmp -s $cache_file confcache; then
6108 if test -w $cache_file; then
6109 echo "updating cache $cache_file"
6110 cat confcache > $cache_file
6112 echo "not updating unwritable cache $cache_file"
6117 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6120 # Let make expand exec_prefix.
6121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6123 # Any assignment to VPATH causes Sun make to only execute
6124 # the first set of double-colon rules, so remove it if not needed.
6125 # If there is a colon in the path, we need to keep it.
6126 if test "x$srcdir" = x.; then
6127 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6130 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6132 DEFS=-DHAVE_CONFIG_H
6134 # Without the "./", some shells look in PATH for config.status.
6135 : ${CONFIG_STATUS=./config.status}
6137 echo creating $CONFIG_STATUS
6138 rm -f $CONFIG_STATUS
6139 cat > $CONFIG_STATUS <<EOF
6141 # Generated automatically by configure.
6142 # Run this file to recreate the current configuration.
6143 # This directory was configured as follows,
6144 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6146 # $0 $ac_configure_args
6148 # Compiler output produced by configure, useful for debugging
6149 # configure, is in ./config.log if it exists.
6151 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6154 case "\$ac_option" in
6155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6156 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6157 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6158 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6159 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6161 -help | --help | --hel | --he | --h)
6162 echo "\$ac_cs_usage"; exit 0 ;;
6163 *) echo "\$ac_cs_usage"; exit 1 ;;
6167 ac_given_srcdir=$srcdir
6168 ac_given_INSTALL="$INSTALL"
6170 trap 'rm -fr `echo "
6178 dlls/advapi32/Makefile
6179 dlls/avifil32/Makefile
6180 dlls/comctl32/Makefile
6181 dlls/commdlg/Makefile
6182 dlls/crtdll/Makefile
6183 dlls/dciman32/Makefile
6185 dlls/dinput/Makefile
6187 dlls/dplayx/Makefile
6188 dlls/dsound/Makefile
6191 dlls/imagehlp/Makefile
6193 dlls/kernel/Makefile
6194 dlls/lzexpand/Makefile
6197 dlls/msacm32/Makefile
6198 dlls/msnet32/Makefile
6199 dlls/msvideo/Makefile
6201 dlls/odbc32/Makefile
6203 dlls/oleaut32/Makefile
6204 dlls/olecli/Makefile
6205 dlls/oledlg/Makefile
6206 dlls/olepro32/Makefile
6207 dlls/olesvr/Makefile
6208 dlls/opengl32/Makefile
6210 dlls/rasapi32/Makefile
6211 dlls/richedit/Makefile
6212 dlls/setupapi/Makefile
6213 dlls/setupx/Makefile
6214 dlls/shell32/Makefile
6215 dlls/shfolder/Makefile
6216 dlls/shlwapi/Makefile
6218 dlls/stress/Makefile
6219 dlls/tapi32/Makefile
6220 dlls/ttydrv/Makefile
6221 dlls/ttydrv/Makefile
6222 dlls/urlmon/Makefile
6224 dlls/version/Makefile
6225 dlls/win32s/Makefile
6226 dlls/win87em/Makefile
6227 dlls/winaspi/Makefile
6228 dlls/windebug/Makefile
6229 dlls/wineps/Makefile
6231 dlls/wininet/Makefile
6233 dlls/winmm/joystick/Makefile
6234 dlls/winmm/mcianim/Makefile
6235 dlls/winmm/mciavi/Makefile
6236 dlls/winmm/mcicda/Makefile
6237 dlls/winmm/mciseq/Makefile
6238 dlls/winmm/mciwave/Makefile
6239 dlls/winmm/midimap/Makefile
6240 dlls/winmm/wavemap/Makefile
6241 dlls/winmm/wineoss/Makefile
6242 dlls/winsock/Makefile
6243 dlls/winspool/Makefile
6245 dlls/wsock32/Makefile
6246 dlls/x11drv/Makefile
6247 documentation/Makefile
6248 documentation/wine.conf.man
6249 documentation/wine.man
6252 graphics/enhmetafiledrv/Makefile
6253 graphics/metafiledrv/Makefile
6254 graphics/ttydrv/Makefile
6255 graphics/win16drv/Makefile
6256 graphics/x11drv/Makefile
6271 programs/clock/Makefile
6272 programs/cmdlgtst/Makefile
6273 programs/control/Makefile
6274 programs/avitools/Makefile
6275 programs/osversioncheck/Makefile
6276 programs/notepad/Makefile
6277 programs/progman/Makefile
6278 programs/regtest/Makefile
6279 programs/regapi/Makefile
6280 programs/view/Makefile
6281 programs/wcmd/Makefile
6282 programs/winemine/Makefile
6283 programs/winhelp/Makefile
6284 programs/winver/Makefile
6290 tools/cvdump/Makefile
6291 tools/winebuild/Makefile
6298 windows/ttydrv/Makefile
6299 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6301 cat >> $CONFIG_STATUS <<EOF
6303 # Protect against being on the right side of a sed subst in config.status.
6304 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6305 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6309 s%@CFLAGS@%$CFLAGS%g
6310 s%@CPPFLAGS@%$CPPFLAGS%g
6311 s%@CXXFLAGS@%$CXXFLAGS%g
6312 s%@FFLAGS@%$FFLAGS%g
6314 s%@LDFLAGS@%$LDFLAGS%g
6316 s%@exec_prefix@%$exec_prefix%g
6317 s%@prefix@%$prefix%g
6318 s%@program_transform_name@%$program_transform_name%g
6319 s%@bindir@%$bindir%g
6320 s%@sbindir@%$sbindir%g
6321 s%@libexecdir@%$libexecdir%g
6322 s%@datadir@%$datadir%g
6323 s%@sysconfdir@%$sysconfdir%g
6324 s%@sharedstatedir@%$sharedstatedir%g
6325 s%@localstatedir@%$localstatedir%g
6326 s%@libdir@%$libdir%g
6327 s%@includedir@%$includedir%g
6328 s%@oldincludedir@%$oldincludedir%g
6329 s%@infodir@%$infodir%g
6330 s%@mandir@%$mandir%g
6331 s%@OPTIONS@%$OPTIONS%g
6332 s%@SET_MAKE@%$SET_MAKE%g
6335 s%@X_CFLAGS@%$X_CFLAGS%g
6336 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6337 s%@X_LIBS@%$X_LIBS%g
6338 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6341 s%@LEXLIB@%$LEXLIB%g
6342 s%@RANLIB@%$RANLIB%g
6343 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6344 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6345 s%@INSTALL_DATA@%$INSTALL_DATA%g
6348 s%@LDCONFIG@%$LDCONFIG%g
6350 s%@LINTFLAGS@%$LINTFLAGS%g
6352 s%@X_DLLS@%$X_DLLS%g
6353 s%@XFILES@%$XFILES%g
6354 s%@OPENGLFILES@%$OPENGLFILES%g
6355 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6356 s%@DGA_SRCS@%$DGA_SRCS%g
6357 s%@DGA2_SRCS@%$DGA2_SRCS%g
6358 s%@MESA_SRCS@%$MESA_SRCS%g
6359 s%@DLL_LINK@%$DLL_LINK%g
6360 s%@DLLFLAGS@%$DLLFLAGS%g
6361 s%@LDSHARED@%$LDSHARED%g
6362 s%@LIBEXT@%$LIBEXT%g
6363 s%@ALLOCA@%$ALLOCA%g
6364 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6365 /@MAKE_RULES@/r $MAKE_RULES
6367 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6368 s%@MAKE_DLL_RULES@%%g
6373 cat >> $CONFIG_STATUS <<\EOF
6375 # Split the substitutions into bite-sized pieces for seds with
6376 # small command number limits, like on Digital OSF/1 and HP-UX.
6377 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6378 ac_file=1 # Number of current file.
6379 ac_beg=1 # First line for current file.
6380 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6383 while $ac_more_lines; do
6384 if test $ac_beg -gt 1; then
6385 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6387 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6389 if test ! -s conftest.s$ac_file; then
6391 rm -f conftest.s$ac_file
6393 if test -z "$ac_sed_cmds"; then
6394 ac_sed_cmds="sed -f conftest.s$ac_file"
6396 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6398 ac_file=`expr $ac_file + 1`
6400 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6403 if test -z "$ac_sed_cmds"; then
6408 cat >> $CONFIG_STATUS <<EOF
6410 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6417 dlls/advapi32/Makefile
6418 dlls/avifil32/Makefile
6419 dlls/comctl32/Makefile
6420 dlls/commdlg/Makefile
6421 dlls/crtdll/Makefile
6422 dlls/dciman32/Makefile
6424 dlls/dinput/Makefile
6426 dlls/dplayx/Makefile
6427 dlls/dsound/Makefile
6430 dlls/imagehlp/Makefile
6432 dlls/kernel/Makefile
6433 dlls/lzexpand/Makefile
6436 dlls/msacm32/Makefile
6437 dlls/msnet32/Makefile
6438 dlls/msvideo/Makefile
6440 dlls/odbc32/Makefile
6442 dlls/oleaut32/Makefile
6443 dlls/olecli/Makefile
6444 dlls/oledlg/Makefile
6445 dlls/olepro32/Makefile
6446 dlls/olesvr/Makefile
6447 dlls/opengl32/Makefile
6449 dlls/rasapi32/Makefile
6450 dlls/richedit/Makefile
6451 dlls/setupapi/Makefile
6452 dlls/setupx/Makefile
6453 dlls/shell32/Makefile
6454 dlls/shfolder/Makefile
6455 dlls/shlwapi/Makefile
6457 dlls/stress/Makefile
6458 dlls/tapi32/Makefile
6459 dlls/ttydrv/Makefile
6460 dlls/ttydrv/Makefile
6461 dlls/urlmon/Makefile
6463 dlls/version/Makefile
6464 dlls/win32s/Makefile
6465 dlls/win87em/Makefile
6466 dlls/winaspi/Makefile
6467 dlls/windebug/Makefile
6468 dlls/wineps/Makefile
6470 dlls/wininet/Makefile
6472 dlls/winmm/joystick/Makefile
6473 dlls/winmm/mcianim/Makefile
6474 dlls/winmm/mciavi/Makefile
6475 dlls/winmm/mcicda/Makefile
6476 dlls/winmm/mciseq/Makefile
6477 dlls/winmm/mciwave/Makefile
6478 dlls/winmm/midimap/Makefile
6479 dlls/winmm/wavemap/Makefile
6480 dlls/winmm/wineoss/Makefile
6481 dlls/winsock/Makefile
6482 dlls/winspool/Makefile
6484 dlls/wsock32/Makefile
6485 dlls/x11drv/Makefile
6486 documentation/Makefile
6487 documentation/wine.conf.man
6488 documentation/wine.man
6491 graphics/enhmetafiledrv/Makefile
6492 graphics/metafiledrv/Makefile
6493 graphics/ttydrv/Makefile
6494 graphics/win16drv/Makefile
6495 graphics/x11drv/Makefile
6510 programs/clock/Makefile
6511 programs/cmdlgtst/Makefile
6512 programs/control/Makefile
6513 programs/avitools/Makefile
6514 programs/osversioncheck/Makefile
6515 programs/notepad/Makefile
6516 programs/progman/Makefile
6517 programs/regtest/Makefile
6518 programs/regapi/Makefile
6519 programs/view/Makefile
6520 programs/wcmd/Makefile
6521 programs/winemine/Makefile
6522 programs/winhelp/Makefile
6523 programs/winver/Makefile
6529 tools/cvdump/Makefile
6530 tools/winebuild/Makefile
6537 windows/ttydrv/Makefile
6538 windows/x11drv/Makefile "}
6540 cat >> $CONFIG_STATUS <<\EOF
6541 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6544 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6545 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6546 *) ac_file_in="${ac_file}.in" ;;
6549 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6551 # Remove last slash and all that follows it. Not all systems have dirname.
6552 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6553 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6554 # The file is in a subdirectory.
6555 test ! -d "$ac_dir" && mkdir "$ac_dir"
6556 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6557 # A "../" for each directory in $ac_dir_suffix.
6558 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6560 ac_dir_suffix= ac_dots=
6563 case "$ac_given_srcdir" in
6565 if test -z "$ac_dots"; then top_srcdir=.
6566 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6567 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6569 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6570 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6573 case "$ac_given_INSTALL" in
6574 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6575 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6578 echo creating "$ac_file"
6580 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6582 *Makefile*) ac_comsub="1i\\
6583 # $configure_input" ;;
6587 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6589 s%@configure_input@%$configure_input%g
6590 s%@srcdir@%$srcdir%g
6591 s%@top_srcdir@%$top_srcdir%g
6592 s%@INSTALL@%$INSTALL%g
6593 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6597 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6598 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6600 # ac_d sets the value in "#define NAME VALUE" lines.
6601 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6602 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6605 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6606 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6607 ac_uB='\([ ]\)%\1#\2define\3'
6610 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6611 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6612 ac_eB='$%\1#\2define\3'
6616 if test "${CONFIG_HEADERS+set}" != set; then
6618 cat >> $CONFIG_STATUS <<EOF
6619 CONFIG_HEADERS="include/config.h"
6621 cat >> $CONFIG_STATUS <<\EOF
6623 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6626 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6627 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6628 *) ac_file_in="${ac_file}.in" ;;
6631 echo creating $ac_file
6633 rm -f conftest.frag conftest.in conftest.out
6634 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6635 cat $ac_file_inputs > conftest.in
6639 # Transform confdefs.h into a sed script conftest.vals that substitutes
6640 # the proper values into config.h.in to produce config.h. And first:
6641 # Protect against being on the right side of a sed subst in config.status.
6642 # Protect against being in an unquoted here document in config.status.
6644 cat > conftest.hdr <<\EOF
6647 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6651 sed -n -f conftest.hdr confdefs.h > conftest.vals
6654 # This sed command replaces #undef with comments. This is necessary, for
6655 # example, in the case of _POSIX_SOURCE, which is predefined and required
6656 # on some systems where configure will not decide to define it.
6657 cat >> conftest.vals <<\EOF
6658 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6661 # Break up conftest.vals because some shells have a limit on
6662 # the size of here documents, and old seds have small limits too.
6667 ac_lines=`grep -c . conftest.vals`
6668 # grep -c gives empty output for an empty file on some AIX systems.
6669 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6670 # Write a limited-size here document to conftest.frag.
6671 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6672 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6674 sed -f conftest.frag conftest.in > conftest.out
6676 mv conftest.out conftest.in
6678 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6680 mv conftest.tail conftest.vals
6684 cat >> $CONFIG_STATUS <<\EOF
6685 rm -f conftest.frag conftest.h
6686 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6687 cat conftest.in >> conftest.h
6689 if cmp -s $ac_file conftest.h 2>/dev/null; then
6690 echo "$ac_file is unchanged"
6693 # Remove last slash and all that follows it. Not all systems have dirname.
6694 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6695 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6696 # The file is in a subdirectory.
6697 test ! -d "$ac_dir" && mkdir "$ac_dir"
6700 mv conftest.h $ac_file
6705 cat >> $CONFIG_STATUS <<EOF
6709 cat >> $CONFIG_STATUS <<\EOF
6712 dlls/ddraw/d3ddevice \
6713 dlls/ddraw/dclipper \
6715 dlls/ddraw/direct3d \
6716 dlls/ddraw/dpalette \
6717 dlls/ddraw/dsurface \
6719 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6723 chmod +x $CONFIG_STATUS
6724 rm -fr confdefs* $ac_clean_files
6725 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6728 if test "$have_x" = "no"
6731 echo "*** Warning: X development files not found. Wine will be built without"
6732 echo "*** X support, which currently does not work, and would probably not be"
6733 echo "*** what you want anyway. You will need to install devel packages of"
6734 echo "*** Xlib/Xfree86 and Xpm at the very least."
6735 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6738 echo "*** Warning: Xpm development files not found. Wine will be built without"
6739 echo "*** Xpm support, which currently does not work. You will need to install"
6740 echo "*** devel packages of Xpm."
6743 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6746 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6747 echo "*** terminal resize support. Consider upgrading ncurses."
6750 if test "$wine_cv_libc_reentrant" = "no"
6753 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6754 echo "*** thread support. Consider upgrading libc to a more recent"
6755 echo "*** reentrant version of libc."
6758 if test "$wine_cv_opengl_version_OK" = "no"
6761 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6762 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6765 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6768 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6769 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6770 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6771 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6774 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6777 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6778 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6779 echo "*** support before reporting bugs."
6784 echo "Configure finished. Do 'make depend && make' to compile Wine."