3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --disable-dll build static libraries instead of DLLs"
20 --disable-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 SHELL
=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest
* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file
=controls
/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted
=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted
=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE
; then
497 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file
in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp
='$CPP $CPPFLAGS'
520 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling
=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
535 ac_n
= ac_c
='\c' ac_t
=
541 for ac_dir
in tools
$srcdir/tools
; do
542 if test -f $ac_dir/install-sh
; then
544 ac_install_sh
="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh
; then
548 ac_install_sh
="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess
=$ac_aux_dir/config.guess
556 ac_config_sub
=$ac_aux_dir/config.sub
557 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
560 # We want these before the checks, so the checks can modify their values.
562 test -z "$PROGEXT" && PROGEXT
=""
566 LIB_TYPE
=dll
# one of static, dll, nolib
567 TRACE_MSGS
=yes # the TRACE() macro
568 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
570 # Check whether --enable-emulator or --disable-emulator was given.
571 if test "${enable_emulator+set}" = set; then
572 enableval
="$enable_emulator"
573 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
577 # Check whether --enable-dll or --disable-dll was given.
578 if test "${enable_dll+set}" = set; then
579 enableval
="$enable_dll"
580 if test "$enableval" = "no"; then LIB_TYPE
="static"; fi
584 # Check whether --enable-lib or --disable-lib was given.
585 if test "${enable_lib+set}" = set; then
586 enableval
="$enable_lib"
587 if test "$enableval" = "no"; then LIB_TYPE
="nolib"; fi
591 # Check whether --enable-debug or --disable-debug was given.
592 if test "${enable_debug+set}" = set; then
593 enableval
="$enable_debug"
594 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
598 # Check whether --enable-trace or --disable-trace was given.
599 if test "${enable_trace+set}" = set; then
600 enableval
="$enable_trace"
601 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
605 # Check whether --with-reentrant-x or --without-reentrant-x was given.
606 if test "${with_reentrant_x+set}" = set; then
607 withval
="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
617 cat >> confdefs.h
<<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h
<<\EOF
622 #define NO_TRACE_MSGS 1
626 if test "$TRACE_MSGS" = "no"
628 cat >> confdefs.h
<<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 cat > conftestmake
<<\EOF
644 @
echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_
${ac_make}_set
=yes
651 eval ac_cv_prog_make_
${ac_make}_set
=no
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
659 echo "$ac_t""no" 1>&6
660 SET_MAKE
="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc
; ac_word
=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC
="$CC" # Let the user override the test.
673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
675 for ac_dir
in $ac_dummy; 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
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
709 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
718 if test $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy
$ac_cv_prog_CC
722 if test $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
727 set dummy
"$ac_dir/$ac_word" "$@"
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
738 echo "$ac_t""no" 1>&6
741 if test -z "$CC"; then
744 # Extract the first word of "cl", so it can be a program name with args.
745 set dummy cl
; ac_word
=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC
="$CC" # Let the user override the test.
754 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
756 for ac_dir
in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir
=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
775 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
783 ac_cpp
='$CPP $CPPFLAGS'
784 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
785 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
786 cross_compiling
=$ac_cv_prog_cc_cross
788 cat > conftest.
$ac_ext << EOF
790 #line 791 "configure"
791 #include "confdefs.h"
795 if { (eval echo configure
:796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
796 ac_cv_prog_cc_works
=yes
797 # If we can't run a trivial program, we are probably using a cross compiler.
798 if (.
/conftest
; exit) 2>/dev
/null
; then
799 ac_cv_prog_cc_cross
=no
801 ac_cv_prog_cc_cross
=yes
804 echo "configure: failed program was:" >&5
805 cat conftest.
$ac_ext >&5
806 ac_cv_prog_cc_works
=no
810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
811 ac_cpp
='$CPP $CPPFLAGS'
812 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
813 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
814 cross_compiling
=$ac_cv_prog_cc_cross
816 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
817 if test $ac_cv_prog_cc_works = no
; then
818 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
821 echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
822 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
823 cross_compiling
=$ac_cv_prog_cc_cross
825 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
826 echo "configure:827: checking whether we are using GNU C" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 cat > conftest.c
<<EOF
835 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
842 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
844 if test $ac_cv_prog_gcc = yes; then
850 ac_test_CFLAGS
="${CFLAGS+set}"
851 ac_save_CFLAGS
="$CFLAGS"
853 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
854 echo "configure:855: checking whether ${CC-cc} accepts -g" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 echo 'void f(){}' > conftest.c
859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
868 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
869 if test "$ac_test_CFLAGS" = set; then
870 CFLAGS
="$ac_save_CFLAGS"
871 elif test $ac_cv_prog_cc_g = yes; then
872 if test "$GCC" = yes; then
878 if test "$GCC" = yes; then
885 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
886 echo "configure:887: checking how to run the C preprocessor" >&5
887 # On Suns, sometimes $CPP names a directory.
888 if test -n "$CPP" && test -d "$CPP"; then
891 if test -z "$CPP"; then
892 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 # This must be in double quotes, not single quotes, because CPP may get
896 # substituted into the Makefile and "${CC-cc}" will confuse make.
898 # On the NeXT, cc -E runs the code through the compiler's parser,
899 # not just through cpp.
900 cat > conftest.
$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure
:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
916 CPP
="${CC-cc} -E -traditional-cpp"
917 cat > conftest.
$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure
:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.
$ac_ext >&5
933 CPP
="${CC-cc} -nologo -E"
934 cat > conftest.
$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure
:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
947 echo "configure: failed program was:" >&5
948 cat conftest.
$ac_ext >&5
957 ac_cv_prog_CPP
="$CPP"
959 CPP
="$ac_cv_prog_CPP"
961 ac_cv_prog_CPP
="$CPP"
963 echo "$ac_t""$CPP" 1>&6
965 # If we find X, set shell vars x_includes and x_libraries to the
966 # paths, otherwise set no_x=yes.
967 # Uses ac_ vars as temps to allow command line to override cache and checks.
968 # --without-x overrides everything else, but does not touch the cache.
969 echo $ac_n "checking for X""... $ac_c" 1>&6
970 echo "configure:971: checking for X" >&5
972 # Check whether --with-x or --without-x was given.
973 if test "${with_x+set}" = set; then
978 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
979 if test "x$with_x" = xno
; then
980 # The user explicitly disabled X.
983 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
984 # Both variables are already set.
987 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 # One or both of the vars are not set, and there is no cached value.
991 ac_x_includes
=NO ac_x_libraries
=NO
993 if mkdir conftestdir
; then
995 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
996 cat > Imakefile
<<'EOF'
998 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1000 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1002 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1003 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1004 for ac_extension
in a so sl
; do
1005 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1006 test -f $ac_im_libdir/libX11.
$ac_extension; then
1007 ac_im_usrlibdir
=$ac_im_libdir; break
1010 # Screen out bogus values from the imake configuration. They are
1011 # bogus both because they are the default anyway, and because
1012 # using them would break gcc on systems where it needs fixed includes.
1013 case "$ac_im_incroot" in
1015 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1017 case "$ac_im_usrlibdir" in
1019 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1026 if test "$ac_x_includes" = NO
; then
1027 # Guess where to find include files, by looking for this one X11 .h file.
1028 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1030 # First, try using that file with no special directory specified.
1031 cat > conftest.
$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 #include <$x_direct_test_include>
1036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure
:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1041 # We can compile using X headers with no special include directory.
1045 echo "configure: failed program was:" >&5
1046 cat conftest.
$ac_ext >&5
1048 # Look for the header file in a standard set of common directories.
1049 # Check X11 before X11Rn because it is often a symlink to the current release.
1052 /usr
/X11R
6/include \
1053 /usr
/X11R
5/include \
1054 /usr
/X11R
4/include \
1057 /usr
/include
/X11R6 \
1058 /usr
/include
/X11R5 \
1059 /usr
/include
/X11R4 \
1061 /usr
/local
/X11
/include \
1062 /usr
/local
/X11R
6/include \
1063 /usr
/local
/X11R
5/include \
1064 /usr
/local
/X11R
4/include \
1066 /usr
/local
/include
/X11 \
1067 /usr
/local
/include
/X11R6 \
1068 /usr
/local
/include
/X11R5 \
1069 /usr
/local
/include
/X11R4 \
1073 /usr
/XFree86
/include
/X11 \
1076 /usr
/local
/include \
1077 /usr
/unsupported
/include \
1078 /usr
/athena
/include \
1079 /usr
/local
/x11r
5/include \
1080 /usr
/lpp
/Xamples
/include \
1082 /usr
/openwin
/include \
1083 /usr
/openwin
/share
/include \
1086 if test -r "$ac_dir/$x_direct_test_include"; then
1087 ac_x_includes
=$ac_dir
1093 fi # $ac_x_includes = NO
1095 if test "$ac_x_libraries" = NO
; then
1096 # Check for the libraries.
1098 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1099 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1101 # See if we find them without any special options.
1102 # Don't add to $LIBS permanently.
1103 ac_save_LIBS
="$LIBS"
1104 LIBS
="-l$x_direct_test_library $LIBS"
1105 cat > conftest.
$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1110 ${x_direct_test_function}()
1113 if { (eval echo configure
:1114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1115 LIBS
="$ac_save_LIBS"
1116 # We can link X programs with no special library path.
1119 echo "configure: failed program was:" >&5
1120 cat conftest.
$ac_ext >&5
1122 LIBS
="$ac_save_LIBS"
1123 # First see if replacing the include by lib works.
1124 # Check X11 before X11Rn because it is often a symlink to the current release.
1125 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1136 /usr
/local
/X11
/lib \
1137 /usr
/local
/X11R
6/lib \
1138 /usr
/local
/X11R
5/lib \
1139 /usr
/local
/X11R
4/lib \
1141 /usr
/local
/lib
/X11 \
1142 /usr
/local
/lib
/X11R6 \
1143 /usr
/local
/lib
/X11R5 \
1144 /usr
/local
/lib
/X11R4 \
1148 /usr
/XFree86
/lib
/X11 \
1152 /usr
/unsupported
/lib \
1154 /usr
/local
/x11r
5/lib \
1155 /usr
/lpp
/Xamples
/lib \
1159 /usr
/openwin
/share
/lib \
1162 for ac_extension
in a so sl
; do
1163 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1164 ac_x_libraries
=$ac_dir
1171 fi # $ac_x_libraries = NO
1173 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1174 # Didn't find X anywhere. Cache the known absence of X.
1175 ac_cv_have_x
="have_x=no"
1177 # Record where we found X for the cache.
1178 ac_cv_have_x
="have_x=yes \
1179 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1183 eval "$ac_cv_have_x"
1186 if test "$have_x" != yes; then
1187 echo "$ac_t""$have_x" 1>&6
1190 # If each of the values was on the command line, it overrides each guess.
1191 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1192 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1193 # Update the cache value to reflect the command line values.
1194 ac_cv_have_x
="have_x=yes \
1195 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1196 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1199 if test "$no_x" = yes; then
1200 # Not all programs may use this symbol, but it does not hurt to define it.
1201 cat >> confdefs.h
<<\EOF
1202 #define X_DISPLAY_MISSING 1
1205 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1207 if test -n "$x_includes"; then
1208 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1211 # It would also be nice to do this for all -L options, not just this one.
1212 if test -n "$x_libraries"; then
1213 X_LIBS
="$X_LIBS -L$x_libraries"
1214 # For Solaris; some versions of Sun CC require a space after -R and
1215 # others require no space. Words are not sufficient . . . .
1216 case "`(uname -sr) 2>/dev/null`" in
1218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether -R must be followed by a space" >&5
1220 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1229 if { (eval echo configure
:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1233 echo "configure: failed program was:" >&5
1234 cat conftest.
$ac_ext >&5
1239 if test $ac_R_nospace = yes; then
1240 echo "$ac_t""no" 1>&6
1241 X_LIBS
="$X_LIBS -R$x_libraries"
1243 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1252 if { (eval echo configure
:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1262 if test $ac_R_space = yes; then
1263 echo "$ac_t""yes" 1>&6
1264 X_LIBS
="$X_LIBS -R $x_libraries"
1266 echo "$ac_t""neither works" 1>&6
1269 LIBS
="$ac_xsave_LIBS"
1273 # Check for system-dependent libraries X programs must link with.
1274 # Do this before checking for the system-independent R6 libraries
1275 # (-lICE), since we may need -lsocket or whatever for X linking.
1277 if test "$ISC" = yes; then
1278 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1280 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1281 # libraries were built with DECnet support. And karl@cs.umb.edu says
1282 # the Alpha needs dnet_stub (dnet does not exist).
1283 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1284 echo "configure:1285: checking for dnet_ntoa in -ldnet" >&5
1285 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 ac_save_LIBS
="$LIBS"
1291 cat > conftest.
$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1303 if { (eval echo configure
:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1307 echo "configure: failed program was:" >&5
1308 cat conftest.
$ac_ext >&5
1310 eval "ac_cv_lib_$ac_lib_var=no"
1313 LIBS
="$ac_save_LIBS"
1316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1320 echo "$ac_t""no" 1>&6
1323 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1324 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1325 echo "configure:1326: checking for dnet_ntoa in -ldnet_stub" >&5
1326 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 ac_save_LIBS
="$LIBS"
1331 LIBS
="-ldnet_stub $LIBS"
1332 cat > conftest.
$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 /* Override any gcc2 internal prototype to avoid an error. */
1336 /* We use char because int might match the return type of a gcc2
1337 builtin and then its argument prototype would still apply. */
1344 if { (eval echo configure
:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1346 eval "ac_cv_lib_$ac_lib_var=yes"
1348 echo "configure: failed program was:" >&5
1349 cat conftest.
$ac_ext >&5
1351 eval "ac_cv_lib_$ac_lib_var=no"
1354 LIBS
="$ac_save_LIBS"
1357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1359 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1361 echo "$ac_t""no" 1>&6
1366 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1367 # to get the SysV transport functions.
1368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1370 # The nsl library prevents programs from opening the X display
1371 # on Irix 5.2, according to dickey@clark.net.
1372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1373 echo "configure:1374: checking for gethostbyname" >&5
1374 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.
$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 /* System header to define __stub macros and hopefully few prototypes,
1381 which can conflict with char gethostbyname(); below. */
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1386 char gethostbyname();
1390 /* The GNU C library defines this for functions which it implements
1391 to always fail with ENOSYS. Some functions are actually named
1392 something starting with __ and the normal name is an alias. */
1393 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1401 if { (eval echo configure
:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1403 eval "ac_cv_func_gethostbyname=yes"
1405 echo "configure: failed program was:" >&5
1406 cat conftest.
$ac_ext >&5
1408 eval "ac_cv_func_gethostbyname=no"
1413 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1414 echo "$ac_t""yes" 1>&6
1417 echo "$ac_t""no" 1>&6
1420 if test $ac_cv_func_gethostbyname = no
; then
1421 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for gethostbyname in -lnsl" >&5
1423 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_save_LIBS
="$LIBS"
1429 cat > conftest.
$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435 char gethostbyname();
1441 if { (eval echo configure
:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.
$ac_ext >&5
1448 eval "ac_cv_lib_$ac_lib_var=no"
1451 LIBS
="$ac_save_LIBS"
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1456 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1458 echo "$ac_t""no" 1>&6
1463 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1464 # socket/setsockopt and other routines are undefined under SCO ODT
1465 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1466 # on later versions), says simon@lia.di.epfl.ch: it contains
1467 # gethostby* variants that don't use the nameserver (or something).
1468 # -lsocket must be given before -lnsl if both are needed.
1469 # We assume that if connect needs -lnsl, so does gethostbyname.
1470 echo $ac_n "checking for connect""... $ac_c" 1>&6
1471 echo "configure:1472: checking for connect" >&5
1472 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* System header to define __stub macros and hopefully few prototypes,
1479 which can conflict with char connect(); below. */
1481 /* Override any gcc2 internal prototype to avoid an error. */
1482 /* We use char because int might match the return type of a gcc2
1483 builtin and then its argument prototype would still apply. */
1488 /* The GNU C library defines this for functions which it implements
1489 to always fail with ENOSYS. Some functions are actually named
1490 something starting with __ and the normal name is an alias. */
1491 #if defined (__stub_connect) || defined (__stub___connect)
1499 if { (eval echo configure
:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1501 eval "ac_cv_func_connect=yes"
1503 echo "configure: failed program was:" >&5
1504 cat conftest.
$ac_ext >&5
1506 eval "ac_cv_func_connect=no"
1511 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1512 echo "$ac_t""yes" 1>&6
1515 echo "$ac_t""no" 1>&6
1518 if test $ac_cv_func_connect = no
; then
1519 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1520 echo "configure:1521: checking for connect in -lsocket" >&5
1521 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS
="$LIBS"
1526 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1539 if { (eval echo configure
:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS
="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1556 echo "$ac_t""no" 1>&6
1561 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1562 echo $ac_n "checking for remove""... $ac_c" 1>&6
1563 echo "configure:1564: checking for remove" >&5
1564 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* System header to define __stub macros and hopefully few prototypes,
1571 which can conflict with char remove(); below. */
1573 /* Override any gcc2 internal prototype to avoid an error. */
1574 /* We use char because int might match the return type of a gcc2
1575 builtin and then its argument prototype would still apply. */
1580 /* The GNU C library defines this for functions which it implements
1581 to always fail with ENOSYS. Some functions are actually named
1582 something starting with __ and the normal name is an alias. */
1583 #if defined (__stub_remove) || defined (__stub___remove)
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1593 eval "ac_cv_func_remove=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 eval "ac_cv_func_remove=no"
1603 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1607 echo "$ac_t""no" 1>&6
1610 if test $ac_cv_func_remove = no
; then
1611 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1612 echo "configure:1613: checking for remove in -lposix" >&5
1613 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 ac_save_LIBS
="$LIBS"
1618 LIBS
="-lposix $LIBS"
1619 cat > conftest.
$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1622 /* Override any gcc2 internal prototype to avoid an error. */
1623 /* We use char because int might match the return type of a gcc2
1624 builtin and then its argument prototype would still apply. */
1631 if { (eval echo configure
:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1633 eval "ac_cv_lib_$ac_lib_var=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1638 eval "ac_cv_lib_$ac_lib_var=no"
1641 LIBS
="$ac_save_LIBS"
1644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1648 echo "$ac_t""no" 1>&6
1653 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1654 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1655 echo "configure:1656: checking for shmat" >&5
1656 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.
$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* System header to define __stub macros and hopefully few prototypes,
1663 which can conflict with char shmat(); below. */
1665 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined (__stub_shmat) || defined (__stub___shmat)
1683 if { (eval echo configure
:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1685 eval "ac_cv_func_shmat=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.
$ac_ext >&5
1690 eval "ac_cv_func_shmat=no"
1695 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1699 echo "$ac_t""no" 1>&6
1702 if test $ac_cv_func_shmat = no
; then
1703 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1704 echo "configure:1705: checking for shmat in -lipc" >&5
1705 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 ac_save_LIBS
="$LIBS"
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1723 if { (eval echo configure
:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1725 eval "ac_cv_lib_$ac_lib_var=yes"
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1730 eval "ac_cv_lib_$ac_lib_var=no"
1733 LIBS
="$ac_save_LIBS"
1736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1737 echo "$ac_t""yes" 1>&6
1738 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1740 echo "$ac_t""no" 1>&6
1746 # Check for libraries that X11R6 Xt/Xaw programs need.
1747 ac_save_LDFLAGS
="$LDFLAGS"
1748 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1749 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1750 # check for ICE first), but we must link in the order -lSM -lICE or
1751 # we get undefined symbols. So assume we have SM if we have ICE.
1752 # These have to be linked with before -lX11, unlike the other
1753 # libraries we check for below, so use a different variable.
1754 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1755 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1756 echo "configure:1757: checking for IceConnectionNumber in -lICE" >&5
1757 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 ac_save_LIBS
="$LIBS"
1762 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1763 cat > conftest.
$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1769 char IceConnectionNumber();
1772 IceConnectionNumber()
1775 if { (eval echo configure
:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1782 eval "ac_cv_lib_$ac_lib_var=no"
1785 LIBS
="$ac_save_LIBS"
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1792 echo "$ac_t""no" 1>&6
1795 LDFLAGS
="$ac_save_LDFLAGS"
1799 for ac_prog
in 'bison -y' byacc
1801 # Extract the first word of "$ac_prog", so it can be a program name with args.
1802 set dummy
$ac_prog; ac_word
=$2
1803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_word" >&5
1805 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 if test -n "$YACC"; then
1809 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1811 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1813 for ac_dir
in $ac_dummy; do
1814 test -z "$ac_dir" && ac_dir
=.
1815 if test -f $ac_dir/$ac_word; then
1816 ac_cv_prog_YACC
="$ac_prog"
1823 YACC
="$ac_cv_prog_YACC"
1824 if test -n "$YACC"; then
1825 echo "$ac_t""$YACC" 1>&6
1827 echo "$ac_t""no" 1>&6
1830 test -n "$YACC" && break
1832 test -n "$YACC" || YACC
="yacc"
1834 # Extract the first word of "flex", so it can be a program name with args.
1835 set dummy flex
; ac_word
=$2
1836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_word" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 if test -n "$LEX"; then
1842 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1846 for ac_dir
in $ac_dummy; do
1847 test -z "$ac_dir" && ac_dir
=.
1848 if test -f $ac_dir/$ac_word; then
1849 ac_cv_prog_LEX
="flex"
1854 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1857 LEX
="$ac_cv_prog_LEX"
1858 if test -n "$LEX"; then
1859 echo "$ac_t""$LEX" 1>&6
1861 echo "$ac_t""no" 1>&6
1864 if test -z "$LEXLIB"
1870 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1871 echo "configure:1872: checking for yywrap in -l$ac_lib" >&5
1872 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 ac_save_LIBS
="$LIBS"
1877 LIBS
="-l$ac_lib $LIBS"
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* Override any gcc2 internal prototype to avoid an error. */
1882 /* We use char because int might match the return type of a gcc2
1883 builtin and then its argument prototype would still apply. */
1890 if { (eval echo configure
:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.
$ac_ext >&5
1897 eval "ac_cv_lib_$ac_lib_var=no"
1900 LIBS
="$ac_save_LIBS"
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1907 echo "$ac_t""no" 1>&6
1912 # Extract the first word of "ranlib", so it can be a program name with args.
1913 set dummy ranlib
; ac_word
=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 if test -n "$RANLIB"; then
1920 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1922 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1924 for ac_dir
in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir
=.
1926 if test -f $ac_dir/$ac_word; then
1927 ac_cv_prog_RANLIB
="ranlib"
1932 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1935 RANLIB
="$ac_cv_prog_RANLIB"
1936 if test -n "$RANLIB"; then
1937 echo "$ac_t""$RANLIB" 1>&6
1939 echo "$ac_t""no" 1>&6
1942 # Find a good install program. We prefer a C program (faster),
1943 # so one script is as good as another. But avoid the broken or
1944 # incompatible versions:
1945 # SysV /etc/install, /usr/sbin/install
1946 # SunOS /usr/etc/install
1947 # IRIX /sbin/install
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # ./install, which can be erroneously created by make from ./install.sh.
1953 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1954 echo "configure:1955: checking for a BSD compatible install" >&5
1955 if test -z "$INSTALL"; then
1956 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1960 for ac_dir
in $PATH; do
1961 # Account for people who put trailing slashes in PATH elements.
1963 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1965 # OSF1 and SCO ODT 3.0 have their own names for install.
1966 # Don't use installbsd from OSF since it installs stuff as root
1968 for ac_prog
in ginstall scoinst
install; do
1969 if test -f $ac_dir/$ac_prog; then
1970 if test $ac_prog = install &&
1971 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1972 # AIX install. It has an incompatible calling convention.
1975 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1986 if test "${ac_cv_path_install+set}" = set; then
1987 INSTALL
="$ac_cv_path_install"
1989 # As a last resort, use the slow shell script. We don't cache a
1990 # path for INSTALL within a source directory, because that will
1991 # break other packages using the cache if that directory is
1992 # removed, or if the path is relative.
1993 INSTALL
="$ac_install_sh"
1996 echo "$ac_t""$INSTALL" 1>&6
1998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1999 # It thinks the first close brace ends the variable substitution.
2000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2004 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2006 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether ln -s works" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2012 if ln -s X conftestdata
2>/dev
/null
2015 ac_cv_prog_LN_S
="ln -s"
2020 LN_S
="$ac_cv_prog_LN_S"
2021 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2022 echo "$ac_t""yes" 1>&6
2024 echo "$ac_t""no" 1>&6
2027 # Extract the first word of "c2man", so it can be a program name with args.
2028 set dummy c2man
; ac_word
=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 if test -n "$C2MAN"; then
2035 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2039 for ac_dir
in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir
=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_prog_C2MAN
="c2man"
2047 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
2050 C2MAN
="$ac_cv_prog_C2MAN"
2051 if test -n "$C2MAN"; then
2052 echo "$ac_t""$C2MAN" 1>&6
2054 echo "$ac_t""no" 1>&6
2057 # Extract the first word of "ldconfig", so it can be a program name with args.
2058 set dummy ldconfig
; ac_word
=$2
2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_word" >&5
2061 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2066 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2069 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2072 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2073 ac_dummy
="/sbin:/usr/sbin:$PATH"
2074 for ac_dir
in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir
=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2082 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="false"
2086 LDCONFIG
="$ac_cv_path_LDCONFIG"
2087 if test -n "$LDCONFIG"; then
2088 echo "$ac_t""$LDCONFIG" 1>&6
2090 echo "$ac_t""no" 1>&6
2094 for ac_prog
in lclint lint
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy
$ac_prog; ac_word
=$2
2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099 echo "configure:2100: checking for $ac_word" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 if test -n "$LINT"; then
2104 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2108 for ac_dir
in $ac_dummy; do
2109 test -z "$ac_dir" && ac_dir
=.
2110 if test -f $ac_dir/$ac_word; then
2111 ac_cv_prog_LINT
="$ac_prog"
2118 LINT
="$ac_cv_prog_LINT"
2119 if test -n "$LINT"; then
2120 echo "$ac_t""$LINT" 1>&6
2122 echo "$ac_t""no" 1>&6
2125 test -n "$LINT" && break
2128 if test "$LINT" = "lint"
2130 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2136 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2137 echo "configure:2138: checking for sqrt in -lm" >&5
2138 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 ac_save_LIBS
="$LIBS"
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 /* Override any gcc2 internal prototype to avoid an error. */
2148 /* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2156 if { (eval echo configure
:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2158 eval "ac_cv_lib_$ac_lib_var=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 eval "ac_cv_lib_$ac_lib_var=no"
2166 LIBS
="$ac_save_LIBS"
2169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2173 cat >> confdefs.h
<<EOF
2174 #define $ac_tr_lib 1
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2184 echo "configure:2185: checking for i386_set_ldt in -li386" >&5
2185 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 ac_save_LIBS
="$LIBS"
2191 cat > conftest.
$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2197 char i386_set_ldt();
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_lib_$ac_lib_var=no"
2213 LIBS
="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2220 cat >> confdefs.h
<<EOF
2221 #define $ac_tr_lib 1
2227 echo "$ac_t""no" 1>&6
2230 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2231 echo "configure:2232: checking for _oss_ioctl in -lossaudio" >&5
2232 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 ac_save_LIBS
="$LIBS"
2237 LIBS
="-lossaudio $LIBS"
2238 cat > conftest.
$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 /* Override any gcc2 internal prototype to avoid an error. */
2242 /* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 eval "ac_cv_lib_$ac_lib_var=no"
2260 LIBS
="$ac_save_LIBS"
2263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2267 cat >> confdefs.h
<<EOF
2268 #define $ac_tr_lib 1
2271 LIBS
="-lossaudio $LIBS"
2274 echo "$ac_t""no" 1>&6
2277 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2278 echo "configure:2279: checking for iswalnum in -lw" >&5
2279 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 ac_save_LIBS
="$LIBS"
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2297 if { (eval echo configure
:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.
$ac_ext >&5
2304 eval "ac_cv_lib_$ac_lib_var=no"
2307 LIBS
="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2314 cat >> confdefs.h
<<EOF
2315 #define $ac_tr_lib 1
2321 echo "$ac_t""no" 1>&6
2324 for ac_func
in gethostbyname
2326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_func" >&5
2328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char $ac_func(); below. */
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2355 if { (eval echo configure
:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2357 eval "ac_cv_func_$ac_func=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_func_$ac_func=no"
2367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2370 cat >> confdefs.h
<<EOF
2371 #define $ac_tr_func 1
2375 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2377 echo "configure:2378: checking for gethostbyname in -lnsl" >&5
2378 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 ac_save_LIBS
="$LIBS"
2383 LIBS
="-lnsl -lsocket $LIBS"
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2390 char gethostbyname();
2396 if { (eval echo configure
:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_lib_$ac_lib_var=no"
2406 LIBS
="$ac_save_LIBS"
2409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2413 echo "$ac_t""no" 1>&6
2414 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2415 echo "configure:2416: checking for gethostbyname in -lsocket" >&5
2416 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_save_LIBS
="$LIBS"
2421 LIBS
="-lsocket -lnsl $LIBS"
2422 cat > conftest.
$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 /* We use char because int might match the return type of a gcc2
2427 builtin and then its argument prototype would still apply. */
2428 char gethostbyname();
2434 if { (eval echo configure
:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2436 eval "ac_cv_lib_$ac_lib_var=yes"
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 eval "ac_cv_lib_$ac_lib_var=no"
2444 LIBS
="$ac_save_LIBS"
2447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2451 echo "$ac_t""no" 1>&6
2459 for ac_func
in connect
2461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_func" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* System header to define __stub macros and hopefully few prototypes,
2470 which can conflict with char $ac_func(); below. */
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2479 /* The GNU C library defines this for functions which it implements
2480 to always fail with ENOSYS. Some functions are actually named
2481 something starting with __ and the normal name is an alias. */
2482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2490 if { (eval echo configure
:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2492 eval "ac_cv_func_$ac_func=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2497 eval "ac_cv_func_$ac_func=no"
2502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2505 cat >> confdefs.h
<<EOF
2506 #define $ac_tr_func 1
2510 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2512 echo "configure:2513: checking for connect in -lsocket" >&5
2513 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2517 ac_save_LIBS
="$LIBS"
2518 LIBS
="-lsocket $LIBS"
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2531 if { (eval echo configure
:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2533 eval "ac_cv_lib_$ac_lib_var=yes"
2535 echo "configure: failed program was:" >&5
2536 cat conftest.
$ac_ext >&5
2538 eval "ac_cv_lib_$ac_lib_var=no"
2541 LIBS
="$ac_save_LIBS"
2544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2547 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2548 cat >> confdefs.h
<<EOF
2549 #define $ac_tr_lib 1
2552 LIBS
="-lsocket $LIBS"
2555 echo "$ac_t""no" 1>&6
2561 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2562 echo "configure:2563: checking for setrunelocale in -lxpg4" >&5
2563 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 ac_save_LIBS
="$LIBS"
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* Override any gcc2 internal prototype to avoid an error. */
2573 /* We use char because int might match the return type of a gcc2
2574 builtin and then its argument prototype would still apply. */
2575 char setrunelocale();
2581 if { (eval echo configure
:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2583 eval "ac_cv_lib_$ac_lib_var=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.
$ac_ext >&5
2588 eval "ac_cv_lib_$ac_lib_var=no"
2591 LIBS
="$ac_save_LIBS"
2594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2595 echo "$ac_t""yes" 1>&6
2596 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2598 cat >> confdefs.h
<<EOF
2599 #define $ac_tr_lib 1
2605 echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2609 echo "configure:2610: checking for mmap in -lmmap" >&5
2610 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_save_LIBS
="$LIBS"
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 /* We use char because int might match the return type of a gcc2
2621 builtin and then its argument prototype would still apply. */
2628 if { (eval echo configure
:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2630 eval "ac_cv_lib_$ac_lib_var=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 eval "ac_cv_lib_$ac_lib_var=no"
2638 LIBS
="$ac_save_LIBS"
2641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2645 cat >> confdefs.h
<<EOF
2646 #define $ac_tr_lib 1
2652 echo "$ac_t""no" 1>&6
2655 for ac_func
in openpty
2657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_func" >&5
2659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* System header to define __stub macros and hopefully few prototypes,
2666 which can conflict with char $ac_func(); below. */
2668 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2675 /* The GNU C library defines this for functions which it implements
2676 to always fail with ENOSYS. Some functions are actually named
2677 something starting with __ and the normal name is an alias. */
2678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2686 if { (eval echo configure
:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2688 eval "ac_cv_func_$ac_func=yes"
2690 echo "configure: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 eval "ac_cv_func_$ac_func=no"
2698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2701 cat >> confdefs.h
<<EOF
2702 #define $ac_tr_func 1
2706 echo "$ac_t""no" 1>&6
2707 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2708 echo "configure:2709: checking for openpty in -lutil" >&5
2709 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_save_LIBS
="$LIBS"
2715 cat > conftest.
$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2727 if { (eval echo configure
:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2734 eval "ac_cv_lib_$ac_lib_var=no"
2737 LIBS
="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 cat >> confdefs.h
<<\EOF
2743 #define HAVE_OPENPTY 1
2749 echo "$ac_t""no" 1>&6
2756 for ac_hdr
in dlfcn.h
2758 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_hdr" >&5
2761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770 { (eval echo configure
:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772 if test -z "$ac_err"; then
2774 eval "ac_cv_header_$ac_safe=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.
$ac_ext >&5
2780 eval "ac_cv_header_$ac_safe=no"
2784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2785 echo "$ac_t""yes" 1>&6
2786 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2787 cat >> confdefs.h
<<EOF
2788 #define $ac_tr_hdr 1
2790 for ac_func
in dlopen
2792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_func" >&5
2794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 /* System header to define __stub macros and hopefully few prototypes,
2801 which can conflict with char $ac_func(); below. */
2803 /* Override any gcc2 internal prototype to avoid an error. */
2804 /* We use char because int might match the return type of a gcc2
2805 builtin and then its argument prototype would still apply. */
2810 /* The GNU C library defines this for functions which it implements
2811 to always fail with ENOSYS. Some functions are actually named
2812 something starting with __ and the normal name is an alias. */
2813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2821 if { (eval echo configure
:2822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2823 eval "ac_cv_func_$ac_func=yes"
2825 echo "configure: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2828 eval "ac_cv_func_$ac_func=no"
2833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2836 cat >> confdefs.h
<<EOF
2837 #define $ac_tr_func 1
2839 cat >> confdefs.h
<<\EOF
2840 #define HAVE_DL_API 1
2844 echo "$ac_t""no" 1>&6
2845 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2846 echo "configure:2847: checking for dlopen in -ldl" >&5
2847 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 ac_save_LIBS
="$LIBS"
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 /* Override any gcc2 internal prototype to avoid an error. */
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2865 if { (eval echo configure
:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2867 eval "ac_cv_lib_$ac_lib_var=yes"
2869 echo "configure: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2872 eval "ac_cv_lib_$ac_lib_var=no"
2875 LIBS
="$ac_save_LIBS"
2878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2880 cat >> confdefs.h
<<\EOF
2881 #define HAVE_DL_API 1
2887 echo "$ac_t""no" 1>&6
2896 echo "$ac_t""no" 1>&6
2901 if test "$have_x" = "yes"
2904 ac_save_CPPFLAGS
="$CPPFLAGS"
2905 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2907 for ac_hdr
in X11
/xpm.h
2909 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2911 echo "configure:2912: checking for $ac_hdr" >&5
2912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 cat > conftest.
$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2921 { (eval echo configure
:2922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2923 if test -z "$ac_err"; then
2925 eval "ac_cv_header_$ac_safe=yes"
2928 echo "configure: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2931 eval "ac_cv_header_$ac_safe=no"
2935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2936 echo "$ac_t""yes" 1>&6
2937 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2938 cat >> confdefs.h
<<EOF
2939 #define $ac_tr_hdr 1
2943 echo "$ac_t""no" 1>&6
2947 if test "$ac_cv_header_X11_xpm_h" = "yes"
2949 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2950 echo "configure:2951: checking for XpmCreatePixmapFromData in -lXpm" >&5
2951 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 ac_save_LIBS
="$LIBS"
2956 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2957 cat > conftest.
$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* Override any gcc2 internal prototype to avoid an error. */
2961 /* We use char because int might match the return type of a gcc2
2962 builtin and then its argument prototype would still apply. */
2963 char XpmCreatePixmapFromData();
2966 XpmCreatePixmapFromData()
2969 if { (eval echo configure
:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2976 eval "ac_cv_lib_$ac_lib_var=no"
2979 LIBS
="$ac_save_LIBS"
2982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 cat >> confdefs.h
<<\EOF
2985 #define HAVE_LIBXXPM 1
2987 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2989 echo "$ac_t""no" 1>&6
2993 echo "When compiling with X support, you need the Xpm library, or"
2994 echo "WINE will not work. This Xpm library is within the following RPM,"
2995 echo "which you need to install:"
2996 echo "Redhat : xpm, xpm-devel"
2997 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3000 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3001 echo "the directory /contrib/libraries."
3007 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
3009 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_hdr" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3020 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3021 { (eval echo configure
:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3022 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3023 if test -z "$ac_err"; then
3025 eval "ac_cv_header_$ac_safe=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.
$ac_ext >&5
3031 eval "ac_cv_header_$ac_safe=no"
3035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3036 echo "$ac_t""yes" 1>&6
3037 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3038 cat >> confdefs.h
<<EOF
3039 #define $ac_tr_hdr 1
3043 echo "$ac_t""no" 1>&6
3047 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3049 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3050 echo "configure:3051: checking for XShmQueryExtension in -lXext" >&5
3051 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 ac_save_LIBS
="$LIBS"
3056 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3057 cat > conftest.
$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3063 char XShmQueryExtension();
3066 XShmQueryExtension()
3069 if { (eval echo configure
:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3071 eval "ac_cv_lib_$ac_lib_var=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.
$ac_ext >&5
3076 eval "ac_cv_lib_$ac_lib_var=no"
3079 LIBS
="$ac_save_LIBS"
3082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3083 echo "$ac_t""yes" 1>&6
3084 cat >> confdefs.h
<<\EOF
3085 #define HAVE_LIBXXSHM 1
3089 echo "$ac_t""no" 1>&6
3093 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
3095 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_hdr" >&5
3098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 cat > conftest.
$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3107 { (eval echo configure
:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3109 if test -z "$ac_err"; then
3111 eval "ac_cv_header_$ac_safe=yes"
3114 echo "configure: failed program was:" >&5
3115 cat conftest.
$ac_ext >&5
3117 eval "ac_cv_header_$ac_safe=no"
3121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3122 echo "$ac_t""yes" 1>&6
3123 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3124 cat >> confdefs.h
<<EOF
3125 #define $ac_tr_hdr 1
3129 echo "$ac_t""no" 1>&6
3133 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3135 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3136 echo "configure:3137: checking for XDGAQueryExtension in -lXxf86dga" >&5
3137 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 ac_save_LIBS
="$LIBS"
3142 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 /* Override any gcc2 internal prototype to avoid an error. */
3147 /* We use char because int might match the return type of a gcc2
3148 builtin and then its argument prototype would still apply. */
3149 char XDGAQueryExtension();
3152 XDGAQueryExtension()
3155 if { (eval echo configure
:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3157 eval "ac_cv_lib_$ac_lib_var=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 eval "ac_cv_lib_$ac_lib_var=no"
3165 LIBS
="$ac_save_LIBS"
3168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 cat >> confdefs.h
<<\EOF
3171 #define HAVE_LIBXXF86DGA2 1
3173 cat >> confdefs.h
<<\EOF
3174 #define HAVE_LIBXXF86DGA 1
3176 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3178 echo "$ac_t""no" 1>&6
3181 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3183 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3184 echo "configure:3185: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3185 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_save_LIBS
="$LIBS"
3190 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197 char XF86DGAQueryExtension();
3200 XF86DGAQueryExtension()
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_lib_$ac_lib_var=no"
3213 LIBS
="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 cat >> confdefs.h
<<\EOF
3219 #define HAVE_LIBXXF86DGA 1
3221 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3223 echo "$ac_t""no" 1>&6
3229 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
3231 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3242 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure
:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3247 eval "ac_cv_header_$ac_safe=yes"
3250 echo "configure: failed program was:" >&5
3251 cat conftest.
$ac_ext >&5
3253 eval "ac_cv_header_$ac_safe=no"
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 cat >> confdefs.h
<<EOF
3261 #define $ac_tr_hdr 1
3265 echo "$ac_t""no" 1>&6
3269 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3271 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3272 echo "configure:3273: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3273 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 ac_save_LIBS
="$LIBS"
3278 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char XF86VidModeQueryExtension();
3288 XF86VidModeQueryExtension()
3291 if { (eval echo configure
:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3293 eval "ac_cv_lib_$ac_lib_var=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3298 eval "ac_cv_lib_$ac_lib_var=no"
3301 LIBS
="$ac_save_LIBS"
3304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h
<<\EOF
3307 #define HAVE_LIBXXF86VM 1
3309 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3311 echo "$ac_t""no" 1>&6
3316 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/osmesa.h
3318 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_hdr" >&5
3321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3329 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3330 { (eval echo configure
:3331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3331 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3332 if test -z "$ac_err"; then
3334 eval "ac_cv_header_$ac_safe=yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 eval "ac_cv_header_$ac_safe=no"
3344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3347 cat >> confdefs.h
<<EOF
3348 #define $ac_tr_hdr 1
3352 echo "$ac_t""no" 1>&6
3356 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3358 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
3359 echo "configure:3360: checking "for up-to-date Mesa version
"" >&5
3360 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.
$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3368 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3371 if { (eval echo configure
:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3373 wine_cv_mesa_version_OK
="yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.
$ac_ext >&5
3378 wine_cv_mesa_version_OK
="no"
3385 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3387 if test "$wine_cv_mesa_version_OK" = "yes"
3389 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3390 echo "configure:3391: checking for glXCreateContext in -lGL" >&5
3391 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 ac_save_LIBS
="$LIBS"
3396 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3403 char glXCreateContext();
3409 if { (eval echo configure
:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3411 eval "ac_cv_lib_$ac_lib_var=yes"
3413 echo "configure: failed program was:" >&5
3414 cat conftest.
$ac_ext >&5
3416 eval "ac_cv_lib_$ac_lib_var=no"
3419 LIBS
="$ac_save_LIBS"
3422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 cat >> confdefs.h
<<\EOF
3425 #define HAVE_LIBMESAGL 1
3427 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3429 echo "$ac_t""no" 1>&6
3432 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3434 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3435 echo "configure:3436: checking for glXCreateContext in -lMesaGL" >&5
3436 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_save_LIBS
="$LIBS"
3441 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char glXCreateContext();
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 eval "ac_cv_lib_$ac_lib_var=no"
3464 LIBS
="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 cat >> confdefs.h
<<\EOF
3470 #define HAVE_LIBMESAGL 1
3472 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3474 echo "$ac_t""no" 1>&6
3479 echo $ac_n "checking "for the OpenGL Color Index extension
"""... $ac_c" 1>&6
3480 echo "configure:3481: checking "for the OpenGL Color Index extension
"" >&5
3481 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3489 GLenum test = GL_COLOR_INDEX8_EXT;
3492 if { (eval echo configure
:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 cat >> confdefs.h
<<\EOF
3495 #define HAVE_GL_COLOR_TABLE 1
3499 echo "configure: failed program was:" >&5
3500 cat conftest.
$ac_ext >&5
3506 echo "$ac_t""$dummy" 1>&6
3507 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3509 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3510 echo "configure:3511: checking for glColorTableEXT in -lMesaGL" >&5
3511 ac_lib_var
=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 ac_save_LIBS
="$LIBS"
3516 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3517 cat > conftest.
$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3523 char glColorTableEXT();
3529 if { (eval echo configure
:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3531 eval "ac_cv_lib_$ac_lib_var=yes"
3533 echo "configure: failed program was:" >&5
3534 cat conftest.
$ac_ext >&5
3536 eval "ac_cv_lib_$ac_lib_var=no"
3539 LIBS
="$ac_save_LIBS"
3542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 cat >> confdefs.h
<<\EOF
3545 #define HAVE_GL_PALETTED_TEXTURE 1
3549 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3554 echo "configure:3555: checking for glColorTableEXT in -lGL" >&5
3555 ac_lib_var
=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS
="$LIBS"
3560 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567 char glColorTableEXT();
3573 if { (eval echo configure
:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.
$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS
="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 cat >> confdefs.h
<<\EOF
3589 #define HAVE_GL_PALETTED_TEXTURE 1
3593 echo "$ac_t""no" 1>&6
3600 CPPFLAGS
="$ac_save_CPPFLAGS"
3607 for ac_hdr
in ncurses.h
3609 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_hdr" >&5
3612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3621 { (eval echo configure
:3622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3623 if test -z "$ac_err"; then
3625 eval "ac_cv_header_$ac_safe=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3631 eval "ac_cv_header_$ac_safe=no"
3635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3638 cat >> confdefs.h
<<EOF
3639 #define $ac_tr_hdr 1
3643 echo "$ac_t""no" 1>&6
3647 if test "$ac_cv_header_ncurses_h" = "yes"
3649 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3650 echo "configure:3651: checking for waddch in -lncurses" >&5
3651 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 ac_save_LIBS
="$LIBS"
3656 LIBS
="-lncurses $LIBS"
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3669 if { (eval echo configure
:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3671 eval "ac_cv_lib_$ac_lib_var=yes"
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3676 eval "ac_cv_lib_$ac_lib_var=no"
3679 LIBS
="$ac_save_LIBS"
3682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3686 cat >> confdefs.h
<<EOF
3687 #define $ac_tr_lib 1
3690 LIBS
="-lncurses $LIBS"
3693 echo "$ac_t""no" 1>&6
3697 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3699 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3700 echo "configure:3701: checking for resizeterm in -lncurses" >&5
3701 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 ac_save_LIBS
="$LIBS"
3706 LIBS
="-lncurses $LIBS"
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3719 if { (eval echo configure
:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3721 eval "ac_cv_lib_$ac_lib_var=yes"
3723 echo "configure: failed program was:" >&5
3724 cat conftest.
$ac_ext >&5
3726 eval "ac_cv_lib_$ac_lib_var=no"
3729 LIBS
="$ac_save_LIBS"
3732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3733 echo "$ac_t""yes" 1>&6
3734 cat >> confdefs.h
<<\EOF
3735 #define HAVE_RESIZETERM 1
3739 echo "$ac_t""no" 1>&6
3742 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3743 echo "configure:3744: checking for getbkgd in -lncurses" >&5
3744 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 ac_save_LIBS
="$LIBS"
3749 LIBS
="-lncurses $LIBS"
3750 cat > conftest.
$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3762 if { (eval echo configure
:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3764 eval "ac_cv_lib_$ac_lib_var=yes"
3766 echo "configure: failed program was:" >&5
3767 cat conftest.
$ac_ext >&5
3769 eval "ac_cv_lib_$ac_lib_var=no"
3772 LIBS
="$ac_save_LIBS"
3775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 cat >> confdefs.h
<<\EOF
3778 #define HAVE_GETBKGD 1
3782 echo "$ac_t""no" 1>&6
3786 for ac_hdr
in curses.h
3788 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_hdr" >&5
3791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3800 { (eval echo configure
:3801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3801 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3802 if test -z "$ac_err"; then
3804 eval "ac_cv_header_$ac_safe=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3810 eval "ac_cv_header_$ac_safe=no"
3814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3817 cat >> confdefs.h
<<EOF
3818 #define $ac_tr_hdr 1
3822 echo "$ac_t""no" 1>&6
3826 if test "$ac_cv_header_curses_h" = "yes"
3828 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3829 echo "configure:3830: checking for waddch in -lcurses" >&5
3830 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 ac_save_LIBS
="$LIBS"
3835 LIBS
="-lcurses $LIBS"
3836 cat > conftest.
$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 eval "ac_cv_lib_$ac_lib_var=no"
3858 LIBS
="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3865 cat >> confdefs.h
<<EOF
3866 #define $ac_tr_lib 1
3869 LIBS
="-lcurses $LIBS"
3872 echo "$ac_t""no" 1>&6
3875 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3876 echo "configure:3877: checking for resizeterm in -lcurses" >&5
3877 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3881 ac_save_LIBS
="$LIBS"
3882 LIBS
="-lcurses $LIBS"
3883 cat > conftest.
$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3895 if { (eval echo configure
:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3897 eval "ac_cv_lib_$ac_lib_var=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 eval "ac_cv_lib_$ac_lib_var=no"
3905 LIBS
="$ac_save_LIBS"
3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 cat >> confdefs.h
<<\EOF
3911 #define HAVE_RESIZETERM 1
3915 echo "$ac_t""no" 1>&6
3918 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3919 echo "configure:3920: checking for getbkgd in -lcurses" >&5
3920 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 ac_save_LIBS
="$LIBS"
3925 LIBS
="-lcurses $LIBS"
3926 cat > conftest.
$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3938 if { (eval echo configure
:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3940 eval "ac_cv_lib_$ac_lib_var=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.
$ac_ext >&5
3945 eval "ac_cv_lib_$ac_lib_var=no"
3948 LIBS
="$ac_save_LIBS"
3951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 cat >> confdefs.h
<<\EOF
3954 #define HAVE_GETBKGD 1
3958 echo "$ac_t""no" 1>&6
3964 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3965 echo "configure:3966: checking "for GNU style IPX support
"" >&5
3966 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.
$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 #include <sys/socket.h>
3973 #include <netipx/ipx.h>
3975 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3978 if { (eval echo configure
:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980 ac_cv_c_ipx_gnu
="yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 ac_cv_c_ipx_gnu
="no"
3991 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3992 if test "$ac_cv_c_ipx_gnu" = "yes"
3994 cat >> confdefs.h
<<\EOF
3995 #define HAVE_IPX_GNU 1
4000 if test "$ac_cv_c_ipx_gnu" = "no"
4002 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4003 echo "configure:4004: checking "for linux style IPX support
"" >&5
4004 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.
$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <sys/socket.h>
4011 #include <asm/types.h>
4012 #include <linux/ipx.h>
4014 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4017 if { (eval echo configure
:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 ac_cv_c_ipx_linux
="yes"
4021 echo "configure: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4024 ac_cv_c_ipx_linux
="no"
4030 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4031 if test "$ac_cv_c_ipx_linux" = "yes"
4033 cat >> confdefs.h
<<\EOF
4034 #define HAVE_IPX_LINUX 1
4040 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4042 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_hdr" >&5
4045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4054 { (eval echo configure
:4055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4056 if test -z "$ac_err"; then
4058 eval "ac_cv_header_$ac_safe=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_header_$ac_safe=no"
4068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4070 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4071 cat >> confdefs.h
<<EOF
4072 #define $ac_tr_hdr 1
4076 echo "$ac_t""no" 1>&6
4081 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4082 echo "configure:4083: checking "for Open Sound System
"" >&5
4083 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4090 #if defined(HAVE_SYS_SOUNDCARD_H)
4091 #include <sys/soundcard.h>
4092 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4093 #include <machine/soundcard.h>
4094 #elif defined(HAVE_SOUNDCARD_H)
4095 #include <soundcard.h>
4101 /* check for one of the Open Sound System specific SNDCTL_ defines */
4102 #if !defined(SNDCTL_DSP_STEREO)
4103 #error No open sound system
4108 if { (eval echo configure
:4109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4110 ac_cv_c_opensoundsystem
="yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.
$ac_ext >&5
4115 ac_cv_c_opensoundsystem
="no"
4120 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4122 if test "$ac_cv_c_opensoundsystem" = "yes"
4124 cat >> confdefs.h
<<\EOF
4130 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4131 echo "configure:4132: checking "for Open Sound System
/MIDI interface
"" >&5
4132 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4139 #if defined(HAVE_SYS_SOUNDCARD_H)
4140 #include <sys/soundcard.h>
4141 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4142 #include <machine/soundcard.h>
4143 #elif defined(HAVE_SOUNDCARD_H)
4144 #include <soundcard.h>
4150 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4151 #if !defined(SNDCTL_SEQ_SYNC)
4152 #error No open sound system MIDI interface
4157 if { (eval echo configure
:4158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4159 ac_cv_c_opensoundsystem_midi
="yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.
$ac_ext >&5
4164 ac_cv_c_opensoundsystem_midi
="no"
4169 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4171 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4173 cat >> confdefs.h
<<\EOF
4174 #define HAVE_OSS_MIDI 1
4179 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4182 if test "x${GCC}" = "xyes"
4184 CFLAGS
="$CFLAGS -Wall"
4185 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4186 echo "configure:4187: checking "for gcc strength-reduce bug
"" >&5
4187 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 if test "$cross_compiling" = yes; then
4191 ac_cv_c_gcc_strength_bug
="yes"
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4198 static int Array[3];
4201 for(i=0; i<B; i++) Array[i] = i - 3;
4202 exit( Array[1] != -2 );
4205 if { (eval echo configure
:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4207 ac_cv_c_gcc_strength_bug
="no"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4212 ac_cv_c_gcc_strength_bug
="yes"
4219 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4220 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4222 CFLAGS
="$CFLAGS -fno-strength-reduce"
4227 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4228 echo "configure:4229: checking "whether external symbols need an underscore prefix
"" >&5
4229 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4233 LIBS
="conftest_asm.s $LIBS"
4234 cat > conftest_asm.s
<<EOF
4239 cat > conftest.
$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4244 if (ac_test) return 1
4247 if { (eval echo configure
:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4249 ac_cv_c_extern_prefix
="yes"
4251 echo "configure: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4254 ac_cv_c_extern_prefix
="no"
4260 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4261 if test "$ac_cv_c_extern_prefix" = "yes"
4263 cat >> confdefs.h
<<\EOF
4264 #define NEED_UNDERSCORE_PREFIX 1
4270 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4271 echo "configure:4272: checking "whether assembler accepts .string
"" >&5
4272 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4276 LIBS
="conftest_asm.s $LIBS"
4277 cat > conftest_asm.s
<<EOF
4280 cat > conftest.
$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4288 if { (eval echo configure
:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4290 ac_cv_c_asm_string
="yes"
4292 echo "configure: failed program was:" >&5
4293 cat conftest.
$ac_ext >&5
4295 ac_cv_c_asm_string
="no"
4301 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4302 if test "$ac_cv_c_asm_string" = "yes"
4304 cat >> confdefs.h
<<\EOF
4305 #define HAVE_ASM_STRING 1
4312 if test "$LIB_TYPE" = "dll"
4314 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "whether we can build a Linux dll
"" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 saved_cflags
=$CFLAGS
4320 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4321 cat > conftest.
$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4329 if { (eval echo configure
:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4331 ac_cv_c_dll_linux
="yes"
4333 echo "configure: failed program was:" >&5
4334 cat conftest.
$ac_ext >&5
4336 ac_cv_c_dll_linux
="no"
4339 CFLAGS
=$saved_cflags
4343 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4344 if test "$ac_cv_c_dll_linux" = "yes"
4346 LDSHARED
="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4348 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4349 echo "configure:4350: checking whether we can build a UnixWare (Solaris) dll" >&5
4350 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 saved_cflags
=$CFLAGS
4354 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4355 cat > conftest.
$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4363 if { (eval echo configure
:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4365 ac_cv_c_dll_unixware
="yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.
$ac_ext >&5
4370 ac_cv_c_dll_unixware
="no"
4373 CFLAGS
=$saved_cflags
4377 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4378 if test "$ac_cv_c_dll_unixware" = "yes"
4380 LDSHARED
="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4382 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4383 echo "configure:4384: checking "whether we can build a NetBSD dll
"" >&5
4384 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 saved_cflags
=$CFLAGS
4388 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4397 if { (eval echo configure
:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4399 ac_cv_c_dll_netbsd
="yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.
$ac_ext >&5
4404 ac_cv_c_dll_netbsd
="no"
4407 CFLAGS
=$saved_cflags
4411 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4412 if test "$ac_cv_c_dll_netbsd" = "yes"
4414 LDSHARED
="ld -Bshareable -Bforcearchive"
4418 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4428 if test "$LIB_TYPE" = "nolib"; then
4429 ALT_LINK
="\$(LIBOBJS) \$(X11OBJS)"
4432 ALT_LINK
="-L\$(TOPOBJDIR) -lwine"
4434 if test "$LIB_TYPE" = "dll"; then
4435 LIB_TARGET
="libwine.so"
4440 LIB_TARGET
="libwine.a"
4441 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4442 echo "configure:4443: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4443 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 saved_cflags
=$CFLAGS
4447 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4456 if { (eval echo configure
:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4458 ac_cv_c_whole_archive
="yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.
$ac_ext >&5
4463 ac_cv_c_whole_archive
="no"
4466 CFLAGS
=$saved_cflags
4470 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4471 if test "$ac_cv_c_whole_archive" = "yes"
4473 ALT_LINK
="-Wl,--whole-archive -L\$(TOPOBJDIR) -lwine -Wl,--no-whole-archive"
4475 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4476 echo "configure:4477: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4477 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 saved_cflags
=$CFLAGS
4481 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4490 if { (eval echo configure
:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4492 ac_cv_c_allextract
="yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 ac_cv_c_allextract
="no"
4500 CFLAGS
=$saved_cflags
4504 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4505 if test "$ac_cv_c_allextract" = "yes"
4507 ALT_LINK
="-Wl,-z,allextract -L\$(TOPOBJDIR) -lwine -Wl,-z,defaultextract"
4522 wine_cv_libc_reentrant
=no
4523 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4524 echo "configure:4525: checking "for reentrant libc
: __errno_location
"" >&5
4525 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 if test "$cross_compiling" = yes; then
4529 wine_cv_libc_r__errno_location
=yes
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4536 int *__errno_location(){return &myerrno;}
4537 main(){connect(0,buf,255); exit(!myerrno);}
4539 if { (eval echo configure
:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4541 wine_cv_libc_r__errno_location
=yes
4543 echo "configure: failed program was:" >&5
4544 cat conftest.
$ac_ext >&5
4546 wine_cv_libc_r__errno_location
=no
4554 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4555 if test "$wine_cv_libc_r__errno_location" = "yes"
4557 cat >> confdefs.h
<<\EOF
4558 #define HAVE__ERRNO_LOCATION 1
4561 wine_cv_libc_reentrant
=__errno_location
4563 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4564 echo "configure:4565: checking "for reentrant libc
: __error
"" >&5
4565 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 if test "$cross_compiling" = yes; then
4569 wine_cv_libc_r__error
=yes
4571 cat > conftest.
$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4576 int *__error(){return &myerrno;}
4577 main(){connect(0,buf,255); exit(!myerrno);}
4579 if { (eval echo configure
:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4581 wine_cv_libc_r__error
=yes
4583 echo "configure: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4586 wine_cv_libc_r__error
=no
4594 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4595 if test "$wine_cv_libc_r__error" = "yes"
4597 cat >> confdefs.h
<<\EOF
4598 #define HAVE__ERROR 1
4601 wine_cv_libc_reentrant
=__error
4603 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4604 echo "configure:4605: checking "for reentrant libc
: ___errno
"" >&5
4605 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 if test "$cross_compiling" = yes; then
4609 wine_cv_libc_r___errno
=yes
4611 cat > conftest.
$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4616 int *___errno(){return &myerrno;}
4617 main(){connect(0,buf,255); exit(!myerrno);}
4619 if { (eval echo configure
:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4621 wine_cv_libc_r___errno
=yes
4623 echo "configure: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4626 wine_cv_libc_r___errno
=no
4634 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4635 if test "$wine_cv_libc_r___errno" = "yes"
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE___ERRNO 1
4641 wine_cv_libc_reentrant
=___errno
4643 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4644 echo "configure:4645: checking "for reentrant libc
: __thr_errno
"" >&5
4645 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 if test "$cross_compiling" = yes; then
4649 wine_cv_libc_r__thr_errno
=yes
4651 cat > conftest.
$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4656 int *__thr_errno(){return &myerrno;}
4657 main(){connect(0,buf,255); exit(!myerrno);}
4659 if { (eval echo configure
:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4661 wine_cv_libc_r__thr_errno
=yes
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 wine_cv_libc_r__thr_errno
=no
4674 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4675 if test "$wine_cv_libc_r__thr_errno" = "yes"
4677 cat >> confdefs.h
<<\EOF
4678 #define HAVE__THR_ERRNO 1
4681 wine_cv_libc_reentrant
=__thr_errno
4683 if test "$wine_cv_libc_reentrant" = "no"
4685 cat >> confdefs.h
<<\EOF
4686 #define NO_REENTRANT_LIBC 1
4692 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4694 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4695 echo "configure:4696: checking "for reentrant X libraries
"" >&5
4696 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 if test "x$with_reentrant_x" = "xno"
4701 wine_cv_x_reentrant
=no
4704 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4705 if test -r $dir/libX11.so
; then
4706 libX11_check
="-D $dir/libX11.so"
4709 if test -r $dir/libX11.a
; then
4710 libX11_check
="$dir/libX11.a"
4714 if test "$libX11_check" != "none"; then
4715 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4717 wine_cv_x_reentrant
=yes
4719 wine_cv_x_reentrant
=no
4722 wine_cv_x_reentrant
=unknown
4727 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4729 wine_cv_x_reentrant
=no
4731 if test "$wine_cv_x_reentrant" = "no"
4733 cat >> confdefs.h
<<\EOF
4734 #define NO_REENTRANT_X11 1
4740 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4741 echo "configure:4742: checking whether byte ordering is bigendian" >&5
4742 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 ac_cv_c_bigendian
=unknown
4746 # See if sys/param.h defines the BYTE_ORDER macro.
4747 cat > conftest.
$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 #include <sys/types.h>
4751 #include <sys/param.h>
4754 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4759 if { (eval echo configure
:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4761 # It does; now see whether it defined to BIG_ENDIAN or not.
4762 cat > conftest.
$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <sys/types.h>
4766 #include <sys/param.h>
4769 #if BYTE_ORDER != BIG_ENDIAN
4774 if { (eval echo configure
:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4776 ac_cv_c_bigendian
=yes
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 ac_cv_c_bigendian
=no
4785 echo "configure: failed program was:" >&5
4786 cat conftest.
$ac_ext >&5
4789 if test $ac_cv_c_bigendian = unknown
; then
4790 if test "$cross_compiling" = yes; then
4791 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4793 cat > conftest.
$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4797 /* Are we little or big endian? From Harbison&Steele. */
4801 char c[sizeof (long)];
4804 exit (u.c[sizeof (long) - 1] == 1);
4807 if { (eval echo configure
:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4809 ac_cv_c_bigendian
=no
4811 echo "configure: failed program was:" >&5
4812 cat conftest.
$ac_ext >&5
4814 ac_cv_c_bigendian
=yes
4822 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4823 if test $ac_cv_c_bigendian = yes; then
4824 cat >> confdefs.h
<<\EOF
4825 #define WORDS_BIGENDIAN 1
4832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4833 # for constant arguments. Useless!
4834 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4835 echo "configure:4836: checking for working alloca.h" >&5
4836 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4844 void *p = alloca(2 * sizeof(int));
4847 if { (eval echo configure
:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4849 ac_cv_header_alloca_h
=yes
4851 echo "configure: failed program was:" >&5
4852 cat conftest.
$ac_ext >&5
4854 ac_cv_header_alloca_h
=no
4859 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4860 if test $ac_cv_header_alloca_h = yes; then
4861 cat >> confdefs.h
<<\EOF
4862 #define HAVE_ALLOCA_H 1
4867 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4868 echo "configure:4869: checking for alloca" >&5
4869 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 # define alloca __builtin_alloca
4880 # include <malloc.h>
4881 # define alloca _alloca
4884 # include <alloca.h>
4889 # ifndef alloca /* predefined by HP cc +Olibcalls */
4898 char *p = (char *) alloca(1);
4901 if { (eval echo configure
:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4903 ac_cv_func_alloca_works
=yes
4905 echo "configure: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 ac_cv_func_alloca_works
=no
4913 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4914 if test $ac_cv_func_alloca_works = yes; then
4915 cat >> confdefs.h
<<\EOF
4916 #define HAVE_ALLOCA 1
4921 if test $ac_cv_func_alloca_works = no
; then
4922 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4923 # that cause trouble. Some versions do not even contain alloca or
4924 # contain a buggy version. If you still want to use their alloca,
4925 # use ar to extract alloca.o from them instead of compiling alloca.c.
4926 ALLOCA
=alloca.
${ac_objext}
4927 cat >> confdefs.h
<<\EOF
4932 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4933 echo "configure:4934: checking whether alloca needs Cray hooks" >&5
4934 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 cat > conftest.
$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 #if defined(CRAY) && ! defined(CRAY2)
4947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948 egrep "webecray" >/dev
/null
2>&1; then
4959 echo "$ac_t""$ac_cv_os_cray" 1>&6
4960 if test $ac_cv_os_cray = yes; then
4961 for ac_func
in _getb67 GETB67 getb67
; do
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.
$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4991 if { (eval echo configure
:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4993 eval "ac_cv_func_$ac_func=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.
$ac_ext >&5
4998 eval "ac_cv_func_$ac_func=no"
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 cat >> confdefs.h
<<EOF
5006 #define CRAY_STACKSEG_END $ac_func
5011 echo "$ac_t""no" 1>&6
5017 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5018 echo "configure:5019: checking stack direction for C alloca" >&5
5019 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 if test "$cross_compiling" = yes; then
5023 ac_cv_c_stack_direction
=0
5025 cat > conftest.
$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 find_stack_direction ()
5030 static char *addr = 0;
5035 return find_stack_direction ();
5038 return (&dummy > addr) ? 1 : -1;
5042 exit (find_stack_direction() < 0);
5045 if { (eval echo configure
:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5047 ac_cv_c_stack_direction
=1
5049 echo "configure: failed program was:" >&5
5050 cat conftest.
$ac_ext >&5
5052 ac_cv_c_stack_direction
=-1
5059 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5060 cat >> confdefs.h
<<EOF
5061 #define STACK_DIRECTION $ac_cv_c_stack_direction
5095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_func" >&5
5097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char $ac_func(); below. */
5106 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5124 if { (eval echo configure
:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5126 eval "ac_cv_func_$ac_func=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.
$ac_ext >&5
5131 eval "ac_cv_func_$ac_func=no"
5136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5139 cat >> confdefs.h
<<EOF
5140 #define $ac_tr_func 1
5144 echo "$ac_t""no" 1>&6
5201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.
$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure
:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5217 eval "ac_cv_header_$ac_safe=yes"
5220 echo "configure: failed program was:" >&5
5221 cat conftest.
$ac_ext >&5
5223 eval "ac_cv_header_$ac_safe=no"
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h
<<EOF
5231 #define $ac_tr_hdr 1
5235 echo "$ac_t""no" 1>&6
5239 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5240 echo "configure:5241: checking whether stat file-mode macros are broken" >&5
5241 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.
$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 #include <sys/types.h>
5248 #include <sys/stat.h>
5250 #if defined(S_ISBLK) && defined(S_IFDIR)
5251 # if S_ISBLK (S_IFDIR)
5256 #if defined(S_ISBLK) && defined(S_IFCHR)
5257 # if S_ISBLK (S_IFCHR)
5262 #if defined(S_ISLNK) && defined(S_IFREG)
5263 # if S_ISLNK (S_IFREG)
5268 #if defined(S_ISSOCK) && defined(S_IFREG)
5269 # if S_ISSOCK (S_IFREG)
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 egrep "You lose" >/dev
/null
2>&1; then
5278 ac_cv_header_stat_broken
=yes
5281 ac_cv_header_stat_broken
=no
5287 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5288 if test $ac_cv_header_stat_broken = yes; then
5289 cat >> confdefs.h
<<\EOF
5290 #define STAT_MACROS_BROKEN 1
5297 echo $ac_n "checking for working const""... $ac_c" 1>&6
5298 echo "configure:5299: checking for working const" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.
$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5308 /* Ultrix mips cc rejects this. */
5309 typedef int charset[2]; const charset x = {0,0};
5310 /* SunOS 4.1.1 cc rejects this. */
5311 char const *const *ccp;
5313 /* NEC SVR4.0.2 mips cc rejects this. */
5314 struct point {int x, y;};
5315 static struct point const zero = {0,0};
5316 /* AIX XL C 1.02.0.0 rejects this.
5317 It does not let you subtract one const X* pointer from another in an arm
5318 of an if-expression whose if-part is not a constant expression */
5319 const char *g = "string";
5320 ccp = &g + (g ? g-g : 0);
5321 /* HPUX 7.0 cc rejects these. */
5324 ccp = (char const *const *) p;
5325 { /* SCO 3.2v4 cc rejects this. */
5327 char const *s = 0 ? (char *) 0 : (char const *) 0;
5331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5333 const int *foo = &x[0];
5336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5337 typedef const int *iptr;
5341 { /* AIX XL C 1.02.0.0 rejects this saying
5342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5343 struct s { int j; const int *ap[3]; };
5344 struct s *b; b->j = 5;
5346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5352 if { (eval echo configure
:5353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5356 echo "configure: failed program was:" >&5
5357 cat conftest.
$ac_ext >&5
5364 echo "$ac_t""$ac_cv_c_const" 1>&6
5365 if test $ac_cv_c_const = no
; then
5366 cat >> confdefs.h
<<\EOF
5372 echo $ac_n "checking for inline""... $ac_c" 1>&6
5373 echo "configure:5374: checking for inline" >&5
5374 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5378 for ac_kw
in inline __inline__ __inline
; do
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5384 } int $ac_kw foo() {
5387 if { (eval echo configure
:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5389 ac_cv_c_inline
=$ac_kw; break
5391 echo "configure: failed program was:" >&5
5392 cat conftest.
$ac_ext >&5
5399 echo "$ac_t""$ac_cv_c_inline" 1>&6
5400 case "$ac_cv_c_inline" in
5402 no
) cat >> confdefs.h
<<\EOF
5406 *) cat >> confdefs.h
<<EOF
5407 #define inline $ac_cv_c_inline
5412 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5413 echo "configure:5414: checking for ANSI C header files" >&5
5414 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.
$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5426 { (eval echo configure
:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5427 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5428 if test -z "$ac_err"; then
5430 ac_cv_header_stdc
=yes
5433 echo "configure: failed program was:" >&5
5434 cat conftest.
$ac_ext >&5
5436 ac_cv_header_stdc
=no
5440 if test $ac_cv_header_stdc = yes; then
5441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5442 cat > conftest.
$ac_ext <<EOF
5443 #line 5444 "configure"
5444 #include "confdefs.h"
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 egrep "memchr" >/dev
/null
2>&1; then
5452 ac_cv_header_stdc
=no
5458 if test $ac_cv_header_stdc = yes; then
5459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5460 cat > conftest.
$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466 egrep "free" >/dev
/null
2>&1; then
5470 ac_cv_header_stdc
=no
5476 if test $ac_cv_header_stdc = yes; then
5477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5478 if test "$cross_compiling" = yes; then
5481 cat > conftest.
$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5485 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5486 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488 int main () { int i; for (i = 0; i < 256; i++)
5489 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5493 if { (eval echo configure
:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5497 echo "configure: failed program was:" >&5
5498 cat conftest.
$ac_ext >&5
5500 ac_cv_header_stdc
=no
5508 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5509 if test $ac_cv_header_stdc = yes; then
5510 cat >> confdefs.h
<<\EOF
5511 #define STDC_HEADERS 1
5516 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5517 echo "configure:5518: checking for size_t" >&5
5518 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <sys/types.h>
5530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5531 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5533 ac_cv_type_size_t
=yes
5536 ac_cv_type_size_t
=no
5541 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5542 if test $ac_cv_type_size_t = no
; then
5543 cat >> confdefs.h
<<\EOF
5544 #define size_t unsigned
5549 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5550 echo "configure:5551: checking size of long long" >&5
5551 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 if test "$cross_compiling" = yes; then
5555 ac_cv_sizeof_long_long
=0
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5563 FILE *f=fopen("conftestval", "w");
5565 fprintf(f, "%d\n", sizeof(long long));
5569 if { (eval echo configure
:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5571 ac_cv_sizeof_long_long
=`cat conftestval`
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 ac_cv_sizeof_long_long
=0
5582 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5583 cat >> confdefs.h
<<EOF
5584 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5589 if test "$ac_cv_header_linux_joystick_h" = "yes"
5591 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5592 echo "configure:5593: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5593 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.
$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5600 #include <sys/ioctl.h>
5601 #include <linux/joystick.h>
5603 struct js_event blub;
5604 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5605 #error "no 2.2 header"
5612 if { (eval echo configure
:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 wine_cv_linux_joystick_22_api
=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 wine_cv_linux_joystick_22_api
=no
5625 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5626 if test "$wine_cv_linux_joystick_22_api"
5628 cat >> confdefs.h
<<\EOF
5629 #define HAVE_LINUX_22_JOYSTICK_API 1
5636 if test "$ac_cv_header_sys_vfs_h" = "yes"
5638 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5639 echo "configure:5640: checking "whether sys
/vfs.h defines statfs
"" >&5
5640 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5643 cat > conftest.
$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5647 #include <sys/types.h>
5648 #ifdef HAVE_SYS_PARAM_H
5649 # include <sys/param.h>
5651 #include <sys/vfs.h>
5657 memset(&stfs,0,sizeof(stfs));
5661 if { (eval echo configure
:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 wine_cv_sys_vfs_has_statfs
=yes
5665 echo "configure: failed program was:" >&5
5666 cat conftest.
$ac_ext >&5
5668 wine_cv_sys_vfs_has_statfs
=no
5675 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5676 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5678 cat >> confdefs.h
<<\EOF
5679 #define STATFS_DEFINED_BY_SYS_VFS 1
5685 if test "$ac_cv_header_sys_statfs_h" = "yes"
5687 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
5688 echo "configure:5689: checking "whether sys
/statfs.h defines statfs
"" >&5
5689 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 cat > conftest.
$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5696 #include <sys/types.h>
5697 #ifdef HAVE_SYS_PARAM_H
5698 # include <sys/param.h>
5700 #include <sys/statfs.h>
5708 if { (eval echo configure
:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5710 wine_cv_sys_statfs_has_statfs
=yes
5712 echo "configure: failed program was:" >&5
5713 cat conftest.
$ac_ext >&5
5715 wine_cv_sys_statfs_has_statfs
=no
5722 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5723 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5725 cat >> confdefs.h
<<\EOF
5726 #define STATFS_DEFINED_BY_SYS_STATFS 1
5732 if test "$ac_cv_header_sys_mount_h" = "yes"
5734 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
5735 echo "configure:5736: checking "whether sys
/mount.h defines statfs
"" >&5
5736 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 cat > conftest.
$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5743 #include <sys/types.h>
5744 #ifdef HAVE_SYS_PARAM_H
5745 # include <sys/param.h>
5747 #include <sys/mount.h>
5755 if { (eval echo configure
:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5757 wine_cv_sys_mount_has_statfs
=yes
5759 echo "configure: failed program was:" >&5
5760 cat conftest.
$ac_ext >&5
5762 wine_cv_sys_mount_has_statfs
=no
5769 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5770 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5772 cat >> confdefs.h
<<\EOF
5773 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5780 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5781 echo "configure:5782: checking "for statfs.f_bfree
"" >&5
5782 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 if test "x$statfs_bfree" = "xno"
5787 wine_cv_statfs_bfree
=no
5789 cat > conftest.
$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <sys/types.h>
5794 #ifdef HAVE_SYS_PARAM_H
5795 # include <sys/param.h>
5797 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5798 # include <sys/mount.h>
5800 # ifdef STATFS_DEFINED_BY_SYS_VFS
5801 # include <sys/vfs.h>
5803 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5804 # include <sys/statfs.h>
5817 if { (eval echo configure
:5818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5819 wine_cv_statfs_bfree
=yes
5821 echo "configure: failed program was:" >&5
5822 cat conftest.
$ac_ext >&5
5824 wine_cv_statfs_bfree
=no
5831 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5832 if test "$wine_cv_statfs_bfree" = "yes"
5834 cat >> confdefs.h
<<\EOF
5835 #define STATFS_HAS_BFREE 1
5840 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5841 echo "configure:5842: checking "for statfs.f_bavail
"" >&5
5842 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 if test "x$statfs_bavail" = "xno"
5847 wine_cv_statfs_bavail
=no
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5853 #include <sys/types.h>
5854 #ifdef HAVE_SYS_PARAM_H
5855 # include <sys/param.h>
5857 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5858 # include <sys/mount.h>
5860 # ifdef STATFS_DEFINED_BY_SYS_VFS
5861 # include <sys/vfs.h>
5863 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5864 # include <sys/statfs.h>
5877 if { (eval echo configure
:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5879 wine_cv_statfs_bavail
=yes
5881 echo "configure: failed program was:" >&5
5882 cat conftest.
$ac_ext >&5
5884 wine_cv_statfs_bavail
=no
5891 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5892 if test "$wine_cv_statfs_bavail" = "yes"
5894 cat >> confdefs.h
<<\EOF
5895 #define STATFS_HAS_BAVAIL 1
5901 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
5902 echo "configure:5903: checking "for working sigaltstack
"" >&5
5903 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5906 if test "$cross_compiling" = yes; then
5907 ac_cv_c_working_sigaltstack
="no"
5910 cat > conftest.
$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5915 #include <time.h> /* <sys/time.h> ? bad magic without end */
5916 #include <sys/types.h>
5917 #include <sys/signal.h>
5918 #ifdef HAVE_SYS_PARAM_H
5919 # include <sys/param.h>
5921 #ifdef HAVE_SYSCALL_H
5922 # include <syscall.h>
5924 # ifdef HAVE_SYS_SYSCALL_H
5925 # include <sys/syscall.h>
5929 unsigned char *xaltstack;
5932 main(int argc,char **argv) {
5933 struct sigaltstack ss;
5935 xaltstack = malloc(16384);
5936 ss.ss_sp = xaltstack;
5939 if (sigaltstack(&ss, NULL) < 0) {
5940 /* this catches the glibc case */
5941 perror("sigaltstack");
5942 return (1); /* aka exit(1) aka fail */
5944 /* assume it works. */
5949 if { (eval echo configure
:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5951 ac_cv_c_working_sigaltstack
="yes"
5953 echo "configure: failed program was:" >&5
5954 cat conftest.
$ac_ext >&5
5956 ac_cv_c_working_sigaltstack
="no"
5963 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5965 if test "$ac_cv_c_working_sigaltstack" = "yes"
5967 cat >> confdefs.h
<<\EOF
5968 #define HAVE_WORKING_SIGALTSTACK 1
5975 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5976 echo "configure:5977: checking "for msg_accrights
in struct msghdr
"" >&5
5977 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.
$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 #include <sys/types.h>
5984 #include <sys/socket.h>
5986 struct msghdr hdr; hdr.msg_accrights=0
5989 if { (eval echo configure
:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 ac_cv_c_msg_accrights
="yes"
5993 echo "configure: failed program was:" >&5
5994 cat conftest.
$ac_ext >&5
5996 ac_cv_c_msg_accrights
="no"
6001 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6002 if test "$ac_cv_c_msg_accrights" = "yes"
6004 cat >> confdefs.h
<<\EOF
6005 #define HAVE_MSGHDR_ACCRIGHTS 1
6011 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6012 echo "configure:6013: checking "whether we need to define __i386__
"" >&5
6013 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 cat > conftest.
$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024 egrep "yes" >/dev
/null
2>&1; then
6026 ac_cv_cpp_def_i386
="yes"
6029 ac_cv_cpp_def_i386
="no"
6035 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6036 if test "$ac_cv_cpp_def_i386" = "yes"
6038 CFLAGS
="$CFLAGS -D__i386__"
6039 LINTFLAGS
="$LINTFLAGS -D__i386__"
6043 if test "$GCC" = "yes"
6045 GCC_NO_BUILTIN
="-fno-builtin"
6050 MAKE_RULES
=Make.rules
6054 cat > confcache
<<\EOF
6055 # This file is a shell script that caches the results of configure
6056 # tests run on this system so they can be shared between configure
6057 # scripts and configure runs. It is not useful on other systems.
6058 # If it contains results you don't want to keep, you may remove or edit it.
6060 # By default, configure uses ./config.cache as the cache file,
6061 # creating it if it does not exist already. You can give configure
6062 # the --cache-file=FILE option to use a different cache file; that is
6063 # what configure does when it calls configure scripts in
6064 # subdirectories, so they share the cache.
6065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6066 # config.status only pays attention to the cache file if you give it the
6067 # --recheck option to rerun configure.
6070 # The following way of writing the cache mishandles newlines in values,
6071 # but we know of no workaround that is simple, portable, and efficient.
6072 # So, don't put newlines in cache variables' values.
6073 # Ultrix sh set writes to stderr and can't be redirected directly,
6074 # and sets the high bit in the cache file unless we assign to the vars.
6076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6078 # `set' does not quote correctly, so add quotes (double-quote substitution
6079 # turns \\\\ into \\, and sed turns \\ into \).
6081 -e "s/'/'\\\\''/g" \
6082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6085 # `set' quotes correctly as required by POSIX, so do not add quotes.
6086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6089 if cmp -s $cache_file confcache
; then
6092 if test -w $cache_file; then
6093 echo "updating cache $cache_file"
6094 cat confcache
> $cache_file
6096 echo "not updating unwritable cache $cache_file"
6101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6103 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6104 # Let make expand exec_prefix.
6105 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6107 # Any assignment to VPATH causes Sun make to only execute
6108 # the first set of double-colon rules, so remove it if not needed.
6109 # If there is a colon in the path, we need to keep it.
6110 if test "x$srcdir" = x.
; then
6111 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6116 DEFS
=-DHAVE_CONFIG_H
6118 # Without the "./", some shells look in PATH for config.status.
6119 : ${CONFIG_STATUS=./config.status}
6121 echo creating
$CONFIG_STATUS
6122 rm -f $CONFIG_STATUS
6123 cat > $CONFIG_STATUS <<EOF
6125 # Generated automatically by configure.
6126 # Run this file to recreate the current configuration.
6127 # This directory was configured as follows,
6128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6130 # $0 $ac_configure_args
6132 # Compiler output produced by configure, useful for debugging
6133 # configure, is in ./config.log if it exists.
6135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6138 case "\$ac_option" in
6139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6143 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6145 -help | --help | --hel | --he | --h)
6146 echo "\$ac_cs_usage"; exit 0 ;;
6147 *) echo "\$ac_cs_usage"; exit 1 ;;
6151 ac_given_srcdir=$srcdir
6152 ac_given_INSTALL="$INSTALL"
6154 trap 'rm -fr `echo "
6161 dlls/advapi32/Makefile
6162 dlls/avifil32/Makefile
6163 dlls/comctl32/Makefile
6164 dlls/commdlg/Makefile
6165 dlls/crtdll/Makefile
6166 dlls/dciman32/Makefile
6167 dlls/display/Makefile
6168 dlls/dplayx/Makefile
6169 dlls/dsound/Makefile
6171 dlls/imagehlp/Makefile
6173 dlls/lzexpand/Makefile
6177 dlls/msacm32/Makefile
6178 dlls/msnet32/Makefile
6179 dlls/msvideo/Makefile
6181 dlls/odbc32/Makefile
6183 dlls/oleaut32/Makefile
6184 dlls/olecli/Makefile
6185 dlls/oledlg/Makefile
6186 dlls/olesvr/Makefile
6188 dlls/rasapi32/Makefile
6189 dlls/setupx/Makefile
6190 dlls/shell32/Makefile
6192 dlls/stress/Makefile
6193 dlls/tapi32/Makefile
6194 dlls/version/Makefile
6195 dlls/win32s/Makefile
6196 dlls/win87em/Makefile
6197 dlls/winaspi/Makefile
6198 dlls/windebug/Makefile
6201 dlls/winmm/mcianim/Makefile
6202 dlls/winmm/mciavi/Makefile
6203 dlls/winmm/mcicda/Makefile
6204 dlls/winmm/mciseq/Makefile
6205 dlls/winmm/mciwave/Makefile
6206 dlls/winmm/midimap/Makefile
6207 dlls/winmm/wavemap/Makefile
6208 dlls/winmm/wineoss/Makefile
6209 dlls/winsock/Makefile
6210 dlls/winspool/Makefile
6211 dlls/wnaspi32/Makefile
6212 documentation/Makefile
6213 documentation/wine.conf.man
6214 documentation/wine.man
6217 graphics/enhmetafiledrv/Makefile
6218 graphics/metafiledrv/Makefile
6219 graphics/psdrv/Makefile
6220 graphics/ttydrv/Makefile
6221 graphics/win16drv/Makefile
6222 graphics/x11drv/Makefile
6237 programs/clock/Makefile
6238 programs/cmdlgtst/Makefile
6239 programs/control/Makefile
6240 programs/avitools/Makefile
6241 programs/osversioncheck/Makefile
6242 programs/notepad/Makefile
6243 programs/progman/Makefile
6244 programs/regtest/Makefile
6245 programs/regapi/Makefile
6246 programs/view/Makefile
6247 programs/wcmd/Makefile
6248 programs/winhelp/Makefile
6249 programs/winver/Makefile
6260 windows/ttydrv/Makefile
6261 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6263 cat >> $CONFIG_STATUS <<EOF
6265 # Protect against being on the right side of a sed subst in config.status.
6266 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6267 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6271 s%@CFLAGS@%$CFLAGS%g
6272 s%@CPPFLAGS@%$CPPFLAGS%g
6273 s%@CXXFLAGS@%$CXXFLAGS%g
6274 s%@FFLAGS@%$FFLAGS%g
6276 s%@LDFLAGS@%$LDFLAGS%g
6278 s%@exec_prefix@%$exec_prefix%g
6279 s%@prefix@%$prefix%g
6280 s%@program_transform_name@%$program_transform_name%g
6281 s%@bindir@%$bindir%g
6282 s%@sbindir@%$sbindir%g
6283 s%@libexecdir@%$libexecdir%g
6284 s%@datadir@%$datadir%g
6285 s%@sysconfdir@%$sysconfdir%g
6286 s%@sharedstatedir@%$sharedstatedir%g
6287 s%@localstatedir@%$localstatedir%g
6288 s%@libdir@%$libdir%g
6289 s%@includedir@%$includedir%g
6290 s%@oldincludedir@%$oldincludedir%g
6291 s%@infodir@%$infodir%g
6292 s%@mandir@%$mandir%g
6293 s%@PROGEXT@%$PROGEXT%g
6294 s%@MAIN_TARGET@%$MAIN_TARGET%g
6295 s%@OPTIONS@%$OPTIONS%g
6296 s%@SET_MAKE@%$SET_MAKE%g
6299 s%@X_CFLAGS@%$X_CFLAGS%g
6300 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6301 s%@X_LIBS@%$X_LIBS%g
6302 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6305 s%@LEXLIB@%$LEXLIB%g
6306 s%@RANLIB@%$RANLIB%g
6307 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6308 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6309 s%@INSTALL_DATA@%$INSTALL_DATA%g
6312 s%@LDCONFIG@%$LDCONFIG%g
6314 s%@LINTFLAGS@%$LINTFLAGS%g
6316 s%@LIB_TARGET@%$LIB_TARGET%g
6317 s%@LIB_TYPE@%$LIB_TYPE%g
6318 s%@ALT_LINK@%$ALT_LINK%g
6319 s%@BUILDFLAGS@%$BUILDFLAGS%g
6320 s%@DLLFLAGS@%$DLLFLAGS%g
6321 s%@LDSHARED@%$LDSHARED%g
6322 s%@LIBEXT@%$LIBEXT%g
6323 s%@ALLOCA@%$ALLOCA%g
6324 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6325 /@MAKE_RULES@/r $MAKE_RULES
6331 cat >> $CONFIG_STATUS <<\EOF
6333 # Split the substitutions into bite-sized pieces for seds with
6334 # small command number limits, like on Digital OSF/1 and HP-UX.
6335 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6336 ac_file
=1 # Number of current file.
6337 ac_beg
=1 # First line for current file.
6338 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6341 while $ac_more_lines; do
6342 if test $ac_beg -gt 1; then
6343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6345 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6347 if test ! -s conftest.s
$ac_file; then
6349 rm -f conftest.s
$ac_file
6351 if test -z "$ac_sed_cmds"; then
6352 ac_sed_cmds
="sed -f conftest.s$ac_file"
6354 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6356 ac_file
=`expr $ac_file + 1`
6358 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6361 if test -z "$ac_sed_cmds"; then
6366 cat >> $CONFIG_STATUS <<EOF
6368 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6374 dlls/advapi32/Makefile
6375 dlls/avifil32/Makefile
6376 dlls/comctl32/Makefile
6377 dlls/commdlg/Makefile
6378 dlls/crtdll/Makefile
6379 dlls/dciman32/Makefile
6380 dlls/display/Makefile
6381 dlls/dplayx/Makefile
6382 dlls/dsound/Makefile
6384 dlls/imagehlp/Makefile
6386 dlls/lzexpand/Makefile
6390 dlls/msacm32/Makefile
6391 dlls/msnet32/Makefile
6392 dlls/msvideo/Makefile
6394 dlls/odbc32/Makefile
6396 dlls/oleaut32/Makefile
6397 dlls/olecli/Makefile
6398 dlls/oledlg/Makefile
6399 dlls/olesvr/Makefile
6401 dlls/rasapi32/Makefile
6402 dlls/setupx/Makefile
6403 dlls/shell32/Makefile
6405 dlls/stress/Makefile
6406 dlls/tapi32/Makefile
6407 dlls/version/Makefile
6408 dlls/win32s/Makefile
6409 dlls/win87em/Makefile
6410 dlls/winaspi/Makefile
6411 dlls/windebug/Makefile
6414 dlls/winmm/mcianim/Makefile
6415 dlls/winmm/mciavi/Makefile
6416 dlls/winmm/mcicda/Makefile
6417 dlls/winmm/mciseq/Makefile
6418 dlls/winmm/mciwave/Makefile
6419 dlls/winmm/midimap/Makefile
6420 dlls/winmm/wavemap/Makefile
6421 dlls/winmm/wineoss/Makefile
6422 dlls/winsock/Makefile
6423 dlls/winspool/Makefile
6424 dlls/wnaspi32/Makefile
6425 documentation/Makefile
6426 documentation/wine.conf.man
6427 documentation/wine.man
6430 graphics/enhmetafiledrv/Makefile
6431 graphics/metafiledrv/Makefile
6432 graphics/psdrv/Makefile
6433 graphics/ttydrv/Makefile
6434 graphics/win16drv/Makefile
6435 graphics/x11drv/Makefile
6450 programs/clock/Makefile
6451 programs/cmdlgtst/Makefile
6452 programs/control/Makefile
6453 programs/avitools/Makefile
6454 programs/osversioncheck/Makefile
6455 programs/notepad/Makefile
6456 programs/progman/Makefile
6457 programs/regtest/Makefile
6458 programs/regapi/Makefile
6459 programs/view/Makefile
6460 programs/wcmd/Makefile
6461 programs/winhelp/Makefile
6462 programs/winver/Makefile
6473 windows/ttydrv/Makefile
6474 windows/x11drv/Makefile "}
6476 cat >> $CONFIG_STATUS <<\EOF
6477 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6480 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6481 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6482 *) ac_file_in
="${ac_file}.in" ;;
6485 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6487 # Remove last slash and all that follows it. Not all systems have dirname.
6488 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6489 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6490 # The file is in a subdirectory.
6491 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6492 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6493 # A "../" for each directory in $ac_dir_suffix.
6494 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6496 ac_dir_suffix
= ac_dots
=
6499 case "$ac_given_srcdir" in
6501 if test -z "$ac_dots"; then top_srcdir
=.
6502 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6503 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6505 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6506 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6509 case "$ac_given_INSTALL" in
6510 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6511 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6514 echo creating
"$ac_file"
6516 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6518 *Makefile
*) ac_comsub
="1i\\
6519 # $configure_input" ;;
6523 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6525 s%@configure_input@%$configure_input%g
6526 s%@srcdir@%$srcdir%g
6527 s%@top_srcdir@%$top_srcdir%g
6528 s%@INSTALL@%$INSTALL%g
6529 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6533 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6534 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6536 # ac_d sets the value in "#define NAME VALUE" lines.
6537 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6538 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6541 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6542 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6543 ac_uB
='\([ ]\)%\1#\2define\3'
6546 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6547 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6548 ac_eB
='$%\1#\2define\3'
6552 if test "${CONFIG_HEADERS+set}" != set; then
6554 cat >> $CONFIG_STATUS <<EOF
6555 CONFIG_HEADERS="include/config.h"
6557 cat >> $CONFIG_STATUS <<\EOF
6559 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6562 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6563 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6564 *) ac_file_in
="${ac_file}.in" ;;
6567 echo creating
$ac_file
6569 rm -f conftest.frag conftest.
in conftest.out
6570 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6571 cat $ac_file_inputs > conftest.
in
6575 # Transform confdefs.h into a sed script conftest.vals that substitutes
6576 # the proper values into config.h.in to produce config.h. And first:
6577 # Protect against being on the right side of a sed subst in config.status.
6578 # Protect against being in an unquoted here document in config.status.
6580 cat > conftest.hdr
<<\EOF
6583 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6587 sed -n -f conftest.hdr confdefs.h > conftest.vals
6590 # This sed command replaces #undef with comments. This is necessary, for
6591 # example, in the case of _POSIX_SOURCE, which is predefined and required
6592 # on some systems where configure will not decide to define it.
6593 cat >> conftest.vals <<\EOF
6594 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6597 # Break up conftest.vals because some shells have a limit on
6598 # the size of here documents, and old seds have small limits too.
6603 ac_lines=`grep -c . conftest.vals
`
6604 # grep -c gives empty output for an empty file on some AIX systems.
6605 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6606 # Write a limited-size here document to conftest.frag.
6607 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6608 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6610 sed -f conftest.frag conftest.in > conftest.out
6612 mv conftest.out conftest.in
6614 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6616 mv conftest.tail conftest.vals
6620 cat >> $CONFIG_STATUS <<\EOF
6621 rm -f conftest.frag conftest.h
6622 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6623 cat conftest.in >> conftest.h
6625 if cmp -s $ac_file conftest.h 2>/dev/null; then
6626 echo "$ac_file is unchanged"
6629 # Remove last slash and all that follows it. Not all systems have dirname.
6630 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6631 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6632 # The file is in a subdirectory.
6633 test ! -d "$ac_dir" && mkdir "$ac_dir"
6636 mv conftest.h $ac_file
6641 cat >> $CONFIG_STATUS <<EOF
6644 cat >> $CONFIG_STATUS <<\EOF
6648 chmod +x $CONFIG_STATUS
6649 rm -fr confdefs* $ac_clean_files
6650 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6653 if test "$have_x" = "no"
6656 echo "*** Warning: X development files not found. Wine will be built without"
6657 echo "*** X support, which currently does not work, and would probably not be"
6658 echo "*** what you want anyway. You will need to install devel packages of"
6659 echo "*** Xlib/Xfree86 and Xpm at the very least."
6660 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6663 echo "*** Warning: Xpm development files not found. Wine will be built without"
6664 echo "*** Xpm support, which currently does not work. You will need to install"
6665 echo "*** devel packages of Xpm."
6668 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6671 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6672 echo "*** terminal resize support. Consider upgrading ncurses."
6675 if test "$wine_cv_libc_reentrant" = "no"
6678 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6679 echo "*** thread support. Consider upgrading libc to a more recent"
6680 echo "*** reentrant version of libc."
6683 if test "$wine_cv_mesa_version_OK" = "no"
6686 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6687 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6691 echo "Configure finished. Do 'make depend && make' to compile Wine."