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 via pthread"
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
610 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
612 cat >> confdefs.h
<<\EOF
613 #define NO_TRACE_MSGS 1
619 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
620 echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
621 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
622 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 cat > conftestmake
<<\EOF
627 @
echo 'ac_maketemp="${MAKE}"'
629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
630 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
631 if test -n "$ac_maketemp"; then
632 eval ac_cv_prog_make_
${ac_make}_set
=yes
634 eval ac_cv_prog_make_
${ac_make}_set
=no
638 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
639 echo "$ac_t""yes" 1>&6
642 echo "$ac_t""no" 1>&6
643 SET_MAKE
="MAKE=${MAKE-make}"
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc
; ac_word
=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC
="$CC" # Let the user override the test.
656 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
658 for ac_dir
in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir
=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc
; ac_word
=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC
="$CC" # Let the user override the test.
686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
689 for ac_dir
in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy
$ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy
"$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl
; ac_word
=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC
="$CC" # Let the user override the test.
737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
739 for ac_dir
in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir
=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp
='$CPP $CPPFLAGS'
767 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling
=$ac_cv_prog_cc_cross
771 cat > conftest.
$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure
:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
779 ac_cv_prog_cc_works
=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (.
/conftest
; exit) 2>/dev
/null
; then
782 ac_cv_prog_cc_cross
=no
784 ac_cv_prog_cc_cross
=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.
$ac_ext >&5
789 ac_cv_prog_cc_works
=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp
='$CPP $CPPFLAGS'
795 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling
=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no
; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling
=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c
<<EOF
818 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS
="${CFLAGS+set}"
834 ac_save_CFLAGS
="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS
="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.
$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
896 echo "configure: failed program was:" >&5
897 cat conftest.
$ac_ext >&5
899 CPP
="${CC-cc} -E -traditional-cpp"
900 cat > conftest.
$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure
:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
916 CPP
="${CC-cc} -nologo -E"
917 cat > conftest.
$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure
:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
930 echo "configure: failed program was:" >&5
931 cat conftest.
$ac_ext >&5
940 ac_cv_prog_CPP
="$CPP"
942 CPP
="$ac_cv_prog_CPP"
944 ac_cv_prog_CPP
="$CPP"
946 echo "$ac_t""$CPP" 1>&6
948 # If we find X, set shell vars x_includes and x_libraries to the
949 # paths, otherwise set no_x=yes.
950 # Uses ac_ vars as temps to allow command line to override cache and checks.
951 # --without-x overrides everything else, but does not touch the cache.
952 echo $ac_n "checking for X""... $ac_c" 1>&6
953 echo "configure:954: checking for X" >&5
955 # Check whether --with-x or --without-x was given.
956 if test "${with_x+set}" = set; then
961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
962 if test "x$with_x" = xno
; then
963 # The user explicitly disabled X.
966 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
967 # Both variables are already set.
970 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 # One or both of the vars are not set, and there is no cached value.
974 ac_x_includes
=NO ac_x_libraries
=NO
976 if mkdir conftestdir
; then
978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
979 cat > Imakefile
<<'EOF'
981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
983 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
987 for ac_extension
in a so sl
; do
988 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
989 test -f $ac_im_libdir/libX11.
$ac_extension; then
990 ac_im_usrlibdir
=$ac_im_libdir; break
993 # Screen out bogus values from the imake configuration. They are
994 # bogus both because they are the default anyway, and because
995 # using them would break gcc on systems where it needs fixed includes.
996 case "$ac_im_incroot" in
998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1000 case "$ac_im_usrlibdir" in
1002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1009 if test "$ac_x_includes" = NO
; then
1010 # Guess where to find include files, by looking for this one X11 .h file.
1011 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1013 # First, try using that file with no special directory specified.
1014 cat > conftest.
$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1017 #include <$x_direct_test_include>
1019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1020 { (eval echo configure
:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1022 if test -z "$ac_err"; then
1024 # We can compile using X headers with no special include directory.
1028 echo "configure: failed program was:" >&5
1029 cat conftest.
$ac_ext >&5
1031 # Look for the header file in a standard set of common directories.
1032 # Check X11 before X11Rn because it is often a symlink to the current release.
1035 /usr
/X11R
6/include \
1036 /usr
/X11R
5/include \
1037 /usr
/X11R
4/include \
1040 /usr
/include
/X11R6 \
1041 /usr
/include
/X11R5 \
1042 /usr
/include
/X11R4 \
1044 /usr
/local
/X11
/include \
1045 /usr
/local
/X11R
6/include \
1046 /usr
/local
/X11R
5/include \
1047 /usr
/local
/X11R
4/include \
1049 /usr
/local
/include
/X11 \
1050 /usr
/local
/include
/X11R6 \
1051 /usr
/local
/include
/X11R5 \
1052 /usr
/local
/include
/X11R4 \
1056 /usr
/XFree86
/include
/X11 \
1059 /usr
/local
/include \
1060 /usr
/unsupported
/include \
1061 /usr
/athena
/include \
1062 /usr
/local
/x11r
5/include \
1063 /usr
/lpp
/Xamples
/include \
1065 /usr
/openwin
/include \
1066 /usr
/openwin
/share
/include \
1069 if test -r "$ac_dir/$x_direct_test_include"; then
1070 ac_x_includes
=$ac_dir
1076 fi # $ac_x_includes = NO
1078 if test "$ac_x_libraries" = NO
; then
1079 # Check for the libraries.
1081 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1082 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1084 # See if we find them without any special options.
1085 # Don't add to $LIBS permanently.
1086 ac_save_LIBS
="$LIBS"
1087 LIBS
="-l$x_direct_test_library $LIBS"
1088 cat > conftest.
$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1093 ${x_direct_test_function}()
1096 if { (eval echo configure
:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1098 LIBS
="$ac_save_LIBS"
1099 # We can link X programs with no special library path.
1102 echo "configure: failed program was:" >&5
1103 cat conftest.
$ac_ext >&5
1105 LIBS
="$ac_save_LIBS"
1106 # First see if replacing the include by lib works.
1107 # Check X11 before X11Rn because it is often a symlink to the current release.
1108 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1119 /usr
/local
/X11
/lib \
1120 /usr
/local
/X11R
6/lib \
1121 /usr
/local
/X11R
5/lib \
1122 /usr
/local
/X11R
4/lib \
1124 /usr
/local
/lib
/X11 \
1125 /usr
/local
/lib
/X11R6 \
1126 /usr
/local
/lib
/X11R5 \
1127 /usr
/local
/lib
/X11R4 \
1131 /usr
/XFree86
/lib
/X11 \
1135 /usr
/unsupported
/lib \
1137 /usr
/local
/x11r
5/lib \
1138 /usr
/lpp
/Xamples
/lib \
1142 /usr
/openwin
/share
/lib \
1145 for ac_extension
in a so sl
; do
1146 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1147 ac_x_libraries
=$ac_dir
1154 fi # $ac_x_libraries = NO
1156 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1157 # Didn't find X anywhere. Cache the known absence of X.
1158 ac_cv_have_x
="have_x=no"
1160 # Record where we found X for the cache.
1161 ac_cv_have_x
="have_x=yes \
1162 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1166 eval "$ac_cv_have_x"
1169 if test "$have_x" != yes; then
1170 echo "$ac_t""$have_x" 1>&6
1173 # If each of the values was on the command line, it overrides each guess.
1174 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1175 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1176 # Update the cache value to reflect the command line values.
1177 ac_cv_have_x
="have_x=yes \
1178 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1179 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1182 if test "$no_x" = yes; then
1183 # Not all programs may use this symbol, but it does not hurt to define it.
1184 cat >> confdefs.h
<<\EOF
1185 #define X_DISPLAY_MISSING 1
1188 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1190 if test -n "$x_includes"; then
1191 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1194 # It would also be nice to do this for all -L options, not just this one.
1195 if test -n "$x_libraries"; then
1196 X_LIBS
="$X_LIBS -L$x_libraries"
1197 # For Solaris; some versions of Sun CC require a space after -R and
1198 # others require no space. Words are not sufficient . . . .
1199 case "`(uname -sr) 2>/dev/null`" in
1201 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether -R must be followed by a space" >&5
1203 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1204 cat > conftest.
$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1212 if { (eval echo configure
:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1216 echo "configure: failed program was:" >&5
1217 cat conftest.
$ac_ext >&5
1222 if test $ac_R_nospace = yes; then
1223 echo "$ac_t""no" 1>&6
1224 X_LIBS
="$X_LIBS -R$x_libraries"
1226 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1227 cat > conftest.
$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1235 if { (eval echo configure
:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1245 if test $ac_R_space = yes; then
1246 echo "$ac_t""yes" 1>&6
1247 X_LIBS
="$X_LIBS -R $x_libraries"
1249 echo "$ac_t""neither works" 1>&6
1252 LIBS
="$ac_xsave_LIBS"
1256 # Check for system-dependent libraries X programs must link with.
1257 # Do this before checking for the system-independent R6 libraries
1258 # (-lICE), since we may need -lsocket or whatever for X linking.
1260 if test "$ISC" = yes; then
1261 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1263 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1264 # libraries were built with DECnet support. And karl@cs.umb.edu says
1265 # the Alpha needs dnet_stub (dnet does not exist).
1266 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1267 echo "configure:1268: checking for dnet_ntoa in -ldnet" >&5
1268 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 ac_save_LIBS
="$LIBS"
1274 cat > conftest.
$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1286 if { (eval echo configure
:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1290 echo "configure: failed program was:" >&5
1291 cat conftest.
$ac_ext >&5
1293 eval "ac_cv_lib_$ac_lib_var=no"
1296 LIBS
="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1303 echo "$ac_t""no" 1>&6
1306 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1307 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1308 echo "configure:1309: checking for dnet_ntoa in -ldnet_stub" >&5
1309 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_save_LIBS
="$LIBS"
1314 LIBS
="-ldnet_stub $LIBS"
1315 cat > conftest.
$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1327 if { (eval echo configure
:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1331 echo "configure: failed program was:" >&5
1332 cat conftest.
$ac_ext >&5
1334 eval "ac_cv_lib_$ac_lib_var=no"
1337 LIBS
="$ac_save_LIBS"
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1344 echo "$ac_t""no" 1>&6
1349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1350 # to get the SysV transport functions.
1351 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1353 # The nsl library prevents programs from opening the X display
1354 # on Irix 5.2, according to dickey@clark.net.
1355 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1356 echo "configure:1357: checking for gethostbyname" >&5
1357 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1363 /* System header to define __stub macros and hopefully few prototypes,
1364 which can conflict with char gethostbyname(); below. */
1366 /* Override any gcc2 internal prototype to avoid an error. */
1367 /* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1369 char gethostbyname();
1373 /* The GNU C library defines this for functions which it implements
1374 to always fail with ENOSYS. Some functions are actually named
1375 something starting with __ and the normal name is an alias. */
1376 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1384 if { (eval echo configure
:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1386 eval "ac_cv_func_gethostbyname=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.
$ac_ext >&5
1391 eval "ac_cv_func_gethostbyname=no"
1396 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 if test $ac_cv_func_gethostbyname = no
; then
1404 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1405 echo "configure:1406: checking for gethostbyname in -lnsl" >&5
1406 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 ac_save_LIBS
="$LIBS"
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 /* Override any gcc2 internal prototype to avoid an error. */
1416 /* We use char because int might match the return type of a gcc2
1417 builtin and then its argument prototype would still apply. */
1418 char gethostbyname();
1424 if { (eval echo configure
:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1426 eval "ac_cv_lib_$ac_lib_var=yes"
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 eval "ac_cv_lib_$ac_lib_var=no"
1434 LIBS
="$ac_save_LIBS"
1437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1438 echo "$ac_t""yes" 1>&6
1439 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1441 echo "$ac_t""no" 1>&6
1446 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1447 # socket/setsockopt and other routines are undefined under SCO ODT
1448 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1449 # on later versions), says simon@lia.di.epfl.ch: it contains
1450 # gethostby* variants that don't use the nameserver (or something).
1451 # -lsocket must be given before -lnsl if both are needed.
1452 # We assume that if connect needs -lnsl, so does gethostbyname.
1453 echo $ac_n "checking for connect""... $ac_c" 1>&6
1454 echo "configure:1455: checking for connect" >&5
1455 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 /* System header to define __stub macros and hopefully few prototypes,
1462 which can conflict with char connect(); below. */
1464 /* Override any gcc2 internal prototype to avoid an error. */
1465 /* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1471 /* The GNU C library defines this for functions which it implements
1472 to always fail with ENOSYS. Some functions are actually named
1473 something starting with __ and the normal name is an alias. */
1474 #if defined (__stub_connect) || defined (__stub___connect)
1482 if { (eval echo configure
:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1484 eval "ac_cv_func_connect=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1489 eval "ac_cv_func_connect=no"
1494 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 if test $ac_cv_func_connect = no
; then
1502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1503 echo "configure:1504: checking for connect in -lsocket" >&5
1504 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 ac_save_LIBS
="$LIBS"
1509 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1510 cat > conftest.
$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
1522 if { (eval echo configure
:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1524 eval "ac_cv_lib_$ac_lib_var=yes"
1526 echo "configure: failed program was:" >&5
1527 cat conftest.
$ac_ext >&5
1529 eval "ac_cv_lib_$ac_lib_var=no"
1532 LIBS
="$ac_save_LIBS"
1535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1536 echo "$ac_t""yes" 1>&6
1537 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1539 echo "$ac_t""no" 1>&6
1544 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1545 echo $ac_n "checking for remove""... $ac_c" 1>&6
1546 echo "configure:1547: checking for remove" >&5
1547 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.
$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 /* System header to define __stub macros and hopefully few prototypes,
1554 which can conflict with char remove(); below. */
1556 /* Override any gcc2 internal prototype to avoid an error. */
1557 /* We use char because int might match the return type of a gcc2
1558 builtin and then its argument prototype would still apply. */
1563 /* The GNU C library defines this for functions which it implements
1564 to always fail with ENOSYS. Some functions are actually named
1565 something starting with __ and the normal name is an alias. */
1566 #if defined (__stub_remove) || defined (__stub___remove)
1574 if { (eval echo configure
:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1576 eval "ac_cv_func_remove=yes"
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1581 eval "ac_cv_func_remove=no"
1586 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1593 if test $ac_cv_func_remove = no
; then
1594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1595 echo "configure:1596: checking for remove in -lposix" >&5
1596 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 ac_save_LIBS
="$LIBS"
1601 LIBS
="-lposix $LIBS"
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 /* Override any gcc2 internal prototype to avoid an error. */
1606 /* We use char because int might match the return type of a gcc2
1607 builtin and then its argument prototype would still apply. */
1614 if { (eval echo configure
:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1616 eval "ac_cv_lib_$ac_lib_var=yes"
1618 echo "configure: failed program was:" >&5
1619 cat conftest.
$ac_ext >&5
1621 eval "ac_cv_lib_$ac_lib_var=no"
1624 LIBS
="$ac_save_LIBS"
1627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628 echo "$ac_t""yes" 1>&6
1629 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1631 echo "$ac_t""no" 1>&6
1636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1637 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1638 echo "configure:1639: checking for shmat" >&5
1639 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char shmat(); below. */
1648 /* Override any gcc2 internal prototype to avoid an error. */
1649 /* We use char because int might match the return type of a gcc2
1650 builtin and then its argument prototype would still apply. */
1655 /* The GNU C library defines this for functions which it implements
1656 to always fail with ENOSYS. Some functions are actually named
1657 something starting with __ and the normal name is an alias. */
1658 #if defined (__stub_shmat) || defined (__stub___shmat)
1666 if { (eval echo configure
:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1668 eval "ac_cv_func_shmat=yes"
1670 echo "configure: failed program was:" >&5
1671 cat conftest.
$ac_ext >&5
1673 eval "ac_cv_func_shmat=no"
1678 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 if test $ac_cv_func_shmat = no
; then
1686 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1687 echo "configure:1688: checking for shmat in -lipc" >&5
1688 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 ac_save_LIBS
="$LIBS"
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 eval "ac_cv_lib_$ac_lib_var=no"
1716 LIBS
="$ac_save_LIBS"
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1723 echo "$ac_t""no" 1>&6
1729 # Check for libraries that X11R6 Xt/Xaw programs need.
1730 ac_save_LDFLAGS
="$LDFLAGS"
1731 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1733 # check for ICE first), but we must link in the order -lSM -lICE or
1734 # we get undefined symbols. So assume we have SM if we have ICE.
1735 # These have to be linked with before -lX11, unlike the other
1736 # libraries we check for below, so use a different variable.
1737 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1738 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1739 echo "configure:1740: checking for IceConnectionNumber in -lICE" >&5
1740 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 ac_save_LIBS
="$LIBS"
1745 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752 char IceConnectionNumber();
1755 IceConnectionNumber()
1758 if { (eval echo configure
:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1760 eval "ac_cv_lib_$ac_lib_var=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.
$ac_ext >&5
1765 eval "ac_cv_lib_$ac_lib_var=no"
1768 LIBS
="$ac_save_LIBS"
1771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1775 echo "$ac_t""no" 1>&6
1778 LDFLAGS
="$ac_save_LDFLAGS"
1782 for ac_prog
in 'bison -y' byacc
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy
$ac_prog; ac_word
=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 if test -n "$YACC"; then
1792 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1796 for ac_dir
in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir
=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_YACC
="$ac_prog"
1806 YACC
="$ac_cv_prog_YACC"
1807 if test -n "$YACC"; then
1808 echo "$ac_t""$YACC" 1>&6
1810 echo "$ac_t""no" 1>&6
1813 test -n "$YACC" && break
1815 test -n "$YACC" || YACC
="yacc"
1817 # Extract the first word of "flex", so it can be a program name with args.
1818 set dummy flex
; ac_word
=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test -n "$LEX"; then
1825 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1829 for ac_dir
in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir
=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_LEX
="flex"
1837 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1840 LEX
="$ac_cv_prog_LEX"
1841 if test -n "$LEX"; then
1842 echo "$ac_t""$LEX" 1>&6
1844 echo "$ac_t""no" 1>&6
1847 if test -z "$LEXLIB"
1853 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1854 echo "configure:1855: checking for yywrap in -l$ac_lib" >&5
1855 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 ac_save_LIBS
="$LIBS"
1860 LIBS
="-l$ac_lib $LIBS"
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1873 if { (eval echo configure
:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1875 eval "ac_cv_lib_$ac_lib_var=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.
$ac_ext >&5
1880 eval "ac_cv_lib_$ac_lib_var=no"
1883 LIBS
="$ac_save_LIBS"
1886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1890 echo "$ac_t""no" 1>&6
1895 for ac_prog
in $LEX flex
lex
1897 # Extract the first word of "$ac_prog", so it can be a program name with args.
1898 set dummy
$ac_prog; ac_word
=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 if test -n "$XLEX"; then
1905 ac_cv_prog_XLEX
="$XLEX" # Let the user override the test.
1907 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1909 for ac_dir
in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir
=.
1911 if test -f $ac_dir/$ac_word; then
1912 ac_cv_prog_XLEX
="$ac_prog"
1919 XLEX
="$ac_cv_prog_XLEX"
1920 if test -n "$XLEX"; then
1921 echo "$ac_t""$XLEX" 1>&6
1923 echo "$ac_t""no" 1>&6
1926 test -n "$XLEX" && break
1928 test -n "$XLEX" || XLEX
="none"
1930 if test "$XLEX" = "none"
1932 echo "*** Error: No suitable lex found. ***"
1933 echo " Please install the 'flex' package."
1936 # Extract the first word of "ranlib", so it can be a program name with args.
1937 set dummy ranlib
; ac_word
=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1948 for ac_dir
in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir
=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB
="ranlib"
1956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1959 RANLIB
="$ac_cv_prog_RANLIB"
1960 if test -n "$RANLIB"; then
1961 echo "$ac_t""$RANLIB" 1>&6
1963 echo "$ac_t""no" 1>&6
1966 # Find a good install program. We prefer a C program (faster),
1967 # so one script is as good as another. But avoid the broken or
1968 # incompatible versions:
1969 # SysV /etc/install, /usr/sbin/install
1970 # SunOS /usr/etc/install
1971 # IRIX /sbin/install
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1978 echo "configure:1979: checking for a BSD compatible install" >&5
1979 if test -z "$INSTALL"; then
1980 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1984 for ac_dir
in $PATH; do
1985 # Account for people who put trailing slashes in PATH elements.
1987 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1989 # OSF1 and SCO ODT 3.0 have their own names for install.
1990 # Don't use installbsd from OSF since it installs stuff as root
1992 for ac_prog
in ginstall scoinst
install; do
1993 if test -f $ac_dir/$ac_prog; then
1994 if test $ac_prog = install &&
1995 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1996 # AIX install. It has an incompatible calling convention.
1999 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2010 if test "${ac_cv_path_install+set}" = set; then
2011 INSTALL
="$ac_cv_path_install"
2013 # As a last resort, use the slow shell script. We don't cache a
2014 # path for INSTALL within a source directory, because that will
2015 # break other packages using the cache if that directory is
2016 # removed, or if the path is relative.
2017 INSTALL
="$ac_install_sh"
2020 echo "$ac_t""$INSTALL" 1>&6
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2028 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2031 echo "configure:2032: checking whether ln -s works" >&5
2032 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2036 if ln -s X conftestdata
2>/dev
/null
2039 ac_cv_prog_LN_S
="ln -s"
2044 LN_S
="$ac_cv_prog_LN_S"
2045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2046 echo "$ac_t""yes" 1>&6
2048 echo "$ac_t""no" 1>&6
2051 # Extract the first word of "c2man", so it can be a program name with args.
2052 set dummy c2man
; ac_word
=$2
2053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_word" >&5
2055 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test -n "$C2MAN"; then
2059 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2063 for ac_dir
in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir
=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_C2MAN
="c2man"
2071 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="\$(TOPSRCDIR)/tools/c2man.pl"
2074 C2MAN
="$ac_cv_prog_C2MAN"
2075 if test -n "$C2MAN"; then
2076 echo "$ac_t""$C2MAN" 1>&6
2078 echo "$ac_t""no" 1>&6
2081 # Extract the first word of "ldconfig", so it can be a program name with args.
2082 set dummy ldconfig
; ac_word
=$2
2083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_word" >&5
2085 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2093 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2097 ac_dummy
="/sbin:/usr/sbin:$PATH"
2098 for ac_dir
in $ac_dummy; do
2099 test -z "$ac_dir" && ac_dir
=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2106 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="true"
2110 LDCONFIG
="$ac_cv_path_LDCONFIG"
2111 if test -n "$LDCONFIG"; then
2112 echo "$ac_t""$LDCONFIG" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2118 echo "configure:2119: checking for Cygwin environment" >&5
2119 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2129 #define __CYGWIN__ __CYGWIN32__
2134 if { (eval echo configure
:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2147 echo "$ac_t""$ac_cv_cygwin" 1>&6
2149 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
2150 # Extract the first word of "dllwrap", so it can be a program name with args.
2151 set dummy dllwrap
; ac_word
=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 if test -n "$DLLWRAP"; then
2158 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
2160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2162 for ac_dir
in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir
=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_DLLWRAP
="dllwrap"
2170 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP
="false"
2173 DLLWRAP
="$ac_cv_prog_DLLWRAP"
2174 if test -n "$DLLWRAP"; then
2175 echo "$ac_t""$DLLWRAP" 1>&6
2177 echo "$ac_t""no" 1>&6
2181 for ac_prog
in lclint lint
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy
$ac_prog; ac_word
=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 if test -n "$LINT"; then
2191 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2195 for ac_dir
in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir
=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_LINT
="$ac_prog"
2205 LINT
="$ac_cv_prog_LINT"
2206 if test -n "$LINT"; then
2207 echo "$ac_t""$LINT" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 test -n "$LINT" && break
2215 if test "$LINT" = "lint"
2217 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2222 if test "$CYGWIN" = "yes"
2224 LDCOMBINE
="ld -r --enable-stdcall-fixup"
2231 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2232 echo "configure:2233: checking for sqrt in -lm" >&5
2233 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 ac_save_LIBS
="$LIBS"
2239 cat > conftest.
$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_lib_$ac_lib_var=no"
2261 LIBS
="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h
<<EOF
2269 #define $ac_tr_lib 1
2275 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2279 echo "configure:2280: checking for i386_set_ldt in -li386" >&5
2280 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 ac_save_LIBS
="$LIBS"
2286 cat > conftest.
$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char i386_set_ldt();
2298 if { (eval echo configure
:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 eval "ac_cv_lib_$ac_lib_var=no"
2308 LIBS
="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2315 cat >> confdefs.h
<<EOF
2316 #define $ac_tr_lib 1
2322 echo "$ac_t""no" 1>&6
2325 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2326 echo "configure:2327: checking for _oss_ioctl in -lossaudio" >&5
2327 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 ac_save_LIBS
="$LIBS"
2332 LIBS
="-lossaudio $LIBS"
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 /* Override any gcc2 internal prototype to avoid an error. */
2337 /* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2345 if { (eval echo configure
:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.
$ac_ext >&5
2352 eval "ac_cv_lib_$ac_lib_var=no"
2355 LIBS
="$ac_save_LIBS"
2358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2362 cat >> confdefs.h
<<EOF
2363 #define $ac_tr_lib 1
2366 LIBS
="-lossaudio $LIBS"
2369 echo "$ac_t""no" 1>&6
2372 for ac_func
in iswalnum
2374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_func" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.
$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2403 if { (eval echo configure
:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2405 eval "ac_cv_func_$ac_func=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 eval "ac_cv_func_$ac_func=no"
2415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h
<<EOF
2419 #define $ac_tr_func 1
2423 echo "$ac_t""no" 1>&6
2424 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2425 echo "configure:2426: checking for iswalnum in -lw" >&5
2426 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 ac_save_LIBS
="$LIBS"
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2444 if { (eval echo configure
:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2446 eval "ac_cv_lib_$ac_lib_var=yes"
2448 echo "configure: failed program was:" >&5
2449 cat conftest.
$ac_ext >&5
2451 eval "ac_cv_lib_$ac_lib_var=no"
2454 LIBS
="$ac_save_LIBS"
2457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2461 cat >> confdefs.h
<<EOF
2462 #define $ac_tr_lib 1
2468 echo "$ac_t""no" 1>&6
2474 for ac_func
in gethostbyname
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.
$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2505 if { (eval echo configure
:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2507 eval "ac_cv_func_$ac_func=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 eval "ac_cv_func_$ac_func=no"
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h
<<EOF
2521 #define $ac_tr_func 1
2525 echo "$ac_t""no" 1>&6
2526 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2527 echo "configure:2528: checking for gethostbyname in -lnsl" >&5
2528 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 ac_save_LIBS
="$LIBS"
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* Override any gcc2 internal prototype to avoid an error. */
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540 char gethostbyname();
2546 if { (eval echo configure
:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2553 eval "ac_cv_lib_$ac_lib_var=no"
2556 LIBS
="$ac_save_LIBS"
2559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2563 cat >> confdefs.h
<<EOF
2564 #define $ac_tr_lib 1
2570 echo "$ac_t""no" 1>&6
2576 for ac_func
in connect
2578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_func" >&5
2580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $ac_func(); below. */
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2607 if { (eval echo configure
:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2609 eval "ac_cv_func_$ac_func=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 eval "ac_cv_func_$ac_func=no"
2619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 cat >> confdefs.h
<<EOF
2623 #define $ac_tr_func 1
2627 echo "$ac_t""no" 1>&6
2628 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2629 echo "configure:2630: checking for connect in -lsocket" >&5
2630 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_save_LIBS
="$LIBS"
2635 LIBS
="-lsocket $LIBS"
2636 cat > conftest.
$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2648 if { (eval echo configure
:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.
$ac_ext >&5
2655 eval "ac_cv_lib_$ac_lib_var=no"
2658 LIBS
="$ac_save_LIBS"
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h
<<EOF
2666 #define $ac_tr_lib 1
2669 LIBS
="-lsocket $LIBS"
2672 echo "$ac_t""no" 1>&6
2678 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2679 echo "configure:2680: checking for _xpg4_setrunelocale in -lxpg4" >&5
2680 ac_lib_var
=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 ac_save_LIBS
="$LIBS"
2686 cat > conftest.
$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2692 char _xpg4_setrunelocale();
2695 _xpg4_setrunelocale()
2698 if { (eval echo configure
:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2705 eval "ac_cv_lib_$ac_lib_var=no"
2708 LIBS
="$ac_save_LIBS"
2711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2715 cat >> confdefs.h
<<EOF
2716 #define $ac_tr_lib 1
2722 echo "$ac_t""no" 1>&6
2725 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2726 echo "configure:2727: checking for mmap in -lmmap" >&5
2727 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_save_LIBS
="$LIBS"
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2745 if { (eval echo configure
:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2749 echo "configure: failed program was:" >&5
2750 cat conftest.
$ac_ext >&5
2752 eval "ac_cv_lib_$ac_lib_var=no"
2755 LIBS
="$ac_save_LIBS"
2758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2762 cat >> confdefs.h
<<EOF
2763 #define $ac_tr_lib 1
2769 echo "$ac_t""no" 1>&6
2772 for ac_func
in openpty
2774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_func" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char $ac_func(); below. */
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2803 if { (eval echo configure
:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2805 eval "ac_cv_func_$ac_func=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 eval "ac_cv_func_$ac_func=no"
2815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2818 cat >> confdefs.h
<<EOF
2819 #define $ac_tr_func 1
2823 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2825 echo "configure:2826: checking for openpty in -lutil" >&5
2826 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_save_LIBS
="$LIBS"
2832 cat > conftest.
$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2844 if { (eval echo configure
:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2851 eval "ac_cv_lib_$ac_lib_var=no"
2854 LIBS
="$ac_save_LIBS"
2857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 cat >> confdefs.h
<<\EOF
2860 #define HAVE_OPENPTY 1
2866 echo "$ac_t""no" 1>&6
2873 for ac_hdr
in dlfcn.h
2875 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure
:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.
$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h
<<EOF
2905 #define $ac_tr_hdr 1
2907 for ac_func
in dlopen
2909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_func" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char $ac_func(); below. */
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2938 if { (eval echo configure
:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2940 eval "ac_cv_func_$ac_func=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2945 eval "ac_cv_func_$ac_func=no"
2950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2953 cat >> confdefs.h
<<EOF
2954 #define $ac_tr_func 1
2958 echo "$ac_t""no" 1>&6
2959 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2960 echo "configure:2961: checking for dlopen in -ldl" >&5
2961 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 ac_save_LIBS
="$LIBS"
2967 cat > conftest.
$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2979 if { (eval echo configure
:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2981 eval "ac_cv_lib_$ac_lib_var=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 eval "ac_cv_lib_$ac_lib_var=no"
2989 LIBS
="$ac_save_LIBS"
2992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 cat >> confdefs.h
<<\EOF
2995 #define HAVE_DLOPEN 1
3000 echo "$ac_t""no" 1>&6
3009 echo "$ac_t""no" 1>&6
3018 for ac_hdr
in jpeglib.h
3020 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_hdr" >&5
3023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3032 { (eval echo configure
:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3033 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3034 if test -z "$ac_err"; then
3036 eval "ac_cv_header_$ac_safe=yes"
3039 echo "configure: failed program was:" >&5
3040 cat conftest.
$ac_ext >&5
3042 eval "ac_cv_header_$ac_safe=no"
3046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3049 cat >> confdefs.h
<<EOF
3050 #define $ac_tr_hdr 1
3052 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3053 echo "configure:3054: checking for jpeg_start_decompress in -ljpeg" >&5
3054 ac_lib_var
=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 ac_save_LIBS
="$LIBS"
3060 cat > conftest.
$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char jpeg_start_decompress();
3069 jpeg_start_decompress()
3072 if { (eval echo configure
:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3079 eval "ac_cv_lib_$ac_lib_var=no"
3082 LIBS
="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h
<<\EOF
3088 #define HAVE_LIBJPEG 1
3094 echo "$ac_t""no" 1>&6
3099 echo "$ac_t""no" 1>&6
3112 if test "$have_x" = "yes"
3115 ac_save_CPPFLAGS
="$CPPFLAGS"
3116 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
3118 for ac_hdr
in X11
/xpm.h
3120 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_hdr" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3131 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure
:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3136 eval "ac_cv_header_$ac_safe=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.
$ac_ext >&5
3142 eval "ac_cv_header_$ac_safe=no"
3146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3149 cat >> confdefs.h
<<EOF
3150 #define $ac_tr_hdr 1
3152 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3153 echo "configure:3154: checking for XpmCreatePixmapFromData in -lXpm" >&5
3154 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 ac_save_LIBS
="$LIBS"
3159 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3167 char XpmCreatePixmapFromData();
3170 XpmCreatePixmapFromData()
3173 if { (eval echo configure
:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3175 eval "ac_cv_lib_$ac_lib_var=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 eval "ac_cv_lib_$ac_lib_var=no"
3183 LIBS
="$ac_save_LIBS"
3186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3187 echo "$ac_t""yes" 1>&6
3188 cat >> confdefs.h
<<\EOF
3189 #define HAVE_LIBXXPM 1
3192 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
3194 echo "$ac_t""no" 1>&6
3199 echo "$ac_t""no" 1>&6
3200 echo "Install the following packages:"
3201 echo "Red Hat < 7.1 : xpm xpm-devel"
3202 echo "Red Hat >= 7.1 : XFree86-devel"
3203 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3205 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3206 echo "Solaris 8 : SFWxpm"
3208 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3209 echo "the directory /contrib/libraries."
3218 for ac_hdr
in X11
/Xlib.h
3220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_hdr" >&5
3223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3232 { (eval echo configure
:3233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3234 if test -z "$ac_err"; then
3236 eval "ac_cv_header_$ac_safe=yes"
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 eval "ac_cv_header_$ac_safe=no"
3246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3249 cat >> confdefs.h
<<EOF
3250 #define $ac_tr_hdr 1
3253 for ac_hdr
in X11
/XKBlib.h
3255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_hdr" >&5
3258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3267 { (eval echo configure
:3268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3269 if test -z "$ac_err"; then
3271 eval "ac_cv_header_$ac_safe=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 eval "ac_cv_header_$ac_safe=no"
3281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3284 cat >> confdefs.h
<<EOF
3285 #define $ac_tr_hdr 1
3287 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3288 echo "configure:3289: checking for XkbQueryExtension in -lX11" >&5
3289 ac_lib_var
=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS
="$LIBS"
3294 LIBS
="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3301 char XkbQueryExtension();
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3309 eval "ac_cv_lib_$ac_lib_var=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3314 eval "ac_cv_lib_$ac_lib_var=no"
3317 LIBS
="$ac_save_LIBS"
3320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 cat >> confdefs.h
<<\EOF
3327 echo "$ac_t""no" 1>&6
3332 echo "$ac_t""no" 1>&6
3333 echo "configure: warning: XKB extension not found!!" 1>&2
3339 for ac_hdr
in X11
/extensions
/XShm.h
3341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_hdr" >&5
3344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.
$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3353 { (eval echo configure
:3354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3355 if test -z "$ac_err"; then
3357 eval "ac_cv_header_$ac_safe=yes"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.
$ac_ext >&5
3363 eval "ac_cv_header_$ac_safe=no"
3367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3370 cat >> confdefs.h
<<EOF
3371 #define $ac_tr_hdr 1
3373 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3374 echo "configure:3375: checking for XShmQueryExtension in -lXext" >&5
3375 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 ac_save_LIBS
="$LIBS"
3380 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char XShmQueryExtension();
3390 XShmQueryExtension()
3393 if { (eval echo configure
:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_lib_$ac_lib_var=no"
3403 LIBS
="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 cat >> confdefs.h
<<\EOF
3409 #define HAVE_LIBXXSHM 1
3413 echo "$ac_t""no" 1>&6
3418 echo "$ac_t""no" 1>&6
3419 echo "configure: warning: Xshm extension not found!!" 1>&2
3425 for ac_hdr
in X11
/extensions
/shape.h
3427 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure
:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3441 if test -z "$ac_err"; then
3443 eval "ac_cv_header_$ac_safe=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.
$ac_ext >&5
3449 eval "ac_cv_header_$ac_safe=no"
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h
<<EOF
3457 #define $ac_tr_hdr 1
3459 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3460 echo "configure:3461: checking for XShapeQueryExtension in -lXext" >&5
3461 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 ac_save_LIBS
="$LIBS"
3466 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3467 cat > conftest.
$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3473 char XShapeQueryExtension();
3476 XShapeQueryExtension()
3479 if { (eval echo configure
:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3481 eval "ac_cv_lib_$ac_lib_var=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3486 eval "ac_cv_lib_$ac_lib_var=no"
3489 LIBS
="$ac_save_LIBS"
3492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 cat >> confdefs.h
<<\EOF
3495 #define HAVE_LIBXSHAPE 1
3499 echo "$ac_t""no" 1>&6
3504 echo "$ac_t""no" 1>&6
3505 echo "configure: warning: XShape extension not found!!" 1>&2
3511 for ac_hdr
in X11
/extensions
/xf86dga.h
3513 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3515 echo "configure:3516: checking for $ac_hdr" >&5
3516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.
$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3525 { (eval echo configure
:3526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3527 if test -z "$ac_err"; then
3529 eval "ac_cv_header_$ac_safe=yes"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.
$ac_ext >&5
3535 eval "ac_cv_header_$ac_safe=no"
3539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3542 cat >> confdefs.h
<<EOF
3543 #define $ac_tr_hdr 1
3545 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3546 echo "configure:3547: checking for XDGAQueryExtension in -lXxf86dga" >&5
3547 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_save_LIBS
="$LIBS"
3552 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3554 cat > conftest.
$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560 char XDGAQueryExtension();
3563 XDGAQueryExtension()
3566 if { (eval echo configure
:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3568 eval "ac_cv_lib_$ac_lib_var=yes"
3570 echo "configure: failed program was:" >&5
3571 cat conftest.
$ac_ext >&5
3573 eval "ac_cv_lib_$ac_lib_var=no"
3576 LIBS
="$ac_save_LIBS"
3579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 cat >> confdefs.h
<<\EOF
3582 #define HAVE_LIBXXF86DGA2 1
3585 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3588 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3590 echo "configure:3591: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3591 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS
="$LIBS"
3596 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604 char XF86DGAQueryExtension();
3607 XF86DGAQueryExtension()
3610 if { (eval echo configure
:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3612 eval "ac_cv_lib_$ac_lib_var=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.
$ac_ext >&5
3617 eval "ac_cv_lib_$ac_lib_var=no"
3620 LIBS
="$ac_save_LIBS"
3623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 cat >> confdefs.h
<<\EOF
3626 #define HAVE_LIBXXF86DGA 1
3629 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3632 echo "$ac_t""no" 1>&6
3640 echo "$ac_t""no" 1>&6
3641 echo "configure: warning: DGA extension not found!!" 1>&2
3647 for ac_hdr
in X11
/extensions
/xf86vmode.h
3649 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3651 echo "configure:3652: checking for $ac_hdr" >&5
3652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3661 { (eval echo configure
:3662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3663 if test -z "$ac_err"; then
3665 eval "ac_cv_header_$ac_safe=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 eval "ac_cv_header_$ac_safe=no"
3675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3678 cat >> confdefs.h
<<EOF
3679 #define $ac_tr_hdr 1
3681 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3682 echo "configure:3683: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3683 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS
="$LIBS"
3688 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3690 cat > conftest.
$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696 char XF86VidModeQueryExtension();
3699 XF86VidModeQueryExtension()
3702 if { (eval echo configure
:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3704 eval "ac_cv_lib_$ac_lib_var=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 eval "ac_cv_lib_$ac_lib_var=no"
3712 LIBS
="$ac_save_LIBS"
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 cat >> confdefs.h
<<\EOF
3718 #define HAVE_LIBXXF86VM 1
3721 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3724 echo "$ac_t""no" 1>&6
3729 echo "$ac_t""no" 1>&6
3730 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3736 for ac_hdr
in X11
/extensions
/Xvlib.h
3738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_hdr" >&5
3741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 cat > conftest.
$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750 { (eval echo configure
:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3752 if test -z "$ac_err"; then
3754 eval "ac_cv_header_$ac_safe=yes"
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3760 eval "ac_cv_header_$ac_safe=no"
3764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3767 cat >> confdefs.h
<<EOF
3768 #define $ac_tr_hdr 1
3770 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3771 echo "configure:3772: checking for XvShmCreateImage in -lXv" >&5
3772 ac_lib_var
=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS
="$LIBS"
3777 LIBS
="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3779 cat > conftest.
$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char XvShmCreateImage();
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS
="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 cat >> confdefs.h
<<\EOF
3807 #define HAVE_XVIDEO 1
3810 X_PRE_LIBS
="$X_PRE_LIBS -lXv"
3813 echo "$ac_t""no" 1>&6
3818 echo "$ac_t""no" 1>&6
3819 echo "configure: warning: XVideo extension not found !!" 1>&2
3825 for ac_hdr
in X11
/extensions
/Xrender.h
3827 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_hdr" >&5
3830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3839 { (eval echo configure
:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3841 if test -z "$ac_err"; then
3843 eval "ac_cv_header_$ac_safe=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.
$ac_ext >&5
3849 eval "ac_cv_header_$ac_safe=no"
3853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3856 cat >> confdefs.h
<<EOF
3857 #define $ac_tr_hdr 1
3859 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3860 echo "configure:3861: checking for XRenderQueryExtension in -lXrender" >&5
3861 ac_lib_var
=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS
="$LIBS"
3866 LIBS
="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3868 cat > conftest.
$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874 char XRenderQueryExtension();
3877 XRenderQueryExtension()
3880 if { (eval echo configure
:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS
="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 cat >> confdefs.h
<<\EOF
3896 #define HAVE_LIBXRENDER 1
3899 X_PRE_LIBS
="$X_PRE_LIBS -lXrender"
3902 echo "$ac_t""no" 1>&6
3907 echo "$ac_t""no" 1>&6
3908 echo "configure: warning: XRender extension not found !!" 1>&2
3917 echo "$ac_t""no" 1>&6
3921 if test $OPENGL = "yes" -o $OPENGL = "normal"
3923 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/glext.h
3925 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3927 echo "configure:3928: checking for $ac_hdr" >&5
3928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.
$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3937 { (eval echo configure
:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3939 if test -z "$ac_err"; then
3941 eval "ac_cv_header_$ac_safe=yes"
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 eval "ac_cv_header_$ac_safe=no"
3951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3954 cat >> confdefs.h
<<EOF
3955 #define $ac_tr_hdr 1
3959 echo "$ac_t""no" 1>&6
3963 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3965 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3966 echo "configure:3967: checking for up-to-date OpenGL version" >&5
3967 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3975 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3978 if { (eval echo configure
:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980 wine_cv_opengl_version_OK
="yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 wine_cv_opengl_version_OK
="no"
3992 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3994 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3995 echo "configure:3996: checking for thread-safe OpenGL version" >&5
3996 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4006 pthread_getspecific();
4009 if { (eval echo configure
:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4011 wine_cv_opengl_version_threadsafe
="yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 wine_cv_opengl_version_threadsafe
="no"
4023 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
4025 if test "$wine_cv_opengl_version_OK" = "yes" -a \
( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \
)
4027 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
4028 echo "configure:4029: checking for glXCreateContext in -lGL" >&5
4029 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
4030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 ac_save_LIBS
="$LIBS"
4034 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4035 cat > conftest.
$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4041 char glXCreateContext();
4047 if { (eval echo configure
:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.
$ac_ext >&5
4054 eval "ac_cv_lib_$ac_lib_var=no"
4057 LIBS
="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
4065 echo "$ac_t""no" 1>&6
4069 if test $ac_cv_lib_GL_glXCreateContext = "yes"
4072 OPENGLFILES
='$(OPENGLFILES)'
4073 cat >> confdefs.h
<<\EOF
4074 #define HAVE_OPENGL 1
4078 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4079 echo "configure:4080: checking for glXGetProcAddressARB in -lGL" >&5
4080 ac_lib_var
=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 ac_save_LIBS
="$LIBS"
4085 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4086 cat > conftest.
$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char glXGetProcAddressARB();
4095 glXGetProcAddressARB()
4098 if { (eval echo configure
:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.
$ac_ext >&5
4105 eval "ac_cv_lib_$ac_lib_var=no"
4108 LIBS
="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 cat >> confdefs.h
<<\EOF
4114 #define HAVE_GLX_GETPROCADDRESS 1
4118 echo "$ac_t""no" 1>&6
4122 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4124 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4125 echo "configure:4126: checking for OpenGL extension functions prototypes" >&5
4126 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4133 #ifdef HAVE_GL_GLEXT_H
4134 # include <GL/glext.h>
4138 PFNGLCOLORTABLEEXTPROC test_proc;
4141 if { (eval echo configure
:4142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 wine_cv_extension_prototypes
="yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.
$ac_ext >&5
4148 wine_cv_extension_prototypes
="no"
4155 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4156 if test $wine_cv_extension_prototypes = "yes"
4158 cat >> confdefs.h
<<\EOF
4159 #define HAVE_GLEXT_PROTOTYPES 1
4166 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4167 echo "configure:4168: checking for gluLookAt in -lGLU" >&5
4168 ac_lib_var
=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 ac_save_LIBS
="$LIBS"
4173 LIBS
="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4175 cat > conftest.
$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4187 if { (eval echo configure
:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4189 eval "ac_cv_lib_$ac_lib_var=yes"
4191 echo "configure: failed program was:" >&5
4192 cat conftest.
$ac_ext >&5
4194 eval "ac_cv_lib_$ac_lib_var=no"
4197 LIBS
="$ac_save_LIBS"
4200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 X_PRE_LIBS
="$X_PRE_LIBS -lGLU"
4203 GLU32FILES
='$(GLU32FILES)'
4206 echo "$ac_t""no" 1>&6
4213 CPPFLAGS
="$ac_save_CPPFLAGS"
4221 if test "$CURSES" = "yes"
4223 for ac_hdr
in ncurses.h
4225 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4227 echo "configure:4228: checking for $ac_hdr" >&5
4228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4237 { (eval echo configure
:4238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4238 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4239 if test -z "$ac_err"; then
4241 eval "ac_cv_header_$ac_safe=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.
$ac_ext >&5
4247 eval "ac_cv_header_$ac_safe=no"
4251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4254 cat >> confdefs.h
<<EOF
4255 #define $ac_tr_hdr 1
4257 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4258 echo "configure:4259: checking for waddch in -lncurses" >&5
4259 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS
="$LIBS"
4264 LIBS
="-lncurses $LIBS"
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4277 if { (eval echo configure
:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS
="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
4293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4294 cat >> confdefs.h
<<EOF
4295 #define $ac_tr_lib 1
4298 LIBS
="-lncurses $LIBS"
4301 echo "$ac_t""no" 1>&6
4305 echo "$ac_t""no" 1>&6
4306 for ac_hdr
in curses.h
4308 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_hdr" >&5
4311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4320 { (eval echo configure
:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4322 if test -z "$ac_err"; then
4324 eval "ac_cv_header_$ac_safe=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4330 eval "ac_cv_header_$ac_safe=no"
4334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4337 cat >> confdefs.h
<<EOF
4338 #define $ac_tr_hdr 1
4340 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4341 echo "configure:4342: checking for waddch in -lcurses" >&5
4342 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS
="$LIBS"
4347 LIBS
="-lcurses $LIBS"
4348 cat > conftest.
$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4360 if { (eval echo configure
:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4362 eval "ac_cv_lib_$ac_lib_var=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 eval "ac_cv_lib_$ac_lib_var=no"
4370 LIBS
="$ac_save_LIBS"
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
4376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4377 cat >> confdefs.h
<<EOF
4378 #define $ac_tr_lib 1
4381 LIBS
="-lcurses $LIBS"
4384 echo "$ac_t""no" 1>&6
4388 echo "$ac_t""no" 1>&6
4395 for ac_func
in getbkgd resizeterm
4397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4398 echo "configure:4399: checking for $ac_func" >&5
4399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.
$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* System header to define __stub macros and hopefully few prototypes,
4406 which can conflict with char $ac_func(); below. */
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4428 eval "ac_cv_func_$ac_func=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 eval "ac_cv_func_$ac_func=no"
4438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4441 cat >> confdefs.h
<<EOF
4442 #define $ac_tr_func 1
4446 echo "$ac_t""no" 1>&6
4453 wine_cv_warn_cups_h
=no
4454 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4455 echo "configure:4456: checking for cupsGetPPD in -lcups" >&5
4456 ac_lib_var
=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 ac_save_LIBS
="$LIBS"
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4474 if { (eval echo configure
:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4476 eval "ac_cv_lib_$ac_lib_var=yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4481 eval "ac_cv_lib_$ac_lib_var=no"
4484 LIBS
="$ac_save_LIBS"
4487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4488 echo "$ac_t""yes" 1>&6
4489 ac_safe
=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4490 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4491 echo "configure:4492: checking for cups/cups.h" >&5
4492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.
$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 #include <cups/cups.h>
4500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4501 { (eval echo configure
:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4503 if test -z "$ac_err"; then
4505 eval "ac_cv_header_$ac_safe=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 eval "ac_cv_header_$ac_safe=no"
4515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 cat >> confdefs.h
<<\EOF
4523 echo "$ac_t""no" 1>&6
4524 wine_cv_warn_cups_h
=yes
4529 echo "$ac_t""no" 1>&6
4534 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4535 echo "configure:4536: checking for FT_Init_FreeType in -lfreetype" >&5
4536 ac_lib_var
=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 ac_save_LIBS
="$LIBS"
4541 LIBS
="-lfreetype $LIBS"
4542 cat > conftest.
$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4545 /* Override any gcc2 internal prototype to avoid an error. */
4546 /* We use char because int might match the return type of a gcc2
4547 builtin and then its argument prototype would still apply. */
4548 char FT_Init_FreeType();
4554 if { (eval echo configure
:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4556 eval "ac_cv_lib_$ac_lib_var=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.
$ac_ext >&5
4561 eval "ac_cv_lib_$ac_lib_var=no"
4564 LIBS
="$ac_save_LIBS"
4567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4571 echo "$ac_t""no" 1>&6
4575 if test "$ft_lib" = "no"
4579 wine_cv_msg_freetype
=no
4581 # Extract the first word of "freetype-config", so it can be a program name with args.
4582 set dummy freetype-config
; ac_word
=$2
4583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4584 echo "configure:4585: checking for $ac_word" >&5
4585 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 if test -n "$ft_devel"; then
4589 ac_cv_prog_ft_devel
="$ft_devel" # Let the user override the test.
4591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4593 for ac_dir
in $ac_dummy; do
4594 test -z "$ac_dir" && ac_dir
=.
4595 if test -f $ac_dir/$ac_word; then
4596 ac_cv_prog_ft_devel
="freetype-config"
4601 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel
="no"
4604 ft_devel
="$ac_cv_prog_ft_devel"
4605 if test -n "$ft_devel"; then
4606 echo "$ac_t""$ft_devel" 1>&6
4608 echo "$ac_t""no" 1>&6
4611 if test "$ft_devel" = "no"
4613 # Extract the first word of "freetype2-config", so it can be a program name with args.
4614 set dummy freetype2-config
; ac_word
=$2
4615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_word" >&5
4617 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 if test -n "$ft_devel2"; then
4621 ac_cv_prog_ft_devel2
="$ft_devel2" # Let the user override the test.
4623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4625 for ac_dir
in $ac_dummy; do
4626 test -z "$ac_dir" && ac_dir
=.
4627 if test -f $ac_dir/$ac_word; then
4628 ac_cv_prog_ft_devel2
="freetype2-config"
4633 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2
="no"
4636 ft_devel2
="$ac_cv_prog_ft_devel2"
4637 if test -n "$ft_devel2"; then
4638 echo "$ac_t""$ft_devel2" 1>&6
4640 echo "$ac_t""no" 1>&6
4643 if test "$ft_devel2" = "freetype2-config"
4648 if test "$ft_devel" = "no"
4652 wine_cv_msg_freetype
=yes
4654 cat >> confdefs.h
<<\EOF
4655 #define HAVE_FREETYPE 1
4658 FREETYPELIBS
=`$ft_devel --libs`
4659 FREETYPEINCL
=`$ft_devel --cflags`
4660 ac_save_CPPFLAGS
="$CPPFLAGS"
4661 CPPFLAGS
="$FREETYPEINCL $CPPFLAGS"
4662 for ac_hdr
in freetype
/freetype.h \
4663 freetype
/ftglyph.h \
4664 freetype
/tttables.h \
4665 freetype
/ftnames.h \
4666 freetype
/ftsnames.h \
4667 freetype
/ttnameid.h \
4668 freetype
/ftoutln.h \
4669 freetype
/internal
/sfnt.h
4671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4673 echo "configure:4674: checking for $ac_hdr" >&5
4674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4683 { (eval echo configure
:4684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4685 if test -z "$ac_err"; then
4687 eval "ac_cv_header_$ac_safe=yes"
4690 echo "configure: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4693 eval "ac_cv_header_$ac_safe=no"
4697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4700 cat >> confdefs.h
<<EOF
4701 #define $ac_tr_hdr 1
4705 echo "$ac_t""no" 1>&6
4709 CPPFLAGS
="$ac_save_CPPFLAGS"
4710 wine_cv_msg_freetype
=no
4716 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4717 echo "configure:4718: checking for parport header/ppdev.h" >&5
4718 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.
$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724 #include <linux/ppdev.h>
4729 if { (eval echo configure
:4730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733 echo "configure: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4742 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4743 if test "$ac_cv_c_ppdev" = "yes"
4745 cat >> confdefs.h
<<\EOF
4746 #define HAVE_PPDEV 1
4751 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4752 echo "configure:4753: checking for GNU style IPX support" >&5
4753 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 cat > conftest.
$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <sys/socket.h>
4760 #include <netipx/ipx.h>
4762 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4765 if { (eval echo configure
:4766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4767 ac_cv_c_ipx_gnu
="yes"
4769 echo "configure: failed program was:" >&5
4770 cat conftest.
$ac_ext >&5
4772 ac_cv_c_ipx_gnu
="no"
4778 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4779 if test "$ac_cv_c_ipx_gnu" = "yes"
4781 cat >> confdefs.h
<<\EOF
4782 #define HAVE_IPX_GNU 1
4787 if test "$ac_cv_c_ipx_gnu" = "no"
4789 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4790 echo "configure:4791: checking for linux style IPX support" >&5
4791 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.
$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <sys/socket.h>
4798 #include <asm/types.h>
4799 #include <linux/ipx.h>
4801 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4804 if { (eval echo configure
:4805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4806 ac_cv_c_ipx_linux
="yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 ac_cv_c_ipx_linux
="no"
4817 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4818 if test "$ac_cv_c_ipx_linux" = "yes"
4820 cat >> confdefs.h
<<\EOF
4821 #define HAVE_IPX_LINUX 1
4827 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4829 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4831 echo "configure:4832: checking for $ac_hdr" >&5
4832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4841 { (eval echo configure
:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4842 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4843 if test -z "$ac_err"; then
4845 eval "ac_cv_header_$ac_safe=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 eval "ac_cv_header_$ac_safe=no"
4855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4858 cat >> confdefs.h
<<EOF
4859 #define $ac_tr_hdr 1
4863 echo "$ac_t""no" 1>&6
4868 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4869 echo "configure:4870: checking for Open Sound System" >&5
4870 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.
$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4877 #if defined(HAVE_SYS_SOUNDCARD_H)
4878 #include <sys/soundcard.h>
4879 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4880 #include <machine/soundcard.h>
4881 #elif defined(HAVE_SOUNDCARD_H)
4882 #include <soundcard.h>
4888 /* check for one of the Open Sound System specific SNDCTL_ defines */
4889 #if !defined(SNDCTL_DSP_STEREO)
4890 #error No open sound system
4895 if { (eval echo configure
:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4897 ac_cv_c_opensoundsystem
="yes"
4899 echo "configure: failed program was:" >&5
4900 cat conftest.
$ac_ext >&5
4902 ac_cv_c_opensoundsystem
="no"
4907 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4909 if test "$ac_cv_c_opensoundsystem" = "yes"
4911 cat >> confdefs.h
<<\EOF
4917 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4918 echo "configure:4919: checking for Open Sound System/MIDI interface" >&5
4919 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 cat > conftest.
$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4926 #if defined(HAVE_SYS_SOUNDCARD_H)
4927 #include <sys/soundcard.h>
4928 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4929 #include <machine/soundcard.h>
4930 #elif defined(HAVE_SOUNDCARD_H)
4931 #include <soundcard.h>
4937 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4938 #if !defined(SNDCTL_SEQ_SYNC)
4939 #error No open sound system MIDI interface
4944 if { (eval echo configure
:4945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4946 ac_cv_c_opensoundsystem_midi
="yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.
$ac_ext >&5
4951 ac_cv_c_opensoundsystem_midi
="no"
4956 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4958 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4960 cat >> confdefs.h
<<\EOF
4961 #define HAVE_OSS_MIDI 1
4966 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4969 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4970 echo "configure:4971: checking whether mmap64 works defined as mmap" >&5
4971 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 if test "$cross_compiling" = yes; then
4975 ac_cv_mmap64_works
="no"
4977 cat > conftest.
$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4981 #define _FILE_OFFSET_BITS 64
4985 #include <sys/mman.h>
4988 int main(int argc,char **argv) {
4989 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4990 if (fd == -1) exit(1);
4992 unlink("conftest.map");
4996 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
5002 fprintf(stderr,"success!\n");
5008 if { (eval echo configure
:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5010 ac_cv_mmap64_works
="yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 ac_cv_mmap64_works
="no"
5022 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5024 if test "$ac_cv_mmap64_works" = "yes"
5026 cat >> confdefs.h
<<\EOF
5027 #define _FILE_OFFSET_BITS 64
5033 if test "x${GCC}" = "xyes"
5035 CFLAGS
="$CFLAGS -Wall"
5036 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5037 echo "configure:5038: checking for gcc strength-reduce bug" >&5
5038 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 if test "$cross_compiling" = yes; then
5042 ac_cv_c_gcc_strength_bug
="yes"
5044 cat > conftest.
$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5048 int L[4] = {0,1,2,3};
5050 static int Array[3];
5053 for(i=0; i<B; i++) Array[i] = i - 3;
5054 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5057 exit( Array[1] != -2 || L[2] != 3);
5060 if { (eval echo configure
:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5062 ac_cv_c_gcc_strength_bug
="no"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 ac_cv_c_gcc_strength_bug
="yes"
5074 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5075 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5077 CFLAGS
="$CFLAGS -fno-strength-reduce"
5080 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5081 echo "configure:5082: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5082 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 saved_cflags
=$CFLAGS
5086 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
5087 cat > conftest.
$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5095 if { (eval echo configure
:5096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5097 ac_cv_c_gcc_stack_boundary
="yes"
5099 echo "configure: failed program was:" >&5
5100 cat conftest.
$ac_ext >&5
5102 ac_cv_c_gcc_stack_boundary
="no"
5105 CFLAGS
=$saved_cflags
5109 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5110 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5112 CFLAGS
="$CFLAGS -mpreferred-stack-boundary=2"
5117 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5118 echo "configure:5119: checking whether .type must sit inside a .def directive" >&5
5119 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5123 LIBS
="conftest_asm.s $LIBS"
5124 cat > conftest_asm.s
<<EOF
5126 .def _ac_test; .scl 2; .type 32; .endef
5130 cat > conftest.
$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure
:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5140 ac_cv_c_type_in_def
="yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.
$ac_ext >&5
5145 ac_cv_c_type_in_def
="no"
5151 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5152 if test "$ac_cv_c_type_in_def" = "yes"
5154 cat >> confdefs.h
<<\EOF
5155 #define NEED_TYPE_IN_DEF 1
5161 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5162 echo "configure:5163: checking whether external symbols need an underscore prefix" >&5
5163 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5167 LIBS
="conftest_asm.s $LIBS"
5168 cat > conftest_asm.s
<<EOF
5173 cat > conftest.
$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5178 if (ac_test) return 1
5181 if { (eval echo configure
:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5183 ac_cv_c_extern_prefix
="yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.
$ac_ext >&5
5188 ac_cv_c_extern_prefix
="no"
5194 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5195 if test "$ac_cv_c_extern_prefix" = "yes"
5197 cat >> confdefs.h
<<\EOF
5198 #define NEED_UNDERSCORE_PREFIX 1
5204 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5205 echo "configure:5206: checking whether assembler accepts .string" >&5
5206 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5210 LIBS
="conftest_asm.s $LIBS"
5211 cat > conftest_asm.s
<<EOF
5214 cat > conftest.
$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5222 if { (eval echo configure
:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5224 ac_cv_c_asm_string
="yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 ac_cv_c_asm_string
="no"
5235 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5236 if test "$ac_cv_c_asm_string" = "yes"
5238 cat >> confdefs.h
<<\EOF
5239 #define HAVE_ASM_STRING 1
5247 if test "$LIBEXT" = "so"
5249 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5250 echo "configure:5251: checking whether we can build a GNU style ELF dll" >&5
5251 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 saved_cflags
=$CFLAGS
5255 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5256 cat > conftest.
$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5264 if { (eval echo configure
:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5266 ac_cv_c_dll_gnuelf
="yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.
$ac_ext >&5
5271 ac_cv_c_dll_gnuelf
="no"
5274 CFLAGS
=$saved_cflags
5278 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5279 if test "$ac_cv_c_dll_gnuelf" = "yes"
5281 LDSHARED
="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5282 LDDLLFLAGS
="-Wl,-Bsymbolic"
5284 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5285 echo "configure:5286: checking whether we can build a UnixWare (Solaris) dll" >&5
5286 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 saved_cflags
=$CFLAGS
5290 CFLAGS
="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5291 cat > conftest.
$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5299 if { (eval echo configure
:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5301 ac_cv_c_dll_unixware
="yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.
$ac_ext >&5
5306 ac_cv_c_dll_unixware
="no"
5309 CFLAGS
=$saved_cflags
5313 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5314 if test "$ac_cv_c_dll_unixware" = "yes"
5316 LDSHARED
="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5317 LDDLLFLAGS
="-Wl,-B,symbolic"
5320 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5323 if test "$DLLWRAP" = "dllwrap"; then
5324 if test "$CYGWIN" = "yes"; then
5325 echo "*** use dllwrap for building shared library."
5332 if test "$LIBEXT" = "a"; then
5333 echo "*** It is currently not possible to build WINE without shared"
5334 echo "*** library (.so) support to allow transparent switch between .so"
5335 echo "*** and .dll files."
5336 echo "*** If you are using Linux, you will need a newer binutils."
5343 if test "$LIBEXT" = "so"; then
5345 LDPATH
="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5346 elif test "$LIBEXT" = "dll"; then
5347 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5348 LDPATH
="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5360 wine_cv_libc_reentrant
=no
5362 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5363 echo "configure:5364: checking for reentrant libc: __errno_location" >&5
5364 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 if test "$cross_compiling" = yes; then
5368 wine_cv_libc_r___errno_location
=yes
5370 cat > conftest.
$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5375 int *__errno_location(){return &myerrno;}
5376 main(){connect(0,buf,255); exit(!myerrno);}
5378 if { (eval echo configure
:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5380 wine_cv_libc_r___errno_location
=yes
5382 echo "configure: failed program was:" >&5
5383 cat conftest.
$ac_ext >&5
5385 wine_cv_libc_r___errno_location
=no
5393 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5394 if test "$wine_cv_libc_r___errno_location" = "yes"
5396 wine_cv_libc_reentrant
=__errno_location
5400 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5401 echo "configure:5402: checking for reentrant libc: __error" >&5
5402 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 if test "$cross_compiling" = yes; then
5406 wine_cv_libc_r___error
=yes
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5413 int *__error(){return &myerrno;}
5414 main(){connect(0,buf,255); exit(!myerrno);}
5416 if { (eval echo configure
:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5418 wine_cv_libc_r___error
=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 wine_cv_libc_r___error
=no
5431 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5432 if test "$wine_cv_libc_r___error" = "yes"
5434 wine_cv_libc_reentrant
=__error
5438 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5439 echo "configure:5440: checking for reentrant libc: ___errno" >&5
5440 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5443 if test "$cross_compiling" = yes; then
5444 wine_cv_libc_r____errno
=yes
5446 cat > conftest.
$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5451 int *___errno(){return &myerrno;}
5452 main(){connect(0,buf,255); exit(!myerrno);}
5454 if { (eval echo configure
:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5456 wine_cv_libc_r____errno
=yes
5458 echo "configure: failed program was:" >&5
5459 cat conftest.
$ac_ext >&5
5461 wine_cv_libc_r____errno
=no
5469 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5470 if test "$wine_cv_libc_r____errno" = "yes"
5472 wine_cv_libc_reentrant
=___errno
5476 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5477 echo "configure:5478: checking for reentrant libc: __thr_errno" >&5
5478 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 if test "$cross_compiling" = yes; then
5482 wine_cv_libc_r___thr_errno
=yes
5484 cat > conftest.
$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5489 int *__thr_errno(){return &myerrno;}
5490 main(){connect(0,buf,255); exit(!myerrno);}
5492 if { (eval echo configure
:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5494 wine_cv_libc_r___thr_errno
=yes
5496 echo "configure: failed program was:" >&5
5497 cat conftest.
$ac_ext >&5
5499 wine_cv_libc_r___thr_errno
=no
5507 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5508 if test "$wine_cv_libc_r___thr_errno" = "yes"
5510 wine_cv_libc_reentrant
=__thr_errno
5514 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5515 echo "configure:5516: checking for reentrant libc: __errno" >&5
5516 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test "$cross_compiling" = yes; then
5520 wine_cv_libc_r___errno
=yes
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5527 int *__errno(){return &myerrno;}
5528 main(){connect(0,buf,255); exit(!myerrno);}
5530 if { (eval echo configure
:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5532 wine_cv_libc_r___errno
=yes
5534 echo "configure: failed program was:" >&5
5535 cat conftest.
$ac_ext >&5
5537 wine_cv_libc_r___errno
=no
5545 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5546 if test "$wine_cv_libc_r___errno" = "yes"
5548 wine_cv_libc_reentrant
=__errno
5552 if test "$wine_cv_libc_reentrant" != "no"
5554 cat >> confdefs.h
<<EOF
5555 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5561 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5563 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5564 echo "configure:5565: checking for reentrant X libraries" >&5
5565 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 if test "x$with_reentrant_x" = "xno"
5570 wine_cv_x_reentrant
=no
5573 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
5574 if test -r $dir/libX11.so
; then
5575 libX11_check
="-D $dir/libX11.so"
5578 if test -r $dir/libX11.a
; then
5579 libX11_check
="$dir/libX11.a"
5583 if test "$libX11_check" != "none"; then
5584 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
5586 wine_cv_x_reentrant
=yes
5588 wine_cv_x_reentrant
=no
5591 wine_cv_x_reentrant
=unknown
5596 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5598 wine_cv_x_reentrant
=no
5600 if test "$wine_cv_x_reentrant" = "no"
5602 cat >> confdefs.h
<<\EOF
5603 #define NO_REENTRANT_X11 1
5610 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5611 # for constant arguments. Useless!
5612 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5613 echo "configure:5614: checking for working alloca.h" >&5
5614 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 cat > conftest.
$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5622 char *p = alloca(2 * sizeof(int));
5625 if { (eval echo configure
:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5627 ac_cv_header_alloca_h
=yes
5629 echo "configure: failed program was:" >&5
5630 cat conftest.
$ac_ext >&5
5632 ac_cv_header_alloca_h
=no
5637 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5638 if test $ac_cv_header_alloca_h = yes; then
5639 cat >> confdefs.h
<<\EOF
5640 #define HAVE_ALLOCA_H 1
5645 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5646 echo "configure:5647: checking for alloca" >&5
5647 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5655 # define alloca __builtin_alloca
5658 # include <malloc.h>
5659 # define alloca _alloca
5662 # include <alloca.h>
5667 # ifndef alloca /* predefined by HP cc +Olibcalls */
5676 char *p = (char *) alloca(1);
5679 if { (eval echo configure
:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5681 ac_cv_func_alloca_works
=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 ac_cv_func_alloca_works
=no
5691 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5692 if test $ac_cv_func_alloca_works = yes; then
5693 cat >> confdefs.h
<<\EOF
5694 #define HAVE_ALLOCA 1
5699 if test $ac_cv_func_alloca_works = no
; then
5700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5701 # that cause trouble. Some versions do not even contain alloca or
5702 # contain a buggy version. If you still want to use their alloca,
5703 # use ar to extract alloca.o from them instead of compiling alloca.c.
5704 ALLOCA
=alloca.
${ac_objext}
5705 cat >> confdefs.h
<<\EOF
5710 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5711 echo "configure:5712: checking whether alloca needs Cray hooks" >&5
5712 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.
$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 #if defined(CRAY) && ! defined(CRAY2)
5725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5726 egrep "webecray" >/dev
/null
2>&1; then
5737 echo "$ac_t""$ac_cv_os_cray" 1>&6
5738 if test $ac_cv_os_cray = yes; then
5739 for ac_func
in _getb67 GETB67 getb67
; do
5740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5741 echo "configure:5742: checking for $ac_func" >&5
5742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5745 cat > conftest.
$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* System header to define __stub macros and hopefully few prototypes,
5749 which can conflict with char $ac_func(); below. */
5751 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5758 /* The GNU C library defines this for functions which it implements
5759 to always fail with ENOSYS. Some functions are actually named
5760 something starting with __ and the normal name is an alias. */
5761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5769 if { (eval echo configure
:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5771 eval "ac_cv_func_$ac_func=yes"
5773 echo "configure: failed program was:" >&5
5774 cat conftest.
$ac_ext >&5
5776 eval "ac_cv_func_$ac_func=no"
5781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5783 cat >> confdefs.h
<<EOF
5784 #define CRAY_STACKSEG_END $ac_func
5789 echo "$ac_t""no" 1>&6
5795 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5796 echo "configure:5797: checking stack direction for C alloca" >&5
5797 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5800 if test "$cross_compiling" = yes; then
5801 ac_cv_c_stack_direction
=0
5803 cat > conftest.
$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 find_stack_direction ()
5808 static char *addr = 0;
5813 return find_stack_direction ();
5816 return (&dummy > addr) ? 1 : -1;
5820 exit (find_stack_direction() < 0);
5823 if { (eval echo configure
:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5825 ac_cv_c_stack_direction
=1
5827 echo "configure: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5830 ac_cv_c_stack_direction
=-1
5837 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5838 cat >> confdefs.h
<<EOF
5839 #define STACK_DIRECTION $ac_cv_c_stack_direction
5882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5883 echo "configure:5884: checking for $ac_func" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func(); below. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5911 if { (eval echo configure
:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5913 eval "ac_cv_func_$ac_func=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5918 eval "ac_cv_func_$ac_func=no"
5923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5926 cat >> confdefs.h
<<EOF
5927 #define $ac_tr_func 1
5931 echo "$ac_t""no" 1>&6
5953 netinet
/in_systm.h \
5992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_hdr" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure
:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6008 eval "ac_cv_header_$ac_safe=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6014 eval "ac_cv_header_$ac_safe=no"
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6021 cat >> confdefs.h
<<EOF
6022 #define $ac_tr_hdr 1
6026 echo "$ac_t""no" 1>&6
6030 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6031 echo "configure:6032: checking whether stat file-mode macros are broken" >&5
6032 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6035 cat > conftest.
$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 #include <sys/types.h>
6039 #include <sys/stat.h>
6041 #if defined(S_ISBLK) && defined(S_IFDIR)
6042 # if S_ISBLK (S_IFDIR)
6047 #if defined(S_ISBLK) && defined(S_IFCHR)
6048 # if S_ISBLK (S_IFCHR)
6053 #if defined(S_ISLNK) && defined(S_IFREG)
6054 # if S_ISLNK (S_IFREG)
6059 #if defined(S_ISSOCK) && defined(S_IFREG)
6060 # if S_ISSOCK (S_IFREG)
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 egrep "You lose" >/dev
/null
2>&1; then
6069 ac_cv_header_stat_broken
=yes
6072 ac_cv_header_stat_broken
=no
6078 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6079 if test $ac_cv_header_stat_broken = yes; then
6080 cat >> confdefs.h
<<\EOF
6081 #define STAT_MACROS_BROKEN 1
6088 echo $ac_n "checking for working const""... $ac_c" 1>&6
6089 echo "configure:6090: checking for working const" >&5
6090 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.
$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6099 /* Ultrix mips cc rejects this. */
6100 typedef int charset[2]; const charset x;
6101 /* SunOS 4.1.1 cc rejects this. */
6102 char const *const *ccp;
6104 /* NEC SVR4.0.2 mips cc rejects this. */
6105 struct point {int x, y;};
6106 static struct point const zero = {0,0};
6107 /* AIX XL C 1.02.0.0 rejects this.
6108 It does not let you subtract one const X* pointer from another in an arm
6109 of an if-expression whose if-part is not a constant expression */
6110 const char *g = "string";
6111 ccp = &g + (g ? g-g : 0);
6112 /* HPUX 7.0 cc rejects these. */
6115 ccp = (char const *const *) p;
6116 { /* SCO 3.2v4 cc rejects this. */
6118 char const *s = 0 ? (char *) 0 : (char const *) 0;
6122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6124 const int *foo = &x[0];
6127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6128 typedef const int *iptr;
6132 { /* AIX XL C 1.02.0.0 rejects this saying
6133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6134 struct s { int j; const int *ap[3]; };
6135 struct s *b; b->j = 5;
6137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6143 if { (eval echo configure
:6144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6147 echo "configure: failed program was:" >&5
6148 cat conftest.
$ac_ext >&5
6155 echo "$ac_t""$ac_cv_c_const" 1>&6
6156 if test $ac_cv_c_const = no
; then
6157 cat >> confdefs.h
<<\EOF
6163 echo $ac_n "checking for inline""... $ac_c" 1>&6
6164 echo "configure:6165: checking for inline" >&5
6165 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6169 for ac_kw
in inline __inline__ __inline
; do
6170 cat > conftest.
$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6178 if { (eval echo configure
:6179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6180 ac_cv_c_inline
=$ac_kw; break
6182 echo "configure: failed program was:" >&5
6183 cat conftest.
$ac_ext >&5
6190 echo "$ac_t""$ac_cv_c_inline" 1>&6
6191 case "$ac_cv_c_inline" in
6193 no
) cat >> confdefs.h
<<\EOF
6197 *) cat >> confdefs.h
<<EOF
6198 #define inline $ac_cv_c_inline
6203 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6204 echo "configure:6205: checking for ANSI C header files" >&5
6205 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6216 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6217 { (eval echo configure
:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6218 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6219 if test -z "$ac_err"; then
6221 ac_cv_header_stdc
=yes
6224 echo "configure: failed program was:" >&5
6225 cat conftest.
$ac_ext >&5
6227 ac_cv_header_stdc
=no
6231 if test $ac_cv_header_stdc = yes; then
6232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6233 cat > conftest.
$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "memchr" >/dev
/null
2>&1; then
6243 ac_cv_header_stdc
=no
6249 if test $ac_cv_header_stdc = yes; then
6250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6251 cat > conftest.
$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 egrep "free" >/dev
/null
2>&1; then
6261 ac_cv_header_stdc
=no
6267 if test $ac_cv_header_stdc = yes; then
6268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6269 if test "$cross_compiling" = yes; then
6272 cat > conftest.
$ac_ext <<EOF
6273 #line 6274 "configure"
6274 #include "confdefs.h"
6276 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6277 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6279 int main () { int i; for (i = 0; i < 256; i++)
6280 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6284 if { (eval echo configure
:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6288 echo "configure: failed program was:" >&5
6289 cat conftest.
$ac_ext >&5
6291 ac_cv_header_stdc
=no
6299 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6300 if test $ac_cv_header_stdc = yes; then
6301 cat >> confdefs.h
<<\EOF
6302 #define STDC_HEADERS 1
6307 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6308 echo "configure:6309: checking for size_t" >&5
6309 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 cat > conftest.
$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 #include <sys/types.h>
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6324 ac_cv_type_size_t
=yes
6327 ac_cv_type_size_t
=no
6332 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6333 if test $ac_cv_type_size_t = no
; then
6334 cat >> confdefs.h
<<\EOF
6335 #define size_t unsigned
6340 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6341 echo "configure:6342: checking size of long long" >&5
6342 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6345 if test "$cross_compiling" = yes; then
6346 ac_cv_sizeof_long_long
=0
6348 cat > conftest.
$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6352 #include <sys/types.h>
6355 FILE *f=fopen("conftestval", "w");
6357 fprintf(f, "%d\n", sizeof(long long));
6361 if { (eval echo configure
:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6363 ac_cv_sizeof_long_long
=`cat conftestval`
6365 echo "configure: failed program was:" >&5
6366 cat conftest.
$ac_ext >&5
6368 ac_cv_sizeof_long_long
=0
6374 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6375 cat >> confdefs.h
<<EOF
6376 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6381 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6382 echo "configure:6383: checking whether linux/input.h is for real" >&5
6383 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.
$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6390 #include <linux/input.h>
6394 int foo = EVIOCGBIT(EV_ABS,42);
6395 int bar = BTN_PINKIE;
6400 if { (eval echo configure
:6401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6402 wine_cv_linux_input_h
=yes
6404 echo "configure: failed program was:" >&5
6405 cat conftest.
$ac_ext >&5
6407 wine_cv_linux_input_h
=no
6413 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6414 if test "$wine_cv_linux_input_h" = "yes"
6416 cat >> confdefs.h
<<\EOF
6417 #define HAVE_CORRECT_LINUXINPUT_H 1
6423 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6424 echo "configure:6425: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6425 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 cat > conftest.
$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6438 struct hostent *result;
6445 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6446 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6450 if { (eval echo configure
:6451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6452 wine_cv_linux_gethostbyname_r_6
=yes
6454 echo "configure: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6457 wine_cv_linux_gethostbyname_r_6
=no
6464 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6465 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6467 cat >> confdefs.h
<<\EOF
6468 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6473 if test "$ac_cv_header_linux_joystick_h" = "yes"
6475 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6476 echo "configure:6477: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6477 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.
$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6484 #include <sys/ioctl.h>
6485 #include <linux/joystick.h>
6487 struct js_event blub;
6488 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6489 #error "no 2.2 header"
6496 if { (eval echo configure
:6497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6498 wine_cv_linux_joystick_22_api
=yes
6500 echo "configure: failed program was:" >&5
6501 cat conftest.
$ac_ext >&5
6503 wine_cv_linux_joystick_22_api
=no
6509 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6510 if test "$wine_cv_linux_joystick_22_api" = "yes"
6512 cat >> confdefs.h
<<\EOF
6513 #define HAVE_LINUX_22_JOYSTICK_API 1
6520 if test "$ac_cv_header_sys_vfs_h" = "yes"
6522 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6523 echo "configure:6524: checking whether sys/vfs.h defines statfs" >&5
6524 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 cat > conftest.
$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6531 #include <sys/types.h>
6532 #ifdef HAVE_SYS_PARAM_H
6533 # include <sys/param.h>
6535 #include <sys/vfs.h>
6541 memset(&stfs,0,sizeof(stfs));
6545 if { (eval echo configure
:6546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6547 wine_cv_sys_vfs_has_statfs
=yes
6549 echo "configure: failed program was:" >&5
6550 cat conftest.
$ac_ext >&5
6552 wine_cv_sys_vfs_has_statfs
=no
6559 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6560 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6562 cat >> confdefs.h
<<\EOF
6563 #define STATFS_DEFINED_BY_SYS_VFS 1
6569 if test "$ac_cv_header_sys_statfs_h" = "yes"
6571 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6572 echo "configure:6573: checking whether sys/statfs.h defines statfs" >&5
6573 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6580 #include <sys/types.h>
6581 #ifdef HAVE_SYS_PARAM_H
6582 # include <sys/param.h>
6584 #include <sys/statfs.h>
6592 if { (eval echo configure
:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6594 wine_cv_sys_statfs_has_statfs
=yes
6596 echo "configure: failed program was:" >&5
6597 cat conftest.
$ac_ext >&5
6599 wine_cv_sys_statfs_has_statfs
=no
6606 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6607 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6609 cat >> confdefs.h
<<\EOF
6610 #define STATFS_DEFINED_BY_SYS_STATFS 1
6616 if test "$ac_cv_header_sys_mount_h" = "yes"
6618 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6619 echo "configure:6620: checking whether sys/mount.h defines statfs" >&5
6620 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 cat > conftest.
$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6627 #include <sys/types.h>
6628 #ifdef HAVE_SYS_PARAM_H
6629 # include <sys/param.h>
6631 #include <sys/mount.h>
6639 if { (eval echo configure
:6640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6641 wine_cv_sys_mount_has_statfs
=yes
6643 echo "configure: failed program was:" >&5
6644 cat conftest.
$ac_ext >&5
6646 wine_cv_sys_mount_has_statfs
=no
6653 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6654 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6656 cat >> confdefs.h
<<\EOF
6657 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6664 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6665 echo "configure:6666: checking for statfs.f_bfree" >&5
6666 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 if test "x$statfs_bfree" = "xno"
6671 wine_cv_statfs_bfree
=no
6673 cat > conftest.
$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6677 #include <sys/types.h>
6678 #ifdef HAVE_SYS_PARAM_H
6679 # include <sys/param.h>
6681 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6682 # include <sys/mount.h>
6684 # ifdef STATFS_DEFINED_BY_SYS_VFS
6685 # include <sys/vfs.h>
6687 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6688 # include <sys/statfs.h>
6701 if { (eval echo configure
:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6703 wine_cv_statfs_bfree
=yes
6705 echo "configure: failed program was:" >&5
6706 cat conftest.
$ac_ext >&5
6708 wine_cv_statfs_bfree
=no
6715 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6716 if test "$wine_cv_statfs_bfree" = "yes"
6718 cat >> confdefs.h
<<\EOF
6719 #define STATFS_HAS_BFREE 1
6724 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6725 echo "configure:6726: checking for statfs.f_bavail" >&5
6726 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 if test "x$statfs_bavail" = "xno"
6731 wine_cv_statfs_bavail
=no
6733 cat > conftest.
$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6737 #include <sys/types.h>
6738 #ifdef HAVE_SYS_PARAM_H
6739 # include <sys/param.h>
6741 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6742 # include <sys/mount.h>
6744 # ifdef STATFS_DEFINED_BY_SYS_VFS
6745 # include <sys/vfs.h>
6747 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6748 # include <sys/statfs.h>
6761 if { (eval echo configure
:6762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6763 wine_cv_statfs_bavail
=yes
6765 echo "configure: failed program was:" >&5
6766 cat conftest.
$ac_ext >&5
6768 wine_cv_statfs_bavail
=no
6775 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6776 if test "$wine_cv_statfs_bavail" = "yes"
6778 cat >> confdefs.h
<<\EOF
6779 #define STATFS_HAS_BAVAIL 1
6785 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6786 echo "configure:6787: checking for msg_accrights in struct msghdr" >&5
6787 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.
$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 #include <sys/types.h>
6794 #include <sys/socket.h>
6796 struct msghdr hdr; hdr.msg_accrights=0
6799 if { (eval echo configure
:6800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6801 ac_cv_c_msg_accrights
="yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.
$ac_ext >&5
6806 ac_cv_c_msg_accrights
="no"
6811 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6812 if test "$ac_cv_c_msg_accrights" = "yes"
6814 cat >> confdefs.h
<<\EOF
6815 #define HAVE_MSGHDR_ACCRIGHTS 1
6821 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6822 echo "configure:6823: checking for sa_len in struct sockaddr" >&5
6823 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.
$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 #include <sys/types.h>
6830 #include <sys/socket.h>
6833 static struct sockaddr addr; addr.sa_len = 1
6836 if { (eval echo configure
:6837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6838 ac_cv_c_sockaddr_sa_len
="yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.
$ac_ext >&5
6843 ac_cv_c_sockaddr_sa_len
="no"
6848 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6849 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6851 cat >> confdefs.h
<<\EOF
6852 #define HAVE_SOCKADDR_SA_LEN 1
6858 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6859 echo "configure:6860: checking for sun_len in struct sockaddr_un" >&5
6860 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.
$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 #include <sys/types.h>
6867 #include <sys/socket.h>
6870 static struct sockaddr_un addr; addr.sun_len = 1
6873 if { (eval echo configure
:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6875 ac_cv_c_sockaddr_sun_len
="yes"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.
$ac_ext >&5
6880 ac_cv_c_sockaddr_sun_len
="no"
6885 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6886 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6888 cat >> confdefs.h
<<\EOF
6889 #define HAVE_SOCKADDR_SUN_LEN 1
6895 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6896 echo "configure:6897: checking whether we need to define __i386__" >&5
6897 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 cat > conftest.
$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 egrep "yes" >/dev
/null
2>&1; then
6910 ac_cv_cpp_def_i386
="yes"
6913 ac_cv_cpp_def_i386
="no"
6919 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6920 if test "$ac_cv_cpp_def_i386" = "yes"
6922 CFLAGS
="$CFLAGS -D__i386__"
6923 LINTFLAGS
="$LINTFLAGS -D__i386__"
6927 if test "$GCC" = "yes"
6929 GCC_NO_BUILTIN
="-fno-builtin"
6936 MAKE_RULES
=Make.rules
6939 MAKE_DLL_RULES
=dlls
/Makedll.rules
6942 MAKE_PROG_RULES
=programs
/Makeprog.rules
6946 cat > confcache
<<\EOF
6947 # This file is a shell script that caches the results of configure
6948 # tests run on this system so they can be shared between configure
6949 # scripts and configure runs. It is not useful on other systems.
6950 # If it contains results you don't want to keep, you may remove or edit it.
6952 # By default, configure uses ./config.cache as the cache file,
6953 # creating it if it does not exist already. You can give configure
6954 # the --cache-file=FILE option to use a different cache file; that is
6955 # what configure does when it calls configure scripts in
6956 # subdirectories, so they share the cache.
6957 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6958 # config.status only pays attention to the cache file if you give it the
6959 # --recheck option to rerun configure.
6962 # The following way of writing the cache mishandles newlines in values,
6963 # but we know of no workaround that is simple, portable, and efficient.
6964 # So, don't put newlines in cache variables' values.
6965 # Ultrix sh set writes to stderr and can't be redirected directly,
6966 # and sets the high bit in the cache file unless we assign to the vars.
6968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6970 # `set' does not quote correctly, so add quotes (double-quote substitution
6971 # turns \\\\ into \\, and sed turns \\ into \).
6973 -e "s/'/'\\\\''/g" \
6974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6977 # `set' quotes correctly as required by POSIX, so do not add quotes.
6978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6981 if cmp -s $cache_file confcache
; then
6984 if test -w $cache_file; then
6985 echo "updating cache $cache_file"
6986 cat confcache
> $cache_file
6988 echo "not updating unwritable cache $cache_file"
6993 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6995 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6996 # Let make expand exec_prefix.
6997 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6999 # Any assignment to VPATH causes Sun make to only execute
7000 # the first set of double-colon rules, so remove it if not needed.
7001 # If there is a colon in the path, we need to keep it.
7002 if test "x$srcdir" = x.
; then
7003 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7006 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7008 DEFS
=-DHAVE_CONFIG_H
7010 # Without the "./", some shells look in PATH for config.status.
7011 : ${CONFIG_STATUS=./config.status}
7013 echo creating
$CONFIG_STATUS
7014 rm -f $CONFIG_STATUS
7015 cat > $CONFIG_STATUS <<EOF
7017 # Generated automatically by configure.
7018 # Run this file to recreate the current configuration.
7019 # This directory was configured as follows,
7020 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7022 # $0 $ac_configure_args
7024 # Compiler output produced by configure, useful for debugging
7025 # configure, is in ./config.log if it exists.
7027 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7030 case "\$ac_option" in
7031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7032 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7033 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7034 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7035 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7037 -help | --help | --hel | --he | --h)
7038 echo "\$ac_cs_usage"; exit 0 ;;
7039 *) echo "\$ac_cs_usage"; exit 1 ;;
7043 ac_given_srcdir=$srcdir
7044 ac_given_INSTALL="$INSTALL"
7046 trap 'rm -fr `echo "
7049 programs/Makeprog.rules
7055 dlls/advapi32/Makefile
7056 dlls/avicap32/Makefile
7057 dlls/avifil32/Makefile
7058 dlls/comctl32/Makefile
7059 dlls/commdlg/Makefile
7060 dlls/crtdll/Makefile
7061 dlls/dciman32/Makefile
7063 dlls/devenum/Makefile
7064 dlls/dinput/Makefile
7066 dlls/dplayx/Makefile
7067 dlls/dsound/Makefile
7071 dlls/imagehlp/Makefile
7073 dlls/kernel/Makefile
7074 dlls/lzexpand/Makefile
7075 dlls/mapi32/Makefile
7079 dlls/msimg32/Makefile
7080 dlls/msnet32/Makefile
7081 dlls/msrle32/Makefile
7082 dlls/msvcrt/Makefile
7083 dlls/msvideo/Makefile
7085 dlls/odbc32/Makefile
7087 dlls/oleaut32/Makefile
7088 dlls/olecli/Makefile
7089 dlls/oledlg/Makefile
7090 dlls/olepro32/Makefile
7091 dlls/olesvr/Makefile
7092 dlls/opengl32/Makefile
7095 dlls/quartz/Makefile
7096 dlls/rasapi32/Makefile
7097 dlls/richedit/Makefile
7098 dlls/rpcrt4/Makefile
7099 dlls/serialui/Makefile
7100 dlls/setupapi/Makefile
7101 dlls/shdocvw/Makefile
7102 dlls/shell32/Makefile
7103 dlls/shfolder/Makefile
7104 dlls/shlwapi/Makefile
7106 dlls/tapi32/Makefile
7107 dlls/ttydrv/Makefile
7109 dlls/urlmon/Makefile
7111 dlls/version/Makefile
7112 dlls/win32s/Makefile
7113 dlls/winaspi/Makefile
7114 dlls/winedos/Makefile
7115 dlls/wineps/Makefile
7116 dlls/wininet/Makefile
7118 dlls/winmm/joystick/Makefile
7119 dlls/winmm/mcianim/Makefile
7120 dlls/winmm/mciavi/Makefile
7121 dlls/winmm/mcicda/Makefile
7122 dlls/winmm/mciseq/Makefile
7123 dlls/winmm/mciwave/Makefile
7124 dlls/winmm/midimap/Makefile
7125 dlls/winmm/wavemap/Makefile
7126 dlls/winmm/wineoss/Makefile
7127 dlls/winnls/Makefile
7128 dlls/winsock/Makefile
7129 dlls/winspool/Makefile
7130 dlls/wintrust/Makefile
7132 dlls/wsock32/Makefile
7133 dlls/x11drv/Makefile
7134 documentation/Makefile
7135 documentation/wine.conf.man
7136 documentation/wine.man
7139 graphics/enhmetafiledrv/Makefile
7140 graphics/metafiledrv/Makefile
7141 graphics/win16drv/Makefile
7142 graphics/x11drv/Makefile
7157 programs/avitools/Makefile
7158 programs/clock/Makefile
7159 programs/cmdlgtst/Makefile
7160 programs/control/Makefile
7161 programs/notepad/Makefile
7162 programs/osversioncheck/Makefile
7163 programs/progman/Makefile
7164 programs/regapi/Makefile
7165 programs/regtest/Makefile
7166 programs/uninstaller/Makefile
7167 programs/view/Makefile
7168 programs/wcmd/Makefile
7169 programs/winemine/Makefile
7170 programs/winetest/Makefile
7171 programs/winhelp/Makefile
7172 programs/winver/Makefile
7177 tools/winapi/Makefile
7178 tools/winebuild/Makefile
7179 tools/winedump/Makefile
7187 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7189 cat >> $CONFIG_STATUS <<EOF
7191 # Protect against being on the right side of a sed subst in config.status.
7192 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7193 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7197 s%@CFLAGS@%$CFLAGS%g
7198 s%@CPPFLAGS@%$CPPFLAGS%g
7199 s%@CXXFLAGS@%$CXXFLAGS%g
7200 s%@FFLAGS@%$FFLAGS%g
7202 s%@LDFLAGS@%$LDFLAGS%g
7204 s%@exec_prefix@%$exec_prefix%g
7205 s%@prefix@%$prefix%g
7206 s%@program_transform_name@%$program_transform_name%g
7207 s%@bindir@%$bindir%g
7208 s%@sbindir@%$sbindir%g
7209 s%@libexecdir@%$libexecdir%g
7210 s%@datadir@%$datadir%g
7211 s%@sysconfdir@%$sysconfdir%g
7212 s%@sharedstatedir@%$sharedstatedir%g
7213 s%@localstatedir@%$localstatedir%g
7214 s%@libdir@%$libdir%g
7215 s%@includedir@%$includedir%g
7216 s%@oldincludedir@%$oldincludedir%g
7217 s%@infodir@%$infodir%g
7218 s%@mandir@%$mandir%g
7219 s%@OPTIONS@%$OPTIONS%g
7220 s%@SET_MAKE@%$SET_MAKE%g
7223 s%@X_CFLAGS@%$X_CFLAGS%g
7224 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7225 s%@X_LIBS@%$X_LIBS%g
7226 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7229 s%@LEXLIB@%$LEXLIB%g
7231 s%@RANLIB@%$RANLIB%g
7232 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7233 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7234 s%@INSTALL_DATA@%$INSTALL_DATA%g
7237 s%@LDCONFIG@%$LDCONFIG%g
7238 s%@DLLWRAP@%$DLLWRAP%g
7240 s%@LINTFLAGS@%$LINTFLAGS%g
7241 s%@LDCOMBINE@%$LDCOMBINE%g
7242 s%@JPEGLIB@%$JPEGLIB%g
7244 s%@XFILES@%$XFILES%g
7245 s%@OPENGLFILES@%$OPENGLFILES%g
7246 s%@GLU32FILES@%$GLU32FILES%g
7247 s%@CUPSLIBS@%$CUPSLIBS%g
7248 s%@ft_devel@%$ft_devel%g
7249 s%@ft_devel2@%$ft_devel2%g
7250 s%@FREETYPELIBS@%$FREETYPELIBS%g
7251 s%@FREETYPEINCL@%$FREETYPEINCL%g
7252 s%@DLLFLAGS@%$DLLFLAGS%g
7253 s%@LDSHARED@%$LDSHARED%g
7254 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7255 s%@LIBEXT@%$LIBEXT%g
7256 s%@LDPATH@%$LDPATH%g
7257 s%@ALLOCA@%$ALLOCA%g
7258 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7259 /@MAKE_RULES@/r $MAKE_RULES
7261 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7262 s%@MAKE_DLL_RULES@%%g
7263 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7264 s%@MAKE_PROG_RULES@%%g
7269 cat >> $CONFIG_STATUS <<\EOF
7271 # Split the substitutions into bite-sized pieces for seds with
7272 # small command number limits, like on Digital OSF/1 and HP-UX.
7273 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7274 ac_file
=1 # Number of current file.
7275 ac_beg
=1 # First line for current file.
7276 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7279 while $ac_more_lines; do
7280 if test $ac_beg -gt 1; then
7281 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7283 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7285 if test ! -s conftest.s
$ac_file; then
7287 rm -f conftest.s
$ac_file
7289 if test -z "$ac_sed_cmds"; then
7290 ac_sed_cmds
="sed -f conftest.s$ac_file"
7292 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7294 ac_file
=`expr $ac_file + 1`
7296 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7299 if test -z "$ac_sed_cmds"; then
7304 cat >> $CONFIG_STATUS <<EOF
7306 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7308 programs/Makeprog.rules
7314 dlls/advapi32/Makefile
7315 dlls/avicap32/Makefile
7316 dlls/avifil32/Makefile
7317 dlls/comctl32/Makefile
7318 dlls/commdlg/Makefile
7319 dlls/crtdll/Makefile
7320 dlls/dciman32/Makefile
7322 dlls/devenum/Makefile
7323 dlls/dinput/Makefile
7325 dlls/dplayx/Makefile
7326 dlls/dsound/Makefile
7330 dlls/imagehlp/Makefile
7332 dlls/kernel/Makefile
7333 dlls/lzexpand/Makefile
7334 dlls/mapi32/Makefile
7338 dlls/msimg32/Makefile
7339 dlls/msnet32/Makefile
7340 dlls/msrle32/Makefile
7341 dlls/msvcrt/Makefile
7342 dlls/msvideo/Makefile
7344 dlls/odbc32/Makefile
7346 dlls/oleaut32/Makefile
7347 dlls/olecli/Makefile
7348 dlls/oledlg/Makefile
7349 dlls/olepro32/Makefile
7350 dlls/olesvr/Makefile
7351 dlls/opengl32/Makefile
7354 dlls/quartz/Makefile
7355 dlls/rasapi32/Makefile
7356 dlls/richedit/Makefile
7357 dlls/rpcrt4/Makefile
7358 dlls/serialui/Makefile
7359 dlls/setupapi/Makefile
7360 dlls/shdocvw/Makefile
7361 dlls/shell32/Makefile
7362 dlls/shfolder/Makefile
7363 dlls/shlwapi/Makefile
7365 dlls/tapi32/Makefile
7366 dlls/ttydrv/Makefile
7368 dlls/urlmon/Makefile
7370 dlls/version/Makefile
7371 dlls/win32s/Makefile
7372 dlls/winaspi/Makefile
7373 dlls/winedos/Makefile
7374 dlls/wineps/Makefile
7375 dlls/wininet/Makefile
7377 dlls/winmm/joystick/Makefile
7378 dlls/winmm/mcianim/Makefile
7379 dlls/winmm/mciavi/Makefile
7380 dlls/winmm/mcicda/Makefile
7381 dlls/winmm/mciseq/Makefile
7382 dlls/winmm/mciwave/Makefile
7383 dlls/winmm/midimap/Makefile
7384 dlls/winmm/wavemap/Makefile
7385 dlls/winmm/wineoss/Makefile
7386 dlls/winnls/Makefile
7387 dlls/winsock/Makefile
7388 dlls/winspool/Makefile
7389 dlls/wintrust/Makefile
7391 dlls/wsock32/Makefile
7392 dlls/x11drv/Makefile
7393 documentation/Makefile
7394 documentation/wine.conf.man
7395 documentation/wine.man
7398 graphics/enhmetafiledrv/Makefile
7399 graphics/metafiledrv/Makefile
7400 graphics/win16drv/Makefile
7401 graphics/x11drv/Makefile
7416 programs/avitools/Makefile
7417 programs/clock/Makefile
7418 programs/cmdlgtst/Makefile
7419 programs/control/Makefile
7420 programs/notepad/Makefile
7421 programs/osversioncheck/Makefile
7422 programs/progman/Makefile
7423 programs/regapi/Makefile
7424 programs/regtest/Makefile
7425 programs/uninstaller/Makefile
7426 programs/view/Makefile
7427 programs/wcmd/Makefile
7428 programs/winemine/Makefile
7429 programs/winetest/Makefile
7430 programs/winhelp/Makefile
7431 programs/winver/Makefile
7436 tools/winapi/Makefile
7437 tools/winebuild/Makefile
7438 tools/winedump/Makefile
7446 windows/x11drv/Makefile "}
7448 cat >> $CONFIG_STATUS <<\EOF
7449 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7452 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7453 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7454 *) ac_file_in
="${ac_file}.in" ;;
7457 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7459 # Remove last slash and all that follows it. Not all systems have dirname.
7460 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7461 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7462 # The file is in a subdirectory.
7463 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7464 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7465 # A "../" for each directory in $ac_dir_suffix.
7466 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7468 ac_dir_suffix
= ac_dots
=
7471 case "$ac_given_srcdir" in
7473 if test -z "$ac_dots"; then top_srcdir
=.
7474 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7475 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7477 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7478 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7481 case "$ac_given_INSTALL" in
7482 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7483 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7486 echo creating
"$ac_file"
7488 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7490 *Makefile
*) ac_comsub
="1i\\
7491 # $configure_input" ;;
7495 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7497 s%@configure_input@%$configure_input%g
7498 s%@srcdir@%$srcdir%g
7499 s%@top_srcdir@%$top_srcdir%g
7500 s%@INSTALL@%$INSTALL%g
7501 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7505 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7506 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7508 # ac_d sets the value in "#define NAME VALUE" lines.
7509 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7510 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7513 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7514 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7515 ac_uB
='\([ ]\)%\1#\2define\3'
7518 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7519 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7520 ac_eB
='$%\1#\2define\3'
7524 if test "${CONFIG_HEADERS+set}" != set; then
7526 cat >> $CONFIG_STATUS <<EOF
7527 CONFIG_HEADERS="include/config.h"
7529 cat >> $CONFIG_STATUS <<\EOF
7531 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7532 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7534 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7535 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7536 *) ac_file_in
="${ac_file}.in" ;;
7539 echo creating
$ac_file
7541 rm -f conftest.frag conftest.
in conftest.out
7542 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7543 cat $ac_file_inputs > conftest.
in
7547 # Transform confdefs.h into a sed script conftest.vals that substitutes
7548 # the proper values into config.h.in to produce config.h. And first:
7549 # Protect against being on the right side of a sed subst in config.status.
7550 # Protect against being in an unquoted here document in config.status.
7552 cat > conftest.hdr
<<\EOF
7555 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7559 sed -n -f conftest.hdr confdefs.h > conftest.vals
7562 # This sed command replaces #undef with comments. This is necessary, for
7563 # example, in the case of _POSIX_SOURCE, which is predefined and required
7564 # on some systems where configure will not decide to define it.
7565 cat >> conftest.vals <<\EOF
7566 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7569 # Break up conftest.vals because some shells have a limit on
7570 # the size of here documents, and old seds have small limits too.
7575 ac_lines=`grep -c . conftest.vals
`
7576 # grep -c gives empty output for an empty file on some AIX systems.
7577 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7578 # Write a limited-size here document to conftest.frag.
7579 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7580 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7582 sed -f conftest.frag conftest.in > conftest.out
7584 mv conftest.out conftest.in
7586 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7588 mv conftest.tail conftest.vals
7592 cat >> $CONFIG_STATUS <<\EOF
7593 rm -f conftest.frag conftest.h
7594 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7595 cat conftest.in >> conftest.h
7597 if cmp -s $ac_file conftest.h 2>/dev/null; then
7598 echo "$ac_file is unchanged"
7601 # Remove last slash and all that follows it. Not all systems have dirname.
7602 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7604 # The file is in a subdirectory.
7605 test ! -d "$ac_dir" && mkdir "$ac_dir"
7608 mv conftest.h $ac_file
7613 cat >> $CONFIG_STATUS <<EOF
7617 cat >> $CONFIG_STATUS <<\EOF
7620 dlls/ddraw/d3ddevice \
7621 dlls/ddraw/dclipper \
7623 dlls/ddraw/direct3d \
7624 dlls/ddraw/dpalette \
7625 dlls/ddraw/dsurface \
7626 dlls/dinput/joystick \
7627 dlls/dinput/keyboard \
7629 dlls/kernel/messages \
7631 dlls/user/resources \
7634 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7638 chmod +x $CONFIG_STATUS
7639 rm -fr confdefs* $ac_clean_files
7640 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7643 if test "$have_x" = "no"
7646 echo "*** Warning: X development files not found. Wine will be built without"
7647 echo "*** X support, which currently does not work, and would probably not be"
7648 echo "*** what you want anyway. You will need to install devel packages of"
7649 echo "*** Xlib/Xfree86 and Xpm at the very least."
7650 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7653 echo "*** Warning: Xpm development files not found. Wine will be built without"
7654 echo "*** Xpm support, which currently does not work. You will need to install"
7655 echo "*** devel packages of Xpm."
7658 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7661 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7662 echo "*** terminal resize support. Consider upgrading ncurses."
7665 if test "$wine_cv_libc_reentrant" = "no"
7668 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7669 echo "*** thread support. Consider upgrading libc to a more recent"
7670 echo "*** reentrant version of libc."
7673 if test "$wine_cv_opengl_version_OK" = "no"
7676 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7677 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7680 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7683 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7684 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7685 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7686 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7689 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7692 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7693 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7694 echo "*** support before reporting bugs."
7697 if test "$wine_cv_warn_cups_h" = "yes"
7700 echo "*** Note: You have cups runtime libraries, but no development"
7701 echo "*** libraries. Install the cups-devel package or whichever package"
7702 echo "*** contains cups.h to enable CUPS support in WINE."
7705 if test "$wine_cv_msg_freetype" = "yes"
7708 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7709 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7710 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7711 echo "*** enable Wine to use TrueType fonts."
7715 echo "Configure finished. Do 'make depend && make' to compile Wine."