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"
4489 if test "$LIBEXT" = "so"; then
4492 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4494 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4495 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4496 echo "configure:4497: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4497 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 saved_cflags=$CFLAGS
4501 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 ac_cv_c_whole_archive="yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 ac_cv_c_whole_archive="no"
4520 CFLAGS=$saved_cflags
4524 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4525 if test "$ac_cv_c_whole_archive" = "yes"
4527 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4529 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4530 echo "configure:4531: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4531 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 saved_cflags=$CFLAGS
4535 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 ac_cv_c_allextract="yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 ac_cv_c_allextract="no"
4554 CFLAGS=$saved_cflags
4558 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4559 if test "$ac_cv_c_allextract" = "yes"
4561 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4573 wine_cv_libc_reentrant=no
4574 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4575 echo "configure:4576: checking "for reentrant libc: __errno_location"" >&5
4576 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 if test "$cross_compiling" = yes; then
4580 wine_cv_libc_r__errno_location=yes
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4587 int *__errno_location(){return &myerrno;}
4588 main(){connect(0,buf,255); exit(!myerrno);}
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4592 wine_cv_libc_r__errno_location=yes
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 wine_cv_libc_r__errno_location=no
4605 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4606 if test "$wine_cv_libc_r__errno_location" = "yes"
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE__ERRNO_LOCATION 1
4612 wine_cv_libc_reentrant=__errno_location
4614 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4615 echo "configure:4616: checking "for reentrant libc: __error"" >&5
4616 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test "$cross_compiling" = yes; then
4620 wine_cv_libc_r__error=yes
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4627 int *__error(){return &myerrno;}
4628 main(){connect(0,buf,255); exit(!myerrno);}
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4632 wine_cv_libc_r__error=yes
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 wine_cv_libc_r__error=no
4645 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4646 if test "$wine_cv_libc_r__error" = "yes"
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE__ERROR 1
4652 wine_cv_libc_reentrant=__error
4654 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4655 echo "configure:4656: checking "for reentrant libc: ___errno"" >&5
4656 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 if test "$cross_compiling" = yes; then
4660 wine_cv_libc_r___errno=yes
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 int *___errno(){return &myerrno;}
4668 main(){connect(0,buf,255); exit(!myerrno);}
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4672 wine_cv_libc_r___errno=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4677 wine_cv_libc_r___errno=no
4685 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4686 if test "$wine_cv_libc_r___errno" = "yes"
4688 cat >> confdefs.h <<\EOF
4689 #define HAVE___ERRNO 1
4692 wine_cv_libc_reentrant=___errno
4694 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4695 echo "configure:4696: checking "for reentrant libc: __thr_errno"" >&5
4696 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 if test "$cross_compiling" = yes; then
4700 wine_cv_libc_r__thr_errno=yes
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 int *__thr_errno(){return &myerrno;}
4708 main(){connect(0,buf,255); exit(!myerrno);}
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4712 wine_cv_libc_r__thr_errno=yes
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 wine_cv_libc_r__thr_errno=no
4725 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4726 if test "$wine_cv_libc_r__thr_errno" = "yes"
4728 cat >> confdefs.h <<\EOF
4729 #define HAVE__THR_ERRNO 1
4732 wine_cv_libc_reentrant=__thr_errno
4734 if test "$wine_cv_libc_reentrant" = "no"
4736 cat >> confdefs.h <<\EOF
4737 #define NO_REENTRANT_LIBC 1
4743 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4745 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4746 echo "configure:4747: checking "for reentrant X libraries"" >&5
4747 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test "x$with_reentrant_x" = "xno"
4752 wine_cv_x_reentrant=no
4755 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4756 if test -r $dir/libX11.so; then
4757 libX11_check="-D $dir/libX11.so"
4760 if test -r $dir/libX11.a; then
4761 libX11_check="$dir/libX11.a"
4765 if test "$libX11_check" != "none"; then
4766 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4768 wine_cv_x_reentrant=yes
4770 wine_cv_x_reentrant=no
4773 wine_cv_x_reentrant=unknown
4778 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4780 wine_cv_x_reentrant=no
4782 if test "$wine_cv_x_reentrant" = "no"
4784 cat >> confdefs.h <<\EOF
4785 #define NO_REENTRANT_X11 1
4791 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4792 echo "configure:4793: checking whether byte ordering is bigendian" >&5
4793 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 ac_cv_c_bigendian=unknown
4797 # See if sys/param.h defines the BYTE_ORDER macro.
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <sys/types.h>
4802 #include <sys/param.h>
4805 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4810 if { (eval echo configure:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 # It does; now see whether it defined to BIG_ENDIAN or not.
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817 #include <sys/param.h>
4820 #if BYTE_ORDER != BIG_ENDIAN
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4827 ac_cv_c_bigendian=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 ac_cv_c_bigendian=no
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4840 if test $ac_cv_c_bigendian = unknown; then
4841 if test "$cross_compiling" = yes; then
4842 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4848 /* Are we little or big endian? From Harbison&Steele. */
4852 char c[sizeof (long)];
4855 exit (u.c[sizeof (long) - 1] == 1);
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4860 ac_cv_c_bigendian=no
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 ac_cv_c_bigendian=yes
4873 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4874 if test $ac_cv_c_bigendian = yes; then
4875 cat >> confdefs.h <<\EOF
4876 #define WORDS_BIGENDIAN 1
4883 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4884 # for constant arguments. Useless!
4885 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4886 echo "configure:4887: checking for working alloca.h" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 void *p = alloca(2 * sizeof(int));
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 ac_cv_header_alloca_h=yes
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 ac_cv_header_alloca_h=no
4910 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4911 if test $ac_cv_header_alloca_h = yes; then
4912 cat >> confdefs.h <<\EOF
4913 #define HAVE_ALLOCA_H 1
4918 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4919 echo "configure:4920: checking for alloca" >&5
4920 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4928 # define alloca __builtin_alloca
4931 # include <malloc.h>
4932 # define alloca _alloca
4935 # include <alloca.h>
4940 # ifndef alloca /* predefined by HP cc +Olibcalls */
4949 char *p = (char *) alloca(1);
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 ac_cv_func_alloca_works=yes
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 ac_cv_func_alloca_works=no
4964 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4965 if test $ac_cv_func_alloca_works = yes; then
4966 cat >> confdefs.h <<\EOF
4967 #define HAVE_ALLOCA 1
4972 if test $ac_cv_func_alloca_works = no; then
4973 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4974 # that cause trouble. Some versions do not even contain alloca or
4975 # contain a buggy version. If you still want to use their alloca,
4976 # use ar to extract alloca.o from them instead of compiling alloca.c.
4977 ALLOCA=alloca.${ac_objext}
4978 cat >> confdefs.h <<\EOF
4983 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4984 echo "configure:4985: checking whether alloca needs Cray hooks" >&5
4985 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 #if defined(CRAY) && ! defined(CRAY2)
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999 egrep "webecray" >/dev/null 2>&1; then
5010 echo "$ac_t""$ac_cv_os_cray" 1>&6
5011 if test $ac_cv_os_cray = yes; then
5012 for ac_func in _getb67 GETB67 getb67; do
5013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5014 echo "configure:5015: checking for $ac_func" >&5
5015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* System header to define __stub macros and hopefully few prototypes,
5022 which can conflict with char $ac_func(); below. */
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5031 /* The GNU C library defines this for functions which it implements
5032 to always fail with ENOSYS. Some functions are actually named
5033 something starting with __ and the normal name is an alias. */
5034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5044 eval "ac_cv_func_$ac_func=yes"
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 eval "ac_cv_func_$ac_func=no"
5054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 cat >> confdefs.h <<EOF
5057 #define CRAY_STACKSEG_END $ac_func
5062 echo "$ac_t""no" 1>&6
5068 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5069 echo "configure:5070: checking stack direction for C alloca" >&5
5070 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 if test "$cross_compiling" = yes; then
5074 ac_cv_c_stack_direction=0
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 find_stack_direction ()
5081 static char *addr = 0;
5086 return find_stack_direction ();
5089 return (&dummy > addr) ? 1 : -1;
5093 exit (find_stack_direction() < 0);
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5098 ac_cv_c_stack_direction=1
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 ac_cv_c_stack_direction=-1
5110 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5111 cat >> confdefs.h <<EOF
5112 #define STACK_DIRECTION $ac_cv_c_stack_direction
5147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_func" >&5
5149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* System header to define __stub macros and hopefully few prototypes,
5156 which can conflict with char $ac_func(); below. */
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5165 /* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 eval "ac_cv_func_$ac_func=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_func_$ac_func=no"
5188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_func 1
5196 echo "$ac_t""no" 1>&6
5251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_hdr" >&5
5254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5263 { (eval echo configure:5264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5265 if test -z "$ac_err"; then
5267 eval "ac_cv_header_$ac_safe=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_header_$ac_safe=no"
5277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5280 cat >> confdefs.h <<EOF
5281 #define $ac_tr_hdr 1
5285 echo "$ac_t""no" 1>&6
5289 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5290 echo "configure:5291: checking whether stat file-mode macros are broken" >&5
5291 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 #include <sys/types.h>
5298 #include <sys/stat.h>
5300 #if defined(S_ISBLK) && defined(S_IFDIR)
5301 # if S_ISBLK (S_IFDIR)
5306 #if defined(S_ISBLK) && defined(S_IFCHR)
5307 # if S_ISBLK (S_IFCHR)
5312 #if defined(S_ISLNK) && defined(S_IFREG)
5313 # if S_ISLNK (S_IFREG)
5318 #if defined(S_ISSOCK) && defined(S_IFREG)
5319 # if S_ISSOCK (S_IFREG)
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 egrep "You lose" >/dev/null 2>&1; then
5328 ac_cv_header_stat_broken=yes
5331 ac_cv_header_stat_broken=no
5337 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5338 if test $ac_cv_header_stat_broken = yes; then
5339 cat >> confdefs.h <<\EOF
5340 #define STAT_MACROS_BROKEN 1
5347 echo $ac_n "checking for working const""... $ac_c" 1>&6
5348 echo "configure:5349: checking for working const" >&5
5349 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5358 /* Ultrix mips cc rejects this. */
5359 typedef int charset[2]; const charset x = {0,0};
5360 /* SunOS 4.1.1 cc rejects this. */
5361 char const *const *ccp;
5363 /* NEC SVR4.0.2 mips cc rejects this. */
5364 struct point {int x, y;};
5365 static struct point const zero = {0,0};
5366 /* AIX XL C 1.02.0.0 rejects this.
5367 It does not let you subtract one const X* pointer from another in an arm
5368 of an if-expression whose if-part is not a constant expression */
5369 const char *g = "string";
5370 ccp = &g + (g ? g-g : 0);
5371 /* HPUX 7.0 cc rejects these. */
5374 ccp = (char const *const *) p;
5375 { /* SCO 3.2v4 cc rejects this. */
5377 char const *s = 0 ? (char *) 0 : (char const *) 0;
5381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5383 const int *foo = &x[0];
5386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5387 typedef const int *iptr;
5391 { /* AIX XL C 1.02.0.0 rejects this saying
5392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5393 struct s { int j; const int *ap[3]; };
5394 struct s *b; b->j = 5;
5396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5402 if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5414 echo "$ac_t""$ac_cv_c_const" 1>&6
5415 if test $ac_cv_c_const = no; then
5416 cat >> confdefs.h <<\EOF
5422 echo $ac_n "checking for inline""... $ac_c" 1>&6
5423 echo "configure:5424: checking for inline" >&5
5424 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5428 for ac_kw in inline __inline__ __inline; do
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5434 } int $ac_kw foo() {
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 ac_cv_c_inline=$ac_kw; break
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5449 echo "$ac_t""$ac_cv_c_inline" 1>&6
5450 case "$ac_cv_c_inline" in
5452 no) cat >> confdefs.h <<\EOF
5456 *) cat >> confdefs.h <<EOF
5457 #define inline $ac_cv_c_inline
5462 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5463 echo "configure:5464: checking for ANSI C header files" >&5
5464 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5476 { (eval echo configure:5477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5478 if test -z "$ac_err"; then
5480 ac_cv_header_stdc=yes
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 ac_cv_header_stdc=no
5490 if test $ac_cv_header_stdc = yes; then
5491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 egrep "memchr" >/dev/null 2>&1; then
5502 ac_cv_header_stdc=no
5508 if test $ac_cv_header_stdc = yes; then
5509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 egrep "free" >/dev/null 2>&1; then
5520 ac_cv_header_stdc=no
5526 if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5535 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5536 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538 int main () { int i; for (i = 0; i < 256; i++)
5539 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5547 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5550 ac_cv_header_stdc=no
5558 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5559 if test $ac_cv_header_stdc = yes; then
5560 cat >> confdefs.h <<\EOF
5561 #define STDC_HEADERS 1
5566 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5567 echo "configure:5568: checking for size_t" >&5
5568 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 #include <sys/types.h>
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5583 ac_cv_type_size_t=yes
5586 ac_cv_type_size_t=no
5591 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5592 if test $ac_cv_type_size_t = no; then
5593 cat >> confdefs.h <<\EOF
5594 #define size_t unsigned
5599 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5600 echo "configure:5601: checking size of long long" >&5
5601 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 if test "$cross_compiling" = yes; then
5605 ac_cv_sizeof_long_long=0
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5613 FILE *f=fopen("conftestval", "w");
5615 fprintf(f, "%d\n", sizeof(long long));
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5621 ac_cv_sizeof_long_long=`cat conftestval`
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 ac_cv_sizeof_long_long=0
5632 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5633 cat >> confdefs.h <<EOF
5634 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5639 if test "$ac_cv_header_linux_joystick_h" = "yes"
5641 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5642 echo "configure:5643: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5643 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5650 #include <sys/ioctl.h>
5651 #include <linux/joystick.h>
5653 struct js_event blub;
5654 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5655 #error "no 2.2 header"
5662 if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5664 wine_cv_linux_joystick_22_api=yes
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 wine_cv_linux_joystick_22_api=no
5675 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5676 if test "$wine_cv_linux_joystick_22_api" = "yes"
5678 cat >> confdefs.h <<\EOF
5679 #define HAVE_LINUX_22_JOYSTICK_API 1
5686 if test "$ac_cv_header_sys_vfs_h" = "yes"
5688 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5689 echo "configure:5690: checking "whether sys/vfs.h defines statfs"" >&5
5690 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5697 #include <sys/types.h>
5698 #ifdef HAVE_SYS_PARAM_H
5699 # include <sys/param.h>
5701 #include <sys/vfs.h>
5707 memset(&stfs,0,sizeof(stfs));
5711 if { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5713 wine_cv_sys_vfs_has_statfs=yes
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5718 wine_cv_sys_vfs_has_statfs=no
5725 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5726 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5728 cat >> confdefs.h <<\EOF
5729 #define STATFS_DEFINED_BY_SYS_VFS 1
5735 if test "$ac_cv_header_sys_statfs_h" = "yes"
5737 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5738 echo "configure:5739: checking "whether sys/statfs.h defines statfs"" >&5
5739 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5746 #include <sys/types.h>
5747 #ifdef HAVE_SYS_PARAM_H
5748 # include <sys/param.h>
5750 #include <sys/statfs.h>
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5760 wine_cv_sys_statfs_has_statfs=yes
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 wine_cv_sys_statfs_has_statfs=no
5772 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5773 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5775 cat >> confdefs.h <<\EOF
5776 #define STATFS_DEFINED_BY_SYS_STATFS 1
5782 if test "$ac_cv_header_sys_mount_h" = "yes"
5784 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5785 echo "configure:5786: checking "whether sys/mount.h defines statfs"" >&5
5786 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <sys/types.h>
5794 #ifdef HAVE_SYS_PARAM_H
5795 # include <sys/param.h>
5797 #include <sys/mount.h>
5805 if { (eval echo configure:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5807 wine_cv_sys_mount_has_statfs=yes
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 wine_cv_sys_mount_has_statfs=no
5819 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5820 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5822 cat >> confdefs.h <<\EOF
5823 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5830 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5831 echo "configure:5832: checking "for statfs.f_bfree"" >&5
5832 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 if test "x$statfs_bfree" = "xno"
5837 wine_cv_statfs_bfree=no
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5843 #include <sys/types.h>
5844 #ifdef HAVE_SYS_PARAM_H
5845 # include <sys/param.h>
5847 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5848 # include <sys/mount.h>
5850 # ifdef STATFS_DEFINED_BY_SYS_VFS
5851 # include <sys/vfs.h>
5853 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5854 # include <sys/statfs.h>
5867 if { (eval echo configure:5868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5869 wine_cv_statfs_bfree=yes
5871 echo "configure: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5874 wine_cv_statfs_bfree=no
5881 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5882 if test "$wine_cv_statfs_bfree" = "yes"
5884 cat >> confdefs.h <<\EOF
5885 #define STATFS_HAS_BFREE 1
5890 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5891 echo "configure:5892: checking "for statfs.f_bavail"" >&5
5892 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 if test "x$statfs_bavail" = "xno"
5897 wine_cv_statfs_bavail=no
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5903 #include <sys/types.h>
5904 #ifdef HAVE_SYS_PARAM_H
5905 # include <sys/param.h>
5907 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5908 # include <sys/mount.h>
5910 # ifdef STATFS_DEFINED_BY_SYS_VFS
5911 # include <sys/vfs.h>
5913 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5914 # include <sys/statfs.h>
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5929 wine_cv_statfs_bavail=yes
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5934 wine_cv_statfs_bavail=no
5941 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5942 if test "$wine_cv_statfs_bavail" = "yes"
5944 cat >> confdefs.h <<\EOF
5945 #define STATFS_HAS_BAVAIL 1
5951 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5952 echo "configure:5953: checking "for msg_accrights in struct msghdr"" >&5
5953 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5959 #include <sys/types.h>
5960 #include <sys/socket.h>
5962 struct msghdr hdr; hdr.msg_accrights=0
5965 if { (eval echo configure:5966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5967 ac_cv_c_msg_accrights="yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 ac_cv_c_msg_accrights="no"
5977 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5978 if test "$ac_cv_c_msg_accrights" = "yes"
5980 cat >> confdefs.h <<\EOF
5981 #define HAVE_MSGHDR_ACCRIGHTS 1
5987 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5988 echo "configure:5989: checking "for sun_len in struct sockaddr_un"" >&5
5989 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <sys/types.h>
5996 #include <sys/socket.h>
5999 static struct sockaddr_un addr; addr.sun_len = 1
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6004 ac_cv_c_sun_len="yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 ac_cv_c_sun_len="no"
6014 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6015 if test "$ac_cv_c_sun_len" = "yes"
6017 cat >> confdefs.h <<\EOF
6018 #define HAVE_SOCKADDR_SUN_LEN 1
6024 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6025 echo "configure:6026: checking "whether we need to define __i386__"" >&5
6026 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 egrep "yes" >/dev/null 2>&1; then
6039 ac_cv_cpp_def_i386="yes"
6042 ac_cv_cpp_def_i386="no"
6048 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6049 if test "$ac_cv_cpp_def_i386" = "yes"
6051 CFLAGS="$CFLAGS -D__i386__"
6052 LINTFLAGS="$LINTFLAGS -D__i386__"
6056 if test "$GCC" = "yes"
6058 GCC_NO_BUILTIN="-fno-builtin"
6065 MAKE_RULES=Make.rules
6068 MAKE_DLL_RULES=dlls/Makedll.rules
6072 cat > confcache <<\EOF
6073 # This file is a shell script that caches the results of configure
6074 # tests run on this system so they can be shared between configure
6075 # scripts and configure runs. It is not useful on other systems.
6076 # If it contains results you don't want to keep, you may remove or edit it.
6078 # By default, configure uses ./config.cache as the cache file,
6079 # creating it if it does not exist already. You can give configure
6080 # the --cache-file=FILE option to use a different cache file; that is
6081 # what configure does when it calls configure scripts in
6082 # subdirectories, so they share the cache.
6083 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6084 # config.status only pays attention to the cache file if you give it the
6085 # --recheck option to rerun configure.
6088 # The following way of writing the cache mishandles newlines in values,
6089 # but we know of no workaround that is simple, portable, and efficient.
6090 # So, don't put newlines in cache variables' values.
6091 # Ultrix sh set writes to stderr and can't be redirected directly,
6092 # and sets the high bit in the cache file unless we assign to the vars.
6094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6096 # `set' does not quote correctly, so add quotes (double-quote substitution
6097 # turns \\\\ into \\, and sed turns \\ into \).
6099 -e "s/'/'\\\\''/g" \
6100 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6103 # `set' quotes correctly as required by POSIX, so do not add quotes.
6104 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6107 if cmp -s $cache_file confcache; then
6110 if test -w $cache_file; then
6111 echo "updating cache $cache_file"
6112 cat confcache > $cache_file
6114 echo "not updating unwritable cache $cache_file"
6119 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6122 # Let make expand exec_prefix.
6123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6125 # Any assignment to VPATH causes Sun make to only execute
6126 # the first set of double-colon rules, so remove it if not needed.
6127 # If there is a colon in the path, we need to keep it.
6128 if test "x$srcdir" = x.; then
6129 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6132 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6134 DEFS=-DHAVE_CONFIG_H
6136 # Without the "./", some shells look in PATH for config.status.
6137 : ${CONFIG_STATUS=./config.status}
6139 echo creating $CONFIG_STATUS
6140 rm -f $CONFIG_STATUS
6141 cat > $CONFIG_STATUS <<EOF
6143 # Generated automatically by configure.
6144 # Run this file to recreate the current configuration.
6145 # This directory was configured as follows,
6146 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6148 # $0 $ac_configure_args
6150 # Compiler output produced by configure, useful for debugging
6151 # configure, is in ./config.log if it exists.
6153 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6156 case "\$ac_option" in
6157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6158 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6159 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6160 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6161 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6163 -help | --help | --hel | --he | --h)
6164 echo "\$ac_cs_usage"; exit 0 ;;
6165 *) echo "\$ac_cs_usage"; exit 1 ;;
6169 ac_given_srcdir=$srcdir
6170 ac_given_INSTALL="$INSTALL"
6172 trap 'rm -fr `echo "
6180 dlls/advapi32/Makefile
6181 dlls/avifil32/Makefile
6182 dlls/comctl32/Makefile
6183 dlls/commdlg/Makefile
6184 dlls/crtdll/Makefile
6185 dlls/dciman32/Makefile
6187 dlls/dinput/Makefile
6188 dlls/dplayx/Makefile
6189 dlls/dsound/Makefile
6192 dlls/imagehlp/Makefile
6194 dlls/kernel/Makefile
6195 dlls/lzexpand/Makefile
6198 dlls/msacm32/Makefile
6199 dlls/msnet32/Makefile
6200 dlls/msvideo/Makefile
6202 dlls/odbc32/Makefile
6204 dlls/oleaut32/Makefile
6205 dlls/olecli/Makefile
6206 dlls/oledlg/Makefile
6207 dlls/olepro32/Makefile
6208 dlls/olesvr/Makefile
6209 dlls/opengl32/Makefile
6211 dlls/rasapi32/Makefile
6212 dlls/richedit/Makefile
6213 dlls/setupx/Makefile
6214 dlls/shell32/Makefile
6216 dlls/stress/Makefile
6217 dlls/tapi32/Makefile
6218 dlls/ttydrv/Makefile
6219 dlls/urlmon/Makefile
6221 dlls/version/Makefile
6222 dlls/win32s/Makefile
6223 dlls/win87em/Makefile
6224 dlls/winaspi/Makefile
6225 dlls/windebug/Makefile
6226 dlls/wineps/Makefile
6228 dlls/wininet/Makefile
6230 dlls/winmm/joystick/Makefile
6231 dlls/winmm/mcianim/Makefile
6232 dlls/winmm/mciavi/Makefile
6233 dlls/winmm/mcicda/Makefile
6234 dlls/winmm/mciseq/Makefile
6235 dlls/winmm/mciwave/Makefile
6236 dlls/winmm/midimap/Makefile
6237 dlls/winmm/wavemap/Makefile
6238 dlls/winmm/wineoss/Makefile
6239 dlls/winsock/Makefile
6240 dlls/winspool/Makefile
6241 dlls/ttydrv/Makefile
6242 dlls/x11drv/Makefile
6243 documentation/Makefile
6244 documentation/wine.conf.man
6245 documentation/wine.man
6248 graphics/enhmetafiledrv/Makefile
6249 graphics/metafiledrv/Makefile
6250 graphics/ttydrv/Makefile
6251 graphics/win16drv/Makefile
6252 graphics/x11drv/Makefile
6267 programs/clock/Makefile
6268 programs/cmdlgtst/Makefile
6269 programs/control/Makefile
6270 programs/avitools/Makefile
6271 programs/osversioncheck/Makefile
6272 programs/notepad/Makefile
6273 programs/progman/Makefile
6274 programs/regtest/Makefile
6275 programs/regapi/Makefile
6276 programs/view/Makefile
6277 programs/wcmd/Makefile
6278 programs/winemine/Makefile
6279 programs/winhelp/Makefile
6280 programs/winver/Makefile
6286 tools/cvdump/Makefile
6293 windows/ttydrv/Makefile
6294 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6296 cat >> $CONFIG_STATUS <<EOF
6298 # Protect against being on the right side of a sed subst in config.status.
6299 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6300 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6304 s%@CFLAGS@%$CFLAGS%g
6305 s%@CPPFLAGS@%$CPPFLAGS%g
6306 s%@CXXFLAGS@%$CXXFLAGS%g
6307 s%@FFLAGS@%$FFLAGS%g
6309 s%@LDFLAGS@%$LDFLAGS%g
6311 s%@exec_prefix@%$exec_prefix%g
6312 s%@prefix@%$prefix%g
6313 s%@program_transform_name@%$program_transform_name%g
6314 s%@bindir@%$bindir%g
6315 s%@sbindir@%$sbindir%g
6316 s%@libexecdir@%$libexecdir%g
6317 s%@datadir@%$datadir%g
6318 s%@sysconfdir@%$sysconfdir%g
6319 s%@sharedstatedir@%$sharedstatedir%g
6320 s%@localstatedir@%$localstatedir%g
6321 s%@libdir@%$libdir%g
6322 s%@includedir@%$includedir%g
6323 s%@oldincludedir@%$oldincludedir%g
6324 s%@infodir@%$infodir%g
6325 s%@mandir@%$mandir%g
6326 s%@OPTIONS@%$OPTIONS%g
6327 s%@SET_MAKE@%$SET_MAKE%g
6330 s%@X_CFLAGS@%$X_CFLAGS%g
6331 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6332 s%@X_LIBS@%$X_LIBS%g
6333 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6336 s%@LEXLIB@%$LEXLIB%g
6337 s%@RANLIB@%$RANLIB%g
6338 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6339 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6340 s%@INSTALL_DATA@%$INSTALL_DATA%g
6343 s%@LDCONFIG@%$LDCONFIG%g
6345 s%@LINTFLAGS@%$LINTFLAGS%g
6347 s%@X_DLLS@%$X_DLLS%g
6348 s%@XFILES@%$XFILES%g
6349 s%@OPENGLFILES@%$OPENGLFILES%g
6350 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6351 s%@DGA_SRCS@%$DGA_SRCS%g
6352 s%@DGA2_SRCS@%$DGA2_SRCS%g
6353 s%@MESA_SRCS@%$MESA_SRCS%g
6354 s%@DLL_LINK@%$DLL_LINK%g
6355 s%@BUILDFLAGS@%$BUILDFLAGS%g
6356 s%@DLLFLAGS@%$DLLFLAGS%g
6357 s%@LDSHARED@%$LDSHARED%g
6358 s%@LIBEXT@%$LIBEXT%g
6359 s%@ALLOCA@%$ALLOCA%g
6360 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6361 /@MAKE_RULES@/r $MAKE_RULES
6363 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6364 s%@MAKE_DLL_RULES@%%g
6369 cat >> $CONFIG_STATUS <<\EOF
6371 # Split the substitutions into bite-sized pieces for seds with
6372 # small command number limits, like on Digital OSF/1 and HP-UX.
6373 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6374 ac_file=1 # Number of current file.
6375 ac_beg=1 # First line for current file.
6376 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6379 while $ac_more_lines; do
6380 if test $ac_beg -gt 1; then
6381 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6383 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6385 if test ! -s conftest.s$ac_file; then
6387 rm -f conftest.s$ac_file
6389 if test -z "$ac_sed_cmds"; then
6390 ac_sed_cmds="sed -f conftest.s$ac_file"
6392 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6394 ac_file=`expr $ac_file + 1`
6396 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6399 if test -z "$ac_sed_cmds"; then
6404 cat >> $CONFIG_STATUS <<EOF
6406 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6413 dlls/advapi32/Makefile
6414 dlls/avifil32/Makefile
6415 dlls/comctl32/Makefile
6416 dlls/commdlg/Makefile
6417 dlls/crtdll/Makefile
6418 dlls/dciman32/Makefile
6420 dlls/dinput/Makefile
6421 dlls/dplayx/Makefile
6422 dlls/dsound/Makefile
6425 dlls/imagehlp/Makefile
6427 dlls/kernel/Makefile
6428 dlls/lzexpand/Makefile
6431 dlls/msacm32/Makefile
6432 dlls/msnet32/Makefile
6433 dlls/msvideo/Makefile
6435 dlls/odbc32/Makefile
6437 dlls/oleaut32/Makefile
6438 dlls/olecli/Makefile
6439 dlls/oledlg/Makefile
6440 dlls/olepro32/Makefile
6441 dlls/olesvr/Makefile
6442 dlls/opengl32/Makefile
6444 dlls/rasapi32/Makefile
6445 dlls/richedit/Makefile
6446 dlls/setupx/Makefile
6447 dlls/shell32/Makefile
6449 dlls/stress/Makefile
6450 dlls/tapi32/Makefile
6451 dlls/ttydrv/Makefile
6452 dlls/urlmon/Makefile
6454 dlls/version/Makefile
6455 dlls/win32s/Makefile
6456 dlls/win87em/Makefile
6457 dlls/winaspi/Makefile
6458 dlls/windebug/Makefile
6459 dlls/wineps/Makefile
6461 dlls/wininet/Makefile
6463 dlls/winmm/joystick/Makefile
6464 dlls/winmm/mcianim/Makefile
6465 dlls/winmm/mciavi/Makefile
6466 dlls/winmm/mcicda/Makefile
6467 dlls/winmm/mciseq/Makefile
6468 dlls/winmm/mciwave/Makefile
6469 dlls/winmm/midimap/Makefile
6470 dlls/winmm/wavemap/Makefile
6471 dlls/winmm/wineoss/Makefile
6472 dlls/winsock/Makefile
6473 dlls/winspool/Makefile
6474 dlls/ttydrv/Makefile
6475 dlls/x11drv/Makefile
6476 documentation/Makefile
6477 documentation/wine.conf.man
6478 documentation/wine.man
6481 graphics/enhmetafiledrv/Makefile
6482 graphics/metafiledrv/Makefile
6483 graphics/ttydrv/Makefile
6484 graphics/win16drv/Makefile
6485 graphics/x11drv/Makefile
6500 programs/clock/Makefile
6501 programs/cmdlgtst/Makefile
6502 programs/control/Makefile
6503 programs/avitools/Makefile
6504 programs/osversioncheck/Makefile
6505 programs/notepad/Makefile
6506 programs/progman/Makefile
6507 programs/regtest/Makefile
6508 programs/regapi/Makefile
6509 programs/view/Makefile
6510 programs/wcmd/Makefile
6511 programs/winemine/Makefile
6512 programs/winhelp/Makefile
6513 programs/winver/Makefile
6519 tools/cvdump/Makefile
6526 windows/ttydrv/Makefile
6527 windows/x11drv/Makefile "}
6529 cat >> $CONFIG_STATUS <<\EOF
6530 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6533 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6534 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6535 *) ac_file_in="${ac_file}.in" ;;
6538 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6540 # Remove last slash and all that follows it. Not all systems have dirname.
6541 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6542 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6543 # The file is in a subdirectory.
6544 test ! -d "$ac_dir" && mkdir "$ac_dir"
6545 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6546 # A "../" for each directory in $ac_dir_suffix.
6547 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6549 ac_dir_suffix= ac_dots=
6552 case "$ac_given_srcdir" in
6554 if test -z "$ac_dots"; then top_srcdir=.
6555 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6556 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6558 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6559 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6562 case "$ac_given_INSTALL" in
6563 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6564 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6567 echo creating "$ac_file"
6569 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6571 *Makefile*) ac_comsub="1i\\
6572 # $configure_input" ;;
6576 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6578 s%@configure_input@%$configure_input%g
6579 s%@srcdir@%$srcdir%g
6580 s%@top_srcdir@%$top_srcdir%g
6581 s%@INSTALL@%$INSTALL%g
6582 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6586 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6587 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6589 # ac_d sets the value in "#define NAME VALUE" lines.
6590 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6591 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6594 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6595 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6596 ac_uB='\([ ]\)%\1#\2define\3'
6599 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6600 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6601 ac_eB='$%\1#\2define\3'
6605 if test "${CONFIG_HEADERS+set}" != set; then
6607 cat >> $CONFIG_STATUS <<EOF
6608 CONFIG_HEADERS="include/config.h"
6610 cat >> $CONFIG_STATUS <<\EOF
6612 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6613 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6615 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6616 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6617 *) ac_file_in="${ac_file}.in" ;;
6620 echo creating $ac_file
6622 rm -f conftest.frag conftest.in conftest.out
6623 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6624 cat $ac_file_inputs > conftest.in
6628 # Transform confdefs.h into a sed script conftest.vals that substitutes
6629 # the proper values into config.h.in to produce config.h. And first:
6630 # Protect against being on the right side of a sed subst in config.status.
6631 # Protect against being in an unquoted here document in config.status.
6633 cat > conftest.hdr <<\EOF
6636 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6640 sed -n -f conftest.hdr confdefs.h > conftest.vals
6643 # This sed command replaces #undef with comments. This is necessary, for
6644 # example, in the case of _POSIX_SOURCE, which is predefined and required
6645 # on some systems where configure will not decide to define it.
6646 cat >> conftest.vals <<\EOF
6647 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6650 # Break up conftest.vals because some shells have a limit on
6651 # the size of here documents, and old seds have small limits too.
6656 ac_lines=`grep -c . conftest.vals`
6657 # grep -c gives empty output for an empty file on some AIX systems.
6658 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6659 # Write a limited-size here document to conftest.frag.
6660 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6661 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6663 sed -f conftest.frag conftest.in > conftest.out
6665 mv conftest.out conftest.in
6667 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6669 mv conftest.tail conftest.vals
6673 cat >> $CONFIG_STATUS <<\EOF
6674 rm -f conftest.frag conftest.h
6675 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6676 cat conftest.in >> conftest.h
6678 if cmp -s $ac_file conftest.h 2>/dev/null; then
6679 echo "$ac_file is unchanged"
6682 # Remove last slash and all that follows it. Not all systems have dirname.
6683 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6684 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6685 # The file is in a subdirectory.
6686 test ! -d "$ac_dir" && mkdir "$ac_dir"
6689 mv conftest.h $ac_file
6694 cat >> $CONFIG_STATUS <<EOF
6698 cat >> $CONFIG_STATUS <<\EOF
6701 dlls/ddraw/d3ddevice \
6702 dlls/ddraw/dclipper \
6704 dlls/ddraw/direct3d \
6705 dlls/ddraw/dpalette \
6706 dlls/ddraw/dsurface \
6708 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6712 chmod +x $CONFIG_STATUS
6713 rm -fr confdefs* $ac_clean_files
6714 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6717 if test "$have_x" = "no"
6720 echo "*** Warning: X development files not found. Wine will be built without"
6721 echo "*** X support, which currently does not work, and would probably not be"
6722 echo "*** what you want anyway. You will need to install devel packages of"
6723 echo "*** Xlib/Xfree86 and Xpm at the very least."
6724 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6727 echo "*** Warning: Xpm development files not found. Wine will be built without"
6728 echo "*** Xpm support, which currently does not work. You will need to install"
6729 echo "*** devel packages of Xpm."
6732 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6735 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6736 echo "*** terminal resize support. Consider upgrading ncurses."
6739 if test "$wine_cv_libc_reentrant" = "no"
6742 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6743 echo "*** thread support. Consider upgrading libc to a more recent"
6744 echo "*** reentrant version of libc."
6747 if test "$wine_cv_opengl_version_OK" = "no"
6750 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6751 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6754 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6757 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6758 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6759 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6760 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6763 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6766 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6767 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6768 echo "*** support before reporting bugs."
6773 echo "Configure finished. Do 'make depend && make' to compile Wine."