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-emulator build only the Wine library, not the emulator"
18 --disable-dll build static libraries instead of DLLs"
20 --disable-debug compile out all debugging messages"
22 --disable-trace compile out TRACE messages"
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.
558 # We want these before the checks, so the checks can modify their values.
560 test -z "$PROGEXT" && PROGEXT
=""
564 LIBEXT
=so
# library type .so or .a
565 TRACE_MSGS
=yes # the TRACE() macro
566 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval
="$enable_emulator"
571 if test "$enableval" = "no"; then EMU_TARGET
=""; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval
="$enable_dll"
578 if test "$enableval" = "no"; then LIBEXT
="a"; fi
582 # Check whether --enable-debug or --disable-debug was given.
583 if test "${enable_debug+set}" = set; then
584 enableval
="$enable_debug"
585 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
589 # Check whether --enable-trace or --disable-trace was given.
590 if test "${enable_trace+set}" = set; then
591 enableval
="$enable_trace"
592 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
596 # Check whether --with-reentrant-x or --without-reentrant-x was given.
597 if test "${with_reentrant_x+set}" = set; then
598 withval
="$with_reentrant_x"
606 if test "$DEBUG_MSGS" = "no"
608 cat >> confdefs.h
<<\EOF
609 #define NO_DEBUG_MSGS 1
612 cat >> confdefs.h
<<\EOF
613 #define NO_TRACE_MSGS 1
617 if test "$TRACE_MSGS" = "no"
619 cat >> confdefs.h
<<\EOF
620 #define NO_TRACE_MSGS 1
627 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
628 echo "configure:629: checking whether ${MAKE-make} sets \${MAKE}" >&5
629 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
630 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
633 cat > conftestmake
<<\EOF
635 @
echo 'ac_maketemp="${MAKE}"'
637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
638 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
639 if test -n "$ac_maketemp"; then
640 eval ac_cv_prog_make_
${ac_make}_set
=yes
642 eval ac_cv_prog_make_
${ac_make}_set
=no
646 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
647 echo "$ac_t""yes" 1>&6
650 echo "$ac_t""no" 1>&6
651 SET_MAKE
="MAKE=${MAKE-make}"
654 # Extract the first word of "gcc", so it can be a program name with args.
655 set dummy gcc
; ac_word
=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
661 if test -n "$CC"; then
662 ac_cv_prog_CC
="$CC" # Let the user override the test.
664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
666 for ac_dir
in $ac_dummy; do
667 test -z "$ac_dir" && ac_dir
=.
668 if test -f $ac_dir/$ac_word; then
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
684 # Extract the first word of "cc", so it can be a program name with args.
685 set dummy cc
; ac_word
=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 if test -n "$CC"; then
692 ac_cv_prog_CC
="$CC" # Let the user override the test.
694 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
697 for ac_dir
in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir
=.
699 if test -f $ac_dir/$ac_word; then
700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 if test $ac_prog_rejected = yes; then
710 # We found a bogon in the path, so make sure we never use it.
711 set dummy
$ac_cv_prog_CC
713 if test $# -gt 0; then
714 # We chose a different compiler from the bogus one.
715 # However, it has the same basename, so the bogon will be chosen
716 # first if we set CC to just the basename; use the full file name.
718 set dummy
"$ac_dir/$ac_word" "$@"
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
729 echo "$ac_t""no" 1>&6
732 if test -z "$CC"; then
735 # Extract the first word of "cl", so it can be a program name with args.
736 set dummy cl
; ac_word
=$2
737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738 echo "configure:739: checking for $ac_word" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 if test -n "$CC"; then
743 ac_cv_prog_CC
="$CC" # Let the user override the test.
745 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
747 for ac_dir
in $ac_dummy; do
748 test -z "$ac_dir" && ac_dir
=.
749 if test -f $ac_dir/$ac_word; then
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
761 echo "$ac_t""no" 1>&6
766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774 ac_cpp
='$CPP $CPPFLAGS'
775 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777 cross_compiling
=$ac_cv_prog_cc_cross
779 cat > conftest.
$ac_ext << EOF
781 #line 782 "configure"
782 #include "confdefs.h"
786 if { (eval echo configure
:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
787 ac_cv_prog_cc_works
=yes
788 # If we can't run a trivial program, we are probably using a cross compiler.
789 if (.
/conftest
; exit) 2>/dev
/null
; then
790 ac_cv_prog_cc_cross
=no
792 ac_cv_prog_cc_cross
=yes
795 echo "configure: failed program was:" >&5
796 cat conftest.
$ac_ext >&5
797 ac_cv_prog_cc_works
=no
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp
='$CPP $CPPFLAGS'
803 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling
=$ac_cv_prog_cc_cross
807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808 if test $ac_cv_prog_cc_works = no
; then
809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814 cross_compiling
=$ac_cv_prog_cc_cross
816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817 echo "configure:818: checking whether we are using GNU C" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 cat > conftest.c
<<EOF
826 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
835 if test $ac_cv_prog_gcc = yes; then
841 ac_test_CFLAGS
="${CFLAGS+set}"
842 ac_save_CFLAGS
="$CFLAGS"
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS
="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
863 if test "$GCC" = yes; then
869 if test "$GCC" = yes; then
876 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
877 echo "configure:878: checking how to run the C preprocessor" >&5
878 # On Suns, sometimes $CPP names a directory.
879 if test -n "$CPP" && test -d "$CPP"; then
882 if test -z "$CPP"; then
883 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 # This must be in double quotes, not single quotes, because CPP may get
887 # substituted into the Makefile and "${CC-cc}" will confuse make.
889 # On the NeXT, cc -E runs the code through the compiler's parser,
890 # not just through cpp.
891 cat > conftest.
$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
897 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898 { (eval echo configure
:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
900 if test -z "$ac_err"; then
904 echo "configure: failed program was:" >&5
905 cat conftest.
$ac_ext >&5
907 CPP
="${CC-cc} -E -traditional-cpp"
908 cat > conftest.
$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure
:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
921 echo "configure: failed program was:" >&5
922 cat conftest.
$ac_ext >&5
924 CPP
="${CC-cc} -nologo -E"
925 cat > conftest.
$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure
:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.
$ac_ext >&5
948 ac_cv_prog_CPP
="$CPP"
950 CPP
="$ac_cv_prog_CPP"
952 ac_cv_prog_CPP
="$CPP"
954 echo "$ac_t""$CPP" 1>&6
956 # If we find X, set shell vars x_includes and x_libraries to the
957 # paths, otherwise set no_x=yes.
958 # Uses ac_ vars as temps to allow command line to override cache and checks.
959 # --without-x overrides everything else, but does not touch the cache.
960 echo $ac_n "checking for X""... $ac_c" 1>&6
961 echo "configure:962: checking for X" >&5
963 # Check whether --with-x or --without-x was given.
964 if test "${with_x+set}" = set; then
969 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
970 if test "x$with_x" = xno
; then
971 # The user explicitly disabled X.
974 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
975 # Both variables are already set.
978 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 # One or both of the vars are not set, and there is no cached value.
982 ac_x_includes
=NO ac_x_libraries
=NO
984 if mkdir conftestdir
; then
986 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
987 cat > Imakefile
<<'EOF'
989 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
991 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
993 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
994 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
995 for ac_extension
in a so sl
; do
996 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
997 test -f $ac_im_libdir/libX11.
$ac_extension; then
998 ac_im_usrlibdir
=$ac_im_libdir; break
1001 # Screen out bogus values from the imake configuration. They are
1002 # bogus both because they are the default anyway, and because
1003 # using them would break gcc on systems where it needs fixed includes.
1004 case "$ac_im_incroot" in
1006 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1008 case "$ac_im_usrlibdir" in
1010 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1017 if test "$ac_x_includes" = NO
; then
1018 # Guess where to find include files, by looking for this one X11 .h file.
1019 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1021 # First, try using that file with no special directory specified.
1022 cat > conftest.
$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1025 #include <$x_direct_test_include>
1027 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1028 { (eval echo configure
:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1029 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1030 if test -z "$ac_err"; then
1032 # We can compile using X headers with no special include directory.
1036 echo "configure: failed program was:" >&5
1037 cat conftest.
$ac_ext >&5
1039 # Look for the header file in a standard set of common directories.
1040 # Check X11 before X11Rn because it is often a symlink to the current release.
1043 /usr
/X11R
6/include \
1044 /usr
/X11R
5/include \
1045 /usr
/X11R
4/include \
1048 /usr
/include
/X11R6 \
1049 /usr
/include
/X11R5 \
1050 /usr
/include
/X11R4 \
1052 /usr
/local
/X11
/include \
1053 /usr
/local
/X11R
6/include \
1054 /usr
/local
/X11R
5/include \
1055 /usr
/local
/X11R
4/include \
1057 /usr
/local
/include
/X11 \
1058 /usr
/local
/include
/X11R6 \
1059 /usr
/local
/include
/X11R5 \
1060 /usr
/local
/include
/X11R4 \
1064 /usr
/XFree86
/include
/X11 \
1067 /usr
/local
/include \
1068 /usr
/unsupported
/include \
1069 /usr
/athena
/include \
1070 /usr
/local
/x11r
5/include \
1071 /usr
/lpp
/Xamples
/include \
1073 /usr
/openwin
/include \
1074 /usr
/openwin
/share
/include \
1077 if test -r "$ac_dir/$x_direct_test_include"; then
1078 ac_x_includes
=$ac_dir
1084 fi # $ac_x_includes = NO
1086 if test "$ac_x_libraries" = NO
; then
1087 # Check for the libraries.
1089 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1090 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1092 # See if we find them without any special options.
1093 # Don't add to $LIBS permanently.
1094 ac_save_LIBS
="$LIBS"
1095 LIBS
="-l$x_direct_test_library $LIBS"
1096 cat > conftest.
$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1101 ${x_direct_test_function}()
1104 if { (eval echo configure
:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1106 LIBS
="$ac_save_LIBS"
1107 # We can link X programs with no special library path.
1110 echo "configure: failed program was:" >&5
1111 cat conftest.
$ac_ext >&5
1113 LIBS
="$ac_save_LIBS"
1114 # First see if replacing the include by lib works.
1115 # Check X11 before X11Rn because it is often a symlink to the current release.
1116 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1127 /usr
/local
/X11
/lib \
1128 /usr
/local
/X11R
6/lib \
1129 /usr
/local
/X11R
5/lib \
1130 /usr
/local
/X11R
4/lib \
1132 /usr
/local
/lib
/X11 \
1133 /usr
/local
/lib
/X11R6 \
1134 /usr
/local
/lib
/X11R5 \
1135 /usr
/local
/lib
/X11R4 \
1139 /usr
/XFree86
/lib
/X11 \
1143 /usr
/unsupported
/lib \
1145 /usr
/local
/x11r
5/lib \
1146 /usr
/lpp
/Xamples
/lib \
1150 /usr
/openwin
/share
/lib \
1153 for ac_extension
in a so sl
; do
1154 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1155 ac_x_libraries
=$ac_dir
1162 fi # $ac_x_libraries = NO
1164 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1165 # Didn't find X anywhere. Cache the known absence of X.
1166 ac_cv_have_x
="have_x=no"
1168 # Record where we found X for the cache.
1169 ac_cv_have_x
="have_x=yes \
1170 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1174 eval "$ac_cv_have_x"
1177 if test "$have_x" != yes; then
1178 echo "$ac_t""$have_x" 1>&6
1181 # If each of the values was on the command line, it overrides each guess.
1182 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1183 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1184 # Update the cache value to reflect the command line values.
1185 ac_cv_have_x
="have_x=yes \
1186 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1187 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1190 if test "$no_x" = yes; then
1191 # Not all programs may use this symbol, but it does not hurt to define it.
1192 cat >> confdefs.h
<<\EOF
1193 #define X_DISPLAY_MISSING 1
1196 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1198 if test -n "$x_includes"; then
1199 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1202 # It would also be nice to do this for all -L options, not just this one.
1203 if test -n "$x_libraries"; then
1204 X_LIBS
="$X_LIBS -L$x_libraries"
1205 # For Solaris; some versions of Sun CC require a space after -R and
1206 # others require no space. Words are not sufficient . . . .
1207 case "`(uname -sr) 2>/dev/null`" in
1209 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether -R must be followed by a space" >&5
1211 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1220 if { (eval echo configure
:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1224 echo "configure: failed program was:" >&5
1225 cat conftest.
$ac_ext >&5
1230 if test $ac_R_nospace = yes; then
1231 echo "$ac_t""no" 1>&6
1232 X_LIBS
="$X_LIBS -R$x_libraries"
1234 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1235 cat > conftest.
$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1243 if { (eval echo configure
:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1247 echo "configure: failed program was:" >&5
1248 cat conftest.
$ac_ext >&5
1253 if test $ac_R_space = yes; then
1254 echo "$ac_t""yes" 1>&6
1255 X_LIBS
="$X_LIBS -R $x_libraries"
1257 echo "$ac_t""neither works" 1>&6
1260 LIBS
="$ac_xsave_LIBS"
1264 # Check for system-dependent libraries X programs must link with.
1265 # Do this before checking for the system-independent R6 libraries
1266 # (-lICE), since we may need -lsocket or whatever for X linking.
1268 if test "$ISC" = yes; then
1269 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1271 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1272 # libraries were built with DECnet support. And karl@cs.umb.edu says
1273 # the Alpha needs dnet_stub (dnet does not exist).
1274 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1275 echo "configure:1276: checking for dnet_ntoa in -ldnet" >&5
1276 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 ac_save_LIBS
="$LIBS"
1282 cat > conftest.
$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 /* Override any gcc2 internal prototype to avoid an error. */
1286 /* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1294 if { (eval echo configure
:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1296 eval "ac_cv_lib_$ac_lib_var=yes"
1298 echo "configure: failed program was:" >&5
1299 cat conftest.
$ac_ext >&5
1301 eval "ac_cv_lib_$ac_lib_var=no"
1304 LIBS
="$ac_save_LIBS"
1307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1308 echo "$ac_t""yes" 1>&6
1309 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1311 echo "$ac_t""no" 1>&6
1314 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1315 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1316 echo "configure:1317: checking for dnet_ntoa in -ldnet_stub" >&5
1317 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 ac_save_LIBS
="$LIBS"
1322 LIBS
="-ldnet_stub $LIBS"
1323 cat > conftest.
$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 /* Override any gcc2 internal prototype to avoid an error. */
1327 /* We use char because int might match the return type of a gcc2
1328 builtin and then its argument prototype would still apply. */
1335 if { (eval echo configure
:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1337 eval "ac_cv_lib_$ac_lib_var=yes"
1339 echo "configure: failed program was:" >&5
1340 cat conftest.
$ac_ext >&5
1342 eval "ac_cv_lib_$ac_lib_var=no"
1345 LIBS
="$ac_save_LIBS"
1348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1349 echo "$ac_t""yes" 1>&6
1350 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1352 echo "$ac_t""no" 1>&6
1357 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1358 # to get the SysV transport functions.
1359 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1361 # The nsl library prevents programs from opening the X display
1362 # on Irix 5.2, according to dickey@clark.net.
1363 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gethostbyname" >&5
1365 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.
$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* System header to define __stub macros and hopefully few prototypes,
1372 which can conflict with char gethostbyname(); below. */
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1377 char gethostbyname();
1381 /* The GNU C library defines this for functions which it implements
1382 to always fail with ENOSYS. Some functions are actually named
1383 something starting with __ and the normal name is an alias. */
1384 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1392 if { (eval echo configure
:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1394 eval "ac_cv_func_gethostbyname=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.
$ac_ext >&5
1399 eval "ac_cv_func_gethostbyname=no"
1404 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1408 echo "$ac_t""no" 1>&6
1411 if test $ac_cv_func_gethostbyname = no
; then
1412 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1413 echo "configure:1414: checking for gethostbyname in -lnsl" >&5
1414 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 ac_save_LIBS
="$LIBS"
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1426 char gethostbyname();
1432 if { (eval echo configure
:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1434 eval "ac_cv_lib_$ac_lib_var=yes"
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 eval "ac_cv_lib_$ac_lib_var=no"
1442 LIBS
="$ac_save_LIBS"
1445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1446 echo "$ac_t""yes" 1>&6
1447 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1449 echo "$ac_t""no" 1>&6
1454 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1455 # socket/setsockopt and other routines are undefined under SCO ODT
1456 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1457 # on later versions), says simon@lia.di.epfl.ch: it contains
1458 # gethostby* variants that don't use the nameserver (or something).
1459 # -lsocket must be given before -lnsl if both are needed.
1460 # We assume that if connect needs -lnsl, so does gethostbyname.
1461 echo $ac_n "checking for connect""... $ac_c" 1>&6
1462 echo "configure:1463: checking for connect" >&5
1463 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.
$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* System header to define __stub macros and hopefully few prototypes,
1470 which can conflict with char connect(); below. */
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1479 /* The GNU C library defines this for functions which it implements
1480 to always fail with ENOSYS. Some functions are actually named
1481 something starting with __ and the normal name is an alias. */
1482 #if defined (__stub_connect) || defined (__stub___connect)
1490 if { (eval echo configure
:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1492 eval "ac_cv_func_connect=yes"
1494 echo "configure: failed program was:" >&5
1495 cat conftest.
$ac_ext >&5
1497 eval "ac_cv_func_connect=no"
1502 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1506 echo "$ac_t""no" 1>&6
1509 if test $ac_cv_func_connect = no
; then
1510 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1511 echo "configure:1512: checking for connect in -lsocket" >&5
1512 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 ac_save_LIBS
="$LIBS"
1517 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1518 cat > conftest.
$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 /* Override any gcc2 internal prototype to avoid an error. */
1522 /* We use char because int might match the return type of a gcc2
1523 builtin and then its argument prototype would still apply. */
1530 if { (eval echo configure
:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1532 eval "ac_cv_lib_$ac_lib_var=yes"
1534 echo "configure: failed program was:" >&5
1535 cat conftest.
$ac_ext >&5
1537 eval "ac_cv_lib_$ac_lib_var=no"
1540 LIBS
="$ac_save_LIBS"
1543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1545 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1547 echo "$ac_t""no" 1>&6
1552 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1553 echo $ac_n "checking for remove""... $ac_c" 1>&6
1554 echo "configure:1555: checking for remove" >&5
1555 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 cat > conftest.
$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* System header to define __stub macros and hopefully few prototypes,
1562 which can conflict with char remove(); below. */
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1571 /* The GNU C library defines this for functions which it implements
1572 to always fail with ENOSYS. Some functions are actually named
1573 something starting with __ and the normal name is an alias. */
1574 #if defined (__stub_remove) || defined (__stub___remove)
1582 if { (eval echo configure
:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1584 eval "ac_cv_func_remove=yes"
1586 echo "configure: failed program was:" >&5
1587 cat conftest.
$ac_ext >&5
1589 eval "ac_cv_func_remove=no"
1594 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1595 echo "$ac_t""yes" 1>&6
1598 echo "$ac_t""no" 1>&6
1601 if test $ac_cv_func_remove = no
; then
1602 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1603 echo "configure:1604: checking for remove in -lposix" >&5
1604 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_save_LIBS
="$LIBS"
1609 LIBS
="-lposix $LIBS"
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 eval "ac_cv_lib_$ac_lib_var=no"
1632 LIBS
="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1639 echo "$ac_t""no" 1>&6
1644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1645 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1646 echo "configure:1647: checking for shmat" >&5
1647 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 /* System header to define __stub macros and hopefully few prototypes,
1654 which can conflict with char shmat(); below. */
1656 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1663 /* The GNU C library defines this for functions which it implements
1664 to always fail with ENOSYS. Some functions are actually named
1665 something starting with __ and the normal name is an alias. */
1666 #if defined (__stub_shmat) || defined (__stub___shmat)
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1676 eval "ac_cv_func_shmat=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 eval "ac_cv_func_shmat=no"
1686 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1690 echo "$ac_t""no" 1>&6
1693 if test $ac_cv_func_shmat = no
; then
1694 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1695 echo "configure:1696: checking for shmat in -lipc" >&5
1696 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 ac_save_LIBS
="$LIBS"
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 /* Override any gcc2 internal prototype to avoid an error. */
1706 /* We use char because int might match the return type of a gcc2
1707 builtin and then its argument prototype would still apply. */
1714 if { (eval echo configure
:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1716 eval "ac_cv_lib_$ac_lib_var=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 eval "ac_cv_lib_$ac_lib_var=no"
1724 LIBS
="$ac_save_LIBS"
1727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1731 echo "$ac_t""no" 1>&6
1737 # Check for libraries that X11R6 Xt/Xaw programs need.
1738 ac_save_LDFLAGS
="$LDFLAGS"
1739 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1740 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1741 # check for ICE first), but we must link in the order -lSM -lICE or
1742 # we get undefined symbols. So assume we have SM if we have ICE.
1743 # These have to be linked with before -lX11, unlike the other
1744 # libraries we check for below, so use a different variable.
1745 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1746 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1747 echo "configure:1748: checking for IceConnectionNumber in -lICE" >&5
1748 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 ac_save_LIBS
="$LIBS"
1753 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 /* Override any gcc2 internal prototype to avoid an error. */
1758 /* We use char because int might match the return type of a gcc2
1759 builtin and then its argument prototype would still apply. */
1760 char IceConnectionNumber();
1763 IceConnectionNumber()
1766 if { (eval echo configure
:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1768 eval "ac_cv_lib_$ac_lib_var=yes"
1770 echo "configure: failed program was:" >&5
1771 cat conftest.
$ac_ext >&5
1773 eval "ac_cv_lib_$ac_lib_var=no"
1776 LIBS
="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1783 echo "$ac_t""no" 1>&6
1786 LDFLAGS
="$ac_save_LDFLAGS"
1790 for ac_prog
in 'bison -y' byacc
1792 # Extract the first word of "$ac_prog", so it can be a program name with args.
1793 set dummy
$ac_prog; ac_word
=$2
1794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_word" >&5
1796 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 if test -n "$YACC"; then
1800 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1804 for ac_dir
in $ac_dummy; do
1805 test -z "$ac_dir" && ac_dir
=.
1806 if test -f $ac_dir/$ac_word; then
1807 ac_cv_prog_YACC
="$ac_prog"
1814 YACC
="$ac_cv_prog_YACC"
1815 if test -n "$YACC"; then
1816 echo "$ac_t""$YACC" 1>&6
1818 echo "$ac_t""no" 1>&6
1821 test -n "$YACC" && break
1823 test -n "$YACC" || YACC
="yacc"
1825 # Extract the first word of "flex", so it can be a program name with args.
1826 set dummy flex
; ac_word
=$2
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_word" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 if test -n "$LEX"; then
1833 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1837 for ac_dir
in $ac_dummy; do
1838 test -z "$ac_dir" && ac_dir
=.
1839 if test -f $ac_dir/$ac_word; then
1840 ac_cv_prog_LEX
="flex"
1845 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1848 LEX
="$ac_cv_prog_LEX"
1849 if test -n "$LEX"; then
1850 echo "$ac_t""$LEX" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$LEXLIB"
1861 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1862 echo "configure:1863: checking for yywrap in -l$ac_lib" >&5
1863 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 ac_save_LIBS
="$LIBS"
1868 LIBS
="-l$ac_lib $LIBS"
1869 cat > conftest.
$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* Override any gcc2 internal prototype to avoid an error. */
1873 /* We use char because int might match the return type of a gcc2
1874 builtin and then its argument prototype would still apply. */
1881 if { (eval echo configure
:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1883 eval "ac_cv_lib_$ac_lib_var=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1888 eval "ac_cv_lib_$ac_lib_var=no"
1891 LIBS
="$ac_save_LIBS"
1894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1898 echo "$ac_t""no" 1>&6
1903 # Extract the first word of "ranlib", so it can be a program name with args.
1904 set dummy ranlib
; ac_word
=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1907 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 if test -n "$RANLIB"; then
1911 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1915 for ac_dir
in $ac_dummy; do
1916 test -z "$ac_dir" && ac_dir
=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_prog_RANLIB
="ranlib"
1923 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1926 RANLIB
="$ac_cv_prog_RANLIB"
1927 if test -n "$RANLIB"; then
1928 echo "$ac_t""$RANLIB" 1>&6
1930 echo "$ac_t""no" 1>&6
1933 # Find a good install program. We prefer a C program (faster),
1934 # so one script is as good as another. But avoid the broken or
1935 # incompatible versions:
1936 # SysV /etc/install, /usr/sbin/install
1937 # SunOS /usr/etc/install
1938 # IRIX /sbin/install
1940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1943 # ./install, which can be erroneously created by make from ./install.sh.
1944 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1945 echo "configure:1946: checking for a BSD compatible install" >&5
1946 if test -z "$INSTALL"; then
1947 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1951 for ac_dir
in $PATH; do
1952 # Account for people who put trailing slashes in PATH elements.
1954 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1956 # OSF1 and SCO ODT 3.0 have their own names for install.
1957 # Don't use installbsd from OSF since it installs stuff as root
1959 for ac_prog
in ginstall scoinst
install; do
1960 if test -f $ac_dir/$ac_prog; then
1961 if test $ac_prog = install &&
1962 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1963 # AIX install. It has an incompatible calling convention.
1966 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1977 if test "${ac_cv_path_install+set}" = set; then
1978 INSTALL
="$ac_cv_path_install"
1980 # As a last resort, use the slow shell script. We don't cache a
1981 # path for INSTALL within a source directory, because that will
1982 # break other packages using the cache if that directory is
1983 # removed, or if the path is relative.
1984 INSTALL
="$ac_install_sh"
1987 echo "$ac_t""$INSTALL" 1>&6
1989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1990 # It thinks the first close brace ends the variable substitution.
1991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1995 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1997 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether ln -s works" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2003 if ln -s X conftestdata
2>/dev
/null
2006 ac_cv_prog_LN_S
="ln -s"
2011 LN_S
="$ac_cv_prog_LN_S"
2012 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2013 echo "$ac_t""yes" 1>&6
2015 echo "$ac_t""no" 1>&6
2018 # Extract the first word of "c2man", so it can be a program name with args.
2019 set dummy c2man
; ac_word
=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 if test -n "$C2MAN"; then
2026 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2030 for ac_dir
in $ac_dummy; do
2031 test -z "$ac_dir" && ac_dir
=.
2032 if test -f $ac_dir/$ac_word; then
2033 ac_cv_prog_C2MAN
="c2man"
2038 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
2041 C2MAN
="$ac_cv_prog_C2MAN"
2042 if test -n "$C2MAN"; then
2043 echo "$ac_t""$C2MAN" 1>&6
2045 echo "$ac_t""no" 1>&6
2048 # Extract the first word of "ldconfig", so it can be a program name with args.
2049 set dummy ldconfig
; ac_word
=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2052 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2057 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2060 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2063 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2064 ac_dummy
="/sbin:/usr/sbin:$PATH"
2065 for ac_dir
in $ac_dummy; do
2066 test -z "$ac_dir" && ac_dir
=.
2067 if test -f $ac_dir/$ac_word; then
2068 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2073 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2077 LDCONFIG
="$ac_cv_path_LDCONFIG"
2078 if test -n "$LDCONFIG"; then
2079 echo "$ac_t""$LDCONFIG" 1>&6
2081 echo "$ac_t""no" 1>&6
2085 for ac_prog
in lclint lint
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy
$ac_prog; 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_LINT'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 if test -n "$LINT"; then
2095 ac_cv_prog_LINT
="$LINT" # 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_LINT
="$ac_prog"
2109 LINT
="$ac_cv_prog_LINT"
2110 if test -n "$LINT"; then
2111 echo "$ac_t""$LINT" 1>&6
2113 echo "$ac_t""no" 1>&6
2116 test -n "$LINT" && break
2119 if test "$LINT" = "lint"
2121 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2127 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2128 echo "configure:2129: checking for sqrt in -lm" >&5
2129 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 ac_save_LIBS
="$LIBS"
2135 cat > conftest.
$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* Override any gcc2 internal prototype to avoid an error. */
2139 /* We use char because int might match the return type of a gcc2
2140 builtin and then its argument prototype would still apply. */
2147 if { (eval echo configure
:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2149 eval "ac_cv_lib_$ac_lib_var=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 eval "ac_cv_lib_$ac_lib_var=no"
2157 LIBS
="$ac_save_LIBS"
2160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2164 cat >> confdefs.h
<<EOF
2165 #define $ac_tr_lib 1
2171 echo "$ac_t""no" 1>&6
2174 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2175 echo "configure:2176: checking for i386_set_ldt in -li386" >&5
2176 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 ac_save_LIBS
="$LIBS"
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2188 char i386_set_ldt();
2194 if { (eval echo configure
:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2196 eval "ac_cv_lib_$ac_lib_var=yes"
2198 echo "configure: failed program was:" >&5
2199 cat conftest.
$ac_ext >&5
2201 eval "ac_cv_lib_$ac_lib_var=no"
2204 LIBS
="$ac_save_LIBS"
2207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2211 cat >> confdefs.h
<<EOF
2212 #define $ac_tr_lib 1
2218 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2222 echo "configure:2223: checking for _oss_ioctl in -lossaudio" >&5
2223 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 ac_save_LIBS
="$LIBS"
2228 LIBS
="-lossaudio $LIBS"
2229 cat > conftest.
$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2241 if { (eval echo configure
:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.
$ac_ext >&5
2248 eval "ac_cv_lib_$ac_lib_var=no"
2251 LIBS
="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2258 cat >> confdefs.h
<<EOF
2259 #define $ac_tr_lib 1
2262 LIBS
="-lossaudio $LIBS"
2265 echo "$ac_t""no" 1>&6
2268 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2269 echo "configure:2270: checking for iswalnum in -lw" >&5
2270 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 ac_save_LIBS
="$LIBS"
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2288 if { (eval echo configure
:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2290 eval "ac_cv_lib_$ac_lib_var=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.
$ac_ext >&5
2295 eval "ac_cv_lib_$ac_lib_var=no"
2298 LIBS
="$ac_save_LIBS"
2301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2305 cat >> confdefs.h
<<EOF
2306 #define $ac_tr_lib 1
2312 echo "$ac_t""no" 1>&6
2315 for ac_func
in gethostbyname
2317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_func" >&5
2319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.
$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* System header to define __stub macros and hopefully few prototypes,
2326 which can conflict with char $ac_func(); below. */
2328 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2346 if { (eval echo configure
:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2348 eval "ac_cv_func_$ac_func=yes"
2350 echo "configure: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2353 eval "ac_cv_func_$ac_func=no"
2358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2361 cat >> confdefs.h
<<EOF
2362 #define $ac_tr_func 1
2366 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2368 echo "configure:2369: checking for gethostbyname in -lnsl" >&5
2369 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 ac_save_LIBS
="$LIBS"
2374 LIBS
="-lnsl -lsocket $LIBS"
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char gethostbyname();
2387 if { (eval echo configure
:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2389 eval "ac_cv_lib_$ac_lib_var=yes"
2391 echo "configure: failed program was:" >&5
2392 cat conftest.
$ac_ext >&5
2394 eval "ac_cv_lib_$ac_lib_var=no"
2397 LIBS
="$ac_save_LIBS"
2400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2404 echo "$ac_t""no" 1>&6
2405 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2406 echo "configure:2407: checking for gethostbyname in -lsocket" >&5
2407 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 ac_save_LIBS
="$LIBS"
2412 LIBS
="-lsocket -lnsl $LIBS"
2413 cat > conftest.
$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Override any gcc2 internal prototype to avoid an error. */
2417 /* We use char because int might match the return type of a gcc2
2418 builtin and then its argument prototype would still apply. */
2419 char gethostbyname();
2425 if { (eval echo configure
:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2427 eval "ac_cv_lib_$ac_lib_var=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.
$ac_ext >&5
2432 eval "ac_cv_lib_$ac_lib_var=no"
2435 LIBS
="$ac_save_LIBS"
2438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2442 echo "$ac_t""no" 1>&6
2450 for ac_func
in connect
2452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_func" >&5
2454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 /* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char $ac_func(); below. */
2463 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2470 /* The GNU C library defines this for functions which it implements
2471 to always fail with ENOSYS. Some functions are actually named
2472 something starting with __ and the normal name is an alias. */
2473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2481 if { (eval echo configure
:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2483 eval "ac_cv_func_$ac_func=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.
$ac_ext >&5
2488 eval "ac_cv_func_$ac_func=no"
2493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2496 cat >> confdefs.h
<<EOF
2497 #define $ac_tr_func 1
2501 echo "$ac_t""no" 1>&6
2502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2503 echo "configure:2504: checking for connect in -lsocket" >&5
2504 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 ac_save_LIBS
="$LIBS"
2509 LIBS
="-lsocket $LIBS"
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2522 if { (eval echo configure
:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2524 eval "ac_cv_lib_$ac_lib_var=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2529 eval "ac_cv_lib_$ac_lib_var=no"
2532 LIBS
="$ac_save_LIBS"
2535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2539 cat >> confdefs.h
<<EOF
2540 #define $ac_tr_lib 1
2543 LIBS
="-lsocket $LIBS"
2546 echo "$ac_t""no" 1>&6
2552 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2553 echo "configure:2554: checking for setrunelocale in -lxpg4" >&5
2554 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 ac_save_LIBS
="$LIBS"
2560 cat > conftest.
$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2566 char setrunelocale();
2572 if { (eval echo configure
:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2574 eval "ac_cv_lib_$ac_lib_var=yes"
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2579 eval "ac_cv_lib_$ac_lib_var=no"
2582 LIBS
="$ac_save_LIBS"
2585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2589 cat >> confdefs.h
<<EOF
2590 #define $ac_tr_lib 1
2596 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2600 echo "configure:2601: checking for mmap in -lmmap" >&5
2601 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_save_LIBS
="$LIBS"
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2619 if { (eval echo configure
:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 eval "ac_cv_lib_$ac_lib_var=no"
2629 LIBS
="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2636 cat >> confdefs.h
<<EOF
2637 #define $ac_tr_lib 1
2643 echo "$ac_t""no" 1>&6
2646 for ac_func
in openpty
2648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_func" >&5
2650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 /* System header to define __stub macros and hopefully few prototypes,
2657 which can conflict with char $ac_func(); below. */
2659 /* Override any gcc2 internal prototype to avoid an error. */
2660 /* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2666 /* The GNU C library defines this for functions which it implements
2667 to always fail with ENOSYS. Some functions are actually named
2668 something starting with __ and the normal name is an alias. */
2669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2677 if { (eval echo configure
:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2679 eval "ac_cv_func_$ac_func=yes"
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2684 eval "ac_cv_func_$ac_func=no"
2689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2692 cat >> confdefs.h
<<EOF
2693 #define $ac_tr_func 1
2697 echo "$ac_t""no" 1>&6
2698 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2699 echo "configure:2700: checking for openpty in -lutil" >&5
2700 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 ac_save_LIBS
="$LIBS"
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 /* We use char because int might match the return type of a gcc2
2711 builtin and then its argument prototype would still apply. */
2718 if { (eval echo configure
:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2720 eval "ac_cv_lib_$ac_lib_var=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_lib_$ac_lib_var=no"
2728 LIBS
="$ac_save_LIBS"
2731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 cat >> confdefs.h
<<\EOF
2734 #define HAVE_OPENPTY 1
2740 echo "$ac_t""no" 1>&6
2747 for ac_hdr
in dlfcn.h
2749 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_hdr" >&5
2752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2760 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure
:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2765 eval "ac_cv_header_$ac_safe=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.
$ac_ext >&5
2771 eval "ac_cv_header_$ac_safe=no"
2775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2778 cat >> confdefs.h
<<EOF
2779 #define $ac_tr_hdr 1
2781 for ac_func
in dlopen
2783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_func" >&5
2785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.
$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char $ac_func(); below. */
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2812 if { (eval echo configure
:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2814 eval "ac_cv_func_$ac_func=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2819 eval "ac_cv_func_$ac_func=no"
2824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2827 cat >> confdefs.h
<<EOF
2828 #define $ac_tr_func 1
2830 cat >> confdefs.h
<<\EOF
2831 #define HAVE_DL_API 1
2835 echo "$ac_t""no" 1>&6
2836 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2837 echo "configure:2838: checking for dlopen in -ldl" >&5
2838 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 ac_save_LIBS
="$LIBS"
2844 cat > conftest.
$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 /* Override any gcc2 internal prototype to avoid an error. */
2848 /* We use char because int might match the return type of a gcc2
2849 builtin and then its argument prototype would still apply. */
2856 if { (eval echo configure
:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2858 eval "ac_cv_lib_$ac_lib_var=yes"
2860 echo "configure: failed program was:" >&5
2861 cat conftest.
$ac_ext >&5
2863 eval "ac_cv_lib_$ac_lib_var=no"
2866 LIBS
="$ac_save_LIBS"
2869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 cat >> confdefs.h
<<\EOF
2872 #define HAVE_DL_API 1
2878 echo "$ac_t""no" 1>&6
2887 echo "$ac_t""no" 1>&6
2892 if test "$have_x" = "yes"
2895 ac_save_CPPFLAGS
="$CPPFLAGS"
2896 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2898 for ac_hdr
in X11
/xpm.h
2900 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_hdr" >&5
2903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.
$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2911 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2912 { (eval echo configure
:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2913 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2914 if test -z "$ac_err"; then
2916 eval "ac_cv_header_$ac_safe=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 eval "ac_cv_header_$ac_safe=no"
2926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2929 cat >> confdefs.h
<<EOF
2930 #define $ac_tr_hdr 1
2934 echo "$ac_t""no" 1>&6
2938 if test "$ac_cv_header_X11_xpm_h" = "yes"
2940 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2941 echo "configure:2942: checking for XpmCreatePixmapFromData in -lXpm" >&5
2942 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 ac_save_LIBS
="$LIBS"
2947 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 /* Override any gcc2 internal prototype to avoid an error. */
2952 /* We use char because int might match the return type of a gcc2
2953 builtin and then its argument prototype would still apply. */
2954 char XpmCreatePixmapFromData();
2957 XpmCreatePixmapFromData()
2960 if { (eval echo configure
:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2962 eval "ac_cv_lib_$ac_lib_var=yes"
2964 echo "configure: failed program was:" >&5
2965 cat conftest.
$ac_ext >&5
2967 eval "ac_cv_lib_$ac_lib_var=no"
2970 LIBS
="$ac_save_LIBS"
2973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2974 echo "$ac_t""yes" 1>&6
2975 cat >> confdefs.h
<<\EOF
2976 #define HAVE_LIBXXPM 1
2978 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2980 echo "$ac_t""no" 1>&6
2984 echo "When compiling with X support, you need the Xpm library, or"
2985 echo "WINE will not work. This Xpm library is within the following RPM,"
2986 echo "which you need to install:"
2987 echo "Redhat : xpm, xpm-devel"
2988 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
2990 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
2992 echo "Or get the sources from ftp.x.org and all its mirror sites from "
2993 echo "the directory /contrib/libraries."
2999 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
3001 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_hdr" >&5
3004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3013 { (eval echo configure
:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3014 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3015 if test -z "$ac_err"; then
3017 eval "ac_cv_header_$ac_safe=yes"
3020 echo "configure: failed program was:" >&5
3021 cat conftest.
$ac_ext >&5
3023 eval "ac_cv_header_$ac_safe=no"
3027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3030 cat >> confdefs.h
<<EOF
3031 #define $ac_tr_hdr 1
3035 echo "$ac_t""no" 1>&6
3039 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3041 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3042 echo "configure:3043: checking for XShmQueryExtension in -lXext" >&5
3043 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 ac_save_LIBS
="$LIBS"
3048 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 /* Override any gcc2 internal prototype to avoid an error. */
3053 /* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3055 char XShmQueryExtension();
3058 XShmQueryExtension()
3061 if { (eval echo configure
:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3068 eval "ac_cv_lib_$ac_lib_var=no"
3071 LIBS
="$ac_save_LIBS"
3074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 cat >> confdefs.h
<<\EOF
3077 #define HAVE_LIBXXSHM 1
3081 echo "$ac_t""no" 1>&6
3085 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
3087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_hdr" >&5
3090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3099 { (eval echo configure
:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3100 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3101 if test -z "$ac_err"; then
3103 eval "ac_cv_header_$ac_safe=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 eval "ac_cv_header_$ac_safe=no"
3113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3116 cat >> confdefs.h
<<EOF
3117 #define $ac_tr_hdr 1
3121 echo "$ac_t""no" 1>&6
3125 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3127 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3128 echo "configure:3129: checking for XDGAQueryExtension in -lXxf86dga" >&5
3129 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 ac_save_LIBS
="$LIBS"
3134 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3141 char XDGAQueryExtension();
3144 XDGAQueryExtension()
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3149 eval "ac_cv_lib_$ac_lib_var=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "ac_cv_lib_$ac_lib_var=no"
3157 LIBS
="$ac_save_LIBS"
3160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 cat >> confdefs.h
<<\EOF
3163 #define HAVE_LIBXXF86DGA2 1
3165 cat >> confdefs.h
<<\EOF
3166 #define HAVE_LIBXXF86DGA 1
3168 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3170 echo "$ac_t""no" 1>&6
3173 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3175 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3176 echo "configure:3177: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3177 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 ac_save_LIBS
="$LIBS"
3182 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* Override any gcc2 internal prototype to avoid an error. */
3187 /* We use char because int might match the return type of a gcc2
3188 builtin and then its argument prototype would still apply. */
3189 char XF86DGAQueryExtension();
3192 XF86DGAQueryExtension()
3195 if { (eval echo configure
:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3197 eval "ac_cv_lib_$ac_lib_var=yes"
3199 echo "configure: failed program was:" >&5
3200 cat conftest.
$ac_ext >&5
3202 eval "ac_cv_lib_$ac_lib_var=no"
3205 LIBS
="$ac_save_LIBS"
3208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3209 echo "$ac_t""yes" 1>&6
3210 cat >> confdefs.h
<<\EOF
3211 #define HAVE_LIBXXF86DGA 1
3213 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3215 echo "$ac_t""no" 1>&6
3221 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
3223 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_hdr" >&5
3226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3235 { (eval echo configure
:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3237 if test -z "$ac_err"; then
3239 eval "ac_cv_header_$ac_safe=yes"
3242 echo "configure: failed program was:" >&5
3243 cat conftest.
$ac_ext >&5
3245 eval "ac_cv_header_$ac_safe=no"
3249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3252 cat >> confdefs.h
<<EOF
3253 #define $ac_tr_hdr 1
3257 echo "$ac_t""no" 1>&6
3261 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3263 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3264 echo "configure:3265: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3265 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 ac_save_LIBS
="$LIBS"
3270 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3271 cat > conftest.
$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3274 /* Override any gcc2 internal prototype to avoid an error. */
3275 /* We use char because int might match the return type of a gcc2
3276 builtin and then its argument prototype would still apply. */
3277 char XF86VidModeQueryExtension();
3280 XF86VidModeQueryExtension()
3283 if { (eval echo configure
:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3285 eval "ac_cv_lib_$ac_lib_var=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 eval "ac_cv_lib_$ac_lib_var=no"
3293 LIBS
="$ac_save_LIBS"
3296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3298 cat >> confdefs.h
<<\EOF
3299 #define HAVE_LIBXXF86VM 1
3301 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3303 echo "$ac_t""no" 1>&6
3308 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/osmesa.h
3310 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_hdr" >&5
3313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.
$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3322 { (eval echo configure
:3323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3323 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3324 if test -z "$ac_err"; then
3326 eval "ac_cv_header_$ac_safe=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 eval "ac_cv_header_$ac_safe=no"
3336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3339 cat >> confdefs.h
<<EOF
3340 #define $ac_tr_hdr 1
3344 echo "$ac_t""no" 1>&6
3348 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3350 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
3351 echo "configure:3352: checking "for up-to-date Mesa version
"" >&5
3352 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3360 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3363 if { (eval echo configure
:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365 wine_cv_mesa_version_OK
="yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 wine_cv_mesa_version_OK
="no"
3377 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3379 echo $ac_n "checking "for thread-safe Mesa version
"""... $ac_c" 1>&6
3380 echo "configure:3381: checking "for thread-safe Mesa version
"" >&5
3381 if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3391 pthread_getspecific();
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3396 wine_cv_mesa_version_threadsafe
="yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 wine_cv_mesa_version_threadsafe
="no"
3408 echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3410 if test "$wine_cv_mesa_version_OK" = "yes" -a "$wine_cv_mesa_version_threadsafe" = "no"
3412 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3413 echo "configure:3414: checking for glXCreateContext in -lGL" >&5
3414 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_save_LIBS
="$LIBS"
3419 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3426 char glXCreateContext();
3432 if { (eval echo configure
:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3434 eval "ac_cv_lib_$ac_lib_var=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 eval "ac_cv_lib_$ac_lib_var=no"
3442 LIBS
="$ac_save_LIBS"
3445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 cat >> confdefs.h
<<\EOF
3448 #define HAVE_LIBMESAGL 1
3450 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3452 echo "$ac_t""no" 1>&6
3455 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3457 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3458 echo "configure:3459: checking for glXCreateContext in -lMesaGL" >&5
3459 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 ac_save_LIBS
="$LIBS"
3464 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3465 cat > conftest.
$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char glXCreateContext();
3477 if { (eval echo configure
:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3479 eval "ac_cv_lib_$ac_lib_var=yes"
3481 echo "configure: failed program was:" >&5
3482 cat conftest.
$ac_ext >&5
3484 eval "ac_cv_lib_$ac_lib_var=no"
3487 LIBS
="$ac_save_LIBS"
3490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 cat >> confdefs.h
<<\EOF
3493 #define HAVE_LIBMESAGL 1
3495 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3497 echo "$ac_t""no" 1>&6
3502 echo $ac_n "checking "for the OpenGL Color Index extension
"""... $ac_c" 1>&6
3503 echo "configure:3504: checking "for the OpenGL Color Index extension
"" >&5
3504 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.
$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3512 GLenum test = GL_COLOR_INDEX8_EXT;
3515 if { (eval echo configure
:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 cat >> confdefs.h
<<\EOF
3518 #define HAVE_GL_COLOR_TABLE 1
3522 echo "configure: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3529 echo "$ac_t""$dummy" 1>&6
3530 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3532 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3533 echo "configure:3534: checking for glColorTableEXT in -lMesaGL" >&5
3534 ac_lib_var
=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_save_LIBS
="$LIBS"
3539 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3546 char glColorTableEXT();
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 eval "ac_cv_lib_$ac_lib_var=yes"
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 eval "ac_cv_lib_$ac_lib_var=no"
3562 LIBS
="$ac_save_LIBS"
3565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 cat >> confdefs.h
<<\EOF
3568 #define HAVE_GL_PALETTED_TEXTURE 1
3572 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3577 echo "configure:3578: checking for glColorTableEXT in -lGL" >&5
3578 ac_lib_var
=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 ac_save_LIBS
="$LIBS"
3583 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3584 cat > conftest.
$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3590 char glColorTableEXT();
3596 if { (eval echo configure
:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3598 eval "ac_cv_lib_$ac_lib_var=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "ac_cv_lib_$ac_lib_var=no"
3606 LIBS
="$ac_save_LIBS"
3609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 cat >> confdefs.h
<<\EOF
3612 #define HAVE_GL_PALETTED_TEXTURE 1
3616 echo "$ac_t""no" 1>&6
3623 CPPFLAGS
="$ac_save_CPPFLAGS"
3630 for ac_hdr
in ncurses.h
3632 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3634 echo "configure:3635: checking for $ac_hdr" >&5
3635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3644 { (eval echo configure
:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3646 if test -z "$ac_err"; then
3648 eval "ac_cv_header_$ac_safe=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.
$ac_ext >&5
3654 eval "ac_cv_header_$ac_safe=no"
3658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3661 cat >> confdefs.h
<<EOF
3662 #define $ac_tr_hdr 1
3666 echo "$ac_t""no" 1>&6
3670 if test "$ac_cv_header_ncurses_h" = "yes"
3672 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3673 echo "configure:3674: checking for waddch in -lncurses" >&5
3674 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS
="$LIBS"
3679 LIBS
="-lncurses $LIBS"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS
="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3709 cat >> confdefs.h
<<EOF
3710 #define $ac_tr_lib 1
3713 LIBS
="-lncurses $LIBS"
3716 echo "$ac_t""no" 1>&6
3720 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3722 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3723 echo "configure:3724: checking for resizeterm in -lncurses" >&5
3724 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_save_LIBS
="$LIBS"
3729 LIBS
="-lncurses $LIBS"
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3742 if { (eval echo configure
:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3749 eval "ac_cv_lib_$ac_lib_var=no"
3752 LIBS
="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 cat >> confdefs.h
<<\EOF
3758 #define HAVE_RESIZETERM 1
3762 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3766 echo "configure:3767: checking for getbkgd in -lncurses" >&5
3767 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS
="$LIBS"
3772 LIBS
="-lncurses $LIBS"
3773 cat > conftest.
$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* Override any gcc2 internal prototype to avoid an error. */
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3785 if { (eval echo configure
:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3787 eval "ac_cv_lib_$ac_lib_var=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 eval "ac_cv_lib_$ac_lib_var=no"
3795 LIBS
="$ac_save_LIBS"
3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 cat >> confdefs.h
<<\EOF
3801 #define HAVE_GETBKGD 1
3805 echo "$ac_t""no" 1>&6
3809 for ac_hdr
in curses.h
3811 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3813 echo "configure:3814: checking for $ac_hdr" >&5
3814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3823 { (eval echo configure
:3824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3825 if test -z "$ac_err"; then
3827 eval "ac_cv_header_$ac_safe=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 eval "ac_cv_header_$ac_safe=no"
3837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3840 cat >> confdefs.h
<<EOF
3841 #define $ac_tr_hdr 1
3845 echo "$ac_t""no" 1>&6
3849 if test "$ac_cv_header_curses_h" = "yes"
3851 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3852 echo "configure:3853: checking for waddch in -lcurses" >&5
3853 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_save_LIBS
="$LIBS"
3858 LIBS
="-lcurses $LIBS"
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3871 if { (eval echo configure
:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.
$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS
="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3886 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3888 cat >> confdefs.h
<<EOF
3889 #define $ac_tr_lib 1
3892 LIBS
="-lcurses $LIBS"
3895 echo "$ac_t""no" 1>&6
3898 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3899 echo "configure:3900: checking for resizeterm in -lcurses" >&5
3900 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 ac_save_LIBS
="$LIBS"
3905 LIBS
="-lcurses $LIBS"
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3918 if { (eval echo configure
:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.
$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS
="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 cat >> confdefs.h
<<\EOF
3934 #define HAVE_RESIZETERM 1
3938 echo "$ac_t""no" 1>&6
3941 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3942 echo "configure:3943: checking for getbkgd in -lcurses" >&5
3943 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 ac_save_LIBS
="$LIBS"
3948 LIBS
="-lcurses $LIBS"
3949 cat > conftest.
$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3961 if { (eval echo configure
:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3963 eval "ac_cv_lib_$ac_lib_var=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 eval "ac_cv_lib_$ac_lib_var=no"
3971 LIBS
="$ac_save_LIBS"
3974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 cat >> confdefs.h
<<\EOF
3977 #define HAVE_GETBKGD 1
3981 echo "$ac_t""no" 1>&6
3987 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3988 echo "configure:3989: checking "for GNU style IPX support
"" >&5
3989 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.
$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 #include <sys/socket.h>
3996 #include <netipx/ipx.h>
3998 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4001 if { (eval echo configure
:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 ac_cv_c_ipx_gnu
="yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 ac_cv_c_ipx_gnu
="no"
4014 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4015 if test "$ac_cv_c_ipx_gnu" = "yes"
4017 cat >> confdefs.h
<<\EOF
4018 #define HAVE_IPX_GNU 1
4023 if test "$ac_cv_c_ipx_gnu" = "no"
4025 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4026 echo "configure:4027: checking "for linux style IPX support
"" >&5
4027 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4030 cat > conftest.
$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 #include <sys/socket.h>
4034 #include <asm/types.h>
4035 #include <linux/ipx.h>
4037 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4040 if { (eval echo configure
:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_c_ipx_linux
="yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 ac_cv_c_ipx_linux
="no"
4053 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4054 if test "$ac_cv_c_ipx_linux" = "yes"
4056 cat >> confdefs.h
<<\EOF
4057 #define HAVE_IPX_LINUX 1
4063 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4065 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4067 echo "configure:4068: checking for $ac_hdr" >&5
4068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 cat > conftest.
$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4076 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4077 { (eval echo configure
:4078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4078 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4079 if test -z "$ac_err"; then
4081 eval "ac_cv_header_$ac_safe=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4087 eval "ac_cv_header_$ac_safe=no"
4091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4092 echo "$ac_t""yes" 1>&6
4093 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4094 cat >> confdefs.h
<<EOF
4095 #define $ac_tr_hdr 1
4099 echo "$ac_t""no" 1>&6
4104 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4105 echo "configure:4106: checking "for Open Sound System
"" >&5
4106 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.
$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4113 #if defined(HAVE_SYS_SOUNDCARD_H)
4114 #include <sys/soundcard.h>
4115 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4116 #include <machine/soundcard.h>
4117 #elif defined(HAVE_SOUNDCARD_H)
4118 #include <soundcard.h>
4124 /* check for one of the Open Sound System specific SNDCTL_ defines */
4125 #if !defined(SNDCTL_DSP_STEREO)
4126 #error No open sound system
4131 if { (eval echo configure
:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 ac_cv_c_opensoundsystem
="yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.
$ac_ext >&5
4138 ac_cv_c_opensoundsystem
="no"
4143 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4145 if test "$ac_cv_c_opensoundsystem" = "yes"
4147 cat >> confdefs.h
<<\EOF
4153 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4154 echo "configure:4155: checking "for Open Sound System
/MIDI interface
"" >&5
4155 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.
$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4162 #if defined(HAVE_SYS_SOUNDCARD_H)
4163 #include <sys/soundcard.h>
4164 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4165 #include <machine/soundcard.h>
4166 #elif defined(HAVE_SOUNDCARD_H)
4167 #include <soundcard.h>
4173 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4174 #if !defined(SNDCTL_SEQ_SYNC)
4175 #error No open sound system MIDI interface
4180 if { (eval echo configure
:4181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4182 ac_cv_c_opensoundsystem_midi
="yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.
$ac_ext >&5
4187 ac_cv_c_opensoundsystem_midi
="no"
4192 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4194 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4196 cat >> confdefs.h
<<\EOF
4197 #define HAVE_OSS_MIDI 1
4202 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4205 if test "x${GCC}" = "xyes"
4207 CFLAGS
="$CFLAGS -Wall"
4208 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4209 echo "configure:4210: checking "for gcc strength-reduce bug
"" >&5
4210 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 if test "$cross_compiling" = yes; then
4214 ac_cv_c_gcc_strength_bug
="yes"
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4221 static int Array[3];
4224 for(i=0; i<B; i++) Array[i] = i - 3;
4225 exit( Array[1] != -2 );
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4230 ac_cv_c_gcc_strength_bug
="no"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 ac_cv_c_gcc_strength_bug
="yes"
4242 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4243 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4245 CFLAGS
="$CFLAGS -fno-strength-reduce"
4250 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4251 echo "configure:4252: checking "whether external symbols need an underscore prefix
"" >&5
4252 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4256 LIBS
="conftest_asm.s $LIBS"
4257 cat > conftest_asm.s
<<EOF
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4267 if (ac_test) return 1
4270 if { (eval echo configure
:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4272 ac_cv_c_extern_prefix
="yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.
$ac_ext >&5
4277 ac_cv_c_extern_prefix
="no"
4283 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4284 if test "$ac_cv_c_extern_prefix" = "yes"
4286 cat >> confdefs.h
<<\EOF
4287 #define NEED_UNDERSCORE_PREFIX 1
4293 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4294 echo "configure:4295: checking "whether assembler accepts .string
"" >&5
4295 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4299 LIBS
="conftest_asm.s $LIBS"
4300 cat > conftest_asm.s
<<EOF
4303 cat > conftest.
$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4311 if { (eval echo configure
:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4313 ac_cv_c_asm_string
="yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.
$ac_ext >&5
4318 ac_cv_c_asm_string
="no"
4324 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4325 if test "$ac_cv_c_asm_string" = "yes"
4327 cat >> confdefs.h
<<\EOF
4328 #define HAVE_ASM_STRING 1
4335 if test "$LIBEXT" = "so"
4337 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4338 echo "configure:4339: checking "whether we can build a Linux dll
"" >&5
4339 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 saved_cflags
=$CFLAGS
4343 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4344 cat > conftest.
$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4352 if { (eval echo configure
:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4354 ac_cv_c_dll_linux
="yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.
$ac_ext >&5
4359 ac_cv_c_dll_linux
="no"
4362 CFLAGS
=$saved_cflags
4366 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4367 if test "$ac_cv_c_dll_linux" = "yes"
4369 LDSHARED
="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4371 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4372 echo "configure:4373: checking whether we can build a UnixWare (Solaris) dll" >&5
4373 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 saved_cflags
=$CFLAGS
4377 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4378 cat > conftest.
$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4386 if { (eval echo configure
:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4388 ac_cv_c_dll_unixware
="yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.
$ac_ext >&5
4393 ac_cv_c_dll_unixware
="no"
4396 CFLAGS
=$saved_cflags
4400 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4401 if test "$ac_cv_c_dll_unixware" = "yes"
4403 LDSHARED
="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4405 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4406 echo "configure:4407: checking "whether we can build a NetBSD dll
"" >&5
4407 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 saved_cflags
=$CFLAGS
4411 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4412 cat > conftest.
$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4420 if { (eval echo configure
:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4422 ac_cv_c_dll_netbsd
="yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4427 ac_cv_c_dll_netbsd
="no"
4430 CFLAGS
=$saved_cflags
4434 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4435 if test "$ac_cv_c_dll_netbsd" = "yes"
4437 LDSHARED
="ld -Bshareable -Bforcearchive"
4441 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4449 DLL_LINK
="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4451 if test "$LIBEXT" = "so"; then
4455 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4456 echo "configure:4457: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4457 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 saved_cflags
=$CFLAGS
4461 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4470 if { (eval echo configure
:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4472 ac_cv_c_whole_archive
="yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.
$ac_ext >&5
4477 ac_cv_c_whole_archive
="no"
4480 CFLAGS
=$saved_cflags
4484 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4485 if test "$ac_cv_c_whole_archive" = "yes"
4487 DLL_LINK
="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4489 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4490 echo "configure:4491: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4491 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 saved_cflags
=$CFLAGS
4495 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4496 cat > conftest.
$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure
:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4506 ac_cv_c_allextract
="yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 ac_cv_c_allextract
="no"
4514 CFLAGS
=$saved_cflags
4518 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4519 if test "$ac_cv_c_allextract" = "yes"
4521 DLL_LINK
="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4533 wine_cv_libc_reentrant
=no
4534 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4535 echo "configure:4536: checking "for reentrant libc
: __errno_location
"" >&5
4536 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 if test "$cross_compiling" = yes; then
4540 wine_cv_libc_r__errno_location
=yes
4542 cat > conftest.
$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4547 int *__errno_location(){return &myerrno;}
4548 main(){connect(0,buf,255); exit(!myerrno);}
4550 if { (eval echo configure
:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4552 wine_cv_libc_r__errno_location
=yes
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 wine_cv_libc_r__errno_location
=no
4565 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4566 if test "$wine_cv_libc_r__errno_location" = "yes"
4568 cat >> confdefs.h
<<\EOF
4569 #define HAVE__ERRNO_LOCATION 1
4572 wine_cv_libc_reentrant
=__errno_location
4574 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4575 echo "configure:4576: checking "for reentrant libc
: __error
"" >&5
4576 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 if test "$cross_compiling" = yes; then
4580 wine_cv_libc_r__error
=yes
4582 cat > conftest.
$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4587 int *__error(){return &myerrno;}
4588 main(){connect(0,buf,255); exit(!myerrno);}
4590 if { (eval echo configure
:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4592 wine_cv_libc_r__error
=yes
4594 echo "configure: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4597 wine_cv_libc_r__error
=no
4605 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4606 if test "$wine_cv_libc_r__error" = "yes"
4608 cat >> confdefs.h
<<\EOF
4609 #define HAVE__ERROR 1
4612 wine_cv_libc_reentrant
=__error
4614 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4615 echo "configure:4616: checking "for reentrant libc
: ___errno
"" >&5
4616 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test "$cross_compiling" = yes; then
4620 wine_cv_libc_r___errno
=yes
4622 cat > conftest.
$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4627 int *___errno(){return &myerrno;}
4628 main(){connect(0,buf,255); exit(!myerrno);}
4630 if { (eval echo configure
:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4632 wine_cv_libc_r___errno
=yes
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 wine_cv_libc_r___errno
=no
4645 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4646 if test "$wine_cv_libc_r___errno" = "yes"
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE___ERRNO 1
4652 wine_cv_libc_reentrant
=___errno
4654 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4655 echo "configure:4656: checking "for reentrant libc
: __thr_errno
"" >&5
4656 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 if test "$cross_compiling" = yes; then
4660 wine_cv_libc_r__thr_errno
=yes
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 int *__thr_errno(){return &myerrno;}
4668 main(){connect(0,buf,255); exit(!myerrno);}
4670 if { (eval echo configure
:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4672 wine_cv_libc_r__thr_errno
=yes
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 wine_cv_libc_r__thr_errno
=no
4685 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4686 if test "$wine_cv_libc_r__thr_errno" = "yes"
4688 cat >> confdefs.h
<<\EOF
4689 #define HAVE__THR_ERRNO 1
4692 wine_cv_libc_reentrant
=__thr_errno
4694 if test "$wine_cv_libc_reentrant" = "no"
4696 cat >> confdefs.h
<<\EOF
4697 #define NO_REENTRANT_LIBC 1
4703 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4705 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4706 echo "configure:4707: checking "for reentrant X libraries
"" >&5
4707 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 if test "x$with_reentrant_x" = "xno"
4712 wine_cv_x_reentrant
=no
4715 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4716 if test -r $dir/libX11.so
; then
4717 libX11_check
="-D $dir/libX11.so"
4720 if test -r $dir/libX11.a
; then
4721 libX11_check
="$dir/libX11.a"
4725 if test "$libX11_check" != "none"; then
4726 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4728 wine_cv_x_reentrant
=yes
4730 wine_cv_x_reentrant
=no
4733 wine_cv_x_reentrant
=unknown
4738 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4740 wine_cv_x_reentrant
=no
4742 if test "$wine_cv_x_reentrant" = "no"
4744 cat >> confdefs.h
<<\EOF
4745 #define NO_REENTRANT_X11 1
4751 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4752 echo "configure:4753: checking whether byte ordering is bigendian" >&5
4753 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 ac_cv_c_bigendian
=unknown
4757 # See if sys/param.h defines the BYTE_ORDER macro.
4758 cat > conftest.
$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 #include <sys/types.h>
4762 #include <sys/param.h>
4765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4770 if { (eval echo configure
:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772 # It does; now see whether it defined to BIG_ENDIAN or not.
4773 cat > conftest.
$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776 #include <sys/types.h>
4777 #include <sys/param.h>
4780 #if BYTE_ORDER != BIG_ENDIAN
4785 if { (eval echo configure
:4786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4787 ac_cv_c_bigendian
=yes
4789 echo "configure: failed program was:" >&5
4790 cat conftest.
$ac_ext >&5
4792 ac_cv_c_bigendian
=no
4796 echo "configure: failed program was:" >&5
4797 cat conftest.
$ac_ext >&5
4800 if test $ac_cv_c_bigendian = unknown
; then
4801 if test "$cross_compiling" = yes; then
4802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4804 cat > conftest.
$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4808 /* Are we little or big endian? From Harbison&Steele. */
4812 char c[sizeof (long)];
4815 exit (u.c[sizeof (long) - 1] == 1);
4818 if { (eval echo configure
:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4820 ac_cv_c_bigendian
=no
4822 echo "configure: failed program was:" >&5
4823 cat conftest.
$ac_ext >&5
4825 ac_cv_c_bigendian
=yes
4833 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4834 if test $ac_cv_c_bigendian = yes; then
4835 cat >> confdefs.h
<<\EOF
4836 #define WORDS_BIGENDIAN 1
4843 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4844 # for constant arguments. Useless!
4845 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4846 echo "configure:4847: checking for working alloca.h" >&5
4847 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 cat > conftest.
$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4855 void *p = alloca(2 * sizeof(int));
4858 if { (eval echo configure
:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4860 ac_cv_header_alloca_h
=yes
4862 echo "configure: failed program was:" >&5
4863 cat conftest.
$ac_ext >&5
4865 ac_cv_header_alloca_h
=no
4870 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4871 if test $ac_cv_header_alloca_h = yes; then
4872 cat >> confdefs.h
<<\EOF
4873 #define HAVE_ALLOCA_H 1
4878 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4879 echo "configure:4880: checking for alloca" >&5
4880 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 cat > conftest.
$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4888 # define alloca __builtin_alloca
4891 # include <malloc.h>
4892 # define alloca _alloca
4895 # include <alloca.h>
4900 # ifndef alloca /* predefined by HP cc +Olibcalls */
4909 char *p = (char *) alloca(1);
4912 if { (eval echo configure
:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4914 ac_cv_func_alloca_works
=yes
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 ac_cv_func_alloca_works
=no
4924 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4925 if test $ac_cv_func_alloca_works = yes; then
4926 cat >> confdefs.h
<<\EOF
4927 #define HAVE_ALLOCA 1
4932 if test $ac_cv_func_alloca_works = no
; then
4933 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4934 # that cause trouble. Some versions do not even contain alloca or
4935 # contain a buggy version. If you still want to use their alloca,
4936 # use ar to extract alloca.o from them instead of compiling alloca.c.
4937 ALLOCA
=alloca.
${ac_objext}
4938 cat >> confdefs.h
<<\EOF
4943 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4944 echo "configure:4945: checking whether alloca needs Cray hooks" >&5
4945 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 #if defined(CRAY) && ! defined(CRAY2)
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 egrep "webecray" >/dev
/null
2>&1; then
4970 echo "$ac_t""$ac_cv_os_cray" 1>&6
4971 if test $ac_cv_os_cray = yes; then
4972 for ac_func
in _getb67 GETB67 getb67
; do
4973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.
$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4991 /* The GNU C library defines this for functions which it implements
4992 to always fail with ENOSYS. Some functions are actually named
4993 something starting with __ and the normal name is an alias. */
4994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 if { (eval echo configure
:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5004 eval "ac_cv_func_$ac_func=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.
$ac_ext >&5
5009 eval "ac_cv_func_$ac_func=no"
5014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 cat >> confdefs.h
<<EOF
5017 #define CRAY_STACKSEG_END $ac_func
5022 echo "$ac_t""no" 1>&6
5028 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5029 echo "configure:5030: checking stack direction for C alloca" >&5
5030 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 if test "$cross_compiling" = yes; then
5034 ac_cv_c_stack_direction
=0
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 find_stack_direction ()
5041 static char *addr = 0;
5046 return find_stack_direction ();
5049 return (&dummy > addr) ? 1 : -1;
5053 exit (find_stack_direction() < 0);
5056 if { (eval echo configure
:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5058 ac_cv_c_stack_direction
=1
5060 echo "configure: failed program was:" >&5
5061 cat conftest.
$ac_ext >&5
5063 ac_cv_c_stack_direction
=-1
5070 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5071 cat >> confdefs.h
<<EOF
5072 #define STACK_DIRECTION $ac_cv_c_stack_direction
5106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5107 echo "configure:5108: checking for $ac_func" >&5
5108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5109 echo $ac_n "(cached) $ac_c" 1>&6
5111 cat > conftest.
$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5114 /* System header to define __stub macros and hopefully few prototypes,
5115 which can conflict with char $ac_func(); below. */
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5124 /* The GNU C library defines this for functions which it implements
5125 to always fail with ENOSYS. Some functions are actually named
5126 something starting with __ and the normal name is an alias. */
5127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5135 if { (eval echo configure
:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5137 eval "ac_cv_func_$ac_func=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.
$ac_ext >&5
5142 eval "ac_cv_func_$ac_func=no"
5147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5148 echo "$ac_t""yes" 1>&6
5149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5150 cat >> confdefs.h
<<EOF
5151 #define $ac_tr_func 1
5155 echo "$ac_t""no" 1>&6
5212 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_hdr" >&5
5215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5223 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5224 { (eval echo configure
:5225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5225 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5226 if test -z "$ac_err"; then
5228 eval "ac_cv_header_$ac_safe=yes"
5231 echo "configure: failed program was:" >&5
5232 cat conftest.
$ac_ext >&5
5234 eval "ac_cv_header_$ac_safe=no"
5238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5240 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5241 cat >> confdefs.h
<<EOF
5242 #define $ac_tr_hdr 1
5246 echo "$ac_t""no" 1>&6
5250 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5251 echo "configure:5252: checking whether stat file-mode macros are broken" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 cat > conftest.
$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5258 #include <sys/types.h>
5259 #include <sys/stat.h>
5261 #if defined(S_ISBLK) && defined(S_IFDIR)
5262 # if S_ISBLK (S_IFDIR)
5267 #if defined(S_ISBLK) && defined(S_IFCHR)
5268 # if S_ISBLK (S_IFCHR)
5273 #if defined(S_ISLNK) && defined(S_IFREG)
5274 # if S_ISLNK (S_IFREG)
5279 #if defined(S_ISSOCK) && defined(S_IFREG)
5280 # if S_ISSOCK (S_IFREG)
5286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5287 egrep "You lose" >/dev
/null
2>&1; then
5289 ac_cv_header_stat_broken
=yes
5292 ac_cv_header_stat_broken
=no
5298 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5299 if test $ac_cv_header_stat_broken = yes; then
5300 cat >> confdefs.h
<<\EOF
5301 #define STAT_MACROS_BROKEN 1
5308 echo $ac_n "checking for working const""... $ac_c" 1>&6
5309 echo "configure:5310: checking for working const" >&5
5310 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.
$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5319 /* Ultrix mips cc rejects this. */
5320 typedef int charset[2]; const charset x = {0,0};
5321 /* SunOS 4.1.1 cc rejects this. */
5322 char const *const *ccp;
5324 /* NEC SVR4.0.2 mips cc rejects this. */
5325 struct point {int x, y;};
5326 static struct point const zero = {0,0};
5327 /* AIX XL C 1.02.0.0 rejects this.
5328 It does not let you subtract one const X* pointer from another in an arm
5329 of an if-expression whose if-part is not a constant expression */
5330 const char *g = "string";
5331 ccp = &g + (g ? g-g : 0);
5332 /* HPUX 7.0 cc rejects these. */
5335 ccp = (char const *const *) p;
5336 { /* SCO 3.2v4 cc rejects this. */
5338 char const *s = 0 ? (char *) 0 : (char const *) 0;
5342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5344 const int *foo = &x[0];
5347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5348 typedef const int *iptr;
5352 { /* AIX XL C 1.02.0.0 rejects this saying
5353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5354 struct s { int j; const int *ap[3]; };
5355 struct s *b; b->j = 5;
5357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5363 if { (eval echo configure
:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 echo "configure: failed program was:" >&5
5368 cat conftest.
$ac_ext >&5
5375 echo "$ac_t""$ac_cv_c_const" 1>&6
5376 if test $ac_cv_c_const = no
; then
5377 cat >> confdefs.h
<<\EOF
5383 echo $ac_n "checking for inline""... $ac_c" 1>&6
5384 echo "configure:5385: checking for inline" >&5
5385 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5389 for ac_kw
in inline __inline__ __inline
; do
5390 cat > conftest.
$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5395 } int $ac_kw foo() {
5398 if { (eval echo configure
:5399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5400 ac_cv_c_inline
=$ac_kw; break
5402 echo "configure: failed program was:" >&5
5403 cat conftest.
$ac_ext >&5
5410 echo "$ac_t""$ac_cv_c_inline" 1>&6
5411 case "$ac_cv_c_inline" in
5413 no
) cat >> confdefs.h
<<\EOF
5417 *) cat >> confdefs.h
<<EOF
5418 #define inline $ac_cv_c_inline
5423 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5424 echo "configure:5425: checking for ANSI C header files" >&5
5425 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.
$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5436 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5437 { (eval echo configure
:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5438 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5439 if test -z "$ac_err"; then
5441 ac_cv_header_stdc
=yes
5444 echo "configure: failed program was:" >&5
5445 cat conftest.
$ac_ext >&5
5447 ac_cv_header_stdc
=no
5451 if test $ac_cv_header_stdc = yes; then
5452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5453 cat > conftest.
$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5459 egrep "memchr" >/dev
/null
2>&1; then
5463 ac_cv_header_stdc
=no
5469 if test $ac_cv_header_stdc = yes; then
5470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5471 cat > conftest.
$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477 egrep "free" >/dev
/null
2>&1; then
5481 ac_cv_header_stdc
=no
5487 if test $ac_cv_header_stdc = yes; then
5488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5489 if test "$cross_compiling" = yes; then
5492 cat > conftest.
$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5496 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5497 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5499 int main () { int i; for (i = 0; i < 256; i++)
5500 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5504 if { (eval echo configure
:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5508 echo "configure: failed program was:" >&5
5509 cat conftest.
$ac_ext >&5
5511 ac_cv_header_stdc
=no
5519 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5520 if test $ac_cv_header_stdc = yes; then
5521 cat >> confdefs.h
<<\EOF
5522 #define STDC_HEADERS 1
5527 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5528 echo "configure:5529: checking for size_t" >&5
5529 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 cat > conftest.
$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 #include <sys/types.h>
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5544 ac_cv_type_size_t
=yes
5547 ac_cv_type_size_t
=no
5552 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5553 if test $ac_cv_type_size_t = no
; then
5554 cat >> confdefs.h
<<\EOF
5555 #define size_t unsigned
5560 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5561 echo "configure:5562: checking size of long long" >&5
5562 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 if test "$cross_compiling" = yes; then
5566 ac_cv_sizeof_long_long
=0
5568 cat > conftest.
$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5574 FILE *f=fopen("conftestval", "w");
5576 fprintf(f, "%d\n", sizeof(long long));
5580 if { (eval echo configure
:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5582 ac_cv_sizeof_long_long
=`cat conftestval`
5584 echo "configure: failed program was:" >&5
5585 cat conftest.
$ac_ext >&5
5587 ac_cv_sizeof_long_long
=0
5593 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5594 cat >> confdefs.h
<<EOF
5595 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5600 if test "$ac_cv_header_linux_joystick_h" = "yes"
5602 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5603 echo "configure:5604: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5604 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.
$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5611 #include <sys/ioctl.h>
5612 #include <linux/joystick.h>
5614 struct js_event blub;
5615 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5616 #error "no 2.2 header"
5623 if { (eval echo configure
:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5625 wine_cv_linux_joystick_22_api
=yes
5627 echo "configure: failed program was:" >&5
5628 cat conftest.
$ac_ext >&5
5630 wine_cv_linux_joystick_22_api
=no
5636 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5637 if test "$wine_cv_linux_joystick_22_api"
5639 cat >> confdefs.h
<<\EOF
5640 #define HAVE_LINUX_22_JOYSTICK_API 1
5647 if test "$ac_cv_header_sys_vfs_h" = "yes"
5649 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5650 echo "configure:5651: checking "whether sys
/vfs.h defines statfs
"" >&5
5651 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5658 #include <sys/types.h>
5659 #ifdef HAVE_SYS_PARAM_H
5660 # include <sys/param.h>
5662 #include <sys/vfs.h>
5668 memset(&stfs,0,sizeof(stfs));
5672 if { (eval echo configure
:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5674 wine_cv_sys_vfs_has_statfs
=yes
5676 echo "configure: failed program was:" >&5
5677 cat conftest.
$ac_ext >&5
5679 wine_cv_sys_vfs_has_statfs
=no
5686 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5687 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5689 cat >> confdefs.h
<<\EOF
5690 #define STATFS_DEFINED_BY_SYS_VFS 1
5696 if test "$ac_cv_header_sys_statfs_h" = "yes"
5698 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
5699 echo "configure:5700: checking "whether sys
/statfs.h defines statfs
"" >&5
5700 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.
$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5707 #include <sys/types.h>
5708 #ifdef HAVE_SYS_PARAM_H
5709 # include <sys/param.h>
5711 #include <sys/statfs.h>
5719 if { (eval echo configure
:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 wine_cv_sys_statfs_has_statfs
=yes
5723 echo "configure: failed program was:" >&5
5724 cat conftest.
$ac_ext >&5
5726 wine_cv_sys_statfs_has_statfs
=no
5733 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5734 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5736 cat >> confdefs.h
<<\EOF
5737 #define STATFS_DEFINED_BY_SYS_STATFS 1
5743 if test "$ac_cv_header_sys_mount_h" = "yes"
5745 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
5746 echo "configure:5747: checking "whether sys
/mount.h defines statfs
"" >&5
5747 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5754 #include <sys/types.h>
5755 #ifdef HAVE_SYS_PARAM_H
5756 # include <sys/param.h>
5758 #include <sys/mount.h>
5766 if { (eval echo configure
:5767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5768 wine_cv_sys_mount_has_statfs
=yes
5770 echo "configure: failed program was:" >&5
5771 cat conftest.
$ac_ext >&5
5773 wine_cv_sys_mount_has_statfs
=no
5780 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5781 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5783 cat >> confdefs.h
<<\EOF
5784 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5791 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5792 echo "configure:5793: checking "for statfs.f_bfree
"" >&5
5793 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5794 echo $ac_n "(cached) $ac_c" 1>&6
5796 if test "x$statfs_bfree" = "xno"
5798 wine_cv_statfs_bfree
=no
5800 cat > conftest.
$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5804 #include <sys/types.h>
5805 #ifdef HAVE_SYS_PARAM_H
5806 # include <sys/param.h>
5808 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5809 # include <sys/mount.h>
5811 # ifdef STATFS_DEFINED_BY_SYS_VFS
5812 # include <sys/vfs.h>
5814 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5815 # include <sys/statfs.h>
5828 if { (eval echo configure
:5829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5830 wine_cv_statfs_bfree
=yes
5832 echo "configure: failed program was:" >&5
5833 cat conftest.
$ac_ext >&5
5835 wine_cv_statfs_bfree
=no
5842 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5843 if test "$wine_cv_statfs_bfree" = "yes"
5845 cat >> confdefs.h
<<\EOF
5846 #define STATFS_HAS_BFREE 1
5851 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5852 echo "configure:5853: checking "for statfs.f_bavail
"" >&5
5853 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 if test "x$statfs_bavail" = "xno"
5858 wine_cv_statfs_bavail
=no
5860 cat > conftest.
$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5864 #include <sys/types.h>
5865 #ifdef HAVE_SYS_PARAM_H
5866 # include <sys/param.h>
5868 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5869 # include <sys/mount.h>
5871 # ifdef STATFS_DEFINED_BY_SYS_VFS
5872 # include <sys/vfs.h>
5874 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5875 # include <sys/statfs.h>
5888 if { (eval echo configure
:5889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5890 wine_cv_statfs_bavail
=yes
5892 echo "configure: failed program was:" >&5
5893 cat conftest.
$ac_ext >&5
5895 wine_cv_statfs_bavail
=no
5902 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5903 if test "$wine_cv_statfs_bavail" = "yes"
5905 cat >> confdefs.h
<<\EOF
5906 #define STATFS_HAS_BAVAIL 1
5912 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
5913 echo "configure:5914: checking "for working sigaltstack
"" >&5
5914 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 if test "$cross_compiling" = yes; then
5918 ac_cv_c_working_sigaltstack
="no"
5921 cat > conftest.
$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5926 #include <time.h> /* <sys/time.h> ? bad magic without end */
5927 #include <sys/types.h>
5928 #include <sys/signal.h>
5929 #ifdef HAVE_SYS_PARAM_H
5930 # include <sys/param.h>
5932 #ifdef HAVE_SYSCALL_H
5933 # include <syscall.h>
5935 # ifdef HAVE_SYS_SYSCALL_H
5936 # include <sys/syscall.h>
5940 unsigned char *xaltstack;
5943 main(int argc,char **argv) {
5944 struct sigaltstack ss;
5946 xaltstack = malloc(16384);
5947 ss.ss_sp = xaltstack;
5950 if (sigaltstack(&ss, NULL) < 0) {
5951 /* this catches the glibc case */
5952 perror("sigaltstack");
5953 return (1); /* aka exit(1) aka fail */
5955 /* assume it works. */
5960 if { (eval echo configure
:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5962 ac_cv_c_working_sigaltstack
="yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.
$ac_ext >&5
5967 ac_cv_c_working_sigaltstack
="no"
5974 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5976 if test "$ac_cv_c_working_sigaltstack" = "yes"
5978 cat >> confdefs.h
<<\EOF
5979 #define HAVE_WORKING_SIGALTSTACK 1
5986 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5987 echo "configure:5988: checking "for msg_accrights
in struct msghdr
"" >&5
5988 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.
$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 #include <sys/types.h>
5995 #include <sys/socket.h>
5997 struct msghdr hdr; hdr.msg_accrights=0
6000 if { (eval echo configure
:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6002 ac_cv_c_msg_accrights
="yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.
$ac_ext >&5
6007 ac_cv_c_msg_accrights
="no"
6012 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6013 if test "$ac_cv_c_msg_accrights" = "yes"
6015 cat >> confdefs.h
<<\EOF
6016 #define HAVE_MSGHDR_ACCRIGHTS 1
6022 echo $ac_n "checking "for sun_len
in struct sockaddr_un
"""... $ac_c" 1>&6
6023 echo "configure:6024: checking "for sun_len
in struct sockaddr_un
"" >&5
6024 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.
$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #include <sys/types.h>
6031 #include <sys/socket.h>
6034 static struct sockaddr_un addr; addr.sun_len = 1
6037 if { (eval echo configure
:6038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6039 ac_cv_c_sun_len
="yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.
$ac_ext >&5
6044 ac_cv_c_sun_len
="no"
6049 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6050 if test "$ac_cv_c_sun_len" = "yes"
6052 cat >> confdefs.h
<<\EOF
6053 #define HAVE_SOCKADDR_SUN_LEN 1
6059 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6060 echo "configure:6061: checking "whether we need to define __i386__
"" >&5
6061 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6064 cat > conftest.
$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 egrep "yes" >/dev
/null
2>&1; then
6074 ac_cv_cpp_def_i386
="yes"
6077 ac_cv_cpp_def_i386
="no"
6083 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6084 if test "$ac_cv_cpp_def_i386" = "yes"
6086 CFLAGS
="$CFLAGS -D__i386__"
6087 LINTFLAGS
="$LINTFLAGS -D__i386__"
6091 if test "$GCC" = "yes"
6093 GCC_NO_BUILTIN
="-fno-builtin"
6098 MAKE_RULES
=Make.rules
6101 MAKE_DLL_RULES
=dlls
/Makedll.rules
6105 cat > confcache
<<\EOF
6106 # This file is a shell script that caches the results of configure
6107 # tests run on this system so they can be shared between configure
6108 # scripts and configure runs. It is not useful on other systems.
6109 # If it contains results you don't want to keep, you may remove or edit it.
6111 # By default, configure uses ./config.cache as the cache file,
6112 # creating it if it does not exist already. You can give configure
6113 # the --cache-file=FILE option to use a different cache file; that is
6114 # what configure does when it calls configure scripts in
6115 # subdirectories, so they share the cache.
6116 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6117 # config.status only pays attention to the cache file if you give it the
6118 # --recheck option to rerun configure.
6121 # The following way of writing the cache mishandles newlines in values,
6122 # but we know of no workaround that is simple, portable, and efficient.
6123 # So, don't put newlines in cache variables' values.
6124 # Ultrix sh set writes to stderr and can't be redirected directly,
6125 # and sets the high bit in the cache file unless we assign to the vars.
6127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6129 # `set' does not quote correctly, so add quotes (double-quote substitution
6130 # turns \\\\ into \\, and sed turns \\ into \).
6132 -e "s/'/'\\\\''/g" \
6133 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6136 # `set' quotes correctly as required by POSIX, so do not add quotes.
6137 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6140 if cmp -s $cache_file confcache
; then
6143 if test -w $cache_file; then
6144 echo "updating cache $cache_file"
6145 cat confcache
> $cache_file
6147 echo "not updating unwritable cache $cache_file"
6152 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6154 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6155 # Let make expand exec_prefix.
6156 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6158 # Any assignment to VPATH causes Sun make to only execute
6159 # the first set of double-colon rules, so remove it if not needed.
6160 # If there is a colon in the path, we need to keep it.
6161 if test "x$srcdir" = x.
; then
6162 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6165 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6167 DEFS
=-DHAVE_CONFIG_H
6169 # Without the "./", some shells look in PATH for config.status.
6170 : ${CONFIG_STATUS=./config.status}
6172 echo creating
$CONFIG_STATUS
6173 rm -f $CONFIG_STATUS
6174 cat > $CONFIG_STATUS <<EOF
6176 # Generated automatically by configure.
6177 # Run this file to recreate the current configuration.
6178 # This directory was configured as follows,
6179 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6181 # $0 $ac_configure_args
6183 # Compiler output produced by configure, useful for debugging
6184 # configure, is in ./config.log if it exists.
6186 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6189 case "\$ac_option" in
6190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6191 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6192 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6193 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6194 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6196 -help | --help | --hel | --he | --h)
6197 echo "\$ac_cs_usage"; exit 0 ;;
6198 *) echo "\$ac_cs_usage"; exit 1 ;;
6202 ac_given_srcdir=$srcdir
6203 ac_given_INSTALL="$INSTALL"
6205 trap 'rm -fr `echo "
6213 dlls/advapi32/Makefile
6214 dlls/avifil32/Makefile
6215 dlls/comctl32/Makefile
6216 dlls/commdlg/Makefile
6217 dlls/crtdll/Makefile
6218 dlls/dciman32/Makefile
6220 dlls/dinput/Makefile
6221 dlls/display/Makefile
6222 dlls/dplayx/Makefile
6223 dlls/dsound/Makefile
6226 dlls/imagehlp/Makefile
6228 dlls/lzexpand/Makefile
6232 dlls/msacm32/Makefile
6233 dlls/msnet32/Makefile
6234 dlls/msvideo/Makefile
6236 dlls/odbc32/Makefile
6238 dlls/oleaut32/Makefile
6239 dlls/olecli/Makefile
6240 dlls/oledlg/Makefile
6241 dlls/olepro32/Makefile
6242 dlls/olesvr/Makefile
6244 dlls/rasapi32/Makefile
6245 dlls/setupx/Makefile
6246 dlls/shell32/Makefile
6248 dlls/stress/Makefile
6249 dlls/tapi32/Makefile
6250 dlls/ttydrv/Makefile
6252 dlls/version/Makefile
6253 dlls/win32s/Makefile
6254 dlls/win87em/Makefile
6255 dlls/winaspi/Makefile
6256 dlls/windebug/Makefile
6259 dlls/winmm/joystick/Makefile
6260 dlls/winmm/mcianim/Makefile
6261 dlls/winmm/mciavi/Makefile
6262 dlls/winmm/mcicda/Makefile
6263 dlls/winmm/mciseq/Makefile
6264 dlls/winmm/mciwave/Makefile
6265 dlls/winmm/midimap/Makefile
6266 dlls/winmm/wavemap/Makefile
6267 dlls/winmm/wineoss/Makefile
6268 dlls/winsock/Makefile
6269 dlls/winspool/Makefile
6270 dlls/ttydrv/Makefile
6271 dlls/x11drv/Makefile
6272 documentation/Makefile
6273 documentation/wine.conf.man
6274 documentation/wine.man
6277 graphics/enhmetafiledrv/Makefile
6278 graphics/metafiledrv/Makefile
6279 graphics/psdrv/Makefile
6280 graphics/ttydrv/Makefile
6281 graphics/win16drv/Makefile
6282 graphics/x11drv/Makefile
6297 programs/clock/Makefile
6298 programs/cmdlgtst/Makefile
6299 programs/control/Makefile
6300 programs/avitools/Makefile
6301 programs/osversioncheck/Makefile
6302 programs/notepad/Makefile
6303 programs/progman/Makefile
6304 programs/regtest/Makefile
6305 programs/regapi/Makefile
6306 programs/view/Makefile
6307 programs/wcmd/Makefile
6308 programs/winemine/Makefile
6309 programs/winhelp/Makefile
6310 programs/winver/Makefile
6317 tools/cvdump/Makefile
6322 windows/ttydrv/Makefile
6323 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6325 cat >> $CONFIG_STATUS <<EOF
6327 # Protect against being on the right side of a sed subst in config.status.
6328 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6329 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6333 s%@CFLAGS@%$CFLAGS%g
6334 s%@CPPFLAGS@%$CPPFLAGS%g
6335 s%@CXXFLAGS@%$CXXFLAGS%g
6336 s%@FFLAGS@%$FFLAGS%g
6338 s%@LDFLAGS@%$LDFLAGS%g
6340 s%@exec_prefix@%$exec_prefix%g
6341 s%@prefix@%$prefix%g
6342 s%@program_transform_name@%$program_transform_name%g
6343 s%@bindir@%$bindir%g
6344 s%@sbindir@%$sbindir%g
6345 s%@libexecdir@%$libexecdir%g
6346 s%@datadir@%$datadir%g
6347 s%@sysconfdir@%$sysconfdir%g
6348 s%@sharedstatedir@%$sharedstatedir%g
6349 s%@localstatedir@%$localstatedir%g
6350 s%@libdir@%$libdir%g
6351 s%@includedir@%$includedir%g
6352 s%@oldincludedir@%$oldincludedir%g
6353 s%@infodir@%$infodir%g
6354 s%@mandir@%$mandir%g
6355 s%@PROGEXT@%$PROGEXT%g
6356 s%@EMU_TARGET@%$EMU_TARGET%g
6357 s%@OPTIONS@%$OPTIONS%g
6358 s%@SET_MAKE@%$SET_MAKE%g
6361 s%@X_CFLAGS@%$X_CFLAGS%g
6362 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6363 s%@X_LIBS@%$X_LIBS%g
6364 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6367 s%@LEXLIB@%$LEXLIB%g
6368 s%@RANLIB@%$RANLIB%g
6369 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6370 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6371 s%@INSTALL_DATA@%$INSTALL_DATA%g
6374 s%@LDCONFIG@%$LDCONFIG%g
6376 s%@LINTFLAGS@%$LINTFLAGS%g
6378 s%@DLL_LINK@%$DLL_LINK%g
6379 s%@BUILDFLAGS@%$BUILDFLAGS%g
6380 s%@DLLFLAGS@%$DLLFLAGS%g
6381 s%@LDSHARED@%$LDSHARED%g
6382 s%@LIBEXT@%$LIBEXT%g
6383 s%@ALLOCA@%$ALLOCA%g
6384 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6385 /@MAKE_RULES@/r $MAKE_RULES
6387 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6388 s%@MAKE_DLL_RULES@%%g
6393 cat >> $CONFIG_STATUS <<\EOF
6395 # Split the substitutions into bite-sized pieces for seds with
6396 # small command number limits, like on Digital OSF/1 and HP-UX.
6397 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6398 ac_file
=1 # Number of current file.
6399 ac_beg
=1 # First line for current file.
6400 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6403 while $ac_more_lines; do
6404 if test $ac_beg -gt 1; then
6405 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6407 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6409 if test ! -s conftest.s
$ac_file; then
6411 rm -f conftest.s
$ac_file
6413 if test -z "$ac_sed_cmds"; then
6414 ac_sed_cmds
="sed -f conftest.s$ac_file"
6416 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6418 ac_file
=`expr $ac_file + 1`
6420 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6423 if test -z "$ac_sed_cmds"; then
6428 cat >> $CONFIG_STATUS <<EOF
6430 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6437 dlls/advapi32/Makefile
6438 dlls/avifil32/Makefile
6439 dlls/comctl32/Makefile
6440 dlls/commdlg/Makefile
6441 dlls/crtdll/Makefile
6442 dlls/dciman32/Makefile
6444 dlls/dinput/Makefile
6445 dlls/display/Makefile
6446 dlls/dplayx/Makefile
6447 dlls/dsound/Makefile
6450 dlls/imagehlp/Makefile
6452 dlls/lzexpand/Makefile
6456 dlls/msacm32/Makefile
6457 dlls/msnet32/Makefile
6458 dlls/msvideo/Makefile
6460 dlls/odbc32/Makefile
6462 dlls/oleaut32/Makefile
6463 dlls/olecli/Makefile
6464 dlls/oledlg/Makefile
6465 dlls/olepro32/Makefile
6466 dlls/olesvr/Makefile
6468 dlls/rasapi32/Makefile
6469 dlls/setupx/Makefile
6470 dlls/shell32/Makefile
6472 dlls/stress/Makefile
6473 dlls/tapi32/Makefile
6474 dlls/ttydrv/Makefile
6476 dlls/version/Makefile
6477 dlls/win32s/Makefile
6478 dlls/win87em/Makefile
6479 dlls/winaspi/Makefile
6480 dlls/windebug/Makefile
6483 dlls/winmm/joystick/Makefile
6484 dlls/winmm/mcianim/Makefile
6485 dlls/winmm/mciavi/Makefile
6486 dlls/winmm/mcicda/Makefile
6487 dlls/winmm/mciseq/Makefile
6488 dlls/winmm/mciwave/Makefile
6489 dlls/winmm/midimap/Makefile
6490 dlls/winmm/wavemap/Makefile
6491 dlls/winmm/wineoss/Makefile
6492 dlls/winsock/Makefile
6493 dlls/winspool/Makefile
6494 dlls/ttydrv/Makefile
6495 dlls/x11drv/Makefile
6496 documentation/Makefile
6497 documentation/wine.conf.man
6498 documentation/wine.man
6501 graphics/enhmetafiledrv/Makefile
6502 graphics/metafiledrv/Makefile
6503 graphics/psdrv/Makefile
6504 graphics/ttydrv/Makefile
6505 graphics/win16drv/Makefile
6506 graphics/x11drv/Makefile
6521 programs/clock/Makefile
6522 programs/cmdlgtst/Makefile
6523 programs/control/Makefile
6524 programs/avitools/Makefile
6525 programs/osversioncheck/Makefile
6526 programs/notepad/Makefile
6527 programs/progman/Makefile
6528 programs/regtest/Makefile
6529 programs/regapi/Makefile
6530 programs/view/Makefile
6531 programs/wcmd/Makefile
6532 programs/winemine/Makefile
6533 programs/winhelp/Makefile
6534 programs/winver/Makefile
6541 tools/cvdump/Makefile
6546 windows/ttydrv/Makefile
6547 windows/x11drv/Makefile "}
6549 cat >> $CONFIG_STATUS <<\EOF
6550 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6551 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6553 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6554 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6555 *) ac_file_in
="${ac_file}.in" ;;
6558 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6560 # Remove last slash and all that follows it. Not all systems have dirname.
6561 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6562 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6563 # The file is in a subdirectory.
6564 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6565 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6566 # A "../" for each directory in $ac_dir_suffix.
6567 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6569 ac_dir_suffix
= ac_dots
=
6572 case "$ac_given_srcdir" in
6574 if test -z "$ac_dots"; then top_srcdir
=.
6575 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6576 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6578 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6579 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6582 case "$ac_given_INSTALL" in
6583 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6584 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6587 echo creating
"$ac_file"
6589 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6591 *Makefile
*) ac_comsub
="1i\\
6592 # $configure_input" ;;
6596 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6598 s%@configure_input@%$configure_input%g
6599 s%@srcdir@%$srcdir%g
6600 s%@top_srcdir@%$top_srcdir%g
6601 s%@INSTALL@%$INSTALL%g
6602 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6606 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6607 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6609 # ac_d sets the value in "#define NAME VALUE" lines.
6610 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6611 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6614 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6615 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6616 ac_uB
='\([ ]\)%\1#\2define\3'
6619 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6620 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6621 ac_eB
='$%\1#\2define\3'
6625 if test "${CONFIG_HEADERS+set}" != set; then
6627 cat >> $CONFIG_STATUS <<EOF
6628 CONFIG_HEADERS="include/config.h"
6630 cat >> $CONFIG_STATUS <<\EOF
6632 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6635 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6636 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6637 *) ac_file_in
="${ac_file}.in" ;;
6640 echo creating
$ac_file
6642 rm -f conftest.frag conftest.
in conftest.out
6643 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6644 cat $ac_file_inputs > conftest.
in
6648 # Transform confdefs.h into a sed script conftest.vals that substitutes
6649 # the proper values into config.h.in to produce config.h. And first:
6650 # Protect against being on the right side of a sed subst in config.status.
6651 # Protect against being in an unquoted here document in config.status.
6653 cat > conftest.hdr
<<\EOF
6656 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6660 sed -n -f conftest.hdr confdefs.h > conftest.vals
6663 # This sed command replaces #undef with comments. This is necessary, for
6664 # example, in the case of _POSIX_SOURCE, which is predefined and required
6665 # on some systems where configure will not decide to define it.
6666 cat >> conftest.vals <<\EOF
6667 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6670 # Break up conftest.vals because some shells have a limit on
6671 # the size of here documents, and old seds have small limits too.
6676 ac_lines=`grep -c . conftest.vals
`
6677 # grep -c gives empty output for an empty file on some AIX systems.
6678 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6679 # Write a limited-size here document to conftest.frag.
6680 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6681 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6683 sed -f conftest.frag conftest.in > conftest.out
6685 mv conftest.out conftest.in
6687 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6689 mv conftest.tail conftest.vals
6693 cat >> $CONFIG_STATUS <<\EOF
6694 rm -f conftest.frag conftest.h
6695 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6696 cat conftest.in >> conftest.h
6698 if cmp -s $ac_file conftest.h 2>/dev/null; then
6699 echo "$ac_file is unchanged"
6702 # Remove last slash and all that follows it. Not all systems have dirname.
6703 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6704 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6705 # The file is in a subdirectory.
6706 test ! -d "$ac_dir" && mkdir "$ac_dir"
6709 mv conftest.h $ac_file
6714 cat >> $CONFIG_STATUS <<EOF
6717 cat >> $CONFIG_STATUS <<\EOF
6721 chmod +x $CONFIG_STATUS
6722 rm -fr confdefs* $ac_clean_files
6723 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6726 if test "$have_x" = "no"
6729 echo "*** Warning: X development files not found. Wine will be built without"
6730 echo "*** X support, which currently does not work, and would probably not be"
6731 echo "*** what you want anyway. You will need to install devel packages of"
6732 echo "*** Xlib/Xfree86 and Xpm at the very least."
6733 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6736 echo "*** Warning: Xpm development files not found. Wine will be built without"
6737 echo "*** Xpm support, which currently does not work. You will need to install"
6738 echo "*** devel packages of Xpm."
6741 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6744 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6745 echo "*** terminal resize support. Consider upgrading ncurses."
6748 if test "$wine_cv_libc_reentrant" = "no"
6751 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6752 echo "*** thread support. Consider upgrading libc to a more recent"
6753 echo "*** reentrant version of libc."
6756 if test "$wine_cv_mesa_version_OK" = "no"
6759 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6760 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6763 if test "$wine_cv_mesa_version_threadsafe" = "yes"
6766 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6767 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed"
6768 echo "*** (while we work on a better fix)."
6772 echo "Configure finished. Do 'make depend && make' to compile Wine."