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 for ac_func
in connect
2229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_func" >&5
2231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $ac_func(); below. */
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2247 /* The GNU C library defines this for functions which it implements
2248 to always fail with ENOSYS. Some functions are actually named
2249 something starting with __ and the normal name is an alias. */
2250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2258 if { (eval echo configure
:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2260 eval "ac_cv_func_$ac_func=yes"
2262 echo "configure: failed program was:" >&5
2263 cat conftest.
$ac_ext >&5
2265 eval "ac_cv_func_$ac_func=no"
2270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2273 cat >> confdefs.h
<<EOF
2274 #define $ac_tr_func 1
2278 echo "$ac_t""no" 1>&6
2282 if test "$ac_cv_func_connect" = "no"
2284 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2285 echo "configure:2286: checking for connect in -lsocket" >&5
2286 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 ac_save_LIBS
="$LIBS"
2291 LIBS
="-lsocket $LIBS"
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* Override any gcc2 internal prototype to avoid an error. */
2296 /* We use char because int might match the return type of a gcc2
2297 builtin and then its argument prototype would still apply. */
2304 if { (eval echo configure
:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2306 eval "ac_cv_lib_$ac_lib_var=yes"
2308 echo "configure: failed program was:" >&5
2309 cat conftest.
$ac_ext >&5
2311 eval "ac_cv_lib_$ac_lib_var=no"
2314 LIBS
="$ac_save_LIBS"
2317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2321 cat >> confdefs.h
<<EOF
2322 #define $ac_tr_lib 1
2325 LIBS
="-lsocket $LIBS"
2328 echo "$ac_t""no" 1>&6
2332 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2333 echo "configure:2334: checking for setrunelocale in -lxpg4" >&5
2334 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 ac_save_LIBS
="$LIBS"
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 /* Override any gcc2 internal prototype to avoid an error. */
2344 /* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2346 char setrunelocale();
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2354 eval "ac_cv_lib_$ac_lib_var=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 eval "ac_cv_lib_$ac_lib_var=no"
2362 LIBS
="$ac_save_LIBS"
2365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2369 cat >> confdefs.h
<<EOF
2370 #define $ac_tr_lib 1
2376 echo "$ac_t""no" 1>&6
2379 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for dlopen in -ldl" >&5
2381 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS
="$LIBS"
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2399 if { (eval echo configure
:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.
$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS
="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2416 cat >> confdefs.h
<<EOF
2417 #define $ac_tr_lib 1
2423 echo "$ac_t""no" 1>&6
2427 if test "$have_x" = "yes"
2430 ac_save_CPPFLAGS
="$CPPFLAGS"
2431 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2433 for ac_hdr
in X11
/xpm.h
2435 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_hdr" >&5
2438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2446 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2447 { (eval echo configure
:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2448 ac_err
=`grep -v '^ *+' conftest.out`
2449 if test -z "$ac_err"; then
2451 eval "ac_cv_header_$ac_safe=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 eval "ac_cv_header_$ac_safe=no"
2461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2462 echo "$ac_t""yes" 1>&6
2463 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2464 cat >> confdefs.h
<<EOF
2465 #define $ac_tr_hdr 1
2469 echo "$ac_t""no" 1>&6
2473 if test "$ac_cv_header_X11_xpm_h" = "yes"
2475 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2476 echo "configure:2477: checking for XpmCreatePixmapFromData in -lXpm" >&5
2477 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 ac_save_LIBS
="$LIBS"
2482 LIBS
="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2489 char XpmCreatePixmapFromData();
2492 XpmCreatePixmapFromData()
2495 if { (eval echo configure
:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2499 echo "configure: failed program was:" >&5
2500 cat conftest.
$ac_ext >&5
2502 eval "ac_cv_lib_$ac_lib_var=no"
2505 LIBS
="$ac_save_LIBS"
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 cat >> confdefs.h
<<\EOF
2511 #define HAVE_LIBXXPM 1
2513 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2515 echo "$ac_t""no" 1>&6
2520 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
2522 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_hdr" >&5
2525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2534 { (eval echo configure
:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2535 ac_err
=`grep -v '^ *+' conftest.out`
2536 if test -z "$ac_err"; then
2538 eval "ac_cv_header_$ac_safe=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 eval "ac_cv_header_$ac_safe=no"
2548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2550 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2551 cat >> confdefs.h
<<EOF
2552 #define $ac_tr_hdr 1
2556 echo "$ac_t""no" 1>&6
2560 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2562 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2563 echo "configure:2564: checking for XShmQueryExtension in -lXext" >&5
2564 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 ac_save_LIBS
="$LIBS"
2569 LIBS
="-lXext $X_LIBS -lXext -lX11 $LIBS"
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char XShmQueryExtension();
2579 XShmQueryExtension()
2582 if { (eval echo configure
:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 eval "ac_cv_lib_$ac_lib_var=no"
2592 LIBS
="$ac_save_LIBS"
2595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 cat >> confdefs.h
<<\EOF
2598 #define HAVE_LIBXXSHM 1
2602 echo "$ac_t""no" 1>&6
2606 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
2608 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure
:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err
=`grep -v '^ *+' conftest.out`
2622 if test -z "$ac_err"; then
2624 eval "ac_cv_header_$ac_safe=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2630 eval "ac_cv_header_$ac_safe=no"
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h
<<EOF
2638 #define $ac_tr_hdr 1
2642 echo "$ac_t""no" 1>&6
2646 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2648 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2649 echo "configure:2650: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2650 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 ac_save_LIBS
="$LIBS"
2655 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 /* Override any gcc2 internal prototype to avoid an error. */
2660 /* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2662 char XF86DGAQueryExtension();
2665 XF86DGAQueryExtension()
2668 if { (eval echo configure
:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2670 eval "ac_cv_lib_$ac_lib_var=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 eval "ac_cv_lib_$ac_lib_var=no"
2678 LIBS
="$ac_save_LIBS"
2681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 cat >> confdefs.h
<<\EOF
2684 #define HAVE_LIBXXF86DGA 1
2686 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
2688 echo "$ac_t""no" 1>&6
2693 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
2695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure
:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err
=`grep -v '^ *+' conftest.out`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2735 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2736 echo "configure:2737: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2737 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 ac_save_LIBS
="$LIBS"
2742 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2749 char XF86VidModeQueryExtension();
2752 XF86VidModeQueryExtension()
2755 if { (eval echo configure
:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2757 eval "ac_cv_lib_$ac_lib_var=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 eval "ac_cv_lib_$ac_lib_var=no"
2765 LIBS
="$ac_save_LIBS"
2768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 cat >> confdefs.h
<<\EOF
2771 #define HAVE_LIBXXF86VM 1
2773 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
2775 echo "$ac_t""no" 1>&6
2780 for ac_hdr
in GL
/gl.h GL
/osmesa.h
2782 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_hdr" >&5
2785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.
$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2793 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2794 { (eval echo configure
:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2795 ac_err
=`grep -v '^ *+' conftest.out`
2796 if test -z "$ac_err"; then
2798 eval "ac_cv_header_$ac_safe=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.
$ac_ext >&5
2804 eval "ac_cv_header_$ac_safe=no"
2808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2811 cat >> confdefs.h
<<EOF
2812 #define $ac_tr_hdr 1
2816 echo "$ac_t""no" 1>&6
2820 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2822 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
2823 echo "configure:2824: checking "for up-to-date Mesa version
"" >&5
2824 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2832 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2835 if { (eval echo configure
:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2837 wine_cv_mesa_version_OK
="yes"
2839 echo "configure: failed program was:" >&5
2840 cat conftest.
$ac_ext >&5
2842 wine_cv_mesa_version_OK
="no"
2849 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
2851 if test "$wine_cv_mesa_version_OK" = "yes"
2853 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
2854 echo "configure:2855: checking for OSMesaCreateContext in -lMesaGL" >&5
2855 ac_lib_var
=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
2856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 ac_save_LIBS
="$LIBS"
2860 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 /* Override any gcc2 internal prototype to avoid an error. */
2865 /* We use char because int might match the return type of a gcc2
2866 builtin and then its argument prototype would still apply. */
2867 char OSMesaCreateContext();
2870 OSMesaCreateContext()
2873 if { (eval echo configure
:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2875 eval "ac_cv_lib_$ac_lib_var=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.
$ac_ext >&5
2880 eval "ac_cv_lib_$ac_lib_var=no"
2883 LIBS
="$ac_save_LIBS"
2886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2888 cat >> confdefs.h
<<\EOF
2889 #define HAVE_LIBMESAGL 1
2891 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
2893 echo "$ac_t""no" 1>&6
2899 CPPFLAGS
="$ac_save_CPPFLAGS"
2906 for ac_hdr
in ncurses.h
2908 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_hdr" >&5
2911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2919 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2920 { (eval echo configure
:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2921 ac_err
=`grep -v '^ *+' conftest.out`
2922 if test -z "$ac_err"; then
2924 eval "ac_cv_header_$ac_safe=yes"
2927 echo "configure: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2930 eval "ac_cv_header_$ac_safe=no"
2934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2935 echo "$ac_t""yes" 1>&6
2936 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2937 cat >> confdefs.h
<<EOF
2938 #define $ac_tr_hdr 1
2942 echo "$ac_t""no" 1>&6
2946 if test "$ac_cv_header_ncurses_h" = "yes"
2948 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
2949 echo "configure:2950: checking for waddch in -lncurses" >&5
2950 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
2951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 ac_save_LIBS
="$LIBS"
2955 LIBS
="-lncurses $LIBS"
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 /* Override any gcc2 internal prototype to avoid an error. */
2960 /* We use char because int might match the return type of a gcc2
2961 builtin and then its argument prototype would still apply. */
2968 if { (eval echo configure
:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2970 eval "ac_cv_lib_$ac_lib_var=yes"
2972 echo "configure: failed program was:" >&5
2973 cat conftest.
$ac_ext >&5
2975 eval "ac_cv_lib_$ac_lib_var=no"
2978 LIBS
="$ac_save_LIBS"
2981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2982 echo "$ac_t""yes" 1>&6
2983 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2985 cat >> confdefs.h
<<EOF
2986 #define $ac_tr_lib 1
2989 LIBS
="-lncurses $LIBS"
2992 echo "$ac_t""no" 1>&6
2996 if test "$ac_cv_lib_ncurses_waddch" = "yes"
2998 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
2999 echo "configure:3000: checking for resizeterm in -lncurses" >&5
3000 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 ac_save_LIBS
="$LIBS"
3005 LIBS
="-lncurses $LIBS"
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 /* Override any gcc2 internal prototype to avoid an error. */
3010 /* We use char because int might match the return type of a gcc2
3011 builtin and then its argument prototype would still apply. */
3018 if { (eval echo configure
:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3020 eval "ac_cv_lib_$ac_lib_var=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3025 eval "ac_cv_lib_$ac_lib_var=no"
3028 LIBS
="$ac_save_LIBS"
3031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3033 cat >> confdefs.h
<<\EOF
3034 #define HAVE_RESIZETERM 1
3038 echo "$ac_t""no" 1>&6
3041 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3042 echo "configure:3043: checking for getbkgd in -lncurses" >&5
3043 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 ac_save_LIBS
="$LIBS"
3048 LIBS
="-lncurses $LIBS"
3049 cat > conftest.
$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 /* Override any gcc2 internal prototype to avoid an error. */
3053 /* We use char because int might match the return type of a gcc2
3054 builtin and then its argument prototype would still apply. */
3061 if { (eval echo configure
:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3063 eval "ac_cv_lib_$ac_lib_var=yes"
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3068 eval "ac_cv_lib_$ac_lib_var=no"
3071 LIBS
="$ac_save_LIBS"
3074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 cat >> confdefs.h
<<\EOF
3077 #define HAVE_GETBKGD 1
3081 echo "$ac_t""no" 1>&6
3085 for ac_hdr
in curses.h
3087 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_hdr" >&5
3090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3098 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3099 { (eval echo configure
:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3100 ac_err
=`grep -v '^ *+' conftest.out`
3101 if test -z "$ac_err"; then
3103 eval "ac_cv_header_$ac_safe=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 eval "ac_cv_header_$ac_safe=no"
3113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3114 echo "$ac_t""yes" 1>&6
3115 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3116 cat >> confdefs.h
<<EOF
3117 #define $ac_tr_hdr 1
3121 echo "$ac_t""no" 1>&6
3125 if test "$ac_cv_header_curses_h" = "yes"
3127 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3128 echo "configure:3129: checking for waddch in -lcurses" >&5
3129 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 ac_save_LIBS
="$LIBS"
3134 LIBS
="-lcurses $LIBS"
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3149 eval "ac_cv_lib_$ac_lib_var=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "ac_cv_lib_$ac_lib_var=no"
3157 LIBS
="$ac_save_LIBS"
3160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3164 cat >> confdefs.h
<<EOF
3165 #define $ac_tr_lib 1
3168 LIBS
="-lcurses $LIBS"
3171 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3175 echo "configure:3176: checking for resizeterm in -lcurses" >&5
3176 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 ac_save_LIBS
="$LIBS"
3181 LIBS
="-lcurses $LIBS"
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3194 if { (eval echo configure
:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3196 eval "ac_cv_lib_$ac_lib_var=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3201 eval "ac_cv_lib_$ac_lib_var=no"
3204 LIBS
="$ac_save_LIBS"
3207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 cat >> confdefs.h
<<\EOF
3210 #define HAVE_RESIZETERM 1
3214 echo "$ac_t""no" 1>&6
3217 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3218 echo "configure:3219: checking for getbkgd in -lcurses" >&5
3219 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 ac_save_LIBS
="$LIBS"
3224 LIBS
="-lcurses $LIBS"
3225 cat > conftest.
$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3237 if { (eval echo configure
:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3239 eval "ac_cv_lib_$ac_lib_var=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 eval "ac_cv_lib_$ac_lib_var=no"
3247 LIBS
="$ac_save_LIBS"
3250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 cat >> confdefs.h
<<\EOF
3253 #define HAVE_GETBKGD 1
3257 echo "$ac_t""no" 1>&6
3263 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3264 echo "configure:3265: checking "for GNU style IPX support
"" >&5
3265 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 cat > conftest.
$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <sys/socket.h>
3272 #include <netipx/ipx.h>
3274 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3277 if { (eval echo configure
:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 cat >> confdefs.h
<<\EOF
3280 #define HAVE_IPX_GNU 1
3283 ac_cv_c_ipx_gnu
="yes"
3285 echo "configure: failed program was:" >&5
3286 cat conftest.
$ac_ext >&5
3288 ac_cv_c_ipx_gnu
="no"
3294 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3296 if test "$ac_cv_c_ipx_gnu" = "no"
3298 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
3299 echo "configure:3300: checking "for linux style IPX support
"" >&5
3300 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.
$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/socket.h>
3307 #include <asm/types.h>
3308 #include <linux/ipx.h>
3310 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3313 if { (eval echo configure
:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 cat >> confdefs.h
<<\EOF
3316 #define HAVE_IPX_LINUX 1
3319 ac_cv_c_ipx_linux
="yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3324 ac_cv_c_ipx_linux
="no"
3330 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3333 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
3335 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_hdr" >&5
3338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.
$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3346 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3347 { (eval echo configure
:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3348 ac_err
=`grep -v '^ *+' conftest.out`
3349 if test -z "$ac_err"; then
3351 eval "ac_cv_header_$ac_safe=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3357 eval "ac_cv_header_$ac_safe=no"
3361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3364 cat >> confdefs.h
<<EOF
3365 #define $ac_tr_hdr 1
3369 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
3375 echo "configure:3376: checking "for Open Sound System
"" >&5
3376 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3383 #if defined(HAVE_SYS_SOUNDCARD_H)
3384 #include <sys/soundcard.h>
3385 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3386 #include <machine/soundcard.h>
3387 #elif defined(HAVE_SOUNDCARD_H)
3388 #include <soundcard.h>
3394 /* check for one of the Open Sound System specific SNDCTL_ defines */
3395 #if !defined(SNDCTL_DSP_STEREO)
3396 #error No open sound system
3401 if { (eval echo configure
:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 ac_cv_c_opensoundsystem
="yes"
3405 echo "configure: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3408 ac_cv_c_opensoundsystem
="no"
3413 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3415 if test "$ac_cv_c_opensoundsystem" = "yes"
3417 cat >> confdefs.h
<<\EOF
3424 echo $ac_n "checking "for union semun
"""... $ac_c" 1>&6
3425 echo "configure:3426: checking "for union semun
"" >&5
3426 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.
$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3433 #include <sys/sem.h>
3438 if { (eval echo configure
:3439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 ac_cv_c_union_semun
="yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3445 ac_cv_c_union_semun
="no"
3450 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
3451 if test "$ac_cv_c_union_semun" = "yes"
3453 cat >> confdefs.h
<<\EOF
3454 #define HAVE_UNION_SEMUN 1
3459 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
3462 if test "x${GCC}" = "xyes"
3464 CFLAGS
="$CFLAGS -Wall"
3465 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
3466 echo "configure:3467: checking "for gcc strength-reduce bug
"" >&5
3467 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 if test "$cross_compiling" = yes; then
3471 ac_cv_c_gcc_strength_bug
="yes"
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3478 static int Array[3];
3481 for(i=0; i<B; i++) Array[i] = i - 3;
3482 exit( Array[1] != -2 );
3485 if { (eval echo configure
:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3487 ac_cv_c_gcc_strength_bug
="no"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.
$ac_ext >&5
3492 ac_cv_c_gcc_strength_bug
="yes"
3499 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3500 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3502 CFLAGS
="$CFLAGS -fno-strength-reduce"
3507 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
3508 echo "configure:3509: checking "whether external symbols need an underscore prefix
"" >&5
3509 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3513 LIBS
="conftest_asm.s $LIBS"
3514 cat > conftest_asm.s
<<EOF
3519 cat > conftest.
$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3524 if (ac_test) return 1
3527 if { (eval echo configure
:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3529 ac_cv_c_extern_prefix
="yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3534 ac_cv_c_extern_prefix
="no"
3540 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3541 if test "$ac_cv_c_extern_prefix" = "yes"
3543 cat >> confdefs.h
<<\EOF
3544 #define NEED_UNDERSCORE_PREFIX 1
3550 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
3551 echo "configure:3552: checking "whether assembler accepts .string
"" >&5
3552 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3556 LIBS
="conftest_asm.s $LIBS"
3557 cat > conftest_asm.s
<<EOF
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3568 if { (eval echo configure
:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3570 ac_cv_c_asm_string
="yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.
$ac_ext >&5
3575 ac_cv_c_asm_string
="no"
3581 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3582 if test "$ac_cv_c_asm_string" = "yes"
3584 cat >> confdefs.h
<<\EOF
3585 #define HAVE_ASM_STRING 1
3593 if test "$LIB_TARGET" = "libwine.so.1.0"
3595 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
3596 echo "configure:3597: checking "whether we can build a Linux dll
"" >&5
3597 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 saved_cflags
=$CFLAGS
3601 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3602 cat > conftest.
$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3612 ac_cv_c_dll_linux
="yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 ac_cv_c_dll_linux
="no"
3620 CFLAGS
=$saved_cflags
3624 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3625 if test "$ac_cv_c_dll_linux" = "yes"
3628 LDSHARED
="\$(CC) -shared -Wl,-soname,libwine.so"
3630 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
3631 echo "configure:3632: checking "whether we can build a NetBSD dll
"" >&5
3632 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 saved_cflags
=$CFLAGS
3636 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3645 if { (eval echo configure
:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3647 ac_cv_c_dll_netbsd
="yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 ac_cv_c_dll_netbsd
="no"
3655 CFLAGS
=$saved_cflags
3659 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3660 if test "$ac_cv_c_dll_netbsd" = "yes"
3663 LDSHARED
="ld -Bshareable -Bforcearchive"
3666 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3668 LIB_TARGET
="libwine.a"
3675 wine_cv_libc_reentrant
=no
3676 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
3677 echo "configure:3678: checking "for reentrant libc
: __errno_location
"" >&5
3678 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 if test "$cross_compiling" = yes; then
3682 wine_cv_libc_r__errno_location
=yes
3684 cat > conftest.
$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3689 int *__errno_location(){return &myerrno;}
3690 main(){connect(0,buf,255); exit(!myerrno);}
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3694 wine_cv_libc_r__errno_location
=yes
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 wine_cv_libc_r__errno_location
=no
3707 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3708 if test "$wine_cv_libc_r__errno_location" = "yes"
3710 cat >> confdefs.h
<<\EOF
3711 #define HAVE__ERRNO_LOCATION 1
3714 wine_cv_libc_reentrant
=__errno_location
3716 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
3717 echo "configure:3718: checking "for reentrant libc
: __error
"" >&5
3718 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 if test "$cross_compiling" = yes; then
3722 wine_cv_libc_r__error
=yes
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3729 int *__error(){return &myerrno;}
3730 main(){connect(0,buf,255); exit(!myerrno);}
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3734 wine_cv_libc_r__error
=yes
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 wine_cv_libc_r__error
=no
3747 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3748 if test "$wine_cv_libc_r__error" = "yes"
3750 cat >> confdefs.h
<<\EOF
3751 #define HAVE__ERROR 1
3754 wine_cv_libc_reentrant
=__error
3756 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
3757 echo "configure:3758: checking "for reentrant libc
: ___errno
"" >&5
3758 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 if test "$cross_compiling" = yes; then
3762 wine_cv_libc_r___errno
=yes
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3769 int *___errno(){return &myerrno;}
3770 main(){connect(0,buf,255); exit(!myerrno);}
3772 if { (eval echo configure
:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3774 wine_cv_libc_r___errno
=yes
3776 echo "configure: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3779 wine_cv_libc_r___errno
=no
3787 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
3788 if test "$wine_cv_libc_r___errno" = "yes"
3790 cat >> confdefs.h
<<\EOF
3791 #define HAVE___ERRNO 1
3794 wine_cv_libc_reentrant
=___errno
3796 if test "$wine_cv_libc_reentrant" = "no"
3798 cat >> confdefs.h
<<\EOF
3799 #define NO_REENTRANT_LIBC 1
3805 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
3807 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
3808 echo "configure:3809: checking "for reentrant X libraries
"" >&5
3809 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 if test "x$with_reentrant_x" = "xno"
3814 wine_cv_x_reentrant
=no
3817 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
3818 if test -r $dir/libX11.so
; then
3819 libX11_check
="-D $dir/libX11.so"
3822 if test -r $dir/libX11.a
; then
3823 libX11_check
="$dir/libX11.a"
3827 if test "$libX11_check" != "none"; then
3828 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
3830 wine_cv_x_reentrant
=yes
3832 wine_cv_x_reentrant
=no
3835 wine_cv_x_reentrant
=unknown
3840 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
3842 wine_cv_x_reentrant
=no
3844 if test "$wine_cv_x_reentrant" = "no"
3846 cat >> confdefs.h
<<\EOF
3847 #define NO_REENTRANT_X11 1
3853 for ac_func
in rfork clone _lwp_create getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm
usleep wait4 waitpid vfscanf
3855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3856 echo "configure:3857: checking for $ac_func" >&5
3857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* System header to define __stub macros and hopefully few prototypes,
3864 which can conflict with char $ac_func(); below. */
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3873 /* The GNU C library defines this for functions which it implements
3874 to always fail with ENOSYS. Some functions are actually named
3875 something starting with __ and the normal name is an alias. */
3876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3884 if { (eval echo configure
:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3886 eval "ac_cv_func_$ac_func=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.
$ac_ext >&5
3891 eval "ac_cv_func_$ac_func=no"
3896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3899 cat >> confdefs.h
<<EOF
3900 #define $ac_tr_func 1
3904 echo "$ac_t""no" 1>&6
3908 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 sys
/lwp.h ucontext.h
3910 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_hdr" >&5
3913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 cat > conftest.
$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3921 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3922 { (eval echo configure
:3923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3923 ac_err
=`grep -v '^ *+' conftest.out`
3924 if test -z "$ac_err"; then
3926 eval "ac_cv_header_$ac_safe=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.
$ac_ext >&5
3932 eval "ac_cv_header_$ac_safe=no"
3936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3939 cat >> confdefs.h
<<EOF
3940 #define $ac_tr_hdr 1
3944 echo "$ac_t""no" 1>&6
3948 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3949 echo "configure:3950: checking whether stat file-mode macros are broken" >&5
3950 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.
$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 #include <sys/types.h>
3957 #include <sys/stat.h>
3959 #if defined(S_ISBLK) && defined(S_IFDIR)
3960 # if S_ISBLK (S_IFDIR)
3965 #if defined(S_ISBLK) && defined(S_IFCHR)
3966 # if S_ISBLK (S_IFCHR)
3971 #if defined(S_ISLNK) && defined(S_IFREG)
3972 # if S_ISLNK (S_IFREG)
3977 #if defined(S_ISSOCK) && defined(S_IFREG)
3978 # if S_ISSOCK (S_IFREG)
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 egrep "You lose" >/dev
/null
2>&1; then
3987 ac_cv_header_stat_broken
=yes
3990 ac_cv_header_stat_broken
=no
3996 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3997 if test $ac_cv_header_stat_broken = yes; then
3998 cat >> confdefs.h
<<\EOF
3999 #define STAT_MACROS_BROKEN 1
4004 echo $ac_n "checking for working const""... $ac_c" 1>&6
4005 echo "configure:4006: checking for working const" >&5
4006 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 cat > conftest.
$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4015 /* Ultrix mips cc rejects this. */
4016 typedef int charset[2]; const charset x;
4017 /* SunOS 4.1.1 cc rejects this. */
4018 char const *const *ccp;
4020 /* NEC SVR4.0.2 mips cc rejects this. */
4021 struct point {int x, y;};
4022 static struct point const zero = {0,0};
4023 /* AIX XL C 1.02.0.0 rejects this.
4024 It does not let you subtract one const X* pointer from another in an arm
4025 of an if-expression whose if-part is not a constant expression */
4026 const char *g = "string";
4027 ccp = &g + (g ? g-g : 0);
4028 /* HPUX 7.0 cc rejects these. */
4031 ccp = (char const *const *) p;
4032 { /* SCO 3.2v4 cc rejects this. */
4034 char const *s = 0 ? (char *) 0 : (char const *) 0;
4038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4040 const int *foo = &x[0];
4043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4044 typedef const int *iptr;
4048 { /* AIX XL C 1.02.0.0 rejects this saying
4049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4050 struct s { int j; const int *ap[3]; };
4051 struct s *b; b->j = 5;
4053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4059 if { (eval echo configure
:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4071 echo "$ac_t""$ac_cv_c_const" 1>&6
4072 if test $ac_cv_c_const = no
; then
4073 cat >> confdefs.h
<<\EOF
4079 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4080 echo "configure:4081: checking for ANSI C header files" >&5
4081 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.
$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4093 { (eval echo configure
:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4094 ac_err
=`grep -v '^ *+' conftest.out`
4095 if test -z "$ac_err"; then
4097 ac_cv_header_stdc
=yes
4100 echo "configure: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4103 ac_cv_header_stdc
=no
4107 if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat > conftest.
$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "memchr" >/dev
/null
2>&1; then
4119 ac_cv_header_stdc
=no
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 egrep "free" >/dev
/null
2>&1; then
4137 ac_cv_header_stdc
=no
4143 if test $ac_cv_header_stdc = yes; then
4144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4145 if test "$cross_compiling" = yes; then
4148 cat > conftest.
$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4152 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 int main () { int i; for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 ac_cv_header_stdc
=no
4175 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4176 if test $ac_cv_header_stdc = yes; then
4177 cat >> confdefs.h
<<\EOF
4178 #define STDC_HEADERS 1
4183 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4184 echo "configure:4185: checking for size_t" >&5
4185 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <sys/types.h>
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4200 ac_cv_type_size_t
=yes
4203 ac_cv_type_size_t
=no
4208 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4209 if test $ac_cv_type_size_t = no
; then
4210 cat >> confdefs.h
<<\EOF
4211 #define size_t unsigned
4216 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4217 echo "configure:4218: checking size of long long" >&5
4218 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 if test "$cross_compiling" = yes; then
4222 ac_cv_sizeof_long_long
=0
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4230 FILE *f=fopen("conftestval", "w");
4232 fprintf(f, "%d\n", sizeof(long long));
4236 if { (eval echo configure
:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4238 ac_cv_sizeof_long_long
=`cat conftestval`
4240 echo "configure: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4243 ac_cv_sizeof_long_long
=0
4249 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4250 cat >> confdefs.h
<<EOF
4251 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4257 if test $ac_cv_func_sendmsg = no
; then
4258 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
4259 echo "configure:4260: checking for sendmsg in -lsocket" >&5
4260 ac_lib_var
=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 ac_save_LIBS
="$LIBS"
4265 LIBS
="-lsocket $LIBS"
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4278 if { (eval echo configure
:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4280 eval "ac_cv_lib_$ac_lib_var=yes"
4282 echo "configure: failed program was:" >&5
4283 cat conftest.
$ac_ext >&5
4285 eval "ac_cv_lib_$ac_lib_var=no"
4288 LIBS
="$ac_save_LIBS"
4291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4295 cat >> confdefs.h
<<EOF
4296 #define $ac_tr_lib 1
4299 LIBS
="-lsocket $LIBS"
4302 echo "$ac_t""no" 1>&6
4308 if test "$ac_cv_header_sys_vfs_h" = "yes"
4310 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
4311 echo "configure:4312: checking "whether sys
/vfs.h defines statfs
"" >&5
4312 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4319 #include <sys/types.h>
4320 #ifdef HAVE_SYS_PARAM_H
4321 # include <sys/param.h>
4323 #include <sys/vfs.h>
4329 memset(&stfs,0,sizeof(stfs));
4333 if { (eval echo configure
:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 wine_cv_sys_vfs_has_statfs
=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 wine_cv_sys_vfs_has_statfs
=no
4347 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4348 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4350 cat >> confdefs.h
<<\EOF
4351 #define STATFS_DEFINED_BY_SYS_VFS 1
4357 if test "$ac_cv_header_sys_statfs_h" = "yes"
4359 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
4360 echo "configure:4361: checking "whether sys
/statfs.h defines statfs
"" >&5
4361 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 cat > conftest.
$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4368 #include <sys/types.h>
4369 #ifdef HAVE_SYS_PARAM_H
4370 # include <sys/param.h>
4372 #include <sys/statfs.h>
4380 if { (eval echo configure
:4381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 wine_cv_sys_statfs_has_statfs
=yes
4384 echo "configure: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4387 wine_cv_sys_statfs_has_statfs
=no
4394 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4395 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4397 cat >> confdefs.h
<<\EOF
4398 #define STATFS_DEFINED_BY_SYS_STATFS 1
4404 if test "$ac_cv_header_sys_mount_h" = "yes"
4406 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
4407 echo "configure:4408: checking "whether sys
/mount.h defines statfs
"" >&5
4408 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4415 #include <sys/types.h>
4416 #ifdef HAVE_SYS_PARAM_H
4417 # include <sys/param.h>
4419 #include <sys/mount.h>
4427 if { (eval echo configure
:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4429 wine_cv_sys_mount_has_statfs
=yes
4431 echo "configure: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4434 wine_cv_sys_mount_has_statfs
=no
4441 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4442 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4444 cat >> confdefs.h
<<\EOF
4445 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4452 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
4453 echo "configure:4454: checking "for statfs.f_bfree
"" >&5
4454 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 if test "x$statfs_bfree" = "xno"
4459 wine_cv_statfs_bfree
=no
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4465 #include <sys/types.h>
4466 #ifdef HAVE_SYS_PARAM_H
4467 # include <sys/param.h>
4469 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4470 # include <sys/mount.h>
4472 # ifdef STATFS_DEFINED_BY_SYS_VFS
4473 # include <sys/vfs.h>
4475 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4476 # include <sys/statfs.h>
4489 if { (eval echo configure
:4490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4491 wine_cv_statfs_bfree
=yes
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 wine_cv_statfs_bfree
=no
4503 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4504 if test "$wine_cv_statfs_bfree" = "yes"
4506 cat >> confdefs.h
<<\EOF
4507 #define STATFS_HAS_BFREE 1
4512 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
4513 echo "configure:4514: checking "for statfs.f_bavail
"" >&5
4514 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 if test "x$statfs_bavail" = "xno"
4519 wine_cv_statfs_bavail
=no
4521 cat > conftest.
$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4525 #include <sys/types.h>
4526 #ifdef HAVE_SYS_PARAM_H
4527 # include <sys/param.h>
4529 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4530 # include <sys/mount.h>
4532 # ifdef STATFS_DEFINED_BY_SYS_VFS
4533 # include <sys/vfs.h>
4535 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4536 # include <sys/statfs.h>
4549 if { (eval echo configure
:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 wine_cv_statfs_bavail
=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 wine_cv_statfs_bavail
=no
4563 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
4564 if test "$wine_cv_statfs_bavail" = "yes"
4566 cat >> confdefs.h
<<\EOF
4567 #define STATFS_HAS_BAVAIL 1
4573 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
4574 echo "configure:4575: checking "for working sigaltstack
"" >&5
4575 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 if test "$cross_compiling" = yes; then
4579 ac_cv_c_working_sigaltstack
="no"
4582 cat > conftest.
$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4587 #include <time.h> /* <sys/time.h> ? bad magic without end */
4588 #include <sys/types.h>
4589 #include <sys/signal.h>
4590 #ifdef HAVE_SYS_PARAM_H
4591 # include <sys/param.h>
4593 #ifdef HAVE_SYSCALL_H
4594 # include <syscall.h>
4596 # ifdef HAVE_SYS_SYSCALL_H
4597 # include <sys/syscall.h>
4601 unsigned char *xaltstack;
4604 main(int argc,char **argv) {
4605 struct sigaltstack ss;
4607 xaltstack = malloc(16384);
4608 ss.ss_sp = xaltstack;
4611 if (sigaltstack(&ss, NULL) < 0) {
4612 /* this catches the glibc case */
4613 perror("sigaltstack");
4614 return (1); /* aka exit(1) aka fail */
4616 /* assume it works. */
4621 if { (eval echo configure
:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4623 ac_cv_c_working_sigaltstack
="yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.
$ac_ext >&5
4628 ac_cv_c_working_sigaltstack
="no"
4635 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
4637 if test "$ac_cv_c_working_sigaltstack" = "yes"
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_WORKING_SIGALTSTACK 1
4647 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
4648 echo "configure:4649: checking "for msg_accrights
in struct msghdr
"" >&5
4649 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 #include <sys/types.h>
4656 #include <sys/socket.h>
4658 struct msghdr hdr; hdr.msg_accrights=0
4661 if { (eval echo configure
:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 ac_cv_c_msg_accrights
="yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4668 ac_cv_c_msg_accrights
="no"
4673 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
4674 if test "$ac_cv_c_msg_accrights" = "yes"
4676 cat >> confdefs.h
<<\EOF
4677 #define HAVE_MSGHDR_ACCRIGHTS 1
4683 if test "$GCC" = "yes"
4685 GCC_NO_BUILTIN
="-fno-builtin"
4690 MAKE_RULES
=Make.rules
4694 cat > confcache
<<\EOF
4695 # This file is a shell script that caches the results of configure
4696 # tests run on this system so they can be shared between configure
4697 # scripts and configure runs. It is not useful on other systems.
4698 # If it contains results you don't want to keep, you may remove or edit it.
4700 # By default, configure uses ./config.cache as the cache file,
4701 # creating it if it does not exist already. You can give configure
4702 # the --cache-file=FILE option to use a different cache file; that is
4703 # what configure does when it calls configure scripts in
4704 # subdirectories, so they share the cache.
4705 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4706 # config.status only pays attention to the cache file if you give it the
4707 # --recheck option to rerun configure.
4710 # The following way of writing the cache mishandles newlines in values,
4711 # but we know of no workaround that is simple, portable, and efficient.
4712 # So, don't put newlines in cache variables' values.
4713 # Ultrix sh set writes to stderr and can't be redirected directly,
4714 # and sets the high bit in the cache file unless we assign to the vars.
4716 case `(ac_space=' '; set) 2>&1` in
4718 # `set' does not quote correctly, so add quotes (double-quote substitution
4719 # turns \\\\ into \\, and sed turns \\ into \).
4721 -e "s/'/'\\\\''/g" \
4722 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4725 # `set' quotes correctly as required by POSIX, so do not add quotes.
4726 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4729 if cmp -s $cache_file confcache
; then
4732 if test -w $cache_file; then
4733 echo "updating cache $cache_file"
4734 cat confcache
> $cache_file
4736 echo "not updating unwritable cache $cache_file"
4741 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4743 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4744 # Let make expand exec_prefix.
4745 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4747 # Any assignment to VPATH causes Sun make to only execute
4748 # the first set of double-colon rules, so remove it if not needed.
4749 # If there is a colon in the path, we need to keep it.
4750 if test "x$srcdir" = x.
; then
4751 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4754 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4756 DEFS
=-DHAVE_CONFIG_H
4758 # Without the "./", some shells look in PATH for config.status.
4759 : ${CONFIG_STATUS=./config.status}
4761 echo creating
$CONFIG_STATUS
4762 rm -f $CONFIG_STATUS
4763 cat > $CONFIG_STATUS <<EOF
4765 # Generated automatically by configure.
4766 # Run this file to recreate the current configuration.
4767 # This directory was configured as follows,
4768 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4770 # $0 $ac_configure_args
4772 # Compiler output produced by configure, useful for debugging
4773 # configure, is in ./config.log if it exists.
4775 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4778 case "\$ac_option" in
4779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4780 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4781 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4782 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4783 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4785 -help | --help | --hel | --he | --h)
4786 echo "\$ac_cs_usage"; exit 0 ;;
4787 *) echo "\$ac_cs_usage"; exit 1 ;;
4791 ac_given_srcdir=$srcdir
4792 ac_given_INSTALL="$INSTALL"
4794 trap 'rm -fr `echo "
4801 dlls/advapi32/Makefile
4802 dlls/avifil32/Makefile
4803 dlls/comctl32/Makefile
4804 dlls/commdlg/Makefile
4805 dlls/imagehlp/Makefile
4807 dlls/msacm32/Makefile
4810 dlls/rasapi32/Makefile
4811 dlls/shell32/Makefile
4812 dlls/tapi32/Makefile
4814 dlls/version/Makefile
4815 dlls/winaspi/Makefile
4816 dlls/wnaspi32/Makefile
4817 documentation/Makefile
4820 graphics/metafiledrv/Makefile
4821 graphics/psdrv/Makefile
4822 graphics/ttydrv/Makefile
4823 graphics/win16drv/Makefile
4824 graphics/x11drv/Makefile
4841 programs/clock/Makefile
4842 programs/cmdlgtst/Makefile
4843 programs/control/Makefile
4844 programs/avitools/Makefile
4845 programs/notepad/Makefile
4846 programs/progman/Makefile
4847 programs/regtest/Makefile
4848 programs/regapi/Makefile
4849 programs/view/Makefile
4850 programs/winhelp/Makefile
4851 programs/winver/Makefile
4862 windows/ttydrv/Makefile
4863 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4865 cat >> $CONFIG_STATUS <<EOF
4867 # Protect against being on the right side of a sed subst in config.status.
4868 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4869 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4872 s%@CFLAGS@%$CFLAGS%g
4873 s%@CPPFLAGS@%$CPPFLAGS%g
4874 s%@CXXFLAGS@%$CXXFLAGS%g
4876 s%@LDFLAGS@%$LDFLAGS%g
4878 s%@exec_prefix@%$exec_prefix%g
4879 s%@prefix@%$prefix%g
4880 s%@program_transform_name@%$program_transform_name%g
4881 s%@bindir@%$bindir%g
4882 s%@sbindir@%$sbindir%g
4883 s%@libexecdir@%$libexecdir%g
4884 s%@datadir@%$datadir%g
4885 s%@sysconfdir@%$sysconfdir%g
4886 s%@sharedstatedir@%$sharedstatedir%g
4887 s%@localstatedir@%$localstatedir%g
4888 s%@libdir@%$libdir%g
4889 s%@includedir@%$includedir%g
4890 s%@oldincludedir@%$oldincludedir%g
4891 s%@infodir@%$infodir%g
4892 s%@mandir@%$mandir%g
4893 s%@PROGEXT@%$PROGEXT%g
4894 s%@MAIN_TARGET@%$MAIN_TARGET%g
4895 s%@LIB_TARGET@%$LIB_TARGET%g
4896 s%@ALT_LINK@%$ALT_LINK%g
4897 s%@OPTIONS@%$OPTIONS%g
4898 s%@SET_MAKE@%$SET_MAKE%g
4901 s%@X_CFLAGS@%$X_CFLAGS%g
4902 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4903 s%@X_LIBS@%$X_LIBS%g
4904 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4907 s%@LEXLIB@%$LEXLIB%g
4908 s%@RANLIB@%$RANLIB%g
4909 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4910 s%@INSTALL_DATA@%$INSTALL_DATA%g
4914 s%@DLLFLAGS@%$DLLFLAGS%g
4915 s%@LDSHARED@%$LDSHARED%g
4916 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
4917 /@MAKE_RULES@/r $MAKE_RULES
4923 cat >> $CONFIG_STATUS <<\EOF
4925 # Split the substitutions into bite-sized pieces for seds with
4926 # small command number limits, like on Digital OSF/1 and HP-UX.
4927 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4928 ac_file
=1 # Number of current file.
4929 ac_beg
=1 # First line for current file.
4930 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4933 while $ac_more_lines; do
4934 if test $ac_beg -gt 1; then
4935 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4937 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4939 if test ! -s conftest.s
$ac_file; then
4941 rm -f conftest.s
$ac_file
4943 if test -z "$ac_sed_cmds"; then
4944 ac_sed_cmds
="sed -f conftest.s$ac_file"
4946 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4948 ac_file
=`expr $ac_file + 1`
4950 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4953 if test -z "$ac_sed_cmds"; then
4958 cat >> $CONFIG_STATUS <<EOF
4960 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
4966 dlls/advapi32/Makefile
4967 dlls/avifil32/Makefile
4968 dlls/comctl32/Makefile
4969 dlls/commdlg/Makefile
4970 dlls/imagehlp/Makefile
4972 dlls/msacm32/Makefile
4975 dlls/rasapi32/Makefile
4976 dlls/shell32/Makefile
4977 dlls/tapi32/Makefile
4979 dlls/version/Makefile
4980 dlls/winaspi/Makefile
4981 dlls/wnaspi32/Makefile
4982 documentation/Makefile
4985 graphics/metafiledrv/Makefile
4986 graphics/psdrv/Makefile
4987 graphics/ttydrv/Makefile
4988 graphics/win16drv/Makefile
4989 graphics/x11drv/Makefile
5006 programs/clock/Makefile
5007 programs/cmdlgtst/Makefile
5008 programs/control/Makefile
5009 programs/avitools/Makefile
5010 programs/notepad/Makefile
5011 programs/progman/Makefile
5012 programs/regtest/Makefile
5013 programs/regapi/Makefile
5014 programs/view/Makefile
5015 programs/winhelp/Makefile
5016 programs/winver/Makefile
5027 windows/ttydrv/Makefile
5028 windows/x11drv/Makefile "}
5030 cat >> $CONFIG_STATUS <<\EOF
5031 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5035 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5036 *) ac_file_in
="${ac_file}.in" ;;
5039 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5041 # Remove last slash and all that follows it. Not all systems have dirname.
5042 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5044 # The file is in a subdirectory.
5045 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5046 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5047 # A "../" for each directory in $ac_dir_suffix.
5048 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5050 ac_dir_suffix
= ac_dots
=
5053 case "$ac_given_srcdir" in
5055 if test -z "$ac_dots"; then top_srcdir
=.
5056 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5057 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5059 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5060 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5063 case "$ac_given_INSTALL" in
5064 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5065 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5068 echo creating
"$ac_file"
5070 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5072 *Makefile
*) ac_comsub
="1i\\
5073 # $configure_input" ;;
5077 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5079 s%@configure_input@%$configure_input%g
5080 s%@srcdir@%$srcdir%g
5081 s%@top_srcdir@%$top_srcdir%g
5082 s%@INSTALL@%$INSTALL%g
5083 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5090 # ac_d sets the value in "#define NAME VALUE" lines.
5091 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5092 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5095 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5096 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5097 ac_uB
='\([ ]\)%\1#\2define\3'
5100 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5101 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5102 ac_eB
='$%\1#\2define\3'
5106 if test "${CONFIG_HEADERS+set}" != set; then
5108 cat >> $CONFIG_STATUS <<EOF
5109 CONFIG_HEADERS="include/config.h"
5111 cat >> $CONFIG_STATUS <<\EOF
5113 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5116 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5117 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5118 *) ac_file_in
="${ac_file}.in" ;;
5121 echo creating
$ac_file
5123 rm -f conftest.frag conftest.
in conftest.out
5124 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5125 cat $ac_file_inputs > conftest.
in
5129 # Transform confdefs.h into a sed script conftest.vals that substitutes
5130 # the proper values into config.h.in to produce config.h. And first:
5131 # Protect against being on the right side of a sed subst in config.status.
5132 # Protect against being in an unquoted here document in config.status.
5134 cat > conftest.hdr
<<\EOF
5137 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5141 sed -n -f conftest.hdr confdefs.h > conftest.vals
5144 # This sed command replaces #undef with comments. This is necessary, for
5145 # example, in the case of _POSIX_SOURCE, which is predefined and required
5146 # on some systems where configure will not decide to define it.
5147 cat >> conftest.vals <<\EOF
5148 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5151 # Break up conftest.vals because some shells have a limit on
5152 # the size of here documents, and old seds have small limits too.
5157 ac_lines=`grep -c . conftest.vals
`
5158 # grep -c gives empty output for an empty file on some AIX systems.
5159 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5160 # Write a limited-size here document to conftest.frag.
5161 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5162 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5164 sed -f conftest.frag conftest.in > conftest.out
5166 mv conftest.out conftest.in
5168 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5170 mv conftest.tail conftest.vals
5174 cat >> $CONFIG_STATUS <<\EOF
5175 rm -f conftest.frag conftest.h
5176 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5177 cat conftest.in >> conftest.h
5179 if cmp -s $ac_file conftest.h 2>/dev/null; then
5180 echo "$ac_file is unchanged"
5183 # Remove last slash and all that follows it. Not all systems have dirname.
5184 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5185 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5186 # The file is in a subdirectory.
5187 test ! -d "$ac_dir" && mkdir "$ac_dir"
5190 mv conftest.h $ac_file
5195 cat >> $CONFIG_STATUS <<EOF
5198 cat >> $CONFIG_STATUS <<\EOF
5202 chmod +x $CONFIG_STATUS
5203 rm -fr confdefs* $ac_clean_files
5204 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5207 if test "$have_x" = "no"
5210 echo "*** Warning: X development files not found. Wine will be built without"
5211 echo "*** X support, which currently does not work, and would probably not be"
5212 echo "*** what you want anyway. You will need to install devel packages of"
5213 echo "*** Xlib/Xfree86 and Xpm at the very least."
5214 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5217 echo "*** Warning: Xpm development files not found. Wine will be built without"
5218 echo "*** Xpm support, which currently does not work. You will need to install"
5219 echo "*** devel packages of Xpm."
5222 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5225 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5226 echo "*** terminal resize support. Consider upgrading ncurses."
5229 if test "$wine_cv_libc_reentrant" = "no"
5232 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5233 echo "*** thread support. Consider upgrading libc to a more recent"
5234 echo "*** reentrant version of libc."
5237 if test "$wine_cv_mesa_version_OK" = "no"
5240 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5241 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5245 echo "Configure finished. Do 'make depend && make' to compile Wine."