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-dll build static libraries instead of DLLs"
18 --disable-debug compile out all debugging messages"
20 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
22 --disable-trace compile out TRACE messages"
24 --without-curses do not use curses"
26 --without-reentrant-x compile for use with non-reentrant X libraries"
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 SHELL
=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest
* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file
=controls
/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted
=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted
=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE
; then
497 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file
in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp
='$CPP $CPPFLAGS'
520 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling
=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
535 ac_n
= ac_c
='\c' ac_t
=
541 for ac_dir
in tools
$srcdir/tools
; do
542 if test -f $ac_dir/install-sh
; then
544 ac_install_sh
="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh
; then
548 ac_install_sh
="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess
=$ac_aux_dir/config.guess
556 ac_config_sub
=$ac_aux_dir/config.sub
557 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
561 LIBEXT
=so
# library type .so or .a
562 TRACE_MSGS
=yes # the TRACE() macro
563 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
567 # Check whether --enable-dll or --disable-dll was given.
568 if test "${enable_dll+set}" = set; then
569 enableval
="$enable_dll"
570 if test "$enableval" = "no"; then LIBEXT
="a"; fi
574 # Check whether --enable-debug or --disable-debug was given.
575 if test "${enable_debug+set}" = set; then
576 enableval
="$enable_debug"
577 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
581 # Check whether --enable-opengl or --disable-opengl was given.
582 if test "${enable_opengl+set}" = set; then
583 enableval
="$enable_opengl"
584 if test "$enableval" = "no"; then OPENGL
="no"; elif test "$enableval" = "yes"; then OPENGL
="yes"; fi
588 # Check whether --enable-trace or --disable-trace was given.
589 if test "${enable_trace+set}" = set; then
590 enableval
="$enable_trace"
591 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
595 # Check whether --with-curses or --without-curses was given.
596 if test "${with_curses+set}" = set; then
597 withval
="$with_curses"
598 if test "$withval" = "no"; then CURSES
="no"; fi
602 # Check whether --with-reentrant-x or --without-reentrant-x was given.
603 if test "${with_reentrant_x+set}" = set; then
604 withval
="$with_reentrant_x"
611 if test "$DEBUG_MSGS" = "no"
613 cat >> confdefs.h
<<\EOF
614 #define NO_DEBUG_MSGS 1
617 cat >> confdefs.h
<<\EOF
618 #define NO_TRACE_MSGS 1
622 if test "$TRACE_MSGS" = "no"
624 cat >> confdefs.h
<<\EOF
625 #define NO_TRACE_MSGS 1
632 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
633 echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5
634 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
635 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 cat > conftestmake
<<\EOF
640 @
echo 'ac_maketemp="${MAKE}"'
642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
643 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
644 if test -n "$ac_maketemp"; then
645 eval ac_cv_prog_make_
${ac_make}_set
=yes
647 eval ac_cv_prog_make_
${ac_make}_set
=no
651 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
652 echo "$ac_t""yes" 1>&6
655 echo "$ac_t""no" 1>&6
656 SET_MAKE
="MAKE=${MAKE-make}"
659 # Extract the first word of "gcc", so it can be a program name with args.
660 set dummy gcc
; ac_word
=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 echo "configure:663: checking for $ac_word" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
666 if test -n "$CC"; then
667 ac_cv_prog_CC
="$CC" # Let the user override the test.
669 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
671 for ac_dir
in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir
=.
673 if test -f $ac_dir/$ac_word; then
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690 set dummy cc
; ac_word
=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC
="$CC" # Let the user override the test.
699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
702 for ac_dir
in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir
=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
714 if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy
$ac_cv_prog_CC
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
723 set dummy
"$ac_dir/$ac_word" "$@"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
740 # Extract the first word of "cl", so it can be a program name with args.
741 set dummy cl
; ac_word
=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 if test -n "$CC"; then
748 ac_cv_prog_CC
="$CC" # Let the user override the test.
750 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
752 for ac_dir
in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir
=.
754 if test -f $ac_dir/$ac_word; then
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
766 echo "$ac_t""no" 1>&6
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779 ac_cpp
='$CPP $CPPFLAGS'
780 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782 cross_compiling
=$ac_cv_prog_cc_cross
784 cat > conftest.
$ac_ext << EOF
786 #line 787 "configure"
787 #include "confdefs.h"
791 if { (eval echo configure
:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
792 ac_cv_prog_cc_works
=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (.
/conftest
; exit) 2>/dev
/null
; then
795 ac_cv_prog_cc_cross
=no
797 ac_cv_prog_cc_cross
=yes
800 echo "configure: failed program was:" >&5
801 cat conftest.
$ac_ext >&5
802 ac_cv_prog_cc_works
=no
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp
='$CPP $CPPFLAGS'
808 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling
=$ac_cv_prog_cc_cross
812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813 if test $ac_cv_prog_cc_works = no
; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819 cross_compiling
=$ac_cv_prog_cc_cross
821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822 echo "configure:823: checking whether we are using GNU C" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.c
<<EOF
831 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
840 if test $ac_cv_prog_gcc = yes; then
846 ac_test_CFLAGS
="${CFLAGS+set}"
847 ac_save_CFLAGS
="$CFLAGS"
849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 echo 'void f(){}' > conftest.c
855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865 if test "$ac_test_CFLAGS" = set; then
866 CFLAGS
="$ac_save_CFLAGS"
867 elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
874 if test "$GCC" = yes; then
881 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
882 echo "configure:883: checking how to run the C preprocessor" >&5
883 # On Suns, sometimes $CPP names a directory.
884 if test -n "$CPP" && test -d "$CPP"; then
887 if test -z "$CPP"; then
888 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
891 # This must be in double quotes, not single quotes, because CPP may get
892 # substituted into the Makefile and "${CC-cc}" will confuse make.
894 # On the NeXT, cc -E runs the code through the compiler's parser,
895 # not just through cpp.
896 cat > conftest.
$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
902 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure
:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
909 echo "configure: failed program was:" >&5
910 cat conftest.
$ac_ext >&5
912 CPP
="${CC-cc} -E -traditional-cpp"
913 cat > conftest.
$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure
:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
926 echo "configure: failed program was:" >&5
927 cat conftest.
$ac_ext >&5
929 CPP
="${CC-cc} -nologo -E"
930 cat > conftest.
$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
953 ac_cv_prog_CPP
="$CPP"
955 CPP
="$ac_cv_prog_CPP"
957 ac_cv_prog_CPP
="$CPP"
959 echo "$ac_t""$CPP" 1>&6
961 # If we find X, set shell vars x_includes and x_libraries to the
962 # paths, otherwise set no_x=yes.
963 # Uses ac_ vars as temps to allow command line to override cache and checks.
964 # --without-x overrides everything else, but does not touch the cache.
965 echo $ac_n "checking for X""... $ac_c" 1>&6
966 echo "configure:967: checking for X" >&5
968 # Check whether --with-x or --without-x was given.
969 if test "${with_x+set}" = set; then
974 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
975 if test "x$with_x" = xno
; then
976 # The user explicitly disabled X.
979 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
980 # Both variables are already set.
983 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 # One or both of the vars are not set, and there is no cached value.
987 ac_x_includes
=NO ac_x_libraries
=NO
989 if mkdir conftestdir
; then
991 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
992 cat > Imakefile
<<'EOF'
994 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
996 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
999 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1000 for ac_extension
in a so sl
; do
1001 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1002 test -f $ac_im_libdir/libX11.
$ac_extension; then
1003 ac_im_usrlibdir
=$ac_im_libdir; break
1006 # Screen out bogus values from the imake configuration. They are
1007 # bogus both because they are the default anyway, and because
1008 # using them would break gcc on systems where it needs fixed includes.
1009 case "$ac_im_incroot" in
1011 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1013 case "$ac_im_usrlibdir" in
1015 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1022 if test "$ac_x_includes" = NO
; then
1023 # Guess where to find include files, by looking for this one X11 .h file.
1024 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1026 # First, try using that file with no special directory specified.
1027 cat > conftest.
$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <$x_direct_test_include>
1032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure
:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1037 # We can compile using X headers with no special include directory.
1041 echo "configure: failed program was:" >&5
1042 cat conftest.
$ac_ext >&5
1044 # Look for the header file in a standard set of common directories.
1045 # Check X11 before X11Rn because it is often a symlink to the current release.
1048 /usr
/X11R
6/include \
1049 /usr
/X11R
5/include \
1050 /usr
/X11R
4/include \
1053 /usr
/include
/X11R6 \
1054 /usr
/include
/X11R5 \
1055 /usr
/include
/X11R4 \
1057 /usr
/local
/X11
/include \
1058 /usr
/local
/X11R
6/include \
1059 /usr
/local
/X11R
5/include \
1060 /usr
/local
/X11R
4/include \
1062 /usr
/local
/include
/X11 \
1063 /usr
/local
/include
/X11R6 \
1064 /usr
/local
/include
/X11R5 \
1065 /usr
/local
/include
/X11R4 \
1069 /usr
/XFree86
/include
/X11 \
1072 /usr
/local
/include \
1073 /usr
/unsupported
/include \
1074 /usr
/athena
/include \
1075 /usr
/local
/x11r
5/include \
1076 /usr
/lpp
/Xamples
/include \
1078 /usr
/openwin
/include \
1079 /usr
/openwin
/share
/include \
1082 if test -r "$ac_dir/$x_direct_test_include"; then
1083 ac_x_includes
=$ac_dir
1089 fi # $ac_x_includes = NO
1091 if test "$ac_x_libraries" = NO
; then
1092 # Check for the libraries.
1094 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1095 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1097 # See if we find them without any special options.
1098 # Don't add to $LIBS permanently.
1099 ac_save_LIBS
="$LIBS"
1100 LIBS
="-l$x_direct_test_library $LIBS"
1101 cat > conftest.
$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1106 ${x_direct_test_function}()
1109 if { (eval echo configure
:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1111 LIBS
="$ac_save_LIBS"
1112 # We can link X programs with no special library path.
1115 echo "configure: failed program was:" >&5
1116 cat conftest.
$ac_ext >&5
1118 LIBS
="$ac_save_LIBS"
1119 # First see if replacing the include by lib works.
1120 # Check X11 before X11Rn because it is often a symlink to the current release.
1121 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1132 /usr
/local
/X11
/lib \
1133 /usr
/local
/X11R
6/lib \
1134 /usr
/local
/X11R
5/lib \
1135 /usr
/local
/X11R
4/lib \
1137 /usr
/local
/lib
/X11 \
1138 /usr
/local
/lib
/X11R6 \
1139 /usr
/local
/lib
/X11R5 \
1140 /usr
/local
/lib
/X11R4 \
1144 /usr
/XFree86
/lib
/X11 \
1148 /usr
/unsupported
/lib \
1150 /usr
/local
/x11r
5/lib \
1151 /usr
/lpp
/Xamples
/lib \
1155 /usr
/openwin
/share
/lib \
1158 for ac_extension
in a so sl
; do
1159 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1160 ac_x_libraries
=$ac_dir
1167 fi # $ac_x_libraries = NO
1169 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1170 # Didn't find X anywhere. Cache the known absence of X.
1171 ac_cv_have_x
="have_x=no"
1173 # Record where we found X for the cache.
1174 ac_cv_have_x
="have_x=yes \
1175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1179 eval "$ac_cv_have_x"
1182 if test "$have_x" != yes; then
1183 echo "$ac_t""$have_x" 1>&6
1186 # If each of the values was on the command line, it overrides each guess.
1187 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1188 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1189 # Update the cache value to reflect the command line values.
1190 ac_cv_have_x
="have_x=yes \
1191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1195 if test "$no_x" = yes; then
1196 # Not all programs may use this symbol, but it does not hurt to define it.
1197 cat >> confdefs.h
<<\EOF
1198 #define X_DISPLAY_MISSING 1
1201 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1203 if test -n "$x_includes"; then
1204 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1207 # It would also be nice to do this for all -L options, not just this one.
1208 if test -n "$x_libraries"; then
1209 X_LIBS
="$X_LIBS -L$x_libraries"
1210 # For Solaris; some versions of Sun CC require a space after -R and
1211 # others require no space. Words are not sufficient . . . .
1212 case "`(uname -sr) 2>/dev/null`" in
1214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether -R must be followed by a space" >&5
1216 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1217 cat > conftest.
$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1225 if { (eval echo configure
:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.
$ac_ext >&5
1235 if test $ac_R_nospace = yes; then
1236 echo "$ac_t""no" 1>&6
1237 X_LIBS
="$X_LIBS -R$x_libraries"
1239 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1248 if { (eval echo configure
:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1252 echo "configure: failed program was:" >&5
1253 cat conftest.
$ac_ext >&5
1258 if test $ac_R_space = yes; then
1259 echo "$ac_t""yes" 1>&6
1260 X_LIBS
="$X_LIBS -R $x_libraries"
1262 echo "$ac_t""neither works" 1>&6
1265 LIBS
="$ac_xsave_LIBS"
1269 # Check for system-dependent libraries X programs must link with.
1270 # Do this before checking for the system-independent R6 libraries
1271 # (-lICE), since we may need -lsocket or whatever for X linking.
1273 if test "$ISC" = yes; then
1274 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1277 # libraries were built with DECnet support. And karl@cs.umb.edu says
1278 # the Alpha needs dnet_stub (dnet does not exist).
1279 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1280 echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5
1281 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS
="$LIBS"
1287 cat > conftest.
$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure
:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.
$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS
="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1316 echo "$ac_t""no" 1>&6
1319 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1321 echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5
1322 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 ac_save_LIBS
="$LIBS"
1327 LIBS
="-ldnet_stub $LIBS"
1328 cat > conftest.
$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1340 if { (eval echo configure
:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1344 echo "configure: failed program was:" >&5
1345 cat conftest.
$ac_ext >&5
1347 eval "ac_cv_lib_$ac_lib_var=no"
1350 LIBS
="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1357 echo "$ac_t""no" 1>&6
1362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1363 # to get the SysV transport functions.
1364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1366 # The nsl library prevents programs from opening the X display
1367 # on Irix 5.2, according to dickey@clark.net.
1368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1369 echo "configure:1370: checking for gethostbyname" >&5
1370 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* System header to define __stub macros and hopefully few prototypes,
1377 which can conflict with char gethostbyname(); below. */
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382 char gethostbyname();
1386 /* The GNU C library defines this for functions which it implements
1387 to always fail with ENOSYS. Some functions are actually named
1388 something starting with __ and the normal name is an alias. */
1389 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1397 if { (eval echo configure
:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1399 eval "ac_cv_func_gethostbyname=yes"
1401 echo "configure: failed program was:" >&5
1402 cat conftest.
$ac_ext >&5
1404 eval "ac_cv_func_gethostbyname=no"
1409 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1413 echo "$ac_t""no" 1>&6
1416 if test $ac_cv_func_gethostbyname = no
; then
1417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1418 echo "configure:1419: checking for gethostbyname in -lnsl" >&5
1419 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 ac_save_LIBS
="$LIBS"
1425 cat > conftest.
$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char gethostbyname();
1437 if { (eval echo configure
:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1441 echo "configure: failed program was:" >&5
1442 cat conftest.
$ac_ext >&5
1444 eval "ac_cv_lib_$ac_lib_var=no"
1447 LIBS
="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1454 echo "$ac_t""no" 1>&6
1459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1460 # socket/setsockopt and other routines are undefined under SCO ODT
1461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1462 # on later versions), says simon@lia.di.epfl.ch: it contains
1463 # gethostby* variants that don't use the nameserver (or something).
1464 # -lsocket must be given before -lnsl if both are needed.
1465 # We assume that if connect needs -lnsl, so does gethostbyname.
1466 echo $ac_n "checking for connect""... $ac_c" 1>&6
1467 echo "configure:1468: checking for connect" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.
$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char connect(); below. */
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_connect) || defined (__stub___connect)
1495 if { (eval echo configure
:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1497 eval "ac_cv_func_connect=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1502 eval "ac_cv_func_connect=no"
1507 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1511 echo "$ac_t""no" 1>&6
1514 if test $ac_cv_func_connect = no
; then
1515 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1516 echo "configure:1517: checking for connect in -lsocket" >&5
1517 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_save_LIBS
="$LIBS"
1522 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1523 cat > conftest.
$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1542 eval "ac_cv_lib_$ac_lib_var=no"
1545 LIBS
="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1552 echo "$ac_t""no" 1>&6
1557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1558 echo $ac_n "checking for remove""... $ac_c" 1>&6
1559 echo "configure:1560: checking for remove" >&5
1560 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char remove(); below. */
1569 /* Override any gcc2 internal prototype to avoid an error. */
1570 /* We use char because int might match the return type of a gcc2
1571 builtin and then its argument prototype would still apply. */
1576 /* The GNU C library defines this for functions which it implements
1577 to always fail with ENOSYS. Some functions are actually named
1578 something starting with __ and the normal name is an alias. */
1579 #if defined (__stub_remove) || defined (__stub___remove)
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 eval "ac_cv_func_remove=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 eval "ac_cv_func_remove=no"
1599 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1603 echo "$ac_t""no" 1>&6
1606 if test $ac_cv_func_remove = no
; then
1607 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1608 echo "configure:1609: checking for remove in -lposix" >&5
1609 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 ac_save_LIBS
="$LIBS"
1614 LIBS
="-lposix $LIBS"
1615 cat > conftest.
$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1627 if { (eval echo configure
:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1634 eval "ac_cv_lib_$ac_lib_var=no"
1637 LIBS
="$ac_save_LIBS"
1640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1644 echo "$ac_t""no" 1>&6
1649 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1650 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1651 echo "configure:1652: checking for shmat" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char shmat(); below. */
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_shmat) || defined (__stub___shmat)
1679 if { (eval echo configure
:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1681 eval "ac_cv_func_shmat=yes"
1683 echo "configure: failed program was:" >&5
1684 cat conftest.
$ac_ext >&5
1686 eval "ac_cv_func_shmat=no"
1691 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1695 echo "$ac_t""no" 1>&6
1698 if test $ac_cv_func_shmat = no
; then
1699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1700 echo "configure:1701: checking for shmat in -lipc" >&5
1701 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 ac_save_LIBS
="$LIBS"
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1719 if { (eval echo configure
:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 eval "ac_cv_lib_$ac_lib_var=no"
1729 LIBS
="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1736 echo "$ac_t""no" 1>&6
1742 # Check for libraries that X11R6 Xt/Xaw programs need.
1743 ac_save_LDFLAGS
="$LDFLAGS"
1744 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1745 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1746 # check for ICE first), but we must link in the order -lSM -lICE or
1747 # we get undefined symbols. So assume we have SM if we have ICE.
1748 # These have to be linked with before -lX11, unlike the other
1749 # libraries we check for below, so use a different variable.
1750 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1751 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1752 echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5
1753 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS
="$LIBS"
1758 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765 char IceConnectionNumber();
1768 IceConnectionNumber()
1771 if { (eval echo configure
:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1778 eval "ac_cv_lib_$ac_lib_var=no"
1781 LIBS
="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1788 echo "$ac_t""no" 1>&6
1791 LDFLAGS
="$ac_save_LDFLAGS"
1795 for ac_prog
in 'bison -y' byacc
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy
$ac_prog; ac_word
=$2
1799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_word" >&5
1801 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 if test -n "$YACC"; then
1805 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1807 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1809 for ac_dir
in $ac_dummy; do
1810 test -z "$ac_dir" && ac_dir
=.
1811 if test -f $ac_dir/$ac_word; then
1812 ac_cv_prog_YACC
="$ac_prog"
1819 YACC
="$ac_cv_prog_YACC"
1820 if test -n "$YACC"; then
1821 echo "$ac_t""$YACC" 1>&6
1823 echo "$ac_t""no" 1>&6
1826 test -n "$YACC" && break
1828 test -n "$YACC" || YACC
="yacc"
1830 # Extract the first word of "flex", so it can be a program name with args.
1831 set dummy flex
; ac_word
=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 if test -n "$LEX"; then
1838 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1840 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1842 for ac_dir
in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir
=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_LEX
="flex"
1850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1853 LEX
="$ac_cv_prog_LEX"
1854 if test -n "$LEX"; then
1855 echo "$ac_t""$LEX" 1>&6
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$LEXLIB"
1866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1867 echo "configure:1868: checking for yywrap in -l$ac_lib" >&5
1868 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 ac_save_LIBS
="$LIBS"
1873 LIBS
="-l$ac_lib $LIBS"
1874 cat > conftest.
$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1886 if { (eval echo configure
:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.
$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS
="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1903 echo "$ac_t""no" 1>&6
1908 for ac_prog
in $LEX flex
lex
1910 # Extract the first word of "$ac_prog", so it can be a program name with args.
1911 set dummy
$ac_prog; ac_word
=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1914 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 if test -n "$XLEX"; then
1918 ac_cv_prog_XLEX
="$XLEX" # Let the user override the test.
1920 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1922 for ac_dir
in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir
=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_prog_XLEX
="$ac_prog"
1932 XLEX
="$ac_cv_prog_XLEX"
1933 if test -n "$XLEX"; then
1934 echo "$ac_t""$XLEX" 1>&6
1936 echo "$ac_t""no" 1>&6
1939 test -n "$XLEX" && break
1941 test -n "$XLEX" || XLEX
="none"
1943 if test "$XLEX" = "none"
1945 echo "*** Error: No suitable lex found. ***"
1946 echo " Please install the 'flex' package."
1949 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1950 echo "configure:1951: checking lex output file root" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 # The minimal lex program is just a single line: %%. But some broken lexes
1955 # (Solaris, I think it was) want two %% lines, so accommodate them.
1958 if test -f lex.yy.c
; then
1959 ac_cv_prog_lex_root
=lex.yy
1960 elif test -f lexyy.c
; then
1961 ac_cv_prog_lex_root
=lexyy
1963 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1967 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1968 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
1970 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether yytext is a pointer" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 # POSIX says lex can declare yytext either as a pointer or an array; the
1976 # default is implementation-dependent. Figure out which it is, since
1977 # not all implementations provide the %pointer and %array declarations.
1978 ac_cv_prog_lex_yytext_pointer
=no
1979 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1980 ac_save_LIBS
="$LIBS"
1981 LIBS
="$LIBS $LEXLIB"
1982 cat > conftest.
$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 `cat $LEX_OUTPUT_ROOT.c`
1990 if { (eval echo configure
:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1992 ac_cv_prog_lex_yytext_pointer
=yes
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1998 LIBS
="$ac_save_LIBS"
1999 rm -f "${LEX_OUTPUT_ROOT}.c"
2003 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2004 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2005 cat >> confdefs.h
<<\EOF
2006 #define YYTEXT_POINTER 1
2011 # Extract the first word of "ranlib", so it can be a program name with args.
2012 set dummy ranlib
; ac_word
=$2
2013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2014 echo "configure:2015: checking for $ac_word" >&5
2015 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 if test -n "$RANLIB"; then
2019 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2021 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2023 for ac_dir
in $ac_dummy; do
2024 test -z "$ac_dir" && ac_dir
=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_RANLIB
="ranlib"
2031 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2034 RANLIB
="$ac_cv_prog_RANLIB"
2035 if test -n "$RANLIB"; then
2036 echo "$ac_t""$RANLIB" 1>&6
2038 echo "$ac_t""no" 1>&6
2041 # Find a good install program. We prefer a C program (faster),
2042 # so one script is as good as another. But avoid the broken or
2043 # incompatible versions:
2044 # SysV /etc/install, /usr/sbin/install
2045 # SunOS /usr/etc/install
2046 # IRIX /sbin/install
2048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051 # ./install, which can be erroneously created by make from ./install.sh.
2052 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2053 echo "configure:2054: checking for a BSD compatible install" >&5
2054 if test -z "$INSTALL"; then
2055 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2059 for ac_dir
in $PATH; do
2060 # Account for people who put trailing slashes in PATH elements.
2062 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2064 # OSF1 and SCO ODT 3.0 have their own names for install.
2065 # Don't use installbsd from OSF since it installs stuff as root
2067 for ac_prog
in ginstall scoinst
install; do
2068 if test -f $ac_dir/$ac_prog; then
2069 if test $ac_prog = install &&
2070 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2071 # AIX install. It has an incompatible calling convention.
2074 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2085 if test "${ac_cv_path_install+set}" = set; then
2086 INSTALL
="$ac_cv_path_install"
2088 # As a last resort, use the slow shell script. We don't cache a
2089 # path for INSTALL within a source directory, because that will
2090 # break other packages using the cache if that directory is
2091 # removed, or if the path is relative.
2092 INSTALL
="$ac_install_sh"
2095 echo "$ac_t""$INSTALL" 1>&6
2097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2098 # It thinks the first close brace ends the variable substitution.
2099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2103 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2105 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether ln -s works" >&5
2107 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2111 if ln -s X conftestdata
2>/dev
/null
2114 ac_cv_prog_LN_S
="ln -s"
2119 LN_S
="$ac_cv_prog_LN_S"
2120 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2121 echo "$ac_t""yes" 1>&6
2123 echo "$ac_t""no" 1>&6
2126 # Extract the first word of "c2man", so it can be a program name with args.
2127 set dummy c2man
; ac_word
=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 if test -n "$C2MAN"; then
2134 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2136 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2138 for ac_dir
in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir
=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_C2MAN
="c2man"
2146 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="\$(TOPSRCDIR)/tools/c2man.pl"
2149 C2MAN
="$ac_cv_prog_C2MAN"
2150 if test -n "$C2MAN"; then
2151 echo "$ac_t""$C2MAN" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 # Extract the first word of "ldconfig", so it can be a program name with args.
2157 set dummy ldconfig
; ac_word
=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2165 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2168 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2172 ac_dummy
="/sbin:/usr/sbin:$PATH"
2173 for ac_dir
in $ac_dummy; do
2174 test -z "$ac_dir" && ac_dir
=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2181 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2185 LDCONFIG
="$ac_cv_path_LDCONFIG"
2186 if test -n "$LDCONFIG"; then
2187 echo "$ac_t""$LDCONFIG" 1>&6
2189 echo "$ac_t""no" 1>&6
2193 for ac_prog
in lclint lint
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy
$ac_prog; ac_word
=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 if test -n "$LINT"; then
2203 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2207 for ac_dir
in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir
=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_LINT
="$ac_prog"
2217 LINT
="$ac_cv_prog_LINT"
2218 if test -n "$LINT"; then
2219 echo "$ac_t""$LINT" 1>&6
2221 echo "$ac_t""no" 1>&6
2224 test -n "$LINT" && break
2227 if test "$LINT" = "lint"
2229 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2235 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2236 echo "configure:2237: checking for sqrt in -lm" >&5
2237 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 ac_save_LIBS
="$LIBS"
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error. */
2247 /* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2255 if { (eval echo configure
:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2262 eval "ac_cv_lib_$ac_lib_var=no"
2265 LIBS
="$ac_save_LIBS"
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2272 cat >> confdefs.h
<<EOF
2273 #define $ac_tr_lib 1
2279 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2283 echo "configure:2284: checking for i386_set_ldt in -li386" >&5
2284 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 ac_save_LIBS
="$LIBS"
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2296 char i386_set_ldt();
2302 if { (eval echo configure
:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 eval "ac_cv_lib_$ac_lib_var=no"
2312 LIBS
="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2319 cat >> confdefs.h
<<EOF
2320 #define $ac_tr_lib 1
2326 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2330 echo "configure:2331: checking for _oss_ioctl in -lossaudio" >&5
2331 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 ac_save_LIBS
="$LIBS"
2336 LIBS
="-lossaudio $LIBS"
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 eval "ac_cv_lib_$ac_lib_var=no"
2359 LIBS
="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2366 cat >> confdefs.h
<<EOF
2367 #define $ac_tr_lib 1
2370 LIBS
="-lossaudio $LIBS"
2373 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2377 echo "configure:2378: checking for iswalnum in -lw" >&5
2378 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 ac_save_LIBS
="$LIBS"
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2396 if { (eval echo configure
:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_lib_$ac_lib_var=no"
2406 LIBS
="$ac_save_LIBS"
2409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2413 cat >> confdefs.h
<<EOF
2414 #define $ac_tr_lib 1
2420 echo "$ac_t""no" 1>&6
2423 for ac_func
in gethostbyname
2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_func" >&5
2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char $ac_func(); below. */
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. */
2443 /* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2454 if { (eval echo configure
:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2456 eval "ac_cv_func_$ac_func=yes"
2458 echo "configure: failed program was:" >&5
2459 cat conftest.
$ac_ext >&5
2461 eval "ac_cv_func_$ac_func=no"
2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2469 cat >> confdefs.h
<<EOF
2470 #define $ac_tr_func 1
2474 echo "$ac_t""no" 1>&6
2475 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2476 echo "configure:2477: checking for gethostbyname in -lnsl" >&5
2477 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 ac_save_LIBS
="$LIBS"
2482 LIBS
="-lnsl -lsocket $LIBS"
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2489 char gethostbyname();
2495 if { (eval echo configure
:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2499 echo "configure: failed program was:" >&5
2500 cat conftest.
$ac_ext >&5
2502 eval "ac_cv_lib_$ac_lib_var=no"
2505 LIBS
="$ac_save_LIBS"
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2512 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2514 echo "configure:2515: checking for gethostbyname in -lsocket" >&5
2515 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 ac_save_LIBS
="$LIBS"
2520 LIBS
="-lsocket -lnsl $LIBS"
2521 cat > conftest.
$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 /* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2527 char gethostbyname();
2533 if { (eval echo configure
:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2535 eval "ac_cv_lib_$ac_lib_var=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.
$ac_ext >&5
2540 eval "ac_cv_lib_$ac_lib_var=no"
2543 LIBS
="$ac_save_LIBS"
2546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2550 echo "$ac_t""no" 1>&6
2558 for ac_func
in connect
2560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_func" >&5
2562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $ac_func(); below. */
2571 /* Override any gcc2 internal prototype to avoid an error. */
2572 /* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2589 if { (eval echo configure
:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2591 eval "ac_cv_func_$ac_func=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 eval "ac_cv_func_$ac_func=no"
2601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2604 cat >> confdefs.h
<<EOF
2605 #define $ac_tr_func 1
2609 echo "$ac_t""no" 1>&6
2610 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2611 echo "configure:2612: checking for connect in -lsocket" >&5
2612 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 ac_save_LIBS
="$LIBS"
2617 LIBS
="-lsocket $LIBS"
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2630 if { (eval echo configure
:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2632 eval "ac_cv_lib_$ac_lib_var=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2637 eval "ac_cv_lib_$ac_lib_var=no"
2640 LIBS
="$ac_save_LIBS"
2643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2647 cat >> confdefs.h
<<EOF
2648 #define $ac_tr_lib 1
2651 LIBS
="-lsocket $LIBS"
2654 echo "$ac_t""no" 1>&6
2660 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2661 echo "configure:2662: checking for setrunelocale in -lxpg4" >&5
2662 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_save_LIBS
="$LIBS"
2668 cat > conftest.
$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674 char setrunelocale();
2680 if { (eval echo configure
:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2682 eval "ac_cv_lib_$ac_lib_var=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2687 eval "ac_cv_lib_$ac_lib_var=no"
2690 LIBS
="$ac_save_LIBS"
2693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2697 cat >> confdefs.h
<<EOF
2698 #define $ac_tr_lib 1
2704 echo "$ac_t""no" 1>&6
2707 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2708 echo "configure:2709: checking for mmap in -lmmap" >&5
2709 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_save_LIBS
="$LIBS"
2715 cat > conftest.
$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2727 if { (eval echo configure
:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2734 eval "ac_cv_lib_$ac_lib_var=no"
2737 LIBS
="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2744 cat >> confdefs.h
<<EOF
2745 #define $ac_tr_lib 1
2751 echo "$ac_t""no" 1>&6
2754 for ac_func
in openpty
2756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_func" >&5
2758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char $ac_func(); below. */
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2785 if { (eval echo configure
:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2787 eval "ac_cv_func_$ac_func=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.
$ac_ext >&5
2792 eval "ac_cv_func_$ac_func=no"
2797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2800 cat >> confdefs.h
<<EOF
2801 #define $ac_tr_func 1
2805 echo "$ac_t""no" 1>&6
2806 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2807 echo "configure:2808: checking for openpty in -lutil" >&5
2808 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2812 ac_save_LIBS
="$LIBS"
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 /* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2826 if { (eval echo configure
:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2828 eval "ac_cv_lib_$ac_lib_var=yes"
2830 echo "configure: failed program was:" >&5
2831 cat conftest.
$ac_ext >&5
2833 eval "ac_cv_lib_$ac_lib_var=no"
2836 LIBS
="$ac_save_LIBS"
2839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 cat >> confdefs.h
<<\EOF
2842 #define HAVE_OPENPTY 1
2848 echo "$ac_t""no" 1>&6
2855 for ac_hdr
in dlfcn.h
2857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.
$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure
:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2873 eval "ac_cv_header_$ac_safe=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_header_$ac_safe=no"
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h
<<EOF
2887 #define $ac_tr_hdr 1
2889 for ac_func
in dlopen
2891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2892 echo "configure:2893: checking for $ac_func" >&5
2893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.
$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char $ac_func(); below. */
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2920 if { (eval echo configure
:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2922 eval "ac_cv_func_$ac_func=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.
$ac_ext >&5
2927 eval "ac_cv_func_$ac_func=no"
2932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2935 cat >> confdefs.h
<<EOF
2936 #define $ac_tr_func 1
2938 cat >> confdefs.h
<<\EOF
2939 #define HAVE_DL_API 1
2943 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2945 echo "configure:2946: checking for dlopen in -ldl" >&5
2946 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_save_LIBS
="$LIBS"
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 /* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2964 if { (eval echo configure
:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2968 echo "configure: failed program was:" >&5
2969 cat conftest.
$ac_ext >&5
2971 eval "ac_cv_lib_$ac_lib_var=no"
2974 LIBS
="$ac_save_LIBS"
2977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 cat >> confdefs.h
<<\EOF
2980 #define HAVE_DL_API 1
2985 echo "$ac_t""no" 1>&6
2995 echo "$ac_t""no" 1>&6
3016 if test "$have_x" = "yes"
3019 ac_save_CPPFLAGS
="$CPPFLAGS"
3020 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3022 for ac_hdr
in X11
/xpm.h
3024 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_hdr" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3035 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3036 { (eval echo configure
:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3037 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3038 if test -z "$ac_err"; then
3040 eval "ac_cv_header_$ac_safe=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 eval "ac_cv_header_$ac_safe=no"
3050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3053 cat >> confdefs.h
<<EOF
3054 #define $ac_tr_hdr 1
3056 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3057 echo "configure:3058: checking for XpmCreatePixmapFromData in -lXpm" >&5
3058 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 ac_save_LIBS
="$LIBS"
3063 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3065 cat > conftest.
$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3071 char XpmCreatePixmapFromData();
3074 XpmCreatePixmapFromData()
3077 if { (eval echo configure
:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS
="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 cat >> confdefs.h
<<\EOF
3093 #define HAVE_LIBXXPM 1
3095 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3097 echo "$ac_t""no" 1>&6
3102 echo "$ac_t""no" 1>&6
3103 echo "Redhat : xpm xpm-devel"
3104 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3106 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3108 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3109 echo "the directory /contrib/libraries."
3118 for ac_hdr
in X11
/Xlib.h
3120 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_hdr" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3131 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure
:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3136 eval "ac_cv_header_$ac_safe=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3142 eval "ac_cv_header_$ac_safe=no"
3146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3149 cat >> confdefs.h
<<EOF
3150 #define $ac_tr_hdr 1
3153 for ac_hdr
in X11
/extensions
/XShm.h
3155 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_hdr" >&5
3158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3166 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3167 { (eval echo configure
:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3168 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169 if test -z "$ac_err"; then
3171 eval "ac_cv_header_$ac_safe=yes"
3174 echo "configure: failed program was:" >&5
3175 cat conftest.
$ac_ext >&5
3177 eval "ac_cv_header_$ac_safe=no"
3181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3184 cat >> confdefs.h
<<EOF
3185 #define $ac_tr_hdr 1
3187 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3188 echo "configure:3189: checking for XShmQueryExtension in -lXext" >&5
3189 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 ac_save_LIBS
="$LIBS"
3194 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3201 char XShmQueryExtension();
3204 XShmQueryExtension()
3207 if { (eval echo configure
:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3209 eval "ac_cv_lib_$ac_lib_var=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 eval "ac_cv_lib_$ac_lib_var=no"
3217 LIBS
="$ac_save_LIBS"
3220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 cat >> confdefs.h
<<\EOF
3223 #define HAVE_LIBXXSHM 1
3227 echo "$ac_t""no" 1>&6
3232 echo "$ac_t""no" 1>&6
3233 echo "configure: warning: Xshm extension not found!!" 1>&2
3239 for ac_hdr
in X11
/Xlib.h X11
/extensions
/shape.h
3241 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_hdr" >&5
3244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure
:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3257 eval "ac_cv_header_$ac_safe=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 eval "ac_cv_header_$ac_safe=no"
3267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h
<<EOF
3271 #define $ac_tr_hdr 1
3273 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3274 echo "configure:3275: checking for XShapeQueryExtension in -lXext" >&5
3275 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 ac_save_LIBS
="$LIBS"
3280 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3281 cat > conftest.
$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 /* Override any gcc2 internal prototype to avoid an error. */
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287 char XShapeQueryExtension();
3290 XShapeQueryExtension()
3293 if { (eval echo configure
:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3295 eval "ac_cv_lib_$ac_lib_var=yes"
3297 echo "configure: failed program was:" >&5
3298 cat conftest.
$ac_ext >&5
3300 eval "ac_cv_lib_$ac_lib_var=no"
3303 LIBS
="$ac_save_LIBS"
3306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 cat >> confdefs.h
<<\EOF
3309 #define HAVE_LIBXSHAPE 1
3313 echo "$ac_t""no" 1>&6
3318 echo "$ac_t""no" 1>&6
3319 echo "configure: warning: XShape extension found!!" 1>&2
3325 for ac_hdr
in X11
/extensions
/xf86dga.h
3327 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_hdr" >&5
3330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3339 { (eval echo configure
:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3341 if test -z "$ac_err"; then
3343 eval "ac_cv_header_$ac_safe=yes"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 eval "ac_cv_header_$ac_safe=no"
3353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3356 cat >> confdefs.h
<<EOF
3357 #define $ac_tr_hdr 1
3359 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3360 echo "configure:3361: checking for XDGAQueryExtension in -lXxf86dga" >&5
3361 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 ac_save_LIBS
="$LIBS"
3366 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3368 cat > conftest.
$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3374 char XDGAQueryExtension();
3377 XDGAQueryExtension()
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS
="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 cat >> confdefs.h
<<\EOF
3396 #define HAVE_LIBXXF86DGA2 1
3399 cat >> confdefs.h
<<\EOF
3400 #define HAVE_LIBXXF86DGA 1
3403 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3404 DGA_SRCS
='$(DGA_SRCS)'
3405 DGA2_SRCS
='$(DGA2_SRCS)'
3408 echo "$ac_t""no" 1>&6
3409 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3410 echo "configure:3411: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3411 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 ac_save_LIBS
="$LIBS"
3416 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3418 cat > conftest.
$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3424 char XF86DGAQueryExtension();
3427 XF86DGAQueryExtension()
3430 if { (eval echo configure
:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.
$ac_ext >&5
3437 eval "ac_cv_lib_$ac_lib_var=no"
3440 LIBS
="$ac_save_LIBS"
3443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3445 cat >> confdefs.h
<<\EOF
3446 #define HAVE_LIBXXF86DGA 1
3449 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3450 DGA_SRCS
='$(DGA_SRCS)'
3453 echo "$ac_t""no" 1>&6
3461 echo "$ac_t""no" 1>&6
3462 echo "configure: warning: DGA extension not found!!" 1>&2
3468 for ac_hdr
in X11
/extensions
/xf86vmode.h
3470 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_hdr" >&5
3473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3481 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3482 { (eval echo configure
:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3483 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3484 if test -z "$ac_err"; then
3486 eval "ac_cv_header_$ac_safe=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.
$ac_ext >&5
3492 eval "ac_cv_header_$ac_safe=no"
3496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3499 cat >> confdefs.h
<<EOF
3500 #define $ac_tr_hdr 1
3502 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3503 echo "configure:3504: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3504 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_save_LIBS
="$LIBS"
3509 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3511 cat > conftest.
$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 /* We use char because int might match the return type of a gcc2
3516 builtin and then its argument prototype would still apply. */
3517 char XF86VidModeQueryExtension();
3520 XF86VidModeQueryExtension()
3523 if { (eval echo configure
:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3525 eval "ac_cv_lib_$ac_lib_var=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3530 eval "ac_cv_lib_$ac_lib_var=no"
3533 LIBS
="$ac_save_LIBS"
3536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 cat >> confdefs.h
<<\EOF
3539 #define HAVE_LIBXXF86VM 1
3542 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3545 echo "$ac_t""no" 1>&6
3550 echo "$ac_t""no" 1>&6
3551 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3557 for ac_hdr
in X11
/extensions
/Xvlib.h
3559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3561 echo "configure:3562: checking for $ac_hdr" >&5
3562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3571 { (eval echo configure
:3572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3573 if test -z "$ac_err"; then
3575 eval "ac_cv_header_$ac_safe=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.
$ac_ext >&5
3581 eval "ac_cv_header_$ac_safe=no"
3585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3588 cat >> confdefs.h
<<EOF
3589 #define $ac_tr_hdr 1
3591 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3592 echo "configure:3593: checking for XvShmCreateImage in -lXv" >&5
3593 ac_lib_var
=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_save_LIBS
="$LIBS"
3598 LIBS
="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606 char XvShmCreateImage();
3612 if { (eval echo configure
:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.
$ac_ext >&5
3619 eval "ac_cv_lib_$ac_lib_var=no"
3622 LIBS
="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 cat >> confdefs.h
<<\EOF
3628 #define HAVE_XVIDEO 1
3631 X_PRE_LIBS
="$X_PRE_LIBS -lXv"
3634 echo "$ac_t""no" 1>&6
3639 echo "$ac_t""no" 1>&6
3640 echo "configure: warning: XVideo extension not found !!" 1>&2
3649 echo "$ac_t""no" 1>&6
3653 if test $OPENGL = "yes" -o $OPENGL = "normal"
3655 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/glext.h
3657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3659 echo "configure:3660: checking for $ac_hdr" >&5
3660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3669 { (eval echo configure
:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3671 if test -z "$ac_err"; then
3673 eval "ac_cv_header_$ac_safe=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_header_$ac_safe=no"
3683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3686 cat >> confdefs.h
<<EOF
3687 #define $ac_tr_hdr 1
3691 echo "$ac_t""no" 1>&6
3695 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3697 echo $ac_n "checking "for up-to-date OpenGL version
"""... $ac_c" 1>&6
3698 echo "configure:3699: checking "for up-to-date OpenGL version
"" >&5
3699 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3707 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3710 if { (eval echo configure
:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 wine_cv_opengl_version_OK
="yes"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3717 wine_cv_opengl_version_OK
="no"
3724 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3726 echo $ac_n "checking "for thread-safe OpenGL version
"""... $ac_c" 1>&6
3727 echo "configure:3728: checking "for thread-safe OpenGL version
"" >&5
3728 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3738 pthread_getspecific();
3741 if { (eval echo configure
:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3743 wine_cv_opengl_version_threadsafe
="yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.
$ac_ext >&5
3748 wine_cv_opengl_version_threadsafe
="no"
3755 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3757 if test "$wine_cv_opengl_version_OK" = "yes" -a \
( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
3759 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3760 echo "configure:3761: checking for glXCreateContext in -lGL" >&5
3761 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 ac_save_LIBS
="$LIBS"
3766 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char glXCreateContext();
3779 if { (eval echo configure
:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.
$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS
="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3795 MESA_SRCS
='$(MESA_SRCS)'
3798 echo "$ac_t""no" 1>&6
3802 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3805 OPENGLFILES
='$(OPENGLFILES)'
3806 cat >> confdefs.h
<<\EOF
3807 #define HAVE_OPENGL 1
3811 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3812 echo "configure:3813: checking for glXGetProcAddressARB in -lGL" >&5
3813 ac_lib_var
=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS
="$LIBS"
3818 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825 char glXGetProcAddressARB();
3828 glXGetProcAddressARB()
3831 if { (eval echo configure
:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.
$ac_ext >&5
3838 eval "ac_cv_lib_$ac_lib_var=no"
3841 LIBS
="$ac_save_LIBS"
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 cat >> confdefs.h
<<\EOF
3847 #define HAVE_GLX_GETPROCADDRESS 1
3851 echo "$ac_t""no" 1>&6
3855 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3857 echo $ac_n "checking "for OpenGL extension functions prototypes
"""... $ac_c" 1>&6
3858 echo "configure:3859: checking "for OpenGL extension functions prototypes
"" >&5
3859 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.
$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3866 #ifdef HAVE_GL_GLEXT_H
3867 # include <GL/glext.h>
3871 PFNGLCOLORTABLEEXTPROC test_proc;
3874 if { (eval echo configure
:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 wine_cv_extension_prototypes
="yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.
$ac_ext >&5
3881 wine_cv_extension_prototypes
="no"
3888 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3889 if test $wine_cv_extension_prototypes = "yes"
3891 cat >> confdefs.h
<<\EOF
3892 #define HAVE_GLEXT_PROTOTYPES 1
3897 OPENGL32_DLL
=opengl32
3904 CPPFLAGS
="$ac_save_CPPFLAGS"
3913 if test "$CURSES" = "yes"
3915 for ac_hdr
in ncurses.h
3917 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_hdr" >&5
3920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3928 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3929 { (eval echo configure
:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3930 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3931 if test -z "$ac_err"; then
3933 eval "ac_cv_header_$ac_safe=yes"
3936 echo "configure: failed program was:" >&5
3937 cat conftest.
$ac_ext >&5
3939 eval "ac_cv_header_$ac_safe=no"
3943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3945 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3946 cat >> confdefs.h
<<EOF
3947 #define $ac_tr_hdr 1
3951 echo "$ac_t""no" 1>&6
3955 if test "$ac_cv_header_ncurses_h" = "yes"
3957 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3958 echo "configure:3959: checking for waddch in -lncurses" >&5
3959 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_save_LIBS
="$LIBS"
3964 LIBS
="-lncurses $LIBS"
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure
:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3979 eval "ac_cv_lib_$ac_lib_var=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3984 eval "ac_cv_lib_$ac_lib_var=no"
3987 LIBS
="$ac_save_LIBS"
3990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3992 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3994 cat >> confdefs.h
<<EOF
3995 #define $ac_tr_lib 1
3998 LIBS
="-lncurses $LIBS"
4001 echo "$ac_t""no" 1>&6
4005 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4007 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4008 echo "configure:4009: checking for resizeterm in -lncurses" >&5
4009 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 ac_save_LIBS
="$LIBS"
4014 LIBS
="-lncurses $LIBS"
4015 cat > conftest.
$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4027 if { (eval echo configure
:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4029 eval "ac_cv_lib_$ac_lib_var=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.
$ac_ext >&5
4034 eval "ac_cv_lib_$ac_lib_var=no"
4037 LIBS
="$ac_save_LIBS"
4040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 cat >> confdefs.h
<<\EOF
4043 #define HAVE_RESIZETERM 1
4047 echo "$ac_t""no" 1>&6
4050 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4051 echo "configure:4052: checking for getbkgd in -lncurses" >&5
4052 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 ac_save_LIBS
="$LIBS"
4057 LIBS
="-lncurses $LIBS"
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* Override any gcc2 internal prototype to avoid an error. */
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4070 if { (eval echo configure
:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4072 eval "ac_cv_lib_$ac_lib_var=yes"
4074 echo "configure: failed program was:" >&5
4075 cat conftest.
$ac_ext >&5
4077 eval "ac_cv_lib_$ac_lib_var=no"
4080 LIBS
="$ac_save_LIBS"
4083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4085 cat >> confdefs.h
<<\EOF
4086 #define HAVE_GETBKGD 1
4090 echo "$ac_t""no" 1>&6
4094 for ac_hdr
in curses.h
4096 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4098 echo "configure:4099: checking for $ac_hdr" >&5
4099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 cat > conftest.
$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4107 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4108 { (eval echo configure
:4109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4109 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4110 if test -z "$ac_err"; then
4112 eval "ac_cv_header_$ac_safe=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 eval "ac_cv_header_$ac_safe=no"
4122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4123 echo "$ac_t""yes" 1>&6
4124 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4125 cat >> confdefs.h
<<EOF
4126 #define $ac_tr_hdr 1
4130 echo "$ac_t""no" 1>&6
4134 if test "$ac_cv_header_curses_h" = "yes"
4136 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4137 echo "configure:4138: checking for waddch in -lcurses" >&5
4138 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 ac_save_LIBS
="$LIBS"
4143 LIBS
="-lcurses $LIBS"
4144 cat > conftest.
$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 /* Override any gcc2 internal prototype to avoid an error. */
4148 /* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4156 if { (eval echo configure
:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4158 eval "ac_cv_lib_$ac_lib_var=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 eval "ac_cv_lib_$ac_lib_var=no"
4166 LIBS
="$ac_save_LIBS"
4169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4173 cat >> confdefs.h
<<EOF
4174 #define $ac_tr_lib 1
4177 LIBS
="-lcurses $LIBS"
4180 echo "$ac_t""no" 1>&6
4183 if test "$ac_cv_lib_curses_waddch" = "yes"
4185 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4186 echo "configure:4187: checking for resizeterm in -lcurses" >&5
4187 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 ac_save_LIBS
="$LIBS"
4192 LIBS
="-lcurses $LIBS"
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4205 if { (eval echo configure
:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4207 eval "ac_cv_lib_$ac_lib_var=yes"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4212 eval "ac_cv_lib_$ac_lib_var=no"
4215 LIBS
="$ac_save_LIBS"
4218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 cat >> confdefs.h
<<\EOF
4221 #define HAVE_RESIZETERM 1
4225 echo "$ac_t""no" 1>&6
4228 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4229 echo "configure:4230: checking for getbkgd in -lcurses" >&5
4230 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 ac_save_LIBS
="$LIBS"
4235 LIBS
="-lcurses $LIBS"
4236 cat > conftest.
$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4248 if { (eval echo configure
:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4250 eval "ac_cv_lib_$ac_lib_var=yes"
4252 echo "configure: failed program was:" >&5
4253 cat conftest.
$ac_ext >&5
4255 eval "ac_cv_lib_$ac_lib_var=no"
4258 LIBS
="$ac_save_LIBS"
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4263 cat >> confdefs.h
<<\EOF
4264 #define HAVE_GETBKGD 1
4268 echo "$ac_t""no" 1>&6
4276 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
4277 echo "configure:4278: checking "for GNU style IPX support
"" >&5
4278 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4281 cat > conftest.
$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4284 #include <sys/socket.h>
4285 #include <netipx/ipx.h>
4287 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4290 if { (eval echo configure
:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 ac_cv_c_ipx_gnu
="yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.
$ac_ext >&5
4297 ac_cv_c_ipx_gnu
="no"
4303 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4304 if test "$ac_cv_c_ipx_gnu" = "yes"
4306 cat >> confdefs.h
<<\EOF
4307 #define HAVE_IPX_GNU 1
4312 if test "$ac_cv_c_ipx_gnu" = "no"
4314 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "for linux style IPX support
"" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.
$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 #include <sys/socket.h>
4323 #include <asm/types.h>
4324 #include <linux/ipx.h>
4326 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4329 if { (eval echo configure
:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4331 ac_cv_c_ipx_linux
="yes"
4333 echo "configure: failed program was:" >&5
4334 cat conftest.
$ac_ext >&5
4336 ac_cv_c_ipx_linux
="no"
4342 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4343 if test "$ac_cv_c_ipx_linux" = "yes"
4345 cat >> confdefs.h
<<\EOF
4346 #define HAVE_IPX_LINUX 1
4352 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4354 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4356 echo "configure:4357: checking for $ac_hdr" >&5
4357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.
$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure
:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4370 eval "ac_cv_header_$ac_safe=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.
$ac_ext >&5
4376 eval "ac_cv_header_$ac_safe=no"
4380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4383 cat >> confdefs.h
<<EOF
4384 #define $ac_tr_hdr 1
4388 echo "$ac_t""no" 1>&6
4393 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4394 echo "configure:4395: checking "for Open Sound System
"" >&5
4395 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.
$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4402 #if defined(HAVE_SYS_SOUNDCARD_H)
4403 #include <sys/soundcard.h>
4404 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4405 #include <machine/soundcard.h>
4406 #elif defined(HAVE_SOUNDCARD_H)
4407 #include <soundcard.h>
4413 /* check for one of the Open Sound System specific SNDCTL_ defines */
4414 #if !defined(SNDCTL_DSP_STEREO)
4415 #error No open sound system
4420 if { (eval echo configure
:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4422 ac_cv_c_opensoundsystem
="yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4427 ac_cv_c_opensoundsystem
="no"
4432 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4434 if test "$ac_cv_c_opensoundsystem" = "yes"
4436 cat >> confdefs.h
<<\EOF
4442 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4443 echo "configure:4444: checking "for Open Sound System
/MIDI interface
"" >&5
4444 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4451 #if defined(HAVE_SYS_SOUNDCARD_H)
4452 #include <sys/soundcard.h>
4453 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4454 #include <machine/soundcard.h>
4455 #elif defined(HAVE_SOUNDCARD_H)
4456 #include <soundcard.h>
4462 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4463 #if !defined(SNDCTL_SEQ_SYNC)
4464 #error No open sound system MIDI interface
4469 if { (eval echo configure
:4470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4471 ac_cv_c_opensoundsystem_midi
="yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.
$ac_ext >&5
4476 ac_cv_c_opensoundsystem_midi
="no"
4481 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4483 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4485 cat >> confdefs.h
<<\EOF
4486 #define HAVE_OSS_MIDI 1
4491 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4494 if test "x${GCC}" = "xyes"
4496 CFLAGS
="$CFLAGS -Wall"
4497 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4498 echo "configure:4499: checking "for gcc strength-reduce bug
"" >&5
4499 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 if test "$cross_compiling" = yes; then
4503 ac_cv_c_gcc_strength_bug
="yes"
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4509 int L[4] = {0,1,2,3};
4511 static int Array[3];
4514 for(i=0; i<B; i++) Array[i] = i - 3;
4515 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4518 exit( Array[1] != -2 || L[2] != 3);
4521 if { (eval echo configure
:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4523 ac_cv_c_gcc_strength_bug
="no"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.
$ac_ext >&5
4528 ac_cv_c_gcc_strength_bug
="yes"
4535 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4536 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4538 CFLAGS
="$CFLAGS -fno-strength-reduce"
4543 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4544 echo "configure:4545: checking "whether external symbols need an underscore prefix
"" >&5
4545 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4549 LIBS
="conftest_asm.s $LIBS"
4550 cat > conftest_asm.s
<<EOF
4555 cat > conftest.
$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4560 if (ac_test) return 1
4563 if { (eval echo configure
:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4565 ac_cv_c_extern_prefix
="yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4570 ac_cv_c_extern_prefix
="no"
4576 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4577 if test "$ac_cv_c_extern_prefix" = "yes"
4579 cat >> confdefs.h
<<\EOF
4580 #define NEED_UNDERSCORE_PREFIX 1
4586 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4587 echo "configure:4588: checking "whether assembler accepts .string
"" >&5
4588 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4592 LIBS
="conftest_asm.s $LIBS"
4593 cat > conftest_asm.s
<<EOF
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4604 if { (eval echo configure
:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4606 ac_cv_c_asm_string
="yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.
$ac_ext >&5
4611 ac_cv_c_asm_string
="no"
4617 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4618 if test "$ac_cv_c_asm_string" = "yes"
4620 cat >> confdefs.h
<<\EOF
4621 #define HAVE_ASM_STRING 1
4629 if test "$LIBEXT" = "so"
4631 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4632 echo "configure:4633: checking "whether we can build a Linux dll
"" >&5
4633 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 saved_cflags
=$CFLAGS
4637 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4646 if { (eval echo configure
:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4648 ac_cv_c_dll_linux
="yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.
$ac_ext >&5
4653 ac_cv_c_dll_linux
="no"
4656 CFLAGS
=$saved_cflags
4660 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4661 if test "$ac_cv_c_dll_linux" = "yes"
4663 LDSHARED
="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
4664 LDDLLFLAGS
="-Wl,-Bsymbolic"
4666 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4667 echo "configure:4668: checking whether we can build a UnixWare (Solaris) dll" >&5
4668 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 saved_cflags
=$CFLAGS
4672 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
4673 cat > conftest.
$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4681 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4683 ac_cv_c_dll_unixware
="yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 ac_cv_c_dll_unixware
="no"
4691 CFLAGS
=$saved_cflags
4695 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4696 if test "$ac_cv_c_dll_unixware" = "yes"
4698 LDSHARED
="\$(CC) -Wl,-G \$(SONAME:%=-Wl,h,\$(libdir)/%)"
4699 LDDLLFLAGS
="-Wl,-B,symbolic"
4701 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4702 echo "configure:4703: checking "whether we can build a NetBSD dll
"" >&5
4703 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 saved_cflags
=$CFLAGS
4707 CFLAGS
="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4716 if { (eval echo configure
:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4718 ac_cv_c_dll_netbsd
="yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 ac_cv_c_dll_netbsd
="no"
4726 CFLAGS
=$saved_cflags
4730 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4731 if test "$ac_cv_c_dll_netbsd" = "yes"
4733 LDSHARED
="\$(CC) -Wl,-Bshareable,-Bforcearchive"
4734 LDDLLFLAGS
="" #FIXME
4738 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4746 if test "$LIBEXT" = "so"; then
4748 DLL_LINK
="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
4750 DLL_LINK
="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
4751 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4752 echo "configure:4753: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4753 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 saved_cflags
=$CFLAGS
4757 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4758 cat > conftest.
$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4766 if { (eval echo configure
:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4768 ac_cv_c_whole_archive
="yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.
$ac_ext >&5
4773 ac_cv_c_whole_archive
="no"
4776 CFLAGS
=$saved_cflags
4780 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4781 if test "$ac_cv_c_whole_archive" = "yes"
4783 DLL_LINK
="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4785 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4786 echo "configure:4787: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4787 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 saved_cflags
=$CFLAGS
4791 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4800 if { (eval echo configure
:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4802 ac_cv_c_allextract
="yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4807 ac_cv_c_allextract
="no"
4810 CFLAGS
=$saved_cflags
4814 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4815 if test "$ac_cv_c_allextract" = "yes"
4817 DLL_LINK
="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4829 wine_cv_libc_reentrant
=no
4830 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4831 echo "configure:4832: checking "for reentrant libc
: __errno_location
"" >&5
4832 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 if test "$cross_compiling" = yes; then
4836 wine_cv_libc_r__errno_location
=yes
4838 cat > conftest.
$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4843 int *__errno_location(){return &myerrno;}
4844 main(){connect(0,buf,255); exit(!myerrno);}
4846 if { (eval echo configure
:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4848 wine_cv_libc_r__errno_location
=yes
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 wine_cv_libc_r__errno_location
=no
4861 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4862 if test "$wine_cv_libc_r__errno_location" = "yes"
4864 cat >> confdefs.h
<<\EOF
4865 #define HAVE__ERRNO_LOCATION 1
4868 wine_cv_libc_reentrant
=__errno_location
4870 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4871 echo "configure:4872: checking "for reentrant libc
: __error
"" >&5
4872 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 if test "$cross_compiling" = yes; then
4876 wine_cv_libc_r__error
=yes
4878 cat > conftest.
$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4883 int *__error(){return &myerrno;}
4884 main(){connect(0,buf,255); exit(!myerrno);}
4886 if { (eval echo configure
:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4888 wine_cv_libc_r__error
=yes
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 wine_cv_libc_r__error
=no
4901 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4902 if test "$wine_cv_libc_r__error" = "yes"
4904 cat >> confdefs.h
<<\EOF
4905 #define HAVE__ERROR 1
4908 wine_cv_libc_reentrant
=__error
4910 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4911 echo "configure:4912: checking "for reentrant libc
: ___errno
"" >&5
4912 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 if test "$cross_compiling" = yes; then
4916 wine_cv_libc_r___errno
=yes
4918 cat > conftest.
$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4923 int *___errno(){return &myerrno;}
4924 main(){connect(0,buf,255); exit(!myerrno);}
4926 if { (eval echo configure
:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4928 wine_cv_libc_r___errno
=yes
4930 echo "configure: failed program was:" >&5
4931 cat conftest.
$ac_ext >&5
4933 wine_cv_libc_r___errno
=no
4941 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4942 if test "$wine_cv_libc_r___errno" = "yes"
4944 cat >> confdefs.h
<<\EOF
4945 #define HAVE___ERRNO 1
4948 wine_cv_libc_reentrant
=___errno
4950 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4951 echo "configure:4952: checking "for reentrant libc
: __thr_errno
"" >&5
4952 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 if test "$cross_compiling" = yes; then
4956 wine_cv_libc_r__thr_errno
=yes
4958 cat > conftest.
$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4963 int *__thr_errno(){return &myerrno;}
4964 main(){connect(0,buf,255); exit(!myerrno);}
4966 if { (eval echo configure
:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4968 wine_cv_libc_r__thr_errno
=yes
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 wine_cv_libc_r__thr_errno
=no
4981 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4982 if test "$wine_cv_libc_r__thr_errno" = "yes"
4984 cat >> confdefs.h
<<\EOF
4985 #define HAVE__THR_ERRNO 1
4988 wine_cv_libc_reentrant
=__thr_errno
4990 if test "$wine_cv_libc_reentrant" = "no"
4992 cat >> confdefs.h
<<\EOF
4993 #define NO_REENTRANT_LIBC 1
4999 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5001 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
5002 echo "configure:5003: checking "for reentrant X libraries
"" >&5
5003 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 if test "x$with_reentrant_x" = "xno"
5008 wine_cv_x_reentrant
=no
5011 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
5012 if test -r $dir/libX11.so
; then
5013 libX11_check
="-D $dir/libX11.so"
5016 if test -r $dir/libX11.a
; then
5017 libX11_check
="$dir/libX11.a"
5021 if test "$libX11_check" != "none"; then
5022 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
5024 wine_cv_x_reentrant
=yes
5026 wine_cv_x_reentrant
=no
5029 wine_cv_x_reentrant
=unknown
5034 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5036 wine_cv_x_reentrant
=no
5038 if test "$wine_cv_x_reentrant" = "no"
5040 cat >> confdefs.h
<<\EOF
5041 #define NO_REENTRANT_X11 1
5047 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5048 echo "configure:5049: checking whether byte ordering is bigendian" >&5
5049 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 ac_cv_c_bigendian
=unknown
5053 # See if sys/param.h defines the BYTE_ORDER macro.
5054 cat > conftest.
$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5057 #include <sys/types.h>
5058 #include <sys/param.h>
5061 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5066 if { (eval echo configure
:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5068 # It does; now see whether it defined to BIG_ENDIAN or not.
5069 cat > conftest.
$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 #include <sys/types.h>
5073 #include <sys/param.h>
5076 #if BYTE_ORDER != BIG_ENDIAN
5081 if { (eval echo configure
:5082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5083 ac_cv_c_bigendian
=yes
5085 echo "configure: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5088 ac_cv_c_bigendian
=no
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5096 if test $ac_cv_c_bigendian = unknown
; then
5097 if test "$cross_compiling" = yes; then
5098 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5100 cat > conftest.
$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5104 /* Are we little or big endian? From Harbison&Steele. */
5108 char c[sizeof (long)];
5111 exit (u.c[sizeof (long) - 1] == 1);
5114 if { (eval echo configure
:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5116 ac_cv_c_bigendian
=no
5118 echo "configure: failed program was:" >&5
5119 cat conftest.
$ac_ext >&5
5121 ac_cv_c_bigendian
=yes
5129 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5130 if test $ac_cv_c_bigendian = yes; then
5131 cat >> confdefs.h
<<\EOF
5132 #define WORDS_BIGENDIAN 1
5139 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5140 # for constant arguments. Useless!
5141 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5142 echo "configure:5143: checking for working alloca.h" >&5
5143 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.
$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5151 void *p = alloca(2 * sizeof(int));
5154 if { (eval echo configure
:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5156 ac_cv_header_alloca_h
=yes
5158 echo "configure: failed program was:" >&5
5159 cat conftest.
$ac_ext >&5
5161 ac_cv_header_alloca_h
=no
5166 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5167 if test $ac_cv_header_alloca_h = yes; then
5168 cat >> confdefs.h
<<\EOF
5169 #define HAVE_ALLOCA_H 1
5174 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5175 echo "configure:5176: checking for alloca" >&5
5176 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 cat > conftest.
$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5184 # define alloca __builtin_alloca
5187 # include <malloc.h>
5188 # define alloca _alloca
5191 # include <alloca.h>
5196 # ifndef alloca /* predefined by HP cc +Olibcalls */
5205 char *p = (char *) alloca(1);
5208 if { (eval echo configure
:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5210 ac_cv_func_alloca_works
=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.
$ac_ext >&5
5215 ac_cv_func_alloca_works
=no
5220 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5221 if test $ac_cv_func_alloca_works = yes; then
5222 cat >> confdefs.h
<<\EOF
5223 #define HAVE_ALLOCA 1
5228 if test $ac_cv_func_alloca_works = no
; then
5229 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5230 # that cause trouble. Some versions do not even contain alloca or
5231 # contain a buggy version. If you still want to use their alloca,
5232 # use ar to extract alloca.o from them instead of compiling alloca.c.
5233 ALLOCA
=alloca.
${ac_objext}
5234 cat >> confdefs.h
<<\EOF
5239 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5240 echo "configure:5241: checking whether alloca needs Cray hooks" >&5
5241 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.
$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 #if defined(CRAY) && ! defined(CRAY2)
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255 egrep "webecray" >/dev
/null
2>&1; then
5266 echo "$ac_t""$ac_cv_os_cray" 1>&6
5267 if test $ac_cv_os_cray = yes; then
5268 for ac_func
in _getb67 GETB67 getb67
; do
5269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_func" >&5
5271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
5277 /* System header to define __stub macros and hopefully few prototypes,
5278 which can conflict with char $ac_func(); below. */
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5287 /* The GNU C library defines this for functions which it implements
5288 to always fail with ENOSYS. Some functions are actually named
5289 something starting with __ and the normal name is an alias. */
5290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5298 if { (eval echo configure
:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5300 eval "ac_cv_func_$ac_func=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.
$ac_ext >&5
5305 eval "ac_cv_func_$ac_func=no"
5310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5311 echo "$ac_t""yes" 1>&6
5312 cat >> confdefs.h
<<EOF
5313 #define CRAY_STACKSEG_END $ac_func
5318 echo "$ac_t""no" 1>&6
5324 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5325 echo "configure:5326: checking stack direction for C alloca" >&5
5326 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 if test "$cross_compiling" = yes; then
5330 ac_cv_c_stack_direction
=0
5332 cat > conftest.
$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 find_stack_direction ()
5337 static char *addr = 0;
5342 return find_stack_direction ();
5345 return (&dummy > addr) ? 1 : -1;
5349 exit (find_stack_direction() < 0);
5352 if { (eval echo configure
:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5354 ac_cv_c_stack_direction
=1
5356 echo "configure: failed program was:" >&5
5357 cat conftest.
$ac_ext >&5
5359 ac_cv_c_stack_direction
=-1
5366 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5367 cat >> confdefs.h
<<EOF
5368 #define STACK_DIRECTION $ac_cv_c_stack_direction
5403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_func" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char $ac_func(); below. */
5414 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5421 /* The GNU C library defines this for functions which it implements
5422 to always fail with ENOSYS. Some functions are actually named
5423 something starting with __ and the normal name is an alias. */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5432 if { (eval echo configure
:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5434 eval "ac_cv_func_$ac_func=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.
$ac_ext >&5
5439 eval "ac_cv_func_$ac_func=no"
5444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447 cat >> confdefs.h
<<EOF
5448 #define $ac_tr_func 1
5452 echo "$ac_t""no" 1>&6
5507 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5509 echo "configure:5510: checking for $ac_hdr" >&5
5510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 cat > conftest.
$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5518 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5519 { (eval echo configure
:5520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5520 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5521 if test -z "$ac_err"; then
5523 eval "ac_cv_header_$ac_safe=yes"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.
$ac_ext >&5
5529 eval "ac_cv_header_$ac_safe=no"
5533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5535 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5536 cat >> confdefs.h
<<EOF
5537 #define $ac_tr_hdr 1
5541 echo "$ac_t""no" 1>&6
5545 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5546 echo "configure:5547: checking whether stat file-mode macros are broken" >&5
5547 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.
$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5554 #include <sys/stat.h>
5556 #if defined(S_ISBLK) && defined(S_IFDIR)
5557 # if S_ISBLK (S_IFDIR)
5562 #if defined(S_ISBLK) && defined(S_IFCHR)
5563 # if S_ISBLK (S_IFCHR)
5568 #if defined(S_ISLNK) && defined(S_IFREG)
5569 # if S_ISLNK (S_IFREG)
5574 #if defined(S_ISSOCK) && defined(S_IFREG)
5575 # if S_ISSOCK (S_IFREG)
5581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 egrep "You lose" >/dev
/null
2>&1; then
5584 ac_cv_header_stat_broken
=yes
5587 ac_cv_header_stat_broken
=no
5593 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5594 if test $ac_cv_header_stat_broken = yes; then
5595 cat >> confdefs.h
<<\EOF
5596 #define STAT_MACROS_BROKEN 1
5603 echo $ac_n "checking for working const""... $ac_c" 1>&6
5604 echo "configure:5605: checking for working const" >&5
5605 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5614 /* Ultrix mips cc rejects this. */
5615 typedef int charset[2]; const charset x = {0,0};
5616 /* SunOS 4.1.1 cc rejects this. */
5617 char const *const *ccp;
5619 /* NEC SVR4.0.2 mips cc rejects this. */
5620 struct point {int x, y;};
5621 static struct point const zero = {0,0};
5622 /* AIX XL C 1.02.0.0 rejects this.
5623 It does not let you subtract one const X* pointer from another in an arm
5624 of an if-expression whose if-part is not a constant expression */
5625 const char *g = "string";
5626 ccp = &g + (g ? g-g : 0);
5627 /* HPUX 7.0 cc rejects these. */
5630 ccp = (char const *const *) p;
5631 { /* SCO 3.2v4 cc rejects this. */
5633 char const *s = 0 ? (char *) 0 : (char const *) 0;
5637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5639 const int *foo = &x[0];
5642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5643 typedef const int *iptr;
5647 { /* AIX XL C 1.02.0.0 rejects this saying
5648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5649 struct s { int j; const int *ap[3]; };
5650 struct s *b; b->j = 5;
5652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5658 if { (eval echo configure
:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 echo "configure: failed program was:" >&5
5663 cat conftest.
$ac_ext >&5
5670 echo "$ac_t""$ac_cv_c_const" 1>&6
5671 if test $ac_cv_c_const = no
; then
5672 cat >> confdefs.h
<<\EOF
5678 echo $ac_n "checking for inline""... $ac_c" 1>&6
5679 echo "configure:5680: checking for inline" >&5
5680 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5684 for ac_kw
in inline __inline__ __inline
; do
5685 cat > conftest.
$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5690 } int $ac_kw foo() {
5693 if { (eval echo configure
:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5695 ac_cv_c_inline
=$ac_kw; break
5697 echo "configure: failed program was:" >&5
5698 cat conftest.
$ac_ext >&5
5705 echo "$ac_t""$ac_cv_c_inline" 1>&6
5706 case "$ac_cv_c_inline" in
5708 no
) cat >> confdefs.h
<<\EOF
5712 *) cat >> confdefs.h
<<EOF
5713 #define inline $ac_cv_c_inline
5718 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5719 echo "configure:5720: checking for ANSI C header files" >&5
5720 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 cat > conftest.
$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5732 { (eval echo configure
:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5733 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5734 if test -z "$ac_err"; then
5736 ac_cv_header_stdc
=yes
5739 echo "configure: failed program was:" >&5
5740 cat conftest.
$ac_ext >&5
5742 ac_cv_header_stdc
=no
5746 if test $ac_cv_header_stdc = yes; then
5747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5748 cat > conftest.
$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5754 egrep "memchr" >/dev
/null
2>&1; then
5758 ac_cv_header_stdc
=no
5764 if test $ac_cv_header_stdc = yes; then
5765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5766 cat > conftest.
$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 egrep "free" >/dev
/null
2>&1; then
5776 ac_cv_header_stdc
=no
5782 if test $ac_cv_header_stdc = yes; then
5783 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5784 if test "$cross_compiling" = yes; then
5787 cat > conftest.
$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5791 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5792 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5794 int main () { int i; for (i = 0; i < 256; i++)
5795 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5799 if { (eval echo configure
:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5803 echo "configure: failed program was:" >&5
5804 cat conftest.
$ac_ext >&5
5806 ac_cv_header_stdc
=no
5814 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5815 if test $ac_cv_header_stdc = yes; then
5816 cat >> confdefs.h
<<\EOF
5817 #define STDC_HEADERS 1
5822 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5823 echo "configure:5824: checking for size_t" >&5
5824 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5827 cat > conftest.
$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5830 #include <sys/types.h>
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5839 ac_cv_type_size_t
=yes
5842 ac_cv_type_size_t
=no
5847 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5848 if test $ac_cv_type_size_t = no
; then
5849 cat >> confdefs.h
<<\EOF
5850 #define size_t unsigned
5855 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5856 echo "configure:5857: checking size of long long" >&5
5857 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5860 if test "$cross_compiling" = yes; then
5861 ac_cv_sizeof_long_long
=0
5863 cat > conftest.
$ac_ext <<EOF
5864 #line 5865 "configure"
5865 #include "confdefs.h"
5869 FILE *f=fopen("conftestval", "w");
5871 fprintf(f, "%d\n", sizeof(long long));
5875 if { (eval echo configure
:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5877 ac_cv_sizeof_long_long
=`cat conftestval`
5879 echo "configure: failed program was:" >&5
5880 cat conftest.
$ac_ext >&5
5882 ac_cv_sizeof_long_long
=0
5888 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5889 cat >> confdefs.h
<<EOF
5890 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5896 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style
"""... $ac_c" 1>&6
5897 echo "configure:5898: checking "whether we can use re-entrant gethostbyname_r Linux style
"" >&5
5898 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 cat > conftest.
$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5911 struct hostent *result;
5918 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
5919 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
5923 if { (eval echo configure
:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925 wine_cv_linux_gethostbyname_r_6
=yes
5927 echo "configure: failed program was:" >&5
5928 cat conftest.
$ac_ext >&5
5930 wine_cv_linux_gethostbyname_r_6
=no
5937 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
5938 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
5940 cat >> confdefs.h
<<\EOF
5941 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
5946 if test "$ac_cv_header_linux_joystick_h" = "yes"
5948 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5949 echo "configure:5950: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5950 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5953 cat > conftest.
$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5957 #include <sys/ioctl.h>
5958 #include <linux/joystick.h>
5960 struct js_event blub;
5961 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5962 #error "no 2.2 header"
5969 if { (eval echo configure
:5970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5971 wine_cv_linux_joystick_22_api
=yes
5973 echo "configure: failed program was:" >&5
5974 cat conftest.
$ac_ext >&5
5976 wine_cv_linux_joystick_22_api
=no
5982 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5983 if test "$wine_cv_linux_joystick_22_api" = "yes"
5985 cat >> confdefs.h
<<\EOF
5986 #define HAVE_LINUX_22_JOYSTICK_API 1
5993 if test "$ac_cv_header_sys_vfs_h" = "yes"
5995 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5996 echo "configure:5997: checking "whether sys
/vfs.h defines statfs
"" >&5
5997 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.
$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6004 #include <sys/types.h>
6005 #ifdef HAVE_SYS_PARAM_H
6006 # include <sys/param.h>
6008 #include <sys/vfs.h>
6014 memset(&stfs,0,sizeof(stfs));
6018 if { (eval echo configure
:6019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6020 wine_cv_sys_vfs_has_statfs
=yes
6022 echo "configure: failed program was:" >&5
6023 cat conftest.
$ac_ext >&5
6025 wine_cv_sys_vfs_has_statfs
=no
6032 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6033 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6035 cat >> confdefs.h
<<\EOF
6036 #define STATFS_DEFINED_BY_SYS_VFS 1
6042 if test "$ac_cv_header_sys_statfs_h" = "yes"
6044 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
6045 echo "configure:6046: checking "whether sys
/statfs.h defines statfs
"" >&5
6046 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.
$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6053 #include <sys/types.h>
6054 #ifdef HAVE_SYS_PARAM_H
6055 # include <sys/param.h>
6057 #include <sys/statfs.h>
6065 if { (eval echo configure
:6066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6067 wine_cv_sys_statfs_has_statfs
=yes
6069 echo "configure: failed program was:" >&5
6070 cat conftest.
$ac_ext >&5
6072 wine_cv_sys_statfs_has_statfs
=no
6079 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6080 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6082 cat >> confdefs.h
<<\EOF
6083 #define STATFS_DEFINED_BY_SYS_STATFS 1
6089 if test "$ac_cv_header_sys_mount_h" = "yes"
6091 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
6092 echo "configure:6093: checking "whether sys
/mount.h defines statfs
"" >&5
6093 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6096 cat > conftest.
$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6100 #include <sys/types.h>
6101 #ifdef HAVE_SYS_PARAM_H
6102 # include <sys/param.h>
6104 #include <sys/mount.h>
6112 if { (eval echo configure
:6113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114 wine_cv_sys_mount_has_statfs
=yes
6116 echo "configure: failed program was:" >&5
6117 cat conftest.
$ac_ext >&5
6119 wine_cv_sys_mount_has_statfs
=no
6126 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6127 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6129 cat >> confdefs.h
<<\EOF
6130 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6137 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
6138 echo "configure:6139: checking "for statfs.f_bfree
"" >&5
6139 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 if test "x$statfs_bfree" = "xno"
6144 wine_cv_statfs_bfree
=no
6146 cat > conftest.
$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6150 #include <sys/types.h>
6151 #ifdef HAVE_SYS_PARAM_H
6152 # include <sys/param.h>
6154 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6155 # include <sys/mount.h>
6157 # ifdef STATFS_DEFINED_BY_SYS_VFS
6158 # include <sys/vfs.h>
6160 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6161 # include <sys/statfs.h>
6174 if { (eval echo configure
:6175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6176 wine_cv_statfs_bfree
=yes
6178 echo "configure: failed program was:" >&5
6179 cat conftest.
$ac_ext >&5
6181 wine_cv_statfs_bfree
=no
6188 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6189 if test "$wine_cv_statfs_bfree" = "yes"
6191 cat >> confdefs.h
<<\EOF
6192 #define STATFS_HAS_BFREE 1
6197 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
6198 echo "configure:6199: checking "for statfs.f_bavail
"" >&5
6199 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 if test "x$statfs_bavail" = "xno"
6204 wine_cv_statfs_bavail
=no
6206 cat > conftest.
$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6210 #include <sys/types.h>
6211 #ifdef HAVE_SYS_PARAM_H
6212 # include <sys/param.h>
6214 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6215 # include <sys/mount.h>
6217 # ifdef STATFS_DEFINED_BY_SYS_VFS
6218 # include <sys/vfs.h>
6220 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6221 # include <sys/statfs.h>
6234 if { (eval echo configure
:6235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6236 wine_cv_statfs_bavail
=yes
6238 echo "configure: failed program was:" >&5
6239 cat conftest.
$ac_ext >&5
6241 wine_cv_statfs_bavail
=no
6248 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6249 if test "$wine_cv_statfs_bavail" = "yes"
6251 cat >> confdefs.h
<<\EOF
6252 #define STATFS_HAS_BAVAIL 1
6258 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
6259 echo "configure:6260: checking "for msg_accrights
in struct msghdr
"" >&5
6260 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6263 cat > conftest.
$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6266 #include <sys/types.h>
6267 #include <sys/socket.h>
6269 struct msghdr hdr; hdr.msg_accrights=0
6272 if { (eval echo configure
:6273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6274 ac_cv_c_msg_accrights
="yes"
6276 echo "configure: failed program was:" >&5
6277 cat conftest.
$ac_ext >&5
6279 ac_cv_c_msg_accrights
="no"
6284 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6285 if test "$ac_cv_c_msg_accrights" = "yes"
6287 cat >> confdefs.h
<<\EOF
6288 #define HAVE_MSGHDR_ACCRIGHTS 1
6294 echo $ac_n "checking "for sun_len
in struct sockaddr_un
"""... $ac_c" 1>&6
6295 echo "configure:6296: checking "for sun_len
in struct sockaddr_un
"" >&5
6296 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.
$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 #include <sys/types.h>
6303 #include <sys/socket.h>
6306 static struct sockaddr_un addr; addr.sun_len = 1
6309 if { (eval echo configure
:6310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6311 ac_cv_c_sun_len
="yes"
6313 echo "configure: failed program was:" >&5
6314 cat conftest.
$ac_ext >&5
6316 ac_cv_c_sun_len
="no"
6321 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6322 if test "$ac_cv_c_sun_len" = "yes"
6324 cat >> confdefs.h
<<\EOF
6325 #define HAVE_SOCKADDR_SUN_LEN 1
6331 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6332 echo "configure:6333: checking "whether we need to define __i386__
"" >&5
6333 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6336 cat > conftest.
$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6339 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 egrep "yes" >/dev
/null
2>&1; then
6346 ac_cv_cpp_def_i386
="yes"
6349 ac_cv_cpp_def_i386
="no"
6355 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6356 if test "$ac_cv_cpp_def_i386" = "yes"
6358 CFLAGS
="$CFLAGS -D__i386__"
6359 LINTFLAGS
="$LINTFLAGS -D__i386__"
6363 if test "$GCC" = "yes"
6365 GCC_NO_BUILTIN
="-fno-builtin"
6372 MAKE_RULES
=Make.rules
6375 MAKE_DLL_RULES
=dlls
/Makedll.rules
6378 MAKE_PROG_RULES
=programs
/Makeprog.rules
6382 cat > confcache
<<\EOF
6383 # This file is a shell script that caches the results of configure
6384 # tests run on this system so they can be shared between configure
6385 # scripts and configure runs. It is not useful on other systems.
6386 # If it contains results you don't want to keep, you may remove or edit it.
6388 # By default, configure uses ./config.cache as the cache file,
6389 # creating it if it does not exist already. You can give configure
6390 # the --cache-file=FILE option to use a different cache file; that is
6391 # what configure does when it calls configure scripts in
6392 # subdirectories, so they share the cache.
6393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6394 # config.status only pays attention to the cache file if you give it the
6395 # --recheck option to rerun configure.
6398 # The following way of writing the cache mishandles newlines in values,
6399 # but we know of no workaround that is simple, portable, and efficient.
6400 # So, don't put newlines in cache variables' values.
6401 # Ultrix sh set writes to stderr and can't be redirected directly,
6402 # and sets the high bit in the cache file unless we assign to the vars.
6404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6406 # `set' does not quote correctly, so add quotes (double-quote substitution
6407 # turns \\\\ into \\, and sed turns \\ into \).
6409 -e "s/'/'\\\\''/g" \
6410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6413 # `set' quotes correctly as required by POSIX, so do not add quotes.
6414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6417 if cmp -s $cache_file confcache
; then
6420 if test -w $cache_file; then
6421 echo "updating cache $cache_file"
6422 cat confcache
> $cache_file
6424 echo "not updating unwritable cache $cache_file"
6429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6431 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6432 # Let make expand exec_prefix.
6433 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6435 # Any assignment to VPATH causes Sun make to only execute
6436 # the first set of double-colon rules, so remove it if not needed.
6437 # If there is a colon in the path, we need to keep it.
6438 if test "x$srcdir" = x.
; then
6439 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6444 DEFS
=-DHAVE_CONFIG_H
6446 # Without the "./", some shells look in PATH for config.status.
6447 : ${CONFIG_STATUS=./config.status}
6449 echo creating
$CONFIG_STATUS
6450 rm -f $CONFIG_STATUS
6451 cat > $CONFIG_STATUS <<EOF
6453 # Generated automatically by configure.
6454 # Run this file to recreate the current configuration.
6455 # This directory was configured as follows,
6456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6458 # $0 $ac_configure_args
6460 # Compiler output produced by configure, useful for debugging
6461 # configure, is in ./config.log if it exists.
6463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6466 case "\$ac_option" in
6467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6471 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6473 -help | --help | --hel | --he | --h)
6474 echo "\$ac_cs_usage"; exit 0 ;;
6475 *) echo "\$ac_cs_usage"; exit 1 ;;
6479 ac_given_srcdir=$srcdir
6480 ac_given_INSTALL="$INSTALL"
6482 trap 'rm -fr `echo "
6485 programs/Makeprog.rules
6491 dlls/advapi32/Makefile
6492 dlls/avifil32/Makefile
6493 dlls/comctl32/Makefile
6494 dlls/commdlg/Makefile
6495 dlls/crtdll/Makefile
6496 dlls/dciman32/Makefile
6498 dlls/dinput/Makefile
6500 dlls/dplayx/Makefile
6501 dlls/dsound/Makefile
6504 dlls/imagehlp/Makefile
6506 dlls/kernel/Makefile
6507 dlls/lzexpand/Makefile
6510 dlls/msnet32/Makefile
6511 dlls/msvideo/Makefile
6513 dlls/odbc32/Makefile
6515 dlls/oleaut32/Makefile
6516 dlls/olecli/Makefile
6517 dlls/oledlg/Makefile
6518 dlls/olepro32/Makefile
6519 dlls/olesvr/Makefile
6520 dlls/opengl32/Makefile
6522 dlls/rasapi32/Makefile
6523 dlls/richedit/Makefile
6524 dlls/rpcrt4/Makefile
6525 dlls/serialui/Makefile
6526 dlls/setupapi/Makefile
6527 dlls/shell32/Makefile
6528 dlls/shfolder/Makefile
6529 dlls/shlwapi/Makefile
6530 dlls/tapi32/Makefile
6531 dlls/ttydrv/Makefile
6532 dlls/urlmon/Makefile
6534 dlls/version/Makefile
6535 dlls/win32s/Makefile
6536 dlls/winaspi/Makefile
6537 dlls/wineps/Makefile
6538 dlls/wininet/Makefile
6540 dlls/winmm/joystick/Makefile
6541 dlls/winmm/mcianim/Makefile
6542 dlls/winmm/mciavi/Makefile
6543 dlls/winmm/mcicda/Makefile
6544 dlls/winmm/mciseq/Makefile
6545 dlls/winmm/mciwave/Makefile
6546 dlls/winmm/midimap/Makefile
6547 dlls/winmm/wavemap/Makefile
6548 dlls/winmm/wineoss/Makefile
6549 dlls/winsock/Makefile
6550 dlls/winspool/Makefile
6552 dlls/wsock32/Makefile
6553 dlls/x11drv/Makefile
6554 documentation/Makefile
6555 documentation/wine.conf.man
6556 documentation/wine.man
6559 graphics/enhmetafiledrv/Makefile
6560 graphics/metafiledrv/Makefile
6561 graphics/win16drv/Makefile
6562 graphics/x11drv/Makefile
6577 programs/avitools/Makefile
6578 programs/clock/Makefile
6579 programs/cmdlgtst/Makefile
6580 programs/control/Makefile
6581 programs/notepad/Makefile
6582 programs/osversioncheck/Makefile
6583 programs/progman/Makefile
6584 programs/regapi/Makefile
6585 programs/regtest/Makefile
6586 programs/uninstaller/Makefile
6587 programs/view/Makefile
6588 programs/wcmd/Makefile
6589 programs/winemine/Makefile
6590 programs/winhelp/Makefile
6591 programs/winver/Makefile
6596 tools/cvdump/Makefile
6597 tools/winebuild/Makefile
6605 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6607 cat >> $CONFIG_STATUS <<EOF
6609 # Protect against being on the right side of a sed subst in config.status.
6610 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6611 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6615 s%@CFLAGS@%$CFLAGS%g
6616 s%@CPPFLAGS@%$CPPFLAGS%g
6617 s%@CXXFLAGS@%$CXXFLAGS%g
6618 s%@FFLAGS@%$FFLAGS%g
6620 s%@LDFLAGS@%$LDFLAGS%g
6622 s%@exec_prefix@%$exec_prefix%g
6623 s%@prefix@%$prefix%g
6624 s%@program_transform_name@%$program_transform_name%g
6625 s%@bindir@%$bindir%g
6626 s%@sbindir@%$sbindir%g
6627 s%@libexecdir@%$libexecdir%g
6628 s%@datadir@%$datadir%g
6629 s%@sysconfdir@%$sysconfdir%g
6630 s%@sharedstatedir@%$sharedstatedir%g
6631 s%@localstatedir@%$localstatedir%g
6632 s%@libdir@%$libdir%g
6633 s%@includedir@%$includedir%g
6634 s%@oldincludedir@%$oldincludedir%g
6635 s%@infodir@%$infodir%g
6636 s%@mandir@%$mandir%g
6637 s%@OPTIONS@%$OPTIONS%g
6638 s%@SET_MAKE@%$SET_MAKE%g
6641 s%@X_CFLAGS@%$X_CFLAGS%g
6642 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6643 s%@X_LIBS@%$X_LIBS%g
6644 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6647 s%@LEXLIB@%$LEXLIB%g
6649 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6650 s%@RANLIB@%$RANLIB%g
6651 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6652 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6653 s%@INSTALL_DATA@%$INSTALL_DATA%g
6656 s%@LDCONFIG@%$LDCONFIG%g
6658 s%@LINTFLAGS@%$LINTFLAGS%g
6660 s%@X_DLLS@%$X_DLLS%g
6661 s%@XFILES@%$XFILES%g
6662 s%@OPENGLFILES@%$OPENGLFILES%g
6663 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6664 s%@DGA_SRCS@%$DGA_SRCS%g
6665 s%@DGA2_SRCS@%$DGA2_SRCS%g
6666 s%@MESA_SRCS@%$MESA_SRCS%g
6667 s%@DLL_LINK@%$DLL_LINK%g
6668 s%@DLLFLAGS@%$DLLFLAGS%g
6669 s%@LDSHARED@%$LDSHARED%g
6670 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
6671 s%@LIBEXT@%$LIBEXT%g
6672 s%@ALLOCA@%$ALLOCA%g
6673 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6674 /@MAKE_RULES@/r $MAKE_RULES
6676 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6677 s%@MAKE_DLL_RULES@%%g
6678 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
6679 s%@MAKE_PROG_RULES@%%g
6684 cat >> $CONFIG_STATUS <<\EOF
6686 # Split the substitutions into bite-sized pieces for seds with
6687 # small command number limits, like on Digital OSF/1 and HP-UX.
6688 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6689 ac_file
=1 # Number of current file.
6690 ac_beg
=1 # First line for current file.
6691 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6694 while $ac_more_lines; do
6695 if test $ac_beg -gt 1; then
6696 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6698 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6700 if test ! -s conftest.s
$ac_file; then
6702 rm -f conftest.s
$ac_file
6704 if test -z "$ac_sed_cmds"; then
6705 ac_sed_cmds
="sed -f conftest.s$ac_file"
6707 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6709 ac_file
=`expr $ac_file + 1`
6711 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6714 if test -z "$ac_sed_cmds"; then
6719 cat >> $CONFIG_STATUS <<EOF
6721 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6723 programs/Makeprog.rules
6729 dlls/advapi32/Makefile
6730 dlls/avifil32/Makefile
6731 dlls/comctl32/Makefile
6732 dlls/commdlg/Makefile
6733 dlls/crtdll/Makefile
6734 dlls/dciman32/Makefile
6736 dlls/dinput/Makefile
6738 dlls/dplayx/Makefile
6739 dlls/dsound/Makefile
6742 dlls/imagehlp/Makefile
6744 dlls/kernel/Makefile
6745 dlls/lzexpand/Makefile
6748 dlls/msnet32/Makefile
6749 dlls/msvideo/Makefile
6751 dlls/odbc32/Makefile
6753 dlls/oleaut32/Makefile
6754 dlls/olecli/Makefile
6755 dlls/oledlg/Makefile
6756 dlls/olepro32/Makefile
6757 dlls/olesvr/Makefile
6758 dlls/opengl32/Makefile
6760 dlls/rasapi32/Makefile
6761 dlls/richedit/Makefile
6762 dlls/rpcrt4/Makefile
6763 dlls/serialui/Makefile
6764 dlls/setupapi/Makefile
6765 dlls/shell32/Makefile
6766 dlls/shfolder/Makefile
6767 dlls/shlwapi/Makefile
6768 dlls/tapi32/Makefile
6769 dlls/ttydrv/Makefile
6770 dlls/urlmon/Makefile
6772 dlls/version/Makefile
6773 dlls/win32s/Makefile
6774 dlls/winaspi/Makefile
6775 dlls/wineps/Makefile
6776 dlls/wininet/Makefile
6778 dlls/winmm/joystick/Makefile
6779 dlls/winmm/mcianim/Makefile
6780 dlls/winmm/mciavi/Makefile
6781 dlls/winmm/mcicda/Makefile
6782 dlls/winmm/mciseq/Makefile
6783 dlls/winmm/mciwave/Makefile
6784 dlls/winmm/midimap/Makefile
6785 dlls/winmm/wavemap/Makefile
6786 dlls/winmm/wineoss/Makefile
6787 dlls/winsock/Makefile
6788 dlls/winspool/Makefile
6790 dlls/wsock32/Makefile
6791 dlls/x11drv/Makefile
6792 documentation/Makefile
6793 documentation/wine.conf.man
6794 documentation/wine.man
6797 graphics/enhmetafiledrv/Makefile
6798 graphics/metafiledrv/Makefile
6799 graphics/win16drv/Makefile
6800 graphics/x11drv/Makefile
6815 programs/avitools/Makefile
6816 programs/clock/Makefile
6817 programs/cmdlgtst/Makefile
6818 programs/control/Makefile
6819 programs/notepad/Makefile
6820 programs/osversioncheck/Makefile
6821 programs/progman/Makefile
6822 programs/regapi/Makefile
6823 programs/regtest/Makefile
6824 programs/uninstaller/Makefile
6825 programs/view/Makefile
6826 programs/wcmd/Makefile
6827 programs/winemine/Makefile
6828 programs/winhelp/Makefile
6829 programs/winver/Makefile
6834 tools/cvdump/Makefile
6835 tools/winebuild/Makefile
6843 windows/x11drv/Makefile "}
6845 cat >> $CONFIG_STATUS <<\EOF
6846 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6849 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6850 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6851 *) ac_file_in
="${ac_file}.in" ;;
6854 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6856 # Remove last slash and all that follows it. Not all systems have dirname.
6857 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6858 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6859 # The file is in a subdirectory.
6860 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6861 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6862 # A "../" for each directory in $ac_dir_suffix.
6863 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6865 ac_dir_suffix
= ac_dots
=
6868 case "$ac_given_srcdir" in
6870 if test -z "$ac_dots"; then top_srcdir
=.
6871 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6872 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6874 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6875 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6878 case "$ac_given_INSTALL" in
6879 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6880 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6883 echo creating
"$ac_file"
6885 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6887 *Makefile
*) ac_comsub
="1i\\
6888 # $configure_input" ;;
6892 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6894 s%@configure_input@%$configure_input%g
6895 s%@srcdir@%$srcdir%g
6896 s%@top_srcdir@%$top_srcdir%g
6897 s%@INSTALL@%$INSTALL%g
6898 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6902 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6903 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6905 # ac_d sets the value in "#define NAME VALUE" lines.
6906 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6907 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6910 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6911 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6912 ac_uB
='\([ ]\)%\1#\2define\3'
6915 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6916 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6917 ac_eB
='$%\1#\2define\3'
6921 if test "${CONFIG_HEADERS+set}" != set; then
6923 cat >> $CONFIG_STATUS <<EOF
6924 CONFIG_HEADERS="include/config.h"
6926 cat >> $CONFIG_STATUS <<\EOF
6928 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6931 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6932 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6933 *) ac_file_in
="${ac_file}.in" ;;
6936 echo creating
$ac_file
6938 rm -f conftest.frag conftest.
in conftest.out
6939 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6940 cat $ac_file_inputs > conftest.
in
6944 # Transform confdefs.h into a sed script conftest.vals that substitutes
6945 # the proper values into config.h.in to produce config.h. And first:
6946 # Protect against being on the right side of a sed subst in config.status.
6947 # Protect against being in an unquoted here document in config.status.
6949 cat > conftest.hdr
<<\EOF
6952 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6956 sed -n -f conftest.hdr confdefs.h > conftest.vals
6959 # This sed command replaces #undef with comments. This is necessary, for
6960 # example, in the case of _POSIX_SOURCE, which is predefined and required
6961 # on some systems where configure will not decide to define it.
6962 cat >> conftest.vals <<\EOF
6963 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6966 # Break up conftest.vals because some shells have a limit on
6967 # the size of here documents, and old seds have small limits too.
6972 ac_lines=`grep -c . conftest.vals
`
6973 # grep -c gives empty output for an empty file on some AIX systems.
6974 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6975 # Write a limited-size here document to conftest.frag.
6976 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6977 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6979 sed -f conftest.frag conftest.in > conftest.out
6981 mv conftest.out conftest.in
6983 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6985 mv conftest.tail conftest.vals
6989 cat >> $CONFIG_STATUS <<\EOF
6990 rm -f conftest.frag conftest.h
6991 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6992 cat conftest.in >> conftest.h
6994 if cmp -s $ac_file conftest.h 2>/dev/null; then
6995 echo "$ac_file is unchanged"
6998 # Remove last slash and all that follows it. Not all systems have dirname.
6999 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7000 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7001 # The file is in a subdirectory.
7002 test ! -d "$ac_dir" && mkdir "$ac_dir"
7005 mv conftest.h $ac_file
7010 cat >> $CONFIG_STATUS <<EOF
7014 cat >> $CONFIG_STATUS <<\EOF
7017 dlls/ddraw/d3ddevice \
7018 dlls/ddraw/dclipper \
7020 dlls/ddraw/direct3d \
7021 dlls/ddraw/dpalette \
7022 dlls/ddraw/dsurface \
7023 dlls/dinput/joystick \
7024 dlls/dinput/keyboard \
7026 dlls/kernel/messages \
7027 dlls/user/resources \
7029 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7033 chmod +x $CONFIG_STATUS
7034 rm -fr confdefs* $ac_clean_files
7035 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7038 if test "$have_x" = "no"
7041 echo "*** Warning: X development files not found. Wine will be built without"
7042 echo "*** X support, which currently does not work, and would probably not be"
7043 echo "*** what you want anyway. You will need to install devel packages of"
7044 echo "*** Xlib/Xfree86 and Xpm at the very least."
7045 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7048 echo "*** Warning: Xpm development files not found. Wine will be built without"
7049 echo "*** Xpm support, which currently does not work. You will need to install"
7050 echo "*** devel packages of Xpm."
7053 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7056 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7057 echo "*** terminal resize support. Consider upgrading ncurses."
7060 if test "$wine_cv_libc_reentrant" = "no"
7063 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7064 echo "*** thread support. Consider upgrading libc to a more recent"
7065 echo "*** reentrant version of libc."
7068 if test "$wine_cv_opengl_version_OK" = "no"
7071 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7072 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7075 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7078 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7079 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7080 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7081 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7084 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7087 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7088 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7089 echo "*** support before reporting bugs."
7094 echo "Configure finished. Do 'make depend && make' to compile Wine."