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
590 # Check whether --enable-debug or --disable-debug was given.
591 if test "${enable_debug+set}" = set; then
592 enableval
="$enable_debug"
593 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
597 # Check whether --enable-trace or --disable-trace was given.
598 if test "${enable_trace+set}" = set; then
599 enableval
="$enable_trace"
600 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
604 # Check whether --with-reentrant-x or --without-reentrant-x was given.
605 if test "${with_reentrant_x+set}" = set; then
606 withval
="$with_reentrant_x"
616 if test "$DEBUG_MSGS" = "no"
618 cat >> confdefs.h
<<\EOF
619 #define NO_DEBUG_MSGS 1
622 cat >> confdefs.h
<<\EOF
623 #define NO_TRACE_MSGS 1
627 if test "$TRACE_MSGS" = "no"
629 cat >> confdefs.h
<<\EOF
630 #define NO_TRACE_MSGS 1
637 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
638 echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
639 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
640 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 cat > conftestmake
<<\EOF
645 @
echo 'ac_maketemp="${MAKE}"'
647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649 if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_
${ac_make}_set
=yes
652 eval ac_cv_prog_make_
${ac_make}_set
=no
656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
660 echo "$ac_t""no" 1>&6
661 SET_MAKE
="MAKE=${MAKE-make}"
664 # Extract the first word of "gcc", so it can be a program name with args.
665 set dummy gcc
; ac_word
=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC
="$CC" # Let the user override the test.
674 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
675 for ac_dir
in $PATH; do
676 test -z "$ac_dir" && ac_dir
=.
677 if test -f $ac_dir/$ac_word; then
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc
; ac_word
=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 if test -n "$CC"; then
701 ac_cv_prog_CC
="$CC" # Let the user override the test.
703 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
705 for ac_dir
in $PATH; do
706 test -z "$ac_dir" && ac_dir
=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy
$ac_cv_prog_CC
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
726 set dummy
"$ac_dir/$ac_word" "$@"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
737 echo "$ac_t""no" 1>&6
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp
='$CPP $CPPFLAGS'
749 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling
=$ac_cv_prog_cc_cross
753 cat > conftest.
$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
758 if { (eval echo configure
:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
759 ac_cv_prog_cc_works
=yes
760 # If we can't run a trivial program, we are probably using a cross compiler.
761 if (.
/conftest
; exit) 2>/dev
/null
; then
762 ac_cv_prog_cc_cross
=no
764 ac_cv_prog_cc_cross
=yes
767 echo "configure: failed program was:" >&5
768 cat conftest.
$ac_ext >&5
769 ac_cv_prog_cc_works
=no
773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774 if test $ac_cv_prog_cc_works = no
; then
775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780 cross_compiling
=$ac_cv_prog_cc_cross
782 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783 echo "configure:784: checking whether we are using GNU C" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftest.c
<<EOF
792 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
801 if test $ac_cv_prog_gcc = yes; then
803 ac_test_CFLAGS
="${CFLAGS+set}"
804 ac_save_CFLAGS
="$CFLAGS"
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS
="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
831 test "${CFLAGS+set}" = set || CFLAGS
="-g"
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.
$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure
:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err
=`grep -v '^ *+' conftest.out`
858 if test -z "$ac_err"; then
862 echo "configure: failed program was:" >&5
863 cat conftest.
$ac_ext >&5
865 CPP
="${CC-cc} -E -traditional-cpp"
866 cat > conftest.
$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure
:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err
=`grep -v '^ *+' conftest.out`
875 if test -z "$ac_err"; then
879 echo "configure: failed program was:" >&5
880 cat conftest.
$ac_ext >&5
887 ac_cv_prog_CPP
="$CPP"
889 CPP
="$ac_cv_prog_CPP"
891 ac_cv_prog_CPP
="$CPP"
893 echo "$ac_t""$CPP" 1>&6
895 # If we find X, set shell vars x_includes and x_libraries to the
896 # paths, otherwise set no_x=yes.
897 # Uses ac_ vars as temps to allow command line to override cache and checks.
898 # --without-x overrides everything else, but does not touch the cache.
899 echo $ac_n "checking for X""... $ac_c" 1>&6
900 echo "configure:901: checking for X" >&5
902 # Check whether --with-x or --without-x was given.
903 if test "${with_x+set}" = set; then
908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
909 if test "x$with_x" = xno
; then
910 # The user explicitly disabled X.
913 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
914 # Both variables are already set.
917 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 # One or both of the vars are not set, and there is no cached value.
921 ac_x_includes
=NO ac_x_libraries
=NO
923 if mkdir conftestdir
; then
925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
926 cat > Imakefile
<<'EOF'
928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
930 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
934 for ac_extension
in a so sl
; do
935 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
936 test -f $ac_im_libdir/libX11.
$ac_extension; then
937 ac_im_usrlibdir
=$ac_im_libdir; break
940 # Screen out bogus values from the imake configuration. They are
941 # bogus both because they are the default anyway, and because
942 # using them would break gcc on systems where it needs fixed includes.
943 case "$ac_im_incroot" in
945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
947 case "$ac_im_usrlibdir" in
949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
956 if test "$ac_x_includes" = NO
; then
957 # Guess where to find include files, by looking for this one X11 .h file.
958 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
960 # First, try using that file with no special directory specified.
961 cat > conftest.
$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
964 #include <$x_direct_test_include>
966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure
:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err
=`grep -v '^ *+' conftest.out`
969 if test -z "$ac_err"; then
971 # We can compile using X headers with no special include directory.
975 echo "configure: failed program was:" >&5
976 cat conftest.
$ac_ext >&5
978 # Look for the header file in a standard set of common directories.
979 # Check X11 before X11Rn because it is often a symlink to the current release.
991 /usr
/local
/X11
/include \
992 /usr
/local
/X11R
6/include \
993 /usr
/local
/X11R
5/include \
994 /usr
/local
/X11R
4/include \
996 /usr
/local
/include
/X11 \
997 /usr
/local
/include
/X11R6 \
998 /usr
/local
/include
/X11R5 \
999 /usr
/local
/include
/X11R4 \
1003 /usr
/XFree86
/include
/X11 \
1006 /usr
/local
/include \
1007 /usr
/unsupported
/include \
1008 /usr
/athena
/include \
1009 /usr
/local
/x11r
5/include \
1010 /usr
/lpp
/Xamples
/include \
1012 /usr
/openwin
/include \
1013 /usr
/openwin
/share
/include \
1016 if test -r "$ac_dir/$x_direct_test_include"; then
1017 ac_x_includes
=$ac_dir
1023 fi # $ac_x_includes = NO
1025 if test "$ac_x_libraries" = NO
; then
1026 # Check for the libraries.
1028 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1029 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1031 # See if we find them without any special options.
1032 # Don't add to $LIBS permanently.
1033 ac_save_LIBS
="$LIBS"
1034 LIBS
="-l$x_direct_test_library $LIBS"
1035 cat > conftest.
$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1040 ${x_direct_test_function}()
1043 if { (eval echo configure
:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1045 LIBS
="$ac_save_LIBS"
1046 # We can link X programs with no special library path.
1049 echo "configure: failed program was:" >&5
1050 cat conftest.
$ac_ext >&5
1052 LIBS
="$ac_save_LIBS"
1053 # First see if replacing the include by lib works.
1054 # Check X11 before X11Rn because it is often a symlink to the current release.
1055 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1066 /usr
/local
/X11
/lib \
1067 /usr
/local
/X11R
6/lib \
1068 /usr
/local
/X11R
5/lib \
1069 /usr
/local
/X11R
4/lib \
1071 /usr
/local
/lib
/X11 \
1072 /usr
/local
/lib
/X11R6 \
1073 /usr
/local
/lib
/X11R5 \
1074 /usr
/local
/lib
/X11R4 \
1078 /usr
/XFree86
/lib
/X11 \
1082 /usr
/unsupported
/lib \
1084 /usr
/local
/x11r
5/lib \
1085 /usr
/lpp
/Xamples
/lib \
1089 /usr
/openwin
/share
/lib \
1092 for ac_extension
in a so sl
; do
1093 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1094 ac_x_libraries
=$ac_dir
1101 fi # $ac_x_libraries = NO
1103 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1104 # Didn't find X anywhere. Cache the known absence of X.
1105 ac_cv_have_x
="have_x=no"
1107 # Record where we found X for the cache.
1108 ac_cv_have_x
="have_x=yes \
1109 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1113 eval "$ac_cv_have_x"
1116 if test "$have_x" != yes; then
1117 echo "$ac_t""$have_x" 1>&6
1120 # If each of the values was on the command line, it overrides each guess.
1121 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1122 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1123 # Update the cache value to reflect the command line values.
1124 ac_cv_have_x
="have_x=yes \
1125 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1126 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1129 if test "$no_x" = yes; then
1130 # Not all programs may use this symbol, but it does not hurt to define it.
1131 cat >> confdefs.h
<<\EOF
1132 #define X_DISPLAY_MISSING 1
1135 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1137 if test -n "$x_includes"; then
1138 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1141 # It would also be nice to do this for all -L options, not just this one.
1142 if test -n "$x_libraries"; then
1143 X_LIBS
="$X_LIBS -L$x_libraries"
1144 # For Solaris; some versions of Sun CC require a space after -R and
1145 # others require no space. Words are not sufficient . . . .
1146 case "`(uname -sr) 2>/dev/null`" in
1148 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether -R must be followed by a space" >&5
1150 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1151 cat > conftest.
$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1159 if { (eval echo configure
:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1169 if test $ac_R_nospace = yes; then
1170 echo "$ac_t""no" 1>&6
1171 X_LIBS
="$X_LIBS -R$x_libraries"
1173 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1182 if { (eval echo configure
:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1192 if test $ac_R_space = yes; then
1193 echo "$ac_t""yes" 1>&6
1194 X_LIBS
="$X_LIBS -R $x_libraries"
1196 echo "$ac_t""neither works" 1>&6
1199 LIBS
="$ac_xsave_LIBS"
1203 # Check for system-dependent libraries X programs must link with.
1204 # Do this before checking for the system-independent R6 libraries
1205 # (-lICE), since we may need -lsocket or whatever for X linking.
1207 if test "$ISC" = yes; then
1208 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1210 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1211 # libraries were built with DECnet support. And karl@cs.umb.edu says
1212 # the Alpha needs dnet_stub (dnet does not exist).
1213 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1214 echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5
1215 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 ac_save_LIBS
="$LIBS"
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1233 if { (eval echo configure
:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1237 echo "configure: failed program was:" >&5
1238 cat conftest.
$ac_ext >&5
1240 eval "ac_cv_lib_$ac_lib_var=no"
1243 LIBS
="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1250 echo "$ac_t""no" 1>&6
1253 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1254 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1255 echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5
1256 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 ac_save_LIBS
="$LIBS"
1261 LIBS
="-ldnet_stub $LIBS"
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1274 if { (eval echo configure
:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1278 echo "configure: failed program was:" >&5
1279 cat conftest.
$ac_ext >&5
1281 eval "ac_cv_lib_$ac_lib_var=no"
1284 LIBS
="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1291 echo "$ac_t""no" 1>&6
1296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1297 # to get the SysV transport functions.
1298 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1300 # The nsl library prevents programs from opening the X display
1301 # on Irix 5.2, according to dickey@clark.net.
1302 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1303 echo "configure:1304: checking for gethostbyname" >&5
1304 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* System header to define __stub macros and hopefully few prototypes,
1311 which can conflict with char gethostbyname(); below. */
1313 /* Override any gcc2 internal prototype to avoid an error. */
1314 /* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1316 char gethostbyname();
1320 /* The GNU C library defines this for functions which it implements
1321 to always fail with ENOSYS. Some functions are actually named
1322 something starting with __ and the normal name is an alias. */
1323 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1331 if { (eval echo configure
:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1333 eval "ac_cv_func_gethostbyname=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1338 eval "ac_cv_func_gethostbyname=no"
1343 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1347 echo "$ac_t""no" 1>&6
1350 if test $ac_cv_func_gethostbyname = no
; then
1351 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1352 echo "configure:1353: checking for gethostbyname in -lnsl" >&5
1353 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 ac_save_LIBS
="$LIBS"
1359 cat > conftest.
$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 /* Override any gcc2 internal prototype to avoid an error. */
1363 /* We use char because int might match the return type of a gcc2
1364 builtin and then its argument prototype would still apply. */
1365 char gethostbyname();
1371 if { (eval echo configure
:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1373 eval "ac_cv_lib_$ac_lib_var=yes"
1375 echo "configure: failed program was:" >&5
1376 cat conftest.
$ac_ext >&5
1378 eval "ac_cv_lib_$ac_lib_var=no"
1381 LIBS
="$ac_save_LIBS"
1384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1388 echo "$ac_t""no" 1>&6
1393 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1394 # socket/setsockopt and other routines are undefined under SCO ODT
1395 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1396 # on later versions), says simon@lia.di.epfl.ch: it contains
1397 # gethostby* variants that don't use the nameserver (or something).
1398 # -lsocket must be given before -lnsl if both are needed.
1399 # We assume that if connect needs -lnsl, so does gethostbyname.
1400 echo $ac_n "checking for connect""... $ac_c" 1>&6
1401 echo "configure:1402: checking for connect" >&5
1402 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.
$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* System header to define __stub macros and hopefully few prototypes,
1409 which can conflict with char connect(); below. */
1411 /* Override any gcc2 internal prototype to avoid an error. */
1412 /* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1418 /* The GNU C library defines this for functions which it implements
1419 to always fail with ENOSYS. Some functions are actually named
1420 something starting with __ and the normal name is an alias. */
1421 #if defined (__stub_connect) || defined (__stub___connect)
1429 if { (eval echo configure
:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1431 eval "ac_cv_func_connect=yes"
1433 echo "configure: failed program was:" >&5
1434 cat conftest.
$ac_ext >&5
1436 eval "ac_cv_func_connect=no"
1441 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1445 echo "$ac_t""no" 1>&6
1448 if test $ac_cv_func_connect = no
; then
1449 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1450 echo "configure:1451: checking for connect in -lsocket" >&5
1451 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 ac_save_LIBS
="$LIBS"
1456 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 /* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
1469 if { (eval echo configure
:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1471 eval "ac_cv_lib_$ac_lib_var=yes"
1473 echo "configure: failed program was:" >&5
1474 cat conftest.
$ac_ext >&5
1476 eval "ac_cv_lib_$ac_lib_var=no"
1479 LIBS
="$ac_save_LIBS"
1482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1486 echo "$ac_t""no" 1>&6
1491 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1492 echo $ac_n "checking for remove""... $ac_c" 1>&6
1493 echo "configure:1494: checking for remove" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char remove(); below. */
1503 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1510 /* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513 #if defined (__stub_remove) || defined (__stub___remove)
1521 if { (eval echo configure
:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1523 eval "ac_cv_func_remove=yes"
1525 echo "configure: failed program was:" >&5
1526 cat conftest.
$ac_ext >&5
1528 eval "ac_cv_func_remove=no"
1533 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1537 echo "$ac_t""no" 1>&6
1540 if test $ac_cv_func_remove = no
; then
1541 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for remove in -lposix" >&5
1543 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 ac_save_LIBS
="$LIBS"
1548 LIBS
="-lposix $LIBS"
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* Override any gcc2 internal prototype to avoid an error. */
1553 /* We use char because int might match the return type of a gcc2
1554 builtin and then its argument prototype would still apply. */
1561 if { (eval echo configure
:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1563 eval "ac_cv_lib_$ac_lib_var=yes"
1565 echo "configure: failed program was:" >&5
1566 cat conftest.
$ac_ext >&5
1568 eval "ac_cv_lib_$ac_lib_var=no"
1571 LIBS
="$ac_save_LIBS"
1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1578 echo "$ac_t""no" 1>&6
1583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1584 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1585 echo "configure:1586: checking for shmat" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.
$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char shmat(); below. */
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_shmat) || defined (__stub___shmat)
1613 if { (eval echo configure
:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1615 eval "ac_cv_func_shmat=yes"
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1620 eval "ac_cv_func_shmat=no"
1625 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1629 echo "$ac_t""no" 1>&6
1632 if test $ac_cv_func_shmat = no
; then
1633 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1634 echo "configure:1635: checking for shmat in -lipc" >&5
1635 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 ac_save_LIBS
="$LIBS"
1641 cat > conftest.
$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1653 if { (eval echo configure
:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1657 echo "configure: failed program was:" >&5
1658 cat conftest.
$ac_ext >&5
1660 eval "ac_cv_lib_$ac_lib_var=no"
1663 LIBS
="$ac_save_LIBS"
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1670 echo "$ac_t""no" 1>&6
1676 # Check for libraries that X11R6 Xt/Xaw programs need.
1677 ac_save_LDFLAGS
="$LDFLAGS"
1678 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1680 # check for ICE first), but we must link in the order -lSM -lICE or
1681 # we get undefined symbols. So assume we have SM if we have ICE.
1682 # These have to be linked with before -lX11, unlike the other
1683 # libraries we check for below, so use a different variable.
1684 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1685 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1686 echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5
1687 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 ac_save_LIBS
="$LIBS"
1693 cat > conftest.
$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error. */
1697 /* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1699 char IceConnectionNumber();
1702 IceConnectionNumber()
1705 if { (eval echo configure
:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1709 echo "configure: failed program was:" >&5
1710 cat conftest.
$ac_ext >&5
1712 eval "ac_cv_lib_$ac_lib_var=no"
1715 LIBS
="$ac_save_LIBS"
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1722 echo "$ac_t""no" 1>&6
1725 LDFLAGS
="$ac_save_LDFLAGS"
1729 for ac_prog
in 'bison -y' byacc
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy
$ac_prog; ac_word
=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 if test -n "$YACC"; then
1739 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1742 for ac_dir
in $PATH; do
1743 test -z "$ac_dir" && ac_dir
=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_YACC
="$ac_prog"
1752 YACC
="$ac_cv_prog_YACC"
1753 if test -n "$YACC"; then
1754 echo "$ac_t""$YACC" 1>&6
1756 echo "$ac_t""no" 1>&6
1759 test -n "$YACC" && break
1761 test -n "$YACC" || YACC
="yacc"
1763 # Extract the first word of "flex", so it can be a program name with args.
1764 set dummy flex
; ac_word
=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 if test -n "$LEX"; then
1771 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1774 for ac_dir
in $PATH; do
1775 test -z "$ac_dir" && ac_dir
=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_LEX
="flex"
1782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1785 LEX
="$ac_cv_prog_LEX"
1786 if test -n "$LEX"; then
1787 echo "$ac_t""$LEX" 1>&6
1789 echo "$ac_t""no" 1>&6
1792 if test -z "$LEXLIB"
1798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1799 echo "configure:1800: checking for yywrap in -l$ac_lib" >&5
1800 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 ac_save_LIBS
="$LIBS"
1805 LIBS
="-l$ac_lib $LIBS"
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1818 if { (eval echo configure
:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 eval "ac_cv_lib_$ac_lib_var=no"
1828 LIBS
="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1835 echo "$ac_t""no" 1>&6
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841 set dummy ranlib
; ac_word
=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1851 for ac_dir
in $PATH; do
1852 test -z "$ac_dir" && ac_dir
=.
1853 if test -f $ac_dir/$ac_word; then
1854 ac_cv_prog_RANLIB
="ranlib"
1859 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1862 RANLIB
="$ac_cv_prog_RANLIB"
1863 if test -n "$RANLIB"; then
1864 echo "$ac_t""$RANLIB" 1>&6
1866 echo "$ac_t""no" 1>&6
1869 # Find a good install program. We prefer a C program (faster),
1870 # so one script is as good as another. But avoid the broken or
1871 # incompatible versions:
1872 # SysV /etc/install, /usr/sbin/install
1873 # SunOS /usr/etc/install
1874 # IRIX /sbin/install
1876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1878 # ./install, which can be erroneously created by make from ./install.sh.
1879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1880 echo "configure:1881: checking for a BSD compatible install" >&5
1881 if test -z "$INSTALL"; then
1882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1886 for ac_dir
in $PATH; do
1887 # Account for people who put trailing slashes in PATH elements.
1889 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1891 # OSF1 and SCO ODT 3.0 have their own names for install.
1892 for ac_prog
in ginstall installbsd scoinst
install; do
1893 if test -f $ac_dir/$ac_prog; then
1894 if test $ac_prog = install &&
1895 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1896 # AIX install. It has an incompatible calling convention.
1897 # OSF/1 installbsd also uses dspmsg, but is usable.
1900 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL
="$ac_cv_path_install"
1914 # As a last resort, use the slow shell script. We don't cache a
1915 # path for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the path is relative.
1918 INSTALL
="$ac_install_sh"
1921 echo "$ac_t""$INSTALL" 1>&6
1923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924 # It thinks the first close brace ends the variable substitution.
1925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1927 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1935 if ln -s X conftestdata
2>/dev
/null
1938 ac_cv_prog_LN_S
="ln -s"
1943 LN_S
="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1947 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "c2man", so it can be a program name with args.
1951 set dummy c2man
; ac_word
=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 if test -n "$C2MAN"; then
1958 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
1960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1961 for ac_dir
in $PATH; do
1962 test -z "$ac_dir" && ac_dir
=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_C2MAN
="c2man"
1969 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
1972 C2MAN
="$ac_cv_prog_C2MAN"
1973 if test -n "$C2MAN"; then
1974 echo "$ac_t""$C2MAN" 1>&6
1976 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1982 echo "configure:1983: checking for i386_set_ldt in -li386" >&5
1983 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_save_LIBS
="$LIBS"
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1995 char i386_set_ldt();
2001 if { (eval echo configure
:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2003 eval "ac_cv_lib_$ac_lib_var=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 eval "ac_cv_lib_$ac_lib_var=no"
2011 LIBS
="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2018 cat >> confdefs.h
<<EOF
2019 #define $ac_tr_lib 1
2025 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2029 echo "configure:2030: checking for _oss_ioctl in -lossaudio" >&5
2030 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 ac_save_LIBS
="$LIBS"
2035 LIBS
="-lossaudio $LIBS"
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 /* Override any gcc2 internal prototype to avoid an error. */
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2048 if { (eval echo configure
:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2052 echo "configure: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 eval "ac_cv_lib_$ac_lib_var=no"
2058 LIBS
="$ac_save_LIBS"
2061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2065 cat >> confdefs.h
<<EOF
2066 #define $ac_tr_lib 1
2069 LIBS
="-lossaudio $LIBS"
2072 echo "$ac_t""no" 1>&6
2075 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2076 echo "configure:2077: checking for iswalnum in -lw" >&5
2077 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 ac_save_LIBS
="$LIBS"
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2095 if { (eval echo configure
:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2102 eval "ac_cv_lib_$ac_lib_var=no"
2105 LIBS
="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2112 cat >> confdefs.h
<<EOF
2113 #define $ac_tr_lib 1
2119 echo "$ac_t""no" 1>&6
2122 for ac_func
in gethostbyname
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2153 if { (eval echo configure
:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2155 eval "ac_cv_func_$ac_func=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_func_$ac_func=no"
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h
<<EOF
2169 #define $ac_tr_func 1
2173 echo "$ac_t""no" 1>&6
2177 if test "$ac_cv_func_gethostbyname" = "no"
2179 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2180 echo "configure:2181: checking for gethostbyname in -lnsl" >&5
2181 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS
="$LIBS"
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char gethostbyname();
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS
="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h
<<EOF
2217 #define $ac_tr_lib 1
2223 echo "$ac_t""no" 1>&6
2227 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2228 echo "configure:2229: checking for setrunelocale in -lxpg4" >&5
2229 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 ac_save_LIBS
="$LIBS"
2235 cat > conftest.
$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2241 char setrunelocale();
2247 if { (eval echo configure
:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2249 eval "ac_cv_lib_$ac_lib_var=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.
$ac_ext >&5
2254 eval "ac_cv_lib_$ac_lib_var=no"
2257 LIBS
="$ac_save_LIBS"
2260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2264 cat >> confdefs.h
<<EOF
2265 #define $ac_tr_lib 1
2271 echo "$ac_t""no" 1>&6
2274 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2275 echo "configure:2276: checking for dlopen in -ldl" >&5
2276 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 ac_save_LIBS
="$LIBS"
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2294 if { (eval echo configure
:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2296 eval "ac_cv_lib_$ac_lib_var=yes"
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2301 eval "ac_cv_lib_$ac_lib_var=no"
2304 LIBS
="$ac_save_LIBS"
2307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2311 cat >> confdefs.h
<<EOF
2312 #define $ac_tr_lib 1
2318 echo "$ac_t""no" 1>&6
2322 if test "$have_x" = "yes"
2325 ac_save_CPPFLAGS
="$CPPFLAGS"
2326 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2328 for ac_hdr
in X11
/xpm.h
2330 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_hdr" >&5
2333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2341 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2342 { (eval echo configure
:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2343 ac_err
=`grep -v '^ *+' conftest.out`
2344 if test -z "$ac_err"; then
2346 eval "ac_cv_header_$ac_safe=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2352 eval "ac_cv_header_$ac_safe=no"
2356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2357 echo "$ac_t""yes" 1>&6
2358 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2359 cat >> confdefs.h
<<EOF
2360 #define $ac_tr_hdr 1
2364 echo "$ac_t""no" 1>&6
2368 if test "$ac_cv_header_X11_xpm_h" = "yes"
2370 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2371 echo "configure:2372: checking for XpmCreatePixmapFromData in -lXpm" >&5
2372 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 ac_save_LIBS
="$LIBS"
2377 LIBS
="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 /* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384 char XpmCreatePixmapFromData();
2387 XpmCreatePixmapFromData()
2390 if { (eval echo configure
:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2392 eval "ac_cv_lib_$ac_lib_var=yes"
2394 echo "configure: failed program was:" >&5
2395 cat conftest.
$ac_ext >&5
2397 eval "ac_cv_lib_$ac_lib_var=no"
2400 LIBS
="$ac_save_LIBS"
2403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 cat >> confdefs.h
<<\EOF
2406 #define HAVE_LIBXXPM 1
2408 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2410 echo "$ac_t""no" 1>&6
2415 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
2417 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure
:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err
=`grep -v '^ *+' conftest.out`
2431 if test -z "$ac_err"; then
2433 eval "ac_cv_header_$ac_safe=yes"
2436 echo "configure: failed program was:" >&5
2437 cat conftest.
$ac_ext >&5
2439 eval "ac_cv_header_$ac_safe=no"
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h
<<EOF
2447 #define $ac_tr_hdr 1
2451 echo "$ac_t""no" 1>&6
2455 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2457 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2458 echo "configure:2459: checking for XShmQueryExtension in -lXext" >&5
2459 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_save_LIBS
="$LIBS"
2464 LIBS
="-lXext $X_LIBS -lXext -lX11 $LIBS"
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471 char XShmQueryExtension();
2474 XShmQueryExtension()
2477 if { (eval echo configure
:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2479 eval "ac_cv_lib_$ac_lib_var=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 eval "ac_cv_lib_$ac_lib_var=no"
2487 LIBS
="$ac_save_LIBS"
2490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 cat >> confdefs.h
<<\EOF
2493 #define HAVE_LIBXXSHM 1
2497 echo "$ac_t""no" 1>&6
2501 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
2503 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_hdr" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.
$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2515 { (eval echo configure
:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2516 ac_err
=`grep -v '^ *+' conftest.out`
2517 if test -z "$ac_err"; then
2519 eval "ac_cv_header_$ac_safe=yes"
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2525 eval "ac_cv_header_$ac_safe=no"
2529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2532 cat >> confdefs.h
<<EOF
2533 #define $ac_tr_hdr 1
2537 echo "$ac_t""no" 1>&6
2541 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2543 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2544 echo "configure:2545: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2545 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 ac_save_LIBS
="$LIBS"
2550 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2551 cat > conftest.
$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 /* Override any gcc2 internal prototype to avoid an error. */
2555 /* We use char because int might match the return type of a gcc2
2556 builtin and then its argument prototype would still apply. */
2557 char XF86DGAQueryExtension();
2560 XF86DGAQueryExtension()
2563 if { (eval echo configure
:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2565 eval "ac_cv_lib_$ac_lib_var=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 eval "ac_cv_lib_$ac_lib_var=no"
2573 LIBS
="$ac_save_LIBS"
2576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2578 cat >> confdefs.h
<<\EOF
2579 #define HAVE_LIBXXF86DGA 1
2581 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
2583 echo "$ac_t""no" 1>&6
2588 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
2590 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_hdr" >&5
2593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2601 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2602 { (eval echo configure
:2603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2603 ac_err
=`grep -v '^ *+' conftest.out`
2604 if test -z "$ac_err"; then
2606 eval "ac_cv_header_$ac_safe=yes"
2609 echo "configure: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2612 eval "ac_cv_header_$ac_safe=no"
2616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2617 echo "$ac_t""yes" 1>&6
2618 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2619 cat >> confdefs.h
<<EOF
2620 #define $ac_tr_hdr 1
2624 echo "$ac_t""no" 1>&6
2628 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2630 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2631 echo "configure:2632: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2632 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 ac_save_LIBS
="$LIBS"
2637 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2638 cat > conftest.
$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 /* Override any gcc2 internal prototype to avoid an error. */
2642 /* We use char because int might match the return type of a gcc2
2643 builtin and then its argument prototype would still apply. */
2644 char XF86VidModeQueryExtension();
2647 XF86VidModeQueryExtension()
2650 if { (eval echo configure
:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2652 eval "ac_cv_lib_$ac_lib_var=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 eval "ac_cv_lib_$ac_lib_var=no"
2660 LIBS
="$ac_save_LIBS"
2663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 cat >> confdefs.h
<<\EOF
2666 #define HAVE_LIBXXF86VM 1
2668 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
2670 echo "$ac_t""no" 1>&6
2675 for ac_hdr
in GL
/gl.h GL
/osmesa.h
2677 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2679 echo "configure:2680: checking for $ac_hdr" >&5
2680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 cat > conftest.
$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2688 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2689 { (eval echo configure
:2690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2690 ac_err
=`grep -v '^ *+' conftest.out`
2691 if test -z "$ac_err"; then
2693 eval "ac_cv_header_$ac_safe=yes"
2696 echo "configure: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2699 eval "ac_cv_header_$ac_safe=no"
2703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2706 cat >> confdefs.h
<<EOF
2707 #define $ac_tr_hdr 1
2711 echo "$ac_t""no" 1>&6
2715 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2717 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
2718 echo "configure:2719: checking "for up-to-date Mesa version
"" >&5
2719 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2730 if { (eval echo configure
:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 wine_cv_mesa_version_OK
="yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 wine_cv_mesa_version_OK
="no"
2744 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
2746 if test "$wine_cv_mesa_version_OK" = "yes"
2748 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
2749 echo "configure:2750: checking for OSMesaCreateContext in -lMesaGL" >&5
2750 ac_lib_var
=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
2751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 ac_save_LIBS
="$LIBS"
2755 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 /* Override any gcc2 internal prototype to avoid an error. */
2760 /* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2762 char OSMesaCreateContext();
2765 OSMesaCreateContext()
2768 if { (eval echo configure
:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2770 eval "ac_cv_lib_$ac_lib_var=yes"
2772 echo "configure: failed program was:" >&5
2773 cat conftest.
$ac_ext >&5
2775 eval "ac_cv_lib_$ac_lib_var=no"
2778 LIBS
="$ac_save_LIBS"
2781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h
<<\EOF
2784 #define HAVE_LIBMESAGL 1
2786 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
2788 echo "$ac_t""no" 1>&6
2794 CPPFLAGS
="$ac_save_CPPFLAGS"
2801 for ac_hdr
in ncurses.h
2803 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_hdr" >&5
2806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 cat > conftest.
$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2814 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2815 { (eval echo configure
:2816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2816 ac_err
=`grep -v '^ *+' conftest.out`
2817 if test -z "$ac_err"; then
2819 eval "ac_cv_header_$ac_safe=yes"
2822 echo "configure: failed program was:" >&5
2823 cat conftest.
$ac_ext >&5
2825 eval "ac_cv_header_$ac_safe=no"
2829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2832 cat >> confdefs.h
<<EOF
2833 #define $ac_tr_hdr 1
2837 echo "$ac_t""no" 1>&6
2841 if test "$ac_cv_header_ncurses_h" = "yes"
2843 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
2844 echo "configure:2845: checking for waddch in -lncurses" >&5
2845 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
2846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 ac_save_LIBS
="$LIBS"
2850 LIBS
="-lncurses $LIBS"
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2863 if { (eval echo configure
:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2865 eval "ac_cv_lib_$ac_lib_var=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 eval "ac_cv_lib_$ac_lib_var=no"
2873 LIBS
="$ac_save_LIBS"
2876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2879 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2880 cat >> confdefs.h
<<EOF
2881 #define $ac_tr_lib 1
2884 LIBS
="-lncurses $LIBS"
2887 echo "$ac_t""no" 1>&6
2891 if test "$ac_cv_lib_ncurses_waddch" = "yes"
2893 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
2894 echo "configure:2895: checking for resizeterm in -lncurses" >&5
2895 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
2896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 ac_save_LIBS
="$LIBS"
2900 LIBS
="-lncurses $LIBS"
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 /* Override any gcc2 internal prototype to avoid an error. */
2905 /* We use char because int might match the return type of a gcc2
2906 builtin and then its argument prototype would still apply. */
2913 if { (eval echo configure
:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2915 eval "ac_cv_lib_$ac_lib_var=yes"
2917 echo "configure: failed program was:" >&5
2918 cat conftest.
$ac_ext >&5
2920 eval "ac_cv_lib_$ac_lib_var=no"
2923 LIBS
="$ac_save_LIBS"
2926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 cat >> confdefs.h
<<\EOF
2929 #define HAVE_RESIZETERM 1
2933 echo "$ac_t""no" 1>&6
2936 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
2937 echo "configure:2938: checking for getbkgd in -lncurses" >&5
2938 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
2939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_save_LIBS
="$LIBS"
2943 LIBS
="-lncurses $LIBS"
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2956 if { (eval echo configure
:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2958 eval "ac_cv_lib_$ac_lib_var=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 eval "ac_cv_lib_$ac_lib_var=no"
2966 LIBS
="$ac_save_LIBS"
2969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 cat >> confdefs.h
<<\EOF
2972 #define HAVE_GETBKGD 1
2976 echo "$ac_t""no" 1>&6
2980 for ac_hdr
in curses.h
2982 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_hdr" >&5
2985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2993 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2994 { (eval echo configure
:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2995 ac_err
=`grep -v '^ *+' conftest.out`
2996 if test -z "$ac_err"; then
2998 eval "ac_cv_header_$ac_safe=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3004 eval "ac_cv_header_$ac_safe=no"
3008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3011 cat >> confdefs.h
<<EOF
3012 #define $ac_tr_hdr 1
3016 echo "$ac_t""no" 1>&6
3020 if test "$ac_cv_header_curses_h" = "yes"
3022 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3023 echo "configure:3024: checking for waddch in -lcurses" >&5
3024 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 ac_save_LIBS
="$LIBS"
3029 LIBS
="-lcurses $LIBS"
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3042 if { (eval echo configure
:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3044 eval "ac_cv_lib_$ac_lib_var=yes"
3046 echo "configure: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3049 eval "ac_cv_lib_$ac_lib_var=no"
3052 LIBS
="$ac_save_LIBS"
3055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3056 echo "$ac_t""yes" 1>&6
3057 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3059 cat >> confdefs.h
<<EOF
3060 #define $ac_tr_lib 1
3063 LIBS
="-lcurses $LIBS"
3066 echo "$ac_t""no" 1>&6
3069 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3070 echo "configure:3071: checking for resizeterm in -lcurses" >&5
3071 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 ac_save_LIBS
="$LIBS"
3076 LIBS
="-lcurses $LIBS"
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3089 if { (eval echo configure
:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3091 eval "ac_cv_lib_$ac_lib_var=yes"
3093 echo "configure: failed program was:" >&5
3094 cat conftest.
$ac_ext >&5
3096 eval "ac_cv_lib_$ac_lib_var=no"
3099 LIBS
="$ac_save_LIBS"
3102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 cat >> confdefs.h
<<\EOF
3105 #define HAVE_RESIZETERM 1
3109 echo "$ac_t""no" 1>&6
3112 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3113 echo "configure:3114: checking for getbkgd in -lcurses" >&5
3114 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 ac_save_LIBS
="$LIBS"
3119 LIBS
="-lcurses $LIBS"
3120 cat > conftest.
$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* Override any gcc2 internal prototype to avoid an error. */
3124 /* We use char because int might match the return type of a gcc2
3125 builtin and then its argument prototype would still apply. */
3132 if { (eval echo configure
:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3134 eval "ac_cv_lib_$ac_lib_var=yes"
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 eval "ac_cv_lib_$ac_lib_var=no"
3142 LIBS
="$ac_save_LIBS"
3145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 cat >> confdefs.h
<<\EOF
3148 #define HAVE_GETBKGD 1
3152 echo "$ac_t""no" 1>&6
3158 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3159 echo "configure:3160: checking "for GNU style IPX support
"" >&5
3160 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 cat > conftest.
$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <sys/socket.h>
3167 #include <netipx/ipx.h>
3169 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3172 if { (eval echo configure
:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3174 cat >> confdefs.h
<<\EOF
3175 #define HAVE_IPX_GNU 1
3178 ac_cv_c_ipx_gnu
="yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3183 ac_cv_c_ipx_gnu
="no"
3189 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3191 if test "$ac_cv_c_ipx_gnu" = "no"
3193 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
3194 echo "configure:3195: checking "for linux style IPX support
"" >&5
3195 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <sys/socket.h>
3202 #include <asm/types.h>
3203 #include <linux/ipx.h>
3205 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3208 if { (eval echo configure
:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3210 cat >> confdefs.h
<<\EOF
3211 #define HAVE_IPX_LINUX 1
3214 ac_cv_c_ipx_linux
="yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.
$ac_ext >&5
3219 ac_cv_c_ipx_linux
="no"
3225 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3228 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
3230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure
:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err
=`grep -v '^ *+' conftest.out`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_hdr 1
3264 echo "$ac_t""no" 1>&6
3269 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
3270 echo "configure:3271: checking "for Open Sound System
"" >&5
3271 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3278 #if defined(HAVE_SYS_SOUNDCARD_H)
3279 #include <sys/soundcard.h>
3280 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3281 #include <machine/soundcard.h>
3282 #elif defined(HAVE_SOUNDCARD_H)
3283 #include <soundcard.h>
3289 /* check for one of the Open Sound System specific SNDCTL_ defines */
3290 #if !defined(SNDCTL_DSP_STEREO)
3291 #error No open sound system
3296 if { (eval echo configure
:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 ac_cv_c_opensoundsystem
="yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 ac_cv_c_opensoundsystem
="no"
3308 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3310 if test "$ac_cv_c_opensoundsystem" = "yes"
3312 cat >> confdefs.h
<<\EOF
3319 echo $ac_n "checking "for union semun
"""... $ac_c" 1>&6
3320 echo "configure:3321: checking "for union semun
"" >&5
3321 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <sys/types.h>
3328 #include <sys/sem.h>
3333 if { (eval echo configure
:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3335 ac_cv_c_union_semun
="yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 ac_cv_c_union_semun
="no"
3345 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
3346 if test "$ac_cv_c_union_semun" = "yes"
3348 cat >> confdefs.h
<<\EOF
3349 #define HAVE_UNION_SEMUN 1
3354 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
3357 if test "x${GCC}" = "xyes"
3359 CFLAGS
="$CFLAGS -Wall"
3360 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
3361 echo "configure:3362: checking "for gcc strength-reduce bug
"" >&5
3362 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 if test "$cross_compiling" = yes; then
3366 ac_cv_c_gcc_strength_bug
="yes"
3368 cat > conftest.
$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3373 static int Array[3];
3376 for(i=0; i<B; i++) Array[i] = i - 3;
3377 exit( Array[1] != -2 );
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3382 ac_cv_c_gcc_strength_bug
="no"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 ac_cv_c_gcc_strength_bug
="yes"
3394 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3395 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3397 CFLAGS
="$CFLAGS -fno-strength-reduce"
3402 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
3403 echo "configure:3404: checking "whether external symbols need an underscore prefix
"" >&5
3404 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3408 LIBS
="conftest_asm.s $LIBS"
3409 cat > conftest_asm.s
<<EOF
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3419 if (ac_test) return 1
3422 if { (eval echo configure
:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3424 ac_cv_c_extern_prefix
="yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.
$ac_ext >&5
3429 ac_cv_c_extern_prefix
="no"
3435 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3436 if test "$ac_cv_c_extern_prefix" = "yes"
3438 cat >> confdefs.h
<<\EOF
3439 #define NEED_UNDERSCORE_PREFIX 1
3445 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
3446 echo "configure:3447: checking "whether assembler accepts .string
"" >&5
3447 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3451 LIBS
="conftest_asm.s $LIBS"
3452 cat > conftest_asm.s
<<EOF
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3463 if { (eval echo configure
:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3465 ac_cv_c_asm_string
="yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.
$ac_ext >&5
3470 ac_cv_c_asm_string
="no"
3476 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3477 if test "$ac_cv_c_asm_string" = "yes"
3479 cat >> confdefs.h
<<\EOF
3480 #define HAVE_ASM_STRING 1
3488 if test "$LIB_TARGET" = "libwine.so.1.0"
3490 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
3491 echo "configure:3492: checking "whether we can build a Linux dll
"" >&5
3492 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 saved_cflags
=$CFLAGS
3496 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3505 if { (eval echo configure
:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3507 ac_cv_c_dll_linux
="yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 ac_cv_c_dll_linux
="no"
3515 CFLAGS
=$saved_cflags
3519 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3520 if test "$ac_cv_c_dll_linux" = "yes"
3523 LDSHARED
="\$(CC) -shared -Wl,-soname,libwine.so"
3525 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
3526 echo "configure:3527: checking "whether we can build a NetBSD dll
"" >&5
3527 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 saved_cflags
=$CFLAGS
3531 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3532 cat > conftest.
$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3540 if { (eval echo configure
:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3542 ac_cv_c_dll_netbsd
="yes"
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 ac_cv_c_dll_netbsd
="no"
3550 CFLAGS
=$saved_cflags
3554 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3555 if test "$ac_cv_c_dll_netbsd" = "yes"
3558 LDSHARED
="ld -Bshareable -Bforcearchive"
3561 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3563 LIB_TARGET
="libwine.a"
3570 echo $ac_n "checking "for reentrant libc
"""... $ac_c" 1>&6
3571 echo "configure:3572: checking "for reentrant libc
"" >&5
3572 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 if test "$cross_compiling" = yes; then
3576 wine_cv_libc_reentrant
=yes
3578 cat > conftest.
$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3583 int *__errno_location(){return &myerrno;}
3584 main(){connect(0,buf,255); exit(!myerrno);}
3586 if { (eval echo configure
:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3588 wine_cv_libc_reentrant
=yes
3590 echo "configure: failed program was:" >&5
3591 cat conftest.
$ac_ext >&5
3593 wine_cv_libc_reentrant
=no
3600 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
3601 if test "$wine_cv_libc_reentrant" = "no"
3603 cat >> confdefs.h
<<\EOF
3604 #define NO_REENTRANT_LIBC 1
3610 if test "$have_x" = "yes"
3612 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
3613 echo "configure:3614: checking "for reentrant X libraries
"" >&5
3614 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 if test "x$with_reentrant_x" = "xno"
3619 wine_cv_x_reentrant
=no
3622 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
3623 if test -r $dir/libX11.so
; then
3624 libX11_check
="-D $dir/libX11.so"
3627 if test -r $dir/libX11.a
; then
3628 libX11_check
="$dir/libX11.a"
3632 if test "$libX11_check" != "none"; then
3633 if nm
$libX11_check |
grep __errno_location
>/dev
/null
2>&1
3635 wine_cv_x_reentrant
=yes
3637 wine_cv_x_reentrant
=no
3640 wine_cv_x_reentrant
=unknown
3645 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
3647 wine_cv_x_reentrant
=no
3649 if test "$wine_cv_x_reentrant" = "no"
3651 cat >> confdefs.h
<<\EOF
3652 #define NO_REENTRANT_X11 1
3658 for ac_func
in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm
usleep wait4 waitpid vfscanf
3660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_func" >&5
3662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* System header to define __stub macros and hopefully few prototypes,
3669 which can conflict with char $ac_func(); below. */
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3678 /* The GNU C library defines this for functions which it implements
3679 to always fail with ENOSYS. Some functions are actually named
3680 something starting with __ and the normal name is an alias. */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3689 if { (eval echo configure
:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3691 eval "ac_cv_func_$ac_func=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.
$ac_ext >&5
3696 eval "ac_cv_func_$ac_func=no"
3701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3704 cat >> confdefs.h
<<EOF
3705 #define $ac_tr_func 1
3709 echo "$ac_t""no" 1>&6
3713 for ac_hdr
in wctype.h sys
/syscall.h syscall.h sys
/param.h sys
/vfs.h sys
/mount.h sys
/statfs.h float.h linux
/cdrom.h linux
/ucdrom.h sys
/cdio.h sys
/filio.h sys
/modem.h
strings.h sys
/strtio.h dlfcn.h unistd.h sys
/sockio.h net
/if.h netinet
/in.h sys
/file.h libio.h curses.h ncurses.h elf.h arpa
/nameser.h resolv.h
3715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3717 echo "configure:3718: checking for $ac_hdr" >&5
3718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3727 { (eval echo configure
:3728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3728 ac_err
=`grep -v '^ *+' conftest.out`
3729 if test -z "$ac_err"; then
3731 eval "ac_cv_header_$ac_safe=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.
$ac_ext >&5
3737 eval "ac_cv_header_$ac_safe=no"
3741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3744 cat >> confdefs.h
<<EOF
3745 #define $ac_tr_hdr 1
3749 echo "$ac_t""no" 1>&6
3753 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3754 echo "configure:3755: checking whether stat file-mode macros are broken" >&5
3755 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 #include <sys/types.h>
3762 #include <sys/stat.h>
3764 #if defined(S_ISBLK) && defined(S_IFDIR)
3765 # if S_ISBLK (S_IFDIR)
3770 #if defined(S_ISBLK) && defined(S_IFCHR)
3771 # if S_ISBLK (S_IFCHR)
3776 #if defined(S_ISLNK) && defined(S_IFREG)
3777 # if S_ISLNK (S_IFREG)
3782 #if defined(S_ISSOCK) && defined(S_IFREG)
3783 # if S_ISSOCK (S_IFREG)
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 egrep "You lose" >/dev
/null
2>&1; then
3792 ac_cv_header_stat_broken
=yes
3795 ac_cv_header_stat_broken
=no
3801 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3802 if test $ac_cv_header_stat_broken = yes; then
3803 cat >> confdefs.h
<<\EOF
3804 #define STAT_MACROS_BROKEN 1
3809 echo $ac_n "checking for working const""... $ac_c" 1>&6
3810 echo "configure:3811: checking for working const" >&5
3811 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.
$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3820 /* Ultrix mips cc rejects this. */
3821 typedef int charset[2]; const charset x;
3822 /* SunOS 4.1.1 cc rejects this. */
3823 char const *const *ccp;
3825 /* NEC SVR4.0.2 mips cc rejects this. */
3826 struct point {int x, y;};
3827 static struct point const zero = {0,0};
3828 /* AIX XL C 1.02.0.0 rejects this.
3829 It does not let you subtract one const X* pointer from another in an arm
3830 of an if-expression whose if-part is not a constant expression */
3831 const char *g = "string";
3832 ccp = &g + (g ? g-g : 0);
3833 /* HPUX 7.0 cc rejects these. */
3836 ccp = (char const *const *) p;
3837 { /* SCO 3.2v4 cc rejects this. */
3839 char const *s = 0 ? (char *) 0 : (char const *) 0;
3843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3845 const int *foo = &x[0];
3848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3849 typedef const int *iptr;
3853 { /* AIX XL C 1.02.0.0 rejects this saying
3854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3855 struct s { int j; const int *ap[3]; };
3856 struct s *b; b->j = 5;
3858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3864 if { (eval echo configure
:3865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 echo "configure: failed program was:" >&5
3869 cat conftest.
$ac_ext >&5
3876 echo "$ac_t""$ac_cv_c_const" 1>&6
3877 if test $ac_cv_c_const = no
; then
3878 cat >> confdefs.h
<<\EOF
3884 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3885 echo "configure:3886: checking for ANSI C header files" >&5
3886 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3897 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3898 { (eval echo configure
:3899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3899 ac_err
=`grep -v '^ *+' conftest.out`
3900 if test -z "$ac_err"; then
3902 ac_cv_header_stdc
=yes
3905 echo "configure: failed program was:" >&5
3906 cat conftest.
$ac_ext >&5
3908 ac_cv_header_stdc
=no
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 egrep "memchr" >/dev
/null
2>&1; then
3924 ac_cv_header_stdc
=no
3930 if test $ac_cv_header_stdc = yes; then
3931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 egrep "free" >/dev
/null
2>&1; then
3942 ac_cv_header_stdc
=no
3948 if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3953 cat > conftest.
$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960 int main () { int i; for (i = 0; i < 256; i++)
3961 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3965 if { (eval echo configure
:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 ac_cv_header_stdc
=no
3980 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3981 if test $ac_cv_header_stdc = yes; then
3982 cat >> confdefs.h
<<\EOF
3983 #define STDC_HEADERS 1
3988 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3989 echo "configure:3990: checking for size_t" >&5
3990 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <sys/types.h>
4002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4005 ac_cv_type_size_t
=yes
4008 ac_cv_type_size_t
=no
4013 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4014 if test $ac_cv_type_size_t = no
; then
4015 cat >> confdefs.h
<<\EOF
4016 #define size_t unsigned
4021 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4022 echo "configure:4023: checking size of long long" >&5
4023 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4026 if test "$cross_compiling" = yes; then
4027 ac_cv_sizeof_long_long
=0
4029 cat > conftest.
$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4035 FILE *f=fopen("conftestval", "w");
4037 fprintf(f, "%d\n", sizeof(long long));
4041 if { (eval echo configure
:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4043 ac_cv_sizeof_long_long
=`cat conftestval`
4045 echo "configure: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4048 ac_cv_sizeof_long_long
=0
4054 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4055 cat >> confdefs.h
<<EOF
4056 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4062 if test $ac_cv_func_sendmsg = no
; then
4063 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
4064 echo "configure:4065: checking for sendmsg in -lsocket" >&5
4065 ac_lib_var
=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
4066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 ac_save_LIBS
="$LIBS"
4070 LIBS
="-lsocket $LIBS"
4071 cat > conftest.
$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4083 if { (eval echo configure
:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4085 eval "ac_cv_lib_$ac_lib_var=yes"
4087 echo "configure: failed program was:" >&5
4088 cat conftest.
$ac_ext >&5
4090 eval "ac_cv_lib_$ac_lib_var=no"
4093 LIBS
="$ac_save_LIBS"
4096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4100 cat >> confdefs.h
<<EOF
4101 #define $ac_tr_lib 1
4104 LIBS
="-lsocket $LIBS"
4107 echo "$ac_t""no" 1>&6
4113 if test "$ac_cv_header_sys_vfs_h" = "yes"
4115 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
4116 echo "configure:4117: checking "whether sys
/vfs.h defines statfs
"" >&5
4117 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.
$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4124 #include <sys/types.h>
4125 #ifdef HAVE_SYS_PARAM_H
4126 # include <sys/param.h>
4128 #include <sys/vfs.h>
4134 memset(&stfs,0,sizeof(stfs));
4138 if { (eval echo configure
:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4140 wine_cv_sys_vfs_has_statfs
=yes
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 wine_cv_sys_vfs_has_statfs
=no
4152 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4153 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4155 cat >> confdefs.h
<<\EOF
4156 #define STATFS_DEFINED_BY_SYS_VFS 1
4162 if test "$ac_cv_header_sys_statfs_h" = "yes"
4164 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
4165 echo "configure:4166: checking "whether sys
/statfs.h defines statfs
"" >&5
4166 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.
$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4173 #include <sys/types.h>
4174 #ifdef HAVE_SYS_PARAM_H
4175 # include <sys/param.h>
4177 #include <sys/statfs.h>
4185 if { (eval echo configure
:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 wine_cv_sys_statfs_has_statfs
=yes
4189 echo "configure: failed program was:" >&5
4190 cat conftest.
$ac_ext >&5
4192 wine_cv_sys_statfs_has_statfs
=no
4199 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4200 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4202 cat >> confdefs.h
<<\EOF
4203 #define STATFS_DEFINED_BY_SYS_STATFS 1
4209 if test "$ac_cv_header_sys_mount_h" = "yes"
4211 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
4212 echo "configure:4213: checking "whether sys
/mount.h defines statfs
"" >&5
4213 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4220 #include <sys/types.h>
4221 #ifdef HAVE_SYS_PARAM_H
4222 # include <sys/param.h>
4224 #include <sys/mount.h>
4232 if { (eval echo configure
:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4234 wine_cv_sys_mount_has_statfs
=yes
4236 echo "configure: failed program was:" >&5
4237 cat conftest.
$ac_ext >&5
4239 wine_cv_sys_mount_has_statfs
=no
4246 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4247 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4249 cat >> confdefs.h
<<\EOF
4250 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4257 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
4258 echo "configure:4259: checking "for statfs.f_bfree
"" >&5
4259 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 if test "x$statfs_bfree" = "xno"
4264 wine_cv_statfs_bfree
=no
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4270 #include <sys/types.h>
4271 #ifdef HAVE_SYS_PARAM_H
4272 # include <sys/param.h>
4274 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4275 # include <sys/mount.h>
4277 # ifdef STATFS_DEFINED_BY_SYS_VFS
4278 # include <sys/vfs.h>
4280 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4281 # include <sys/statfs.h>
4294 if { (eval echo configure
:4295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 wine_cv_statfs_bfree
=yes
4298 echo "configure: failed program was:" >&5
4299 cat conftest.
$ac_ext >&5
4301 wine_cv_statfs_bfree
=no
4308 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4309 if test "$wine_cv_statfs_bfree" = "yes"
4311 cat >> confdefs.h
<<\EOF
4312 #define STATFS_HAS_BFREE 1
4317 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
4318 echo "configure:4319: checking "for statfs.f_bavail
"" >&5
4319 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 if test "x$statfs_bavail" = "xno"
4324 wine_cv_statfs_bavail
=no
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4330 #include <sys/types.h>
4331 #ifdef HAVE_SYS_PARAM_H
4332 # include <sys/param.h>
4334 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4335 # include <sys/mount.h>
4337 # ifdef STATFS_DEFINED_BY_SYS_VFS
4338 # include <sys/vfs.h>
4340 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4341 # include <sys/statfs.h>
4354 if { (eval echo configure
:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 wine_cv_statfs_bavail
=yes
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 wine_cv_statfs_bavail
=no
4368 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
4369 if test "$wine_cv_statfs_bavail" = "yes"
4371 cat >> confdefs.h
<<\EOF
4372 #define STATFS_HAS_BAVAIL 1
4378 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
4379 echo "configure:4380: checking "for working sigaltstack
"" >&5
4380 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 if test "$cross_compiling" = yes; then
4384 ac_cv_c_working_sigaltstack
="no"
4387 cat > conftest.
$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4392 #include <time.h> /* <sys/time.h> ? bad magic without end */
4393 #include <sys/types.h>
4394 #include <sys/signal.h>
4395 #ifdef HAVE_SYS_PARAM_H
4396 # include <sys/param.h>
4398 #ifdef HAVE_SYSCALL_H
4399 # include <syscall.h>
4401 # ifdef HAVE_SYS_SYSCALL_H
4402 # include <sys/syscall.h>
4406 unsigned char *xaltstack;
4409 main(int argc,char **argv) {
4410 struct sigaltstack ss;
4412 xaltstack = malloc(16384);
4413 ss.ss_sp = xaltstack;
4416 if (sigaltstack(&ss, NULL) < 0) {
4417 /* this catches the glibc case */
4418 perror("sigaltstack");
4419 return (1); /* aka exit(1) aka fail */
4421 /* assume it works. */
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4428 ac_cv_c_working_sigaltstack
="yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 ac_cv_c_working_sigaltstack
="no"
4440 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
4442 if test "$ac_cv_c_working_sigaltstack" = "yes"
4444 cat >> confdefs.h
<<\EOF
4445 #define HAVE_WORKING_SIGALTSTACK 1
4452 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
4453 echo "configure:4454: checking "for msg_accrights
in struct msghdr
"" >&5
4454 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.
$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 #include <sys/types.h>
4461 #include <sys/socket.h>
4463 struct msghdr hdr; hdr.msg_accrights=0
4466 if { (eval echo configure
:4467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4468 ac_cv_c_msg_accrights
="yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.
$ac_ext >&5
4473 ac_cv_c_msg_accrights
="no"
4478 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
4479 if test "$ac_cv_c_msg_accrights" = "yes"
4481 cat >> confdefs.h
<<\EOF
4482 #define HAVE_MSGHDR_ACCRIGHTS 1
4488 MAKE_RULES
=Make.rules
4492 cat > confcache
<<\EOF
4493 # This file is a shell script that caches the results of configure
4494 # tests run on this system so they can be shared between configure
4495 # scripts and configure runs. It is not useful on other systems.
4496 # If it contains results you don't want to keep, you may remove or edit it.
4498 # By default, configure uses ./config.cache as the cache file,
4499 # creating it if it does not exist already. You can give configure
4500 # the --cache-file=FILE option to use a different cache file; that is
4501 # what configure does when it calls configure scripts in
4502 # subdirectories, so they share the cache.
4503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4504 # config.status only pays attention to the cache file if you give it the
4505 # --recheck option to rerun configure.
4508 # The following way of writing the cache mishandles newlines in values,
4509 # but we know of no workaround that is simple, portable, and efficient.
4510 # So, don't put newlines in cache variables' values.
4511 # Ultrix sh set writes to stderr and can't be redirected directly,
4512 # and sets the high bit in the cache file unless we assign to the vars.
4514 case `(ac_space=' '; set) 2>&1` in
4516 # `set' does not quote correctly, so add quotes (double-quote substitution
4517 # turns \\\\ into \\, and sed turns \\ into \).
4519 -e "s/'/'\\\\''/g" \
4520 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4523 # `set' quotes correctly as required by POSIX, so do not add quotes.
4524 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4527 if cmp -s $cache_file confcache
; then
4530 if test -w $cache_file; then
4531 echo "updating cache $cache_file"
4532 cat confcache
> $cache_file
4534 echo "not updating unwritable cache $cache_file"
4539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4541 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4542 # Let make expand exec_prefix.
4543 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4545 # Any assignment to VPATH causes Sun make to only execute
4546 # the first set of double-colon rules, so remove it if not needed.
4547 # If there is a colon in the path, we need to keep it.
4548 if test "x$srcdir" = x.
; then
4549 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4554 DEFS
=-DHAVE_CONFIG_H
4556 # Without the "./", some shells look in PATH for config.status.
4557 : ${CONFIG_STATUS=./config.status}
4559 echo creating
$CONFIG_STATUS
4560 rm -f $CONFIG_STATUS
4561 cat > $CONFIG_STATUS <<EOF
4563 # Generated automatically by configure.
4564 # Run this file to recreate the current configuration.
4565 # This directory was configured as follows,
4566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4568 # $0 $ac_configure_args
4570 # Compiler output produced by configure, useful for debugging
4571 # configure, is in ./config.log if it exists.
4573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4576 case "\$ac_option" in
4577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4578 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4579 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4580 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4581 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4583 -help | --help | --hel | --he | --h)
4584 echo "\$ac_cs_usage"; exit 0 ;;
4585 *) echo "\$ac_cs_usage"; exit 1 ;;
4589 ac_given_srcdir=$srcdir
4590 ac_given_INSTALL="$INSTALL"
4592 trap 'rm -fr `echo "
4599 dlls/advapi32/Makefile
4600 dlls/avifil32/Makefile
4601 dlls/comctl32/Makefile
4602 dlls/commdlg/Makefile
4603 dlls/imagehlp/Makefile
4605 dlls/msacm32/Makefile
4608 dlls/rasapi32/Makefile
4609 dlls/shell32/Makefile
4610 dlls/tapi32/Makefile
4612 dlls/version/Makefile
4613 dlls/winaspi/Makefile
4614 dlls/wnaspi32/Makefile
4615 documentation/Makefile
4618 graphics/metafiledrv/Makefile
4619 graphics/psdrv/Makefile
4620 graphics/ttydrv/Makefile
4621 graphics/win16drv/Makefile
4622 graphics/x11drv/Makefile
4639 programs/clock/Makefile
4640 programs/cmdlgtst/Makefile
4641 programs/control/Makefile
4642 programs/avitools/Makefile
4643 programs/notepad/Makefile
4644 programs/progman/Makefile
4645 programs/regtest/Makefile
4646 programs/view/Makefile
4647 programs/winhelp/Makefile
4648 programs/winver/Makefile
4659 windows/ttydrv/Makefile
4660 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4662 cat >> $CONFIG_STATUS <<EOF
4664 # Protect against being on the right side of a sed subst in config.status.
4665 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4666 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4669 s%@CFLAGS@%$CFLAGS%g
4670 s%@CPPFLAGS@%$CPPFLAGS%g
4671 s%@CXXFLAGS@%$CXXFLAGS%g
4673 s%@LDFLAGS@%$LDFLAGS%g
4675 s%@exec_prefix@%$exec_prefix%g
4676 s%@prefix@%$prefix%g
4677 s%@program_transform_name@%$program_transform_name%g
4678 s%@bindir@%$bindir%g
4679 s%@sbindir@%$sbindir%g
4680 s%@libexecdir@%$libexecdir%g
4681 s%@datadir@%$datadir%g
4682 s%@sysconfdir@%$sysconfdir%g
4683 s%@sharedstatedir@%$sharedstatedir%g
4684 s%@localstatedir@%$localstatedir%g
4685 s%@libdir@%$libdir%g
4686 s%@includedir@%$includedir%g
4687 s%@oldincludedir@%$oldincludedir%g
4688 s%@infodir@%$infodir%g
4689 s%@mandir@%$mandir%g
4690 s%@PROGEXT@%$PROGEXT%g
4691 s%@MAIN_TARGET@%$MAIN_TARGET%g
4692 s%@LIB_TARGET@%$LIB_TARGET%g
4693 s%@ALT_LINK@%$ALT_LINK%g
4694 s%@OPTIONS@%$OPTIONS%g
4695 s%@SET_MAKE@%$SET_MAKE%g
4698 s%@X_CFLAGS@%$X_CFLAGS%g
4699 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4700 s%@X_LIBS@%$X_LIBS%g
4701 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4704 s%@LEXLIB@%$LEXLIB%g
4705 s%@RANLIB@%$RANLIB%g
4706 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4707 s%@INSTALL_DATA@%$INSTALL_DATA%g
4711 s%@DLLFLAGS@%$DLLFLAGS%g
4712 s%@LDSHARED@%$LDSHARED%g
4713 /@MAKE_RULES@/r $MAKE_RULES
4719 cat >> $CONFIG_STATUS <<\EOF
4721 # Split the substitutions into bite-sized pieces for seds with
4722 # small command number limits, like on Digital OSF/1 and HP-UX.
4723 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4724 ac_file
=1 # Number of current file.
4725 ac_beg
=1 # First line for current file.
4726 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4729 while $ac_more_lines; do
4730 if test $ac_beg -gt 1; then
4731 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4733 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4735 if test ! -s conftest.s
$ac_file; then
4737 rm -f conftest.s
$ac_file
4739 if test -z "$ac_sed_cmds"; then
4740 ac_sed_cmds
="sed -f conftest.s$ac_file"
4742 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4744 ac_file
=`expr $ac_file + 1`
4746 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4749 if test -z "$ac_sed_cmds"; then
4754 cat >> $CONFIG_STATUS <<EOF
4756 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
4762 dlls/advapi32/Makefile
4763 dlls/avifil32/Makefile
4764 dlls/comctl32/Makefile
4765 dlls/commdlg/Makefile
4766 dlls/imagehlp/Makefile
4768 dlls/msacm32/Makefile
4771 dlls/rasapi32/Makefile
4772 dlls/shell32/Makefile
4773 dlls/tapi32/Makefile
4775 dlls/version/Makefile
4776 dlls/winaspi/Makefile
4777 dlls/wnaspi32/Makefile
4778 documentation/Makefile
4781 graphics/metafiledrv/Makefile
4782 graphics/psdrv/Makefile
4783 graphics/ttydrv/Makefile
4784 graphics/win16drv/Makefile
4785 graphics/x11drv/Makefile
4802 programs/clock/Makefile
4803 programs/cmdlgtst/Makefile
4804 programs/control/Makefile
4805 programs/avitools/Makefile
4806 programs/notepad/Makefile
4807 programs/progman/Makefile
4808 programs/regtest/Makefile
4809 programs/view/Makefile
4810 programs/winhelp/Makefile
4811 programs/winver/Makefile
4822 windows/ttydrv/Makefile
4823 windows/x11drv/Makefile "}
4825 cat >> $CONFIG_STATUS <<\EOF
4826 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4829 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4830 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4831 *) ac_file_in
="${ac_file}.in" ;;
4834 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4836 # Remove last slash and all that follows it. Not all systems have dirname.
4837 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4839 # The file is in a subdirectory.
4840 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4841 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4842 # A "../" for each directory in $ac_dir_suffix.
4843 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4845 ac_dir_suffix
= ac_dots
=
4848 case "$ac_given_srcdir" in
4850 if test -z "$ac_dots"; then top_srcdir
=.
4851 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4852 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4854 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4855 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4858 case "$ac_given_INSTALL" in
4859 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4860 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4863 echo creating
"$ac_file"
4865 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4867 *Makefile
*) ac_comsub
="1i\\
4868 # $configure_input" ;;
4872 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4874 s%@configure_input@%$configure_input%g
4875 s%@srcdir@%$srcdir%g
4876 s%@top_srcdir@%$top_srcdir%g
4877 s%@INSTALL@%$INSTALL%g
4878 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4885 # ac_d sets the value in "#define NAME VALUE" lines.
4886 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4887 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4890 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4891 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4892 ac_uB
='\([ ]\)%\1#\2define\3'
4895 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4896 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4897 ac_eB
='$%\1#\2define\3'
4901 if test "${CONFIG_HEADERS+set}" != set; then
4903 cat >> $CONFIG_STATUS <<EOF
4904 CONFIG_HEADERS="include/config.h"
4906 cat >> $CONFIG_STATUS <<\EOF
4908 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4911 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4912 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4913 *) ac_file_in
="${ac_file}.in" ;;
4916 echo creating
$ac_file
4918 rm -f conftest.frag conftest.
in conftest.out
4919 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4920 cat $ac_file_inputs > conftest.
in
4924 # Transform confdefs.h into a sed script conftest.vals that substitutes
4925 # the proper values into config.h.in to produce config.h. And first:
4926 # Protect against being on the right side of a sed subst in config.status.
4927 # Protect against being in an unquoted here document in config.status.
4929 cat > conftest.hdr
<<\EOF
4932 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4936 sed -n -f conftest.hdr confdefs.h > conftest.vals
4939 # This sed command replaces #undef with comments. This is necessary, for
4940 # example, in the case of _POSIX_SOURCE, which is predefined and required
4941 # on some systems where configure will not decide to define it.
4942 cat >> conftest.vals <<\EOF
4943 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4946 # Break up conftest.vals because some shells have a limit on
4947 # the size of here documents, and old seds have small limits too.
4952 ac_lines=`grep -c . conftest.vals
`
4953 # grep -c gives empty output for an empty file on some AIX systems.
4954 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4955 # Write a limited-size here document to conftest.frag.
4956 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4957 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4959 sed -f conftest.frag conftest.in > conftest.out
4961 mv conftest.out conftest.in
4963 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4965 mv conftest.tail conftest.vals
4969 cat >> $CONFIG_STATUS <<\EOF
4970 rm -f conftest.frag conftest.h
4971 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4972 cat conftest.in >> conftest.h
4974 if cmp -s $ac_file conftest.h 2>/dev/null; then
4975 echo "$ac_file is unchanged"
4978 # Remove last slash and all that follows it. Not all systems have dirname.
4979 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4981 # The file is in a subdirectory.
4982 test ! -d "$ac_dir" && mkdir "$ac_dir"
4985 mv conftest.h $ac_file
4990 cat >> $CONFIG_STATUS <<EOF
4993 cat >> $CONFIG_STATUS <<\EOF
4997 chmod +x $CONFIG_STATUS
4998 rm -fr confdefs* $ac_clean_files
4999 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5002 if test "$have_x" = "no"
5005 echo "*** Warning: X development files not found. Wine will be built without"
5006 echo "*** X support, which currently does not work, and would probably not be"
5007 echo "*** what you want anyway. You will need to install devel packages of"
5008 echo "*** Xlib/Xfree86 and Xpm at the very least."
5009 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5012 echo "*** Warning: Xpm development files not found. Wine will be built without"
5013 echo "*** Xpm support, which currently does not work. You will need to install"
5014 echo "*** devel packages of Xpm."
5017 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5020 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5021 echo "*** terminal resize support. Consider upgrading ncurses."
5024 if test "$wine_cv_libc_reentrant" = "no"
5027 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5028 echo "*** thread support. Consider upgrading libc to a more recent"
5029 echo "*** reentrant version of libc."
5032 if test "$wine_cv_mesa_version_OK" = "no"
5035 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5036 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5040 echo "Configure finished. Do 'make depend && make' to compile Wine."