3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --disable-dll build static libraries instead of DLLs"
20 --disable-debug compile out all debugging messages"
22 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
24 --disable-trace compile out TRACE messages"
26 --without-curses do not use curses"
28 --without-reentrant-x compile for use with non-reentrant X libraries"
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 SHELL
=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=controls
/edit.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
543 for ac_dir
in tools
$srcdir/tools
; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
562 # We want these before the checks, so the checks can modify their values.
564 test -z "$PROGEXT" && PROGEXT
=""
568 LIBEXT
=so
# library type .so or .a
569 TRACE_MSGS
=yes # the TRACE() macro
570 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
574 # Check whether --enable-emulator or --disable-emulator was given.
575 if test "${enable_emulator+set}" = set; then
576 enableval
="$enable_emulator"
577 if test "$enableval" = "no"; then EMU_TARGET
=""; fi
581 # Check whether --enable-dll or --disable-dll was given.
582 if test "${enable_dll+set}" = set; then
583 enableval
="$enable_dll"
584 if test "$enableval" = "no"; then LIBEXT
="a"; fi
588 # Check whether --enable-debug or --disable-debug was given.
589 if test "${enable_debug+set}" = set; then
590 enableval
="$enable_debug"
591 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
595 # Check whether --enable-opengl or --disable-opengl was given.
596 if test "${enable_opengl+set}" = set; then
597 enableval
="$enable_opengl"
598 if test "$enableval" = "no"; then OPENGL
="no"; elif test "$enableval" = "yes"; then OPENGL
="yes"; fi
602 # Check whether --enable-trace or --disable-trace was given.
603 if test "${enable_trace+set}" = set; then
604 enableval
="$enable_trace"
605 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
609 # Check whether --with-curses or --without-curses was given.
610 if test "${with_curses+set}" = set; then
611 withval
="$with_curses"
612 if test "$withval" = "no"; then CURSES
="no"; fi
616 # Check whether --with-reentrant-x or --without-reentrant-x was given.
617 if test "${with_reentrant_x+set}" = set; then
618 withval
="$with_reentrant_x"
626 if test "$DEBUG_MSGS" = "no"
628 cat >> confdefs.h
<<\EOF
629 #define NO_DEBUG_MSGS 1
632 cat >> confdefs.h
<<\EOF
633 #define NO_TRACE_MSGS 1
637 if test "$TRACE_MSGS" = "no"
639 cat >> confdefs.h
<<\EOF
640 #define NO_TRACE_MSGS 1
647 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
648 echo "configure:649: checking whether ${MAKE-make} sets \${MAKE}" >&5
649 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
650 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 cat > conftestmake
<<\EOF
655 @
echo 'ac_maketemp="${MAKE}"'
657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
658 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
659 if test -n "$ac_maketemp"; then
660 eval ac_cv_prog_make_
${ac_make}_set
=yes
662 eval ac_cv_prog_make_
${ac_make}_set
=no
666 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
667 echo "$ac_t""yes" 1>&6
670 echo "$ac_t""no" 1>&6
671 SET_MAKE
="MAKE=${MAKE-make}"
674 # Extract the first word of "gcc", so it can be a program name with args.
675 set dummy gcc
; ac_word
=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 if test -n "$CC"; then
682 ac_cv_prog_CC
="$CC" # Let the user override the test.
684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
686 for ac_dir
in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir
=.
688 if test -f $ac_dir/$ac_word; then
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705 set dummy cc
; ac_word
=$2
706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
707 echo "configure:708: checking for $ac_word" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 if test -n "$CC"; then
712 ac_cv_prog_CC
="$CC" # Let the user override the test.
714 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
717 for ac_dir
in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir
=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
729 if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy
$ac_cv_prog_CC
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
738 set dummy
"$ac_dir/$ac_word" "$@"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
752 if test -z "$CC"; then
755 # Extract the first word of "cl", so it can be a program name with args.
756 set dummy cl
; ac_word
=$2
757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
758 echo "configure:759: checking for $ac_word" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 if test -n "$CC"; then
763 ac_cv_prog_CC
="$CC" # Let the user override the test.
765 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
767 for ac_dir
in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir
=.
769 if test -f $ac_dir/$ac_word; then
778 if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
781 echo "$ac_t""no" 1>&6
786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp
='$CPP $CPPFLAGS'
795 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling
=$ac_cv_prog_cc_cross
799 cat > conftest.
$ac_ext << EOF
801 #line 802 "configure"
802 #include "confdefs.h"
806 if { (eval echo configure
:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
807 ac_cv_prog_cc_works
=yes
808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (.
/conftest
; exit) 2>/dev
/null
; then
810 ac_cv_prog_cc_cross
=no
812 ac_cv_prog_cc_cross
=yes
815 echo "configure: failed program was:" >&5
816 cat conftest.
$ac_ext >&5
817 ac_cv_prog_cc_works
=no
821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822 ac_cpp
='$CPP $CPPFLAGS'
823 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825 cross_compiling
=$ac_cv_prog_cc_cross
827 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828 if test $ac_cv_prog_cc_works = no
; then
829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
833 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834 cross_compiling
=$ac_cv_prog_cc_cross
836 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
837 echo "configure:838: checking whether we are using GNU C" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 cat > conftest.c
<<EOF
846 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
853 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
855 if test $ac_cv_prog_gcc = yes; then
861 ac_test_CFLAGS
="${CFLAGS+set}"
862 ac_save_CFLAGS
="$CFLAGS"
864 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
865 echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 echo 'void f(){}' > conftest.c
870 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
879 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
880 if test "$ac_test_CFLAGS" = set; then
881 CFLAGS
="$ac_save_CFLAGS"
882 elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
889 if test "$GCC" = yes; then
896 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
897 echo "configure:898: checking how to run the C preprocessor" >&5
898 # On Suns, sometimes $CPP names a directory.
899 if test -n "$CPP" && test -d "$CPP"; then
902 if test -z "$CPP"; then
903 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 # This must be in double quotes, not single quotes, because CPP may get
907 # substituted into the Makefile and "${CC-cc}" will confuse make.
909 # On the NeXT, cc -E runs the code through the compiler's parser,
910 # not just through cpp.
911 cat > conftest.
$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
917 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure
:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
924 echo "configure: failed program was:" >&5
925 cat conftest.
$ac_ext >&5
927 CPP
="${CC-cc} -E -traditional-cpp"
928 cat > conftest.
$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
935 { (eval echo configure
:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
936 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937 if test -z "$ac_err"; then
941 echo "configure: failed program was:" >&5
942 cat conftest.
$ac_ext >&5
944 CPP
="${CC-cc} -nologo -E"
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
951 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
952 { (eval echo configure
:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
953 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
954 if test -z "$ac_err"; then
958 echo "configure: failed program was:" >&5
959 cat conftest.
$ac_ext >&5
968 ac_cv_prog_CPP
="$CPP"
970 CPP
="$ac_cv_prog_CPP"
972 ac_cv_prog_CPP
="$CPP"
974 echo "$ac_t""$CPP" 1>&6
976 # If we find X, set shell vars x_includes and x_libraries to the
977 # paths, otherwise set no_x=yes.
978 # Uses ac_ vars as temps to allow command line to override cache and checks.
979 # --without-x overrides everything else, but does not touch the cache.
980 echo $ac_n "checking for X""... $ac_c" 1>&6
981 echo "configure:982: checking for X" >&5
983 # Check whether --with-x or --without-x was given.
984 if test "${with_x+set}" = set; then
989 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
990 if test "x$with_x" = xno
; then
991 # The user explicitly disabled X.
994 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
995 # Both variables are already set.
998 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 # One or both of the vars are not set, and there is no cached value.
1002 ac_x_includes
=NO ac_x_libraries
=NO
1004 if mkdir conftestdir
; then
1006 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1007 cat > Imakefile
<<'EOF'
1009 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1011 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1013 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1014 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1015 for ac_extension
in a so sl
; do
1016 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1017 test -f $ac_im_libdir/libX11.
$ac_extension; then
1018 ac_im_usrlibdir
=$ac_im_libdir; break
1021 # Screen out bogus values from the imake configuration. They are
1022 # bogus both because they are the default anyway, and because
1023 # using them would break gcc on systems where it needs fixed includes.
1024 case "$ac_im_incroot" in
1026 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1028 case "$ac_im_usrlibdir" in
1030 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1037 if test "$ac_x_includes" = NO
; then
1038 # Guess where to find include files, by looking for this one X11 .h file.
1039 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1041 # First, try using that file with no special directory specified.
1042 cat > conftest.
$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <$x_direct_test_include>
1047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure
:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1052 # We can compile using X headers with no special include directory.
1056 echo "configure: failed program was:" >&5
1057 cat conftest.
$ac_ext >&5
1059 # Look for the header file in a standard set of common directories.
1060 # Check X11 before X11Rn because it is often a symlink to the current release.
1063 /usr
/X11R
6/include \
1064 /usr
/X11R
5/include \
1065 /usr
/X11R
4/include \
1068 /usr
/include
/X11R6 \
1069 /usr
/include
/X11R5 \
1070 /usr
/include
/X11R4 \
1072 /usr
/local
/X11
/include \
1073 /usr
/local
/X11R
6/include \
1074 /usr
/local
/X11R
5/include \
1075 /usr
/local
/X11R
4/include \
1077 /usr
/local
/include
/X11 \
1078 /usr
/local
/include
/X11R6 \
1079 /usr
/local
/include
/X11R5 \
1080 /usr
/local
/include
/X11R4 \
1084 /usr
/XFree86
/include
/X11 \
1087 /usr
/local
/include \
1088 /usr
/unsupported
/include \
1089 /usr
/athena
/include \
1090 /usr
/local
/x11r
5/include \
1091 /usr
/lpp
/Xamples
/include \
1093 /usr
/openwin
/include \
1094 /usr
/openwin
/share
/include \
1097 if test -r "$ac_dir/$x_direct_test_include"; then
1098 ac_x_includes
=$ac_dir
1104 fi # $ac_x_includes = NO
1106 if test "$ac_x_libraries" = NO
; then
1107 # Check for the libraries.
1109 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1110 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1112 # See if we find them without any special options.
1113 # Don't add to $LIBS permanently.
1114 ac_save_LIBS
="$LIBS"
1115 LIBS
="-l$x_direct_test_library $LIBS"
1116 cat > conftest.
$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1121 ${x_direct_test_function}()
1124 if { (eval echo configure
:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1126 LIBS
="$ac_save_LIBS"
1127 # We can link X programs with no special library path.
1130 echo "configure: failed program was:" >&5
1131 cat conftest.
$ac_ext >&5
1133 LIBS
="$ac_save_LIBS"
1134 # First see if replacing the include by lib works.
1135 # Check X11 before X11Rn because it is often a symlink to the current release.
1136 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1147 /usr
/local
/X11
/lib \
1148 /usr
/local
/X11R
6/lib \
1149 /usr
/local
/X11R
5/lib \
1150 /usr
/local
/X11R
4/lib \
1152 /usr
/local
/lib
/X11 \
1153 /usr
/local
/lib
/X11R6 \
1154 /usr
/local
/lib
/X11R5 \
1155 /usr
/local
/lib
/X11R4 \
1159 /usr
/XFree86
/lib
/X11 \
1163 /usr
/unsupported
/lib \
1165 /usr
/local
/x11r
5/lib \
1166 /usr
/lpp
/Xamples
/lib \
1170 /usr
/openwin
/share
/lib \
1173 for ac_extension
in a so sl
; do
1174 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1175 ac_x_libraries
=$ac_dir
1182 fi # $ac_x_libraries = NO
1184 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1185 # Didn't find X anywhere. Cache the known absence of X.
1186 ac_cv_have_x
="have_x=no"
1188 # Record where we found X for the cache.
1189 ac_cv_have_x
="have_x=yes \
1190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1194 eval "$ac_cv_have_x"
1197 if test "$have_x" != yes; then
1198 echo "$ac_t""$have_x" 1>&6
1201 # If each of the values was on the command line, it overrides each guess.
1202 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1203 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1204 # Update the cache value to reflect the command line values.
1205 ac_cv_have_x
="have_x=yes \
1206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1207 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1210 if test "$no_x" = yes; then
1211 # Not all programs may use this symbol, but it does not hurt to define it.
1212 cat >> confdefs.h
<<\EOF
1213 #define X_DISPLAY_MISSING 1
1216 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1218 if test -n "$x_includes"; then
1219 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1222 # It would also be nice to do this for all -L options, not just this one.
1223 if test -n "$x_libraries"; then
1224 X_LIBS
="$X_LIBS -L$x_libraries"
1225 # For Solaris; some versions of Sun CC require a space after -R and
1226 # others require no space. Words are not sufficient . . . .
1227 case "`(uname -sr) 2>/dev/null`" in
1229 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether -R must be followed by a space" >&5
1231 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1240 if { (eval echo configure
:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1244 echo "configure: failed program was:" >&5
1245 cat conftest.
$ac_ext >&5
1250 if test $ac_R_nospace = yes; then
1251 echo "$ac_t""no" 1>&6
1252 X_LIBS
="$X_LIBS -R$x_libraries"
1254 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1255 cat > conftest.
$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1263 if { (eval echo configure
:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1267 echo "configure: failed program was:" >&5
1268 cat conftest.
$ac_ext >&5
1273 if test $ac_R_space = yes; then
1274 echo "$ac_t""yes" 1>&6
1275 X_LIBS
="$X_LIBS -R $x_libraries"
1277 echo "$ac_t""neither works" 1>&6
1280 LIBS
="$ac_xsave_LIBS"
1284 # Check for system-dependent libraries X programs must link with.
1285 # Do this before checking for the system-independent R6 libraries
1286 # (-lICE), since we may need -lsocket or whatever for X linking.
1288 if test "$ISC" = yes; then
1289 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1291 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1292 # libraries were built with DECnet support. And karl@cs.umb.edu says
1293 # the Alpha needs dnet_stub (dnet does not exist).
1294 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1295 echo "configure:1296: checking for dnet_ntoa in -ldnet" >&5
1296 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 ac_save_LIBS
="$LIBS"
1302 cat > conftest.
$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1305 /* Override any gcc2 internal prototype to avoid an error. */
1306 /* We use char because int might match the return type of a gcc2
1307 builtin and then its argument prototype would still apply. */
1314 if { (eval echo configure
:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1316 eval "ac_cv_lib_$ac_lib_var=yes"
1318 echo "configure: failed program was:" >&5
1319 cat conftest.
$ac_ext >&5
1321 eval "ac_cv_lib_$ac_lib_var=no"
1324 LIBS
="$ac_save_LIBS"
1327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1328 echo "$ac_t""yes" 1>&6
1329 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1331 echo "$ac_t""no" 1>&6
1334 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1335 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1336 echo "configure:1337: checking for dnet_ntoa in -ldnet_stub" >&5
1337 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 ac_save_LIBS
="$LIBS"
1342 LIBS
="-ldnet_stub $LIBS"
1343 cat > conftest.
$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error. */
1347 /* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
1355 if { (eval echo configure
:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1357 eval "ac_cv_lib_$ac_lib_var=yes"
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1362 eval "ac_cv_lib_$ac_lib_var=no"
1365 LIBS
="$ac_save_LIBS"
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1370 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1372 echo "$ac_t""no" 1>&6
1377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1378 # to get the SysV transport functions.
1379 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1381 # The nsl library prevents programs from opening the X display
1382 # on Irix 5.2, according to dickey@clark.net.
1383 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1384 echo "configure:1385: checking for gethostbyname" >&5
1385 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 /* System header to define __stub macros and hopefully few prototypes,
1392 which can conflict with char gethostbyname(); below. */
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397 char gethostbyname();
1401 /* The GNU C library defines this for functions which it implements
1402 to always fail with ENOSYS. Some functions are actually named
1403 something starting with __ and the normal name is an alias. */
1404 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1412 if { (eval echo configure
:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1414 eval "ac_cv_func_gethostbyname=yes"
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1419 eval "ac_cv_func_gethostbyname=no"
1424 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1428 echo "$ac_t""no" 1>&6
1431 if test $ac_cv_func_gethostbyname = no
; then
1432 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1433 echo "configure:1434: checking for gethostbyname in -lnsl" >&5
1434 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 ac_save_LIBS
="$LIBS"
1440 cat > conftest.
$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1446 char gethostbyname();
1452 if { (eval echo configure
:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1456 echo "configure: failed program was:" >&5
1457 cat conftest.
$ac_ext >&5
1459 eval "ac_cv_lib_$ac_lib_var=no"
1462 LIBS
="$ac_save_LIBS"
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1469 echo "$ac_t""no" 1>&6
1474 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1475 # socket/setsockopt and other routines are undefined under SCO ODT
1476 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1477 # on later versions), says simon@lia.di.epfl.ch: it contains
1478 # gethostby* variants that don't use the nameserver (or something).
1479 # -lsocket must be given before -lnsl if both are needed.
1480 # We assume that if connect needs -lnsl, so does gethostbyname.
1481 echo $ac_n "checking for connect""... $ac_c" 1>&6
1482 echo "configure:1483: checking for connect" >&5
1483 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 /* System header to define __stub macros and hopefully few prototypes,
1490 which can conflict with char connect(); below. */
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1499 /* The GNU C library defines this for functions which it implements
1500 to always fail with ENOSYS. Some functions are actually named
1501 something starting with __ and the normal name is an alias. */
1502 #if defined (__stub_connect) || defined (__stub___connect)
1510 if { (eval echo configure
:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1512 eval "ac_cv_func_connect=yes"
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1517 eval "ac_cv_func_connect=no"
1522 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1526 echo "$ac_t""no" 1>&6
1529 if test $ac_cv_func_connect = no
; then
1530 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1531 echo "configure:1532: checking for connect in -lsocket" >&5
1532 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 ac_save_LIBS
="$LIBS"
1537 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1550 if { (eval echo configure
:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1552 eval "ac_cv_lib_$ac_lib_var=yes"
1554 echo "configure: failed program was:" >&5
1555 cat conftest.
$ac_ext >&5
1557 eval "ac_cv_lib_$ac_lib_var=no"
1560 LIBS
="$ac_save_LIBS"
1563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1564 echo "$ac_t""yes" 1>&6
1565 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1567 echo "$ac_t""no" 1>&6
1572 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1573 echo $ac_n "checking for remove""... $ac_c" 1>&6
1574 echo "configure:1575: checking for remove" >&5
1575 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* System header to define __stub macros and hopefully few prototypes,
1582 which can conflict with char remove(); below. */
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1591 /* The GNU C library defines this for functions which it implements
1592 to always fail with ENOSYS. Some functions are actually named
1593 something starting with __ and the normal name is an alias. */
1594 #if defined (__stub_remove) || defined (__stub___remove)
1602 if { (eval echo configure
:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1604 eval "ac_cv_func_remove=yes"
1606 echo "configure: failed program was:" >&5
1607 cat conftest.
$ac_ext >&5
1609 eval "ac_cv_func_remove=no"
1614 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1618 echo "$ac_t""no" 1>&6
1621 if test $ac_cv_func_remove = no
; then
1622 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1623 echo "configure:1624: checking for remove in -lposix" >&5
1624 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 ac_save_LIBS
="$LIBS"
1629 LIBS
="-lposix $LIBS"
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1642 if { (eval echo configure
:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1646 echo "configure: failed program was:" >&5
1647 cat conftest.
$ac_ext >&5
1649 eval "ac_cv_lib_$ac_lib_var=no"
1652 LIBS
="$ac_save_LIBS"
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1659 echo "$ac_t""no" 1>&6
1664 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1665 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1666 echo "configure:1667: checking for shmat" >&5
1667 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char shmat(); below. */
1676 /* Override any gcc2 internal prototype to avoid an error. */
1677 /* We use char because int might match the return type of a gcc2
1678 builtin and then its argument prototype would still apply. */
1683 /* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686 #if defined (__stub_shmat) || defined (__stub___shmat)
1694 if { (eval echo configure
:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1696 eval "ac_cv_func_shmat=yes"
1698 echo "configure: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1701 eval "ac_cv_func_shmat=no"
1706 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1710 echo "$ac_t""no" 1>&6
1713 if test $ac_cv_func_shmat = no
; then
1714 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1715 echo "configure:1716: checking for shmat in -lipc" >&5
1716 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 ac_save_LIBS
="$LIBS"
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* Override any gcc2 internal prototype to avoid an error. */
1726 /* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1734 if { (eval echo configure
:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1736 eval "ac_cv_lib_$ac_lib_var=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1741 eval "ac_cv_lib_$ac_lib_var=no"
1744 LIBS
="$ac_save_LIBS"
1747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1751 echo "$ac_t""no" 1>&6
1757 # Check for libraries that X11R6 Xt/Xaw programs need.
1758 ac_save_LDFLAGS
="$LDFLAGS"
1759 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1760 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1761 # check for ICE first), but we must link in the order -lSM -lICE or
1762 # we get undefined symbols. So assume we have SM if we have ICE.
1763 # These have to be linked with before -lX11, unlike the other
1764 # libraries we check for below, so use a different variable.
1765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1766 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1767 echo "configure:1768: checking for IceConnectionNumber in -lICE" >&5
1768 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 ac_save_LIBS
="$LIBS"
1773 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* Override any gcc2 internal prototype to avoid an error. */
1778 /* We use char because int might match the return type of a gcc2
1779 builtin and then its argument prototype would still apply. */
1780 char IceConnectionNumber();
1783 IceConnectionNumber()
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1788 eval "ac_cv_lib_$ac_lib_var=yes"
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 eval "ac_cv_lib_$ac_lib_var=no"
1796 LIBS
="$ac_save_LIBS"
1799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1803 echo "$ac_t""no" 1>&6
1806 LDFLAGS
="$ac_save_LDFLAGS"
1810 for ac_prog
in 'bison -y' byacc
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy
$ac_prog; ac_word
=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -n "$YACC"; then
1820 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1824 for ac_dir
in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir
=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_YACC
="$ac_prog"
1834 YACC
="$ac_cv_prog_YACC"
1835 if test -n "$YACC"; then
1836 echo "$ac_t""$YACC" 1>&6
1838 echo "$ac_t""no" 1>&6
1841 test -n "$YACC" && break
1843 test -n "$YACC" || YACC
="yacc"
1845 # Extract the first word of "flex", so it can be a program name with args.
1846 set dummy flex
; ac_word
=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 if test -n "$LEX"; then
1853 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1857 for ac_dir
in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir
=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_LEX
="flex"
1865 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1868 LEX
="$ac_cv_prog_LEX"
1869 if test -n "$LEX"; then
1870 echo "$ac_t""$LEX" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$LEXLIB"
1881 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1882 echo "configure:1883: checking for yywrap in -l$ac_lib" >&5
1883 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 ac_save_LIBS
="$LIBS"
1888 LIBS
="-l$ac_lib $LIBS"
1889 cat > conftest.
$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 /* Override any gcc2 internal prototype to avoid an error. */
1893 /* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
1901 if { (eval echo configure
:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1903 eval "ac_cv_lib_$ac_lib_var=yes"
1905 echo "configure: failed program was:" >&5
1906 cat conftest.
$ac_ext >&5
1908 eval "ac_cv_lib_$ac_lib_var=no"
1911 LIBS
="$ac_save_LIBS"
1914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1918 echo "$ac_t""no" 1>&6
1923 # Extract the first word of "ranlib", so it can be a program name with args.
1924 set dummy ranlib
; ac_word
=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 if test -n "$RANLIB"; then
1931 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1933 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1935 for ac_dir
in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir
=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_prog_RANLIB
="ranlib"
1943 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1946 RANLIB
="$ac_cv_prog_RANLIB"
1947 if test -n "$RANLIB"; then
1948 echo "$ac_t""$RANLIB" 1>&6
1950 echo "$ac_t""no" 1>&6
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1963 # ./install, which can be erroneously created by make from ./install.sh.
1964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1965 echo "configure:1966: checking for a BSD compatible install" >&5
1966 if test -z "$INSTALL"; then
1967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1971 for ac_dir
in $PATH; do
1972 # Account for people who put trailing slashes in PATH elements.
1974 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1976 # OSF1 and SCO ODT 3.0 have their own names for install.
1977 # Don't use installbsd from OSF since it installs stuff as root
1979 for ac_prog
in ginstall scoinst
install; do
1980 if test -f $ac_dir/$ac_prog; then
1981 if test $ac_prog = install &&
1982 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1983 # AIX install. It has an incompatible calling convention.
1986 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1997 if test "${ac_cv_path_install+set}" = set; then
1998 INSTALL
="$ac_cv_path_install"
2000 # As a last resort, use the slow shell script. We don't cache a
2001 # path for INSTALL within a source directory, because that will
2002 # break other packages using the cache if that directory is
2003 # removed, or if the path is relative.
2004 INSTALL
="$ac_install_sh"
2007 echo "$ac_t""$INSTALL" 1>&6
2009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2010 # It thinks the first close brace ends the variable substitution.
2011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2015 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2017 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ln -s works" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2023 if ln -s X conftestdata
2>/dev
/null
2026 ac_cv_prog_LN_S
="ln -s"
2031 LN_S
="$ac_cv_prog_LN_S"
2032 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2033 echo "$ac_t""yes" 1>&6
2035 echo "$ac_t""no" 1>&6
2038 # Extract the first word of "c2man", so it can be a program name with args.
2039 set dummy c2man
; ac_word
=$2
2040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_word" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 if test -n "$C2MAN"; then
2046 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2050 for ac_dir
in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir
=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_prog_C2MAN
="c2man"
2058 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
2061 C2MAN
="$ac_cv_prog_C2MAN"
2062 if test -n "$C2MAN"; then
2063 echo "$ac_t""$C2MAN" 1>&6
2065 echo "$ac_t""no" 1>&6
2068 # Extract the first word of "ldconfig", so it can be a program name with args.
2069 set dummy ldconfig
; ac_word
=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2077 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2080 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2083 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2084 ac_dummy
="/sbin:/usr/sbin:$PATH"
2085 for ac_dir
in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir
=.
2087 if test -f $ac_dir/$ac_word; then
2088 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2093 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2097 LDCONFIG
="$ac_cv_path_LDCONFIG"
2098 if test -n "$LDCONFIG"; then
2099 echo "$ac_t""$LDCONFIG" 1>&6
2101 echo "$ac_t""no" 1>&6
2105 for ac_prog
in lclint lint
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy
$ac_prog; ac_word
=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 if test -n "$LINT"; then
2115 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2117 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2119 for ac_dir
in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir
=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_LINT
="$ac_prog"
2129 LINT
="$ac_cv_prog_LINT"
2130 if test -n "$LINT"; then
2131 echo "$ac_t""$LINT" 1>&6
2133 echo "$ac_t""no" 1>&6
2136 test -n "$LINT" && break
2139 if test "$LINT" = "lint"
2141 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2147 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2148 echo "configure:2149: checking for sqrt in -lm" >&5
2149 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 ac_save_LIBS
="$LIBS"
2155 cat > conftest.
$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2167 if { (eval echo configure
:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 eval "ac_cv_lib_$ac_lib_var=no"
2177 LIBS
="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184 cat >> confdefs.h
<<EOF
2185 #define $ac_tr_lib 1
2191 echo "$ac_t""no" 1>&6
2194 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2195 echo "configure:2196: checking for i386_set_ldt in -li386" >&5
2196 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 ac_save_LIBS
="$LIBS"
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2208 char i386_set_ldt();
2214 if { (eval echo configure
:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2216 eval "ac_cv_lib_$ac_lib_var=yes"
2218 echo "configure: failed program was:" >&5
2219 cat conftest.
$ac_ext >&5
2221 eval "ac_cv_lib_$ac_lib_var=no"
2224 LIBS
="$ac_save_LIBS"
2227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2231 cat >> confdefs.h
<<EOF
2232 #define $ac_tr_lib 1
2238 echo "$ac_t""no" 1>&6
2241 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2242 echo "configure:2243: checking for _oss_ioctl in -lossaudio" >&5
2243 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 ac_save_LIBS
="$LIBS"
2248 LIBS
="-lossaudio $LIBS"
2249 cat > conftest.
$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_lib_$ac_lib_var=no"
2271 LIBS
="$ac_save_LIBS"
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h
<<EOF
2279 #define $ac_tr_lib 1
2282 LIBS
="-lossaudio $LIBS"
2285 echo "$ac_t""no" 1>&6
2288 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2289 echo "configure:2290: checking for iswalnum in -lw" >&5
2290 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 ac_save_LIBS
="$LIBS"
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2308 if { (eval echo configure
:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2310 eval "ac_cv_lib_$ac_lib_var=yes"
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 eval "ac_cv_lib_$ac_lib_var=no"
2318 LIBS
="$ac_save_LIBS"
2321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2325 cat >> confdefs.h
<<EOF
2326 #define $ac_tr_lib 1
2332 echo "$ac_t""no" 1>&6
2335 for ac_func
in gethostbyname
2337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_func" >&5
2339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.
$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2355 /* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2366 if { (eval echo configure
:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2368 eval "ac_cv_func_$ac_func=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 eval "ac_cv_func_$ac_func=no"
2378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h
<<EOF
2382 #define $ac_tr_func 1
2386 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2388 echo "configure:2389: checking for gethostbyname in -lnsl" >&5
2389 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_save_LIBS
="$LIBS"
2394 LIBS
="-lnsl -lsocket $LIBS"
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char gethostbyname();
2407 if { (eval echo configure
:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2409 eval "ac_cv_lib_$ac_lib_var=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 eval "ac_cv_lib_$ac_lib_var=no"
2417 LIBS
="$ac_save_LIBS"
2420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2424 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2426 echo "configure:2427: checking for gethostbyname in -lsocket" >&5
2427 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 ac_save_LIBS
="$LIBS"
2432 LIBS
="-lsocket -lnsl $LIBS"
2433 cat > conftest.
$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char gethostbyname();
2445 if { (eval echo configure
:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 eval "ac_cv_lib_$ac_lib_var=no"
2455 LIBS
="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2462 echo "$ac_t""no" 1>&6
2470 for ac_func
in connect
2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_func" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2501 if { (eval echo configure
:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2503 eval "ac_cv_func_$ac_func=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_func_$ac_func=no"
2513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h
<<EOF
2517 #define $ac_tr_func 1
2521 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2523 echo "configure:2524: checking for connect in -lsocket" >&5
2524 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 ac_save_LIBS
="$LIBS"
2529 LIBS
="-lsocket $LIBS"
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2542 if { (eval echo configure
:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 eval "ac_cv_lib_$ac_lib_var=no"
2552 LIBS
="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2559 cat >> confdefs.h
<<EOF
2560 #define $ac_tr_lib 1
2563 LIBS
="-lsocket $LIBS"
2566 echo "$ac_t""no" 1>&6
2572 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2573 echo "configure:2574: checking for setrunelocale in -lxpg4" >&5
2574 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 ac_save_LIBS
="$LIBS"
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char setrunelocale();
2592 if { (eval echo configure
:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 eval "ac_cv_lib_$ac_lib_var=no"
2602 LIBS
="$ac_save_LIBS"
2605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2609 cat >> confdefs.h
<<EOF
2610 #define $ac_tr_lib 1
2616 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2620 echo "configure:2621: checking for mmap in -lmmap" >&5
2621 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 ac_save_LIBS
="$LIBS"
2627 cat > conftest.
$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2639 if { (eval echo configure
:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2641 eval "ac_cv_lib_$ac_lib_var=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2646 eval "ac_cv_lib_$ac_lib_var=no"
2649 LIBS
="$ac_save_LIBS"
2652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2656 cat >> confdefs.h
<<EOF
2657 #define $ac_tr_lib 1
2663 echo "$ac_t""no" 1>&6
2666 for ac_func
in openpty
2668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_func" >&5
2670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 /* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $ac_func(); below. */
2679 /* Override any gcc2 internal prototype to avoid an error. */
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2686 /* The GNU C library defines this for functions which it implements
2687 to always fail with ENOSYS. Some functions are actually named
2688 something starting with __ and the normal name is an alias. */
2689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2697 if { (eval echo configure
:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2699 eval "ac_cv_func_$ac_func=yes"
2701 echo "configure: failed program was:" >&5
2702 cat conftest.
$ac_ext >&5
2704 eval "ac_cv_func_$ac_func=no"
2709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2712 cat >> confdefs.h
<<EOF
2713 #define $ac_tr_func 1
2717 echo "$ac_t""no" 1>&6
2718 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2719 echo "configure:2720: checking for openpty in -lutil" >&5
2720 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 ac_save_LIBS
="$LIBS"
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* Override any gcc2 internal prototype to avoid an error. */
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2738 if { (eval echo configure
:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2740 eval "ac_cv_lib_$ac_lib_var=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 eval "ac_cv_lib_$ac_lib_var=no"
2748 LIBS
="$ac_save_LIBS"
2751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 cat >> confdefs.h
<<\EOF
2754 #define HAVE_OPENPTY 1
2760 echo "$ac_t""no" 1>&6
2767 for ac_hdr
in dlfcn.h
2769 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.
$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2780 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure
:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2785 eval "ac_cv_header_$ac_safe=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 eval "ac_cv_header_$ac_safe=no"
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h
<<EOF
2799 #define $ac_tr_hdr 1
2801 for ac_func
in dlopen
2803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_func" >&5
2805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 cat > conftest.
$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 /* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $ac_func(); below. */
2814 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2832 if { (eval echo configure
:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2834 eval "ac_cv_func_$ac_func=yes"
2836 echo "configure: failed program was:" >&5
2837 cat conftest.
$ac_ext >&5
2839 eval "ac_cv_func_$ac_func=no"
2844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2847 cat >> confdefs.h
<<EOF
2848 #define $ac_tr_func 1
2850 cat >> confdefs.h
<<\EOF
2851 #define HAVE_DL_API 1
2855 echo "$ac_t""no" 1>&6
2856 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2857 echo "configure:2858: checking for dlopen in -ldl" >&5
2858 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 ac_save_LIBS
="$LIBS"
2864 cat > conftest.
$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2876 if { (eval echo configure
:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2878 eval "ac_cv_lib_$ac_lib_var=yes"
2880 echo "configure: failed program was:" >&5
2881 cat conftest.
$ac_ext >&5
2883 eval "ac_cv_lib_$ac_lib_var=no"
2886 LIBS
="$ac_save_LIBS"
2889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 cat >> confdefs.h
<<\EOF
2892 #define HAVE_DL_API 1
2897 echo "$ac_t""no" 1>&6
2907 echo "$ac_t""no" 1>&6
2922 if test "$have_x" = "yes"
2925 ac_save_CPPFLAGS
="$CPPFLAGS"
2926 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2928 for ac_hdr
in X11
/xpm.h
2930 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2932 echo "configure:2933: checking for $ac_hdr" >&5
2933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2941 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2942 { (eval echo configure
:2943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2943 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2944 if test -z "$ac_err"; then
2946 eval "ac_cv_header_$ac_safe=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 eval "ac_cv_header_$ac_safe=no"
2956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2957 echo "$ac_t""yes" 1>&6
2958 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2959 cat >> confdefs.h
<<EOF
2960 #define $ac_tr_hdr 1
2964 echo "$ac_t""no" 1>&6
2968 if test "$ac_cv_header_X11_xpm_h" = "yes"
2970 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2971 echo "configure:2972: checking for XpmCreatePixmapFromData in -lXpm" >&5
2972 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 ac_save_LIBS
="$LIBS"
2977 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2978 cat > conftest.
$ac_ext <<EOF
2979 #line 2980 "configure"
2980 #include "confdefs.h"
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2984 char XpmCreatePixmapFromData();
2987 XpmCreatePixmapFromData()
2990 if { (eval echo configure
:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2992 eval "ac_cv_lib_$ac_lib_var=yes"
2994 echo "configure: failed program was:" >&5
2995 cat conftest.
$ac_ext >&5
2997 eval "ac_cv_lib_$ac_lib_var=no"
3000 LIBS
="$ac_save_LIBS"
3003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3004 echo "$ac_t""yes" 1>&6
3005 cat >> confdefs.h
<<\EOF
3006 #define HAVE_LIBXXPM 1
3008 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3010 echo "$ac_t""no" 1>&6
3014 echo "When compiling with X support, you need the Xpm library, or"
3015 echo "WINE will not work. This Xpm library is within the following RPM,"
3016 echo "which you need to install:"
3017 echo "Redhat : xpm, xpm-devel"
3018 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3020 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
3022 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3023 echo "the directory /contrib/libraries."
3029 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
3031 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3033 echo "configure:3034: checking for $ac_hdr" >&5
3034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.
$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3043 { (eval echo configure
:3044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3045 if test -z "$ac_err"; then
3047 eval "ac_cv_header_$ac_safe=yes"
3050 echo "configure: failed program was:" >&5
3051 cat conftest.
$ac_ext >&5
3053 eval "ac_cv_header_$ac_safe=no"
3057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3060 cat >> confdefs.h
<<EOF
3061 #define $ac_tr_hdr 1
3065 echo "$ac_t""no" 1>&6
3069 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3071 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3072 echo "configure:3073: checking for XShmQueryExtension in -lXext" >&5
3073 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 ac_save_LIBS
="$LIBS"
3078 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3085 char XShmQueryExtension();
3088 XShmQueryExtension()
3091 if { (eval echo configure
:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_lib_$ac_lib_var=no"
3101 LIBS
="$ac_save_LIBS"
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 cat >> confdefs.h
<<\EOF
3107 #define HAVE_LIBXXSHM 1
3111 echo "$ac_t""no" 1>&6
3115 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
3117 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3119 echo "configure:3120: checking for $ac_hdr" >&5
3120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3128 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3129 { (eval echo configure
:3130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3130 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3131 if test -z "$ac_err"; then
3133 eval "ac_cv_header_$ac_safe=yes"
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3139 eval "ac_cv_header_$ac_safe=no"
3143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3146 cat >> confdefs.h
<<EOF
3147 #define $ac_tr_hdr 1
3151 echo "$ac_t""no" 1>&6
3155 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3157 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3158 echo "configure:3159: checking for XDGAQueryExtension in -lXxf86dga" >&5
3159 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_save_LIBS
="$LIBS"
3164 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3166 cat > conftest.
$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 /* Override any gcc2 internal prototype to avoid an error. */
3170 /* We use char because int might match the return type of a gcc2
3171 builtin and then its argument prototype would still apply. */
3172 char XDGAQueryExtension();
3175 XDGAQueryExtension()
3178 if { (eval echo configure
:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3180 eval "ac_cv_lib_$ac_lib_var=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3185 eval "ac_cv_lib_$ac_lib_var=no"
3188 LIBS
="$ac_save_LIBS"
3191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3192 echo "$ac_t""yes" 1>&6
3193 cat >> confdefs.h
<<\EOF
3194 #define HAVE_LIBXXF86DGA2 1
3197 cat >> confdefs.h
<<\EOF
3198 #define HAVE_LIBXXF86DGA 1
3201 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3202 DGA_SRCS
='$(DGA_SRCS)'
3205 echo "$ac_t""no" 1>&6
3208 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3210 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3211 echo "configure:3212: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3212 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 ac_save_LIBS
="$LIBS"
3217 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* Override any gcc2 internal prototype to avoid an error. */
3222 /* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3224 char XF86DGAQueryExtension();
3227 XF86DGAQueryExtension()
3230 if { (eval echo configure
:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3232 eval "ac_cv_lib_$ac_lib_var=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 eval "ac_cv_lib_$ac_lib_var=no"
3240 LIBS
="$ac_save_LIBS"
3243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 cat >> confdefs.h
<<\EOF
3246 #define HAVE_LIBXXF86DGA 1
3249 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3250 DGA_SRCS
='$(DGA_SRCS)'
3253 echo "$ac_t""no" 1>&6
3259 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
3261 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_hdr" >&5
3264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure
:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3277 eval "ac_cv_header_$ac_safe=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 eval "ac_cv_header_$ac_safe=no"
3287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3290 cat >> confdefs.h
<<EOF
3291 #define $ac_tr_hdr 1
3295 echo "$ac_t""no" 1>&6
3299 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3301 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3302 echo "configure:3303: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3303 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_save_LIBS
="$LIBS"
3308 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3315 char XF86VidModeQueryExtension();
3318 XF86VidModeQueryExtension()
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3323 eval "ac_cv_lib_$ac_lib_var=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3328 eval "ac_cv_lib_$ac_lib_var=no"
3331 LIBS
="$ac_save_LIBS"
3334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 cat >> confdefs.h
<<\EOF
3337 #define HAVE_LIBXXF86VM 1
3339 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3341 echo "$ac_t""no" 1>&6
3346 if test $OPENGL = "yes" -o $OPENGL = "normal"
3348 for ac_hdr
in GL
/gl.h GL
/glx.h
3350 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5
3353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3361 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure
:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3364 if test -z "$ac_err"; then
3366 eval "ac_cv_header_$ac_safe=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3372 eval "ac_cv_header_$ac_safe=no"
3376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3379 cat >> confdefs.h
<<EOF
3380 #define $ac_tr_hdr 1
3384 echo "$ac_t""no" 1>&6
3388 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3390 echo $ac_n "checking "for up-to-date OpenGL version
"""... $ac_c" 1>&6
3391 echo "configure:3392: checking "for up-to-date OpenGL version
"" >&5
3392 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3400 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3403 if { (eval echo configure
:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3405 wine_cv_mesa_version_OK
="yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.
$ac_ext >&5
3410 wine_cv_mesa_version_OK
="no"
3417 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3419 echo $ac_n "checking "for thread-safe OpenGL version
"""... $ac_c" 1>&6
3420 echo "configure:3421: checking "for thread-safe OpenGL version
"" >&5
3421 if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.
$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3431 pthread_getspecific();
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3436 wine_cv_mesa_version_threadsafe
="yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 wine_cv_mesa_version_threadsafe
="no"
3448 echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3450 if test "$wine_cv_mesa_version_OK" = "yes" -a \
( "$wine_cv_mesa_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
3452 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3453 echo "configure:3454: checking for glXCreateContext in -lGL" >&5
3454 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 ac_save_LIBS
="$LIBS"
3459 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3460 cat > conftest.
$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3466 char glXCreateContext();
3472 if { (eval echo configure
:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3474 eval "ac_cv_lib_$ac_lib_var=yes"
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 eval "ac_cv_lib_$ac_lib_var=no"
3482 LIBS
="$ac_save_LIBS"
3485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3487 cat >> confdefs.h
<<\EOF
3488 #define HAVE_LIBMESAGL 1
3491 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3492 MESA_SRCS
='$(MESA_SRCS)'
3495 echo "$ac_t""no" 1>&6
3499 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3501 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3502 echo "configure:3503: checking for glXCreateContext in -lMesaGL" >&5
3503 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 ac_save_LIBS
="$LIBS"
3508 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3509 cat > conftest.
$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3515 char glXCreateContext();
3521 if { (eval echo configure
:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3523 eval "ac_cv_lib_$ac_lib_var=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.
$ac_ext >&5
3528 eval "ac_cv_lib_$ac_lib_var=no"
3531 LIBS
="$ac_save_LIBS"
3534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 cat >> confdefs.h
<<\EOF
3537 #define HAVE_LIBMESAGL 1
3540 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3541 MESA_SRCS
='$(MESA_SRCS)'
3544 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking "for the OpenGL Color Index extension
"""... $ac_c" 1>&6
3550 echo "configure:3551: checking "for the OpenGL Color Index extension
"" >&5
3551 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 cat > conftest.
$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3559 GLenum test = GL_COLOR_INDEX8_EXT;
3562 if { (eval echo configure
:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 cat >> confdefs.h
<<\EOF
3565 #define HAVE_GL_COLOR_TABLE 1
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3575 echo "$ac_t""$dummy" 1>&6
3577 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3579 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3580 echo "configure:3581: checking for glColorTableEXT in -lMesaGL" >&5
3581 ac_lib_var
=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 ac_save_LIBS
="$LIBS"
3586 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3587 cat > conftest.
$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3593 char glColorTableEXT();
3599 if { (eval echo configure
:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3601 eval "ac_cv_lib_$ac_lib_var=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.
$ac_ext >&5
3606 eval "ac_cv_lib_$ac_lib_var=no"
3609 LIBS
="$ac_save_LIBS"
3612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3613 echo "$ac_t""yes" 1>&6
3614 cat >> confdefs.h
<<\EOF
3615 #define HAVE_GL_PALETTED_TEXTURE 1
3619 echo "$ac_t""no" 1>&6
3623 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3624 echo "configure:3625: checking for glColorTableEXT in -lGL" >&5
3625 ac_lib_var
=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 ac_save_LIBS
="$LIBS"
3630 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char glColorTableEXT();
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS
="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 cat >> confdefs.h
<<\EOF
3659 #define HAVE_GL_PALETTED_TEXTURE 1
3663 echo "$ac_t""no" 1>&6
3671 CPPFLAGS
="$ac_save_CPPFLAGS"
3680 if test "$CURSES" = "yes"
3682 for ac_hdr
in ncurses.h
3684 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3686 echo "configure:3687: checking for $ac_hdr" >&5
3687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3696 { (eval echo configure
:3697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3697 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3698 if test -z "$ac_err"; then
3700 eval "ac_cv_header_$ac_safe=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.
$ac_ext >&5
3706 eval "ac_cv_header_$ac_safe=no"
3710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3711 echo "$ac_t""yes" 1>&6
3712 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3713 cat >> confdefs.h
<<EOF
3714 #define $ac_tr_hdr 1
3718 echo "$ac_t""no" 1>&6
3722 if test "$ac_cv_header_ncurses_h" = "yes"
3724 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3725 echo "configure:3726: checking for waddch in -lncurses" >&5
3726 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_save_LIBS
="$LIBS"
3731 LIBS
="-lncurses $LIBS"
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3744 if { (eval echo configure
:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3746 eval "ac_cv_lib_$ac_lib_var=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3751 eval "ac_cv_lib_$ac_lib_var=no"
3754 LIBS
="$ac_save_LIBS"
3757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3761 cat >> confdefs.h
<<EOF
3762 #define $ac_tr_lib 1
3765 LIBS
="-lncurses $LIBS"
3768 echo "$ac_t""no" 1>&6
3772 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3774 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3775 echo "configure:3776: checking for resizeterm in -lncurses" >&5
3776 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS
="$LIBS"
3781 LIBS
="-lncurses $LIBS"
3782 cat > conftest.
$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3794 if { (eval echo configure
:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.
$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS
="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 cat >> confdefs.h
<<\EOF
3810 #define HAVE_RESIZETERM 1
3814 echo "$ac_t""no" 1>&6
3817 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3818 echo "configure:3819: checking for getbkgd in -lncurses" >&5
3819 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 ac_save_LIBS
="$LIBS"
3824 LIBS
="-lncurses $LIBS"
3825 cat > conftest.
$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3837 if { (eval echo configure
:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3839 eval "ac_cv_lib_$ac_lib_var=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.
$ac_ext >&5
3844 eval "ac_cv_lib_$ac_lib_var=no"
3847 LIBS
="$ac_save_LIBS"
3850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 cat >> confdefs.h
<<\EOF
3853 #define HAVE_GETBKGD 1
3857 echo "$ac_t""no" 1>&6
3861 for ac_hdr
in curses.h
3863 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_hdr" >&5
3866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.
$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3874 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure
:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3879 eval "ac_cv_header_$ac_safe=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 eval "ac_cv_header_$ac_safe=no"
3889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3892 cat >> confdefs.h
<<EOF
3893 #define $ac_tr_hdr 1
3897 echo "$ac_t""no" 1>&6
3901 if test "$ac_cv_header_curses_h" = "yes"
3903 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3904 echo "configure:3905: checking for waddch in -lcurses" >&5
3905 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 ac_save_LIBS
="$LIBS"
3910 LIBS
="-lcurses $LIBS"
3911 cat > conftest.
$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3923 if { (eval echo configure
:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 eval "ac_cv_lib_$ac_lib_var=no"
3933 LIBS
="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3940 cat >> confdefs.h
<<EOF
3941 #define $ac_tr_lib 1
3944 LIBS
="-lcurses $LIBS"
3947 echo "$ac_t""no" 1>&6
3950 if test "$ac_cv_lib_curses_waddch" = "yes"
3952 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3953 echo "configure:3954: checking for resizeterm in -lcurses" >&5
3954 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_save_LIBS
="$LIBS"
3959 LIBS
="-lcurses $LIBS"
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3972 if { (eval echo configure
:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3974 eval "ac_cv_lib_$ac_lib_var=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 eval "ac_cv_lib_$ac_lib_var=no"
3982 LIBS
="$ac_save_LIBS"
3985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 cat >> confdefs.h
<<\EOF
3988 #define HAVE_RESIZETERM 1
3992 echo "$ac_t""no" 1>&6
3995 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3996 echo "configure:3997: checking for getbkgd in -lcurses" >&5
3997 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 ac_save_LIBS
="$LIBS"
4002 LIBS
="-lcurses $LIBS"
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4015 if { (eval echo configure
:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4017 eval "ac_cv_lib_$ac_lib_var=yes"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.
$ac_ext >&5
4022 eval "ac_cv_lib_$ac_lib_var=no"
4025 LIBS
="$ac_save_LIBS"
4028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 cat >> confdefs.h
<<\EOF
4031 #define HAVE_GETBKGD 1
4035 echo "$ac_t""no" 1>&6
4043 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
4044 echo "configure:4045: checking "for GNU style IPX support
"" >&5
4045 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+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"
4051 #include <sys/socket.h>
4052 #include <netipx/ipx.h>
4054 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4057 if { (eval echo configure
:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 ac_cv_c_ipx_gnu
="yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 ac_cv_c_ipx_gnu
="no"
4070 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4071 if test "$ac_cv_c_ipx_gnu" = "yes"
4073 cat >> confdefs.h
<<\EOF
4074 #define HAVE_IPX_GNU 1
4079 if test "$ac_cv_c_ipx_gnu" = "no"
4081 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4082 echo "configure:4083: checking "for linux style IPX support
"" >&5
4083 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+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"
4089 #include <sys/socket.h>
4090 #include <asm/types.h>
4091 #include <linux/ipx.h>
4093 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4096 if { (eval echo configure
:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4098 ac_cv_c_ipx_linux
="yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4103 ac_cv_c_ipx_linux
="no"
4109 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4110 if test "$ac_cv_c_ipx_linux" = "yes"
4112 cat >> confdefs.h
<<\EOF
4113 #define HAVE_IPX_LINUX 1
4119 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4121 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_hdr" >&5
4124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4132 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4133 { (eval echo configure
:4134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4134 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4135 if test -z "$ac_err"; then
4137 eval "ac_cv_header_$ac_safe=yes"
4140 echo "configure: failed program was:" >&5
4141 cat conftest.
$ac_ext >&5
4143 eval "ac_cv_header_$ac_safe=no"
4147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4150 cat >> confdefs.h
<<EOF
4151 #define $ac_tr_hdr 1
4155 echo "$ac_t""no" 1>&6
4160 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4161 echo "configure:4162: checking "for Open Sound System
"" >&5
4162 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.
$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4169 #if defined(HAVE_SYS_SOUNDCARD_H)
4170 #include <sys/soundcard.h>
4171 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4172 #include <machine/soundcard.h>
4173 #elif defined(HAVE_SOUNDCARD_H)
4174 #include <soundcard.h>
4180 /* check for one of the Open Sound System specific SNDCTL_ defines */
4181 #if !defined(SNDCTL_DSP_STEREO)
4182 #error No open sound system
4187 if { (eval echo configure
:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4189 ac_cv_c_opensoundsystem
="yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 ac_cv_c_opensoundsystem
="no"
4199 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4201 if test "$ac_cv_c_opensoundsystem" = "yes"
4203 cat >> confdefs.h
<<\EOF
4209 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4210 echo "configure:4211: checking "for Open Sound System
/MIDI interface
"" >&5
4211 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 cat > conftest.
$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4218 #if defined(HAVE_SYS_SOUNDCARD_H)
4219 #include <sys/soundcard.h>
4220 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4221 #include <machine/soundcard.h>
4222 #elif defined(HAVE_SOUNDCARD_H)
4223 #include <soundcard.h>
4229 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4230 #if !defined(SNDCTL_SEQ_SYNC)
4231 #error No open sound system MIDI interface
4236 if { (eval echo configure
:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4238 ac_cv_c_opensoundsystem_midi
="yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4243 ac_cv_c_opensoundsystem_midi
="no"
4248 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4250 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4252 cat >> confdefs.h
<<\EOF
4253 #define HAVE_OSS_MIDI 1
4258 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4261 if test "x${GCC}" = "xyes"
4263 CFLAGS
="$CFLAGS -Wall"
4264 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4265 echo "configure:4266: checking "for gcc strength-reduce bug
"" >&5
4266 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 if test "$cross_compiling" = yes; then
4270 ac_cv_c_gcc_strength_bug
="yes"
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4277 static int Array[3];
4280 for(i=0; i<B; i++) Array[i] = i - 3;
4281 exit( Array[1] != -2 );
4284 if { (eval echo configure
:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4286 ac_cv_c_gcc_strength_bug
="no"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.
$ac_ext >&5
4291 ac_cv_c_gcc_strength_bug
="yes"
4298 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4299 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4301 CFLAGS
="$CFLAGS -fno-strength-reduce"
4306 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4307 echo "configure:4308: checking "whether external symbols need an underscore prefix
"" >&5
4308 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4312 LIBS
="conftest_asm.s $LIBS"
4313 cat > conftest_asm.s
<<EOF
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4323 if (ac_test) return 1
4326 if { (eval echo configure
:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4328 ac_cv_c_extern_prefix
="yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4333 ac_cv_c_extern_prefix
="no"
4339 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4340 if test "$ac_cv_c_extern_prefix" = "yes"
4342 cat >> confdefs.h
<<\EOF
4343 #define NEED_UNDERSCORE_PREFIX 1
4349 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4350 echo "configure:4351: checking "whether assembler accepts .string
"" >&5
4351 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4355 LIBS
="conftest_asm.s $LIBS"
4356 cat > conftest_asm.s
<<EOF
4359 cat > conftest.
$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4367 if { (eval echo configure
:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4369 ac_cv_c_asm_string
="yes"
4371 echo "configure: failed program was:" >&5
4372 cat conftest.
$ac_ext >&5
4374 ac_cv_c_asm_string
="no"
4380 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4381 if test "$ac_cv_c_asm_string" = "yes"
4383 cat >> confdefs.h
<<\EOF
4384 #define HAVE_ASM_STRING 1
4391 if test "$LIBEXT" = "so"
4393 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4394 echo "configure:4395: checking "whether we can build a Linux dll
"" >&5
4395 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 saved_cflags
=$CFLAGS
4399 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4408 if { (eval echo configure
:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4410 ac_cv_c_dll_linux
="yes"
4412 echo "configure: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4415 ac_cv_c_dll_linux
="no"
4418 CFLAGS
=$saved_cflags
4422 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4423 if test "$ac_cv_c_dll_linux" = "yes"
4425 LDSHARED
="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4427 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4428 echo "configure:4429: checking whether we can build a UnixWare (Solaris) dll" >&5
4429 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 saved_cflags
=$CFLAGS
4433 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4442 if { (eval echo configure
:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4444 ac_cv_c_dll_unixware
="yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.
$ac_ext >&5
4449 ac_cv_c_dll_unixware
="no"
4452 CFLAGS
=$saved_cflags
4456 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4457 if test "$ac_cv_c_dll_unixware" = "yes"
4459 LDSHARED
="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4461 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4462 echo "configure:4463: checking "whether we can build a NetBSD dll
"" >&5
4463 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 saved_cflags
=$CFLAGS
4467 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4468 cat > conftest.
$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4476 if { (eval echo configure
:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4478 ac_cv_c_dll_netbsd
="yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.
$ac_ext >&5
4483 ac_cv_c_dll_netbsd
="no"
4486 CFLAGS
=$saved_cflags
4490 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4491 if test "$ac_cv_c_dll_netbsd" = "yes"
4493 LDSHARED
="ld -Bshareable -Bforcearchive"
4497 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4506 if test "$LIBEXT" = "so"; then
4509 DLL_LINK
="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4511 DLL_LINK
="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4512 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4513 echo "configure:4514: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4514 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 saved_cflags
=$CFLAGS
4518 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4519 cat > conftest.
$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4527 if { (eval echo configure
:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4529 ac_cv_c_whole_archive
="yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 ac_cv_c_whole_archive
="no"
4537 CFLAGS
=$saved_cflags
4541 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4542 if test "$ac_cv_c_whole_archive" = "yes"
4544 DLL_LINK
="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4546 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4547 echo "configure:4548: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4548 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4551 saved_cflags
=$CFLAGS
4552 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4561 if { (eval echo configure
:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4563 ac_cv_c_allextract
="yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.
$ac_ext >&5
4568 ac_cv_c_allextract
="no"
4571 CFLAGS
=$saved_cflags
4575 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4576 if test "$ac_cv_c_allextract" = "yes"
4578 DLL_LINK
="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4590 wine_cv_libc_reentrant
=no
4591 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4592 echo "configure:4593: checking "for reentrant libc
: __errno_location
"" >&5
4593 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 if test "$cross_compiling" = yes; then
4597 wine_cv_libc_r__errno_location
=yes
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 int *__errno_location(){return &myerrno;}
4605 main(){connect(0,buf,255); exit(!myerrno);}
4607 if { (eval echo configure
:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4609 wine_cv_libc_r__errno_location
=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 wine_cv_libc_r__errno_location
=no
4622 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4623 if test "$wine_cv_libc_r__errno_location" = "yes"
4625 cat >> confdefs.h
<<\EOF
4626 #define HAVE__ERRNO_LOCATION 1
4629 wine_cv_libc_reentrant
=__errno_location
4631 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4632 echo "configure:4633: checking "for reentrant libc
: __error
"" >&5
4633 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 if test "$cross_compiling" = yes; then
4637 wine_cv_libc_r__error
=yes
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4644 int *__error(){return &myerrno;}
4645 main(){connect(0,buf,255); exit(!myerrno);}
4647 if { (eval echo configure
:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4649 wine_cv_libc_r__error
=yes
4651 echo "configure: failed program was:" >&5
4652 cat conftest.
$ac_ext >&5
4654 wine_cv_libc_r__error
=no
4662 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4663 if test "$wine_cv_libc_r__error" = "yes"
4665 cat >> confdefs.h
<<\EOF
4666 #define HAVE__ERROR 1
4669 wine_cv_libc_reentrant
=__error
4671 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4672 echo "configure:4673: checking "for reentrant libc
: ___errno
"" >&5
4673 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 if test "$cross_compiling" = yes; then
4677 wine_cv_libc_r___errno
=yes
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4684 int *___errno(){return &myerrno;}
4685 main(){connect(0,buf,255); exit(!myerrno);}
4687 if { (eval echo configure
:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4689 wine_cv_libc_r___errno
=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.
$ac_ext >&5
4694 wine_cv_libc_r___errno
=no
4702 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4703 if test "$wine_cv_libc_r___errno" = "yes"
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE___ERRNO 1
4709 wine_cv_libc_reentrant
=___errno
4711 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4712 echo "configure:4713: checking "for reentrant libc
: __thr_errno
"" >&5
4713 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 if test "$cross_compiling" = yes; then
4717 wine_cv_libc_r__thr_errno
=yes
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 int *__thr_errno(){return &myerrno;}
4725 main(){connect(0,buf,255); exit(!myerrno);}
4727 if { (eval echo configure
:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4729 wine_cv_libc_r__thr_errno
=yes
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 wine_cv_libc_r__thr_errno
=no
4742 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4743 if test "$wine_cv_libc_r__thr_errno" = "yes"
4745 cat >> confdefs.h
<<\EOF
4746 #define HAVE__THR_ERRNO 1
4749 wine_cv_libc_reentrant
=__thr_errno
4751 if test "$wine_cv_libc_reentrant" = "no"
4753 cat >> confdefs.h
<<\EOF
4754 #define NO_REENTRANT_LIBC 1
4760 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4762 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4763 echo "configure:4764: checking "for reentrant X libraries
"" >&5
4764 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 if test "x$with_reentrant_x" = "xno"
4769 wine_cv_x_reentrant
=no
4772 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4773 if test -r $dir/libX11.so
; then
4774 libX11_check
="-D $dir/libX11.so"
4777 if test -r $dir/libX11.a
; then
4778 libX11_check
="$dir/libX11.a"
4782 if test "$libX11_check" != "none"; then
4783 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4785 wine_cv_x_reentrant
=yes
4787 wine_cv_x_reentrant
=no
4790 wine_cv_x_reentrant
=unknown
4795 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4797 wine_cv_x_reentrant
=no
4799 if test "$wine_cv_x_reentrant" = "no"
4801 cat >> confdefs.h
<<\EOF
4802 #define NO_REENTRANT_X11 1
4808 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4809 echo "configure:4810: checking whether byte ordering is bigendian" >&5
4810 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 ac_cv_c_bigendian
=unknown
4814 # See if sys/param.h defines the BYTE_ORDER macro.
4815 cat > conftest.
$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/types.h>
4819 #include <sys/param.h>
4822 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4827 if { (eval echo configure
:4828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 # It does; now see whether it defined to BIG_ENDIAN or not.
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #include <sys/param.h>
4837 #if BYTE_ORDER != BIG_ENDIAN
4842 if { (eval echo configure
:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ac_cv_c_bigendian
=yes
4846 echo "configure: failed program was:" >&5
4847 cat conftest.
$ac_ext >&5
4849 ac_cv_c_bigendian
=no
4853 echo "configure: failed program was:" >&5
4854 cat conftest.
$ac_ext >&5
4857 if test $ac_cv_c_bigendian = unknown
; then
4858 if test "$cross_compiling" = yes; then
4859 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4861 cat > conftest.
$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4865 /* Are we little or big endian? From Harbison&Steele. */
4869 char c[sizeof (long)];
4872 exit (u.c[sizeof (long) - 1] == 1);
4875 if { (eval echo configure
:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4877 ac_cv_c_bigendian
=no
4879 echo "configure: failed program was:" >&5
4880 cat conftest.
$ac_ext >&5
4882 ac_cv_c_bigendian
=yes
4890 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4891 if test $ac_cv_c_bigendian = yes; then
4892 cat >> confdefs.h
<<\EOF
4893 #define WORDS_BIGENDIAN 1
4900 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4901 # for constant arguments. Useless!
4902 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4903 echo "configure:4904: checking for working alloca.h" >&5
4904 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4907 cat > conftest.
$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4912 void *p = alloca(2 * sizeof(int));
4915 if { (eval echo configure
:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4917 ac_cv_header_alloca_h
=yes
4919 echo "configure: failed program was:" >&5
4920 cat conftest.
$ac_ext >&5
4922 ac_cv_header_alloca_h
=no
4927 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4928 if test $ac_cv_header_alloca_h = yes; then
4929 cat >> confdefs.h
<<\EOF
4930 #define HAVE_ALLOCA_H 1
4935 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4936 echo "configure:4937: checking for alloca" >&5
4937 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 # define alloca __builtin_alloca
4948 # include <malloc.h>
4949 # define alloca _alloca
4952 # include <alloca.h>
4957 # ifndef alloca /* predefined by HP cc +Olibcalls */
4966 char *p = (char *) alloca(1);
4969 if { (eval echo configure
:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4971 ac_cv_func_alloca_works
=yes
4973 echo "configure: failed program was:" >&5
4974 cat conftest.
$ac_ext >&5
4976 ac_cv_func_alloca_works
=no
4981 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4982 if test $ac_cv_func_alloca_works = yes; then
4983 cat >> confdefs.h
<<\EOF
4984 #define HAVE_ALLOCA 1
4989 if test $ac_cv_func_alloca_works = no
; then
4990 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4991 # that cause trouble. Some versions do not even contain alloca or
4992 # contain a buggy version. If you still want to use their alloca,
4993 # use ar to extract alloca.o from them instead of compiling alloca.c.
4994 ALLOCA
=alloca.
${ac_objext}
4995 cat >> confdefs.h
<<\EOF
5000 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5001 echo "configure:5002: checking whether alloca needs Cray hooks" >&5
5002 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 cat > conftest.
$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 #if defined(CRAY) && ! defined(CRAY2)
5015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5016 egrep "webecray" >/dev
/null
2>&1; then
5027 echo "$ac_t""$ac_cv_os_cray" 1>&6
5028 if test $ac_cv_os_cray = yes; then
5029 for ac_func
in _getb67 GETB67 getb67
; do
5030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_func" >&5
5032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 cat > conftest.
$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char $ac_func(); below. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5059 if { (eval echo configure
:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5061 eval "ac_cv_func_$ac_func=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.
$ac_ext >&5
5066 eval "ac_cv_func_$ac_func=no"
5071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5073 cat >> confdefs.h
<<EOF
5074 #define CRAY_STACKSEG_END $ac_func
5079 echo "$ac_t""no" 1>&6
5085 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5086 echo "configure:5087: checking stack direction for C alloca" >&5
5087 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 if test "$cross_compiling" = yes; then
5091 ac_cv_c_stack_direction
=0
5093 cat > conftest.
$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 find_stack_direction ()
5098 static char *addr = 0;
5103 return find_stack_direction ();
5106 return (&dummy > addr) ? 1 : -1;
5110 exit (find_stack_direction() < 0);
5113 if { (eval echo configure
:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5115 ac_cv_c_stack_direction
=1
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 ac_cv_c_stack_direction
=-1
5127 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5128 cat >> confdefs.h
<<EOF
5129 #define STACK_DIRECTION $ac_cv_c_stack_direction
5164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5165 echo "configure:5166: checking for $ac_func" >&5
5166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.
$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func(); below. */
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 if { (eval echo configure
:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5195 eval "ac_cv_func_$ac_func=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5200 eval "ac_cv_func_$ac_func=no"
5205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5208 cat >> confdefs.h
<<EOF
5209 #define $ac_tr_func 1
5213 echo "$ac_t""no" 1>&6
5268 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_hdr" >&5
5271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 cat > conftest.
$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure
:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5282 if test -z "$ac_err"; then
5284 eval "ac_cv_header_$ac_safe=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.
$ac_ext >&5
5290 eval "ac_cv_header_$ac_safe=no"
5294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5297 cat >> confdefs.h
<<EOF
5298 #define $ac_tr_hdr 1
5302 echo "$ac_t""no" 1>&6
5306 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5307 echo "configure:5308: checking whether stat file-mode macros are broken" >&5
5308 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 cat > conftest.
$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 #include <sys/types.h>
5315 #include <sys/stat.h>
5317 #if defined(S_ISBLK) && defined(S_IFDIR)
5318 # if S_ISBLK (S_IFDIR)
5323 #if defined(S_ISBLK) && defined(S_IFCHR)
5324 # if S_ISBLK (S_IFCHR)
5329 #if defined(S_ISLNK) && defined(S_IFREG)
5330 # if S_ISLNK (S_IFREG)
5335 #if defined(S_ISSOCK) && defined(S_IFREG)
5336 # if S_ISSOCK (S_IFREG)
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 egrep "You lose" >/dev
/null
2>&1; then
5345 ac_cv_header_stat_broken
=yes
5348 ac_cv_header_stat_broken
=no
5354 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5355 if test $ac_cv_header_stat_broken = yes; then
5356 cat >> confdefs.h
<<\EOF
5357 #define STAT_MACROS_BROKEN 1
5364 echo $ac_n "checking for working const""... $ac_c" 1>&6
5365 echo "configure:5366: checking for working const" >&5
5366 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.
$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5375 /* Ultrix mips cc rejects this. */
5376 typedef int charset[2]; const charset x = {0,0};
5377 /* SunOS 4.1.1 cc rejects this. */
5378 char const *const *ccp;
5380 /* NEC SVR4.0.2 mips cc rejects this. */
5381 struct point {int x, y;};
5382 static struct point const zero = {0,0};
5383 /* AIX XL C 1.02.0.0 rejects this.
5384 It does not let you subtract one const X* pointer from another in an arm
5385 of an if-expression whose if-part is not a constant expression */
5386 const char *g = "string";
5387 ccp = &g + (g ? g-g : 0);
5388 /* HPUX 7.0 cc rejects these. */
5391 ccp = (char const *const *) p;
5392 { /* SCO 3.2v4 cc rejects this. */
5394 char const *s = 0 ? (char *) 0 : (char const *) 0;
5398 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5400 const int *foo = &x[0];
5403 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5404 typedef const int *iptr;
5408 { /* AIX XL C 1.02.0.0 rejects this saying
5409 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5410 struct s { int j; const int *ap[3]; };
5411 struct s *b; b->j = 5;
5413 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5419 if { (eval echo configure
:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 echo "configure: failed program was:" >&5
5424 cat conftest.
$ac_ext >&5
5431 echo "$ac_t""$ac_cv_c_const" 1>&6
5432 if test $ac_cv_c_const = no
; then
5433 cat >> confdefs.h
<<\EOF
5439 echo $ac_n "checking for inline""... $ac_c" 1>&6
5440 echo "configure:5441: checking for inline" >&5
5441 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5445 for ac_kw
in inline __inline__ __inline
; do
5446 cat > conftest.
$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5451 } int $ac_kw foo() {
5454 if { (eval echo configure
:5455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5456 ac_cv_c_inline
=$ac_kw; break
5458 echo "configure: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5466 echo "$ac_t""$ac_cv_c_inline" 1>&6
5467 case "$ac_cv_c_inline" in
5469 no
) cat >> confdefs.h
<<\EOF
5473 *) cat >> confdefs.h
<<EOF
5474 #define inline $ac_cv_c_inline
5479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5480 echo "configure:5481: checking for ANSI C header files" >&5
5481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5482 echo $ac_n "(cached) $ac_c" 1>&6
5484 cat > conftest.
$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5492 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5493 { (eval echo configure
:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5494 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5495 if test -z "$ac_err"; then
5497 ac_cv_header_stdc
=yes
5500 echo "configure: failed program was:" >&5
5501 cat conftest.
$ac_ext >&5
5503 ac_cv_header_stdc
=no
5507 if test $ac_cv_header_stdc = yes; then
5508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5509 cat > conftest.
$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515 egrep "memchr" >/dev
/null
2>&1; then
5519 ac_cv_header_stdc
=no
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat > conftest.
$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 egrep "free" >/dev
/null
2>&1; then
5537 ac_cv_header_stdc
=no
5543 if test $ac_cv_header_stdc = yes; then
5544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5545 if test "$cross_compiling" = yes; then
5548 cat > conftest.
$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5555 int main () { int i; for (i = 0; i < 256; i++)
5556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5560 if { (eval echo configure
:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5564 echo "configure: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5567 ac_cv_header_stdc
=no
5575 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5576 if test $ac_cv_header_stdc = yes; then
5577 cat >> confdefs.h
<<\EOF
5578 #define STDC_HEADERS 1
5583 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5584 echo "configure:5585: checking for size_t" >&5
5585 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.
$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #include <sys/types.h>
5597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5600 ac_cv_type_size_t
=yes
5603 ac_cv_type_size_t
=no
5608 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5609 if test $ac_cv_type_size_t = no
; then
5610 cat >> confdefs.h
<<\EOF
5611 #define size_t unsigned
5616 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5617 echo "configure:5618: checking size of long long" >&5
5618 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 if test "$cross_compiling" = yes; then
5622 ac_cv_sizeof_long_long
=0
5624 cat > conftest.
$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5630 FILE *f=fopen("conftestval", "w");
5632 fprintf(f, "%d\n", sizeof(long long));
5636 if { (eval echo configure
:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5638 ac_cv_sizeof_long_long
=`cat conftestval`
5640 echo "configure: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5643 ac_cv_sizeof_long_long
=0
5649 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5650 cat >> confdefs.h
<<EOF
5651 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5656 if test "$ac_cv_header_linux_joystick_h" = "yes"
5658 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5659 echo "configure:5660: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5660 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.
$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5667 #include <sys/ioctl.h>
5668 #include <linux/joystick.h>
5670 struct js_event blub;
5671 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5672 #error "no 2.2 header"
5679 if { (eval echo configure
:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5681 wine_cv_linux_joystick_22_api
=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 wine_cv_linux_joystick_22_api
=no
5692 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5693 if test "$wine_cv_linux_joystick_22_api" = "yes"
5695 cat >> confdefs.h
<<\EOF
5696 #define HAVE_LINUX_22_JOYSTICK_API 1
5703 if test "$ac_cv_header_sys_vfs_h" = "yes"
5705 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5706 echo "configure:5707: checking "whether sys
/vfs.h defines statfs
"" >&5
5707 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 cat > conftest.
$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5714 #include <sys/types.h>
5715 #ifdef HAVE_SYS_PARAM_H
5716 # include <sys/param.h>
5718 #include <sys/vfs.h>
5724 memset(&stfs,0,sizeof(stfs));
5728 if { (eval echo configure
:5729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5730 wine_cv_sys_vfs_has_statfs
=yes
5732 echo "configure: failed program was:" >&5
5733 cat conftest.
$ac_ext >&5
5735 wine_cv_sys_vfs_has_statfs
=no
5742 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5743 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5745 cat >> confdefs.h
<<\EOF
5746 #define STATFS_DEFINED_BY_SYS_VFS 1
5752 if test "$ac_cv_header_sys_statfs_h" = "yes"
5754 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
5755 echo "configure:5756: checking "whether sys
/statfs.h defines statfs
"" >&5
5756 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.
$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5763 #include <sys/types.h>
5764 #ifdef HAVE_SYS_PARAM_H
5765 # include <sys/param.h>
5767 #include <sys/statfs.h>
5775 if { (eval echo configure
:5776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5777 wine_cv_sys_statfs_has_statfs
=yes
5779 echo "configure: failed program was:" >&5
5780 cat conftest.
$ac_ext >&5
5782 wine_cv_sys_statfs_has_statfs
=no
5789 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5790 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5792 cat >> confdefs.h
<<\EOF
5793 #define STATFS_DEFINED_BY_SYS_STATFS 1
5799 if test "$ac_cv_header_sys_mount_h" = "yes"
5801 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
5802 echo "configure:5803: checking "whether sys
/mount.h defines statfs
"" >&5
5803 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.
$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5810 #include <sys/types.h>
5811 #ifdef HAVE_SYS_PARAM_H
5812 # include <sys/param.h>
5814 #include <sys/mount.h>
5822 if { (eval echo configure
:5823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5824 wine_cv_sys_mount_has_statfs
=yes
5826 echo "configure: failed program was:" >&5
5827 cat conftest.
$ac_ext >&5
5829 wine_cv_sys_mount_has_statfs
=no
5836 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5837 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5839 cat >> confdefs.h
<<\EOF
5840 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5847 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5848 echo "configure:5849: checking "for statfs.f_bfree
"" >&5
5849 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 if test "x$statfs_bfree" = "xno"
5854 wine_cv_statfs_bfree
=no
5856 cat > conftest.
$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5860 #include <sys/types.h>
5861 #ifdef HAVE_SYS_PARAM_H
5862 # include <sys/param.h>
5864 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5865 # include <sys/mount.h>
5867 # ifdef STATFS_DEFINED_BY_SYS_VFS
5868 # include <sys/vfs.h>
5870 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5871 # include <sys/statfs.h>
5884 if { (eval echo configure
:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5886 wine_cv_statfs_bfree
=yes
5888 echo "configure: failed program was:" >&5
5889 cat conftest.
$ac_ext >&5
5891 wine_cv_statfs_bfree
=no
5898 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5899 if test "$wine_cv_statfs_bfree" = "yes"
5901 cat >> confdefs.h
<<\EOF
5902 #define STATFS_HAS_BFREE 1
5907 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5908 echo "configure:5909: checking "for statfs.f_bavail
"" >&5
5909 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 if test "x$statfs_bavail" = "xno"
5914 wine_cv_statfs_bavail
=no
5916 cat > conftest.
$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5920 #include <sys/types.h>
5921 #ifdef HAVE_SYS_PARAM_H
5922 # include <sys/param.h>
5924 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5925 # include <sys/mount.h>
5927 # ifdef STATFS_DEFINED_BY_SYS_VFS
5928 # include <sys/vfs.h>
5930 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5931 # include <sys/statfs.h>
5944 if { (eval echo configure
:5945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5946 wine_cv_statfs_bavail
=yes
5948 echo "configure: failed program was:" >&5
5949 cat conftest.
$ac_ext >&5
5951 wine_cv_statfs_bavail
=no
5958 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5959 if test "$wine_cv_statfs_bavail" = "yes"
5961 cat >> confdefs.h
<<\EOF
5962 #define STATFS_HAS_BAVAIL 1
5968 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5969 echo "configure:5970: checking "for msg_accrights
in struct msghdr
"" >&5
5970 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5973 cat > conftest.
$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5976 #include <sys/types.h>
5977 #include <sys/socket.h>
5979 struct msghdr hdr; hdr.msg_accrights=0
5982 if { (eval echo configure
:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5984 ac_cv_c_msg_accrights
="yes"
5986 echo "configure: failed program was:" >&5
5987 cat conftest.
$ac_ext >&5
5989 ac_cv_c_msg_accrights
="no"
5994 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5995 if test "$ac_cv_c_msg_accrights" = "yes"
5997 cat >> confdefs.h
<<\EOF
5998 #define HAVE_MSGHDR_ACCRIGHTS 1
6004 echo $ac_n "checking "for sun_len
in struct sockaddr_un
"""... $ac_c" 1>&6
6005 echo "configure:6006: checking "for sun_len
in struct sockaddr_un
"" >&5
6006 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6009 cat > conftest.
$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6012 #include <sys/types.h>
6013 #include <sys/socket.h>
6016 static struct sockaddr_un addr; addr.sun_len = 1
6019 if { (eval echo configure
:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6021 ac_cv_c_sun_len
="yes"
6023 echo "configure: failed program was:" >&5
6024 cat conftest.
$ac_ext >&5
6026 ac_cv_c_sun_len
="no"
6031 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6032 if test "$ac_cv_c_sun_len" = "yes"
6034 cat >> confdefs.h
<<\EOF
6035 #define HAVE_SOCKADDR_SUN_LEN 1
6041 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6042 echo "configure:6043: checking "whether we need to define __i386__
"" >&5
6043 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.
$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 egrep "yes" >/dev
/null
2>&1; then
6056 ac_cv_cpp_def_i386
="yes"
6059 ac_cv_cpp_def_i386
="no"
6065 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6066 if test "$ac_cv_cpp_def_i386" = "yes"
6068 CFLAGS
="$CFLAGS -D__i386__"
6069 LINTFLAGS
="$LINTFLAGS -D__i386__"
6073 if test "$GCC" = "yes"
6075 GCC_NO_BUILTIN
="-fno-builtin"
6082 MAKE_RULES
=Make.rules
6085 MAKE_DLL_RULES
=dlls
/Makedll.rules
6089 cat > confcache
<<\EOF
6090 # This file is a shell script that caches the results of configure
6091 # tests run on this system so they can be shared between configure
6092 # scripts and configure runs. It is not useful on other systems.
6093 # If it contains results you don't want to keep, you may remove or edit it.
6095 # By default, configure uses ./config.cache as the cache file,
6096 # creating it if it does not exist already. You can give configure
6097 # the --cache-file=FILE option to use a different cache file; that is
6098 # what configure does when it calls configure scripts in
6099 # subdirectories, so they share the cache.
6100 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6101 # config.status only pays attention to the cache file if you give it the
6102 # --recheck option to rerun configure.
6105 # The following way of writing the cache mishandles newlines in values,
6106 # but we know of no workaround that is simple, portable, and efficient.
6107 # So, don't put newlines in cache variables' values.
6108 # Ultrix sh set writes to stderr and can't be redirected directly,
6109 # and sets the high bit in the cache file unless we assign to the vars.
6111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6113 # `set' does not quote correctly, so add quotes (double-quote substitution
6114 # turns \\\\ into \\, and sed turns \\ into \).
6116 -e "s/'/'\\\\''/g" \
6117 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6120 # `set' quotes correctly as required by POSIX, so do not add quotes.
6121 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6124 if cmp -s $cache_file confcache
; then
6127 if test -w $cache_file; then
6128 echo "updating cache $cache_file"
6129 cat confcache
> $cache_file
6131 echo "not updating unwritable cache $cache_file"
6136 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6138 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6139 # Let make expand exec_prefix.
6140 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6142 # Any assignment to VPATH causes Sun make to only execute
6143 # the first set of double-colon rules, so remove it if not needed.
6144 # If there is a colon in the path, we need to keep it.
6145 if test "x$srcdir" = x.
; then
6146 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6149 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6151 DEFS
=-DHAVE_CONFIG_H
6153 # Without the "./", some shells look in PATH for config.status.
6154 : ${CONFIG_STATUS=./config.status}
6156 echo creating
$CONFIG_STATUS
6157 rm -f $CONFIG_STATUS
6158 cat > $CONFIG_STATUS <<EOF
6160 # Generated automatically by configure.
6161 # Run this file to recreate the current configuration.
6162 # This directory was configured as follows,
6163 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6165 # $0 $ac_configure_args
6167 # Compiler output produced by configure, useful for debugging
6168 # configure, is in ./config.log if it exists.
6170 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6173 case "\$ac_option" in
6174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6175 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6176 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6177 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6178 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6180 -help | --help | --hel | --he | --h)
6181 echo "\$ac_cs_usage"; exit 0 ;;
6182 *) echo "\$ac_cs_usage"; exit 1 ;;
6186 ac_given_srcdir=$srcdir
6187 ac_given_INSTALL="$INSTALL"
6189 trap 'rm -fr `echo "
6197 dlls/advapi32/Makefile
6198 dlls/avifil32/Makefile
6199 dlls/comctl32/Makefile
6200 dlls/commdlg/Makefile
6201 dlls/crtdll/Makefile
6202 dlls/dciman32/Makefile
6204 dlls/dinput/Makefile
6205 dlls/display/Makefile
6206 dlls/dplayx/Makefile
6207 dlls/dsound/Makefile
6210 dlls/imagehlp/Makefile
6212 dlls/lzexpand/Makefile
6216 dlls/msacm32/Makefile
6217 dlls/msnet32/Makefile
6218 dlls/msvideo/Makefile
6220 dlls/odbc32/Makefile
6222 dlls/oleaut32/Makefile
6223 dlls/olecli/Makefile
6224 dlls/oledlg/Makefile
6225 dlls/olepro32/Makefile
6226 dlls/olesvr/Makefile
6228 dlls/rasapi32/Makefile
6229 dlls/setupx/Makefile
6230 dlls/shell32/Makefile
6232 dlls/stress/Makefile
6233 dlls/tapi32/Makefile
6234 dlls/ttydrv/Makefile
6235 dlls/urlmon/Makefile
6237 dlls/version/Makefile
6238 dlls/win32s/Makefile
6239 dlls/win87em/Makefile
6240 dlls/winaspi/Makefile
6241 dlls/windebug/Makefile
6243 dlls/wininet/Makefile
6245 dlls/winmm/joystick/Makefile
6246 dlls/winmm/mcianim/Makefile
6247 dlls/winmm/mciavi/Makefile
6248 dlls/winmm/mcicda/Makefile
6249 dlls/winmm/mciseq/Makefile
6250 dlls/winmm/mciwave/Makefile
6251 dlls/winmm/midimap/Makefile
6252 dlls/winmm/wavemap/Makefile
6253 dlls/winmm/wineoss/Makefile
6254 dlls/winsock/Makefile
6255 dlls/winspool/Makefile
6256 dlls/ttydrv/Makefile
6257 dlls/x11drv/Makefile
6258 documentation/Makefile
6259 documentation/wine.conf.man
6260 documentation/wine.man
6263 graphics/enhmetafiledrv/Makefile
6264 graphics/metafiledrv/Makefile
6265 graphics/psdrv/Makefile
6266 graphics/ttydrv/Makefile
6267 graphics/win16drv/Makefile
6268 graphics/x11drv/Makefile
6283 programs/clock/Makefile
6284 programs/cmdlgtst/Makefile
6285 programs/control/Makefile
6286 programs/avitools/Makefile
6287 programs/osversioncheck/Makefile
6288 programs/notepad/Makefile
6289 programs/progman/Makefile
6290 programs/regtest/Makefile
6291 programs/regapi/Makefile
6292 programs/view/Makefile
6293 programs/wcmd/Makefile
6294 programs/winemine/Makefile
6295 programs/winhelp/Makefile
6296 programs/winver/Makefile
6302 tools/cvdump/Makefile
6307 windows/ttydrv/Makefile
6308 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6310 cat >> $CONFIG_STATUS <<EOF
6312 # Protect against being on the right side of a sed subst in config.status.
6313 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6314 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6318 s%@CFLAGS@%$CFLAGS%g
6319 s%@CPPFLAGS@%$CPPFLAGS%g
6320 s%@CXXFLAGS@%$CXXFLAGS%g
6321 s%@FFLAGS@%$FFLAGS%g
6323 s%@LDFLAGS@%$LDFLAGS%g
6325 s%@exec_prefix@%$exec_prefix%g
6326 s%@prefix@%$prefix%g
6327 s%@program_transform_name@%$program_transform_name%g
6328 s%@bindir@%$bindir%g
6329 s%@sbindir@%$sbindir%g
6330 s%@libexecdir@%$libexecdir%g
6331 s%@datadir@%$datadir%g
6332 s%@sysconfdir@%$sysconfdir%g
6333 s%@sharedstatedir@%$sharedstatedir%g
6334 s%@localstatedir@%$localstatedir%g
6335 s%@libdir@%$libdir%g
6336 s%@includedir@%$includedir%g
6337 s%@oldincludedir@%$oldincludedir%g
6338 s%@infodir@%$infodir%g
6339 s%@mandir@%$mandir%g
6340 s%@PROGEXT@%$PROGEXT%g
6341 s%@EMU_TARGET@%$EMU_TARGET%g
6342 s%@OPTIONS@%$OPTIONS%g
6343 s%@SET_MAKE@%$SET_MAKE%g
6346 s%@X_CFLAGS@%$X_CFLAGS%g
6347 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6348 s%@X_LIBS@%$X_LIBS%g
6349 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6352 s%@LEXLIB@%$LEXLIB%g
6353 s%@RANLIB@%$RANLIB%g
6354 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6355 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6356 s%@INSTALL_DATA@%$INSTALL_DATA%g
6359 s%@LDCONFIG@%$LDCONFIG%g
6361 s%@LINTFLAGS@%$LINTFLAGS%g
6363 s%@X_DLLS@%$X_DLLS%g
6364 s%@XFILES@%$XFILES%g
6365 s%@DGA_SRCS@%$DGA_SRCS%g
6366 s%@MESA_SRCS@%$MESA_SRCS%g
6367 s%@DLL_LINK@%$DLL_LINK%g
6368 s%@BUILDFLAGS@%$BUILDFLAGS%g
6369 s%@DLLFLAGS@%$DLLFLAGS%g
6370 s%@LDSHARED@%$LDSHARED%g
6371 s%@LIBEXT@%$LIBEXT%g
6372 s%@ALLOCA@%$ALLOCA%g
6373 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6374 /@MAKE_RULES@/r $MAKE_RULES
6376 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6377 s%@MAKE_DLL_RULES@%%g
6382 cat >> $CONFIG_STATUS <<\EOF
6384 # Split the substitutions into bite-sized pieces for seds with
6385 # small command number limits, like on Digital OSF/1 and HP-UX.
6386 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6387 ac_file
=1 # Number of current file.
6388 ac_beg
=1 # First line for current file.
6389 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6392 while $ac_more_lines; do
6393 if test $ac_beg -gt 1; then
6394 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6396 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6398 if test ! -s conftest.s
$ac_file; then
6400 rm -f conftest.s
$ac_file
6402 if test -z "$ac_sed_cmds"; then
6403 ac_sed_cmds
="sed -f conftest.s$ac_file"
6405 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6407 ac_file
=`expr $ac_file + 1`
6409 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6412 if test -z "$ac_sed_cmds"; then
6417 cat >> $CONFIG_STATUS <<EOF
6419 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6426 dlls/advapi32/Makefile
6427 dlls/avifil32/Makefile
6428 dlls/comctl32/Makefile
6429 dlls/commdlg/Makefile
6430 dlls/crtdll/Makefile
6431 dlls/dciman32/Makefile
6433 dlls/dinput/Makefile
6434 dlls/display/Makefile
6435 dlls/dplayx/Makefile
6436 dlls/dsound/Makefile
6439 dlls/imagehlp/Makefile
6441 dlls/lzexpand/Makefile
6445 dlls/msacm32/Makefile
6446 dlls/msnet32/Makefile
6447 dlls/msvideo/Makefile
6449 dlls/odbc32/Makefile
6451 dlls/oleaut32/Makefile
6452 dlls/olecli/Makefile
6453 dlls/oledlg/Makefile
6454 dlls/olepro32/Makefile
6455 dlls/olesvr/Makefile
6457 dlls/rasapi32/Makefile
6458 dlls/setupx/Makefile
6459 dlls/shell32/Makefile
6461 dlls/stress/Makefile
6462 dlls/tapi32/Makefile
6463 dlls/ttydrv/Makefile
6464 dlls/urlmon/Makefile
6466 dlls/version/Makefile
6467 dlls/win32s/Makefile
6468 dlls/win87em/Makefile
6469 dlls/winaspi/Makefile
6470 dlls/windebug/Makefile
6472 dlls/wininet/Makefile
6474 dlls/winmm/joystick/Makefile
6475 dlls/winmm/mcianim/Makefile
6476 dlls/winmm/mciavi/Makefile
6477 dlls/winmm/mcicda/Makefile
6478 dlls/winmm/mciseq/Makefile
6479 dlls/winmm/mciwave/Makefile
6480 dlls/winmm/midimap/Makefile
6481 dlls/winmm/wavemap/Makefile
6482 dlls/winmm/wineoss/Makefile
6483 dlls/winsock/Makefile
6484 dlls/winspool/Makefile
6485 dlls/ttydrv/Makefile
6486 dlls/x11drv/Makefile
6487 documentation/Makefile
6488 documentation/wine.conf.man
6489 documentation/wine.man
6492 graphics/enhmetafiledrv/Makefile
6493 graphics/metafiledrv/Makefile
6494 graphics/psdrv/Makefile
6495 graphics/ttydrv/Makefile
6496 graphics/win16drv/Makefile
6497 graphics/x11drv/Makefile
6512 programs/clock/Makefile
6513 programs/cmdlgtst/Makefile
6514 programs/control/Makefile
6515 programs/avitools/Makefile
6516 programs/osversioncheck/Makefile
6517 programs/notepad/Makefile
6518 programs/progman/Makefile
6519 programs/regtest/Makefile
6520 programs/regapi/Makefile
6521 programs/view/Makefile
6522 programs/wcmd/Makefile
6523 programs/winemine/Makefile
6524 programs/winhelp/Makefile
6525 programs/winver/Makefile
6531 tools/cvdump/Makefile
6536 windows/ttydrv/Makefile
6537 windows/x11drv/Makefile "}
6539 cat >> $CONFIG_STATUS <<\EOF
6540 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6543 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6544 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6545 *) ac_file_in
="${ac_file}.in" ;;
6548 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6550 # Remove last slash and all that follows it. Not all systems have dirname.
6551 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6553 # The file is in a subdirectory.
6554 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6555 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6556 # A "../" for each directory in $ac_dir_suffix.
6557 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6559 ac_dir_suffix
= ac_dots
=
6562 case "$ac_given_srcdir" in
6564 if test -z "$ac_dots"; then top_srcdir
=.
6565 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6566 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6568 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6569 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6572 case "$ac_given_INSTALL" in
6573 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6574 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6577 echo creating
"$ac_file"
6579 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6581 *Makefile
*) ac_comsub
="1i\\
6582 # $configure_input" ;;
6586 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6588 s%@configure_input@%$configure_input%g
6589 s%@srcdir@%$srcdir%g
6590 s%@top_srcdir@%$top_srcdir%g
6591 s%@INSTALL@%$INSTALL%g
6592 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6599 # ac_d sets the value in "#define NAME VALUE" lines.
6600 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6601 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6604 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6605 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6606 ac_uB
='\([ ]\)%\1#\2define\3'
6609 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6610 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6611 ac_eB
='$%\1#\2define\3'
6615 if test "${CONFIG_HEADERS+set}" != set; then
6617 cat >> $CONFIG_STATUS <<EOF
6618 CONFIG_HEADERS="include/config.h"
6620 cat >> $CONFIG_STATUS <<\EOF
6622 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6623 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6625 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6626 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6627 *) ac_file_in
="${ac_file}.in" ;;
6630 echo creating
$ac_file
6632 rm -f conftest.frag conftest.
in conftest.out
6633 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6634 cat $ac_file_inputs > conftest.
in
6638 # Transform confdefs.h into a sed script conftest.vals that substitutes
6639 # the proper values into config.h.in to produce config.h. And first:
6640 # Protect against being on the right side of a sed subst in config.status.
6641 # Protect against being in an unquoted here document in config.status.
6643 cat > conftest.hdr
<<\EOF
6646 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6650 sed -n -f conftest.hdr confdefs.h > conftest.vals
6653 # This sed command replaces #undef with comments. This is necessary, for
6654 # example, in the case of _POSIX_SOURCE, which is predefined and required
6655 # on some systems where configure will not decide to define it.
6656 cat >> conftest.vals <<\EOF
6657 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6660 # Break up conftest.vals because some shells have a limit on
6661 # the size of here documents, and old seds have small limits too.
6666 ac_lines=`grep -c . conftest.vals
`
6667 # grep -c gives empty output for an empty file on some AIX systems.
6668 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6669 # Write a limited-size here document to conftest.frag.
6670 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6671 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6673 sed -f conftest.frag conftest.in > conftest.out
6675 mv conftest.out conftest.in
6677 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6679 mv conftest.tail conftest.vals
6683 cat >> $CONFIG_STATUS <<\EOF
6684 rm -f conftest.frag conftest.h
6685 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6686 cat conftest.in >> conftest.h
6688 if cmp -s $ac_file conftest.h 2>/dev/null; then
6689 echo "$ac_file is unchanged"
6692 # Remove last slash and all that follows it. Not all systems have dirname.
6693 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6694 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6695 # The file is in a subdirectory.
6696 test ! -d "$ac_dir" && mkdir "$ac_dir"
6699 mv conftest.h $ac_file
6704 cat >> $CONFIG_STATUS <<EOF
6708 cat >> $CONFIG_STATUS <<\EOF
6711 dlls/ddraw/d3ddevice \
6712 dlls/ddraw/dclipper \
6714 dlls/ddraw/direct3d \
6715 dlls/ddraw/dpalette \
6716 dlls/ddraw/dsurface \
6718 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6722 chmod +x $CONFIG_STATUS
6723 rm -fr confdefs* $ac_clean_files
6724 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6727 if test "$have_x" = "no"
6730 echo "*** Warning: X development files not found. Wine will be built without"
6731 echo "*** X support, which currently does not work, and would probably not be"
6732 echo "*** what you want anyway. You will need to install devel packages of"
6733 echo "*** Xlib/Xfree86 and Xpm at the very least."
6734 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6737 echo "*** Warning: Xpm development files not found. Wine will be built without"
6738 echo "*** Xpm support, which currently does not work. You will need to install"
6739 echo "*** devel packages of Xpm."
6742 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6745 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6746 echo "*** terminal resize support. Consider upgrading ncurses."
6749 if test "$wine_cv_libc_reentrant" = "no"
6752 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6753 echo "*** thread support. Consider upgrading libc to a more recent"
6754 echo "*** reentrant version of libc."
6757 if test "$wine_cv_mesa_version_OK" = "no"
6760 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6761 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6764 if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "normal"
6767 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6768 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6769 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6770 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6773 if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "yes"
6776 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6777 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6778 echo "*** support before reporting bugs."
6783 echo "Configure finished. Do 'make depend && make' to compile Wine."