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-debug compile out all debugging messages"
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
20 --disable-trace compile out TRACE messages"
22 --without-curses do not use curses"
24 --without-reentrant-x compile for use with non-reentrant X libraries"
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 SHELL
=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
91 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
92 bindir
="$ac_optarg" ;;
94 -build |
--build |
--buil |
--bui |
--bu)
96 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
99 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
100 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
101 ac_prev
=cache_file
;;
102 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
103 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
104 cache_file
="$ac_optarg" ;;
106 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
108 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
110 datadir
="$ac_optarg" ;;
112 -disable-* |
--disable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* |
--enable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
136 |
--exec |
--exe |
--ex)
137 ac_prev
=exec_prefix
;;
138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
140 |
--exec=* |
--exe=* |
--ex=*)
141 exec_prefix
="$ac_optarg" ;;
143 -gas |
--gas |
--ga |
--g)
144 # Obsolete; use --with-gas.
147 -help |
--help |
--hel |
--he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host |
--host |
--hos |
--ho)
204 -host=* |
--host=* |
--hos=* |
--ho=*)
207 -includedir |
--includedir |
--includedi |
--included |
--include \
208 |
--includ |
--inclu |
--incl |
--inc)
209 ac_prev
=includedir
;;
210 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
211 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
212 includedir
="$ac_optarg" ;;
214 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
216 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
217 infodir
="$ac_optarg" ;;
219 -libdir |
--libdir |
--libdi |
--libd)
221 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
222 libdir
="$ac_optarg" ;;
224 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
225 |
--libexe |
--libex |
--libe)
226 ac_prev
=libexecdir
;;
227 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
228 |
--libexe=* |
--libex=* |
--libe=*)
229 libexecdir
="$ac_optarg" ;;
231 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
232 |
--localstate |
--localstat |
--localsta |
--localst \
233 |
--locals |
--local |
--loca |
--loc |
--lo)
234 ac_prev
=localstatedir
;;
235 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
236 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
237 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
238 localstatedir
="$ac_optarg" ;;
240 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
242 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
243 mandir
="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
253 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
254 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
257 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
258 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
259 |
--oldin |
--oldi |
--old |
--ol |
--o)
260 ac_prev
=oldincludedir
;;
261 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
262 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
263 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
264 oldincludedir
="$ac_optarg" ;;
266 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
268 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
269 prefix
="$ac_optarg" ;;
271 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
272 |
--program-pre |
--program-pr |
--program-p)
273 ac_prev
=program_prefix
;;
274 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
275 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
276 program_prefix
="$ac_optarg" ;;
278 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
279 |
--program-suf |
--program-su |
--program-s)
280 ac_prev
=program_suffix
;;
281 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
282 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
283 program_suffix
="$ac_optarg" ;;
285 -program-transform-name |
--program-transform-name \
286 |
--program-transform-nam |
--program-transform-na \
287 |
--program-transform-n |
--program-transform- \
288 |
--program-transform |
--program-transfor \
289 |
--program-transfo |
--program-transf \
290 |
--program-trans |
--program-tran \
291 |
--progr-tra |
--program-tr |
--program-t)
292 ac_prev
=program_transform_name
;;
293 -program-transform-name=* |
--program-transform-name=* \
294 |
--program-transform-nam=* |
--program-transform-na=* \
295 |
--program-transform-n=* |
--program-transform-=* \
296 |
--program-transform=* |
--program-transfor=* \
297 |
--program-transfo=* |
--program-transf=* \
298 |
--program-trans=* |
--program-tran=* \
299 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
300 program_transform_name
="$ac_optarg" ;;
302 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
303 |
-silent |
--silent |
--silen |
--sile |
--sil)
306 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
308 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
310 sbindir
="$ac_optarg" ;;
312 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
313 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
314 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
316 ac_prev
=sharedstatedir
;;
317 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
318 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
319 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
321 sharedstatedir
="$ac_optarg" ;;
323 -site |
--site |
--sit)
325 -site=* |
--site=* |
--sit=*)
328 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
330 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
331 srcdir
="$ac_optarg" ;;
333 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
334 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
335 ac_prev
=sysconfdir
;;
336 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
337 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
338 sysconfdir
="$ac_optarg" ;;
340 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
342 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
343 target
="$ac_optarg" ;;
345 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
348 -version |
--version |
--versio |
--versi |
--vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* |
--without-*)
366 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
379 |
--x-incl |
--x-inc |
--x-in |
--x-i)
380 ac_prev
=x_includes
;;
381 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
382 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
383 x_includes
="$ac_optarg" ;;
385 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
386 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
387 ac_prev
=x_libraries
;;
388 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
389 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
390 x_libraries
="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE
; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
441 |
--no-cr |
--no-c) ;;
442 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
443 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
444 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest
* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file
=controls
/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted
=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted
=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE
; then
495 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file
in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp
='$CPP $CPPFLAGS'
518 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling
=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
533 ac_n
= ac_c
='\c' ac_t
=
539 for ac_dir
in tools
$srcdir/tools
; do
540 if test -f $ac_dir/install-sh
; then
542 ac_install_sh
="$ac_aux_dir/install-sh -c"
544 elif test -f $ac_dir/install.sh
; then
546 ac_install_sh
="$ac_aux_dir/install.sh -c"
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess
=$ac_aux_dir/config.guess
554 ac_config_sub
=$ac_aux_dir/config.sub
555 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
559 LIBEXT
=so
# library type .so or .a
560 TRACE_MSGS
=yes # the TRACE() macro
561 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval
="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval
="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL
="no"; elif test "$enableval" = "yes"; then OPENGL
="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval
="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval
="$with_curses"
589 if test "$withval" = "no"; then CURSES
="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval
="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
604 cat >> confdefs.h
<<\EOF
605 #define NO_DEBUG_MSGS 1
608 cat >> confdefs.h
<<\EOF
609 #define NO_TRACE_MSGS 1
613 if test "$TRACE_MSGS" = "no"
615 cat >> confdefs.h
<<\EOF
616 #define NO_TRACE_MSGS 1
623 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
624 echo "configure:625: checking whether ${MAKE-make} sets \${MAKE}" >&5
625 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
626 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
629 cat > conftestmake
<<\EOF
631 @
echo 'ac_maketemp="${MAKE}"'
633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
634 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
635 if test -n "$ac_maketemp"; then
636 eval ac_cv_prog_make_
${ac_make}_set
=yes
638 eval ac_cv_prog_make_
${ac_make}_set
=no
642 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
643 echo "$ac_t""yes" 1>&6
646 echo "$ac_t""no" 1>&6
647 SET_MAKE
="MAKE=${MAKE-make}"
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc
; ac_word
=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 if test -n "$CC"; then
658 ac_cv_prog_CC
="$CC" # Let the user override the test.
660 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
662 for ac_dir
in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir
=.
664 if test -f $ac_dir/$ac_word; then
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc
; ac_word
=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 if test -n "$CC"; then
688 ac_cv_prog_CC
="$CC" # Let the user override the test.
690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy
$ac_cv_prog_CC
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
714 set dummy
"$ac_dir/$ac_word" "$@"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl
; ac_word
=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC
="$CC" # Let the user override the test.
741 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
743 for ac_dir
in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir
=.
745 if test -f $ac_dir/$ac_word; then
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
757 echo "$ac_t""no" 1>&6
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp
='$CPP $CPPFLAGS'
771 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling
=$ac_cv_prog_cc_cross
775 cat > conftest.
$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
782 if { (eval echo configure
:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
783 ac_cv_prog_cc_works
=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (.
/conftest
; exit) 2>/dev
/null
; then
786 ac_cv_prog_cc_cross
=no
788 ac_cv_prog_cc_cross
=yes
791 echo "configure: failed program was:" >&5
792 cat conftest.
$ac_ext >&5
793 ac_cv_prog_cc_works
=no
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp
='$CPP $CPPFLAGS'
799 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling
=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no
; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling
=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.c
<<EOF
822 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
837 ac_test_CFLAGS
="${CFLAGS+set}"
838 ac_save_CFLAGS
="$CFLAGS"
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS
="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
865 if test "$GCC" = yes; then
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
903 CPP
="${CC-cc} -E -traditional-cpp"
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure
:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.
$ac_ext >&5
920 CPP
="${CC-cc} -nologo -E"
921 cat > conftest.
$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure
:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.
$ac_ext >&5
944 ac_cv_prog_CPP
="$CPP"
946 CPP
="$ac_cv_prog_CPP"
948 ac_cv_prog_CPP
="$CPP"
950 echo "$ac_t""$CPP" 1>&6
952 # If we find X, set shell vars x_includes and x_libraries to the
953 # paths, otherwise set no_x=yes.
954 # Uses ac_ vars as temps to allow command line to override cache and checks.
955 # --without-x overrides everything else, but does not touch the cache.
956 echo $ac_n "checking for X""... $ac_c" 1>&6
957 echo "configure:958: checking for X" >&5
959 # Check whether --with-x or --without-x was given.
960 if test "${with_x+set}" = set; then
965 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
966 if test "x$with_x" = xno
; then
967 # The user explicitly disabled X.
970 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
971 # Both variables are already set.
974 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 # One or both of the vars are not set, and there is no cached value.
978 ac_x_includes
=NO ac_x_libraries
=NO
980 if mkdir conftestdir
; then
982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
983 cat > Imakefile
<<'EOF'
985 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
987 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
990 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
991 for ac_extension
in a so sl
; do
992 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
993 test -f $ac_im_libdir/libX11.
$ac_extension; then
994 ac_im_usrlibdir
=$ac_im_libdir; break
997 # Screen out bogus values from the imake configuration. They are
998 # bogus both because they are the default anyway, and because
999 # using them would break gcc on systems where it needs fixed includes.
1000 case "$ac_im_incroot" in
1002 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1004 case "$ac_im_usrlibdir" in
1006 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1013 if test "$ac_x_includes" = NO
; then
1014 # Guess where to find include files, by looking for this one X11 .h file.
1015 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1017 # First, try using that file with no special directory specified.
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <$x_direct_test_include>
1023 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure
:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1028 # We can compile using X headers with no special include directory.
1032 echo "configure: failed program was:" >&5
1033 cat conftest.
$ac_ext >&5
1035 # Look for the header file in a standard set of common directories.
1036 # Check X11 before X11Rn because it is often a symlink to the current release.
1039 /usr
/X11R
6/include \
1040 /usr
/X11R
5/include \
1041 /usr
/X11R
4/include \
1044 /usr
/include
/X11R6 \
1045 /usr
/include
/X11R5 \
1046 /usr
/include
/X11R4 \
1048 /usr
/local
/X11
/include \
1049 /usr
/local
/X11R
6/include \
1050 /usr
/local
/X11R
5/include \
1051 /usr
/local
/X11R
4/include \
1053 /usr
/local
/include
/X11 \
1054 /usr
/local
/include
/X11R6 \
1055 /usr
/local
/include
/X11R5 \
1056 /usr
/local
/include
/X11R4 \
1060 /usr
/XFree86
/include
/X11 \
1063 /usr
/local
/include \
1064 /usr
/unsupported
/include \
1065 /usr
/athena
/include \
1066 /usr
/local
/x11r
5/include \
1067 /usr
/lpp
/Xamples
/include \
1069 /usr
/openwin
/include \
1070 /usr
/openwin
/share
/include \
1073 if test -r "$ac_dir/$x_direct_test_include"; then
1074 ac_x_includes
=$ac_dir
1080 fi # $ac_x_includes = NO
1082 if test "$ac_x_libraries" = NO
; then
1083 # Check for the libraries.
1085 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1086 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1088 # See if we find them without any special options.
1089 # Don't add to $LIBS permanently.
1090 ac_save_LIBS
="$LIBS"
1091 LIBS
="-l$x_direct_test_library $LIBS"
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1097 ${x_direct_test_function}()
1100 if { (eval echo configure
:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1102 LIBS
="$ac_save_LIBS"
1103 # We can link X programs with no special library path.
1106 echo "configure: failed program was:" >&5
1107 cat conftest.
$ac_ext >&5
1109 LIBS
="$ac_save_LIBS"
1110 # First see if replacing the include by lib works.
1111 # Check X11 before X11Rn because it is often a symlink to the current release.
1112 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1123 /usr
/local
/X11
/lib \
1124 /usr
/local
/X11R
6/lib \
1125 /usr
/local
/X11R
5/lib \
1126 /usr
/local
/X11R
4/lib \
1128 /usr
/local
/lib
/X11 \
1129 /usr
/local
/lib
/X11R6 \
1130 /usr
/local
/lib
/X11R5 \
1131 /usr
/local
/lib
/X11R4 \
1135 /usr
/XFree86
/lib
/X11 \
1139 /usr
/unsupported
/lib \
1141 /usr
/local
/x11r
5/lib \
1142 /usr
/lpp
/Xamples
/lib \
1146 /usr
/openwin
/share
/lib \
1149 for ac_extension
in a so sl
; do
1150 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1151 ac_x_libraries
=$ac_dir
1158 fi # $ac_x_libraries = NO
1160 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1161 # Didn't find X anywhere. Cache the known absence of X.
1162 ac_cv_have_x
="have_x=no"
1164 # Record where we found X for the cache.
1165 ac_cv_have_x
="have_x=yes \
1166 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1170 eval "$ac_cv_have_x"
1173 if test "$have_x" != yes; then
1174 echo "$ac_t""$have_x" 1>&6
1177 # If each of the values was on the command line, it overrides each guess.
1178 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1179 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1180 # Update the cache value to reflect the command line values.
1181 ac_cv_have_x
="have_x=yes \
1182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1183 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1186 if test "$no_x" = yes; then
1187 # Not all programs may use this symbol, but it does not hurt to define it.
1188 cat >> confdefs.h
<<\EOF
1189 #define X_DISPLAY_MISSING 1
1192 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1194 if test -n "$x_includes"; then
1195 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1198 # It would also be nice to do this for all -L options, not just this one.
1199 if test -n "$x_libraries"; then
1200 X_LIBS
="$X_LIBS -L$x_libraries"
1201 # For Solaris; some versions of Sun CC require a space after -R and
1202 # others require no space. Words are not sufficient . . . .
1203 case "`(uname -sr) 2>/dev/null`" in
1205 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether -R must be followed by a space" >&5
1207 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1208 cat > conftest.
$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1216 if { (eval echo configure
:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1220 echo "configure: failed program was:" >&5
1221 cat conftest.
$ac_ext >&5
1226 if test $ac_R_nospace = yes; then
1227 echo "$ac_t""no" 1>&6
1228 X_LIBS
="$X_LIBS -R$x_libraries"
1230 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1231 cat > conftest.
$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1239 if { (eval echo configure
:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1243 echo "configure: failed program was:" >&5
1244 cat conftest.
$ac_ext >&5
1249 if test $ac_R_space = yes; then
1250 echo "$ac_t""yes" 1>&6
1251 X_LIBS
="$X_LIBS -R $x_libraries"
1253 echo "$ac_t""neither works" 1>&6
1256 LIBS
="$ac_xsave_LIBS"
1260 # Check for system-dependent libraries X programs must link with.
1261 # Do this before checking for the system-independent R6 libraries
1262 # (-lICE), since we may need -lsocket or whatever for X linking.
1264 if test "$ISC" = yes; then
1265 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1267 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1268 # libraries were built with DECnet support. And karl@cs.umb.edu says
1269 # the Alpha needs dnet_stub (dnet does not exist).
1270 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1271 echo "configure:1272: checking for dnet_ntoa in -ldnet" >&5
1272 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 ac_save_LIBS
="$LIBS"
1278 cat > conftest.
$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1290 if { (eval echo configure
:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.
$ac_ext >&5
1297 eval "ac_cv_lib_$ac_lib_var=no"
1300 LIBS
="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1307 echo "$ac_t""no" 1>&6
1310 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1311 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1312 echo "configure:1313: checking for dnet_ntoa in -ldnet_stub" >&5
1313 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 ac_save_LIBS
="$LIBS"
1318 LIBS
="-ldnet_stub $LIBS"
1319 cat > conftest.
$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1331 if { (eval echo configure
:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.
$ac_ext >&5
1338 eval "ac_cv_lib_$ac_lib_var=no"
1341 LIBS
="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1348 echo "$ac_t""no" 1>&6
1353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1354 # to get the SysV transport functions.
1355 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1357 # The nsl library prevents programs from opening the X display
1358 # on Irix 5.2, according to dickey@clark.net.
1359 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1360 echo "configure:1361: checking for gethostbyname" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.
$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char gethostbyname(); below. */
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373 char gethostbyname();
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1388 if { (eval echo configure
:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1390 eval "ac_cv_func_gethostbyname=yes"
1392 echo "configure: failed program was:" >&5
1393 cat conftest.
$ac_ext >&5
1395 eval "ac_cv_func_gethostbyname=no"
1400 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1404 echo "$ac_t""no" 1>&6
1407 if test $ac_cv_func_gethostbyname = no
; then
1408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1409 echo "configure:1410: checking for gethostbyname in -lnsl" >&5
1410 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 ac_save_LIBS
="$LIBS"
1416 cat > conftest.
$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* Override any gcc2 internal prototype to avoid an error. */
1420 /* We use char because int might match the return type of a gcc2
1421 builtin and then its argument prototype would still apply. */
1422 char gethostbyname();
1428 if { (eval echo configure
:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1430 eval "ac_cv_lib_$ac_lib_var=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 eval "ac_cv_lib_$ac_lib_var=no"
1438 LIBS
="$ac_save_LIBS"
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1445 echo "$ac_t""no" 1>&6
1450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1451 # socket/setsockopt and other routines are undefined under SCO ODT
1452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1453 # on later versions), says simon@lia.di.epfl.ch: it contains
1454 # gethostby* variants that don't use the nameserver (or something).
1455 # -lsocket must be given before -lnsl if both are needed.
1456 # We assume that if connect needs -lnsl, so does gethostbyname.
1457 echo $ac_n "checking for connect""... $ac_c" 1>&6
1458 echo "configure:1459: checking for connect" >&5
1459 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 /* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char connect(); below. */
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1475 /* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478 #if defined (__stub_connect) || defined (__stub___connect)
1486 if { (eval echo configure
:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1488 eval "ac_cv_func_connect=yes"
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 eval "ac_cv_func_connect=no"
1498 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 if test $ac_cv_func_connect = no
; then
1506 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1507 echo "configure:1508: checking for connect in -lsocket" >&5
1508 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 ac_save_LIBS
="$LIBS"
1513 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1526 if { (eval echo configure
:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1528 eval "ac_cv_lib_$ac_lib_var=yes"
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 eval "ac_cv_lib_$ac_lib_var=no"
1536 LIBS
="$ac_save_LIBS"
1539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1543 echo "$ac_t""no" 1>&6
1548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1549 echo $ac_n "checking for remove""... $ac_c" 1>&6
1550 echo "configure:1551: checking for remove" >&5
1551 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char remove(); below. */
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1567 /* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570 #if defined (__stub_remove) || defined (__stub___remove)
1578 if { (eval echo configure
:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1580 eval "ac_cv_func_remove=yes"
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 eval "ac_cv_func_remove=no"
1590 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1597 if test $ac_cv_func_remove = no
; then
1598 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1599 echo "configure:1600: checking for remove in -lposix" >&5
1600 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 ac_save_LIBS
="$LIBS"
1605 LIBS
="-lposix $LIBS"
1606 cat > conftest.
$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 eval "ac_cv_lib_$ac_lib_var=no"
1628 LIBS
="$ac_save_LIBS"
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1635 echo "$ac_t""no" 1>&6
1640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1642 echo "configure:1643: checking for shmat" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 cat > conftest.
$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char shmat(); below. */
1652 /* Override any gcc2 internal prototype to avoid an error. */
1653 /* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_shmat) || defined (__stub___shmat)
1670 if { (eval echo configure
:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1672 eval "ac_cv_func_shmat=yes"
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1677 eval "ac_cv_func_shmat=no"
1682 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1686 echo "$ac_t""no" 1>&6
1689 if test $ac_cv_func_shmat = no
; then
1690 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1691 echo "configure:1692: checking for shmat in -lipc" >&5
1692 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 ac_save_LIBS
="$LIBS"
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 /* Override any gcc2 internal prototype to avoid an error. */
1702 /* We use char because int might match the return type of a gcc2
1703 builtin and then its argument prototype would still apply. */
1710 if { (eval echo configure
:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1714 echo "configure: failed program was:" >&5
1715 cat conftest.
$ac_ext >&5
1717 eval "ac_cv_lib_$ac_lib_var=no"
1720 LIBS
="$ac_save_LIBS"
1723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1727 echo "$ac_t""no" 1>&6
1733 # Check for libraries that X11R6 Xt/Xaw programs need.
1734 ac_save_LDFLAGS
="$LDFLAGS"
1735 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1737 # check for ICE first), but we must link in the order -lSM -lICE or
1738 # we get undefined symbols. So assume we have SM if we have ICE.
1739 # These have to be linked with before -lX11, unlike the other
1740 # libraries we check for below, so use a different variable.
1741 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1742 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1743 echo "configure:1744: checking for IceConnectionNumber in -lICE" >&5
1744 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_save_LIBS
="$LIBS"
1749 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756 char IceConnectionNumber();
1759 IceConnectionNumber()
1762 if { (eval echo configure
:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 eval "ac_cv_lib_$ac_lib_var=no"
1772 LIBS
="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1779 echo "$ac_t""no" 1>&6
1782 LDFLAGS
="$ac_save_LDFLAGS"
1786 for ac_prog
in 'bison -y' byacc
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy
$ac_prog; ac_word
=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$YACC"; then
1796 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 for ac_dir
in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_YACC
="$ac_prog"
1810 YACC
="$ac_cv_prog_YACC"
1811 if test -n "$YACC"; then
1812 echo "$ac_t""$YACC" 1>&6
1814 echo "$ac_t""no" 1>&6
1817 test -n "$YACC" && break
1819 test -n "$YACC" || YACC
="yacc"
1821 # Extract the first word of "flex", so it can be a program name with args.
1822 set dummy flex
; ac_word
=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test -n "$LEX"; then
1829 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1831 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1833 for ac_dir
in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir
=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_LEX
="flex"
1841 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1844 LEX
="$ac_cv_prog_LEX"
1845 if test -n "$LEX"; then
1846 echo "$ac_t""$LEX" 1>&6
1848 echo "$ac_t""no" 1>&6
1851 if test -z "$LEXLIB"
1857 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1858 echo "configure:1859: checking for yywrap in -l$ac_lib" >&5
1859 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 ac_save_LIBS
="$LIBS"
1864 LIBS
="-l$ac_lib $LIBS"
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 /* Override any gcc2 internal prototype to avoid an error. */
1869 /* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
1877 if { (eval echo configure
:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1879 eval "ac_cv_lib_$ac_lib_var=yes"
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 eval "ac_cv_lib_$ac_lib_var=no"
1887 LIBS
="$ac_save_LIBS"
1890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1894 echo "$ac_t""no" 1>&6
1899 for ac_prog
in $LEX flex
lex
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy
$ac_prog; ac_word
=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$XLEX"; then
1909 ac_cv_prog_XLEX
="$XLEX" # Let the user override the test.
1911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1913 for ac_dir
in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir
=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_XLEX
="$ac_prog"
1923 XLEX
="$ac_cv_prog_XLEX"
1924 if test -n "$XLEX"; then
1925 echo "$ac_t""$XLEX" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 test -n "$XLEX" && break
1932 test -n "$XLEX" || XLEX
="none"
1934 if test "$XLEX" = "none"
1936 echo "*** Error: No suitable lex found. ***"
1937 echo " Please install the 'flex' package."
1940 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1941 echo "configure:1942: checking lex output file root" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 # The minimal lex program is just a single line: %%. But some broken lexes
1946 # (Solaris, I think it was) want two %% lines, so accommodate them.
1949 if test -f lex.yy.c
; then
1950 ac_cv_prog_lex_root
=lex.yy
1951 elif test -f lexyy.c
; then
1952 ac_cv_prog_lex_root
=lexyy
1954 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1958 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1959 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
1961 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether yytext is a pointer" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # POSIX says lex can declare yytext either as a pointer or an array; the
1967 # default is implementation-dependent. Figure out which it is, since
1968 # not all implementations provide the %pointer and %array declarations.
1969 ac_cv_prog_lex_yytext_pointer
=no
1970 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1971 ac_save_LIBS
="$LIBS"
1972 LIBS
="$LIBS $LEXLIB"
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 `cat $LEX_OUTPUT_ROOT.c`
1981 if { (eval echo configure
:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1983 ac_cv_prog_lex_yytext_pointer
=yes
1985 echo "configure: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1989 LIBS
="$ac_save_LIBS"
1990 rm -f "${LEX_OUTPUT_ROOT}.c"
1994 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1995 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1996 cat >> confdefs.h
<<\EOF
1997 #define YYTEXT_POINTER 1
2002 # Extract the first word of "ranlib", so it can be a program name with args.
2003 set dummy ranlib
; ac_word
=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 if test -n "$RANLIB"; then
2010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2014 for ac_dir
in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir
=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_RANLIB
="ranlib"
2022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2025 RANLIB
="$ac_cv_prog_RANLIB"
2026 if test -n "$RANLIB"; then
2027 echo "$ac_t""$RANLIB" 1>&6
2029 echo "$ac_t""no" 1>&6
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2042 # ./install, which can be erroneously created by make from ./install.sh.
2043 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2044 echo "configure:2045: checking for a BSD compatible install" >&5
2045 if test -z "$INSTALL"; then
2046 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2050 for ac_dir
in $PATH; do
2051 # Account for people who put trailing slashes in PATH elements.
2053 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2055 # OSF1 and SCO ODT 3.0 have their own names for install.
2056 # Don't use installbsd from OSF since it installs stuff as root
2058 for ac_prog
in ginstall scoinst
install; do
2059 if test -f $ac_dir/$ac_prog; then
2060 if test $ac_prog = install &&
2061 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2065 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL
="$ac_cv_path_install"
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL
="$ac_install_sh"
2086 echo "$ac_t""$INSTALL" 1>&6
2088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089 # It thinks the first close brace ends the variable substitution.
2090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2096 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether ln -s works" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2102 if ln -s X conftestdata
2>/dev
/null
2105 ac_cv_prog_LN_S
="ln -s"
2110 LN_S
="$ac_cv_prog_LN_S"
2111 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2112 echo "$ac_t""yes" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "c2man", so it can be a program name with args.
2118 set dummy c2man
; ac_word
=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test -n "$C2MAN"; then
2125 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2129 for ac_dir
in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir
=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_C2MAN
="c2man"
2137 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="\$(TOPSRCDIR)/tools/c2man.pl"
2140 C2MAN
="$ac_cv_prog_C2MAN"
2141 if test -n "$C2MAN"; then
2142 echo "$ac_t""$C2MAN" 1>&6
2144 echo "$ac_t""no" 1>&6
2147 # Extract the first word of "ldconfig", so it can be a program name with args.
2148 set dummy ldconfig
; ac_word
=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2159 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2162 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2163 ac_dummy
="/sbin:/usr/sbin:$PATH"
2164 for ac_dir
in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir
=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2172 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2176 LDCONFIG
="$ac_cv_path_LDCONFIG"
2177 if test -n "$LDCONFIG"; then
2178 echo "$ac_t""$LDCONFIG" 1>&6
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2184 echo "configure:2185: checking for Cygwin environment" >&5
2185 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2195 #define __CYGWIN__ __CYGWIN32__
2200 if { (eval echo configure
:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2213 echo "$ac_t""$ac_cv_cygwin" 1>&6
2215 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
2216 # Extract the first word of "dllwrap", so it can be a program name with args.
2217 set dummy dllwrap
; ac_word
=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 if test -n "$DLLWRAP"; then
2224 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
2226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2228 for ac_dir
in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir
=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_DLLWRAP
="dllwrap"
2236 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP
="false"
2239 DLLWRAP
="$ac_cv_prog_DLLWRAP"
2240 if test -n "$DLLWRAP"; then
2241 echo "$ac_t""$DLLWRAP" 1>&6
2243 echo "$ac_t""no" 1>&6
2247 for ac_prog
in lclint lint
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy
$ac_prog; ac_word
=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 if test -n "$LINT"; then
2257 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2261 for ac_dir
in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir
=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_LINT
="$ac_prog"
2271 LINT
="$ac_cv_prog_LINT"
2272 if test -n "$LINT"; then
2273 echo "$ac_t""$LINT" 1>&6
2275 echo "$ac_t""no" 1>&6
2278 test -n "$LINT" && break
2281 if test "$LINT" = "lint"
2283 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2288 if test "$CYGWIN" = "yes"
2290 LDCOMBINE
="ld -r --enable-stdcall-fixup"
2297 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sqrt in -lm" >&5
2299 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 ac_save_LIBS
="$LIBS"
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2317 if { (eval echo configure
:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 eval "ac_cv_lib_$ac_lib_var=no"
2327 LIBS
="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h
<<EOF
2335 #define $ac_tr_lib 1
2341 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2345 echo "configure:2346: checking for i386_set_ldt in -li386" >&5
2346 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS
="$LIBS"
2352 cat > conftest.
$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2358 char i386_set_ldt();
2364 if { (eval echo configure
:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.
$ac_ext >&5
2371 eval "ac_cv_lib_$ac_lib_var=no"
2374 LIBS
="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h
<<EOF
2382 #define $ac_tr_lib 1
2388 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2392 echo "configure:2393: checking for _oss_ioctl in -lossaudio" >&5
2393 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 ac_save_LIBS
="$LIBS"
2398 LIBS
="-lossaudio $LIBS"
2399 cat > conftest.
$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2411 if { (eval echo configure
:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 eval "ac_cv_lib_$ac_lib_var=no"
2421 LIBS
="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2428 cat >> confdefs.h
<<EOF
2429 #define $ac_tr_lib 1
2432 LIBS
="-lossaudio $LIBS"
2435 echo "$ac_t""no" 1>&6
2438 for ac_func
in iswalnum
2440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_func" >&5
2442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* System header to define __stub macros and hopefully few prototypes,
2449 which can conflict with char $ac_func(); below. */
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2458 /* The GNU C library defines this for functions which it implements
2459 to always fail with ENOSYS. Some functions are actually named
2460 something starting with __ and the normal name is an alias. */
2461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2469 if { (eval echo configure
:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2471 eval "ac_cv_func_$ac_func=yes"
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 eval "ac_cv_func_$ac_func=no"
2481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2484 cat >> confdefs.h
<<EOF
2485 #define $ac_tr_func 1
2489 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2491 echo "configure:2492: checking for iswalnum in -lw" >&5
2492 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 ac_save_LIBS
="$LIBS"
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* Override any gcc2 internal prototype to avoid an error. */
2502 /* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2510 if { (eval echo configure
:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2517 eval "ac_cv_lib_$ac_lib_var=no"
2520 LIBS
="$ac_save_LIBS"
2523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h
<<EOF
2528 #define $ac_tr_lib 1
2534 echo "$ac_t""no" 1>&6
2540 for ac_func
in gethostbyname
2542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_func" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2571 if { (eval echo configure
:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2573 eval "ac_cv_func_$ac_func=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2578 eval "ac_cv_func_$ac_func=no"
2583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h
<<EOF
2587 #define $ac_tr_func 1
2591 echo "$ac_t""no" 1>&6
2592 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2593 echo "configure:2594: checking for gethostbyname in -lnsl" >&5
2594 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_save_LIBS
="$LIBS"
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char gethostbyname();
2612 if { (eval echo configure
:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2619 eval "ac_cv_lib_$ac_lib_var=no"
2622 LIBS
="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h
<<EOF
2630 #define $ac_tr_lib 1
2636 echo "$ac_t""no" 1>&6
2642 for ac_func
in connect
2644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_func" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.
$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2673 if { (eval echo configure
:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2675 eval "ac_cv_func_$ac_func=yes"
2677 echo "configure: failed program was:" >&5
2678 cat conftest.
$ac_ext >&5
2680 eval "ac_cv_func_$ac_func=no"
2685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2688 cat >> confdefs.h
<<EOF
2689 #define $ac_tr_func 1
2693 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2695 echo "configure:2696: checking for connect in -lsocket" >&5
2696 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 ac_save_LIBS
="$LIBS"
2701 LIBS
="-lsocket $LIBS"
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2714 if { (eval echo configure
:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 eval "ac_cv_lib_$ac_lib_var=no"
2724 LIBS
="$ac_save_LIBS"
2727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h
<<EOF
2732 #define $ac_tr_lib 1
2735 LIBS
="-lsocket $LIBS"
2738 echo "$ac_t""no" 1>&6
2744 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2745 echo "configure:2746: checking for setrunelocale in -lxpg4" >&5
2746 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_save_LIBS
="$LIBS"
2752 cat > conftest.
$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* Override any gcc2 internal prototype to avoid an error. */
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2758 char setrunelocale();
2764 if { (eval echo configure
:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2766 eval "ac_cv_lib_$ac_lib_var=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.
$ac_ext >&5
2771 eval "ac_cv_lib_$ac_lib_var=no"
2774 LIBS
="$ac_save_LIBS"
2777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2781 cat >> confdefs.h
<<EOF
2782 #define $ac_tr_lib 1
2788 echo "$ac_t""no" 1>&6
2791 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2792 echo "configure:2793: checking for mmap in -lmmap" >&5
2793 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 ac_save_LIBS
="$LIBS"
2799 cat > conftest.
$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2811 if { (eval echo configure
:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.
$ac_ext >&5
2818 eval "ac_cv_lib_$ac_lib_var=no"
2821 LIBS
="$ac_save_LIBS"
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828 cat >> confdefs.h
<<EOF
2829 #define $ac_tr_lib 1
2835 echo "$ac_t""no" 1>&6
2838 for ac_func
in openpty
2840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_func" >&5
2842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2845 cat > conftest.
$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848 /* System header to define __stub macros and hopefully few prototypes,
2849 which can conflict with char $ac_func(); below. */
2851 /* Override any gcc2 internal prototype to avoid an error. */
2852 /* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2858 /* The GNU C library defines this for functions which it implements
2859 to always fail with ENOSYS. Some functions are actually named
2860 something starting with __ and the normal name is an alias. */
2861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2869 if { (eval echo configure
:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2871 eval "ac_cv_func_$ac_func=yes"
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 eval "ac_cv_func_$ac_func=no"
2881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_func 1
2889 echo "$ac_t""no" 1>&6
2890 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2891 echo "configure:2892: checking for openpty in -lutil" >&5
2892 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 ac_save_LIBS
="$LIBS"
2898 cat > conftest.
$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 /* Override any gcc2 internal prototype to avoid an error. */
2902 /* We use char because int might match the return type of a gcc2
2903 builtin and then its argument prototype would still apply. */
2910 if { (eval echo configure
:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2912 eval "ac_cv_lib_$ac_lib_var=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 eval "ac_cv_lib_$ac_lib_var=no"
2920 LIBS
="$ac_save_LIBS"
2923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 cat >> confdefs.h
<<\EOF
2926 #define HAVE_OPENPTY 1
2932 echo "$ac_t""no" 1>&6
2939 for ac_hdr
in dlfcn.h
2941 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure
:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2957 eval "ac_cv_header_$ac_safe=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 eval "ac_cv_header_$ac_safe=no"
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h
<<EOF
2971 #define $ac_tr_hdr 1
2973 for ac_func
in dlopen
2975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_func" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.
$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $ac_func(); below. */
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2993 /* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3004 if { (eval echo configure
:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3006 eval "ac_cv_func_$ac_func=yes"
3008 echo "configure: failed program was:" >&5
3009 cat conftest.
$ac_ext >&5
3011 eval "ac_cv_func_$ac_func=no"
3016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3019 cat >> confdefs.h
<<EOF
3020 #define $ac_tr_func 1
3022 cat >> confdefs.h
<<\EOF
3023 #define HAVE_DL_API 1
3027 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3029 echo "configure:3030: checking for dlopen in -ldl" >&5
3030 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 ac_save_LIBS
="$LIBS"
3036 cat > conftest.
$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 /* We use char because int might match the return type of a gcc2
3041 builtin and then its argument prototype would still apply. */
3048 if { (eval echo configure
:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3050 eval "ac_cv_lib_$ac_lib_var=yes"
3052 echo "configure: failed program was:" >&5
3053 cat conftest.
$ac_ext >&5
3055 eval "ac_cv_lib_$ac_lib_var=no"
3058 LIBS
="$ac_save_LIBS"
3061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 cat >> confdefs.h
<<\EOF
3064 #define HAVE_DL_API 1
3069 echo "$ac_t""no" 1>&6
3079 echo "$ac_t""no" 1>&6
3100 if test "$have_x" = "yes"
3103 ac_save_CPPFLAGS
="$CPPFLAGS"
3104 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3106 for ac_hdr
in X11
/xpm.h
3108 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_hdr" >&5
3111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 cat > conftest.
$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120 { (eval echo configure
:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122 if test -z "$ac_err"; then
3124 eval "ac_cv_header_$ac_safe=yes"
3127 echo "configure: failed program was:" >&5
3128 cat conftest.
$ac_ext >&5
3130 eval "ac_cv_header_$ac_safe=no"
3134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3137 cat >> confdefs.h
<<EOF
3138 #define $ac_tr_hdr 1
3140 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3141 echo "configure:3142: checking for XpmCreatePixmapFromData in -lXpm" >&5
3142 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 ac_save_LIBS
="$LIBS"
3147 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3149 cat > conftest.
$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 /* We use char because int might match the return type of a gcc2
3154 builtin and then its argument prototype would still apply. */
3155 char XpmCreatePixmapFromData();
3158 XpmCreatePixmapFromData()
3161 if { (eval echo configure
:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3163 eval "ac_cv_lib_$ac_lib_var=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 eval "ac_cv_lib_$ac_lib_var=no"
3171 LIBS
="$ac_save_LIBS"
3174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 cat >> confdefs.h
<<\EOF
3177 #define HAVE_LIBXXPM 1
3179 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3181 echo "$ac_t""no" 1>&6
3186 echo "$ac_t""no" 1>&6
3187 echo "Redhat : xpm xpm-devel"
3188 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3190 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3192 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3193 echo "the directory /contrib/libraries."
3202 for ac_hdr
in X11
/Xlib.h
3204 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_hdr" >&5
3207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3216 { (eval echo configure
:3217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3218 if test -z "$ac_err"; then
3220 eval "ac_cv_header_$ac_safe=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.
$ac_ext >&5
3226 eval "ac_cv_header_$ac_safe=no"
3230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3233 cat >> confdefs.h
<<EOF
3234 #define $ac_tr_hdr 1
3237 for ac_hdr
in X11
/extensions
/XShm.h
3239 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3251 { (eval echo configure
:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3253 if test -z "$ac_err"; then
3255 eval "ac_cv_header_$ac_safe=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3261 eval "ac_cv_header_$ac_safe=no"
3265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3268 cat >> confdefs.h
<<EOF
3269 #define $ac_tr_hdr 1
3271 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3272 echo "configure:3273: checking for XShmQueryExtension in -lXext" >&5
3273 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 ac_save_LIBS
="$LIBS"
3278 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3279 cat > conftest.
$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char XShmQueryExtension();
3288 XShmQueryExtension()
3291 if { (eval echo configure
:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3293 eval "ac_cv_lib_$ac_lib_var=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3298 eval "ac_cv_lib_$ac_lib_var=no"
3301 LIBS
="$ac_save_LIBS"
3304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h
<<\EOF
3307 #define HAVE_LIBXXSHM 1
3311 echo "$ac_t""no" 1>&6
3316 echo "$ac_t""no" 1>&6
3317 echo "configure: warning: Xshm extension not found!!" 1>&2
3323 for ac_hdr
in X11
/Xlib.h X11
/extensions
/shape.h
3325 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_hdr" >&5
3328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3336 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure
:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3339 if test -z "$ac_err"; then
3341 eval "ac_cv_header_$ac_safe=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.
$ac_ext >&5
3347 eval "ac_cv_header_$ac_safe=no"
3351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3354 cat >> confdefs.h
<<EOF
3355 #define $ac_tr_hdr 1
3357 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3358 echo "configure:3359: checking for XShapeQueryExtension in -lXext" >&5
3359 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 ac_save_LIBS
="$LIBS"
3364 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char XShapeQueryExtension();
3374 XShapeQueryExtension()
3377 if { (eval echo configure
:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3379 eval "ac_cv_lib_$ac_lib_var=yes"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.
$ac_ext >&5
3384 eval "ac_cv_lib_$ac_lib_var=no"
3387 LIBS
="$ac_save_LIBS"
3390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 cat >> confdefs.h
<<\EOF
3393 #define HAVE_LIBXSHAPE 1
3397 echo "$ac_t""no" 1>&6
3402 echo "$ac_t""no" 1>&6
3403 echo "configure: warning: XShape extension found!!" 1>&2
3409 for ac_hdr
in X11
/extensions
/xf86dga.h
3411 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_hdr" >&5
3414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 cat > conftest.
$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3422 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3423 { (eval echo configure
:3424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3424 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3425 if test -z "$ac_err"; then
3427 eval "ac_cv_header_$ac_safe=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 eval "ac_cv_header_$ac_safe=no"
3437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3440 cat >> confdefs.h
<<EOF
3441 #define $ac_tr_hdr 1
3443 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3444 echo "configure:3445: checking for XDGAQueryExtension in -lXxf86dga" >&5
3445 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS
="$LIBS"
3450 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3458 char XDGAQueryExtension();
3461 XDGAQueryExtension()
3464 if { (eval echo configure
:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 eval "ac_cv_lib_$ac_lib_var=no"
3474 LIBS
="$ac_save_LIBS"
3477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 cat >> confdefs.h
<<\EOF
3480 #define HAVE_LIBXXF86DGA2 1
3483 cat >> confdefs.h
<<\EOF
3484 #define HAVE_LIBXXF86DGA 1
3487 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3488 DGA_SRCS
='$(DGA_SRCS)'
3489 DGA2_SRCS
='$(DGA2_SRCS)'
3492 echo "$ac_t""no" 1>&6
3493 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3494 echo "configure:3495: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3495 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS
="$LIBS"
3500 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char XF86DGAQueryExtension();
3511 XF86DGAQueryExtension()
3514 if { (eval echo configure
:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS
="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 cat >> confdefs.h
<<\EOF
3530 #define HAVE_LIBXXF86DGA 1
3533 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3534 DGA_SRCS
='$(DGA_SRCS)'
3537 echo "$ac_t""no" 1>&6
3545 echo "$ac_t""no" 1>&6
3546 echo "configure: warning: DGA extension not found!!" 1>&2
3552 for ac_hdr
in X11
/extensions
/xf86vmode.h
3554 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3556 echo "configure:3557: checking for $ac_hdr" >&5
3557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3566 { (eval echo configure
:3567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3568 if test -z "$ac_err"; then
3570 eval "ac_cv_header_$ac_safe=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3576 eval "ac_cv_header_$ac_safe=no"
3580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3583 cat >> confdefs.h
<<EOF
3584 #define $ac_tr_hdr 1
3586 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3587 echo "configure:3588: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3588 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 ac_save_LIBS
="$LIBS"
3593 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3595 cat > conftest.
$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char XF86VidModeQueryExtension();
3604 XF86VidModeQueryExtension()
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_lib_$ac_lib_var=no"
3617 LIBS
="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 cat >> confdefs.h
<<\EOF
3623 #define HAVE_LIBXXF86VM 1
3626 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3629 echo "$ac_t""no" 1>&6
3634 echo "$ac_t""no" 1>&6
3635 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3641 for ac_hdr
in X11
/extensions
/Xvlib.h
3643 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3645 echo "configure:3646: checking for $ac_hdr" >&5
3646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 cat > conftest.
$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3655 { (eval echo configure
:3656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3657 if test -z "$ac_err"; then
3659 eval "ac_cv_header_$ac_safe=yes"
3662 echo "configure: failed program was:" >&5
3663 cat conftest.
$ac_ext >&5
3665 eval "ac_cv_header_$ac_safe=no"
3669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3670 echo "$ac_t""yes" 1>&6
3671 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3672 cat >> confdefs.h
<<EOF
3673 #define $ac_tr_hdr 1
3675 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3676 echo "configure:3677: checking for XvShmCreateImage in -lXv" >&5
3677 ac_lib_var
=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_save_LIBS
="$LIBS"
3682 LIBS
="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3684 cat > conftest.
$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* Override any gcc2 internal prototype to avoid an error. */
3688 /* We use char because int might match the return type of a gcc2
3689 builtin and then its argument prototype would still apply. */
3690 char XvShmCreateImage();
3696 if { (eval echo configure
:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3698 eval "ac_cv_lib_$ac_lib_var=yes"
3700 echo "configure: failed program was:" >&5
3701 cat conftest.
$ac_ext >&5
3703 eval "ac_cv_lib_$ac_lib_var=no"
3706 LIBS
="$ac_save_LIBS"
3709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3710 echo "$ac_t""yes" 1>&6
3711 cat >> confdefs.h
<<\EOF
3712 #define HAVE_XVIDEO 1
3715 X_PRE_LIBS
="$X_PRE_LIBS -lXv"
3718 echo "$ac_t""no" 1>&6
3723 echo "$ac_t""no" 1>&6
3724 echo "configure: warning: XVideo extension not found !!" 1>&2
3733 echo "$ac_t""no" 1>&6
3737 if test $OPENGL = "yes" -o $OPENGL = "normal"
3739 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/glext.h
3741 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_hdr" >&5
3744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3753 { (eval echo configure
:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3755 if test -z "$ac_err"; then
3757 eval "ac_cv_header_$ac_safe=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.
$ac_ext >&5
3763 eval "ac_cv_header_$ac_safe=no"
3767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3770 cat >> confdefs.h
<<EOF
3771 #define $ac_tr_hdr 1
3775 echo "$ac_t""no" 1>&6
3779 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3781 echo $ac_n "checking "for up-to-date OpenGL version
"""... $ac_c" 1>&6
3782 echo "configure:3783: checking "for up-to-date OpenGL version
"" >&5
3783 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 cat > conftest.
$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3791 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3794 if { (eval echo configure
:3795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 wine_cv_opengl_version_OK
="yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.
$ac_ext >&5
3801 wine_cv_opengl_version_OK
="no"
3808 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3810 echo $ac_n "checking "for thread-safe OpenGL version
"""... $ac_c" 1>&6
3811 echo "configure:3812: checking "for thread-safe OpenGL version
"" >&5
3812 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 pthread_getspecific();
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 wine_cv_opengl_version_threadsafe
="yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 wine_cv_opengl_version_threadsafe
="no"
3839 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3841 if test "$wine_cv_opengl_version_OK" = "yes" -a \
( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
3843 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3844 echo "configure:3845: checking for glXCreateContext in -lGL" >&5
3845 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 ac_save_LIBS
="$LIBS"
3850 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3851 cat > conftest.
$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857 char glXCreateContext();
3863 if { (eval echo configure
:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3865 eval "ac_cv_lib_$ac_lib_var=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.
$ac_ext >&5
3870 eval "ac_cv_lib_$ac_lib_var=no"
3873 LIBS
="$ac_save_LIBS"
3876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3878 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3879 MESA_SRCS
='$(MESA_SRCS)'
3882 echo "$ac_t""no" 1>&6
3886 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3889 OPENGLFILES
='$(OPENGLFILES)'
3890 cat >> confdefs.h
<<\EOF
3891 #define HAVE_OPENGL 1
3895 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3896 echo "configure:3897: checking for glXGetProcAddressARB in -lGL" >&5
3897 ac_lib_var
=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 ac_save_LIBS
="$LIBS"
3902 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909 char glXGetProcAddressARB();
3912 glXGetProcAddressARB()
3915 if { (eval echo configure
:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3917 eval "ac_cv_lib_$ac_lib_var=yes"
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 eval "ac_cv_lib_$ac_lib_var=no"
3925 LIBS
="$ac_save_LIBS"
3928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3930 cat >> confdefs.h
<<\EOF
3931 #define HAVE_GLX_GETPROCADDRESS 1
3935 echo "$ac_t""no" 1>&6
3939 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3941 echo $ac_n "checking "for OpenGL extension functions prototypes
"""... $ac_c" 1>&6
3942 echo "configure:3943: checking "for OpenGL extension functions prototypes
"" >&5
3943 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3950 #ifdef HAVE_GL_GLEXT_H
3951 # include <GL/glext.h>
3955 PFNGLCOLORTABLEEXTPROC test_proc;
3958 if { (eval echo configure
:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3960 wine_cv_extension_prototypes
="yes"
3962 echo "configure: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3965 wine_cv_extension_prototypes
="no"
3972 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3973 if test $wine_cv_extension_prototypes = "yes"
3975 cat >> confdefs.h
<<\EOF
3976 #define HAVE_GLEXT_PROTOTYPES 1
3981 OPENGL32_DLL
=opengl32
3988 CPPFLAGS
="$ac_save_CPPFLAGS"
3997 if test "$CURSES" = "yes"
3999 for ac_hdr
in ncurses.h
4001 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_hdr" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.
$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4012 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4013 { (eval echo configure
:4014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4014 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4015 if test -z "$ac_err"; then
4017 eval "ac_cv_header_$ac_safe=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4023 eval "ac_cv_header_$ac_safe=no"
4027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6
4029 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4030 cat >> confdefs.h
<<EOF
4031 #define $ac_tr_hdr 1
4035 echo "$ac_t""no" 1>&6
4039 if test "$ac_cv_header_ncurses_h" = "yes"
4041 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4042 echo "configure:4043: checking for waddch in -lncurses" >&5
4043 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 ac_save_LIBS
="$LIBS"
4048 LIBS
="-lncurses $LIBS"
4049 cat > conftest.
$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS
="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4078 cat >> confdefs.h
<<EOF
4079 #define $ac_tr_lib 1
4082 LIBS
="-lncurses $LIBS"
4085 echo "$ac_t""no" 1>&6
4089 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4091 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4092 echo "configure:4093: checking for resizeterm in -lncurses" >&5
4093 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 ac_save_LIBS
="$LIBS"
4098 LIBS
="-lncurses $LIBS"
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* Override any gcc2 internal prototype to avoid an error. */
4103 /* We use char because int might match the return type of a gcc2
4104 builtin and then its argument prototype would still apply. */
4111 if { (eval echo configure
:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4113 eval "ac_cv_lib_$ac_lib_var=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 eval "ac_cv_lib_$ac_lib_var=no"
4121 LIBS
="$ac_save_LIBS"
4124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4126 cat >> confdefs.h
<<\EOF
4127 #define HAVE_RESIZETERM 1
4131 echo "$ac_t""no" 1>&6
4134 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4135 echo "configure:4136: checking for getbkgd in -lncurses" >&5
4136 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS
="$LIBS"
4141 LIBS
="-lncurses $LIBS"
4142 cat > conftest.
$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure
:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS
="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 cat >> confdefs.h
<<\EOF
4170 #define HAVE_GETBKGD 1
4174 echo "$ac_t""no" 1>&6
4178 for ac_hdr
in curses.h
4180 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_hdr" >&5
4183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.
$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4191 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4192 { (eval echo configure
:4193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4193 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4194 if test -z "$ac_err"; then
4196 eval "ac_cv_header_$ac_safe=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 eval "ac_cv_header_$ac_safe=no"
4206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4209 cat >> confdefs.h
<<EOF
4210 #define $ac_tr_hdr 1
4214 echo "$ac_t""no" 1>&6
4218 if test "$ac_cv_header_curses_h" = "yes"
4220 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4221 echo "configure:4222: checking for waddch in -lcurses" >&5
4222 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 ac_save_LIBS
="$LIBS"
4227 LIBS
="-lcurses $LIBS"
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4240 if { (eval echo configure
:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.
$ac_ext >&5
4247 eval "ac_cv_lib_$ac_lib_var=no"
4250 LIBS
="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4257 cat >> confdefs.h
<<EOF
4258 #define $ac_tr_lib 1
4261 LIBS
="-lcurses $LIBS"
4264 echo "$ac_t""no" 1>&6
4267 if test "$ac_cv_lib_curses_waddch" = "yes"
4269 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4270 echo "configure:4271: checking for resizeterm in -lcurses" >&5
4271 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS
="$LIBS"
4276 LIBS
="-lcurses $LIBS"
4277 cat > conftest.
$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4289 if { (eval echo configure
:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS
="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 cat >> confdefs.h
<<\EOF
4305 #define HAVE_RESIZETERM 1
4309 echo "$ac_t""no" 1>&6
4312 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4313 echo "configure:4314: checking for getbkgd in -lcurses" >&5
4314 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 ac_save_LIBS
="$LIBS"
4319 LIBS
="-lcurses $LIBS"
4320 cat > conftest.
$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4332 if { (eval echo configure
:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4334 eval "ac_cv_lib_$ac_lib_var=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.
$ac_ext >&5
4339 eval "ac_cv_lib_$ac_lib_var=no"
4342 LIBS
="$ac_save_LIBS"
4345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 cat >> confdefs.h
<<\EOF
4348 #define HAVE_GETBKGD 1
4352 echo "$ac_t""no" 1>&6
4360 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
4361 echo "configure:4362: checking "for GNU style IPX support
"" >&5
4362 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 #include <sys/socket.h>
4369 #include <netipx/ipx.h>
4371 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4374 if { (eval echo configure
:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4376 ac_cv_c_ipx_gnu
="yes"
4378 echo "configure: failed program was:" >&5
4379 cat conftest.
$ac_ext >&5
4381 ac_cv_c_ipx_gnu
="no"
4387 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4388 if test "$ac_cv_c_ipx_gnu" = "yes"
4390 cat >> confdefs.h
<<\EOF
4391 #define HAVE_IPX_GNU 1
4396 if test "$ac_cv_c_ipx_gnu" = "no"
4398 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4399 echo "configure:4400: checking "for linux style IPX support
"" >&5
4400 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 cat > conftest.
$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 #include <sys/socket.h>
4407 #include <asm/types.h>
4408 #include <linux/ipx.h>
4410 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4413 if { (eval echo configure
:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4415 ac_cv_c_ipx_linux
="yes"
4417 echo "configure: failed program was:" >&5
4418 cat conftest.
$ac_ext >&5
4420 ac_cv_c_ipx_linux
="no"
4426 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4427 if test "$ac_cv_c_ipx_linux" = "yes"
4429 cat >> confdefs.h
<<\EOF
4430 #define HAVE_IPX_LINUX 1
4436 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4438 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_hdr" >&5
4441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.
$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4449 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4450 { (eval echo configure
:4451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4451 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4452 if test -z "$ac_err"; then
4454 eval "ac_cv_header_$ac_safe=yes"
4457 echo "configure: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4460 eval "ac_cv_header_$ac_safe=no"
4464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4465 echo "$ac_t""yes" 1>&6
4466 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4467 cat >> confdefs.h
<<EOF
4468 #define $ac_tr_hdr 1
4472 echo "$ac_t""no" 1>&6
4477 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4478 echo "configure:4479: checking "for Open Sound System
"" >&5
4479 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 cat > conftest.
$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4486 #if defined(HAVE_SYS_SOUNDCARD_H)
4487 #include <sys/soundcard.h>
4488 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4489 #include <machine/soundcard.h>
4490 #elif defined(HAVE_SOUNDCARD_H)
4491 #include <soundcard.h>
4497 /* check for one of the Open Sound System specific SNDCTL_ defines */
4498 #if !defined(SNDCTL_DSP_STEREO)
4499 #error No open sound system
4504 if { (eval echo configure
:4505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4506 ac_cv_c_opensoundsystem
="yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 ac_cv_c_opensoundsystem
="no"
4516 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4518 if test "$ac_cv_c_opensoundsystem" = "yes"
4520 cat >> confdefs.h
<<\EOF
4526 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4527 echo "configure:4528: checking "for Open Sound System
/MIDI interface
"" >&5
4528 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4535 #if defined(HAVE_SYS_SOUNDCARD_H)
4536 #include <sys/soundcard.h>
4537 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4538 #include <machine/soundcard.h>
4539 #elif defined(HAVE_SOUNDCARD_H)
4540 #include <soundcard.h>
4546 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4547 #if !defined(SNDCTL_SEQ_SYNC)
4548 #error No open sound system MIDI interface
4553 if { (eval echo configure
:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4555 ac_cv_c_opensoundsystem_midi
="yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4560 ac_cv_c_opensoundsystem_midi
="no"
4565 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4567 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4569 cat >> confdefs.h
<<\EOF
4570 #define HAVE_OSS_MIDI 1
4575 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4578 if test "x${GCC}" = "xyes"
4580 CFLAGS
="$CFLAGS -Wall"
4581 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4582 echo "configure:4583: checking "for gcc strength-reduce bug
"" >&5
4583 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 if test "$cross_compiling" = yes; then
4587 ac_cv_c_gcc_strength_bug
="yes"
4589 cat > conftest.
$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4593 int L[4] = {0,1,2,3};
4595 static int Array[3];
4598 for(i=0; i<B; i++) Array[i] = i - 3;
4599 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4602 exit( Array[1] != -2 || L[2] != 3);
4605 if { (eval echo configure
:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4607 ac_cv_c_gcc_strength_bug
="no"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4612 ac_cv_c_gcc_strength_bug
="yes"
4619 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4620 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4622 CFLAGS
="$CFLAGS -fno-strength-reduce"
4625 echo $ac_n "checking "for gcc
-mpreferred-stack-boundary=2 support
"""... $ac_c" 1>&6
4626 echo "configure:4627: checking "for gcc
-mpreferred-stack-boundary=2 support
"" >&5
4627 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 saved_cflags
=$CFLAGS
4631 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
4632 cat > conftest.
$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4640 if { (eval echo configure
:4641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4642 ac_cv_c_gcc_stack_boundary
="yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.
$ac_ext >&5
4647 ac_cv_c_gcc_stack_boundary
="no"
4650 CFLAGS
=$saved_cflags
4654 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
4655 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
4657 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
4662 echo $ac_n "checking "whether .
type must sit inside a .def directive
"""... $ac_c" 1>&6
4663 echo "configure:4664: checking "whether .
type must sit inside a .def directive
"" >&5
4664 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4668 LIBS
="conftest_asm.s $LIBS"
4669 cat > conftest_asm.s
<<EOF
4671 .def _ac_test; .scl 2; .type 32; .endef
4675 cat > conftest.
$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4683 if { (eval echo configure
:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4685 ac_cv_c_type_in_def
="yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.
$ac_ext >&5
4690 ac_cv_c_type_in_def
="no"
4696 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
4697 if test "$ac_cv_c_type_in_def" = "yes"
4699 cat >> confdefs.h
<<\EOF
4700 #define NEED_TYPE_IN_DEF 1
4706 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4707 echo "configure:4708: checking "whether external symbols need an underscore prefix
"" >&5
4708 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4712 LIBS
="conftest_asm.s $LIBS"
4713 cat > conftest_asm.s
<<EOF
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 if (ac_test) return 1
4726 if { (eval echo configure
:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4728 ac_cv_c_extern_prefix
="yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 ac_cv_c_extern_prefix
="no"
4739 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4740 if test "$ac_cv_c_extern_prefix" = "yes"
4742 cat >> confdefs.h
<<\EOF
4743 #define NEED_UNDERSCORE_PREFIX 1
4749 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4750 echo "configure:4751: checking "whether assembler accepts .string
"" >&5
4751 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4755 LIBS
="conftest_asm.s $LIBS"
4756 cat > conftest_asm.s
<<EOF
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4767 if { (eval echo configure
:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4769 ac_cv_c_asm_string
="yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 ac_cv_c_asm_string
="no"
4780 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4781 if test "$ac_cv_c_asm_string" = "yes"
4783 cat >> confdefs.h
<<\EOF
4784 #define HAVE_ASM_STRING 1
4792 if test "$LIBEXT" = "so"
4794 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4795 echo "configure:4796: checking "whether we can build a Linux dll
"" >&5
4796 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 saved_cflags
=$CFLAGS
4800 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
4801 cat > conftest.
$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4809 if { (eval echo configure
:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4811 ac_cv_c_dll_linux
="yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4816 ac_cv_c_dll_linux
="no"
4819 CFLAGS
=$saved_cflags
4823 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4824 if test "$ac_cv_c_dll_linux" = "yes"
4826 LDSHARED
="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
4827 LDDLLFLAGS
="-Wl,-Bsymbolic"
4829 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4830 echo "configure:4831: checking whether we can build a UnixWare (Solaris) dll" >&5
4831 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 saved_cflags
=$CFLAGS
4835 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
4836 cat > conftest.
$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4844 if { (eval echo configure
:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4846 ac_cv_c_dll_unixware
="yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 ac_cv_c_dll_unixware
="no"
4854 CFLAGS
=$saved_cflags
4858 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4859 if test "$ac_cv_c_dll_unixware" = "yes"
4861 LDSHARED
="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
4862 LDDLLFLAGS
="-Wl,-B,symbolic"
4864 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4865 echo "configure:4866: checking "whether we can build a NetBSD dll
"" >&5
4866 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 saved_cflags
=$CFLAGS
4870 CFLAGS
="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
4871 cat > conftest.
$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4879 if { (eval echo configure
:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4881 ac_cv_c_dll_netbsd
="yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.
$ac_ext >&5
4886 ac_cv_c_dll_netbsd
="no"
4889 CFLAGS
=$saved_cflags
4893 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4894 if test "$ac_cv_c_dll_netbsd" = "yes"
4896 LDSHARED
="\$(CC) -Wl,-Bshareable,-Bforcearchive"
4897 LDDLLFLAGS
="" #FIXME
4901 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4904 if test "$DLLWRAP" = "dllwrap"; then
4905 if test "$CYGWIN" = "yes"; then
4906 echo "*** use dllwrap for building shared library."
4913 if test "$LIBEXT" = "a"; then
4914 echo "*** It is currently not possible to build WINE without shared"
4915 echo "*** library (.so) support to allow transparent switch between .so"
4916 echo "*** and .dll files."
4917 echo "*** If you are using Linux, you will need a newer binutils."
4924 if test "$LIBEXT" = "so"; then
4926 DLL_LINK
="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
4927 LDPATH
="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
4928 elif test "$LIBEXT" = "dll"; then
4929 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
4930 DLL_LINK
="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
4931 LDPATH
="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
4933 DLL_LINK
="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
4934 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4935 echo "configure:4936: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4936 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 saved_cflags
=$CFLAGS
4940 CFLAGS
="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4941 cat > conftest.
$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4949 if { (eval echo configure
:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4951 ac_cv_c_whole_archive
="yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4956 ac_cv_c_whole_archive
="no"
4959 CFLAGS
=$saved_cflags
4963 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4964 if test "$ac_cv_c_whole_archive" = "yes"
4966 DLL_LINK
="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4968 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4969 echo "configure:4970: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4970 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 saved_cflags
=$CFLAGS
4974 CFLAGS
="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4975 cat > conftest.
$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4983 if { (eval echo configure
:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4985 ac_cv_c_allextract
="yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.
$ac_ext >&5
4990 ac_cv_c_allextract
="no"
4993 CFLAGS
=$saved_cflags
4997 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4998 if test "$ac_cv_c_allextract" = "yes"
5000 DLL_LINK
="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5013 wine_cv_libc_reentrant
=no
5014 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
5015 echo "configure:5016: checking "for reentrant libc
: __errno_location
"" >&5
5016 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 if test "$cross_compiling" = yes; then
5020 wine_cv_libc_r__errno_location
=yes
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5027 int *__errno_location(){return &myerrno;}
5028 main(){connect(0,buf,255); exit(!myerrno);}
5030 if { (eval echo configure
:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5032 wine_cv_libc_r__errno_location
=yes
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 wine_cv_libc_r__errno_location
=no
5045 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
5046 if test "$wine_cv_libc_r__errno_location" = "yes"
5048 cat >> confdefs.h
<<\EOF
5049 #define HAVE__ERRNO_LOCATION 1
5052 wine_cv_libc_reentrant
=__errno_location
5054 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
5055 echo "configure:5056: checking "for reentrant libc
: __error
"" >&5
5056 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 if test "$cross_compiling" = yes; then
5060 wine_cv_libc_r__error
=yes
5062 cat > conftest.
$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5067 int *__error(){return &myerrno;}
5068 main(){connect(0,buf,255); exit(!myerrno);}
5070 if { (eval echo configure
:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5072 wine_cv_libc_r__error
=yes
5074 echo "configure: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5077 wine_cv_libc_r__error
=no
5085 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
5086 if test "$wine_cv_libc_r__error" = "yes"
5088 cat >> confdefs.h
<<\EOF
5089 #define HAVE__ERROR 1
5092 wine_cv_libc_reentrant
=__error
5094 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
5095 echo "configure:5096: checking "for reentrant libc
: ___errno
"" >&5
5096 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 if test "$cross_compiling" = yes; then
5100 wine_cv_libc_r___errno
=yes
5102 cat > conftest.
$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 int *___errno(){return &myerrno;}
5108 main(){connect(0,buf,255); exit(!myerrno);}
5110 if { (eval echo configure
:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5112 wine_cv_libc_r___errno
=yes
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 wine_cv_libc_r___errno
=no
5125 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5126 if test "$wine_cv_libc_r___errno" = "yes"
5128 cat >> confdefs.h
<<\EOF
5129 #define HAVE___ERRNO 1
5132 wine_cv_libc_reentrant
=___errno
5134 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
5135 echo "configure:5136: checking "for reentrant libc
: __thr_errno
"" >&5
5136 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 if test "$cross_compiling" = yes; then
5140 wine_cv_libc_r__thr_errno
=yes
5142 cat > conftest.
$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5147 int *__thr_errno(){return &myerrno;}
5148 main(){connect(0,buf,255); exit(!myerrno);}
5150 if { (eval echo configure
:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5152 wine_cv_libc_r__thr_errno
=yes
5154 echo "configure: failed program was:" >&5
5155 cat conftest.
$ac_ext >&5
5157 wine_cv_libc_r__thr_errno
=no
5165 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
5166 if test "$wine_cv_libc_r__thr_errno" = "yes"
5168 cat >> confdefs.h
<<\EOF
5169 #define HAVE__THR_ERRNO 1
5172 wine_cv_libc_reentrant
=__thr_errno
5174 if test "$wine_cv_libc_reentrant" = "no"
5176 cat >> confdefs.h
<<\EOF
5177 #define NO_REENTRANT_LIBC 1
5183 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5185 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
5186 echo "configure:5187: checking "for reentrant X libraries
"" >&5
5187 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 if test "x$with_reentrant_x" = "xno"
5192 wine_cv_x_reentrant
=no
5195 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
5196 if test -r $dir/libX11.so
; then
5197 libX11_check
="-D $dir/libX11.so"
5200 if test -r $dir/libX11.a
; then
5201 libX11_check
="$dir/libX11.a"
5205 if test "$libX11_check" != "none"; then
5206 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
5208 wine_cv_x_reentrant
=yes
5210 wine_cv_x_reentrant
=no
5213 wine_cv_x_reentrant
=unknown
5218 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5220 wine_cv_x_reentrant
=no
5222 if test "$wine_cv_x_reentrant" = "no"
5224 cat >> confdefs.h
<<\EOF
5225 #define NO_REENTRANT_X11 1
5231 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5232 echo "configure:5233: checking whether byte ordering is bigendian" >&5
5233 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5236 ac_cv_c_bigendian
=unknown
5237 # See if sys/param.h defines the BYTE_ORDER macro.
5238 cat > conftest.
$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 #include <sys/types.h>
5242 #include <sys/param.h>
5245 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5250 if { (eval echo configure
:5251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5252 # It does; now see whether it defined to BIG_ENDIAN or not.
5253 cat > conftest.
$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 #include <sys/types.h>
5257 #include <sys/param.h>
5260 #if BYTE_ORDER != BIG_ENDIAN
5265 if { (eval echo configure
:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5267 ac_cv_c_bigendian
=yes
5269 echo "configure: failed program was:" >&5
5270 cat conftest.
$ac_ext >&5
5272 ac_cv_c_bigendian
=no
5276 echo "configure: failed program was:" >&5
5277 cat conftest.
$ac_ext >&5
5280 if test $ac_cv_c_bigendian = unknown
; then
5281 if test "$cross_compiling" = yes; then
5282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5288 /* Are we little or big endian? From Harbison&Steele. */
5292 char c[sizeof (long)];
5295 exit (u.c[sizeof (long) - 1] == 1);
5298 if { (eval echo configure
:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5300 ac_cv_c_bigendian
=no
5302 echo "configure: failed program was:" >&5
5303 cat conftest.
$ac_ext >&5
5305 ac_cv_c_bigendian
=yes
5313 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5314 if test $ac_cv_c_bigendian = yes; then
5315 cat >> confdefs.h
<<\EOF
5316 #define WORDS_BIGENDIAN 1
5322 echo $ac_n "checking "whether bitfields are bigendian
"""... $ac_c" 1>&6
5323 echo "configure:5324: checking "whether bitfields are bigendian
"" >&5
5324 if eval "test \"`echo '$''{'wine_cv_bitfields_bigendian'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 if test "$cross_compiling" = yes; then
5328 wine_cv_bitfields_bigendian
=no
5330 cat > conftest.
$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5340 int rest : sizeof(int)*8 - 1;
5343 main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); }
5345 if { (eval echo configure
:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5347 wine_cv_bitfields_bigendian
=yes
5349 echo "configure: failed program was:" >&5
5350 cat conftest.
$ac_ext >&5
5352 wine_cv_bitfields_bigendian
=no
5359 echo "$ac_t""$wine_cv_bitfields_bigendian" 1>&6
5360 if test "$wine_cv_bitfields_bigendian" = "yes"
5362 cat >> confdefs.h
<<\EOF
5363 #define BITFIELDS_BIGENDIAN 1
5368 echo $ac_n "checking "whether unaligned memory access is allowed
"""... $ac_c" 1>&6
5369 echo "configure:5370: checking "whether unaligned memory access is allowed
"" >&5
5370 if eval "test \"`echo '$''{'wine_cv_allow_unaligned_access'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 if test "$cross_compiling" = yes; then
5374 wine_cv_allow_unaligned_access
=no
5376 cat > conftest.
$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5380 long volatile test[2];
5383 long volatile *ua = (long volatile *)((char *)test + 1);
5388 if { (eval echo configure
:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5390 wine_cv_allow_unaligned_access
=yes
5392 echo "configure: failed program was:" >&5
5393 cat conftest.
$ac_ext >&5
5395 wine_cv_allow_unaligned_access
=no
5402 echo "$ac_t""$wine_cv_allow_unaligned_access" 1>&6
5403 if test "$wine_cv_allow_unaligned_access" = "yes"
5405 cat >> confdefs.h
<<\EOF
5406 #define ALLOW_UNALIGNED_ACCESS 1
5413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5414 # for constant arguments. Useless!
5415 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5416 echo "configure:5417: checking for working alloca.h" >&5
5417 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 cat > conftest.
$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5425 void *p = alloca(2 * sizeof(int));
5428 if { (eval echo configure
:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5430 ac_cv_header_alloca_h
=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.
$ac_ext >&5
5435 ac_cv_header_alloca_h
=no
5440 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5441 if test $ac_cv_header_alloca_h = yes; then
5442 cat >> confdefs.h
<<\EOF
5443 #define HAVE_ALLOCA_H 1
5448 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5449 echo "configure:5450: checking for alloca" >&5
5450 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.
$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 # define alloca __builtin_alloca
5461 # include <malloc.h>
5462 # define alloca _alloca
5465 # include <alloca.h>
5470 # ifndef alloca /* predefined by HP cc +Olibcalls */
5479 char *p = (char *) alloca(1);
5482 if { (eval echo configure
:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5484 ac_cv_func_alloca_works
=yes
5486 echo "configure: failed program was:" >&5
5487 cat conftest.
$ac_ext >&5
5489 ac_cv_func_alloca_works
=no
5494 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5495 if test $ac_cv_func_alloca_works = yes; then
5496 cat >> confdefs.h
<<\EOF
5497 #define HAVE_ALLOCA 1
5502 if test $ac_cv_func_alloca_works = no
; then
5503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5504 # that cause trouble. Some versions do not even contain alloca or
5505 # contain a buggy version. If you still want to use their alloca,
5506 # use ar to extract alloca.o from them instead of compiling alloca.c.
5507 ALLOCA
=alloca.
${ac_objext}
5508 cat >> confdefs.h
<<\EOF
5513 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5514 echo "configure:5515: checking whether alloca needs Cray hooks" >&5
5515 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 cat > conftest.
$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 #if defined(CRAY) && ! defined(CRAY2)
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 egrep "webecray" >/dev
/null
2>&1; then
5540 echo "$ac_t""$ac_cv_os_cray" 1>&6
5541 if test $ac_cv_os_cray = yes; then
5542 for ac_func
in _getb67 GETB67 getb67
; do
5543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5544 echo "configure:5545: checking for $ac_func" >&5
5545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.
$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char $ac_func(); below. */
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5561 /* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5572 if { (eval echo configure
:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5574 eval "ac_cv_func_$ac_func=yes"
5576 echo "configure: failed program was:" >&5
5577 cat conftest.
$ac_ext >&5
5579 eval "ac_cv_func_$ac_func=no"
5584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 cat >> confdefs.h
<<EOF
5587 #define CRAY_STACKSEG_END $ac_func
5592 echo "$ac_t""no" 1>&6
5598 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5599 echo "configure:5600: checking stack direction for C alloca" >&5
5600 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 if test "$cross_compiling" = yes; then
5604 ac_cv_c_stack_direction
=0
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 find_stack_direction ()
5611 static char *addr = 0;
5616 return find_stack_direction ();
5619 return (&dummy > addr) ? 1 : -1;
5623 exit (find_stack_direction() < 0);
5626 if { (eval echo configure
:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5628 ac_cv_c_stack_direction
=1
5630 echo "configure: failed program was:" >&5
5631 cat conftest.
$ac_ext >&5
5633 ac_cv_c_stack_direction
=-1
5640 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5641 cat >> confdefs.h
<<EOF
5642 #define STACK_DIRECTION $ac_cv_c_stack_direction
5682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5683 echo "configure:5684: checking for $ac_func" >&5
5684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 cat > conftest.
$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* System header to define __stub macros and hopefully few prototypes,
5691 which can conflict with char $ac_func(); below. */
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5700 /* The GNU C library defines this for functions which it implements
5701 to always fail with ENOSYS. Some functions are actually named
5702 something starting with __ and the normal name is an alias. */
5703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5711 if { (eval echo configure
:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5713 eval "ac_cv_func_$ac_func=yes"
5715 echo "configure: failed program was:" >&5
5716 cat conftest.
$ac_ext >&5
5718 eval "ac_cv_func_$ac_func=no"
5723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5724 echo "$ac_t""yes" 1>&6
5725 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5726 cat >> confdefs.h
<<EOF
5727 #define $ac_tr_func 1
5731 echo "$ac_t""no" 1>&6
5753 netinet
/in_systm.h \
5791 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5793 echo "configure:5794: checking for $ac_hdr" >&5
5794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5803 { (eval echo configure
:5804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5805 if test -z "$ac_err"; then
5807 eval "ac_cv_header_$ac_safe=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.
$ac_ext >&5
5813 eval "ac_cv_header_$ac_safe=no"
5817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5818 echo "$ac_t""yes" 1>&6
5819 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5820 cat >> confdefs.h
<<EOF
5821 #define $ac_tr_hdr 1
5825 echo "$ac_t""no" 1>&6
5829 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5830 echo "configure:5831: checking whether stat file-mode macros are broken" >&5
5831 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 #include <sys/types.h>
5838 #include <sys/stat.h>
5840 #if defined(S_ISBLK) && defined(S_IFDIR)
5841 # if S_ISBLK (S_IFDIR)
5846 #if defined(S_ISBLK) && defined(S_IFCHR)
5847 # if S_ISBLK (S_IFCHR)
5852 #if defined(S_ISLNK) && defined(S_IFREG)
5853 # if S_ISLNK (S_IFREG)
5858 #if defined(S_ISSOCK) && defined(S_IFREG)
5859 # if S_ISSOCK (S_IFREG)
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 egrep "You lose" >/dev
/null
2>&1; then
5868 ac_cv_header_stat_broken
=yes
5871 ac_cv_header_stat_broken
=no
5877 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5878 if test $ac_cv_header_stat_broken = yes; then
5879 cat >> confdefs.h
<<\EOF
5880 #define STAT_MACROS_BROKEN 1
5887 echo $ac_n "checking for working const""... $ac_c" 1>&6
5888 echo "configure:5889: checking for working const" >&5
5889 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5892 cat > conftest.
$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5898 /* Ultrix mips cc rejects this. */
5899 typedef int charset[2]; const charset x = {0,0};
5900 /* SunOS 4.1.1 cc rejects this. */
5901 char const *const *ccp;
5903 /* NEC SVR4.0.2 mips cc rejects this. */
5904 struct point {int x, y;};
5905 static struct point const zero = {0,0};
5906 /* AIX XL C 1.02.0.0 rejects this.
5907 It does not let you subtract one const X* pointer from another in an arm
5908 of an if-expression whose if-part is not a constant expression */
5909 const char *g = "string";
5910 ccp = &g + (g ? g-g : 0);
5911 /* HPUX 7.0 cc rejects these. */
5914 ccp = (char const *const *) p;
5915 { /* SCO 3.2v4 cc rejects this. */
5917 char const *s = 0 ? (char *) 0 : (char const *) 0;
5921 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5923 const int *foo = &x[0];
5926 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5927 typedef const int *iptr;
5931 { /* AIX XL C 1.02.0.0 rejects this saying
5932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5933 struct s { int j; const int *ap[3]; };
5934 struct s *b; b->j = 5;
5936 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5942 if { (eval echo configure
:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5946 echo "configure: failed program was:" >&5
5947 cat conftest.
$ac_ext >&5
5954 echo "$ac_t""$ac_cv_c_const" 1>&6
5955 if test $ac_cv_c_const = no
; then
5956 cat >> confdefs.h
<<\EOF
5962 echo $ac_n "checking for inline""... $ac_c" 1>&6
5963 echo "configure:5964: checking for inline" >&5
5964 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5968 for ac_kw
in inline __inline__ __inline
; do
5969 cat > conftest.
$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5974 } int $ac_kw foo() {
5977 if { (eval echo configure
:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5979 ac_cv_c_inline
=$ac_kw; break
5981 echo "configure: failed program was:" >&5
5982 cat conftest.
$ac_ext >&5
5989 echo "$ac_t""$ac_cv_c_inline" 1>&6
5990 case "$ac_cv_c_inline" in
5992 no
) cat >> confdefs.h
<<\EOF
5996 *) cat >> confdefs.h
<<EOF
5997 #define inline $ac_cv_c_inline
6002 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6003 echo "configure:6004: checking for ANSI C header files" >&5
6004 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6007 cat > conftest.
$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6016 { (eval echo configure
:6017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6017 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6018 if test -z "$ac_err"; then
6020 ac_cv_header_stdc
=yes
6023 echo "configure: failed program was:" >&5
6024 cat conftest.
$ac_ext >&5
6026 ac_cv_header_stdc
=no
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat > conftest.
$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 egrep "memchr" >/dev
/null
2>&1; then
6042 ac_cv_header_stdc
=no
6048 if test $ac_cv_header_stdc = yes; then
6049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050 cat > conftest.
$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 egrep "free" >/dev
/null
2>&1; then
6060 ac_cv_header_stdc
=no
6066 if test $ac_cv_header_stdc = yes; then
6067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6068 if test "$cross_compiling" = yes; then
6071 cat > conftest.
$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6075 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6076 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6078 int main () { int i; for (i = 0; i < 256; i++)
6079 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6083 if { (eval echo configure
:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 ac_cv_header_stdc
=no
6098 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6099 if test $ac_cv_header_stdc = yes; then
6100 cat >> confdefs.h
<<\EOF
6101 #define STDC_HEADERS 1
6106 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6107 echo "configure:6108: checking for size_t" >&5
6108 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.
$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 #include <sys/types.h>
6120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6123 ac_cv_type_size_t
=yes
6126 ac_cv_type_size_t
=no
6131 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6132 if test $ac_cv_type_size_t = no
; then
6133 cat >> confdefs.h
<<\EOF
6134 #define size_t unsigned
6139 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6140 echo "configure:6141: checking size of long long" >&5
6141 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 if test "$cross_compiling" = yes; then
6145 ac_cv_sizeof_long_long
=0
6147 cat > conftest.
$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6153 FILE *f=fopen("conftestval", "w");
6155 fprintf(f, "%d\n", sizeof(long long));
6159 if { (eval echo configure
:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6161 ac_cv_sizeof_long_long
=`cat conftestval`
6163 echo "configure: failed program was:" >&5
6164 cat conftest.
$ac_ext >&5
6166 ac_cv_sizeof_long_long
=0
6172 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6173 cat >> confdefs.h
<<EOF
6174 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6180 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style
"""... $ac_c" 1>&6
6181 echo "configure:6182: checking "whether we can use re-entrant gethostbyname_r Linux style
"" >&5
6182 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.
$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6195 struct hostent *result;
6202 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6203 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6207 if { (eval echo configure
:6208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6209 wine_cv_linux_gethostbyname_r_6
=yes
6211 echo "configure: failed program was:" >&5
6212 cat conftest.
$ac_ext >&5
6214 wine_cv_linux_gethostbyname_r_6
=no
6221 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6222 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6224 cat >> confdefs.h
<<\EOF
6225 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6230 if test "$ac_cv_header_linux_joystick_h" = "yes"
6232 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
6233 echo "configure:6234: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
6234 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6237 cat > conftest.
$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6241 #include <sys/ioctl.h>
6242 #include <linux/joystick.h>
6244 struct js_event blub;
6245 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6246 #error "no 2.2 header"
6253 if { (eval echo configure
:6254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6255 wine_cv_linux_joystick_22_api
=yes
6257 echo "configure: failed program was:" >&5
6258 cat conftest.
$ac_ext >&5
6260 wine_cv_linux_joystick_22_api
=no
6266 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6267 if test "$wine_cv_linux_joystick_22_api" = "yes"
6269 cat >> confdefs.h
<<\EOF
6270 #define HAVE_LINUX_22_JOYSTICK_API 1
6277 if test "$ac_cv_header_sys_vfs_h" = "yes"
6279 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
6280 echo "configure:6281: checking "whether sys
/vfs.h defines statfs
"" >&5
6281 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.
$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6288 #include <sys/types.h>
6289 #ifdef HAVE_SYS_PARAM_H
6290 # include <sys/param.h>
6292 #include <sys/vfs.h>
6298 memset(&stfs,0,sizeof(stfs));
6302 if { (eval echo configure
:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6304 wine_cv_sys_vfs_has_statfs
=yes
6306 echo "configure: failed program was:" >&5
6307 cat conftest.
$ac_ext >&5
6309 wine_cv_sys_vfs_has_statfs
=no
6316 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6317 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6319 cat >> confdefs.h
<<\EOF
6320 #define STATFS_DEFINED_BY_SYS_VFS 1
6326 if test "$ac_cv_header_sys_statfs_h" = "yes"
6328 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
6329 echo "configure:6330: checking "whether sys
/statfs.h defines statfs
"" >&5
6330 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.
$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6337 #include <sys/types.h>
6338 #ifdef HAVE_SYS_PARAM_H
6339 # include <sys/param.h>
6341 #include <sys/statfs.h>
6349 if { (eval echo configure
:6350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6351 wine_cv_sys_statfs_has_statfs
=yes
6353 echo "configure: failed program was:" >&5
6354 cat conftest.
$ac_ext >&5
6356 wine_cv_sys_statfs_has_statfs
=no
6363 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6364 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6366 cat >> confdefs.h
<<\EOF
6367 #define STATFS_DEFINED_BY_SYS_STATFS 1
6373 if test "$ac_cv_header_sys_mount_h" = "yes"
6375 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
6376 echo "configure:6377: checking "whether sys
/mount.h defines statfs
"" >&5
6377 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 cat > conftest.
$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6384 #include <sys/types.h>
6385 #ifdef HAVE_SYS_PARAM_H
6386 # include <sys/param.h>
6388 #include <sys/mount.h>
6396 if { (eval echo configure
:6397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6398 wine_cv_sys_mount_has_statfs
=yes
6400 echo "configure: failed program was:" >&5
6401 cat conftest.
$ac_ext >&5
6403 wine_cv_sys_mount_has_statfs
=no
6410 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6411 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6413 cat >> confdefs.h
<<\EOF
6414 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6421 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
6422 echo "configure:6423: checking "for statfs.f_bfree
"" >&5
6423 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 if test "x$statfs_bfree" = "xno"
6428 wine_cv_statfs_bfree
=no
6430 cat > conftest.
$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6434 #include <sys/types.h>
6435 #ifdef HAVE_SYS_PARAM_H
6436 # include <sys/param.h>
6438 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6439 # include <sys/mount.h>
6441 # ifdef STATFS_DEFINED_BY_SYS_VFS
6442 # include <sys/vfs.h>
6444 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6445 # include <sys/statfs.h>
6458 if { (eval echo configure
:6459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6460 wine_cv_statfs_bfree
=yes
6462 echo "configure: failed program was:" >&5
6463 cat conftest.
$ac_ext >&5
6465 wine_cv_statfs_bfree
=no
6472 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6473 if test "$wine_cv_statfs_bfree" = "yes"
6475 cat >> confdefs.h
<<\EOF
6476 #define STATFS_HAS_BFREE 1
6481 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
6482 echo "configure:6483: checking "for statfs.f_bavail
"" >&5
6483 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 if test "x$statfs_bavail" = "xno"
6488 wine_cv_statfs_bavail
=no
6490 cat > conftest.
$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6494 #include <sys/types.h>
6495 #ifdef HAVE_SYS_PARAM_H
6496 # include <sys/param.h>
6498 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6499 # include <sys/mount.h>
6501 # ifdef STATFS_DEFINED_BY_SYS_VFS
6502 # include <sys/vfs.h>
6504 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6505 # include <sys/statfs.h>
6518 if { (eval echo configure
:6519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6520 wine_cv_statfs_bavail
=yes
6522 echo "configure: failed program was:" >&5
6523 cat conftest.
$ac_ext >&5
6525 wine_cv_statfs_bavail
=no
6532 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6533 if test "$wine_cv_statfs_bavail" = "yes"
6535 cat >> confdefs.h
<<\EOF
6536 #define STATFS_HAS_BAVAIL 1
6542 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
6543 echo "configure:6544: checking "for msg_accrights
in struct msghdr
"" >&5
6544 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 cat > conftest.
$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 #include <sys/types.h>
6551 #include <sys/socket.h>
6553 struct msghdr hdr; hdr.msg_accrights=0
6556 if { (eval echo configure
:6557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6558 ac_cv_c_msg_accrights
="yes"
6560 echo "configure: failed program was:" >&5
6561 cat conftest.
$ac_ext >&5
6563 ac_cv_c_msg_accrights
="no"
6568 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6569 if test "$ac_cv_c_msg_accrights" = "yes"
6571 cat >> confdefs.h
<<\EOF
6572 #define HAVE_MSGHDR_ACCRIGHTS 1
6578 echo $ac_n "checking "for sun_len
in struct sockaddr_un
"""... $ac_c" 1>&6
6579 echo "configure:6580: checking "for sun_len
in struct sockaddr_un
"" >&5
6580 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.
$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 #include <sys/types.h>
6587 #include <sys/socket.h>
6590 static struct sockaddr_un addr; addr.sun_len = 1
6593 if { (eval echo configure
:6594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6595 ac_cv_c_sun_len
="yes"
6597 echo "configure: failed program was:" >&5
6598 cat conftest.
$ac_ext >&5
6600 ac_cv_c_sun_len
="no"
6605 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6606 if test "$ac_cv_c_sun_len" = "yes"
6608 cat >> confdefs.h
<<\EOF
6609 #define HAVE_SOCKADDR_SUN_LEN 1
6615 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
6616 echo "configure:6617: checking "whether we need to define __i386__
"" >&5
6617 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 cat > conftest.
$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 egrep "yes" >/dev
/null
2>&1; then
6630 ac_cv_cpp_def_i386
="yes"
6633 ac_cv_cpp_def_i386
="no"
6639 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6640 if test "$ac_cv_cpp_def_i386" = "yes"
6642 CFLAGS
="$CFLAGS -D__i386__"
6643 LINTFLAGS
="$LINTFLAGS -D__i386__"
6647 if test "$GCC" = "yes"
6649 GCC_NO_BUILTIN
="-fno-builtin"
6656 MAKE_RULES
=Make.rules
6659 MAKE_DLL_RULES
=dlls
/Makedll.rules
6662 MAKE_PROG_RULES
=programs
/Makeprog.rules
6666 cat > confcache
<<\EOF
6667 # This file is a shell script that caches the results of configure
6668 # tests run on this system so they can be shared between configure
6669 # scripts and configure runs. It is not useful on other systems.
6670 # If it contains results you don't want to keep, you may remove or edit it.
6672 # By default, configure uses ./config.cache as the cache file,
6673 # creating it if it does not exist already. You can give configure
6674 # the --cache-file=FILE option to use a different cache file; that is
6675 # what configure does when it calls configure scripts in
6676 # subdirectories, so they share the cache.
6677 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6678 # config.status only pays attention to the cache file if you give it the
6679 # --recheck option to rerun configure.
6682 # The following way of writing the cache mishandles newlines in values,
6683 # but we know of no workaround that is simple, portable, and efficient.
6684 # So, don't put newlines in cache variables' values.
6685 # Ultrix sh set writes to stderr and can't be redirected directly,
6686 # and sets the high bit in the cache file unless we assign to the vars.
6688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6690 # `set' does not quote correctly, so add quotes (double-quote substitution
6691 # turns \\\\ into \\, and sed turns \\ into \).
6693 -e "s/'/'\\\\''/g" \
6694 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6697 # `set' quotes correctly as required by POSIX, so do not add quotes.
6698 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6701 if cmp -s $cache_file confcache
; then
6704 if test -w $cache_file; then
6705 echo "updating cache $cache_file"
6706 cat confcache
> $cache_file
6708 echo "not updating unwritable cache $cache_file"
6713 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6715 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6716 # Let make expand exec_prefix.
6717 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6719 # Any assignment to VPATH causes Sun make to only execute
6720 # the first set of double-colon rules, so remove it if not needed.
6721 # If there is a colon in the path, we need to keep it.
6722 if test "x$srcdir" = x.
; then
6723 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6726 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6728 DEFS
=-DHAVE_CONFIG_H
6730 # Without the "./", some shells look in PATH for config.status.
6731 : ${CONFIG_STATUS=./config.status}
6733 echo creating
$CONFIG_STATUS
6734 rm -f $CONFIG_STATUS
6735 cat > $CONFIG_STATUS <<EOF
6737 # Generated automatically by configure.
6738 # Run this file to recreate the current configuration.
6739 # This directory was configured as follows,
6740 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6742 # $0 $ac_configure_args
6744 # Compiler output produced by configure, useful for debugging
6745 # configure, is in ./config.log if it exists.
6747 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6750 case "\$ac_option" in
6751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6752 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6753 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6754 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6755 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6757 -help | --help | --hel | --he | --h)
6758 echo "\$ac_cs_usage"; exit 0 ;;
6759 *) echo "\$ac_cs_usage"; exit 1 ;;
6763 ac_given_srcdir=$srcdir
6764 ac_given_INSTALL="$INSTALL"
6766 trap 'rm -fr `echo "
6769 programs/Makeprog.rules
6775 dlls/advapi32/Makefile
6776 dlls/avifil32/Makefile
6777 dlls/comctl32/Makefile
6778 dlls/commdlg/Makefile
6779 dlls/crtdll/Makefile
6780 dlls/dciman32/Makefile
6782 dlls/dinput/Makefile
6784 dlls/dplayx/Makefile
6785 dlls/dsound/Makefile
6788 dlls/imagehlp/Makefile
6790 dlls/kernel/Makefile
6791 dlls/lzexpand/Makefile
6794 dlls/msnet32/Makefile
6795 dlls/msvideo/Makefile
6797 dlls/odbc32/Makefile
6799 dlls/oleaut32/Makefile
6800 dlls/olecli/Makefile
6801 dlls/oledlg/Makefile
6802 dlls/olepro32/Makefile
6803 dlls/olesvr/Makefile
6804 dlls/opengl32/Makefile
6806 dlls/rasapi32/Makefile
6807 dlls/richedit/Makefile
6808 dlls/rpcrt4/Makefile
6809 dlls/serialui/Makefile
6810 dlls/setupapi/Makefile
6811 dlls/shell32/Makefile
6812 dlls/shfolder/Makefile
6813 dlls/shlwapi/Makefile
6814 dlls/tapi32/Makefile
6815 dlls/ttydrv/Makefile
6816 dlls/urlmon/Makefile
6818 dlls/version/Makefile
6819 dlls/win32s/Makefile
6820 dlls/winaspi/Makefile
6821 dlls/winedos/Makefile
6822 dlls/wineps/Makefile
6823 dlls/wininet/Makefile
6825 dlls/winmm/joystick/Makefile
6826 dlls/winmm/mcianim/Makefile
6827 dlls/winmm/mciavi/Makefile
6828 dlls/winmm/mcicda/Makefile
6829 dlls/winmm/mciseq/Makefile
6830 dlls/winmm/mciwave/Makefile
6831 dlls/winmm/midimap/Makefile
6832 dlls/winmm/wavemap/Makefile
6833 dlls/winmm/wineoss/Makefile
6834 dlls/winnls/Makefile
6835 dlls/winsock/Makefile
6836 dlls/winspool/Makefile
6838 dlls/wsock32/Makefile
6839 dlls/x11drv/Makefile
6840 documentation/Makefile
6841 documentation/wine.conf.man
6842 documentation/wine.man
6845 graphics/enhmetafiledrv/Makefile
6846 graphics/metafiledrv/Makefile
6847 graphics/win16drv/Makefile
6848 graphics/x11drv/Makefile
6863 programs/avitools/Makefile
6864 programs/clock/Makefile
6865 programs/cmdlgtst/Makefile
6866 programs/control/Makefile
6867 programs/notepad/Makefile
6868 programs/osversioncheck/Makefile
6869 programs/progman/Makefile
6870 programs/regapi/Makefile
6871 programs/regtest/Makefile
6872 programs/uninstaller/Makefile
6873 programs/view/Makefile
6874 programs/wcmd/Makefile
6875 programs/winemine/Makefile
6876 programs/winhelp/Makefile
6877 programs/winver/Makefile
6882 tools/cvdump/Makefile
6883 tools/winebuild/Makefile
6891 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6893 cat >> $CONFIG_STATUS <<EOF
6895 # Protect against being on the right side of a sed subst in config.status.
6896 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6897 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6901 s%@CFLAGS@%$CFLAGS%g
6902 s%@CPPFLAGS@%$CPPFLAGS%g
6903 s%@CXXFLAGS@%$CXXFLAGS%g
6904 s%@FFLAGS@%$FFLAGS%g
6906 s%@LDFLAGS@%$LDFLAGS%g
6908 s%@exec_prefix@%$exec_prefix%g
6909 s%@prefix@%$prefix%g
6910 s%@program_transform_name@%$program_transform_name%g
6911 s%@bindir@%$bindir%g
6912 s%@sbindir@%$sbindir%g
6913 s%@libexecdir@%$libexecdir%g
6914 s%@datadir@%$datadir%g
6915 s%@sysconfdir@%$sysconfdir%g
6916 s%@sharedstatedir@%$sharedstatedir%g
6917 s%@localstatedir@%$localstatedir%g
6918 s%@libdir@%$libdir%g
6919 s%@includedir@%$includedir%g
6920 s%@oldincludedir@%$oldincludedir%g
6921 s%@infodir@%$infodir%g
6922 s%@mandir@%$mandir%g
6923 s%@OPTIONS@%$OPTIONS%g
6924 s%@SET_MAKE@%$SET_MAKE%g
6927 s%@X_CFLAGS@%$X_CFLAGS%g
6928 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6929 s%@X_LIBS@%$X_LIBS%g
6930 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6933 s%@LEXLIB@%$LEXLIB%g
6935 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6936 s%@RANLIB@%$RANLIB%g
6937 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6938 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6939 s%@INSTALL_DATA@%$INSTALL_DATA%g
6942 s%@LDCONFIG@%$LDCONFIG%g
6943 s%@DLLWRAP@%$DLLWRAP%g
6945 s%@LINTFLAGS@%$LINTFLAGS%g
6946 s%@LDCOMBINE@%$LDCOMBINE%g
6948 s%@X_DLLS@%$X_DLLS%g
6949 s%@XFILES@%$XFILES%g
6950 s%@OPENGLFILES@%$OPENGLFILES%g
6951 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6952 s%@DGA_SRCS@%$DGA_SRCS%g
6953 s%@DGA2_SRCS@%$DGA2_SRCS%g
6954 s%@MESA_SRCS@%$MESA_SRCS%g
6955 s%@DLL_LINK@%$DLL_LINK%g
6956 s%@DLLFLAGS@%$DLLFLAGS%g
6957 s%@LDSHARED@%$LDSHARED%g
6958 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
6959 s%@LIBEXT@%$LIBEXT%g
6960 s%@LDPATH@%$LDPATH%g
6961 s%@ALLOCA@%$ALLOCA%g
6962 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6963 /@MAKE_RULES@/r $MAKE_RULES
6965 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6966 s%@MAKE_DLL_RULES@%%g
6967 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
6968 s%@MAKE_PROG_RULES@%%g
6973 cat >> $CONFIG_STATUS <<\EOF
6975 # Split the substitutions into bite-sized pieces for seds with
6976 # small command number limits, like on Digital OSF/1 and HP-UX.
6977 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6978 ac_file
=1 # Number of current file.
6979 ac_beg
=1 # First line for current file.
6980 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6983 while $ac_more_lines; do
6984 if test $ac_beg -gt 1; then
6985 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6987 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6989 if test ! -s conftest.s
$ac_file; then
6991 rm -f conftest.s
$ac_file
6993 if test -z "$ac_sed_cmds"; then
6994 ac_sed_cmds
="sed -f conftest.s$ac_file"
6996 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6998 ac_file
=`expr $ac_file + 1`
7000 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7003 if test -z "$ac_sed_cmds"; then
7008 cat >> $CONFIG_STATUS <<EOF
7010 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7012 programs/Makeprog.rules
7018 dlls/advapi32/Makefile
7019 dlls/avifil32/Makefile
7020 dlls/comctl32/Makefile
7021 dlls/commdlg/Makefile
7022 dlls/crtdll/Makefile
7023 dlls/dciman32/Makefile
7025 dlls/dinput/Makefile
7027 dlls/dplayx/Makefile
7028 dlls/dsound/Makefile
7031 dlls/imagehlp/Makefile
7033 dlls/kernel/Makefile
7034 dlls/lzexpand/Makefile
7037 dlls/msnet32/Makefile
7038 dlls/msvideo/Makefile
7040 dlls/odbc32/Makefile
7042 dlls/oleaut32/Makefile
7043 dlls/olecli/Makefile
7044 dlls/oledlg/Makefile
7045 dlls/olepro32/Makefile
7046 dlls/olesvr/Makefile
7047 dlls/opengl32/Makefile
7049 dlls/rasapi32/Makefile
7050 dlls/richedit/Makefile
7051 dlls/rpcrt4/Makefile
7052 dlls/serialui/Makefile
7053 dlls/setupapi/Makefile
7054 dlls/shell32/Makefile
7055 dlls/shfolder/Makefile
7056 dlls/shlwapi/Makefile
7057 dlls/tapi32/Makefile
7058 dlls/ttydrv/Makefile
7059 dlls/urlmon/Makefile
7061 dlls/version/Makefile
7062 dlls/win32s/Makefile
7063 dlls/winaspi/Makefile
7064 dlls/winedos/Makefile
7065 dlls/wineps/Makefile
7066 dlls/wininet/Makefile
7068 dlls/winmm/joystick/Makefile
7069 dlls/winmm/mcianim/Makefile
7070 dlls/winmm/mciavi/Makefile
7071 dlls/winmm/mcicda/Makefile
7072 dlls/winmm/mciseq/Makefile
7073 dlls/winmm/mciwave/Makefile
7074 dlls/winmm/midimap/Makefile
7075 dlls/winmm/wavemap/Makefile
7076 dlls/winmm/wineoss/Makefile
7077 dlls/winnls/Makefile
7078 dlls/winsock/Makefile
7079 dlls/winspool/Makefile
7081 dlls/wsock32/Makefile
7082 dlls/x11drv/Makefile
7083 documentation/Makefile
7084 documentation/wine.conf.man
7085 documentation/wine.man
7088 graphics/enhmetafiledrv/Makefile
7089 graphics/metafiledrv/Makefile
7090 graphics/win16drv/Makefile
7091 graphics/x11drv/Makefile
7106 programs/avitools/Makefile
7107 programs/clock/Makefile
7108 programs/cmdlgtst/Makefile
7109 programs/control/Makefile
7110 programs/notepad/Makefile
7111 programs/osversioncheck/Makefile
7112 programs/progman/Makefile
7113 programs/regapi/Makefile
7114 programs/regtest/Makefile
7115 programs/uninstaller/Makefile
7116 programs/view/Makefile
7117 programs/wcmd/Makefile
7118 programs/winemine/Makefile
7119 programs/winhelp/Makefile
7120 programs/winver/Makefile
7125 tools/cvdump/Makefile
7126 tools/winebuild/Makefile
7134 windows/x11drv/Makefile "}
7136 cat >> $CONFIG_STATUS <<\EOF
7137 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7140 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7141 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7142 *) ac_file_in
="${ac_file}.in" ;;
7145 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7147 # Remove last slash and all that follows it. Not all systems have dirname.
7148 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7149 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7150 # The file is in a subdirectory.
7151 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7152 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7153 # A "../" for each directory in $ac_dir_suffix.
7154 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7156 ac_dir_suffix
= ac_dots
=
7159 case "$ac_given_srcdir" in
7161 if test -z "$ac_dots"; then top_srcdir
=.
7162 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7163 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7165 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7166 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7169 case "$ac_given_INSTALL" in
7170 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7171 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7174 echo creating
"$ac_file"
7176 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7178 *Makefile
*) ac_comsub
="1i\\
7179 # $configure_input" ;;
7183 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7185 s%@configure_input@%$configure_input%g
7186 s%@srcdir@%$srcdir%g
7187 s%@top_srcdir@%$top_srcdir%g
7188 s%@INSTALL@%$INSTALL%g
7189 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7193 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7194 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7196 # ac_d sets the value in "#define NAME VALUE" lines.
7197 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7198 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7201 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7202 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7203 ac_uB
='\([ ]\)%\1#\2define\3'
7206 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7207 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7208 ac_eB
='$%\1#\2define\3'
7212 if test "${CONFIG_HEADERS+set}" != set; then
7214 cat >> $CONFIG_STATUS <<EOF
7215 CONFIG_HEADERS="include/config.h"
7217 cat >> $CONFIG_STATUS <<\EOF
7219 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7222 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7223 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7224 *) ac_file_in
="${ac_file}.in" ;;
7227 echo creating
$ac_file
7229 rm -f conftest.frag conftest.
in conftest.out
7230 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7231 cat $ac_file_inputs > conftest.
in
7235 # Transform confdefs.h into a sed script conftest.vals that substitutes
7236 # the proper values into config.h.in to produce config.h. And first:
7237 # Protect against being on the right side of a sed subst in config.status.
7238 # Protect against being in an unquoted here document in config.status.
7240 cat > conftest.hdr
<<\EOF
7243 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7247 sed -n -f conftest.hdr confdefs.h > conftest.vals
7250 # This sed command replaces #undef with comments. This is necessary, for
7251 # example, in the case of _POSIX_SOURCE, which is predefined and required
7252 # on some systems where configure will not decide to define it.
7253 cat >> conftest.vals <<\EOF
7254 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7257 # Break up conftest.vals because some shells have a limit on
7258 # the size of here documents, and old seds have small limits too.
7263 ac_lines=`grep -c . conftest.vals
`
7264 # grep -c gives empty output for an empty file on some AIX systems.
7265 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7266 # Write a limited-size here document to conftest.frag.
7267 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7268 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7270 sed -f conftest.frag conftest.in > conftest.out
7272 mv conftest.out conftest.in
7274 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7276 mv conftest.tail conftest.vals
7280 cat >> $CONFIG_STATUS <<\EOF
7281 rm -f conftest.frag conftest.h
7282 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7283 cat conftest.in >> conftest.h
7285 if cmp -s $ac_file conftest.h 2>/dev/null; then
7286 echo "$ac_file is unchanged"
7289 # Remove last slash and all that follows it. Not all systems have dirname.
7290 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7291 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7292 # The file is in a subdirectory.
7293 test ! -d "$ac_dir" && mkdir "$ac_dir"
7296 mv conftest.h $ac_file
7301 cat >> $CONFIG_STATUS <<EOF
7305 cat >> $CONFIG_STATUS <<\EOF
7308 dlls/ddraw/d3ddevice \
7309 dlls/ddraw/dclipper \
7311 dlls/ddraw/direct3d \
7312 dlls/ddraw/dpalette \
7313 dlls/ddraw/dsurface \
7314 dlls/dinput/joystick \
7315 dlls/dinput/keyboard \
7317 dlls/kernel/messages \
7318 dlls/user/resources \
7320 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7324 chmod +x $CONFIG_STATUS
7325 rm -fr confdefs* $ac_clean_files
7326 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7329 if test "$have_x" = "no"
7332 echo "*** Warning: X development files not found. Wine will be built without"
7333 echo "*** X support, which currently does not work, and would probably not be"
7334 echo "*** what you want anyway. You will need to install devel packages of"
7335 echo "*** Xlib/Xfree86 and Xpm at the very least."
7336 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7339 echo "*** Warning: Xpm development files not found. Wine will be built without"
7340 echo "*** Xpm support, which currently does not work. You will need to install"
7341 echo "*** devel packages of Xpm."
7344 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7347 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7348 echo "*** terminal resize support. Consider upgrading ncurses."
7351 if test "$wine_cv_libc_reentrant" = "no"
7354 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7355 echo "*** thread support. Consider upgrading libc to a more recent"
7356 echo "*** reentrant version of libc."
7359 if test "$wine_cv_opengl_version_OK" = "no"
7362 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7363 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7366 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7369 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7370 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7371 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7372 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7375 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7378 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7379 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7380 echo "*** support before reporting bugs."
7385 echo "Configure finished. Do 'make depend && make' to compile Wine."