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-debug compile out all debugging messages"
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
20 --disable-trace compile out TRACE messages"
22 --without-curses do not use curses"
24 --without-reentrant-x compile for use with non-reentrant X libraries"
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
542 ac_install_sh="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh; then
546 ac_install_sh="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
604 OPTIONS="$OPTIONS -DNO_DEBUG_MSGS"
607 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
609 OPTIONS="$OPTIONS -DNO_TRACE_MSGS"
613 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
614 echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
616 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 cat > conftestmake <<\EOF
621 @echo 'ac_maketemp="${MAKE}"'
623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625 if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_${ac_make}_set=yes
628 eval ac_cv_prog_make_${ac_make}_set=no
632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
636 echo "$ac_t""no" 1>&6
637 SET_MAKE="MAKE=${MAKE-make}"
640 # Extract the first word of "gcc", so it can be a program name with args.
641 set dummy gcc; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
652 for ac_dir in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
666 echo "$ac_t""no" 1>&6
669 if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671 set dummy cc; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
695 if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy $ac_cv_prog_CC
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
704 set dummy "$ac_dir/$ac_word" "$@"
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
721 # Extract the first word of "cl", so it can be a program name with args.
722 set dummy cl; ac_word=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
747 echo "$ac_t""no" 1>&6
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 cat > conftest.$ac_ext << EOF
767 #line 768 "configure"
768 #include "confdefs.h"
772 if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
773 ac_cv_prog_cc_works=yes
774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (./conftest; exit) 2>/dev/null; then
776 ac_cv_prog_cc_cross=no
778 ac_cv_prog_cc_cross=yes
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
783 ac_cv_prog_cc_works=no
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794 if test $ac_cv_prog_cc_works = no; then
795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800 cross_compiling=$ac_cv_prog_cc_cross
802 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803 echo "configure:804: checking whether we are using GNU C" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 cat > conftest.c <<EOF
812 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
819 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
821 if test $ac_cv_prog_gcc = yes; then
827 ac_test_CFLAGS="${CFLAGS+set}"
828 ac_save_CFLAGS="$CFLAGS"
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
855 if test "$GCC" = yes; then
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
934 ac_cv_prog_CPP="$CPP"
936 CPP="$ac_cv_prog_CPP"
938 ac_cv_prog_CPP="$CPP"
940 echo "$ac_t""$CPP" 1>&6
942 # If we find X, set shell vars x_includes and x_libraries to the
943 # paths, otherwise set no_x=yes.
944 # Uses ac_ vars as temps to allow command line to override cache and checks.
945 # --without-x overrides everything else, but does not touch the cache.
946 echo $ac_n "checking for X""... $ac_c" 1>&6
947 echo "configure:948: checking for X" >&5
949 # Check whether --with-x or --without-x was given.
950 if test "${with_x+set}" = set; then
955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
956 if test "x$with_x" = xno; then
957 # The user explicitly disabled X.
960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
961 # Both variables are already set.
964 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 # One or both of the vars are not set, and there is no cached value.
968 ac_x_includes=NO ac_x_libraries=NO
970 if mkdir conftestdir; then
972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
973 cat > Imakefile <<'EOF'
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
981 for ac_extension in a so sl; do
982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
983 test -f $ac_im_libdir/libX11.$ac_extension; then
984 ac_im_usrlibdir=$ac_im_libdir; break
987 # Screen out bogus values from the imake configuration. They are
988 # bogus both because they are the default anyway, and because
989 # using them would break gcc on systems where it needs fixed includes.
990 case "$ac_im_incroot" in
992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
994 case "$ac_im_usrlibdir" in
996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1003 if test "$ac_x_includes" = NO; then
1004 # Guess where to find include files, by looking for this one X11 .h file.
1005 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1007 # First, try using that file with no special directory specified.
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <$x_direct_test_include>
1013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016 if test -z "$ac_err"; then
1018 # We can compile using X headers with no special include directory.
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1025 # Look for the header file in a standard set of common directories.
1026 # Check X11 before X11Rn because it is often a symlink to the current release.
1029 /usr/X11R6/include \
1030 /usr/X11R5/include \
1031 /usr/X11R4/include \
1034 /usr/include/X11R6 \
1035 /usr/include/X11R5 \
1036 /usr/include/X11R4 \
1038 /usr/local/X11/include \
1039 /usr/local/X11R6/include \
1040 /usr/local/X11R5/include \
1041 /usr/local/X11R4/include \
1043 /usr/local/include/X11 \
1044 /usr/local/include/X11R6 \
1045 /usr/local/include/X11R5 \
1046 /usr/local/include/X11R4 \
1050 /usr/XFree86/include/X11 \
1053 /usr/local/include \
1054 /usr/unsupported/include \
1055 /usr/athena/include \
1056 /usr/local/x11r5/include \
1057 /usr/lpp/Xamples/include \
1059 /usr/openwin/include \
1060 /usr/openwin/share/include \
1063 if test -r "$ac_dir/$x_direct_test_include"; then
1064 ac_x_includes=$ac_dir
1070 fi # $ac_x_includes = NO
1072 if test "$ac_x_libraries" = NO; then
1073 # Check for the libraries.
1075 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1078 # See if we find them without any special options.
1079 # Don't add to $LIBS permanently.
1080 ac_save_LIBS="$LIBS"
1081 LIBS="-l$x_direct_test_library $LIBS"
1082 cat > conftest.$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1087 ${x_direct_test_function}()
1090 if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1092 LIBS="$ac_save_LIBS"
1093 # We can link X programs with no special library path.
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1099 LIBS="$ac_save_LIBS"
1100 # First see if replacing the include by lib works.
1101 # Check X11 before X11Rn because it is often a symlink to the current release.
1102 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1113 /usr/local/X11/lib \
1114 /usr/local/X11R6/lib \
1115 /usr/local/X11R5/lib \
1116 /usr/local/X11R4/lib \
1118 /usr/local/lib/X11 \
1119 /usr/local/lib/X11R6 \
1120 /usr/local/lib/X11R5 \
1121 /usr/local/lib/X11R4 \
1125 /usr/XFree86/lib/X11 \
1129 /usr/unsupported/lib \
1131 /usr/local/x11r5/lib \
1132 /usr/lpp/Xamples/lib \
1136 /usr/openwin/share/lib \
1139 for ac_extension in a so sl; do
1140 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1141 ac_x_libraries=$ac_dir
1148 fi # $ac_x_libraries = NO
1150 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1151 # Didn't find X anywhere. Cache the known absence of X.
1152 ac_cv_have_x="have_x=no"
1154 # Record where we found X for the cache.
1155 ac_cv_have_x="have_x=yes \
1156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1160 eval "$ac_cv_have_x"
1163 if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1167 # If each of the values was on the command line, it overrides each guess.
1168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1170 # Update the cache value to reflect the command line values.
1171 ac_cv_have_x="have_x=yes \
1172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1176 if test "$no_x" = yes; then
1177 # Not all programs may use this symbol, but it does not hurt to define it.
1178 cat >> confdefs.h <<\EOF
1179 #define X_DISPLAY_MISSING 1
1182 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1184 if test -n "$x_includes"; then
1185 X_CFLAGS="$X_CFLAGS -I$x_includes"
1188 # It would also be nice to do this for all -L options, not just this one.
1189 if test -n "$x_libraries"; then
1190 X_LIBS="$X_LIBS -L$x_libraries"
1191 # For Solaris; some versions of Sun CC require a space after -R and
1192 # others require no space. Words are not sufficient . . . .
1193 case "`(uname -sr) 2>/dev/null`" in
1195 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether -R must be followed by a space" >&5
1197 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1216 if test $ac_R_nospace = yes; then
1217 echo "$ac_t""no" 1>&6
1218 X_LIBS="$X_LIBS -R$x_libraries"
1220 LIBS="$ac_xsave_LIBS -R $x_libraries"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1229 if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1239 if test $ac_R_space = yes; then
1240 echo "$ac_t""yes" 1>&6
1241 X_LIBS="$X_LIBS -R $x_libraries"
1243 echo "$ac_t""neither works" 1>&6
1246 LIBS="$ac_xsave_LIBS"
1250 # Check for system-dependent libraries X programs must link with.
1251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
1254 if test "$ISC" = yes; then
1255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1257 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1258 # libraries were built with DECnet support. And karl@cs.umb.edu says
1259 # the Alpha needs dnet_stub (dnet does not exist).
1260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1261 echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
1262 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 ac_save_LIBS="$LIBS"
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* Override any gcc2 internal prototype to avoid an error. */
1272 /* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1282 eval "ac_cv_lib_$ac_lib_var=yes"
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1287 eval "ac_cv_lib_$ac_lib_var=no"
1290 LIBS="$ac_save_LIBS"
1293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1297 echo "$ac_t""no" 1>&6
1300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1302 echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
1303 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 ac_save_LIBS="$LIBS"
1308 LIBS="-ldnet_stub $LIBS"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1328 eval "ac_cv_lib_$ac_lib_var=no"
1331 LIBS="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1338 echo "$ac_t""no" 1>&6
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
1345 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1347 # The nsl library prevents programs from opening the X display
1348 # on Irix 5.2, according to dickey@clark.net.
1349 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char gethostbyname(); below. */
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char gethostbyname();
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 eval "ac_cv_func_gethostbyname=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 eval "ac_cv_func_gethostbyname=no"
1390 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_gethostbyname = no; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1399 echo "configure:1400: checking for gethostbyname in -lnsl" >&5
1400 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 ac_save_LIBS="$LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char gethostbyname();
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1425 eval "ac_cv_lib_$ac_lib_var=no"
1428 LIBS="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1435 echo "$ac_t""no" 1>&6
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1441 # socket/setsockopt and other routines are undefined under SCO ODT
1442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1443 # on later versions), says simon@lia.di.epfl.ch: it contains
1444 # gethostby* variants that don't use the nameserver (or something).
1445 # -lsocket must be given before -lnsl if both are needed.
1446 # We assume that if connect needs -lnsl, so does gethostbyname.
1447 echo $ac_n "checking for connect""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect" >&5
1449 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* System header to define __stub macros and hopefully few prototypes,
1456 which can conflict with char connect(); below. */
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1465 /* The GNU C library defines this for functions which it implements
1466 to always fail with ENOSYS. Some functions are actually named
1467 something starting with __ and the normal name is an alias. */
1468 #if defined (__stub_connect) || defined (__stub___connect)
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1478 eval "ac_cv_func_connect=yes"
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1483 eval "ac_cv_func_connect=no"
1488 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1492 echo "$ac_t""no" 1>&6
1495 if test $ac_cv_func_connect = no; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1497 echo "configure:1498: checking for connect in -lsocket" >&5
1498 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 ac_save_LIBS="$LIBS"
1503 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 /* Override any gcc2 internal prototype to avoid an error. */
1508 /* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1518 eval "ac_cv_lib_$ac_lib_var=yes"
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1523 eval "ac_cv_lib_$ac_lib_var=no"
1526 LIBS="$ac_save_LIBS"
1529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1530 echo "$ac_t""yes" 1>&6
1531 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1533 echo "$ac_t""no" 1>&6
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove" >&5
1541 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 /* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char remove(); below. */
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1557 /* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560 #if defined (__stub_remove) || defined (__stub___remove)
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1570 eval "ac_cv_func_remove=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1575 eval "ac_cv_func_remove=no"
1580 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 if test $ac_cv_func_remove = no; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1589 echo "configure:1590: checking for remove in -lposix" >&5
1590 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 ac_save_LIBS="$LIBS"
1595 LIBS="-lposix $LIBS"
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 eval "ac_cv_lib_$ac_lib_var=no"
1618 LIBS="$ac_save_LIBS"
1621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
1623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1625 echo "$ac_t""no" 1>&6
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat" >&5
1633 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 /* System header to define __stub macros and hopefully few prototypes,
1640 which can conflict with char shmat(); below. */
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1649 /* The GNU C library defines this for functions which it implements
1650 to always fail with ENOSYS. Some functions are actually named
1651 something starting with __ and the normal name is an alias. */
1652 #if defined (__stub_shmat) || defined (__stub___shmat)
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1662 eval "ac_cv_func_shmat=yes"
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1667 eval "ac_cv_func_shmat=no"
1672 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1676 echo "$ac_t""no" 1>&6
1679 if test $ac_cv_func_shmat = no; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1681 echo "configure:1682: checking for shmat in -lipc" >&5
1682 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 ac_save_LIBS="$LIBS"
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 /* Override any gcc2 internal prototype to avoid an error. */
1692 /* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_lib_$ac_lib_var=no"
1710 LIBS="$ac_save_LIBS"
1713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1717 echo "$ac_t""no" 1>&6
1723 # Check for libraries that X11R6 Xt/Xaw programs need.
1724 ac_save_LDFLAGS="$LDFLAGS"
1725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1727 # check for ICE first), but we must link in the order -lSM -lICE or
1728 # we get undefined symbols. So assume we have SM if we have ICE.
1729 # These have to be linked with before -lX11, unlike the other
1730 # libraries we check for below, so use a different variable.
1731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1732 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1733 echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
1734 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 ac_save_LIBS="$LIBS"
1739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1746 char IceConnectionNumber();
1749 IceConnectionNumber()
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_lib_$ac_lib_var=no"
1762 LIBS="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1769 echo "$ac_t""no" 1>&6
1772 LDFLAGS="$ac_save_LDFLAGS"
1776 for ac_prog in 'bison -y' byacc
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy $ac_prog; ac_word=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC="$ac_prog"
1800 YACC="$ac_cv_prog_YACC"
1801 if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1804 echo "$ac_t""no" 1>&6
1807 test -n "$YACC" && break
1809 test -n "$YACC" || YACC="yacc"
1811 # Extract the first word of "flex", so it can be a program name with args.
1812 set dummy flex; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX="flex"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1834 LEX="$ac_cv_prog_LEX"
1835 if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1838 echo "$ac_t""no" 1>&6
1841 if test -z "$LEXLIB"
1847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1848 echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
1849 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 ac_save_LIBS="$LIBS"
1854 LIBS="-l$ac_lib $LIBS"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 eval "ac_cv_lib_$ac_lib_var=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 eval "ac_cv_lib_$ac_lib_var=no"
1877 LIBS="$ac_save_LIBS"
1880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1884 echo "$ac_t""no" 1>&6
1890 for ac_prog in $YACC bison yacc
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_word" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_XYACC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 if test -n "$XYACC"; then
1900 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1904 for ac_dir in $ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_prog_XYACC="$ac_prog"
1914 XYACC="$ac_cv_prog_XYACC"
1915 if test -n "$XYACC"; then
1916 echo "$ac_t""$XYACC" 1>&6
1918 echo "$ac_t""no" 1>&6
1921 test -n "$XYACC" && break
1923 test -n "$XYACC" || XYACC="none"
1925 if test "$XYACC" = "none"
1927 echo "*** Error: No suitable bison/yacc found. ***"
1928 echo " Please install the 'bison' package."
1931 for ac_prog in $LEX flex lex
1933 # Extract the first word of "$ac_prog", so it can be a program name with args.
1934 set dummy $ac_prog; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 if test -n "$XLEX"; then
1941 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_XLEX="$ac_prog"
1955 XLEX="$ac_cv_prog_XLEX"
1956 if test -n "$XLEX"; then
1957 echo "$ac_t""$XLEX" 1>&6
1959 echo "$ac_t""no" 1>&6
1962 test -n "$XLEX" && break
1964 test -n "$XLEX" || XLEX="none"
1966 if test "$XLEX" = "none"
1968 echo "*** Error: No suitable lex found. ***"
1969 echo " Please install the 'flex' package."
1972 # Extract the first word of "ranlib", so it can be a program name with args.
1973 set dummy ranlib; ac_word=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 if test -n "$RANLIB"; then
1980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1984 for ac_dir in $ac_dummy; do
1985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_prog_RANLIB="ranlib"
1992 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1995 RANLIB="$ac_cv_prog_RANLIB"
1996 if test -n "$RANLIB"; then
1997 echo "$ac_t""$RANLIB" 1>&6
1999 echo "$ac_t""no" 1>&6
2002 # Find a good install program. We prefer a C program (faster),
2003 # so one script is as good as another. But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012 # ./install, which can be erroneously created by make from ./install.sh.
2013 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2014 echo "configure:2015: checking for a BSD compatible install" >&5
2015 if test -z "$INSTALL"; then
2016 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2020 for ac_dir in $PATH; do
2021 # Account for people who put trailing slashes in PATH elements.
2023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2025 # OSF1 and SCO ODT 3.0 have their own names for install.
2026 # Don't use installbsd from OSF since it installs stuff as root
2028 for ac_prog in ginstall scoinst install; do
2029 if test -f $ac_dir/$ac_prog; then
2030 if test $ac_prog = install &&
2031 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2032 # AIX install. It has an incompatible calling convention.
2035 ac_cv_path_install="$ac_dir/$ac_prog -c"
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL="$ac_cv_path_install"
2049 # As a last resort, use the slow shell script. We don't cache a
2050 # path for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the path is relative.
2053 INSTALL="$ac_install_sh"
2056 echo "$ac_t""$INSTALL" 1>&6
2058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059 # It thinks the first close brace ends the variable substitution.
2060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2067 echo "configure:2068: checking whether ln -s works" >&5
2068 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2072 if ln -s X conftestdata 2>/dev/null
2075 ac_cv_prog_LN_S="ln -s"
2080 LN_S="$ac_cv_prog_LN_S"
2081 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2082 echo "$ac_t""yes" 1>&6
2084 echo "$ac_t""no" 1>&6
2087 # Extract the first word of "c2man", so it can be a program name with args.
2088 set dummy c2man; ac_word=$2
2089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_word" >&5
2091 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 if test -n "$C2MAN"; then
2095 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 for ac_dir in $ac_dummy; do
2100 test -z "$ac_dir" && ac_dir=.
2101 if test -f $ac_dir/$ac_word; then
2102 ac_cv_prog_C2MAN="c2man"
2107 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2110 C2MAN="$ac_cv_prog_C2MAN"
2111 if test -n "$C2MAN"; then
2112 echo "$ac_t""$C2MAN" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "ldconfig", so it can be a program name with args.
2118 set dummy ldconfig; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2129 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="/sbin:/usr/sbin:$PATH"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2142 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2146 LDCONFIG="$ac_cv_path_LDCONFIG"
2147 if test -n "$LDCONFIG"; then
2148 echo "$ac_t""$LDCONFIG" 1>&6
2150 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2154 echo "configure:2155: checking for Cygwin environment" >&5
2155 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2165 #define __CYGWIN__ __CYGWIN32__
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2183 echo "$ac_t""$ac_cv_cygwin" 1>&6
2185 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2186 # Extract the first word of "dllwrap", so it can be a program name with args.
2187 set dummy dllwrap; ac_word=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 if test -n "$DLLWRAP"; then
2194 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_DLLWRAP="dllwrap"
2206 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2209 DLLWRAP="$ac_cv_prog_DLLWRAP"
2210 if test -n "$DLLWRAP"; then
2211 echo "$ac_t""$DLLWRAP" 1>&6
2213 echo "$ac_t""no" 1>&6
2217 for ac_prog in lclint lint
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test -n "$LINT"; then
2227 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_LINT="$ac_prog"
2241 LINT="$ac_cv_prog_LINT"
2242 if test -n "$LINT"; then
2243 echo "$ac_t""$LINT" 1>&6
2245 echo "$ac_t""no" 1>&6
2248 test -n "$LINT" && break
2251 if test "$LINT" = "lint"
2253 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2258 if test "$CYGWIN" = "yes"
2260 LDCOMBINE="ld -r --enable-stdcall-fixup"
2267 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2268 echo "configure:2269: checking for sqrt in -lm" >&5
2269 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 ac_save_LIBS="$LIBS"
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* Override any gcc2 internal prototype to avoid an error. */
2279 /* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2289 eval "ac_cv_lib_$ac_lib_var=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_lib_$ac_lib_var=no"
2297 LIBS="$ac_save_LIBS"
2300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_lib 1
2311 echo "$ac_t""no" 1>&6
2314 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2315 echo "configure:2316: checking for i386_set_ldt in -li386" >&5
2316 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 ac_save_LIBS="$LIBS"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2328 char i386_set_ldt();
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2336 eval "ac_cv_lib_$ac_lib_var=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 eval "ac_cv_lib_$ac_lib_var=no"
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2358 echo "$ac_t""no" 1>&6
2361 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2362 echo "configure:2363: checking for _oss_ioctl in -lossaudio" >&5
2363 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 ac_save_LIBS="$LIBS"
2368 LIBS="-lossaudio $LIBS"
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 /* Override any gcc2 internal prototype to avoid an error. */
2373 /* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 eval "ac_cv_lib_$ac_lib_var=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 eval "ac_cv_lib_$ac_lib_var=no"
2391 LIBS="$ac_save_LIBS"
2394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2398 cat >> confdefs.h <<EOF
2399 #define $ac_tr_lib 1
2402 LIBS="-lossaudio $LIBS"
2405 echo "$ac_t""no" 1>&6
2408 for ac_func in iswalnum
2410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_func" >&5
2412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $ac_func(); below. */
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. */
2428 /* The GNU C library defines this for functions which it implements
2429 to always fail with ENOSYS. Some functions are actually named
2430 something starting with __ and the normal name is an alias. */
2431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441 eval "ac_cv_func_$ac_func=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_func_$ac_func=no"
2451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_func 1
2459 echo "$ac_t""no" 1>&6
2460 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2461 echo "configure:2462: checking for iswalnum in -lw" >&5
2462 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 ac_save_LIBS="$LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_lib_$ac_lib_var=no"
2490 LIBS="$ac_save_LIBS"
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2497 cat >> confdefs.h <<EOF
2498 #define $ac_tr_lib 1
2504 echo "$ac_t""no" 1>&6
2510 for ac_func in gethostbyname
2512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_func" >&5
2514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 eval "ac_cv_func_$ac_func=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_func_$ac_func=no"
2553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h <<EOF
2557 #define $ac_tr_func 1
2561 echo "$ac_t""no" 1>&6
2562 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2563 echo "configure:2564: checking for gethostbyname in -lnsl" >&5
2564 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 ac_save_LIBS="$LIBS"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char gethostbyname();
2582 if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2589 eval "ac_cv_lib_$ac_lib_var=no"
2592 LIBS="$ac_save_LIBS"
2595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2599 cat >> confdefs.h <<EOF
2600 #define $ac_tr_lib 1
2606 echo "$ac_t""no" 1>&6
2612 for ac_func in connect
2614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_func" >&5
2616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* System header to define __stub macros and hopefully few prototypes,
2623 which can conflict with char $ac_func(); below. */
2625 /* Override any gcc2 internal prototype to avoid an error. */
2626 /* We use char because int might match the return type of a gcc2
2627 builtin and then its argument prototype would still apply. */
2632 /* The GNU C library defines this for functions which it implements
2633 to always fail with ENOSYS. Some functions are actually named
2634 something starting with __ and the normal name is an alias. */
2635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2645 eval "ac_cv_func_$ac_func=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 eval "ac_cv_func_$ac_func=no"
2655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2658 cat >> confdefs.h <<EOF
2659 #define $ac_tr_func 1
2663 echo "$ac_t""no" 1>&6
2664 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2665 echo "configure:2666: checking for connect in -lsocket" >&5
2666 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 ac_save_LIBS="$LIBS"
2671 LIBS="-lsocket $LIBS"
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2686 eval "ac_cv_lib_$ac_lib_var=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_lib_$ac_lib_var=no"
2694 LIBS="$ac_save_LIBS"
2697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2699 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_lib 1
2705 LIBS="-lsocket $LIBS"
2708 echo "$ac_t""no" 1>&6
2714 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2715 echo "configure:2716: checking for _xpg4_setrunelocale in -lxpg4" >&5
2716 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 ac_save_LIBS="$LIBS"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* Override any gcc2 internal prototype to avoid an error. */
2726 /* We use char because int might match the return type of a gcc2
2727 builtin and then its argument prototype would still apply. */
2728 char _xpg4_setrunelocale();
2731 _xpg4_setrunelocale()
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2736 eval "ac_cv_lib_$ac_lib_var=yes"
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2741 eval "ac_cv_lib_$ac_lib_var=no"
2744 LIBS="$ac_save_LIBS"
2747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2751 cat >> confdefs.h <<EOF
2752 #define $ac_tr_lib 1
2758 echo "$ac_t""no" 1>&6
2761 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2762 echo "configure:2763: checking for mmap in -lmmap" >&5
2763 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 ac_save_LIBS="$LIBS"
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 /* Override any gcc2 internal prototype to avoid an error. */
2773 /* We use char because int might match the return type of a gcc2
2774 builtin and then its argument prototype would still apply. */
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2783 eval "ac_cv_lib_$ac_lib_var=yes"
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2788 eval "ac_cv_lib_$ac_lib_var=no"
2791 LIBS="$ac_save_LIBS"
2794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2795 echo "$ac_t""yes" 1>&6
2796 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_lib 1
2805 echo "$ac_t""no" 1>&6
2811 for ac_func in openpty
2813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_func" >&5
2815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 /* System header to define __stub macros and hopefully few prototypes,
2822 which can conflict with char $ac_func(); below. */
2824 /* Override any gcc2 internal prototype to avoid an error. */
2825 /* We use char because int might match the return type of a gcc2
2826 builtin and then its argument prototype would still apply. */
2831 /* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2844 eval "ac_cv_func_$ac_func=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_func_$ac_func=no"
2854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_func 1
2862 echo "$ac_t""no" 1>&6
2863 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2864 echo "configure:2865: checking for openpty in -lutil" >&5
2865 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 ac_save_LIBS="$LIBS"
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885 eval "ac_cv_lib_$ac_lib_var=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 eval "ac_cv_lib_$ac_lib_var=no"
2893 LIBS="$ac_save_LIBS"
2896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 cat >> confdefs.h <<\EOF
2899 #define HAVE_OPENPTY 1
2905 echo "$ac_t""no" 1>&6
2914 for ac_hdr in dlfcn.h
2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2928 { (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2930 if test -z "$ac_err"; then
2932 eval "ac_cv_header_$ac_safe=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2938 eval "ac_cv_header_$ac_safe=no"
2942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_hdr 1
2948 for ac_func in dlopen
2950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_func" >&5
2952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $ac_func(); below. */
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 eval "ac_cv_func_$ac_func=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 eval "ac_cv_func_$ac_func=no"
2991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2994 cat >> confdefs.h <<EOF
2995 #define $ac_tr_func 1
2999 echo "$ac_t""no" 1>&6
3000 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3001 echo "configure:3002: checking for dlopen in -ldl" >&5
3002 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 ac_save_LIBS="$LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3022 eval "ac_cv_lib_$ac_lib_var=yes"
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 eval "ac_cv_lib_$ac_lib_var=no"
3030 LIBS="$ac_save_LIBS"
3033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 cat >> confdefs.h <<\EOF
3036 #define HAVE_DLOPEN 1
3041 echo "$ac_t""no" 1>&6
3050 echo "$ac_t""no" 1>&6
3059 for ac_hdr in jpeglib.h
3061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_hdr" >&5
3064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3073 { (eval echo configure:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3075 if test -z "$ac_err"; then
3077 eval "ac_cv_header_$ac_safe=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3083 eval "ac_cv_header_$ac_safe=no"
3087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_hdr 1
3093 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3094 echo "configure:3095: checking for jpeg_start_decompress in -ljpeg" >&5
3095 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 ac_save_LIBS="$LIBS"
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 /* Override any gcc2 internal prototype to avoid an error. */
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107 char jpeg_start_decompress();
3110 jpeg_start_decompress()
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3115 eval "ac_cv_lib_$ac_lib_var=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 eval "ac_cv_lib_$ac_lib_var=no"
3123 LIBS="$ac_save_LIBS"
3126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 cat >> confdefs.h <<\EOF
3129 #define HAVE_LIBJPEG 1
3135 echo "$ac_t""no" 1>&6
3140 echo "$ac_t""no" 1>&6
3153 if test "$have_x" = "yes"
3156 ac_save_CPPFLAGS="$CPPFLAGS"
3157 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3159 for ac_hdr in X11/Xlib.h
3161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3163 echo "configure:3164: checking for $ac_hdr" >&5
3164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3173 { (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3175 if test -z "$ac_err"; then
3177 eval "ac_cv_header_$ac_safe=yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3183 eval "ac_cv_header_$ac_safe=no"
3187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3188 echo "$ac_t""yes" 1>&6
3189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3190 cat >> confdefs.h <<EOF
3191 #define $ac_tr_hdr 1
3194 for ac_hdr in X11/XKBlib.h
3196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_hdr" >&5
3199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3208 { (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3210 if test -z "$ac_err"; then
3212 eval "ac_cv_header_$ac_safe=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 eval "ac_cv_header_$ac_safe=no"
3222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3225 cat >> confdefs.h <<EOF
3226 #define $ac_tr_hdr 1
3228 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3229 echo "configure:3230: checking for XkbQueryExtension in -lX11" >&5
3230 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 ac_save_LIBS="$LIBS"
3235 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char XkbQueryExtension();
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3250 eval "ac_cv_lib_$ac_lib_var=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_lib_$ac_lib_var=no"
3258 LIBS="$ac_save_LIBS"
3261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3262 echo "$ac_t""yes" 1>&6
3263 cat >> confdefs.h <<\EOF
3268 echo "$ac_t""no" 1>&6
3273 echo "$ac_t""no" 1>&6
3274 echo "configure: warning: XKB extension not found!!" 1>&2
3280 for ac_hdr in X11/extensions/XShm.h
3282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_hdr" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_hdr 1
3314 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3315 echo "configure:3316: checking for XShmQueryExtension in -lXext" >&5
3316 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_save_LIBS="$LIBS"
3321 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $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 XShmQueryExtension();
3331 XShmQueryExtension()
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_LIBXXSHM 1
3354 echo "$ac_t""no" 1>&6
3359 echo "$ac_t""no" 1>&6
3360 echo "configure: warning: Xshm extension not found!!" 1>&2
3366 for ac_hdr in X11/extensions/shape.h
3368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_hdr" >&5
3371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3380 { (eval echo configure:3381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3382 if test -z "$ac_err"; then
3384 eval "ac_cv_header_$ac_safe=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_header_$ac_safe=no"
3394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_hdr 1
3400 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3401 echo "configure:3402: checking for XShapeQueryExtension in -lXext" >&5
3402 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS="$LIBS"
3407 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char XShapeQueryExtension();
3417 XShapeQueryExtension()
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_lib_$ac_lib_var=no"
3430 LIBS="$ac_save_LIBS"
3433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 cat >> confdefs.h <<\EOF
3436 #define HAVE_LIBXSHAPE 1
3440 echo "$ac_t""no" 1>&6
3445 echo "$ac_t""no" 1>&6
3446 echo "configure: warning: XShape extension not found!!" 1>&2
3452 for ac_hdr in X11/extensions/xf86dga.h
3454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3456 echo "configure:3457: checking for $ac_hdr" >&5
3457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3466 { (eval echo configure:3467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3468 if test -z "$ac_err"; then
3470 eval "ac_cv_header_$ac_safe=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 eval "ac_cv_header_$ac_safe=no"
3480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_hdr 1
3486 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3487 echo "configure:3488: checking for XDGAQueryExtension in -lXxf86dga" >&5
3488 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 ac_save_LIBS="$LIBS"
3493 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char XDGAQueryExtension();
3504 XDGAQueryExtension()
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 eval "ac_cv_lib_$ac_lib_var=no"
3517 LIBS="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 cat >> confdefs.h <<\EOF
3523 #define HAVE_LIBXXF86DGA2 1
3526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3529 echo "$ac_t""no" 1>&6
3530 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3531 echo "configure:3532: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3532 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 ac_save_LIBS="$LIBS"
3537 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3545 char XF86DGAQueryExtension();
3548 XF86DGAQueryExtension()
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553 eval "ac_cv_lib_$ac_lib_var=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3558 eval "ac_cv_lib_$ac_lib_var=no"
3561 LIBS="$ac_save_LIBS"
3564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_LIBXXF86DGA 1
3570 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3573 echo "$ac_t""no" 1>&6
3581 echo "$ac_t""no" 1>&6
3582 echo "configure: warning: DGA extension not found!!" 1>&2
3588 for ac_hdr in X11/extensions/xf86vmode.h
3590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3592 echo "configure:3593: checking for $ac_hdr" >&5
3593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3602 { (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3604 if test -z "$ac_err"; then
3606 eval "ac_cv_header_$ac_safe=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 eval "ac_cv_header_$ac_safe=no"
3616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3619 cat >> confdefs.h <<EOF
3620 #define $ac_tr_hdr 1
3622 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3623 echo "configure:3624: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3624 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 ac_save_LIBS="$LIBS"
3629 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char XF86VidModeQueryExtension();
3640 XF86VidModeQueryExtension()
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_LIBXXF86VM 1
3662 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3665 echo "$ac_t""no" 1>&6
3670 echo "$ac_t""no" 1>&6
3671 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3677 for ac_hdr in X11/extensions/Xvlib.h
3679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $ac_hdr" >&5
3682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3691 { (eval echo configure:3692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3693 if test -z "$ac_err"; then
3695 eval "ac_cv_header_$ac_safe=yes"
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 eval "ac_cv_header_$ac_safe=no"
3705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3708 cat >> confdefs.h <<EOF
3709 #define $ac_tr_hdr 1
3711 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3712 echo "configure:3713: checking for XvShmCreateImage in -lXv" >&5
3713 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 ac_save_LIBS="$LIBS"
3718 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726 char XvShmCreateImage();
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3734 eval "ac_cv_lib_$ac_lib_var=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3739 eval "ac_cv_lib_$ac_lib_var=no"
3742 LIBS="$ac_save_LIBS"
3745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_XVIDEO 1
3751 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3754 echo "$ac_t""no" 1>&6
3759 echo "$ac_t""no" 1>&6
3760 echo "configure: warning: XVideo extension not found !!" 1>&2
3766 for ac_hdr in X11/extensions/Xrender.h
3768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_hdr" >&5
3771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3780 { (eval echo configure:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3782 if test -z "$ac_err"; then
3784 eval "ac_cv_header_$ac_safe=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_header_$ac_safe=no"
3794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_hdr 1
3800 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3801 echo "configure:3802: checking for XRenderQueryExtension in -lXrender" >&5
3802 ac_lib_var=`echo Xrender'_'XRenderQueryExtension | 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="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char XRenderQueryExtension();
3818 XRenderQueryExtension()
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 eval "ac_cv_lib_$ac_lib_var=no"
3831 LIBS="$ac_save_LIBS"
3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 cat >> confdefs.h <<\EOF
3837 #define HAVE_LIBXRENDER 1
3840 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3843 echo "$ac_t""no" 1>&6
3848 echo "$ac_t""no" 1>&6
3849 echo "configure: warning: XRender extension not found !!" 1>&2
3858 echo "$ac_t""no" 1>&6
3862 if test $OPENGL = "yes" -o $OPENGL = "normal"
3864 if test -e /usr/X11R6/lib/libGL.a -a ! -e /usr/X11R6/lib/libGL.so
3866 { echo "configure: error: /usr/X11R6/lib/libGL.a is present on your system.
3867 This prevents linking to OpenGL. Delete the file and restart configure." 1>&2; exit 1; }
3870 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3874 echo "configure:3875: checking for $ac_hdr" >&5
3875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3884 { (eval echo configure:3885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3886 if test -z "$ac_err"; then
3888 eval "ac_cv_header_$ac_safe=yes"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 eval "ac_cv_header_$ac_safe=no"
3898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3901 cat >> confdefs.h <<EOF
3902 #define $ac_tr_hdr 1
3906 echo "$ac_t""no" 1>&6
3910 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3912 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3913 echo "configure:3914: checking for up-to-date OpenGL version" >&5
3914 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3922 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 wine_cv_opengl_version_OK="yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 wine_cv_opengl_version_OK="no"
3939 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3941 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3942 echo "configure:3943: checking for thread-safe OpenGL version" >&5
3943 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3953 pthread_getspecific();
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3958 wine_cv_opengl_version_threadsafe="yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3963 wine_cv_opengl_version_threadsafe="no"
3970 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3972 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3974 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3975 echo "configure:3976: checking for glXCreateContext in -lGL" >&5
3976 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 ac_save_LIBS="$LIBS"
3981 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char glXCreateContext();
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 eval "ac_cv_lib_$ac_lib_var=no"
4004 LIBS="$ac_save_LIBS"
4007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 X_PRE_LIBS="$X_PRE_LIBS -lGL"
4012 echo "$ac_t""no" 1>&6
4016 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
4018 OPENGLFILES='$(OPENGLFILES)'
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_OPENGL 1
4024 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4025 echo "configure:4026: checking for glXGetProcAddressARB in -lGL" >&5
4026 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char glXGetProcAddressARB();
4041 glXGetProcAddressARB()
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4051 eval "ac_cv_lib_$ac_lib_var=no"
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_GLX_GETPROCADDRESS 1
4064 echo "$ac_t""no" 1>&6
4068 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
4070 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4071 echo "configure:4072: checking for OpenGL extension functions prototypes" >&5
4072 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4079 #ifdef HAVE_GL_GLEXT_H
4080 # include <GL/glext.h>
4084 PFNGLCOLORTABLEEXTPROC test_proc;
4087 if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 wine_cv_extension_prototypes="yes"
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 wine_cv_extension_prototypes="no"
4101 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4102 if test "$wine_cv_extension_prototypes" = "yes"
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_GLEXT_PROTOTYPES 1
4112 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4113 echo "configure:4114: checking for gluLookAt in -lGLU" >&5
4114 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4118 ac_save_LIBS="$LIBS"
4119 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 eval "ac_cv_lib_$ac_lib_var=no"
4143 LIBS="$ac_save_LIBS"
4146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4149 GLU32FILES='$(GLU32FILES)'
4152 echo "$ac_t""no" 1>&6
4159 CPPFLAGS="$ac_save_CPPFLAGS"
4168 if test "$CURSES" = "yes"
4170 for ac_hdr in ncurses.h
4172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4174 echo "configure:4175: checking for $ac_hdr" >&5
4175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4184 { (eval echo configure:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4186 if test -z "$ac_err"; then
4188 eval "ac_cv_header_$ac_safe=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4194 eval "ac_cv_header_$ac_safe=no"
4198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4201 cat >> confdefs.h <<EOF
4202 #define $ac_tr_hdr 1
4204 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4205 echo "configure:4206: checking for waddch in -lncurses" >&5
4206 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 ac_save_LIBS="$LIBS"
4211 LIBS="-lncurses $LIBS"
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4226 eval "ac_cv_lib_$ac_lib_var=yes"
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4231 eval "ac_cv_lib_$ac_lib_var=no"
4234 LIBS="$ac_save_LIBS"
4237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4238 echo "$ac_t""yes" 1>&6
4239 cat >> confdefs.h <<\EOF
4240 #define HAVE_LIBNCURSES 1
4243 CURSESLIBS="-lncurses"
4245 echo "$ac_t""no" 1>&6
4246 for ac_hdr in curses.h
4248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4264 eval "ac_cv_header_$ac_safe=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_header_$ac_safe=no"
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_hdr 1
4280 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4281 echo "configure:4282: checking for waddch in -lcurses" >&5
4282 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 ac_save_LIBS="$LIBS"
4287 LIBS="-lcurses $LIBS"
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4291 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4302 eval "ac_cv_lib_$ac_lib_var=yes"
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4307 eval "ac_cv_lib_$ac_lib_var=no"
4310 LIBS="$ac_save_LIBS"
4313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314 echo "$ac_t""yes" 1>&6
4315 cat >> confdefs.h <<\EOF
4316 #define HAVE_LIBCURSES 1
4319 CURSESLIBS="-lcurses"
4321 echo "$ac_t""no" 1>&6
4325 echo "$ac_t""no" 1>&6
4332 echo "$ac_t""no" 1>&6
4337 LIBS="$CURSESLIBS $LIBS"
4338 for ac_func in getbkgd resizeterm
4340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_func" >&5
4342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* System header to define __stub macros and hopefully few prototypes,
4349 which can conflict with char $ac_func(); below. */
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4358 /* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_func_$ac_func=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_func_$ac_func=no"
4381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384 cat >> confdefs.h <<EOF
4385 #define $ac_tr_func 1
4389 echo "$ac_t""no" 1>&6
4398 wine_cv_warn_cups_h=no
4399 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4400 echo "configure:4401: checking for cupsGetPPD in -lcups" >&5
4401 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 ac_save_LIBS="$LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_lib_$ac_lib_var=no"
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4435 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4436 echo "configure:4437: checking for cups/cups.h" >&5
4437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 #include <cups/cups.h>
4445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446 { (eval echo configure:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448 if test -z "$ac_err"; then
4450 eval "ac_cv_header_$ac_safe=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 eval "ac_cv_header_$ac_safe=no"
4460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4462 cat >> confdefs.h <<\EOF
4468 echo "$ac_t""no" 1>&6
4469 wine_cv_warn_cups_h=yes
4474 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4480 echo "configure:4481: checking for FT_Init_FreeType in -lfreetype" >&5
4481 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lfreetype $X_LIBS $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char FT_Init_FreeType();
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4516 echo "$ac_t""no" 1>&6
4520 if test "$ft_lib" = "no"
4524 wine_cv_msg_freetype=no
4526 # Extract the first word of "freetype-config", so it can be a program name with args.
4527 set dummy freetype-config; ac_word=$2
4528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_word" >&5
4530 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 if test -n "$ft_devel"; then
4534 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
4541 ac_cv_prog_ft_devel="freetype-config"
4546 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4549 ft_devel="$ac_cv_prog_ft_devel"
4550 if test -n "$ft_devel"; then
4551 echo "$ac_t""$ft_devel" 1>&6
4553 echo "$ac_t""no" 1>&6
4556 if test "$ft_devel" = "no"
4558 # Extract the first word of "freetype2-config", so it can be a program name with args.
4559 set dummy freetype2-config; ac_word=$2
4560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_word" >&5
4562 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test -n "$ft_devel2"; then
4566 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_ft_devel2="freetype2-config"
4578 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4581 ft_devel2="$ac_cv_prog_ft_devel2"
4582 if test -n "$ft_devel2"; then
4583 echo "$ac_t""$ft_devel2" 1>&6
4585 echo "$ac_t""no" 1>&6
4588 if test "$ft_devel2" = "freetype2-config"
4593 if test "$ft_devel" = "no"
4597 wine_cv_msg_freetype=yes
4599 FREETYPELIBS=`$ft_devel --libs`
4600 FREETYPEINCL=`$ft_devel --cflags`
4601 ac_save_CPPFLAGS="$CPPFLAGS"
4602 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4603 for ac_hdr in freetype/freetype.h \
4604 freetype/ftglyph.h \
4605 freetype/tttables.h \
4606 freetype/ftnames.h \
4607 freetype/ftsnames.h \
4608 freetype/ttnameid.h \
4609 freetype/ftoutln.h \
4610 freetype/internal/sfnt.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <ft2build.h>
4654 #include <freetype/fttrigon.h>
4656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4657 { (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4659 if test -z "$ac_err"; then
4661 cat >> confdefs.h <<\EOF
4662 #define HAVE_FREETYPE_FTTRIGON_H 1
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4671 CPPFLAGS="$ac_save_CPPFLAGS"
4672 if test "$ac_cv_header_freetype_freetype_h" = "yes"
4674 cat >> confdefs.h <<\EOF
4675 #define HAVE_FREETYPE 1
4678 wine_cv_msg_freetype=no
4682 wine_cv_msg_freetype=yes
4689 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4690 echo "configure:4691: checking for parport header/ppdev.h" >&5
4691 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <linux/ppdev.h>
4702 if { (eval echo configure:4703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4715 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4716 if test "$ac_cv_c_ppdev" = "yes"
4718 cat >> confdefs.h <<\EOF
4719 #define HAVE_PPDEV 1
4724 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4725 echo "configure:4726: checking for GNU style IPX support" >&5
4726 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 #include <sys/socket.h>
4733 #include <netipx/ipx.h>
4735 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4738 if { (eval echo configure:4739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4740 ac_cv_c_ipx_gnu="yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 ac_cv_c_ipx_gnu="no"
4751 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4752 if test "$ac_cv_c_ipx_gnu" = "yes"
4754 cat >> confdefs.h <<\EOF
4755 #define HAVE_IPX_GNU 1
4760 if test "$ac_cv_c_ipx_gnu" = "no"
4762 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4763 echo "configure:4764: checking for linux style IPX support" >&5
4764 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 #include <sys/socket.h>
4771 #include <asm/types.h>
4772 #include <linux/ipx.h>
4774 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4777 if { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4779 ac_cv_c_ipx_linux="yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5
4784 ac_cv_c_ipx_linux="no"
4790 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4791 if test "$ac_cv_c_ipx_linux" = "yes"
4793 cat >> confdefs.h <<\EOF
4794 #define HAVE_IPX_LINUX 1
4800 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4804 echo "configure:4805: checking for $ac_hdr" >&5
4805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4814 { (eval echo configure:4815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4816 if test -z "$ac_err"; then
4818 eval "ac_cv_header_$ac_safe=yes"
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4824 eval "ac_cv_header_$ac_safe=no"
4828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4831 cat >> confdefs.h <<EOF
4832 #define $ac_tr_hdr 1
4836 echo "$ac_t""no" 1>&6
4841 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4842 echo "configure:4843: checking for Open Sound System" >&5
4843 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4850 #if defined(HAVE_SYS_SOUNDCARD_H)
4851 #include <sys/soundcard.h>
4852 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4853 #include <machine/soundcard.h>
4854 #elif defined(HAVE_SOUNDCARD_H)
4855 #include <soundcard.h>
4861 /* check for one of the Open Sound System specific SNDCTL_ defines */
4862 #if !defined(SNDCTL_DSP_STEREO)
4863 #error No open sound system
4868 if { (eval echo configure:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4870 ac_cv_c_opensoundsystem="yes"
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4875 ac_cv_c_opensoundsystem="no"
4880 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4882 if test "$ac_cv_c_opensoundsystem" = "yes"
4884 cat >> confdefs.h <<\EOF
4890 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4891 echo "configure:4892: checking for Open Sound System/MIDI interface" >&5
4892 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4899 #if defined(HAVE_SYS_SOUNDCARD_H)
4900 #include <sys/soundcard.h>
4901 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4902 #include <machine/soundcard.h>
4903 #elif defined(HAVE_SOUNDCARD_H)
4904 #include <soundcard.h>
4910 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4911 #if !defined(SNDCTL_SEQ_SYNC)
4912 #error No open sound system MIDI interface
4917 if { (eval echo configure:4918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4919 ac_cv_c_opensoundsystem_midi="yes"
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 ac_cv_c_opensoundsystem_midi="no"
4929 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4931 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4933 cat >> confdefs.h <<\EOF
4934 #define HAVE_OSS_MIDI 1
4939 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4942 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4943 echo "configure:4944: checking whether mmap64 works defined as mmap" >&5
4944 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4947 if test "$cross_compiling" = yes; then
4948 ac_cv_mmap64_works="no"
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4954 #define _FILE_OFFSET_BITS 64
4958 #include <sys/mman.h>
4961 int main(int argc,char **argv) {
4962 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4963 if (fd == -1) exit(1);
4965 unlink("conftest.map");
4969 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4975 fprintf(stderr,"success!\n");
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4983 ac_cv_mmap64_works="yes"
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4988 ac_cv_mmap64_works="no"
4995 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4997 if test "$ac_cv_mmap64_works" = "yes"
4999 cat >> confdefs.h <<\EOF
5000 #define _FILE_OFFSET_BITS 64
5006 if test "x${GCC}" = "xyes"
5008 CFLAGS="$CFLAGS -Wall"
5009 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5010 echo "configure:5011: checking for gcc strength-reduce bug" >&5
5011 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 if test "$cross_compiling" = yes; then
5015 ac_cv_c_gcc_strength_bug="yes"
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5021 int L[4] = {0,1,2,3};
5023 static int Array[3];
5026 for(i=0; i<B; i++) Array[i] = i - 3;
5027 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5030 exit( Array[1] != -2 || L[2] != 3);
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5035 ac_cv_c_gcc_strength_bug="no"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 ac_cv_c_gcc_strength_bug="yes"
5047 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5048 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5050 CFLAGS="$CFLAGS -fno-strength-reduce"
5053 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5054 echo "configure:5055: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5055 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 saved_cflags=$CFLAGS
5059 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5068 if { (eval echo configure:5069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5070 ac_cv_c_gcc_stack_boundary="yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 ac_cv_c_gcc_stack_boundary="no"
5078 CFLAGS=$saved_cflags
5082 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5083 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5085 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5090 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5091 echo "configure:5092: checking whether .type must sit inside a .def directive" >&5
5092 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5096 LIBS="conftest_asm.s $LIBS"
5097 cat > conftest_asm.s <<EOF
5099 .def _ac_test; .scl 2; .type 32; .endef
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 ac_cv_c_type_in_def="yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 ac_cv_c_type_in_def="no"
5124 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5125 if test "$ac_cv_c_type_in_def" = "yes"
5127 cat >> confdefs.h <<\EOF
5128 #define NEED_TYPE_IN_DEF 1
5134 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5135 echo "configure:5136: checking whether external symbols need an underscore prefix" >&5
5136 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5140 LIBS="conftest_asm.s $LIBS"
5141 cat > conftest_asm.s <<EOF
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5151 if (ac_test) return 1
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 ac_cv_c_extern_prefix="yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 ac_cv_c_extern_prefix="no"
5167 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5168 if test "$ac_cv_c_extern_prefix" = "yes"
5170 cat >> confdefs.h <<\EOF
5171 #define NEED_UNDERSCORE_PREFIX 1
5177 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5178 echo "configure:5179: checking whether assembler accepts .string" >&5
5179 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5183 LIBS="conftest_asm.s $LIBS"
5184 cat > conftest_asm.s <<EOF
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 ac_cv_c_asm_string="yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 ac_cv_c_asm_string="no"
5208 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5209 if test "$ac_cv_c_asm_string" = "yes"
5211 cat >> confdefs.h <<\EOF
5212 #define HAVE_ASM_STRING 1
5220 if test "$LIBEXT" = "so"
5222 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5223 echo "configure:5224: checking whether we can build a GNU style ELF dll" >&5
5224 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 saved_cflags=$CFLAGS
5228 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 ac_cv_c_dll_gnuelf="yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 ac_cv_c_dll_gnuelf="no"
5247 CFLAGS=$saved_cflags
5251 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5252 if test "$ac_cv_c_dll_gnuelf" = "yes"
5254 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5255 LDDLLFLAGS="-Wl,-Bsymbolic"
5257 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5258 echo "configure:5259: checking whether we can build a UnixWare (Solaris) dll" >&5
5259 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 saved_cflags=$CFLAGS
5263 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5274 ac_cv_c_dll_unixware="yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 ac_cv_c_dll_unixware="no"
5282 CFLAGS=$saved_cflags
5286 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5287 if test "$ac_cv_c_dll_unixware" = "yes"
5289 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5290 LDDLLFLAGS="-Wl,-B,symbolic"
5293 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5296 if test "$DLLWRAP" = "dllwrap"; then
5297 if test "$CYGWIN" = "yes"; then
5298 echo "*** use dllwrap for building shared library."
5305 if test "$LIBEXT" = "a"; then
5306 echo "*** It is currently not possible to build WINE without shared"
5307 echo "*** library (.so) support to allow transparent switch between .so"
5308 echo "*** and .dll files."
5309 echo "*** If you are using Linux, you will need a newer binutils."
5316 if test "$LIBEXT" = "so"; then
5318 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5319 elif test "$LIBEXT" = "dll"; then
5320 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5321 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5333 wine_cv_libc_reentrant=no
5335 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5336 echo "configure:5337: checking for reentrant libc: __errno_location" >&5
5337 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 if test "$cross_compiling" = yes; then
5341 wine_cv_libc_r___errno_location=yes
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5348 int *__errno_location(){return &myerrno;}
5349 main(){connect(0,buf,255); exit(!myerrno);}
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5353 wine_cv_libc_r___errno_location=yes
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5358 wine_cv_libc_r___errno_location=no
5366 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5367 if test "$wine_cv_libc_r___errno_location" = "yes"
5369 wine_cv_libc_reentrant=__errno_location
5373 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5374 echo "configure:5375: checking for reentrant libc: __error" >&5
5375 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 if test "$cross_compiling" = yes; then
5379 wine_cv_libc_r___error=yes
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 int *__error(){return &myerrno;}
5387 main(){connect(0,buf,255); exit(!myerrno);}
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5391 wine_cv_libc_r___error=yes
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 wine_cv_libc_r___error=no
5404 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5405 if test "$wine_cv_libc_r___error" = "yes"
5407 wine_cv_libc_reentrant=__error
5411 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5412 echo "configure:5413: checking for reentrant libc: ___errno" >&5
5413 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 if test "$cross_compiling" = yes; then
5417 wine_cv_libc_r____errno=yes
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5424 int *___errno(){return &myerrno;}
5425 main(){connect(0,buf,255); exit(!myerrno);}
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5429 wine_cv_libc_r____errno=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 wine_cv_libc_r____errno=no
5442 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5443 if test "$wine_cv_libc_r____errno" = "yes"
5445 wine_cv_libc_reentrant=___errno
5449 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5450 echo "configure:5451: checking for reentrant libc: __thr_errno" >&5
5451 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5454 if test "$cross_compiling" = yes; then
5455 wine_cv_libc_r___thr_errno=yes
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5462 int *__thr_errno(){return &myerrno;}
5463 main(){connect(0,buf,255); exit(!myerrno);}
5465 if { (eval echo configure:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5467 wine_cv_libc_r___thr_errno=yes
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 wine_cv_libc_r___thr_errno=no
5480 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5481 if test "$wine_cv_libc_r___thr_errno" = "yes"
5483 wine_cv_libc_reentrant=__thr_errno
5487 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5488 echo "configure:5489: checking for reentrant libc: __errno" >&5
5489 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 if test "$cross_compiling" = yes; then
5493 wine_cv_libc_r___errno=yes
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 int *__errno(){return &myerrno;}
5501 main(){connect(0,buf,255); exit(!myerrno);}
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5505 wine_cv_libc_r___errno=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 wine_cv_libc_r___errno=no
5518 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5519 if test "$wine_cv_libc_r___errno" = "yes"
5521 wine_cv_libc_reentrant=__errno
5525 if test "$wine_cv_libc_reentrant" != "no"
5527 cat >> confdefs.h <<EOF
5528 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5534 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5536 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5537 echo "configure:5538: checking for reentrant X libraries" >&5
5538 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 if test "x$with_reentrant_x" = "xno"
5543 wine_cv_x_reentrant=no
5546 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5547 if test -r $dir/libX11.so; then
5548 libX11_check="-D $dir/libX11.so"
5551 if test -r $dir/libX11.a; then
5552 libX11_check="$dir/libX11.a"
5556 if test "$libX11_check" != "none"; then
5557 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5559 wine_cv_x_reentrant=yes
5561 wine_cv_x_reentrant=no
5564 wine_cv_x_reentrant=unknown
5569 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5571 wine_cv_x_reentrant=no
5573 if test "$wine_cv_x_reentrant" = "no"
5575 cat >> confdefs.h <<\EOF
5576 #define NO_REENTRANT_X11 1
5583 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5584 # for constant arguments. Useless!
5585 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5586 echo "configure:5587: checking for working alloca.h" >&5
5587 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5595 char *p = alloca(2 * sizeof(int));
5598 if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5600 ac_cv_header_alloca_h=yes
5602 echo "configure: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5605 ac_cv_header_alloca_h=no
5610 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5611 if test $ac_cv_header_alloca_h = yes; then
5612 cat >> confdefs.h <<\EOF
5613 #define HAVE_ALLOCA_H 1
5618 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5619 echo "configure:5620: checking for alloca" >&5
5620 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 # define alloca __builtin_alloca
5631 # include <malloc.h>
5632 # define alloca _alloca
5635 # include <alloca.h>
5640 # ifndef alloca /* predefined by HP cc +Olibcalls */
5649 char *p = (char *) alloca(1);
5652 if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5654 ac_cv_func_alloca_works=yes
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5659 ac_cv_func_alloca_works=no
5664 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5665 if test $ac_cv_func_alloca_works = yes; then
5666 cat >> confdefs.h <<\EOF
5667 #define HAVE_ALLOCA 1
5672 if test $ac_cv_func_alloca_works = no; then
5673 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5674 # that cause trouble. Some versions do not even contain alloca or
5675 # contain a buggy version. If you still want to use their alloca,
5676 # use ar to extract alloca.o from them instead of compiling alloca.c.
5677 ALLOCA=alloca.${ac_objext}
5678 cat >> confdefs.h <<\EOF
5683 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5684 echo "configure:5685: checking whether alloca needs Cray hooks" >&5
5685 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 #if defined(CRAY) && ! defined(CRAY2)
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 egrep "webecray" >/dev/null 2>&1; then
5710 echo "$ac_t""$ac_cv_os_cray" 1>&6
5711 if test $ac_cv_os_cray = yes; then
5712 for ac_func in _getb67 GETB67 getb67; do
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func(); below. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5731 /* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5744 eval "ac_cv_func_$ac_func=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5749 eval "ac_cv_func_$ac_func=no"
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 cat >> confdefs.h <<EOF
5757 #define CRAY_STACKSEG_END $ac_func
5762 echo "$ac_t""no" 1>&6
5768 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5769 echo "configure:5770: checking stack direction for C alloca" >&5
5770 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 if test "$cross_compiling" = yes; then
5774 ac_cv_c_stack_direction=0
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 find_stack_direction ()
5781 static char *addr = 0;
5786 return find_stack_direction ();
5789 return (&dummy > addr) ? 1 : -1;
5793 exit (find_stack_direction() < 0);
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5798 ac_cv_c_stack_direction=1
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 ac_cv_c_stack_direction=-1
5810 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5811 cat >> confdefs.h <<EOF
5812 #define STACK_DIRECTION $ac_cv_c_stack_direction
5857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5858 echo "configure:5859: checking for $ac_func" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char $ac_func(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5888 eval "ac_cv_func_$ac_func=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5893 eval "ac_cv_func_$ac_func=no"
5898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_func 1
5906 echo "$ac_t""no" 1>&6
5928 netinet/in_systm.h \
5968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5970 echo "configure:5971: checking for $ac_hdr" >&5
5971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5972 echo $ac_n "(cached) $ac_c" 1>&6
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5980 { (eval echo configure:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5982 if test -z "$ac_err"; then
5984 eval "ac_cv_header_$ac_safe=yes"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5990 eval "ac_cv_header_$ac_safe=no"
5994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5995 echo "$ac_t""yes" 1>&6
5996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5997 cat >> confdefs.h <<EOF
5998 #define $ac_tr_hdr 1
6002 echo "$ac_t""no" 1>&6
6006 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6007 echo "configure:6008: checking whether stat file-mode macros are broken" >&5
6008 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #include <sys/types.h>
6015 #include <sys/stat.h>
6017 #if defined(S_ISBLK) && defined(S_IFDIR)
6018 # if S_ISBLK (S_IFDIR)
6023 #if defined(S_ISBLK) && defined(S_IFCHR)
6024 # if S_ISBLK (S_IFCHR)
6029 #if defined(S_ISLNK) && defined(S_IFREG)
6030 # if S_ISLNK (S_IFREG)
6035 #if defined(S_ISSOCK) && defined(S_IFREG)
6036 # if S_ISSOCK (S_IFREG)
6042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6043 egrep "You lose" >/dev/null 2>&1; then
6045 ac_cv_header_stat_broken=yes
6048 ac_cv_header_stat_broken=no
6054 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6055 if test $ac_cv_header_stat_broken = yes; then
6056 cat >> confdefs.h <<\EOF
6057 #define STAT_MACROS_BROKEN 1
6064 echo $ac_n "checking for working const""... $ac_c" 1>&6
6065 echo "configure:6066: checking for working const" >&5
6066 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6075 /* Ultrix mips cc rejects this. */
6076 typedef int charset[2]; const charset x;
6077 /* SunOS 4.1.1 cc rejects this. */
6078 char const *const *ccp;
6080 /* NEC SVR4.0.2 mips cc rejects this. */
6081 struct point {int x, y;};
6082 static struct point const zero = {0,0};
6083 /* AIX XL C 1.02.0.0 rejects this.
6084 It does not let you subtract one const X* pointer from another in an arm
6085 of an if-expression whose if-part is not a constant expression */
6086 const char *g = "string";
6087 ccp = &g + (g ? g-g : 0);
6088 /* HPUX 7.0 cc rejects these. */
6091 ccp = (char const *const *) p;
6092 { /* SCO 3.2v4 cc rejects this. */
6094 char const *s = 0 ? (char *) 0 : (char const *) 0;
6098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6100 const int *foo = &x[0];
6103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6104 typedef const int *iptr;
6108 { /* AIX XL C 1.02.0.0 rejects this saying
6109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6110 struct s { int j; const int *ap[3]; };
6111 struct s *b; b->j = 5;
6113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6119 if { (eval echo configure:6120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6131 echo "$ac_t""$ac_cv_c_const" 1>&6
6132 if test $ac_cv_c_const = no; then
6133 cat >> confdefs.h <<\EOF
6139 echo $ac_n "checking for inline""... $ac_c" 1>&6
6140 echo "configure:6141: checking for inline" >&5
6141 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6145 for ac_kw in inline __inline__ __inline; do
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6154 if { (eval echo configure:6155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6156 ac_cv_c_inline=$ac_kw; break
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6166 echo "$ac_t""$ac_cv_c_inline" 1>&6
6167 case "$ac_cv_c_inline" in
6169 no) cat >> confdefs.h <<\EOF
6173 *) cat >> confdefs.h <<EOF
6174 #define inline $ac_cv_c_inline
6179 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6180 echo "configure:6181: checking for ANSI C header files" >&5
6181 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6193 { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6195 if test -z "$ac_err"; then
6197 ac_cv_header_stdc=yes
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 ac_cv_header_stdc=no
6207 if test $ac_cv_header_stdc = yes; then
6208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6215 egrep "memchr" >/dev/null 2>&1; then
6219 ac_cv_header_stdc=no
6225 if test $ac_cv_header_stdc = yes; then
6226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233 egrep "free" >/dev/null 2>&1; then
6237 ac_cv_header_stdc=no
6243 if test $ac_cv_header_stdc = yes; then
6244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6245 if test "$cross_compiling" = yes; then
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6252 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6253 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6255 int main () { int i; for (i = 0; i < 256; i++)
6256 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 ac_cv_header_stdc=no
6275 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6276 if test $ac_cv_header_stdc = yes; then
6277 cat >> confdefs.h <<\EOF
6278 #define STDC_HEADERS 1
6283 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6284 echo "configure:6285: checking for size_t" >&5
6285 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 #include <sys/types.h>
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6300 ac_cv_type_size_t=yes
6303 ac_cv_type_size_t=no
6308 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6309 if test $ac_cv_type_size_t = no; then
6310 cat >> confdefs.h <<\EOF
6311 #define size_t unsigned
6316 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6317 echo "configure:6318: checking size of long long" >&5
6318 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 if test "$cross_compiling" = yes; then
6322 ac_cv_sizeof_long_long=0
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6328 #include <sys/types.h>
6331 FILE *f=fopen("conftestval", "w");
6333 fprintf(f, "%d\n", sizeof(long long));
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6339 ac_cv_sizeof_long_long=`cat conftestval`
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 ac_cv_sizeof_long_long=0
6350 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6351 cat >> confdefs.h <<EOF
6352 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6357 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6358 echo "configure:6359: checking whether linux/input.h is for real" >&5
6359 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6366 #include <linux/input.h>
6370 int foo = EVIOCGBIT(EV_ABS,42);
6371 int bar = BTN_PINKIE;
6376 if { (eval echo configure:6377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6378 wine_cv_linux_input_h=yes
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 wine_cv_linux_input_h=no
6389 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6390 if test "$wine_cv_linux_input_h" = "yes"
6392 cat >> confdefs.h <<\EOF
6393 #define HAVE_CORRECT_LINUXINPUT_H 1
6399 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6400 echo "configure:6401: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6401 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6414 struct hostent *result;
6421 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6422 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6426 if { (eval echo configure:6427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6428 wine_cv_linux_gethostbyname_r_6=yes
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 wine_cv_linux_gethostbyname_r_6=no
6440 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6441 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6449 if test "$ac_cv_header_linux_joystick_h" = "yes"
6451 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6452 echo "configure:6453: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6453 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6460 #include <sys/ioctl.h>
6461 #include <linux/joystick.h>
6463 struct js_event blub;
6464 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6465 #error "no 2.2 header"
6472 if { (eval echo configure:6473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6474 wine_cv_linux_joystick_22_api=yes
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6479 wine_cv_linux_joystick_22_api=no
6485 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6486 if test "$wine_cv_linux_joystick_22_api" = "yes"
6488 cat >> confdefs.h <<\EOF
6489 #define HAVE_LINUX_22_JOYSTICK_API 1
6496 if test "$ac_cv_header_sys_vfs_h" = "yes"
6498 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6499 echo "configure:6500: checking whether sys/vfs.h defines statfs" >&5
6500 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6507 #include <sys/types.h>
6508 #ifdef HAVE_SYS_PARAM_H
6509 # include <sys/param.h>
6511 #include <sys/vfs.h>
6517 memset(&stfs,0,sizeof(stfs));
6521 if { (eval echo configure:6522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6523 wine_cv_sys_vfs_has_statfs=yes
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6528 wine_cv_sys_vfs_has_statfs=no
6535 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6536 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6538 cat >> confdefs.h <<\EOF
6539 #define STATFS_DEFINED_BY_SYS_VFS 1
6545 if test "$ac_cv_header_sys_statfs_h" = "yes"
6547 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6548 echo "configure:6549: checking whether sys/statfs.h defines statfs" >&5
6549 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6556 #include <sys/types.h>
6557 #ifdef HAVE_SYS_PARAM_H
6558 # include <sys/param.h>
6560 #include <sys/statfs.h>
6568 if { (eval echo configure:6569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6570 wine_cv_sys_statfs_has_statfs=yes
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 wine_cv_sys_statfs_has_statfs=no
6582 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6583 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6585 cat >> confdefs.h <<\EOF
6586 #define STATFS_DEFINED_BY_SYS_STATFS 1
6592 if test "$ac_cv_header_sys_mount_h" = "yes"
6594 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6595 echo "configure:6596: checking whether sys/mount.h defines statfs" >&5
6596 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6603 #include <sys/types.h>
6604 #ifdef HAVE_SYS_PARAM_H
6605 # include <sys/param.h>
6607 #include <sys/mount.h>
6615 if { (eval echo configure:6616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6617 wine_cv_sys_mount_has_statfs=yes
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 wine_cv_sys_mount_has_statfs=no
6629 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6630 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6632 cat >> confdefs.h <<\EOF
6633 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6640 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6641 echo "configure:6642: checking for statfs.f_bfree" >&5
6642 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 if test "x$statfs_bfree" = "xno"
6647 wine_cv_statfs_bfree=no
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6653 #include <sys/types.h>
6654 #ifdef HAVE_SYS_PARAM_H
6655 # include <sys/param.h>
6657 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6658 # include <sys/mount.h>
6660 # ifdef STATFS_DEFINED_BY_SYS_VFS
6661 # include <sys/vfs.h>
6663 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6664 # include <sys/statfs.h>
6677 if { (eval echo configure:6678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6679 wine_cv_statfs_bfree=yes
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 wine_cv_statfs_bfree=no
6691 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6692 if test "$wine_cv_statfs_bfree" = "yes"
6694 cat >> confdefs.h <<\EOF
6695 #define STATFS_HAS_BFREE 1
6700 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6701 echo "configure:6702: checking for statfs.f_bavail" >&5
6702 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 if test "x$statfs_bavail" = "xno"
6707 wine_cv_statfs_bavail=no
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6713 #include <sys/types.h>
6714 #ifdef HAVE_SYS_PARAM_H
6715 # include <sys/param.h>
6717 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6718 # include <sys/mount.h>
6720 # ifdef STATFS_DEFINED_BY_SYS_VFS
6721 # include <sys/vfs.h>
6723 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6724 # include <sys/statfs.h>
6737 if { (eval echo configure:6738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6739 wine_cv_statfs_bavail=yes
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 wine_cv_statfs_bavail=no
6751 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6752 if test "$wine_cv_statfs_bavail" = "yes"
6754 cat >> confdefs.h <<\EOF
6755 #define STATFS_HAS_BAVAIL 1
6761 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6762 echo "configure:6763: checking for msg_accrights in struct msghdr" >&5
6763 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <sys/types.h>
6770 #include <sys/socket.h>
6772 struct msghdr hdr; hdr.msg_accrights=0
6775 if { (eval echo configure:6776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6777 ac_cv_c_msg_accrights="yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 ac_cv_c_msg_accrights="no"
6787 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6788 if test "$ac_cv_c_msg_accrights" = "yes"
6790 cat >> confdefs.h <<\EOF
6791 #define HAVE_MSGHDR_ACCRIGHTS 1
6797 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6798 echo "configure:6799: checking for sa_len in struct sockaddr" >&5
6799 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6800 echo $ac_n "(cached) $ac_c" 1>&6
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6805 #include <sys/types.h>
6806 #include <sys/socket.h>
6809 static struct sockaddr addr; addr.sa_len = 1
6812 if { (eval echo configure:6813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6814 ac_cv_c_sockaddr_sa_len="yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 ac_cv_c_sockaddr_sa_len="no"
6824 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6825 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6827 cat >> confdefs.h <<\EOF
6828 #define HAVE_SOCKADDR_SA_LEN 1
6834 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6835 echo "configure:6836: checking for sun_len in struct sockaddr_un" >&5
6836 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6839 cat > conftest.$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6842 #include <sys/types.h>
6843 #include <sys/socket.h>
6846 static struct sockaddr_un addr; addr.sun_len = 1
6849 if { (eval echo configure:6850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6851 ac_cv_c_sockaddr_sun_len="yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 ac_cv_c_sockaddr_sun_len="no"
6861 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6862 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6864 cat >> confdefs.h <<\EOF
6865 #define HAVE_SOCKADDR_SUN_LEN 1
6871 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6872 echo "configure:6873: checking whether we need to define __i386__" >&5
6873 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 egrep "yes" >/dev/null 2>&1; then
6886 ac_cv_cpp_def_i386="yes"
6889 ac_cv_cpp_def_i386="no"
6895 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6896 if test "$ac_cv_cpp_def_i386" = "yes"
6898 CFLAGS="$CFLAGS -D__i386__"
6899 LINTFLAGS="$LINTFLAGS -D__i386__"
6903 if test "$GCC" = "yes"
6905 GCC_NO_BUILTIN="-fno-builtin"
6910 cat >> confdefs.h <<\EOF
6911 #define __WINE_CONFIG_H 1
6917 MAKE_RULES=Make.rules
6920 MAKE_DLL_RULES=dlls/Makedll.rules
6923 MAKE_PROG_RULES=programs/Makeprog.rules
6927 cat > confcache <<\EOF
6928 # This file is a shell script that caches the results of configure
6929 # tests run on this system so they can be shared between configure
6930 # scripts and configure runs. It is not useful on other systems.
6931 # If it contains results you don't want to keep, you may remove or edit it.
6933 # By default, configure uses ./config.cache as the cache file,
6934 # creating it if it does not exist already. You can give configure
6935 # the --cache-file=FILE option to use a different cache file; that is
6936 # what configure does when it calls configure scripts in
6937 # subdirectories, so they share the cache.
6938 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6939 # config.status only pays attention to the cache file if you give it the
6940 # --recheck option to rerun configure.
6943 # The following way of writing the cache mishandles newlines in values,
6944 # but we know of no workaround that is simple, portable, and efficient.
6945 # So, don't put newlines in cache variables' values.
6946 # Ultrix sh set writes to stderr and can't be redirected directly,
6947 # and sets the high bit in the cache file unless we assign to the vars.
6949 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6951 # `set' does not quote correctly, so add quotes (double-quote substitution
6952 # turns \\\\ into \\, and sed turns \\ into \).
6954 -e "s/'/'\\\\''/g" \
6955 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6958 # `set' quotes correctly as required by POSIX, so do not add quotes.
6959 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6962 if cmp -s $cache_file confcache; then
6965 if test -w $cache_file; then
6966 echo "updating cache $cache_file"
6967 cat confcache > $cache_file
6969 echo "not updating unwritable cache $cache_file"
6974 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6977 # Let make expand exec_prefix.
6978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6980 # Any assignment to VPATH causes Sun make to only execute
6981 # the first set of double-colon rules, so remove it if not needed.
6982 # If there is a colon in the path, we need to keep it.
6983 if test "x$srcdir" = x.; then
6984 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6987 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6989 DEFS=-DHAVE_CONFIG_H
6991 # Without the "./", some shells look in PATH for config.status.
6992 : ${CONFIG_STATUS=./config.status}
6994 echo creating $CONFIG_STATUS
6995 rm -f $CONFIG_STATUS
6996 cat > $CONFIG_STATUS <<EOF
6998 # Generated automatically by configure.
6999 # Run this file to recreate the current configuration.
7000 # This directory was configured as follows,
7001 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7003 # $0 $ac_configure_args
7005 # Compiler output produced by configure, useful for debugging
7006 # configure, is in ./config.log if it exists.
7008 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7011 case "\$ac_option" in
7012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7013 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7014 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7015 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7016 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7018 -help | --help | --hel | --he | --h)
7019 echo "\$ac_cs_usage"; exit 0 ;;
7020 *) echo "\$ac_cs_usage"; exit 1 ;;
7024 ac_given_srcdir=$srcdir
7025 ac_given_INSTALL="$INSTALL"
7027 trap 'rm -fr `echo "
7030 programs/Makeprog.rules
7036 dlls/advapi32/Makefile
7037 dlls/avicap32/Makefile
7038 dlls/avifil32/Makefile
7039 dlls/comctl32/Makefile
7040 dlls/commdlg/Makefile
7041 dlls/crtdll/Makefile
7042 dlls/crypt32/Makefile
7043 dlls/dciman32/Makefile
7045 dlls/devenum/Makefile
7046 dlls/dinput/Makefile
7048 dlls/dplayx/Makefile
7049 dlls/dsound/Makefile
7053 dlls/imagehlp/Makefile
7055 dlls/kernel/Makefile
7056 dlls/lzexpand/Makefile
7057 dlls/mapi32/Makefile
7061 dlls/msimg32/Makefile
7062 dlls/msnet32/Makefile
7063 dlls/msrle32/Makefile
7064 dlls/msvcrt/Makefile
7065 dlls/msvideo/Makefile
7066 dlls/netapi32/Makefile
7068 dlls/odbc32/Makefile
7070 dlls/oleaut32/Makefile
7071 dlls/olecli/Makefile
7072 dlls/oledlg/Makefile
7073 dlls/olepro32/Makefile
7074 dlls/olesvr/Makefile
7075 dlls/opengl32/Makefile
7078 dlls/quartz/Makefile
7079 dlls/rasapi32/Makefile
7080 dlls/richedit/Makefile
7081 dlls/rpcrt4/Makefile
7082 dlls/serialui/Makefile
7083 dlls/setupapi/Makefile
7084 dlls/shdocvw/Makefile
7085 dlls/shell32/Makefile
7086 dlls/shfolder/Makefile
7087 dlls/shlwapi/Makefile
7089 dlls/tapi32/Makefile
7090 dlls/ttydrv/Makefile
7092 dlls/urlmon/Makefile
7094 dlls/version/Makefile
7095 dlls/win32s/Makefile
7096 dlls/winaspi/Makefile
7097 dlls/winedos/Makefile
7098 dlls/wineps/Makefile
7099 dlls/wininet/Makefile
7101 dlls/winmm/joystick/Makefile
7102 dlls/winmm/mcianim/Makefile
7103 dlls/winmm/mciavi/Makefile
7104 dlls/winmm/mcicda/Makefile
7105 dlls/winmm/mciseq/Makefile
7106 dlls/winmm/mciwave/Makefile
7107 dlls/winmm/midimap/Makefile
7108 dlls/winmm/wavemap/Makefile
7109 dlls/winmm/wineoss/Makefile
7110 dlls/winnls/Makefile
7111 dlls/winsock/Makefile
7112 dlls/winspool/Makefile
7113 dlls/wintrust/Makefile
7115 dlls/wsock32/Makefile
7116 dlls/x11drv/Makefile
7117 documentation/Makefile
7118 documentation/wine.conf.man
7119 documentation/wine.man
7122 graphics/enhmetafiledrv/Makefile
7123 graphics/metafiledrv/Makefile
7124 graphics/win16drv/Makefile
7125 graphics/x11drv/Makefile
7139 programs/avitools/Makefile
7140 programs/clock/Makefile
7141 programs/cmdlgtst/Makefile
7142 programs/control/Makefile
7143 programs/notepad/Makefile
7144 programs/osversioncheck/Makefile
7145 programs/progman/Makefile
7146 programs/regapi/Makefile
7147 programs/regtest/Makefile
7148 programs/uninstaller/Makefile
7149 programs/view/Makefile
7150 programs/wcmd/Makefile
7151 programs/wineconsole/Makefile
7152 programs/winemine/Makefile
7153 programs/winetest/Makefile
7154 programs/winhelp/Makefile
7155 programs/winver/Makefile
7160 tools/winapi/Makefile
7161 tools/winebuild/Makefile
7162 tools/winedump/Makefile
7170 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7172 cat >> $CONFIG_STATUS <<EOF
7174 # Protect against being on the right side of a sed subst in config.status.
7175 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7176 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7180 s%@CFLAGS@%$CFLAGS%g
7181 s%@CPPFLAGS@%$CPPFLAGS%g
7182 s%@CXXFLAGS@%$CXXFLAGS%g
7183 s%@FFLAGS@%$FFLAGS%g
7185 s%@LDFLAGS@%$LDFLAGS%g
7187 s%@exec_prefix@%$exec_prefix%g
7188 s%@prefix@%$prefix%g
7189 s%@program_transform_name@%$program_transform_name%g
7190 s%@bindir@%$bindir%g
7191 s%@sbindir@%$sbindir%g
7192 s%@libexecdir@%$libexecdir%g
7193 s%@datadir@%$datadir%g
7194 s%@sysconfdir@%$sysconfdir%g
7195 s%@sharedstatedir@%$sharedstatedir%g
7196 s%@localstatedir@%$localstatedir%g
7197 s%@libdir@%$libdir%g
7198 s%@includedir@%$includedir%g
7199 s%@oldincludedir@%$oldincludedir%g
7200 s%@infodir@%$infodir%g
7201 s%@mandir@%$mandir%g
7202 s%@OPTIONS@%$OPTIONS%g
7203 s%@SET_MAKE@%$SET_MAKE%g
7206 s%@X_CFLAGS@%$X_CFLAGS%g
7207 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7208 s%@X_LIBS@%$X_LIBS%g
7209 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7212 s%@LEXLIB@%$LEXLIB%g
7215 s%@RANLIB@%$RANLIB%g
7216 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7217 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7218 s%@INSTALL_DATA@%$INSTALL_DATA%g
7221 s%@LDCONFIG@%$LDCONFIG%g
7222 s%@DLLWRAP@%$DLLWRAP%g
7224 s%@LINTFLAGS@%$LINTFLAGS%g
7225 s%@LDCOMBINE@%$LDCOMBINE%g
7226 s%@UTILLIBS@%$UTILLIBS%g
7227 s%@DLLIBS@%$DLLIBS%g
7228 s%@JPEGLIB@%$JPEGLIB%g
7230 s%@XFILES@%$XFILES%g
7231 s%@OPENGLFILES@%$OPENGLFILES%g
7232 s%@GLU32FILES@%$GLU32FILES%g
7233 s%@CURSESLIBS@%$CURSESLIBS%g
7234 s%@CUPSLIBS@%$CUPSLIBS%g
7235 s%@ft_devel@%$ft_devel%g
7236 s%@ft_devel2@%$ft_devel2%g
7237 s%@FREETYPELIBS@%$FREETYPELIBS%g
7238 s%@FREETYPEINCL@%$FREETYPEINCL%g
7239 s%@DLLFLAGS@%$DLLFLAGS%g
7240 s%@LDSHARED@%$LDSHARED%g
7241 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7242 s%@LIBEXT@%$LIBEXT%g
7243 s%@LDPATH@%$LDPATH%g
7244 s%@ALLOCA@%$ALLOCA%g
7245 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7246 /@MAKE_RULES@/r $MAKE_RULES
7248 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7249 s%@MAKE_DLL_RULES@%%g
7250 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7251 s%@MAKE_PROG_RULES@%%g
7256 cat >> $CONFIG_STATUS <<\EOF
7258 # Split the substitutions into bite-sized pieces for seds with
7259 # small command number limits, like on Digital OSF/1 and HP-UX.
7260 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7261 ac_file=1 # Number of current file.
7262 ac_beg=1 # First line for current file.
7263 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7266 while $ac_more_lines; do
7267 if test $ac_beg -gt 1; then
7268 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7270 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7272 if test ! -s conftest.s$ac_file; then
7274 rm -f conftest.s$ac_file
7276 if test -z "$ac_sed_cmds"; then
7277 ac_sed_cmds="sed -f conftest.s$ac_file"
7279 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7281 ac_file=`expr $ac_file + 1`
7283 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7286 if test -z "$ac_sed_cmds"; then
7291 cat >> $CONFIG_STATUS <<EOF
7293 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7295 programs/Makeprog.rules
7301 dlls/advapi32/Makefile
7302 dlls/avicap32/Makefile
7303 dlls/avifil32/Makefile
7304 dlls/comctl32/Makefile
7305 dlls/commdlg/Makefile
7306 dlls/crtdll/Makefile
7307 dlls/crypt32/Makefile
7308 dlls/dciman32/Makefile
7310 dlls/devenum/Makefile
7311 dlls/dinput/Makefile
7313 dlls/dplayx/Makefile
7314 dlls/dsound/Makefile
7318 dlls/imagehlp/Makefile
7320 dlls/kernel/Makefile
7321 dlls/lzexpand/Makefile
7322 dlls/mapi32/Makefile
7326 dlls/msimg32/Makefile
7327 dlls/msnet32/Makefile
7328 dlls/msrle32/Makefile
7329 dlls/msvcrt/Makefile
7330 dlls/msvideo/Makefile
7331 dlls/netapi32/Makefile
7333 dlls/odbc32/Makefile
7335 dlls/oleaut32/Makefile
7336 dlls/olecli/Makefile
7337 dlls/oledlg/Makefile
7338 dlls/olepro32/Makefile
7339 dlls/olesvr/Makefile
7340 dlls/opengl32/Makefile
7343 dlls/quartz/Makefile
7344 dlls/rasapi32/Makefile
7345 dlls/richedit/Makefile
7346 dlls/rpcrt4/Makefile
7347 dlls/serialui/Makefile
7348 dlls/setupapi/Makefile
7349 dlls/shdocvw/Makefile
7350 dlls/shell32/Makefile
7351 dlls/shfolder/Makefile
7352 dlls/shlwapi/Makefile
7354 dlls/tapi32/Makefile
7355 dlls/ttydrv/Makefile
7357 dlls/urlmon/Makefile
7359 dlls/version/Makefile
7360 dlls/win32s/Makefile
7361 dlls/winaspi/Makefile
7362 dlls/winedos/Makefile
7363 dlls/wineps/Makefile
7364 dlls/wininet/Makefile
7366 dlls/winmm/joystick/Makefile
7367 dlls/winmm/mcianim/Makefile
7368 dlls/winmm/mciavi/Makefile
7369 dlls/winmm/mcicda/Makefile
7370 dlls/winmm/mciseq/Makefile
7371 dlls/winmm/mciwave/Makefile
7372 dlls/winmm/midimap/Makefile
7373 dlls/winmm/wavemap/Makefile
7374 dlls/winmm/wineoss/Makefile
7375 dlls/winnls/Makefile
7376 dlls/winsock/Makefile
7377 dlls/winspool/Makefile
7378 dlls/wintrust/Makefile
7380 dlls/wsock32/Makefile
7381 dlls/x11drv/Makefile
7382 documentation/Makefile
7383 documentation/wine.conf.man
7384 documentation/wine.man
7387 graphics/enhmetafiledrv/Makefile
7388 graphics/metafiledrv/Makefile
7389 graphics/win16drv/Makefile
7390 graphics/x11drv/Makefile
7404 programs/avitools/Makefile
7405 programs/clock/Makefile
7406 programs/cmdlgtst/Makefile
7407 programs/control/Makefile
7408 programs/notepad/Makefile
7409 programs/osversioncheck/Makefile
7410 programs/progman/Makefile
7411 programs/regapi/Makefile
7412 programs/regtest/Makefile
7413 programs/uninstaller/Makefile
7414 programs/view/Makefile
7415 programs/wcmd/Makefile
7416 programs/wineconsole/Makefile
7417 programs/winemine/Makefile
7418 programs/winetest/Makefile
7419 programs/winhelp/Makefile
7420 programs/winver/Makefile
7425 tools/winapi/Makefile
7426 tools/winebuild/Makefile
7427 tools/winedump/Makefile
7435 windows/x11drv/Makefile "}
7437 cat >> $CONFIG_STATUS <<\EOF
7438 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7441 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7442 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7443 *) ac_file_in="${ac_file}.in" ;;
7446 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7448 # Remove last slash and all that follows it. Not all systems have dirname.
7449 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7450 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7451 # The file is in a subdirectory.
7452 test ! -d "$ac_dir" && mkdir "$ac_dir"
7453 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7454 # A "../" for each directory in $ac_dir_suffix.
7455 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7457 ac_dir_suffix= ac_dots=
7460 case "$ac_given_srcdir" in
7462 if test -z "$ac_dots"; then top_srcdir=.
7463 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7464 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7466 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7467 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7470 case "$ac_given_INSTALL" in
7471 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7472 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7475 echo creating "$ac_file"
7477 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7479 *Makefile*) ac_comsub="1i\\
7480 # $configure_input" ;;
7484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7486 s%@configure_input@%$configure_input%g
7487 s%@srcdir@%$srcdir%g
7488 s%@top_srcdir@%$top_srcdir%g
7489 s%@INSTALL@%$INSTALL%g
7490 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7494 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7495 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7497 # ac_d sets the value in "#define NAME VALUE" lines.
7498 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7499 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7502 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7503 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7504 ac_uB='\([ ]\)%\1#\2define\3'
7507 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7508 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7509 ac_eB='$%\1#\2define\3'
7513 if test "${CONFIG_HEADERS+set}" != set; then
7515 cat >> $CONFIG_STATUS <<EOF
7516 CONFIG_HEADERS="include/config.h"
7518 cat >> $CONFIG_STATUS <<\EOF
7520 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7523 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7524 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7525 *) ac_file_in="${ac_file}.in" ;;
7528 echo creating $ac_file
7530 rm -f conftest.frag conftest.in conftest.out
7531 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7532 cat $ac_file_inputs > conftest.in
7536 # Transform confdefs.h into a sed script conftest.vals that substitutes
7537 # the proper values into config.h.in to produce config.h. And first:
7538 # Protect against being on the right side of a sed subst in config.status.
7539 # Protect against being in an unquoted here document in config.status.
7541 cat > conftest.hdr <<\EOF
7544 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7548 sed -n -f conftest.hdr confdefs.h > conftest.vals
7551 # This sed command replaces #undef with comments. This is necessary, for
7552 # example, in the case of _POSIX_SOURCE, which is predefined and required
7553 # on some systems where configure will not decide to define it.
7554 cat >> conftest.vals <<\EOF
7555 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7558 # Break up conftest.vals because some shells have a limit on
7559 # the size of here documents, and old seds have small limits too.
7564 ac_lines=`grep -c . conftest.vals`
7565 # grep -c gives empty output for an empty file on some AIX systems.
7566 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7567 # Write a limited-size here document to conftest.frag.
7568 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7569 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7571 sed -f conftest.frag conftest.in > conftest.out
7573 mv conftest.out conftest.in
7575 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7577 mv conftest.tail conftest.vals
7581 cat >> $CONFIG_STATUS <<\EOF
7582 rm -f conftest.frag conftest.h
7583 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7584 cat conftest.in >> conftest.h
7586 if cmp -s $ac_file conftest.h 2>/dev/null; then
7587 echo "$ac_file is unchanged"
7590 # Remove last slash and all that follows it. Not all systems have dirname.
7591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7593 # The file is in a subdirectory.
7594 test ! -d "$ac_dir" && mkdir "$ac_dir"
7597 mv conftest.h $ac_file
7602 cat >> $CONFIG_STATUS <<EOF
7606 cat >> $CONFIG_STATUS <<\EOF
7609 dlls/ddraw/d3ddevice \
7610 dlls/ddraw/dclipper \
7612 dlls/ddraw/direct3d \
7613 dlls/ddraw/dpalette \
7614 dlls/ddraw/dsurface \
7615 dlls/dinput/joystick \
7616 dlls/dinput/keyboard \
7618 dlls/kernel/messages \
7620 dlls/user/resources \
7623 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7627 chmod +x $CONFIG_STATUS
7628 rm -fr confdefs* $ac_clean_files
7629 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7632 if test "$have_x" = "no"
7635 echo "*** Warning: X development files not found. Wine will be built without"
7636 echo "*** X support, which currently does not work, and would probably not be"
7637 echo "*** what you want anyway. You will need to install devel packages of"
7638 echo "*** Xlib/Xfree86 at the very least."
7641 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7644 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7645 echo "*** terminal resize support. Consider upgrading ncurses."
7648 if test "$wine_cv_libc_reentrant" = "no"
7651 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7652 echo "*** thread support. Consider upgrading libc to a more recent"
7653 echo "*** reentrant version of libc."
7656 if test "$wine_cv_opengl_version_OK" = "no"
7659 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7660 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7663 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7666 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7667 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7668 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7669 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7672 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7675 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7676 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7677 echo "*** support before reporting bugs."
7680 if test "$wine_cv_warn_cups_h" = "yes"
7683 echo "*** Note: You have cups runtime libraries, but no development"
7684 echo "*** libraries. Install the cups-devel package or whichever package"
7685 echo "*** contains cups.h to enable CUPS support in WINE."
7688 if test "$wine_cv_msg_freetype" = "yes"
7691 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7692 echo "*** installed, but either 'freetype-config' is not in your PATH or"
7693 echo "*** you do not have the FreeType include files. Install the"
7694 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7695 echo "*** enable Wine to use TrueType fonts."
7699 echo "Configure finished. Do 'make depend && make' to compile Wine."