3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --enable-dll build the Wine library as a DLL"
20 --disable-lib build the Wine without building libwine.a"
22 --disable-debug compile out all debugging messages"
24 --disable-trace compile out TRACE messages"
26 --without-reentrant-x compile for use with non-reentrant X libraries"
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
92 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
93 bindir
="$ac_optarg" ;;
95 -build |
--build |
--buil |
--bui |
--bu)
97 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
101 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
102 ac_prev
=cache_file
;;
103 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
104 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
105 cache_file
="$ac_optarg" ;;
107 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
109 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
111 datadir
="$ac_optarg" ;;
113 -disable-* |
--disable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* |
--enable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
136 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
137 |
--exec |
--exe |
--ex)
138 ac_prev
=exec_prefix
;;
139 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
140 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
141 |
--exec=* |
--exe=* |
--ex=*)
142 exec_prefix
="$ac_optarg" ;;
144 -gas |
--gas |
--ga |
--g)
145 # Obsolete; use --with-gas.
148 -help |
--help |
--hel |
--he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host |
--host |
--hos |
--ho)
205 -host=* |
--host=* |
--hos=* |
--ho=*)
208 -includedir |
--includedir |
--includedi |
--included |
--include \
209 |
--includ |
--inclu |
--incl |
--inc)
210 ac_prev
=includedir
;;
211 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
212 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
213 includedir
="$ac_optarg" ;;
215 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
217 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
218 infodir
="$ac_optarg" ;;
220 -libdir |
--libdir |
--libdi |
--libd)
222 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
223 libdir
="$ac_optarg" ;;
225 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
226 |
--libexe |
--libex |
--libe)
227 ac_prev
=libexecdir
;;
228 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
229 |
--libexe=* |
--libex=* |
--libe=*)
230 libexecdir
="$ac_optarg" ;;
232 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
233 |
--localstate |
--localstat |
--localsta |
--localst \
234 |
--locals |
--local |
--loca |
--loc |
--lo)
235 ac_prev
=localstatedir
;;
236 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
237 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
238 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
239 localstatedir
="$ac_optarg" ;;
241 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
243 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
244 mandir
="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
254 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
255 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
258 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
259 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
260 |
--oldin |
--oldi |
--old |
--ol |
--o)
261 ac_prev
=oldincludedir
;;
262 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
263 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
264 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
265 oldincludedir
="$ac_optarg" ;;
267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
270 prefix
="$ac_optarg" ;;
272 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
273 |
--program-pre |
--program-pr |
--program-p)
274 ac_prev
=program_prefix
;;
275 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
276 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
277 program_prefix
="$ac_optarg" ;;
279 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
280 |
--program-suf |
--program-su |
--program-s)
281 ac_prev
=program_suffix
;;
282 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
283 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
284 program_suffix
="$ac_optarg" ;;
286 -program-transform-name |
--program-transform-name \
287 |
--program-transform-nam |
--program-transform-na \
288 |
--program-transform-n |
--program-transform- \
289 |
--program-transform |
--program-transfor \
290 |
--program-transfo |
--program-transf \
291 |
--program-trans |
--program-tran \
292 |
--progr-tra |
--program-tr |
--program-t)
293 ac_prev
=program_transform_name
;;
294 -program-transform-name=* |
--program-transform-name=* \
295 |
--program-transform-nam=* |
--program-transform-na=* \
296 |
--program-transform-n=* |
--program-transform-=* \
297 |
--program-transform=* |
--program-transfor=* \
298 |
--program-transfo=* |
--program-transf=* \
299 |
--program-trans=* |
--program-tran=* \
300 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
301 program_transform_name
="$ac_optarg" ;;
303 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
304 |
-silent |
--silent |
--silen |
--sile |
--sil)
307 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
309 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
311 sbindir
="$ac_optarg" ;;
313 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
314 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
315 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
317 ac_prev
=sharedstatedir
;;
318 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
319 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
320 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
322 sharedstatedir
="$ac_optarg" ;;
324 -site |
--site |
--sit)
326 -site=* |
--site=* |
--sit=*)
329 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
331 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
332 srcdir
="$ac_optarg" ;;
334 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
335 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
336 ac_prev
=sysconfdir
;;
337 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
338 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
339 sysconfdir
="$ac_optarg" ;;
341 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
343 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
344 target
="$ac_optarg" ;;
346 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
349 -version |
--version |
--versio |
--versi |
--vers)
350 echo "configure generated by autoconf version 2.12"
354 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* |
--without-*)
367 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
381 ac_prev
=x_includes
;;
382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
384 x_includes
="$ac_optarg" ;;
386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
388 ac_prev
=x_libraries
;;
389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
391 x_libraries
="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE
; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
442 |
--no-cr |
--no-c) ;;
443 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
444 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
445 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest
* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file
=controls
/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted
=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted
=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE
; then
496 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file
in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp
='$CPP $CPPFLAGS'
519 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling
=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
532 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in tools
$srcdir/tools
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
559 test -z "$PROGEXT" && PROGEXT
=""
564 ALT_LINK
="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS
=yes # the TRACE() macro
566 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval
="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval
="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET
="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval
="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK
="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET
=""; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval
="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval
="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval
="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
617 cat >> confdefs.h
<<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h
<<\EOF
622 #define NO_TRACE_MSGS 1
626 if test "$TRACE_MSGS" = "no"
628 cat >> confdefs.h
<<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 cat > conftestmake
<<\EOF
644 @
echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_
${ac_make}_set
=yes
651 eval ac_cv_prog_make_
${ac_make}_set
=no
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
659 echo "$ac_t""no" 1>&6
660 SET_MAKE
="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc
; ac_word
=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC
="$CC" # Let the user override the test.
673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
674 for ac_dir
in $PATH; do
675 test -z "$ac_dir" && ac_dir
=.
676 if test -f $ac_dir/$ac_word; then
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
704 for ac_dir
in $PATH; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy
$ac_cv_prog_CC
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
725 set dummy
"$ac_dir/$ac_word" "$@"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
736 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp
='$CPP $CPPFLAGS'
748 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling
=$ac_cv_prog_cc_cross
752 cat > conftest.
$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
757 if { (eval echo configure
:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
758 ac_cv_prog_cc_works
=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (.
/conftest
; exit) 2>/dev
/null
; then
761 ac_cv_prog_cc_cross
=no
763 ac_cv_prog_cc_cross
=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.
$ac_ext >&5
768 ac_cv_prog_cc_works
=no
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no
; then
774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling
=$ac_cv_prog_cc_cross
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftest.c
<<EOF
791 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS
="${CFLAGS+set}"
803 ac_save_CFLAGS
="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS
="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
830 test "${CFLAGS+set}" = set || CFLAGS
="-g"
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
886 ac_cv_prog_CPP
="$CPP"
888 CPP
="$ac_cv_prog_CPP"
890 ac_cv_prog_CPP
="$CPP"
892 echo "$ac_t""$CPP" 1>&6
894 # If we find X, set shell vars x_includes and x_libraries to the
895 # paths, otherwise set no_x=yes.
896 # Uses ac_ vars as temps to allow command line to override cache and checks.
897 # --without-x overrides everything else, but does not touch the cache.
898 echo $ac_n "checking for X""... $ac_c" 1>&6
899 echo "configure:900: checking for X" >&5
901 # Check whether --with-x or --without-x was given.
902 if test "${with_x+set}" = set; then
907 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
908 if test "x$with_x" = xno
; then
909 # The user explicitly disabled X.
912 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
913 # Both variables are already set.
916 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 # One or both of the vars are not set, and there is no cached value.
920 ac_x_includes
=NO ac_x_libraries
=NO
922 if mkdir conftestdir
; then
924 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
925 cat > Imakefile
<<'EOF'
927 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
933 for ac_extension
in a so sl
; do
934 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
935 test -f $ac_im_libdir/libX11.
$ac_extension; then
936 ac_im_usrlibdir
=$ac_im_libdir; break
939 # Screen out bogus values from the imake configuration. They are
940 # bogus both because they are the default anyway, and because
941 # using them would break gcc on systems where it needs fixed includes.
942 case "$ac_im_incroot" in
944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
946 case "$ac_im_usrlibdir" in
948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
955 if test "$ac_x_includes" = NO
; then
956 # Guess where to find include files, by looking for this one X11 .h file.
957 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
959 # First, try using that file with no special directory specified.
960 cat > conftest.
$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 #include <$x_direct_test_include>
965 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure
:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err
=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
970 # We can compile using X headers with no special include directory.
974 echo "configure: failed program was:" >&5
975 cat conftest.
$ac_ext >&5
977 # Look for the header file in a standard set of common directories.
978 # Check X11 before X11Rn because it is often a symlink to the current release.
990 /usr
/local
/X11
/include \
991 /usr
/local
/X11R
6/include \
992 /usr
/local
/X11R
5/include \
993 /usr
/local
/X11R
4/include \
995 /usr
/local
/include
/X11 \
996 /usr
/local
/include
/X11R6 \
997 /usr
/local
/include
/X11R5 \
998 /usr
/local
/include
/X11R4 \
1002 /usr
/XFree86
/include
/X11 \
1005 /usr
/local
/include \
1006 /usr
/unsupported
/include \
1007 /usr
/athena
/include \
1008 /usr
/local
/x11r
5/include \
1009 /usr
/lpp
/Xamples
/include \
1011 /usr
/openwin
/include \
1012 /usr
/openwin
/share
/include \
1015 if test -r "$ac_dir/$x_direct_test_include"; then
1016 ac_x_includes
=$ac_dir
1022 fi # $ac_x_includes = NO
1024 if test "$ac_x_libraries" = NO
; then
1025 # Check for the libraries.
1027 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1028 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1030 # See if we find them without any special options.
1031 # Don't add to $LIBS permanently.
1032 ac_save_LIBS
="$LIBS"
1033 LIBS
="-l$x_direct_test_library $LIBS"
1034 cat > conftest.
$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1039 ${x_direct_test_function}()
1042 if { (eval echo configure
:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1044 LIBS
="$ac_save_LIBS"
1045 # We can link X programs with no special library path.
1048 echo "configure: failed program was:" >&5
1049 cat conftest.
$ac_ext >&5
1051 LIBS
="$ac_save_LIBS"
1052 # First see if replacing the include by lib works.
1053 # Check X11 before X11Rn because it is often a symlink to the current release.
1054 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1065 /usr
/local
/X11
/lib \
1066 /usr
/local
/X11R
6/lib \
1067 /usr
/local
/X11R
5/lib \
1068 /usr
/local
/X11R
4/lib \
1070 /usr
/local
/lib
/X11 \
1071 /usr
/local
/lib
/X11R6 \
1072 /usr
/local
/lib
/X11R5 \
1073 /usr
/local
/lib
/X11R4 \
1077 /usr
/XFree86
/lib
/X11 \
1081 /usr
/unsupported
/lib \
1083 /usr
/local
/x11r
5/lib \
1084 /usr
/lpp
/Xamples
/lib \
1088 /usr
/openwin
/share
/lib \
1091 for ac_extension
in a so sl
; do
1092 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1093 ac_x_libraries
=$ac_dir
1100 fi # $ac_x_libraries = NO
1102 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1103 # Didn't find X anywhere. Cache the known absence of X.
1104 ac_cv_have_x
="have_x=no"
1106 # Record where we found X for the cache.
1107 ac_cv_have_x
="have_x=yes \
1108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112 eval "$ac_cv_have_x"
1115 if test "$have_x" != yes; then
1116 echo "$ac_t""$have_x" 1>&6
1119 # If each of the values was on the command line, it overrides each guess.
1120 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1121 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1122 # Update the cache value to reflect the command line values.
1123 ac_cv_have_x
="have_x=yes \
1124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1125 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1128 if test "$no_x" = yes; then
1129 # Not all programs may use this symbol, but it does not hurt to define it.
1130 cat >> confdefs.h
<<\EOF
1131 #define X_DISPLAY_MISSING 1
1134 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1136 if test -n "$x_includes"; then
1137 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1140 # It would also be nice to do this for all -L options, not just this one.
1141 if test -n "$x_libraries"; then
1142 X_LIBS
="$X_LIBS -L$x_libraries"
1143 # For Solaris; some versions of Sun CC require a space after -R and
1144 # others require no space. Words are not sufficient . . . .
1145 case "`(uname -sr) 2>/dev/null`" in
1147 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether -R must be followed by a space" >&5
1149 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 if { (eval echo configure
:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1168 if test $ac_R_nospace = yes; then
1169 echo "$ac_t""no" 1>&6
1170 X_LIBS
="$X_LIBS -R$x_libraries"
1172 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1173 cat > conftest.
$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1181 if { (eval echo configure
:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1185 echo "configure: failed program was:" >&5
1186 cat conftest.
$ac_ext >&5
1191 if test $ac_R_space = yes; then
1192 echo "$ac_t""yes" 1>&6
1193 X_LIBS
="$X_LIBS -R $x_libraries"
1195 echo "$ac_t""neither works" 1>&6
1198 LIBS
="$ac_xsave_LIBS"
1202 # Check for system-dependent libraries X programs must link with.
1203 # Do this before checking for the system-independent R6 libraries
1204 # (-lICE), since we may need -lsocket or whatever for X linking.
1206 if test "$ISC" = yes; then
1207 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1209 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1210 # libraries were built with DECnet support. And karl@cs.umb.edu says
1211 # the Alpha needs dnet_stub (dnet does not exist).
1212 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1213 echo "configure:1214: checking for dnet_ntoa in -ldnet" >&5
1214 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 ac_save_LIBS
="$LIBS"
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1232 if { (eval echo configure
:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1239 eval "ac_cv_lib_$ac_lib_var=no"
1242 LIBS
="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1249 echo "$ac_t""no" 1>&6
1252 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1253 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1254 echo "configure:1255: checking for dnet_ntoa in -ldnet_stub" >&5
1255 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 ac_save_LIBS
="$LIBS"
1260 LIBS
="-ldnet_stub $LIBS"
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264 /* Override any gcc2 internal prototype to avoid an error. */
1265 /* We use char because int might match the return type of a gcc2
1266 builtin and then its argument prototype would still apply. */
1273 if { (eval echo configure
:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1275 eval "ac_cv_lib_$ac_lib_var=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1280 eval "ac_cv_lib_$ac_lib_var=no"
1283 LIBS
="$ac_save_LIBS"
1286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1290 echo "$ac_t""no" 1>&6
1295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1296 # to get the SysV transport functions.
1297 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # The nsl library prevents programs from opening the X display
1300 # on Irix 5.2, according to dickey@clark.net.
1301 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1302 echo "configure:1303: checking for gethostbyname" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char gethostbyname(); below. */
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char gethostbyname();
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1330 if { (eval echo configure
:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1332 eval "ac_cv_func_gethostbyname=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1337 eval "ac_cv_func_gethostbyname=no"
1342 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 if test $ac_cv_func_gethostbyname = no
; then
1350 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1351 echo "configure:1352: checking for gethostbyname in -lnsl" >&5
1352 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS
="$LIBS"
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1364 char gethostbyname();
1370 if { (eval echo configure
:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS
="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1387 echo "$ac_t""no" 1>&6
1392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1393 # socket/setsockopt and other routines are undefined under SCO ODT
1394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1395 # on later versions), says simon@lia.di.epfl.ch: it contains
1396 # gethostby* variants that don't use the nameserver (or something).
1397 # -lsocket must be given before -lnsl if both are needed.
1398 # We assume that if connect needs -lnsl, so does gethostbyname.
1399 echo $ac_n "checking for connect""... $ac_c" 1>&6
1400 echo "configure:1401: checking for connect" >&5
1401 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* System header to define __stub macros and hopefully few prototypes,
1408 which can conflict with char connect(); below. */
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_connect) || defined (__stub___connect)
1428 if { (eval echo configure
:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1430 eval "ac_cv_func_connect=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 eval "ac_cv_func_connect=no"
1440 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 if test $ac_cv_func_connect = no
; then
1448 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1449 echo "configure:1450: checking for connect in -lsocket" >&5
1450 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_save_LIBS
="$LIBS"
1455 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1456 cat > conftest.
$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1468 if { (eval echo configure
:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.
$ac_ext >&5
1475 eval "ac_cv_lib_$ac_lib_var=no"
1478 LIBS
="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1485 echo "$ac_t""no" 1>&6
1490 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1491 echo $ac_n "checking for remove""... $ac_c" 1>&6
1492 echo "configure:1493: checking for remove" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char remove(); below. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_remove) || defined (__stub___remove)
1520 if { (eval echo configure
:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1522 eval "ac_cv_func_remove=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.
$ac_ext >&5
1527 eval "ac_cv_func_remove=no"
1532 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1536 echo "$ac_t""no" 1>&6
1539 if test $ac_cv_func_remove = no
; then
1540 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for remove in -lposix" >&5
1542 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_save_LIBS
="$LIBS"
1547 LIBS
="-lposix $LIBS"
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1560 if { (eval echo configure
:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1567 eval "ac_cv_lib_$ac_lib_var=no"
1570 LIBS
="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1577 echo "$ac_t""no" 1>&6
1582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1583 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1584 echo "configure:1585: checking for shmat" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.
$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char shmat(); below. */
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_shmat) || defined (__stub___shmat)
1612 if { (eval echo configure
:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1614 eval "ac_cv_func_shmat=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.
$ac_ext >&5
1619 eval "ac_cv_func_shmat=no"
1624 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 if test $ac_cv_func_shmat = no
; then
1632 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1633 echo "configure:1634: checking for shmat in -lipc" >&5
1634 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 ac_save_LIBS
="$LIBS"
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1652 if { (eval echo configure
:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1654 eval "ac_cv_lib_$ac_lib_var=yes"
1656 echo "configure: failed program was:" >&5
1657 cat conftest.
$ac_ext >&5
1659 eval "ac_cv_lib_$ac_lib_var=no"
1662 LIBS
="$ac_save_LIBS"
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1669 echo "$ac_t""no" 1>&6
1675 # Check for libraries that X11R6 Xt/Xaw programs need.
1676 ac_save_LDFLAGS
="$LDFLAGS"
1677 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1679 # check for ICE first), but we must link in the order -lSM -lICE or
1680 # we get undefined symbols. So assume we have SM if we have ICE.
1681 # These have to be linked with before -lX11, unlike the other
1682 # libraries we check for below, so use a different variable.
1683 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1684 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1685 echo "configure:1686: checking for IceConnectionNumber in -lICE" >&5
1686 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS
="$LIBS"
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char IceConnectionNumber();
1701 IceConnectionNumber()
1704 if { (eval echo configure
:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1711 eval "ac_cv_lib_$ac_lib_var=no"
1714 LIBS
="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1721 echo "$ac_t""no" 1>&6
1724 LDFLAGS
="$ac_save_LDFLAGS"
1728 for ac_prog
in 'bison -y' byacc
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy
$ac_prog; ac_word
=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$YACC"; then
1738 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1741 for ac_dir
in $PATH; do
1742 test -z "$ac_dir" && ac_dir
=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_prog_YACC
="$ac_prog"
1751 YACC
="$ac_cv_prog_YACC"
1752 if test -n "$YACC"; then
1753 echo "$ac_t""$YACC" 1>&6
1755 echo "$ac_t""no" 1>&6
1758 test -n "$YACC" && break
1760 test -n "$YACC" || YACC
="yacc"
1762 # Extract the first word of "flex", so it can be a program name with args.
1763 set dummy flex
; ac_word
=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1773 for ac_dir
in $PATH; do
1774 test -z "$ac_dir" && ac_dir
=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX
="flex"
1781 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1784 LEX
="$ac_cv_prog_LEX"
1785 if test -n "$LEX"; then
1786 echo "$ac_t""$LEX" 1>&6
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$LEXLIB"
1797 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1798 echo "configure:1799: checking for yywrap in -l$ac_lib" >&5
1799 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 ac_save_LIBS
="$LIBS"
1804 LIBS
="-l$ac_lib $LIBS"
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1817 if { (eval echo configure
:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 eval "ac_cv_lib_$ac_lib_var=no"
1827 LIBS
="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1839 # Extract the first word of "ranlib", so it can be a program name with args.
1840 set dummy ranlib
; ac_word
=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 if test -n "$RANLIB"; then
1847 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1850 for ac_dir
in $PATH; do
1851 test -z "$ac_dir" && ac_dir
=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB
="ranlib"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1861 RANLIB
="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 # Find a good install program. We prefer a C program (faster),
1869 # so one script is as good as another. But avoid the broken or
1870 # incompatible versions:
1871 # SysV /etc/install, /usr/sbin/install
1872 # SunOS /usr/etc/install
1873 # IRIX /sbin/install
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1879 echo "configure:1880: checking for a BSD compatible install" >&5
1880 if test -z "$INSTALL"; then
1881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1885 for ac_dir
in $PATH; do
1886 # Account for people who put trailing slashes in PATH elements.
1888 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 for ac_prog
in ginstall installbsd scoinst
install; do
1892 if test -f $ac_dir/$ac_prog; then
1893 if test $ac_prog = install &&
1894 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1910 if test "${ac_cv_path_install+set}" = set; then
1911 INSTALL
="$ac_cv_path_install"
1913 # As a last resort, use the slow shell script. We don't cache a
1914 # path for INSTALL within a source directory, because that will
1915 # break other packages using the cache if that directory is
1916 # removed, or if the path is relative.
1917 INSTALL
="$ac_install_sh"
1920 echo "$ac_t""$INSTALL" 1>&6
1922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1923 # It thinks the first close brace ends the variable substitution.
1924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1926 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ln -s works" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1934 if ln -s X conftestdata
2>/dev
/null
1937 ac_cv_prog_LN_S
="ln -s"
1942 LN_S
="$ac_cv_prog_LN_S"
1943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1944 echo "$ac_t""yes" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "c2man", so it can be a program name with args.
1950 set dummy c2man
; ac_word
=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 if test -n "$C2MAN"; then
1957 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
1959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1960 for ac_dir
in $PATH; do
1961 test -z "$ac_dir" && ac_dir
=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_C2MAN
="c2man"
1968 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
1971 C2MAN
="$ac_cv_prog_C2MAN"
1972 if test -n "$C2MAN"; then
1973 echo "$ac_t""$C2MAN" 1>&6
1975 echo "$ac_t""no" 1>&6
1978 # Extract the first word of "ldconfig", so it can be a program name with args.
1979 set dummy ldconfig
; ac_word
=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
1990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1991 for ac_dir
in /sbin
:/usr
/sbin
:$PATH$ac_dummy; do
1992 test -z "$ac_dir" && ac_dir
=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
1999 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="false"
2003 LDCONFIG
="$ac_cv_path_LDCONFIG"
2004 if test -n "$LDCONFIG"; then
2005 echo "$ac_t""$LDCONFIG" 1>&6
2007 echo "$ac_t""no" 1>&6
2012 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2013 echo "configure:2014: checking for sqrt in -lm" >&5
2014 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 ac_save_LIBS
="$LIBS"
2020 cat > conftest.
$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 /* Override any gcc2 internal prototype to avoid an error. */
2024 /* We use char because int might match the return type of a gcc2
2025 builtin and then its argument prototype would still apply. */
2032 if { (eval echo configure
:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2034 eval "ac_cv_lib_$ac_lib_var=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_lib_$ac_lib_var=no"
2042 LIBS
="$ac_save_LIBS"
2045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2047 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2049 cat >> confdefs.h
<<EOF
2050 #define $ac_tr_lib 1
2056 echo "$ac_t""no" 1>&6
2059 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2060 echo "configure:2061: checking for i386_set_ldt in -li386" >&5
2061 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 ac_save_LIBS
="$LIBS"
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073 char i386_set_ldt();
2079 if { (eval echo configure
:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2081 eval "ac_cv_lib_$ac_lib_var=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.
$ac_ext >&5
2086 eval "ac_cv_lib_$ac_lib_var=no"
2089 LIBS
="$ac_save_LIBS"
2092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2096 cat >> confdefs.h
<<EOF
2097 #define $ac_tr_lib 1
2103 echo "$ac_t""no" 1>&6
2106 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2107 echo "configure:2108: checking for _oss_ioctl in -lossaudio" >&5
2108 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 ac_save_LIBS
="$LIBS"
2113 LIBS
="-lossaudio $LIBS"
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2126 if { (eval echo configure
:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2128 eval "ac_cv_lib_$ac_lib_var=yes"
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 eval "ac_cv_lib_$ac_lib_var=no"
2136 LIBS
="$ac_save_LIBS"
2139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2143 cat >> confdefs.h
<<EOF
2144 #define $ac_tr_lib 1
2147 LIBS
="-lossaudio $LIBS"
2150 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2154 echo "configure:2155: checking for iswalnum in -lw" >&5
2155 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 ac_save_LIBS
="$LIBS"
2161 cat > conftest.
$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* Override any gcc2 internal prototype to avoid an error. */
2165 /* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2175 eval "ac_cv_lib_$ac_lib_var=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.
$ac_ext >&5
2180 eval "ac_cv_lib_$ac_lib_var=no"
2183 LIBS
="$ac_save_LIBS"
2186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2190 cat >> confdefs.h
<<EOF
2191 #define $ac_tr_lib 1
2197 echo "$ac_t""no" 1>&6
2200 for ac_func
in gethostbyname
2202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_func" >&5
2204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $ac_func(); below. */
2213 /* Override any gcc2 internal prototype to avoid an error. */
2214 /* We use char because int might match the return type of a gcc2
2215 builtin and then its argument prototype would still apply. */
2220 /* The GNU C library defines this for functions which it implements
2221 to always fail with ENOSYS. Some functions are actually named
2222 something starting with __ and the normal name is an alias. */
2223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2231 if { (eval echo configure
:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2233 eval "ac_cv_func_$ac_func=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 eval "ac_cv_func_$ac_func=no"
2243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2246 cat >> confdefs.h
<<EOF
2247 #define $ac_tr_func 1
2251 echo "$ac_t""no" 1>&6
2252 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2253 echo "configure:2254: checking for gethostbyname in -lnsl" >&5
2254 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 ac_save_LIBS
="$LIBS"
2260 cat > conftest.
$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 /* Override any gcc2 internal prototype to avoid an error. */
2264 /* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
2266 char gethostbyname();
2272 if { (eval echo configure
:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2274 eval "ac_cv_lib_$ac_lib_var=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2279 eval "ac_cv_lib_$ac_lib_var=no"
2282 LIBS
="$ac_save_LIBS"
2285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2286 echo "$ac_t""yes" 1>&6
2287 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2289 cat >> confdefs.h
<<EOF
2290 #define $ac_tr_lib 1
2296 echo "$ac_t""no" 1>&6
2302 for ac_func
in connect
2304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_func" >&5
2306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $ac_func(); below. */
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2322 /* The GNU C library defines this for functions which it implements
2323 to always fail with ENOSYS. Some functions are actually named
2324 something starting with __ and the normal name is an alias. */
2325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2333 if { (eval echo configure
:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2335 eval "ac_cv_func_$ac_func=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2340 eval "ac_cv_func_$ac_func=no"
2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2348 cat >> confdefs.h
<<EOF
2349 #define $ac_tr_func 1
2353 echo "$ac_t""no" 1>&6
2354 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2355 echo "configure:2356: checking for connect in -lsocket" >&5
2356 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 ac_save_LIBS
="$LIBS"
2361 LIBS
="-lsocket $LIBS"
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* Override any gcc2 internal prototype to avoid an error. */
2366 /* We use char because int might match the return type of a gcc2
2367 builtin and then its argument prototype would still apply. */
2374 if { (eval echo configure
:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2376 eval "ac_cv_lib_$ac_lib_var=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2381 eval "ac_cv_lib_$ac_lib_var=no"
2384 LIBS
="$ac_save_LIBS"
2387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2391 cat >> confdefs.h
<<EOF
2392 #define $ac_tr_lib 1
2395 LIBS
="-lsocket $LIBS"
2398 echo "$ac_t""no" 1>&6
2404 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2405 echo "configure:2406: checking for setrunelocale in -lxpg4" >&5
2406 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 ac_save_LIBS
="$LIBS"
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2418 char setrunelocale();
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 eval "ac_cv_lib_$ac_lib_var=no"
2434 LIBS
="$ac_save_LIBS"
2437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2441 cat >> confdefs.h
<<EOF
2442 #define $ac_tr_lib 1
2448 echo "$ac_t""no" 1>&6
2451 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2452 echo "configure:2453: checking for mmap in -lmmap" >&5
2453 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 ac_save_LIBS
="$LIBS"
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* Override any gcc2 internal prototype to avoid an error. */
2463 /* We use char because int might match the return type of a gcc2
2464 builtin and then its argument prototype would still apply. */
2471 if { (eval echo configure
:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2473 eval "ac_cv_lib_$ac_lib_var=yes"
2475 echo "configure: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2478 eval "ac_cv_lib_$ac_lib_var=no"
2481 LIBS
="$ac_save_LIBS"
2484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2488 cat >> confdefs.h
<<EOF
2489 #define $ac_tr_lib 1
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr
in dlfcn.h
2501 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure
:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err
=`grep -v '^ *+' conftest.out`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h
<<EOF
2531 #define $ac_tr_hdr 1
2533 for ac_func
in dlopen
2535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_func" >&5
2537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 /* System header to define __stub macros and hopefully few prototypes,
2544 which can conflict with char $ac_func(); below. */
2546 /* Override any gcc2 internal prototype to avoid an error. */
2547 /* We use char because int might match the return type of a gcc2
2548 builtin and then its argument prototype would still apply. */
2553 /* The GNU C library defines this for functions which it implements
2554 to always fail with ENOSYS. Some functions are actually named
2555 something starting with __ and the normal name is an alias. */
2556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2564 if { (eval echo configure
:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2566 eval "ac_cv_func_$ac_func=yes"
2568 echo "configure: failed program was:" >&5
2569 cat conftest.
$ac_ext >&5
2571 eval "ac_cv_func_$ac_func=no"
2576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2579 cat >> confdefs.h
<<EOF
2580 #define $ac_tr_func 1
2582 cat >> confdefs.h
<<\EOF
2583 #define HAVE_DL_API 1
2587 echo "$ac_t""no" 1>&6
2588 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2589 echo "configure:2590: checking for dlopen in -ldl" >&5
2590 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 ac_save_LIBS
="$LIBS"
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 /* Override any gcc2 internal prototype to avoid an error. */
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2608 if { (eval echo configure
:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2610 eval "ac_cv_lib_$ac_lib_var=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.
$ac_ext >&5
2615 eval "ac_cv_lib_$ac_lib_var=no"
2618 LIBS
="$ac_save_LIBS"
2621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2622 echo "$ac_t""yes" 1>&6
2623 cat >> confdefs.h
<<\EOF
2624 #define HAVE_DL_API 1
2630 echo "$ac_t""no" 1>&6
2639 echo "$ac_t""no" 1>&6
2644 if test "$have_x" = "yes"
2647 ac_save_CPPFLAGS
="$CPPFLAGS"
2648 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2650 for ac_hdr
in X11
/xpm.h
2652 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure
:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err
=`grep -v '^ *+' conftest.out`
2666 if test -z "$ac_err"; then
2668 eval "ac_cv_header_$ac_safe=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 eval "ac_cv_header_$ac_safe=no"
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h
<<EOF
2682 #define $ac_tr_hdr 1
2686 echo "$ac_t""no" 1>&6
2690 if test "$ac_cv_header_X11_xpm_h" = "yes"
2692 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2693 echo "configure:2694: checking for XpmCreatePixmapFromData in -lXpm" >&5
2694 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 ac_save_LIBS
="$LIBS"
2699 LIBS
="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2700 cat > conftest.
$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706 char XpmCreatePixmapFromData();
2709 XpmCreatePixmapFromData()
2712 if { (eval echo configure
:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 eval "ac_cv_lib_$ac_lib_var=no"
2722 LIBS
="$ac_save_LIBS"
2725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 cat >> confdefs.h
<<\EOF
2728 #define HAVE_LIBXXPM 1
2730 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2732 echo "$ac_t""no" 1>&6
2737 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
2739 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out`
2753 if test -z "$ac_err"; then
2755 eval "ac_cv_header_$ac_safe=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2761 eval "ac_cv_header_$ac_safe=no"
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h
<<EOF
2769 #define $ac_tr_hdr 1
2773 echo "$ac_t""no" 1>&6
2777 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2779 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2780 echo "configure:2781: checking for XShmQueryExtension in -lXext" >&5
2781 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_save_LIBS
="$LIBS"
2786 LIBS
="-lXext $X_LIBS -lXext -lX11 $LIBS"
2787 cat > conftest.
$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 /* Override any gcc2 internal prototype to avoid an error. */
2791 /* We use char because int might match the return type of a gcc2
2792 builtin and then its argument prototype would still apply. */
2793 char XShmQueryExtension();
2796 XShmQueryExtension()
2799 if { (eval echo configure
:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2801 eval "ac_cv_lib_$ac_lib_var=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.
$ac_ext >&5
2806 eval "ac_cv_lib_$ac_lib_var=no"
2809 LIBS
="$ac_save_LIBS"
2812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 cat >> confdefs.h
<<\EOF
2815 #define HAVE_LIBXXSHM 1
2819 echo "$ac_t""no" 1>&6
2823 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
2825 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure
:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err
=`grep -v '^ *+' conftest.out`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h
<<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2863 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2865 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2866 echo "configure:2867: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2867 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_save_LIBS
="$LIBS"
2872 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2879 char XF86DGAQueryExtension();
2882 XF86DGAQueryExtension()
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_lib_$ac_lib_var=no"
2895 LIBS
="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h
<<\EOF
2901 #define HAVE_LIBXXF86DGA 1
2903 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
2905 echo "$ac_t""no" 1>&6
2910 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2950 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2952 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2953 echo "configure:2954: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2954 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 ac_save_LIBS
="$LIBS"
2959 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2966 char XF86VidModeQueryExtension();
2969 XF86VidModeQueryExtension()
2972 if { (eval echo configure
:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2976 echo "configure: failed program was:" >&5
2977 cat conftest.
$ac_ext >&5
2979 eval "ac_cv_lib_$ac_lib_var=no"
2982 LIBS
="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 cat >> confdefs.h
<<\EOF
2988 #define HAVE_LIBXXF86VM 1
2990 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
2992 echo "$ac_t""no" 1>&6
2997 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/osmesa.h
2999 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_hdr" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3010 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011 { (eval echo configure
:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012 ac_err
=`grep -v '^ *+' conftest.out`
3013 if test -z "$ac_err"; then
3015 eval "ac_cv_header_$ac_safe=yes"
3018 echo "configure: failed program was:" >&5
3019 cat conftest.
$ac_ext >&5
3021 eval "ac_cv_header_$ac_safe=no"
3025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3028 cat >> confdefs.h
<<EOF
3029 #define $ac_tr_hdr 1
3033 echo "$ac_t""no" 1>&6
3037 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3039 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
3040 echo "configure:3041: checking "for up-to-date Mesa version
"" >&5
3041 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.
$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3049 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3052 if { (eval echo configure
:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 wine_cv_mesa_version_OK
="yes"
3056 echo "configure: failed program was:" >&5
3057 cat conftest.
$ac_ext >&5
3059 wine_cv_mesa_version_OK
="no"
3066 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3068 if test "$wine_cv_mesa_version_OK" = "yes"
3070 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3071 echo "configure:3072: checking for glXCreateContext in -lGL" >&5
3072 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 ac_save_LIBS
="$LIBS"
3077 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $LIBS"
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3084 char glXCreateContext();
3090 if { (eval echo configure
:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3092 eval "ac_cv_lib_$ac_lib_var=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.
$ac_ext >&5
3097 eval "ac_cv_lib_$ac_lib_var=no"
3100 LIBS
="$ac_save_LIBS"
3103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h
<<\EOF
3106 #define HAVE_LIBMESAGL 1
3108 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3110 echo "$ac_t""no" 1>&6
3113 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3115 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3116 echo "configure:3117: checking for glXCreateContext in -lMesaGL" >&5
3117 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 ac_save_LIBS
="$LIBS"
3122 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3129 char glXCreateContext();
3135 if { (eval echo configure
:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3137 eval "ac_cv_lib_$ac_lib_var=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3142 eval "ac_cv_lib_$ac_lib_var=no"
3145 LIBS
="$ac_save_LIBS"
3148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 cat >> confdefs.h
<<\EOF
3151 #define HAVE_LIBMESAGL 1
3153 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3155 echo "$ac_t""no" 1>&6
3162 CPPFLAGS
="$ac_save_CPPFLAGS"
3169 for ac_hdr
in ncurses.h
3171 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3173 echo "configure:3174: checking for $ac_hdr" >&5
3174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.
$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3182 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3183 { (eval echo configure
:3184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3184 ac_err
=`grep -v '^ *+' conftest.out`
3185 if test -z "$ac_err"; then
3187 eval "ac_cv_header_$ac_safe=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 eval "ac_cv_header_$ac_safe=no"
3197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3198 echo "$ac_t""yes" 1>&6
3199 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3200 cat >> confdefs.h
<<EOF
3201 #define $ac_tr_hdr 1
3205 echo "$ac_t""no" 1>&6
3209 if test "$ac_cv_header_ncurses_h" = "yes"
3211 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3212 echo "configure:3213: checking for waddch in -lncurses" >&5
3213 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_save_LIBS
="$LIBS"
3218 LIBS
="-lncurses $LIBS"
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3231 if { (eval echo configure
:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3233 eval "ac_cv_lib_$ac_lib_var=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 eval "ac_cv_lib_$ac_lib_var=no"
3241 LIBS
="$ac_save_LIBS"
3244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3248 cat >> confdefs.h
<<EOF
3249 #define $ac_tr_lib 1
3252 LIBS
="-lncurses $LIBS"
3255 echo "$ac_t""no" 1>&6
3259 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3261 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3262 echo "configure:3263: checking for resizeterm in -lncurses" >&5
3263 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 ac_save_LIBS
="$LIBS"
3268 LIBS
="-lncurses $LIBS"
3269 cat > conftest.
$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 /* Override any gcc2 internal prototype to avoid an error. */
3273 /* We use char because int might match the return type of a gcc2
3274 builtin and then its argument prototype would still apply. */
3281 if { (eval echo configure
:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3283 eval "ac_cv_lib_$ac_lib_var=yes"
3285 echo "configure: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3288 eval "ac_cv_lib_$ac_lib_var=no"
3291 LIBS
="$ac_save_LIBS"
3294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 cat >> confdefs.h
<<\EOF
3297 #define HAVE_RESIZETERM 1
3301 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3305 echo "configure:3306: checking for getbkgd in -lncurses" >&5
3306 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 ac_save_LIBS
="$LIBS"
3311 LIBS
="-lncurses $LIBS"
3312 cat > conftest.
$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3324 if { (eval echo configure
:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.
$ac_ext >&5
3331 eval "ac_cv_lib_$ac_lib_var=no"
3334 LIBS
="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 cat >> confdefs.h
<<\EOF
3340 #define HAVE_GETBKGD 1
3344 echo "$ac_t""no" 1>&6
3348 for ac_hdr
in curses.h
3350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5
3353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure
:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err
=`grep -v '^ *+' conftest.out`
3364 if test -z "$ac_err"; then
3366 eval "ac_cv_header_$ac_safe=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3372 eval "ac_cv_header_$ac_safe=no"
3376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3379 cat >> confdefs.h
<<EOF
3380 #define $ac_tr_hdr 1
3384 echo "$ac_t""no" 1>&6
3388 if test "$ac_cv_header_curses_h" = "yes"
3390 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3391 echo "configure:3392: checking for waddch in -lcurses" >&5
3392 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS
="$LIBS"
3397 LIBS
="-lcurses $LIBS"
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure
:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.
$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS
="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3427 cat >> confdefs.h
<<EOF
3428 #define $ac_tr_lib 1
3431 LIBS
="-lcurses $LIBS"
3434 echo "$ac_t""no" 1>&6
3437 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3438 echo "configure:3439: checking for resizeterm in -lcurses" >&5
3439 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 ac_save_LIBS
="$LIBS"
3444 LIBS
="-lcurses $LIBS"
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3457 if { (eval echo configure
:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3459 eval "ac_cv_lib_$ac_lib_var=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3464 eval "ac_cv_lib_$ac_lib_var=no"
3467 LIBS
="$ac_save_LIBS"
3470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h
<<\EOF
3473 #define HAVE_RESIZETERM 1
3477 echo "$ac_t""no" 1>&6
3480 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3481 echo "configure:3482: checking for getbkgd in -lcurses" >&5
3482 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 ac_save_LIBS
="$LIBS"
3487 LIBS
="-lcurses $LIBS"
3488 cat > conftest.
$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3500 if { (eval echo configure
:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.
$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS
="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 cat >> confdefs.h
<<\EOF
3516 #define HAVE_GETBKGD 1
3520 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3527 echo "configure:3528: checking "for GNU style IPX support
"" >&5
3528 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.
$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/socket.h>
3535 #include <netipx/ipx.h>
3537 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3540 if { (eval echo configure
:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 cat >> confdefs.h
<<\EOF
3543 #define HAVE_IPX_GNU 1
3546 ac_cv_c_ipx_gnu
="yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 ac_cv_c_ipx_gnu
="no"
3557 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3559 if test "$ac_cv_c_ipx_gnu" = "no"
3561 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
3562 echo "configure:3563: checking "for linux style IPX support
"" >&5
3563 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/socket.h>
3570 #include <asm/types.h>
3571 #include <linux/ipx.h>
3573 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3576 if { (eval echo configure
:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 cat >> confdefs.h
<<\EOF
3579 #define HAVE_IPX_LINUX 1
3582 ac_cv_c_ipx_linux
="yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.
$ac_ext >&5
3587 ac_cv_c_ipx_linux
="no"
3593 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3596 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
3598 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3600 echo "configure:3601: checking for $ac_hdr" >&5
3601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 cat > conftest.
$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3609 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3610 { (eval echo configure
:3611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3611 ac_err
=`grep -v '^ *+' conftest.out`
3612 if test -z "$ac_err"; then
3614 eval "ac_cv_header_$ac_safe=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.
$ac_ext >&5
3620 eval "ac_cv_header_$ac_safe=no"
3624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3627 cat >> confdefs.h
<<EOF
3628 #define $ac_tr_hdr 1
3632 echo "$ac_t""no" 1>&6
3637 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
3638 echo "configure:3639: checking "for Open Sound System
"" >&5
3639 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.
$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3646 #if defined(HAVE_SYS_SOUNDCARD_H)
3647 #include <sys/soundcard.h>
3648 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3649 #include <machine/soundcard.h>
3650 #elif defined(HAVE_SOUNDCARD_H)
3651 #include <soundcard.h>
3657 /* check for one of the Open Sound System specific SNDCTL_ defines */
3658 #if !defined(SNDCTL_DSP_STEREO)
3659 #error No open sound system
3664 if { (eval echo configure
:3665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 ac_cv_c_opensoundsystem
="yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 ac_cv_c_opensoundsystem
="no"
3676 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3678 if test "$ac_cv_c_opensoundsystem" = "yes"
3680 cat >> confdefs.h
<<\EOF
3686 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
3687 echo "configure:3688: checking "for Open Sound System
/MIDI interface
"" >&5
3688 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3695 #if defined(HAVE_SYS_SOUNDCARD_H)
3696 #include <sys/soundcard.h>
3697 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3698 #include <machine/soundcard.h>
3699 #elif defined(HAVE_SOUNDCARD_H)
3700 #include <soundcard.h>
3706 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3707 #if !defined(SNDCTL_SEQ_SYNC)
3708 #error No open sound system MIDI interface
3713 if { (eval echo configure
:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3715 ac_cv_c_opensoundsystem_midi
="yes"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 ac_cv_c_opensoundsystem_midi
="no"
3725 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3727 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3729 cat >> confdefs.h
<<\EOF
3730 #define HAVE_OSS_MIDI 1
3735 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
3738 if test "x${GCC}" = "xyes"
3740 CFLAGS
="$CFLAGS -Wall"
3741 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
3742 echo "configure:3743: checking "for gcc strength-reduce bug
"" >&5
3743 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 if test "$cross_compiling" = yes; then
3747 ac_cv_c_gcc_strength_bug
="yes"
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3754 static int Array[3];
3757 for(i=0; i<B; i++) Array[i] = i - 3;
3758 exit( Array[1] != -2 );
3761 if { (eval echo configure
:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3763 ac_cv_c_gcc_strength_bug
="no"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.
$ac_ext >&5
3768 ac_cv_c_gcc_strength_bug
="yes"
3775 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3776 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3778 CFLAGS
="$CFLAGS -fno-strength-reduce"
3783 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
3784 echo "configure:3785: checking "whether external symbols need an underscore prefix
"" >&5
3785 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3789 LIBS
="conftest_asm.s $LIBS"
3790 cat > conftest_asm.s
<<EOF
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3800 if (ac_test) return 1
3803 if { (eval echo configure
:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3805 ac_cv_c_extern_prefix
="yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3810 ac_cv_c_extern_prefix
="no"
3816 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3817 if test "$ac_cv_c_extern_prefix" = "yes"
3819 cat >> confdefs.h
<<\EOF
3820 #define NEED_UNDERSCORE_PREFIX 1
3826 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
3827 echo "configure:3828: checking "whether assembler accepts .string
"" >&5
3828 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3832 LIBS
="conftest_asm.s $LIBS"
3833 cat > conftest_asm.s
<<EOF
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3844 if { (eval echo configure
:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3846 ac_cv_c_asm_string
="yes"
3848 echo "configure: failed program was:" >&5
3849 cat conftest.
$ac_ext >&5
3851 ac_cv_c_asm_string
="no"
3857 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3858 if test "$ac_cv_c_asm_string" = "yes"
3860 cat >> confdefs.h
<<\EOF
3861 #define HAVE_ASM_STRING 1
3870 if test "$LIB_TARGET" = "libwine.so.1.0"
3872 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
3873 echo "configure:3874: checking "whether we can build a Linux dll
"" >&5
3874 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 saved_cflags
=$CFLAGS
3878 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3879 cat > conftest.
$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3887 if { (eval echo configure
:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3889 ac_cv_c_dll_linux
="yes"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.
$ac_ext >&5
3894 ac_cv_c_dll_linux
="no"
3897 CFLAGS
=$saved_cflags
3901 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3902 if test "$ac_cv_c_dll_linux" = "yes"
3906 LDSHARED
="\$(CC) -shared -Wl,-soname,libwine.so"
3908 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
3909 echo "configure:3910: checking "whether we can build a NetBSD dll
"" >&5
3910 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 saved_cflags
=$CFLAGS
3914 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3923 if { (eval echo configure
:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3925 ac_cv_c_dll_netbsd
="yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 ac_cv_c_dll_netbsd
="no"
3933 CFLAGS
=$saved_cflags
3937 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3938 if test "$ac_cv_c_dll_netbsd" = "yes"
3942 LDSHARED
="ld -Bshareable -Bforcearchive"
3945 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3947 LIB_TARGET
="libwine.a"
3955 wine_cv_libc_reentrant
=no
3956 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
3957 echo "configure:3958: checking "for reentrant libc
: __errno_location
"" >&5
3958 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 if test "$cross_compiling" = yes; then
3962 wine_cv_libc_r__errno_location
=yes
3964 cat > conftest.
$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3969 int *__errno_location(){return &myerrno;}
3970 main(){connect(0,buf,255); exit(!myerrno);}
3972 if { (eval echo configure
:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3974 wine_cv_libc_r__errno_location
=yes
3976 echo "configure: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 wine_cv_libc_r__errno_location
=no
3987 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3988 if test "$wine_cv_libc_r__errno_location" = "yes"
3990 cat >> confdefs.h
<<\EOF
3991 #define HAVE__ERRNO_LOCATION 1
3994 wine_cv_libc_reentrant
=__errno_location
3996 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
3997 echo "configure:3998: checking "for reentrant libc
: __error
"" >&5
3998 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 if test "$cross_compiling" = yes; then
4002 wine_cv_libc_r__error
=yes
4004 cat > conftest.
$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4009 int *__error(){return &myerrno;}
4010 main(){connect(0,buf,255); exit(!myerrno);}
4012 if { (eval echo configure
:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4014 wine_cv_libc_r__error
=yes
4016 echo "configure: failed program was:" >&5
4017 cat conftest.
$ac_ext >&5
4019 wine_cv_libc_r__error
=no
4027 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4028 if test "$wine_cv_libc_r__error" = "yes"
4030 cat >> confdefs.h
<<\EOF
4031 #define HAVE__ERROR 1
4034 wine_cv_libc_reentrant
=__error
4036 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4037 echo "configure:4038: checking "for reentrant libc
: ___errno
"" >&5
4038 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 if test "$cross_compiling" = yes; then
4042 wine_cv_libc_r___errno
=yes
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4049 int *___errno(){return &myerrno;}
4050 main(){connect(0,buf,255); exit(!myerrno);}
4052 if { (eval echo configure
:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4054 wine_cv_libc_r___errno
=yes
4056 echo "configure: failed program was:" >&5
4057 cat conftest.
$ac_ext >&5
4059 wine_cv_libc_r___errno
=no
4067 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4068 if test "$wine_cv_libc_r___errno" = "yes"
4070 cat >> confdefs.h
<<\EOF
4071 #define HAVE___ERRNO 1
4074 wine_cv_libc_reentrant
=___errno
4076 if test "$wine_cv_libc_reentrant" = "no"
4078 cat >> confdefs.h
<<\EOF
4079 #define NO_REENTRANT_LIBC 1
4085 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4087 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4088 echo "configure:4089: checking "for reentrant X libraries
"" >&5
4089 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 if test "x$with_reentrant_x" = "xno"
4094 wine_cv_x_reentrant
=no
4097 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4098 if test -r $dir/libX11.so
; then
4099 libX11_check
="-D $dir/libX11.so"
4102 if test -r $dir/libX11.a
; then
4103 libX11_check
="$dir/libX11.a"
4107 if test "$libX11_check" != "none"; then
4108 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4110 wine_cv_x_reentrant
=yes
4112 wine_cv_x_reentrant
=no
4115 wine_cv_x_reentrant
=unknown
4120 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4122 wine_cv_x_reentrant
=no
4124 if test "$wine_cv_x_reentrant" = "no"
4126 cat >> confdefs.h
<<\EOF
4127 #define NO_REENTRANT_X11 1
4133 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4134 # for constant arguments. Useless!
4135 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4136 echo "configure:4137: checking for working alloca.h" >&5
4137 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 char *p = alloca(2 * sizeof(int));
4148 if { (eval echo configure
:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4150 ac_cv_header_alloca_h
=yes
4152 echo "configure: failed program was:" >&5
4153 cat conftest.
$ac_ext >&5
4155 ac_cv_header_alloca_h
=no
4160 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4161 if test $ac_cv_header_alloca_h = yes; then
4162 cat >> confdefs.h
<<\EOF
4163 #define HAVE_ALLOCA_H 1
4168 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4169 echo "configure:4170: checking for alloca" >&5
4170 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4173 cat > conftest.
$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4178 # define alloca __builtin_alloca
4181 # include <alloca.h>
4186 # ifndef alloca /* predefined by HP cc +Olibcalls */
4194 char *p = (char *) alloca(1);
4197 if { (eval echo configure
:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4199 ac_cv_func_alloca_works
=yes
4201 echo "configure: failed program was:" >&5
4202 cat conftest.
$ac_ext >&5
4204 ac_cv_func_alloca_works
=no
4209 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4210 if test $ac_cv_func_alloca_works = yes; then
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_ALLOCA 1
4217 if test $ac_cv_func_alloca_works = no
; then
4218 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4219 # that cause trouble. Some versions do not even contain alloca or
4220 # contain a buggy version. If you still want to use their alloca,
4221 # use ar to extract alloca.o from them instead of compiling alloca.c.
4223 cat >> confdefs.h
<<\EOF
4228 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4229 echo "configure:4230: checking whether alloca needs Cray hooks" >&5
4230 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 cat > conftest.
$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #if defined(CRAY) && ! defined(CRAY2)
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 egrep "webecray" >/dev
/null
2>&1; then
4255 echo "$ac_t""$ac_cv_os_cray" 1>&6
4256 if test $ac_cv_os_cray = yes; then
4257 for ac_func
in _getb67 GETB67 getb67
; do
4258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4259 echo "configure:4260: checking for $ac_func" >&5
4260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 cat > conftest.
$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* System header to define __stub macros and hopefully few prototypes,
4267 which can conflict with char $ac_func(); below. */
4269 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4276 /* The GNU C library defines this for functions which it implements
4277 to always fail with ENOSYS. Some functions are actually named
4278 something starting with __ and the normal name is an alias. */
4279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4287 if { (eval echo configure
:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4289 eval "ac_cv_func_$ac_func=yes"
4291 echo "configure: failed program was:" >&5
4292 cat conftest.
$ac_ext >&5
4294 eval "ac_cv_func_$ac_func=no"
4299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4301 cat >> confdefs.h
<<EOF
4302 #define CRAY_STACKSEG_END $ac_func
4307 echo "$ac_t""no" 1>&6
4313 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4314 echo "configure:4315: checking stack direction for C alloca" >&5
4315 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 if test "$cross_compiling" = yes; then
4319 ac_cv_c_stack_direction
=0
4321 cat > conftest.
$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 find_stack_direction ()
4326 static char *addr = 0;
4331 return find_stack_direction ();
4334 return (&dummy > addr) ? 1 : -1;
4338 exit (find_stack_direction() < 0);
4341 if { (eval echo configure
:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4343 ac_cv_c_stack_direction
=1
4345 echo "configure: failed program was:" >&5
4346 cat conftest.
$ac_ext >&5
4348 ac_cv_c_stack_direction
=-1
4355 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4356 cat >> confdefs.h
<<EOF
4357 #define STACK_DIRECTION $ac_cv_c_stack_direction
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 cat > conftest.
$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389 which can conflict with char $ac_func(); below. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4409 if { (eval echo configure
:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4411 eval "ac_cv_func_$ac_func=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 eval "ac_cv_func_$ac_func=no"
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424 cat >> confdefs.h
<<EOF
4425 #define $ac_tr_func 1
4429 echo "$ac_t""no" 1>&6
4469 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_hdr" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 cat > conftest.
$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4480 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure
:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err
=`grep -v '^ *+' conftest.out`
4483 if test -z "$ac_err"; then
4485 eval "ac_cv_header_$ac_safe=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 eval "ac_cv_header_$ac_safe=no"
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4498 cat >> confdefs.h
<<EOF
4499 #define $ac_tr_hdr 1
4503 echo "$ac_t""no" 1>&6
4507 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4508 echo "configure:4509: checking whether stat file-mode macros are broken" >&5
4509 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 #include <sys/types.h>
4516 #include <sys/stat.h>
4518 #if defined(S_ISBLK) && defined(S_IFDIR)
4519 # if S_ISBLK (S_IFDIR)
4524 #if defined(S_ISBLK) && defined(S_IFCHR)
4525 # if S_ISBLK (S_IFCHR)
4530 #if defined(S_ISLNK) && defined(S_IFREG)
4531 # if S_ISLNK (S_IFREG)
4536 #if defined(S_ISSOCK) && defined(S_IFREG)
4537 # if S_ISSOCK (S_IFREG)
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 egrep "You lose" >/dev
/null
2>&1; then
4546 ac_cv_header_stat_broken
=yes
4549 ac_cv_header_stat_broken
=no
4555 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4556 if test $ac_cv_header_stat_broken = yes; then
4557 cat >> confdefs.h
<<\EOF
4558 #define STAT_MACROS_BROKEN 1
4565 echo $ac_n "checking for working const""... $ac_c" 1>&6
4566 echo "configure:4567: checking for working const" >&5
4567 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4576 /* Ultrix mips cc rejects this. */
4577 typedef int charset[2]; const charset x;
4578 /* SunOS 4.1.1 cc rejects this. */
4579 char const *const *ccp;
4581 /* NEC SVR4.0.2 mips cc rejects this. */
4582 struct point {int x, y;};
4583 static struct point const zero = {0,0};
4584 /* AIX XL C 1.02.0.0 rejects this.
4585 It does not let you subtract one const X* pointer from another in an arm
4586 of an if-expression whose if-part is not a constant expression */
4587 const char *g = "string";
4588 ccp = &g + (g ? g-g : 0);
4589 /* HPUX 7.0 cc rejects these. */
4592 ccp = (char const *const *) p;
4593 { /* SCO 3.2v4 cc rejects this. */
4595 char const *s = 0 ? (char *) 0 : (char const *) 0;
4599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4601 const int *foo = &x[0];
4604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4605 typedef const int *iptr;
4609 { /* AIX XL C 1.02.0.0 rejects this saying
4610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4611 struct s { int j; const int *ap[3]; };
4612 struct s *b; b->j = 5;
4614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4620 if { (eval echo configure
:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 echo "configure: failed program was:" >&5
4625 cat conftest.
$ac_ext >&5
4632 echo "$ac_t""$ac_cv_c_const" 1>&6
4633 if test $ac_cv_c_const = no
; then
4634 cat >> confdefs.h
<<\EOF
4640 echo $ac_n "checking for inline""... $ac_c" 1>&6
4641 echo "configure:4642: checking for inline" >&5
4642 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4646 for ac_kw
in inline __inline__ __inline
; do
4647 cat > conftest.
$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4655 if { (eval echo configure
:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4657 ac_cv_c_inline
=$ac_kw; break
4659 echo "configure: failed program was:" >&5
4660 cat conftest.
$ac_ext >&5
4667 echo "$ac_t""$ac_cv_c_inline" 1>&6
4668 case "$ac_cv_c_inline" in
4670 no
) cat >> confdefs.h
<<\EOF
4674 *) cat >> confdefs.h
<<EOF
4675 #define inline $ac_cv_c_inline
4680 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4681 echo "configure:4682: checking for ANSI C header files" >&5
4682 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.
$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure
:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err
=`grep -v '^ *+' conftest.out`
4696 if test -z "$ac_err"; then
4698 ac_cv_header_stdc
=yes
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 ac_cv_header_stdc
=no
4708 if test $ac_cv_header_stdc = yes; then
4709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 egrep "memchr" >/dev
/null
2>&1; then
4720 ac_cv_header_stdc
=no
4726 if test $ac_cv_header_stdc = yes; then
4727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 egrep "free" >/dev
/null
2>&1; then
4738 ac_cv_header_stdc
=no
4744 if test $ac_cv_header_stdc = yes; then
4745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4746 if test "$cross_compiling" = yes; then
4749 cat > conftest.
$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4753 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4754 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4756 int main () { int i; for (i = 0; i < 256; i++)
4757 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4761 if { (eval echo configure
:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4765 echo "configure: failed program was:" >&5
4766 cat conftest.
$ac_ext >&5
4768 ac_cv_header_stdc
=no
4776 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4777 if test $ac_cv_header_stdc = yes; then
4778 cat >> confdefs.h
<<\EOF
4779 #define STDC_HEADERS 1
4784 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4785 echo "configure:4786: checking for size_t" >&5
4786 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 #include <sys/types.h>
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4801 ac_cv_type_size_t
=yes
4804 ac_cv_type_size_t
=no
4809 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4810 if test $ac_cv_type_size_t = no
; then
4811 cat >> confdefs.h
<<\EOF
4812 #define size_t unsigned
4817 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4818 echo "configure:4819: checking size of long long" >&5
4819 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 if test "$cross_compiling" = yes; then
4823 ac_cv_sizeof_long_long
=0
4825 cat > conftest.
$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4831 FILE *f=fopen("conftestval", "w");
4833 fprintf(f, "%d\n", sizeof(long long));
4837 if { (eval echo configure
:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4839 ac_cv_sizeof_long_long
=`cat conftestval`
4841 echo "configure: failed program was:" >&5
4842 cat conftest.
$ac_ext >&5
4844 ac_cv_sizeof_long_long
=0
4850 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4851 cat >> confdefs.h
<<EOF
4852 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4858 if test "$ac_cv_header_sys_vfs_h" = "yes"
4860 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
4861 echo "configure:4862: checking "whether sys
/vfs.h defines statfs
"" >&5
4862 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4869 #include <sys/types.h>
4870 #ifdef HAVE_SYS_PARAM_H
4871 # include <sys/param.h>
4873 #include <sys/vfs.h>
4879 memset(&stfs,0,sizeof(stfs));
4883 if { (eval echo configure
:4884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4885 wine_cv_sys_vfs_has_statfs
=yes
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4890 wine_cv_sys_vfs_has_statfs
=no
4897 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4898 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4900 cat >> confdefs.h
<<\EOF
4901 #define STATFS_DEFINED_BY_SYS_VFS 1
4907 if test "$ac_cv_header_sys_statfs_h" = "yes"
4909 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
4910 echo "configure:4911: checking "whether sys
/statfs.h defines statfs
"" >&5
4911 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.
$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4918 #include <sys/types.h>
4919 #ifdef HAVE_SYS_PARAM_H
4920 # include <sys/param.h>
4922 #include <sys/statfs.h>
4930 if { (eval echo configure
:4931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4932 wine_cv_sys_statfs_has_statfs
=yes
4934 echo "configure: failed program was:" >&5
4935 cat conftest.
$ac_ext >&5
4937 wine_cv_sys_statfs_has_statfs
=no
4944 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4945 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4947 cat >> confdefs.h
<<\EOF
4948 #define STATFS_DEFINED_BY_SYS_STATFS 1
4954 if test "$ac_cv_header_sys_mount_h" = "yes"
4956 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
4957 echo "configure:4958: checking "whether sys
/mount.h defines statfs
"" >&5
4958 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4961 cat > conftest.
$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4965 #include <sys/types.h>
4966 #ifdef HAVE_SYS_PARAM_H
4967 # include <sys/param.h>
4969 #include <sys/mount.h>
4977 if { (eval echo configure
:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4979 wine_cv_sys_mount_has_statfs
=yes
4981 echo "configure: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4984 wine_cv_sys_mount_has_statfs
=no
4991 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4992 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4994 cat >> confdefs.h
<<\EOF
4995 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5002 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5003 echo "configure:5004: checking "for statfs.f_bfree
"" >&5
5004 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 if test "x$statfs_bfree" = "xno"
5009 wine_cv_statfs_bfree
=no
5011 cat > conftest.
$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5015 #include <sys/types.h>
5016 #ifdef HAVE_SYS_PARAM_H
5017 # include <sys/param.h>
5019 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5020 # include <sys/mount.h>
5022 # ifdef STATFS_DEFINED_BY_SYS_VFS
5023 # include <sys/vfs.h>
5025 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5026 # include <sys/statfs.h>
5039 if { (eval echo configure
:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5041 wine_cv_statfs_bfree
=yes
5043 echo "configure: failed program was:" >&5
5044 cat conftest.
$ac_ext >&5
5046 wine_cv_statfs_bfree
=no
5053 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5054 if test "$wine_cv_statfs_bfree" = "yes"
5056 cat >> confdefs.h
<<\EOF
5057 #define STATFS_HAS_BFREE 1
5062 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5063 echo "configure:5064: checking "for statfs.f_bavail
"" >&5
5064 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 if test "x$statfs_bavail" = "xno"
5069 wine_cv_statfs_bavail
=no
5071 cat > conftest.
$ac_ext <<EOF
5072 #line 5073 "configure"
5073 #include "confdefs.h"
5075 #include <sys/types.h>
5076 #ifdef HAVE_SYS_PARAM_H
5077 # include <sys/param.h>
5079 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5080 # include <sys/mount.h>
5082 # ifdef STATFS_DEFINED_BY_SYS_VFS
5083 # include <sys/vfs.h>
5085 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5086 # include <sys/statfs.h>
5099 if { (eval echo configure
:5100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5101 wine_cv_statfs_bavail
=yes
5103 echo "configure: failed program was:" >&5
5104 cat conftest.
$ac_ext >&5
5106 wine_cv_statfs_bavail
=no
5113 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5114 if test "$wine_cv_statfs_bavail" = "yes"
5116 cat >> confdefs.h
<<\EOF
5117 #define STATFS_HAS_BAVAIL 1
5123 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
5124 echo "configure:5125: checking "for working sigaltstack
"" >&5
5125 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 if test "$cross_compiling" = yes; then
5129 ac_cv_c_working_sigaltstack
="no"
5132 cat > conftest.
$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5137 #include <time.h> /* <sys/time.h> ? bad magic without end */
5138 #include <sys/types.h>
5139 #include <sys/signal.h>
5140 #ifdef HAVE_SYS_PARAM_H
5141 # include <sys/param.h>
5143 #ifdef HAVE_SYSCALL_H
5144 # include <syscall.h>
5146 # ifdef HAVE_SYS_SYSCALL_H
5147 # include <sys/syscall.h>
5151 unsigned char *xaltstack;
5154 main(int argc,char **argv) {
5155 struct sigaltstack ss;
5157 xaltstack = malloc(16384);
5158 ss.ss_sp = xaltstack;
5161 if (sigaltstack(&ss, NULL) < 0) {
5162 /* this catches the glibc case */
5163 perror("sigaltstack");
5164 return (1); /* aka exit(1) aka fail */
5166 /* assume it works. */
5171 if { (eval echo configure
:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5173 ac_cv_c_working_sigaltstack
="yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.
$ac_ext >&5
5178 ac_cv_c_working_sigaltstack
="no"
5185 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5187 if test "$ac_cv_c_working_sigaltstack" = "yes"
5189 cat >> confdefs.h
<<\EOF
5190 #define HAVE_WORKING_SIGALTSTACK 1
5197 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5198 echo "configure:5199: checking "for msg_accrights
in struct msghdr
"" >&5
5199 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.
$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 #include <sys/types.h>
5206 #include <sys/socket.h>
5208 struct msghdr hdr; hdr.msg_accrights=0
5211 if { (eval echo configure
:5212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5213 ac_cv_c_msg_accrights
="yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 ac_cv_c_msg_accrights
="no"
5223 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5224 if test "$ac_cv_c_msg_accrights" = "yes"
5226 cat >> confdefs.h
<<\EOF
5227 #define HAVE_MSGHDR_ACCRIGHTS 1
5233 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
5234 echo "configure:5235: checking "whether we need to define __i386__
"" >&5
5235 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.
$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 egrep "yes" >/dev
/null
2>&1; then
5248 ac_cv_cpp_def_i386
="yes"
5251 ac_cv_cpp_def_i386
="no"
5257 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5258 if test "$ac_cv_cpp_def_i386" = "yes"
5260 CFLAGS
="$CFLAGS -D__i386__"
5264 if test "$GCC" = "yes"
5266 GCC_NO_BUILTIN
="-fno-builtin"
5271 MAKE_RULES
=Make.rules
5275 cat > confcache
<<\EOF
5276 # This file is a shell script that caches the results of configure
5277 # tests run on this system so they can be shared between configure
5278 # scripts and configure runs. It is not useful on other systems.
5279 # If it contains results you don't want to keep, you may remove or edit it.
5281 # By default, configure uses ./config.cache as the cache file,
5282 # creating it if it does not exist already. You can give configure
5283 # the --cache-file=FILE option to use a different cache file; that is
5284 # what configure does when it calls configure scripts in
5285 # subdirectories, so they share the cache.
5286 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5287 # config.status only pays attention to the cache file if you give it the
5288 # --recheck option to rerun configure.
5291 # The following way of writing the cache mishandles newlines in values,
5292 # but we know of no workaround that is simple, portable, and efficient.
5293 # So, don't put newlines in cache variables' values.
5294 # Ultrix sh set writes to stderr and can't be redirected directly,
5295 # and sets the high bit in the cache file unless we assign to the vars.
5297 case `(ac_space=' '; set) 2>&1` in
5299 # `set' does not quote correctly, so add quotes (double-quote substitution
5300 # turns \\\\ into \\, and sed turns \\ into \).
5302 -e "s/'/'\\\\''/g" \
5303 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5306 # `set' quotes correctly as required by POSIX, so do not add quotes.
5307 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5310 if cmp -s $cache_file confcache
; then
5313 if test -w $cache_file; then
5314 echo "updating cache $cache_file"
5315 cat confcache
> $cache_file
5317 echo "not updating unwritable cache $cache_file"
5322 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5324 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5325 # Let make expand exec_prefix.
5326 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5328 # Any assignment to VPATH causes Sun make to only execute
5329 # the first set of double-colon rules, so remove it if not needed.
5330 # If there is a colon in the path, we need to keep it.
5331 if test "x$srcdir" = x.
; then
5332 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5335 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5337 DEFS
=-DHAVE_CONFIG_H
5339 # Without the "./", some shells look in PATH for config.status.
5340 : ${CONFIG_STATUS=./config.status}
5342 echo creating
$CONFIG_STATUS
5343 rm -f $CONFIG_STATUS
5344 cat > $CONFIG_STATUS <<EOF
5346 # Generated automatically by configure.
5347 # Run this file to recreate the current configuration.
5348 # This directory was configured as follows,
5349 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5351 # $0 $ac_configure_args
5353 # Compiler output produced by configure, useful for debugging
5354 # configure, is in ./config.log if it exists.
5356 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5359 case "\$ac_option" in
5360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5361 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5362 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5363 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5364 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5366 -help | --help | --hel | --he | --h)
5367 echo "\$ac_cs_usage"; exit 0 ;;
5368 *) echo "\$ac_cs_usage"; exit 1 ;;
5372 ac_given_srcdir=$srcdir
5373 ac_given_INSTALL="$INSTALL"
5375 trap 'rm -fr `echo "
5382 dlls/advapi32/Makefile
5383 dlls/avifil32/Makefile
5384 dlls/comctl32/Makefile
5385 dlls/commdlg/Makefile
5386 dlls/imagehlp/Makefile
5388 dlls/msacm32/Makefile
5391 dlls/rasapi32/Makefile
5392 dlls/shell32/Makefile
5393 dlls/tapi32/Makefile
5395 dlls/version/Makefile
5396 dlls/win87em/Makefile
5397 dlls/winaspi/Makefile
5398 dlls/winspool/Makefile
5399 dlls/wnaspi32/Makefile
5400 documentation/Makefile
5401 documentation/wine.conf.man
5402 documentation/wine.man
5405 graphics/enhmetafiledrv/Makefile
5406 graphics/metafiledrv/Makefile
5407 graphics/psdrv/Makefile
5408 graphics/ttydrv/Makefile
5409 graphics/win16drv/Makefile
5410 graphics/x11drv/Makefile
5426 programs/clock/Makefile
5427 programs/cmdlgtst/Makefile
5428 programs/control/Makefile
5429 programs/avitools/Makefile
5430 programs/notepad/Makefile
5431 programs/progman/Makefile
5432 programs/regtest/Makefile
5433 programs/regapi/Makefile
5434 programs/view/Makefile
5435 programs/wcmd/Makefile
5436 programs/winhelp/Makefile
5437 programs/winver/Makefile
5448 windows/ttydrv/Makefile
5449 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5451 cat >> $CONFIG_STATUS <<EOF
5453 # Protect against being on the right side of a sed subst in config.status.
5454 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5455 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5458 s%@CFLAGS@%$CFLAGS%g
5459 s%@CPPFLAGS@%$CPPFLAGS%g
5460 s%@CXXFLAGS@%$CXXFLAGS%g
5462 s%@LDFLAGS@%$LDFLAGS%g
5464 s%@exec_prefix@%$exec_prefix%g
5465 s%@prefix@%$prefix%g
5466 s%@program_transform_name@%$program_transform_name%g
5467 s%@bindir@%$bindir%g
5468 s%@sbindir@%$sbindir%g
5469 s%@libexecdir@%$libexecdir%g
5470 s%@datadir@%$datadir%g
5471 s%@sysconfdir@%$sysconfdir%g
5472 s%@sharedstatedir@%$sharedstatedir%g
5473 s%@localstatedir@%$localstatedir%g
5474 s%@libdir@%$libdir%g
5475 s%@includedir@%$includedir%g
5476 s%@oldincludedir@%$oldincludedir%g
5477 s%@infodir@%$infodir%g
5478 s%@mandir@%$mandir%g
5479 s%@PROGEXT@%$PROGEXT%g
5480 s%@MAIN_TARGET@%$MAIN_TARGET%g
5481 s%@LIB_TARGET@%$LIB_TARGET%g
5482 s%@ALT_LINK@%$ALT_LINK%g
5483 s%@OPTIONS@%$OPTIONS%g
5484 s%@SET_MAKE@%$SET_MAKE%g
5487 s%@X_CFLAGS@%$X_CFLAGS%g
5488 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5489 s%@X_LIBS@%$X_LIBS%g
5490 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5493 s%@LEXLIB@%$LEXLIB%g
5494 s%@RANLIB@%$RANLIB%g
5495 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5496 s%@INSTALL_DATA@%$INSTALL_DATA%g
5499 s%@LDCONFIG@%$LDCONFIG%g
5501 s%@BUILDFLAGS@%$BUILDFLAGS%g
5502 s%@DLLFLAGS@%$DLLFLAGS%g
5503 s%@LDSHARED@%$LDSHARED%g
5504 s%@ALLOCA@%$ALLOCA%g
5505 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5506 /@MAKE_RULES@/r $MAKE_RULES
5512 cat >> $CONFIG_STATUS <<\EOF
5514 # Split the substitutions into bite-sized pieces for seds with
5515 # small command number limits, like on Digital OSF/1 and HP-UX.
5516 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5517 ac_file
=1 # Number of current file.
5518 ac_beg
=1 # First line for current file.
5519 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5522 while $ac_more_lines; do
5523 if test $ac_beg -gt 1; then
5524 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5526 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5528 if test ! -s conftest.s
$ac_file; then
5530 rm -f conftest.s
$ac_file
5532 if test -z "$ac_sed_cmds"; then
5533 ac_sed_cmds
="sed -f conftest.s$ac_file"
5535 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5537 ac_file
=`expr $ac_file + 1`
5539 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5542 if test -z "$ac_sed_cmds"; then
5547 cat >> $CONFIG_STATUS <<EOF
5549 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5555 dlls/advapi32/Makefile
5556 dlls/avifil32/Makefile
5557 dlls/comctl32/Makefile
5558 dlls/commdlg/Makefile
5559 dlls/imagehlp/Makefile
5561 dlls/msacm32/Makefile
5564 dlls/rasapi32/Makefile
5565 dlls/shell32/Makefile
5566 dlls/tapi32/Makefile
5568 dlls/version/Makefile
5569 dlls/win87em/Makefile
5570 dlls/winaspi/Makefile
5571 dlls/winspool/Makefile
5572 dlls/wnaspi32/Makefile
5573 documentation/Makefile
5574 documentation/wine.conf.man
5575 documentation/wine.man
5578 graphics/enhmetafiledrv/Makefile
5579 graphics/metafiledrv/Makefile
5580 graphics/psdrv/Makefile
5581 graphics/ttydrv/Makefile
5582 graphics/win16drv/Makefile
5583 graphics/x11drv/Makefile
5599 programs/clock/Makefile
5600 programs/cmdlgtst/Makefile
5601 programs/control/Makefile
5602 programs/avitools/Makefile
5603 programs/notepad/Makefile
5604 programs/progman/Makefile
5605 programs/regtest/Makefile
5606 programs/regapi/Makefile
5607 programs/view/Makefile
5608 programs/wcmd/Makefile
5609 programs/winhelp/Makefile
5610 programs/winver/Makefile
5621 windows/ttydrv/Makefile
5622 windows/x11drv/Makefile "}
5624 cat >> $CONFIG_STATUS <<\EOF
5625 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5628 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5629 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5630 *) ac_file_in
="${ac_file}.in" ;;
5633 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5635 # Remove last slash and all that follows it. Not all systems have dirname.
5636 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5637 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5638 # The file is in a subdirectory.
5639 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5640 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5641 # A "../" for each directory in $ac_dir_suffix.
5642 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5644 ac_dir_suffix
= ac_dots
=
5647 case "$ac_given_srcdir" in
5649 if test -z "$ac_dots"; then top_srcdir
=.
5650 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5651 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5653 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5654 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5657 case "$ac_given_INSTALL" in
5658 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5659 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5662 echo creating
"$ac_file"
5664 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5666 *Makefile
*) ac_comsub
="1i\\
5667 # $configure_input" ;;
5671 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5673 s%@configure_input@%$configure_input%g
5674 s%@srcdir@%$srcdir%g
5675 s%@top_srcdir@%$top_srcdir%g
5676 s%@INSTALL@%$INSTALL%g
5677 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5681 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5682 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5684 # ac_d sets the value in "#define NAME VALUE" lines.
5685 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5686 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5689 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5690 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5691 ac_uB
='\([ ]\)%\1#\2define\3'
5694 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5695 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5696 ac_eB
='$%\1#\2define\3'
5700 if test "${CONFIG_HEADERS+set}" != set; then
5702 cat >> $CONFIG_STATUS <<EOF
5703 CONFIG_HEADERS="include/config.h"
5705 cat >> $CONFIG_STATUS <<\EOF
5707 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5710 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5711 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5712 *) ac_file_in
="${ac_file}.in" ;;
5715 echo creating
$ac_file
5717 rm -f conftest.frag conftest.
in conftest.out
5718 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5719 cat $ac_file_inputs > conftest.
in
5723 # Transform confdefs.h into a sed script conftest.vals that substitutes
5724 # the proper values into config.h.in to produce config.h. And first:
5725 # Protect against being on the right side of a sed subst in config.status.
5726 # Protect against being in an unquoted here document in config.status.
5728 cat > conftest.hdr
<<\EOF
5731 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5735 sed -n -f conftest.hdr confdefs.h > conftest.vals
5738 # This sed command replaces #undef with comments. This is necessary, for
5739 # example, in the case of _POSIX_SOURCE, which is predefined and required
5740 # on some systems where configure will not decide to define it.
5741 cat >> conftest.vals <<\EOF
5742 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5745 # Break up conftest.vals because some shells have a limit on
5746 # the size of here documents, and old seds have small limits too.
5751 ac_lines=`grep -c . conftest.vals
`
5752 # grep -c gives empty output for an empty file on some AIX systems.
5753 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5754 # Write a limited-size here document to conftest.frag.
5755 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5756 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5758 sed -f conftest.frag conftest.in > conftest.out
5760 mv conftest.out conftest.in
5762 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5764 mv conftest.tail conftest.vals
5768 cat >> $CONFIG_STATUS <<\EOF
5769 rm -f conftest.frag conftest.h
5770 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5771 cat conftest.in >> conftest.h
5773 if cmp -s $ac_file conftest.h 2>/dev/null; then
5774 echo "$ac_file is unchanged"
5777 # Remove last slash and all that follows it. Not all systems have dirname.
5778 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5779 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5780 # The file is in a subdirectory.
5781 test ! -d "$ac_dir" && mkdir "$ac_dir"
5784 mv conftest.h $ac_file
5789 cat >> $CONFIG_STATUS <<EOF
5792 cat >> $CONFIG_STATUS <<\EOF
5796 chmod +x $CONFIG_STATUS
5797 rm -fr confdefs* $ac_clean_files
5798 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5801 if test "$have_x" = "no"
5804 echo "*** Warning: X development files not found. Wine will be built without"
5805 echo "*** X support, which currently does not work, and would probably not be"
5806 echo "*** what you want anyway. You will need to install devel packages of"
5807 echo "*** Xlib/Xfree86 and Xpm at the very least."
5808 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5811 echo "*** Warning: Xpm development files not found. Wine will be built without"
5812 echo "*** Xpm support, which currently does not work. You will need to install"
5813 echo "*** devel packages of Xpm."
5816 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5819 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5820 echo "*** terminal resize support. Consider upgrading ncurses."
5823 if test "$wine_cv_libc_reentrant" = "no"
5826 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5827 echo "*** thread support. Consider upgrading libc to a more recent"
5828 echo "*** reentrant version of libc."
5831 if test "$wine_cv_mesa_version_OK" = "no"
5834 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5835 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5839 echo "Configure finished. Do 'make depend && make' to compile Wine."