Fix return value for OffsetRgn if x and y are 0.
[wine/multimedia.git] / configure
blob1d7b575433c4655cfabc101a2d98e992230200c2
1 #! /bin/sh
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.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --disable-dll build static libraries instead of DLLs"
19 ac_help="$ac_help
20 --disable-debug compile out all debugging messages"
21 ac_help="$ac_help
22 --disable-trace compile out TRACE messages"
23 ac_help="$ac_help
24 --without-reentrant-x compile for use with non-reentrant X libraries"
25 ac_help="$ac_help
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.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
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.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
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)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
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'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
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.
145 with_gas=yes ;;
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.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
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
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
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
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
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
184 cat << EOF
185 Host type:
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"
200 exit 0 ;;
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
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)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
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)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
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)
267 ac_prev=prefix ;;
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)
304 silent=yes ;;
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
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)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
352 -with-* | --with-*)
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'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
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" ;;
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
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; }
402 nonopt="$ac_option"
405 esac
406 done
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:
415 # 0 standard input
416 # 1 file creation
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
423 exec 6>/dev/null
424 else
425 exec 6>&1
427 exec 5>./config.log
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
439 case "$ac_arg" in
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" ;;
447 esac
448 done
450 # NLS nuisances.
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.
463 echo > confdefs.h
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.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
480 else
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; }
486 else
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"
496 else
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"
503 . "$ac_site_file"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
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
522 ac_exeext=
523 ac_objext=o
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
527 ac_n= ac_c='
528 ' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
532 else
533 ac_n= ac_c='\c' ac_t=
538 ac_aux_dir=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
549 done
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.
558 # We want these before the checks, so the checks can modify their values.
560 test -z "$PROGEXT" && PROGEXT=""
563 EMU_TARGET=wine
564 LIBEXT=so # library type .so or .a
565 TRACE_MSGS=yes # the TRACE() macro
566 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then EMU_TARGET=""; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then LIBEXT="a"; fi
582 # Check whether --enable-debug or --disable-debug was given.
583 if test "${enable_debug+set}" = set; then
584 enableval="$enable_debug"
585 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
589 # Check whether --enable-trace or --disable-trace was given.
590 if test "${enable_trace+set}" = set; then
591 enableval="$enable_trace"
592 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
596 # Check whether --with-reentrant-x or --without-reentrant-x was given.
597 if test "${with_reentrant_x+set}" = set; then
598 withval="$with_reentrant_x"
606 if test "$DEBUG_MSGS" = "no"
607 then
608 cat >> confdefs.h <<\EOF
609 #define NO_DEBUG_MSGS 1
612 cat >> confdefs.h <<\EOF
613 #define NO_TRACE_MSGS 1
616 else
617 if test "$TRACE_MSGS" = "no"
618 then
619 cat >> confdefs.h <<\EOF
620 #define NO_TRACE_MSGS 1
627 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
628 echo "configure:629: checking whether ${MAKE-make} sets \${MAKE}" >&5
629 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
630 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
632 else
633 cat > conftestmake <<\EOF
634 all:
635 @echo 'ac_maketemp="${MAKE}"'
637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
638 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
639 if test -n "$ac_maketemp"; then
640 eval ac_cv_prog_make_${ac_make}_set=yes
641 else
642 eval ac_cv_prog_make_${ac_make}_set=no
644 rm -f conftestmake
646 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
647 echo "$ac_t""yes" 1>&6
648 SET_MAKE=
649 else
650 echo "$ac_t""no" 1>&6
651 SET_MAKE="MAKE=${MAKE-make}"
654 # Extract the first word of "gcc", so it can be a program name with args.
655 set dummy gcc; ac_word=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
660 else
661 if test -n "$CC"; then
662 ac_cv_prog_CC="$CC" # Let the user override the test.
663 else
664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
665 ac_dummy="$PATH"
666 for ac_dir in $ac_dummy; do
667 test -z "$ac_dir" && ac_dir=.
668 if test -f $ac_dir/$ac_word; then
669 ac_cv_prog_CC="gcc"
670 break
672 done
673 IFS="$ac_save_ifs"
676 CC="$ac_cv_prog_CC"
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
679 else
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
684 # Extract the first word of "cc", so it can be a program name with args.
685 set dummy cc; ac_word=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
690 else
691 if test -n "$CC"; then
692 ac_cv_prog_CC="$CC" # Let the user override the test.
693 else
694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
695 ac_prog_rejected=no
696 ac_dummy="$PATH"
697 for ac_dir in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 ac_prog_rejected=yes
702 continue
704 ac_cv_prog_CC="cc"
705 break
707 done
708 IFS="$ac_save_ifs"
709 if test $ac_prog_rejected = yes; then
710 # We found a bogon in the path, so make sure we never use it.
711 set dummy $ac_cv_prog_CC
712 shift
713 if test $# -gt 0; then
714 # We chose a different compiler from the bogus one.
715 # However, it has the same basename, so the bogon will be chosen
716 # first if we set CC to just the basename; use the full file name.
717 shift
718 set dummy "$ac_dir/$ac_word" "$@"
719 shift
720 ac_cv_prog_CC="$@"
725 CC="$ac_cv_prog_CC"
726 if test -n "$CC"; then
727 echo "$ac_t""$CC" 1>&6
728 else
729 echo "$ac_t""no" 1>&6
732 if test -z "$CC"; then
733 case "`uname -s`" in
734 *win32* | *WIN32*)
735 # Extract the first word of "cl", so it can be a program name with args.
736 set dummy cl; ac_word=$2
737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738 echo "configure:739: checking for $ac_word" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
741 else
742 if test -n "$CC"; then
743 ac_cv_prog_CC="$CC" # Let the user override the test.
744 else
745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
746 ac_dummy="$PATH"
747 for ac_dir in $ac_dummy; do
748 test -z "$ac_dir" && ac_dir=.
749 if test -f $ac_dir/$ac_word; then
750 ac_cv_prog_CC="cl"
751 break
753 done
754 IFS="$ac_save_ifs"
757 CC="$ac_cv_prog_CC"
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
760 else
761 echo "$ac_t""no" 1>&6
764 esac
766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
772 ac_ext=c
773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774 ac_cpp='$CPP $CPPFLAGS'
775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777 cross_compiling=$ac_cv_prog_cc_cross
779 cat > conftest.$ac_ext << EOF
781 #line 782 "configure"
782 #include "confdefs.h"
784 main(){return(0);}
786 if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
787 ac_cv_prog_cc_works=yes
788 # If we can't run a trivial program, we are probably using a cross compiler.
789 if (./conftest; exit) 2>/dev/null; then
790 ac_cv_prog_cc_cross=no
791 else
792 ac_cv_prog_cc_cross=yes
794 else
795 echo "configure: failed program was:" >&5
796 cat conftest.$ac_ext >&5
797 ac_cv_prog_cc_works=no
799 rm -fr conftest*
800 ac_ext=c
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp='$CPP $CPPFLAGS'
803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling=$ac_cv_prog_cc_cross
807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808 if test $ac_cv_prog_cc_works = no; then
809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814 cross_compiling=$ac_cv_prog_cc_cross
816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817 echo "configure:818: checking whether we are using GNU C" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
820 else
821 cat > conftest.c <<EOF
822 #ifdef __GNUC__
823 yes;
824 #endif
826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827 ac_cv_prog_gcc=yes
828 else
829 ac_cv_prog_gcc=no
833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
835 if test $ac_cv_prog_gcc = yes; then
836 GCC=yes
837 else
838 GCC=
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
843 CFLAGS=
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 ac_cv_prog_cc_g=yes
852 else
853 ac_cv_prog_cc_g=no
855 rm -f conftest*
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
863 if test "$GCC" = yes; then
864 CFLAGS="-g -O2"
865 else
866 CFLAGS="-g"
868 else
869 if test "$GCC" = yes; then
870 CFLAGS="-O2"
871 else
872 CFLAGS=
876 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
877 echo "configure:878: checking how to run the C preprocessor" >&5
878 # On Suns, sometimes $CPP names a directory.
879 if test -n "$CPP" && test -d "$CPP"; then
880 CPP=
882 if test -z "$CPP"; then
883 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
885 else
886 # This must be in double quotes, not single quotes, because CPP may get
887 # substituted into the Makefile and "${CC-cc}" will confuse make.
888 CPP="${CC-cc} -E"
889 # On the NeXT, cc -E runs the code through the compiler's parser,
890 # not just through cpp.
891 cat > conftest.$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
894 #include <assert.h>
895 Syntax Error
897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898 { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
900 if test -z "$ac_err"; then
902 else
903 echo "$ac_err" >&5
904 echo "configure: failed program was:" >&5
905 cat conftest.$ac_ext >&5
906 rm -rf conftest*
907 CPP="${CC-cc} -E -traditional-cpp"
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
911 #include <assert.h>
912 Syntax Error
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917 if test -z "$ac_err"; then
919 else
920 echo "$ac_err" >&5
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 rm -rf conftest*
924 CPP="${CC-cc} -nologo -E"
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
928 #include <assert.h>
929 Syntax Error
931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934 if test -z "$ac_err"; then
936 else
937 echo "$ac_err" >&5
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
940 rm -rf conftest*
941 CPP=/lib/cpp
943 rm -f conftest*
945 rm -f conftest*
947 rm -f conftest*
948 ac_cv_prog_CPP="$CPP"
950 CPP="$ac_cv_prog_CPP"
951 else
952 ac_cv_prog_CPP="$CPP"
954 echo "$ac_t""$CPP" 1>&6
956 # If we find X, set shell vars x_includes and x_libraries to the
957 # paths, otherwise set no_x=yes.
958 # Uses ac_ vars as temps to allow command line to override cache and checks.
959 # --without-x overrides everything else, but does not touch the cache.
960 echo $ac_n "checking for X""... $ac_c" 1>&6
961 echo "configure:962: checking for X" >&5
963 # Check whether --with-x or --without-x was given.
964 if test "${with_x+set}" = set; then
965 withval="$with_x"
969 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
970 if test "x$with_x" = xno; then
971 # The user explicitly disabled X.
972 have_x=disabled
973 else
974 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
975 # Both variables are already set.
976 have_x=yes
977 else
978 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 # One or both of the vars are not set, and there is no cached value.
982 ac_x_includes=NO ac_x_libraries=NO
983 rm -fr conftestdir
984 if mkdir conftestdir; then
985 cd conftestdir
986 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
987 cat > Imakefile <<'EOF'
988 acfindx:
989 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
991 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
993 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
994 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
995 for ac_extension in a so sl; do
996 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
997 test -f $ac_im_libdir/libX11.$ac_extension; then
998 ac_im_usrlibdir=$ac_im_libdir; break
1000 done
1001 # Screen out bogus values from the imake configuration. They are
1002 # bogus both because they are the default anyway, and because
1003 # using them would break gcc on systems where it needs fixed includes.
1004 case "$ac_im_incroot" in
1005 /usr/include) ;;
1006 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1007 esac
1008 case "$ac_im_usrlibdir" in
1009 /usr/lib | /lib) ;;
1010 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1011 esac
1013 cd ..
1014 rm -fr conftestdir
1017 if test "$ac_x_includes" = NO; then
1018 # Guess where to find include files, by looking for this one X11 .h file.
1019 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1021 # First, try using that file with no special directory specified.
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1025 #include <$x_direct_test_include>
1027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1028 { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1030 if test -z "$ac_err"; then
1031 rm -rf conftest*
1032 # We can compile using X headers with no special include directory.
1033 ac_x_includes=
1034 else
1035 echo "$ac_err" >&5
1036 echo "configure: failed program was:" >&5
1037 cat conftest.$ac_ext >&5
1038 rm -rf conftest*
1039 # Look for the header file in a standard set of common directories.
1040 # Check X11 before X11Rn because it is often a symlink to the current release.
1041 for ac_dir in \
1042 /usr/X11/include \
1043 /usr/X11R6/include \
1044 /usr/X11R5/include \
1045 /usr/X11R4/include \
1047 /usr/include/X11 \
1048 /usr/include/X11R6 \
1049 /usr/include/X11R5 \
1050 /usr/include/X11R4 \
1052 /usr/local/X11/include \
1053 /usr/local/X11R6/include \
1054 /usr/local/X11R5/include \
1055 /usr/local/X11R4/include \
1057 /usr/local/include/X11 \
1058 /usr/local/include/X11R6 \
1059 /usr/local/include/X11R5 \
1060 /usr/local/include/X11R4 \
1062 /usr/X386/include \
1063 /usr/x386/include \
1064 /usr/XFree86/include/X11 \
1066 /usr/include \
1067 /usr/local/include \
1068 /usr/unsupported/include \
1069 /usr/athena/include \
1070 /usr/local/x11r5/include \
1071 /usr/lpp/Xamples/include \
1073 /usr/openwin/include \
1074 /usr/openwin/share/include \
1077 if test -r "$ac_dir/$x_direct_test_include"; then
1078 ac_x_includes=$ac_dir
1079 break
1081 done
1083 rm -f conftest*
1084 fi # $ac_x_includes = NO
1086 if test "$ac_x_libraries" = NO; then
1087 # Check for the libraries.
1089 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1090 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1092 # See if we find them without any special options.
1093 # Don't add to $LIBS permanently.
1094 ac_save_LIBS="$LIBS"
1095 LIBS="-l$x_direct_test_library $LIBS"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1100 int main() {
1101 ${x_direct_test_function}()
1102 ; return 0; }
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1105 rm -rf conftest*
1106 LIBS="$ac_save_LIBS"
1107 # We can link X programs with no special library path.
1108 ac_x_libraries=
1109 else
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1112 rm -rf conftest*
1113 LIBS="$ac_save_LIBS"
1114 # First see if replacing the include by lib works.
1115 # Check X11 before X11Rn because it is often a symlink to the current release.
1116 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1117 /usr/X11/lib \
1118 /usr/X11R6/lib \
1119 /usr/X11R5/lib \
1120 /usr/X11R4/lib \
1122 /usr/lib/X11 \
1123 /usr/lib/X11R6 \
1124 /usr/lib/X11R5 \
1125 /usr/lib/X11R4 \
1127 /usr/local/X11/lib \
1128 /usr/local/X11R6/lib \
1129 /usr/local/X11R5/lib \
1130 /usr/local/X11R4/lib \
1132 /usr/local/lib/X11 \
1133 /usr/local/lib/X11R6 \
1134 /usr/local/lib/X11R5 \
1135 /usr/local/lib/X11R4 \
1137 /usr/X386/lib \
1138 /usr/x386/lib \
1139 /usr/XFree86/lib/X11 \
1141 /usr/lib \
1142 /usr/local/lib \
1143 /usr/unsupported/lib \
1144 /usr/athena/lib \
1145 /usr/local/x11r5/lib \
1146 /usr/lpp/Xamples/lib \
1147 /lib/usr/lib/X11 \
1149 /usr/openwin/lib \
1150 /usr/openwin/share/lib \
1153 for ac_extension in a so sl; do
1154 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1155 ac_x_libraries=$ac_dir
1156 break 2
1158 done
1159 done
1161 rm -f conftest*
1162 fi # $ac_x_libraries = NO
1164 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1165 # Didn't find X anywhere. Cache the known absence of X.
1166 ac_cv_have_x="have_x=no"
1167 else
1168 # Record where we found X for the cache.
1169 ac_cv_have_x="have_x=yes \
1170 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1174 eval "$ac_cv_have_x"
1175 fi # $with_x != no
1177 if test "$have_x" != yes; then
1178 echo "$ac_t""$have_x" 1>&6
1179 no_x=yes
1180 else
1181 # If each of the values was on the command line, it overrides each guess.
1182 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1183 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1184 # Update the cache value to reflect the command line values.
1185 ac_cv_have_x="have_x=yes \
1186 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1187 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1190 if test "$no_x" = yes; then
1191 # Not all programs may use this symbol, but it does not hurt to define it.
1192 cat >> confdefs.h <<\EOF
1193 #define X_DISPLAY_MISSING 1
1196 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1197 else
1198 if test -n "$x_includes"; then
1199 X_CFLAGS="$X_CFLAGS -I$x_includes"
1202 # It would also be nice to do this for all -L options, not just this one.
1203 if test -n "$x_libraries"; then
1204 X_LIBS="$X_LIBS -L$x_libraries"
1205 # For Solaris; some versions of Sun CC require a space after -R and
1206 # others require no space. Words are not sufficient . . . .
1207 case "`(uname -sr) 2>/dev/null`" in
1208 "SunOS 5"*)
1209 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether -R must be followed by a space" >&5
1211 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1216 int main() {
1218 ; return 0; }
1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1221 rm -rf conftest*
1222 ac_R_nospace=yes
1223 else
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 rm -rf conftest*
1227 ac_R_nospace=no
1229 rm -f conftest*
1230 if test $ac_R_nospace = yes; then
1231 echo "$ac_t""no" 1>&6
1232 X_LIBS="$X_LIBS -R$x_libraries"
1233 else
1234 LIBS="$ac_xsave_LIBS -R $x_libraries"
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 int main() {
1241 ; return 0; }
1243 if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1244 rm -rf conftest*
1245 ac_R_space=yes
1246 else
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1249 rm -rf conftest*
1250 ac_R_space=no
1252 rm -f conftest*
1253 if test $ac_R_space = yes; then
1254 echo "$ac_t""yes" 1>&6
1255 X_LIBS="$X_LIBS -R $x_libraries"
1256 else
1257 echo "$ac_t""neither works" 1>&6
1260 LIBS="$ac_xsave_LIBS"
1261 esac
1264 # Check for system-dependent libraries X programs must link with.
1265 # Do this before checking for the system-independent R6 libraries
1266 # (-lICE), since we may need -lsocket or whatever for X linking.
1268 if test "$ISC" = yes; then
1269 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1270 else
1271 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1272 # libraries were built with DECnet support. And karl@cs.umb.edu says
1273 # the Alpha needs dnet_stub (dnet does not exist).
1274 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1275 echo "configure:1276: checking for dnet_ntoa in -ldnet" >&5
1276 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 ac_save_LIBS="$LIBS"
1281 LIBS="-ldnet $LIBS"
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 /* Override any gcc2 internal prototype to avoid an error. */
1286 /* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1288 char dnet_ntoa();
1290 int main() {
1291 dnet_ntoa()
1292 ; return 0; }
1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1295 rm -rf conftest*
1296 eval "ac_cv_lib_$ac_lib_var=yes"
1297 else
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1300 rm -rf conftest*
1301 eval "ac_cv_lib_$ac_lib_var=no"
1303 rm -f conftest*
1304 LIBS="$ac_save_LIBS"
1307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1308 echo "$ac_t""yes" 1>&6
1309 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1310 else
1311 echo "$ac_t""no" 1>&6
1314 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1315 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1316 echo "configure:1317: checking for dnet_ntoa in -ldnet_stub" >&5
1317 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321 ac_save_LIBS="$LIBS"
1322 LIBS="-ldnet_stub $LIBS"
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 /* Override any gcc2 internal prototype to avoid an error. */
1327 /* We use char because int might match the return type of a gcc2
1328 builtin and then its argument prototype would still apply. */
1329 char dnet_ntoa();
1331 int main() {
1332 dnet_ntoa()
1333 ; return 0; }
1335 if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1336 rm -rf conftest*
1337 eval "ac_cv_lib_$ac_lib_var=yes"
1338 else
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=no"
1344 rm -f conftest*
1345 LIBS="$ac_save_LIBS"
1348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1349 echo "$ac_t""yes" 1>&6
1350 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1351 else
1352 echo "$ac_t""no" 1>&6
1357 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1358 # to get the SysV transport functions.
1359 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1360 # needs -lnsl.
1361 # The nsl library prevents programs from opening the X display
1362 # on Irix 5.2, according to dickey@clark.net.
1363 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gethostbyname" >&5
1365 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* System header to define __stub macros and hopefully few prototypes,
1372 which can conflict with char gethostbyname(); below. */
1373 #include <assert.h>
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1377 char gethostbyname();
1379 int main() {
1381 /* The GNU C library defines this for functions which it implements
1382 to always fail with ENOSYS. Some functions are actually named
1383 something starting with __ and the normal name is an alias. */
1384 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1385 choke me
1386 #else
1387 gethostbyname();
1388 #endif
1390 ; return 0; }
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1393 rm -rf conftest*
1394 eval "ac_cv_func_gethostbyname=yes"
1395 else
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1398 rm -rf conftest*
1399 eval "ac_cv_func_gethostbyname=no"
1401 rm -f conftest*
1404 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1407 else
1408 echo "$ac_t""no" 1>&6
1411 if test $ac_cv_func_gethostbyname = no; then
1412 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1413 echo "configure:1414: checking for gethostbyname in -lnsl" >&5
1414 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1417 else
1418 ac_save_LIBS="$LIBS"
1419 LIBS="-lnsl $LIBS"
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1426 char gethostbyname();
1428 int main() {
1429 gethostbyname()
1430 ; return 0; }
1432 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1433 rm -rf conftest*
1434 eval "ac_cv_lib_$ac_lib_var=yes"
1435 else
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1438 rm -rf conftest*
1439 eval "ac_cv_lib_$ac_lib_var=no"
1441 rm -f conftest*
1442 LIBS="$ac_save_LIBS"
1445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1446 echo "$ac_t""yes" 1>&6
1447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1448 else
1449 echo "$ac_t""no" 1>&6
1454 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1455 # socket/setsockopt and other routines are undefined under SCO ODT
1456 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1457 # on later versions), says simon@lia.di.epfl.ch: it contains
1458 # gethostby* variants that don't use the nameserver (or something).
1459 # -lsocket must be given before -lnsl if both are needed.
1460 # We assume that if connect needs -lnsl, so does gethostbyname.
1461 echo $ac_n "checking for connect""... $ac_c" 1>&6
1462 echo "configure:1463: checking for connect" >&5
1463 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465 else
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 /* System header to define __stub macros and hopefully few prototypes,
1470 which can conflict with char connect(); below. */
1471 #include <assert.h>
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1475 char connect();
1477 int main() {
1479 /* The GNU C library defines this for functions which it implements
1480 to always fail with ENOSYS. Some functions are actually named
1481 something starting with __ and the normal name is an alias. */
1482 #if defined (__stub_connect) || defined (__stub___connect)
1483 choke me
1484 #else
1485 connect();
1486 #endif
1488 ; return 0; }
1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1491 rm -rf conftest*
1492 eval "ac_cv_func_connect=yes"
1493 else
1494 echo "configure: failed program was:" >&5
1495 cat conftest.$ac_ext >&5
1496 rm -rf conftest*
1497 eval "ac_cv_func_connect=no"
1499 rm -f conftest*
1502 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1505 else
1506 echo "$ac_t""no" 1>&6
1509 if test $ac_cv_func_connect = no; then
1510 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1511 echo "configure:1512: checking for connect in -lsocket" >&5
1512 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1515 else
1516 ac_save_LIBS="$LIBS"
1517 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 /* Override any gcc2 internal prototype to avoid an error. */
1522 /* We use char because int might match the return type of a gcc2
1523 builtin and then its argument prototype would still apply. */
1524 char connect();
1526 int main() {
1527 connect()
1528 ; return 0; }
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1531 rm -rf conftest*
1532 eval "ac_cv_lib_$ac_lib_var=yes"
1533 else
1534 echo "configure: failed program was:" >&5
1535 cat conftest.$ac_ext >&5
1536 rm -rf conftest*
1537 eval "ac_cv_lib_$ac_lib_var=no"
1539 rm -f conftest*
1540 LIBS="$ac_save_LIBS"
1543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1545 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1546 else
1547 echo "$ac_t""no" 1>&6
1552 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1553 echo $ac_n "checking for remove""... $ac_c" 1>&6
1554 echo "configure:1555: checking for remove" >&5
1555 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558 cat > conftest.$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 /* System header to define __stub macros and hopefully few prototypes,
1562 which can conflict with char remove(); below. */
1563 #include <assert.h>
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1567 char remove();
1569 int main() {
1571 /* The GNU C library defines this for functions which it implements
1572 to always fail with ENOSYS. Some functions are actually named
1573 something starting with __ and the normal name is an alias. */
1574 #if defined (__stub_remove) || defined (__stub___remove)
1575 choke me
1576 #else
1577 remove();
1578 #endif
1580 ; return 0; }
1582 if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1583 rm -rf conftest*
1584 eval "ac_cv_func_remove=yes"
1585 else
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 rm -rf conftest*
1589 eval "ac_cv_func_remove=no"
1591 rm -f conftest*
1594 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1595 echo "$ac_t""yes" 1>&6
1597 else
1598 echo "$ac_t""no" 1>&6
1601 if test $ac_cv_func_remove = no; then
1602 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1603 echo "configure:1604: checking for remove in -lposix" >&5
1604 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607 else
1608 ac_save_LIBS="$LIBS"
1609 LIBS="-lposix $LIBS"
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1616 char remove();
1618 int main() {
1619 remove()
1620 ; return 0; }
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 rm -rf conftest*
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1625 else
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=no"
1631 rm -f conftest*
1632 LIBS="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1638 else
1639 echo "$ac_t""no" 1>&6
1644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1645 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1646 echo "configure:1647: checking for shmat" >&5
1647 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 /* System header to define __stub macros and hopefully few prototypes,
1654 which can conflict with char shmat(); below. */
1655 #include <assert.h>
1656 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1659 char shmat();
1661 int main() {
1663 /* The GNU C library defines this for functions which it implements
1664 to always fail with ENOSYS. Some functions are actually named
1665 something starting with __ and the normal name is an alias. */
1666 #if defined (__stub_shmat) || defined (__stub___shmat)
1667 choke me
1668 #else
1669 shmat();
1670 #endif
1672 ; return 0; }
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1675 rm -rf conftest*
1676 eval "ac_cv_func_shmat=yes"
1677 else
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 rm -rf conftest*
1681 eval "ac_cv_func_shmat=no"
1683 rm -f conftest*
1686 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1689 else
1690 echo "$ac_t""no" 1>&6
1693 if test $ac_cv_func_shmat = no; then
1694 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1695 echo "configure:1696: checking for shmat in -lipc" >&5
1696 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699 else
1700 ac_save_LIBS="$LIBS"
1701 LIBS="-lipc $LIBS"
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 /* Override any gcc2 internal prototype to avoid an error. */
1706 /* We use char because int might match the return type of a gcc2
1707 builtin and then its argument prototype would still apply. */
1708 char shmat();
1710 int main() {
1711 shmat()
1712 ; return 0; }
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1715 rm -rf conftest*
1716 eval "ac_cv_lib_$ac_lib_var=yes"
1717 else
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1720 rm -rf conftest*
1721 eval "ac_cv_lib_$ac_lib_var=no"
1723 rm -f conftest*
1724 LIBS="$ac_save_LIBS"
1727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1730 else
1731 echo "$ac_t""no" 1>&6
1737 # Check for libraries that X11R6 Xt/Xaw programs need.
1738 ac_save_LDFLAGS="$LDFLAGS"
1739 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1740 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1741 # check for ICE first), but we must link in the order -lSM -lICE or
1742 # we get undefined symbols. So assume we have SM if we have ICE.
1743 # These have to be linked with before -lX11, unlike the other
1744 # libraries we check for below, so use a different variable.
1745 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1746 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1747 echo "configure:1748: checking for IceConnectionNumber in -lICE" >&5
1748 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_save_LIBS="$LIBS"
1753 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 /* Override any gcc2 internal prototype to avoid an error. */
1758 /* We use char because int might match the return type of a gcc2
1759 builtin and then its argument prototype would still apply. */
1760 char IceConnectionNumber();
1762 int main() {
1763 IceConnectionNumber()
1764 ; return 0; }
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1767 rm -rf conftest*
1768 eval "ac_cv_lib_$ac_lib_var=yes"
1769 else
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=no"
1775 rm -f conftest*
1776 LIBS="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1782 else
1783 echo "$ac_t""no" 1>&6
1786 LDFLAGS="$ac_save_LDFLAGS"
1790 for ac_prog in 'bison -y' byacc
1792 # Extract the first word of "$ac_prog", so it can be a program name with args.
1793 set dummy $ac_prog; ac_word=$2
1794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_word" >&5
1796 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 if test -n "$YACC"; then
1800 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1801 else
1802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1803 ac_dummy="$PATH"
1804 for ac_dir in $ac_dummy; do
1805 test -z "$ac_dir" && ac_dir=.
1806 if test -f $ac_dir/$ac_word; then
1807 ac_cv_prog_YACC="$ac_prog"
1808 break
1810 done
1811 IFS="$ac_save_ifs"
1814 YACC="$ac_cv_prog_YACC"
1815 if test -n "$YACC"; then
1816 echo "$ac_t""$YACC" 1>&6
1817 else
1818 echo "$ac_t""no" 1>&6
1821 test -n "$YACC" && break
1822 done
1823 test -n "$YACC" || YACC="yacc"
1825 # Extract the first word of "flex", so it can be a program name with args.
1826 set dummy flex; ac_word=$2
1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_word" >&5
1829 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 if test -n "$LEX"; then
1833 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1834 else
1835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1836 ac_dummy="$PATH"
1837 for ac_dir in $ac_dummy; do
1838 test -z "$ac_dir" && ac_dir=.
1839 if test -f $ac_dir/$ac_word; then
1840 ac_cv_prog_LEX="flex"
1841 break
1843 done
1844 IFS="$ac_save_ifs"
1845 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1848 LEX="$ac_cv_prog_LEX"
1849 if test -n "$LEX"; then
1850 echo "$ac_t""$LEX" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$LEXLIB"
1856 then
1857 case "$LEX" in
1858 flex*) ac_lib=fl ;;
1859 *) ac_lib=l ;;
1860 esac
1861 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1862 echo "configure:1863: checking for yywrap in -l$ac_lib" >&5
1863 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1866 else
1867 ac_save_LIBS="$LIBS"
1868 LIBS="-l$ac_lib $LIBS"
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 /* Override any gcc2 internal prototype to avoid an error. */
1873 /* We use char because int might match the return type of a gcc2
1874 builtin and then its argument prototype would still apply. */
1875 char yywrap();
1877 int main() {
1878 yywrap()
1879 ; return 0; }
1881 if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1882 rm -rf conftest*
1883 eval "ac_cv_lib_$ac_lib_var=yes"
1884 else
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1887 rm -rf conftest*
1888 eval "ac_cv_lib_$ac_lib_var=no"
1890 rm -f conftest*
1891 LIBS="$ac_save_LIBS"
1894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 LEXLIB="-l$ac_lib"
1897 else
1898 echo "$ac_t""no" 1>&6
1903 # Extract the first word of "ranlib", so it can be a program name with args.
1904 set dummy ranlib; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1907 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910 if test -n "$RANLIB"; then
1911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1912 else
1913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 ac_dummy="$PATH"
1915 for ac_dir in $ac_dummy; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_prog_RANLIB="ranlib"
1919 break
1921 done
1922 IFS="$ac_save_ifs"
1923 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1926 RANLIB="$ac_cv_prog_RANLIB"
1927 if test -n "$RANLIB"; then
1928 echo "$ac_t""$RANLIB" 1>&6
1929 else
1930 echo "$ac_t""no" 1>&6
1933 # Find a good install program. We prefer a C program (faster),
1934 # so one script is as good as another. But avoid the broken or
1935 # incompatible versions:
1936 # SysV /etc/install, /usr/sbin/install
1937 # SunOS /usr/etc/install
1938 # IRIX /sbin/install
1939 # AIX /bin/install
1940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1943 # ./install, which can be erroneously created by make from ./install.sh.
1944 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1945 echo "configure:1946: checking for a BSD compatible install" >&5
1946 if test -z "$INSTALL"; then
1947 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1951 for ac_dir in $PATH; do
1952 # Account for people who put trailing slashes in PATH elements.
1953 case "$ac_dir/" in
1954 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1956 # OSF1 and SCO ODT 3.0 have their own names for install.
1957 # Don't use installbsd from OSF since it installs stuff as root
1958 # by default.
1959 for ac_prog in ginstall scoinst install; do
1960 if test -f $ac_dir/$ac_prog; then
1961 if test $ac_prog = install &&
1962 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1963 # AIX install. It has an incompatible calling convention.
1965 else
1966 ac_cv_path_install="$ac_dir/$ac_prog -c"
1967 break 2
1970 done
1972 esac
1973 done
1974 IFS="$ac_save_IFS"
1977 if test "${ac_cv_path_install+set}" = set; then
1978 INSTALL="$ac_cv_path_install"
1979 else
1980 # As a last resort, use the slow shell script. We don't cache a
1981 # path for INSTALL within a source directory, because that will
1982 # break other packages using the cache if that directory is
1983 # removed, or if the path is relative.
1984 INSTALL="$ac_install_sh"
1987 echo "$ac_t""$INSTALL" 1>&6
1989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1990 # It thinks the first close brace ends the variable substitution.
1991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1997 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether ln -s works" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 rm -f conftestdata
2003 if ln -s X conftestdata 2>/dev/null
2004 then
2005 rm -f conftestdata
2006 ac_cv_prog_LN_S="ln -s"
2007 else
2008 ac_cv_prog_LN_S=ln
2011 LN_S="$ac_cv_prog_LN_S"
2012 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2018 # Extract the first word of "c2man", so it can be a program name with args.
2019 set dummy c2man; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 if test -n "$C2MAN"; then
2026 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2027 else
2028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2029 ac_dummy="$PATH"
2030 for ac_dir in $ac_dummy; do
2031 test -z "$ac_dir" && ac_dir=.
2032 if test -f $ac_dir/$ac_word; then
2033 ac_cv_prog_C2MAN="c2man"
2034 break
2036 done
2037 IFS="$ac_save_ifs"
2038 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2041 C2MAN="$ac_cv_prog_C2MAN"
2042 if test -n "$C2MAN"; then
2043 echo "$ac_t""$C2MAN" 1>&6
2044 else
2045 echo "$ac_t""no" 1>&6
2048 # Extract the first word of "ldconfig", so it can be a program name with args.
2049 set dummy ldconfig; ac_word=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2052 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055 case "$LDCONFIG" in
2057 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2059 ?:/*)
2060 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2064 ac_dummy="/sbin:/usr/sbin:$PATH"
2065 for ac_dir in $ac_dummy; do
2066 test -z "$ac_dir" && ac_dir=.
2067 if test -f $ac_dir/$ac_word; then
2068 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2069 break
2071 done
2072 IFS="$ac_save_ifs"
2073 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2075 esac
2077 LDCONFIG="$ac_cv_path_LDCONFIG"
2078 if test -n "$LDCONFIG"; then
2079 echo "$ac_t""$LDCONFIG" 1>&6
2080 else
2081 echo "$ac_t""no" 1>&6
2085 for ac_prog in lclint lint
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_word" >&5
2091 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 if test -n "$LINT"; then
2095 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2096 else
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2098 ac_dummy="$PATH"
2099 for ac_dir in $ac_dummy; do
2100 test -z "$ac_dir" && ac_dir=.
2101 if test -f $ac_dir/$ac_word; then
2102 ac_cv_prog_LINT="$ac_prog"
2103 break
2105 done
2106 IFS="$ac_save_ifs"
2109 LINT="$ac_cv_prog_LINT"
2110 if test -n "$LINT"; then
2111 echo "$ac_t""$LINT" 1>&6
2112 else
2113 echo "$ac_t""no" 1>&6
2116 test -n "$LINT" && break
2117 done
2119 if test "$LINT" = "lint"
2120 then
2121 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2127 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2128 echo "configure:2129: checking for sqrt in -lm" >&5
2129 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 ac_save_LIBS="$LIBS"
2134 LIBS="-lm $LIBS"
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* Override any gcc2 internal prototype to avoid an error. */
2139 /* We use char because int might match the return type of a gcc2
2140 builtin and then its argument prototype would still apply. */
2141 char sqrt();
2143 int main() {
2144 sqrt()
2145 ; return 0; }
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2148 rm -rf conftest*
2149 eval "ac_cv_lib_$ac_lib_var=yes"
2150 else
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 rm -rf conftest*
2154 eval "ac_cv_lib_$ac_lib_var=no"
2156 rm -f conftest*
2157 LIBS="$ac_save_LIBS"
2160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2161 echo "$ac_t""yes" 1>&6
2162 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2164 cat >> confdefs.h <<EOF
2165 #define $ac_tr_lib 1
2168 LIBS="-lm $LIBS"
2170 else
2171 echo "$ac_t""no" 1>&6
2174 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2175 echo "configure:2176: checking for i386_set_ldt in -li386" >&5
2176 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 ac_save_LIBS="$LIBS"
2181 LIBS="-li386 $LIBS"
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2188 char i386_set_ldt();
2190 int main() {
2191 i386_set_ldt()
2192 ; return 0; }
2194 if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2195 rm -rf conftest*
2196 eval "ac_cv_lib_$ac_lib_var=yes"
2197 else
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=no"
2203 rm -f conftest*
2204 LIBS="$ac_save_LIBS"
2207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_lib 1
2215 LIBS="-li386 $LIBS"
2217 else
2218 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2222 echo "configure:2223: checking for _oss_ioctl in -lossaudio" >&5
2223 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 ac_save_LIBS="$LIBS"
2228 LIBS="-lossaudio $LIBS"
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2235 char _oss_ioctl();
2237 int main() {
2238 _oss_ioctl()
2239 ; return 0; }
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2242 rm -rf conftest*
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2244 else
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 eval "ac_cv_lib_$ac_lib_var=no"
2250 rm -f conftest*
2251 LIBS="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2258 cat >> confdefs.h <<EOF
2259 #define $ac_tr_lib 1
2262 LIBS="-lossaudio $LIBS"
2264 else
2265 echo "$ac_t""no" 1>&6
2268 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2269 echo "configure:2270: checking for iswalnum in -lw" >&5
2270 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274 ac_save_LIBS="$LIBS"
2275 LIBS="-lw $LIBS"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2282 char iswalnum();
2284 int main() {
2285 iswalnum()
2286 ; return 0; }
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2289 rm -rf conftest*
2290 eval "ac_cv_lib_$ac_lib_var=yes"
2291 else
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -rf conftest*
2295 eval "ac_cv_lib_$ac_lib_var=no"
2297 rm -f conftest*
2298 LIBS="$ac_save_LIBS"
2301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2305 cat >> confdefs.h <<EOF
2306 #define $ac_tr_lib 1
2309 LIBS="-lw $LIBS"
2311 else
2312 echo "$ac_t""no" 1>&6
2315 for ac_func in gethostbyname
2317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_func" >&5
2319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* System header to define __stub macros and hopefully few prototypes,
2326 which can conflict with char $ac_func(); below. */
2327 #include <assert.h>
2328 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331 char $ac_func();
2333 int main() {
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2339 choke me
2340 #else
2341 $ac_func();
2342 #endif
2344 ; return 0; }
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2347 rm -rf conftest*
2348 eval "ac_cv_func_$ac_func=yes"
2349 else
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 rm -rf conftest*
2353 eval "ac_cv_func_$ac_func=no"
2355 rm -f conftest*
2358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2361 cat >> confdefs.h <<EOF
2362 #define $ac_tr_func 1
2365 else
2366 echo "$ac_t""no" 1>&6
2367 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2368 echo "configure:2369: checking for gethostbyname in -lnsl" >&5
2369 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372 else
2373 ac_save_LIBS="$LIBS"
2374 LIBS="-lnsl -lsocket $LIBS"
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381 char gethostbyname();
2383 int main() {
2384 gethostbyname()
2385 ; return 0; }
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2388 rm -rf conftest*
2389 eval "ac_cv_lib_$ac_lib_var=yes"
2390 else
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 rm -rf conftest*
2394 eval "ac_cv_lib_$ac_lib_var=no"
2396 rm -f conftest*
2397 LIBS="$ac_save_LIBS"
2400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2402 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2403 else
2404 echo "$ac_t""no" 1>&6
2405 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2406 echo "configure:2407: checking for gethostbyname in -lsocket" >&5
2407 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 ac_save_LIBS="$LIBS"
2412 LIBS="-lsocket -lnsl $LIBS"
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Override any gcc2 internal prototype to avoid an error. */
2417 /* We use char because int might match the return type of a gcc2
2418 builtin and then its argument prototype would still apply. */
2419 char gethostbyname();
2421 int main() {
2422 gethostbyname()
2423 ; return 0; }
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2426 rm -rf conftest*
2427 eval "ac_cv_lib_$ac_lib_var=yes"
2428 else
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 eval "ac_cv_lib_$ac_lib_var=no"
2434 rm -f conftest*
2435 LIBS="$ac_save_LIBS"
2438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2441 else
2442 echo "$ac_t""no" 1>&6
2448 done
2450 for ac_func in connect
2452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_func" >&5
2454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 /* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char $ac_func(); below. */
2462 #include <assert.h>
2463 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2466 char $ac_func();
2468 int main() {
2470 /* The GNU C library defines this for functions which it implements
2471 to always fail with ENOSYS. Some functions are actually named
2472 something starting with __ and the normal name is an alias. */
2473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2474 choke me
2475 #else
2476 $ac_func();
2477 #endif
2479 ; return 0; }
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2482 rm -rf conftest*
2483 eval "ac_cv_func_$ac_func=yes"
2484 else
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=no"
2490 rm -f conftest*
2493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2496 cat >> confdefs.h <<EOF
2497 #define $ac_tr_func 1
2500 else
2501 echo "$ac_t""no" 1>&6
2502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2503 echo "configure:2504: checking for connect in -lsocket" >&5
2504 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 ac_save_LIBS="$LIBS"
2509 LIBS="-lsocket $LIBS"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char connect();
2518 int main() {
2519 connect()
2520 ; return 0; }
2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2523 rm -rf conftest*
2524 eval "ac_cv_lib_$ac_lib_var=yes"
2525 else
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2528 rm -rf conftest*
2529 eval "ac_cv_lib_$ac_lib_var=no"
2531 rm -f conftest*
2532 LIBS="$ac_save_LIBS"
2535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2539 cat >> confdefs.h <<EOF
2540 #define $ac_tr_lib 1
2543 LIBS="-lsocket $LIBS"
2545 else
2546 echo "$ac_t""no" 1>&6
2550 done
2552 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2553 echo "configure:2554: checking for setrunelocale in -lxpg4" >&5
2554 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557 else
2558 ac_save_LIBS="$LIBS"
2559 LIBS="-lxpg4 $LIBS"
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2566 char setrunelocale();
2568 int main() {
2569 setrunelocale()
2570 ; return 0; }
2572 if { (eval echo configure:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573 rm -rf conftest*
2574 eval "ac_cv_lib_$ac_lib_var=yes"
2575 else
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 rm -rf conftest*
2579 eval "ac_cv_lib_$ac_lib_var=no"
2581 rm -f conftest*
2582 LIBS="$ac_save_LIBS"
2585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2589 cat >> confdefs.h <<EOF
2590 #define $ac_tr_lib 1
2593 LIBS="-lxpg4 $LIBS"
2595 else
2596 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2600 echo "configure:2601: checking for mmap in -lmmap" >&5
2601 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 ac_save_LIBS="$LIBS"
2606 LIBS="-lmmap $LIBS"
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2613 char mmap();
2615 int main() {
2616 mmap()
2617 ; return 0; }
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620 rm -rf conftest*
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2622 else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 eval "ac_cv_lib_$ac_lib_var=no"
2628 rm -f conftest*
2629 LIBS="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2636 cat >> confdefs.h <<EOF
2637 #define $ac_tr_lib 1
2640 LIBS="-lmmap $LIBS"
2642 else
2643 echo "$ac_t""no" 1>&6
2646 for ac_func in openpty
2648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_func" >&5
2650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2652 else
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 /* System header to define __stub macros and hopefully few prototypes,
2657 which can conflict with char $ac_func(); below. */
2658 #include <assert.h>
2659 /* Override any gcc2 internal prototype to avoid an error. */
2660 /* We use char because int might match the return type of a gcc2
2661 builtin and then its argument prototype would still apply. */
2662 char $ac_func();
2664 int main() {
2666 /* The GNU C library defines this for functions which it implements
2667 to always fail with ENOSYS. Some functions are actually named
2668 something starting with __ and the normal name is an alias. */
2669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2670 choke me
2671 #else
2672 $ac_func();
2673 #endif
2675 ; return 0; }
2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2678 rm -rf conftest*
2679 eval "ac_cv_func_$ac_func=yes"
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 eval "ac_cv_func_$ac_func=no"
2686 rm -f conftest*
2689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2692 cat >> confdefs.h <<EOF
2693 #define $ac_tr_func 1
2696 else
2697 echo "$ac_t""no" 1>&6
2698 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2699 echo "configure:2700: checking for openpty in -lutil" >&5
2700 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2703 else
2704 ac_save_LIBS="$LIBS"
2705 LIBS="-lutil $LIBS"
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 /* We use char because int might match the return type of a gcc2
2711 builtin and then its argument prototype would still apply. */
2712 char openpty();
2714 int main() {
2715 openpty()
2716 ; return 0; }
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2719 rm -rf conftest*
2720 eval "ac_cv_lib_$ac_lib_var=yes"
2721 else
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2724 rm -rf conftest*
2725 eval "ac_cv_lib_$ac_lib_var=no"
2727 rm -f conftest*
2728 LIBS="$ac_save_LIBS"
2731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 cat >> confdefs.h <<\EOF
2734 #define HAVE_OPENPTY 1
2737 LIBS="$LIBS -lutil"
2739 else
2740 echo "$ac_t""no" 1>&6
2744 done
2747 for ac_hdr in dlfcn.h
2749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_hdr" >&5
2752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2754 else
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <$ac_hdr>
2760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2761 { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2763 if test -z "$ac_err"; then
2764 rm -rf conftest*
2765 eval "ac_cv_header_$ac_safe=yes"
2766 else
2767 echo "$ac_err" >&5
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 eval "ac_cv_header_$ac_safe=no"
2773 rm -f conftest*
2775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776 echo "$ac_t""yes" 1>&6
2777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2778 cat >> confdefs.h <<EOF
2779 #define $ac_tr_hdr 1
2781 for ac_func in dlopen
2783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_func" >&5
2785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char $ac_func(); below. */
2793 #include <assert.h>
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2797 char $ac_func();
2799 int main() {
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2805 choke me
2806 #else
2807 $ac_func();
2808 #endif
2810 ; return 0; }
2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2813 rm -rf conftest*
2814 eval "ac_cv_func_$ac_func=yes"
2815 else
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 rm -rf conftest*
2819 eval "ac_cv_func_$ac_func=no"
2821 rm -f conftest*
2824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2827 cat >> confdefs.h <<EOF
2828 #define $ac_tr_func 1
2830 cat >> confdefs.h <<\EOF
2831 #define HAVE_DL_API 1
2834 else
2835 echo "$ac_t""no" 1>&6
2836 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2837 echo "configure:2838: checking for dlopen in -ldl" >&5
2838 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841 else
2842 ac_save_LIBS="$LIBS"
2843 LIBS="-ldl $LIBS"
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2847 /* Override any gcc2 internal prototype to avoid an error. */
2848 /* We use char because int might match the return type of a gcc2
2849 builtin and then its argument prototype would still apply. */
2850 char dlopen();
2852 int main() {
2853 dlopen()
2854 ; return 0; }
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 rm -rf conftest*
2858 eval "ac_cv_lib_$ac_lib_var=yes"
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 eval "ac_cv_lib_$ac_lib_var=no"
2865 rm -f conftest*
2866 LIBS="$ac_save_LIBS"
2869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 cat >> confdefs.h <<\EOF
2872 #define HAVE_DL_API 1
2875 LIBS="$LIBS -ldl"
2877 else
2878 echo "$ac_t""no" 1>&6
2883 done
2886 else
2887 echo "$ac_t""no" 1>&6
2889 done
2893 X_SRCS=""
2895 DGA_SRCS=""
2897 MESA_SRCS=""
2898 if test "$have_x" = "yes"
2899 then
2900 XLIB="-lXext -lX11"
2901 ac_save_CPPFLAGS="$CPPFLAGS"
2902 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2904 for ac_hdr in X11/xpm.h
2906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_hdr" >&5
2909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <$ac_hdr>
2917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2918 { (eval echo configure:2919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2920 if test -z "$ac_err"; then
2921 rm -rf conftest*
2922 eval "ac_cv_header_$ac_safe=yes"
2923 else
2924 echo "$ac_err" >&5
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 rm -rf conftest*
2928 eval "ac_cv_header_$ac_safe=no"
2930 rm -f conftest*
2932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2935 cat >> confdefs.h <<EOF
2936 #define $ac_tr_hdr 1
2939 else
2940 echo "$ac_t""no" 1>&6
2942 done
2944 if test "$ac_cv_header_X11_xpm_h" = "yes"
2945 then
2946 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2947 echo "configure:2948: checking for XpmCreatePixmapFromData in -lXpm" >&5
2948 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952 ac_save_LIBS="$LIBS"
2953 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2957 /* Override any gcc2 internal prototype to avoid an error. */
2958 /* We use char because int might match the return type of a gcc2
2959 builtin and then its argument prototype would still apply. */
2960 char XpmCreatePixmapFromData();
2962 int main() {
2963 XpmCreatePixmapFromData()
2964 ; return 0; }
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2967 rm -rf conftest*
2968 eval "ac_cv_lib_$ac_lib_var=yes"
2969 else
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 eval "ac_cv_lib_$ac_lib_var=no"
2975 rm -f conftest*
2976 LIBS="$ac_save_LIBS"
2979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2981 cat >> confdefs.h <<\EOF
2982 #define HAVE_LIBXXPM 1
2984 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2985 else
2986 echo "$ac_t""no" 1>&6
2989 else
2990 echo "When compiling with X support, you need the Xpm library, or"
2991 echo "WINE will not work. This Xpm library is within the following RPM,"
2992 echo "which you need to install:"
2993 echo "Redhat : xpm, xpm-devel"
2994 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
2995 echo "SuSE : xpm"
2996 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
2997 echo
2998 echo "Or get the sources from ftp.x.org and all its mirror sites from "
2999 echo "the directory /contrib/libraries."
3000 echo
3001 exit 1
3005 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3009 echo "configure:3010: checking for $ac_hdr" >&5
3010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3012 else
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 #include <$ac_hdr>
3018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3019 { (eval echo configure:3020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3021 if test -z "$ac_err"; then
3022 rm -rf conftest*
3023 eval "ac_cv_header_$ac_safe=yes"
3024 else
3025 echo "$ac_err" >&5
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3028 rm -rf conftest*
3029 eval "ac_cv_header_$ac_safe=no"
3031 rm -f conftest*
3033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_hdr 1
3040 else
3041 echo "$ac_t""no" 1>&6
3043 done
3045 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3046 then
3047 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3048 echo "configure:3049: checking for XShmQueryExtension in -lXext" >&5
3049 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 ac_save_LIBS="$LIBS"
3054 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3061 char XShmQueryExtension();
3063 int main() {
3064 XShmQueryExtension()
3065 ; return 0; }
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3068 rm -rf conftest*
3069 eval "ac_cv_lib_$ac_lib_var=yes"
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=no"
3076 rm -f conftest*
3077 LIBS="$ac_save_LIBS"
3080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3082 cat >> confdefs.h <<\EOF
3083 #define HAVE_LIBXXSHM 1
3086 else
3087 echo "$ac_t""no" 1>&6
3091 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_hdr" >&5
3096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098 else
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 #include <$ac_hdr>
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3108 rm -rf conftest*
3109 eval "ac_cv_header_$ac_safe=yes"
3110 else
3111 echo "$ac_err" >&5
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3114 rm -rf conftest*
3115 eval "ac_cv_header_$ac_safe=no"
3117 rm -f conftest*
3119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3122 cat >> confdefs.h <<EOF
3123 #define $ac_tr_hdr 1
3126 else
3127 echo "$ac_t""no" 1>&6
3129 done
3131 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3132 then
3133 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3134 echo "configure:3135: checking for XDGAQueryExtension in -lXxf86dga" >&5
3135 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3138 else
3139 ac_save_LIBS="$LIBS"
3140 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3141 $LIBS"
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* Override any gcc2 internal prototype to avoid an error. */
3146 /* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3148 char XDGAQueryExtension();
3150 int main() {
3151 XDGAQueryExtension()
3152 ; return 0; }
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 rm -rf conftest*
3156 eval "ac_cv_lib_$ac_lib_var=yes"
3157 else
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 rm -rf conftest*
3161 eval "ac_cv_lib_$ac_lib_var=no"
3163 rm -f conftest*
3164 LIBS="$ac_save_LIBS"
3167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_LIBXXF86DGA2 1
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_LIBXXF86DGA 1
3177 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3178 DGA_SRCS='$(DGA_SRCS)'
3180 else
3181 echo "$ac_t""no" 1>&6
3184 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3185 then
3186 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3187 echo "configure:3188: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3188 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3191 else
3192 ac_save_LIBS="$LIBS"
3193 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3200 char XF86DGAQueryExtension();
3202 int main() {
3203 XF86DGAQueryExtension()
3204 ; return 0; }
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 rm -rf conftest*
3208 eval "ac_cv_lib_$ac_lib_var=yes"
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -rf conftest*
3213 eval "ac_cv_lib_$ac_lib_var=no"
3215 rm -f conftest*
3216 LIBS="$ac_save_LIBS"
3219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_LIBXXF86DGA 1
3225 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3226 DGA_SRCS='$(DGA_SRCS)'
3228 else
3229 echo "$ac_t""no" 1>&6
3235 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <$ac_hdr>
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3251 if test -z "$ac_err"; then
3252 rm -rf conftest*
3253 eval "ac_cv_header_$ac_safe=yes"
3254 else
3255 echo "$ac_err" >&5
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3258 rm -rf conftest*
3259 eval "ac_cv_header_$ac_safe=no"
3261 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_hdr 1
3270 else
3271 echo "$ac_t""no" 1>&6
3273 done
3275 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3276 then
3277 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3278 echo "configure:3279: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3279 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3282 else
3283 ac_save_LIBS="$LIBS"
3284 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 /* Override any gcc2 internal prototype to avoid an error. */
3289 /* We use char because int might match the return type of a gcc2
3290 builtin and then its argument prototype would still apply. */
3291 char XF86VidModeQueryExtension();
3293 int main() {
3294 XF86VidModeQueryExtension()
3295 ; return 0; }
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3298 rm -rf conftest*
3299 eval "ac_cv_lib_$ac_lib_var=yes"
3300 else
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 eval "ac_cv_lib_$ac_lib_var=no"
3306 rm -f conftest*
3307 LIBS="$ac_save_LIBS"
3310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 cat >> confdefs.h <<\EOF
3313 #define HAVE_LIBXXF86VM 1
3315 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3316 else
3317 echo "$ac_t""no" 1>&6
3322 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3326 echo "configure:3327: checking for $ac_hdr" >&5
3327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3329 else
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 #include <$ac_hdr>
3335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3336 { (eval echo configure:3337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3338 if test -z "$ac_err"; then
3339 rm -rf conftest*
3340 eval "ac_cv_header_$ac_safe=yes"
3341 else
3342 echo "$ac_err" >&5
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 rm -rf conftest*
3346 eval "ac_cv_header_$ac_safe=no"
3348 rm -f conftest*
3350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3353 cat >> confdefs.h <<EOF
3354 #define $ac_tr_hdr 1
3357 else
3358 echo "$ac_t""no" 1>&6
3360 done
3362 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3363 then
3364 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3365 echo "configure:3366: checking "for up-to-date Mesa version"" >&5
3366 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <GL/gl.h>
3373 int main() {
3374 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3375 ; return 0; }
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 rm -rf conftest*
3379 wine_cv_mesa_version_OK="yes"
3380 else
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3383 rm -rf conftest*
3384 wine_cv_mesa_version_OK="no"
3387 rm -f conftest*
3391 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3393 echo $ac_n "checking "for thread-safe Mesa version"""... $ac_c" 1>&6
3394 echo "configure:3395: checking "for thread-safe Mesa version"" >&5
3395 if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 saved_libs=$LIBS
3399 LIBS="$X_LIBS -lGL"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3404 int main() {
3405 pthread_getspecific();
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 rm -rf conftest*
3410 wine_cv_mesa_version_threadsafe="yes"
3411 else
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 wine_cv_mesa_version_threadsafe="no"
3417 rm -f conftest*
3418 LIBS=$saved_libs
3422 echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3424 if test "$wine_cv_mesa_version_OK" = "yes" -a "$wine_cv_mesa_version_threadsafe" = "no"
3425 then
3426 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3427 echo "configure:3428: checking for glXCreateContext in -lGL" >&5
3428 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3431 else
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3440 char glXCreateContext();
3442 int main() {
3443 glXCreateContext()
3444 ; return 0; }
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3447 rm -rf conftest*
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3449 else
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 rm -rf conftest*
3453 eval "ac_cv_lib_$ac_lib_var=no"
3455 rm -f conftest*
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_LIBMESAGL 1
3465 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3466 MESA_SRCS='$(MESA_SRCS)'
3468 else
3469 echo "$ac_t""no" 1>&6
3472 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3473 then
3474 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3475 echo "configure:3476: checking for glXCreateContext in -lMesaGL" >&5
3476 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479 else
3480 ac_save_LIBS="$LIBS"
3481 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* Override any gcc2 internal prototype to avoid an error. */
3486 /* We use char because int might match the return type of a gcc2
3487 builtin and then its argument prototype would still apply. */
3488 char glXCreateContext();
3490 int main() {
3491 glXCreateContext()
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 rm -rf conftest*
3496 eval "ac_cv_lib_$ac_lib_var=yes"
3497 else
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 rm -rf conftest*
3501 eval "ac_cv_lib_$ac_lib_var=no"
3503 rm -f conftest*
3504 LIBS="$ac_save_LIBS"
3507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_LIBMESAGL 1
3513 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3514 MESA_SRCS='$(MESA_SRCS)'
3516 else
3517 echo "$ac_t""no" 1>&6
3522 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3523 echo "configure:3524: checking "for the OpenGL Color Index extension"" >&5
3524 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <GL/gl.h>
3531 int main() {
3532 GLenum test = GL_COLOR_INDEX8_EXT;
3533 ; return 0; }
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536 rm -rf conftest*
3537 cat >> confdefs.h <<\EOF
3538 #define HAVE_GL_COLOR_TABLE 1
3541 else
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3545 rm -f conftest*
3549 echo "$ac_t""$dummy" 1>&6
3550 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3551 then
3552 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3553 echo "configure:3554: checking for glColorTableEXT in -lMesaGL" >&5
3554 ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557 else
3558 ac_save_LIBS="$LIBS"
3559 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char glColorTableEXT();
3568 int main() {
3569 glColorTableEXT()
3570 ; return 0; }
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 rm -rf conftest*
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 eval "ac_cv_lib_$ac_lib_var=no"
3581 rm -f conftest*
3582 LIBS="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 cat >> confdefs.h <<\EOF
3588 #define HAVE_GL_PALETTED_TEXTURE 1
3591 else
3592 echo "$ac_t""no" 1>&6
3595 else
3596 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3597 echo "configure:3598: checking for glColorTableEXT in -lGL" >&5
3598 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601 else
3602 ac_save_LIBS="$LIBS"
3603 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610 char glColorTableEXT();
3612 int main() {
3613 glColorTableEXT()
3614 ; return 0; }
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 rm -rf conftest*
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 eval "ac_cv_lib_$ac_lib_var=no"
3625 rm -f conftest*
3626 LIBS="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 cat >> confdefs.h <<\EOF
3632 #define HAVE_GL_PALETTED_TEXTURE 1
3635 else
3636 echo "$ac_t""no" 1>&6
3643 CPPFLAGS="$ac_save_CPPFLAGS"
3644 X_SRCS='$(X_SRCS)'
3645 else
3646 XLIB=""
3647 X_CFLAGS=""
3648 X_LIBS=""
3651 for ac_hdr in ncurses.h
3653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_hdr" >&5
3656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <$ac_hdr>
3664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3665 { (eval echo configure:3666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3667 if test -z "$ac_err"; then
3668 rm -rf conftest*
3669 eval "ac_cv_header_$ac_safe=yes"
3670 else
3671 echo "$ac_err" >&5
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3674 rm -rf conftest*
3675 eval "ac_cv_header_$ac_safe=no"
3677 rm -f conftest*
3679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3682 cat >> confdefs.h <<EOF
3683 #define $ac_tr_hdr 1
3686 else
3687 echo "$ac_t""no" 1>&6
3689 done
3691 if test "$ac_cv_header_ncurses_h" = "yes"
3692 then
3693 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3694 echo "configure:3695: checking for waddch in -lncurses" >&5
3695 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3698 else
3699 ac_save_LIBS="$LIBS"
3700 LIBS="-lncurses $LIBS"
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3707 char waddch();
3709 int main() {
3710 waddch()
3711 ; return 0; }
3713 if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 rm -rf conftest*
3715 eval "ac_cv_lib_$ac_lib_var=yes"
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 eval "ac_cv_lib_$ac_lib_var=no"
3722 rm -f conftest*
3723 LIBS="$ac_save_LIBS"
3726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3730 cat >> confdefs.h <<EOF
3731 #define $ac_tr_lib 1
3734 LIBS="-lncurses $LIBS"
3736 else
3737 echo "$ac_t""no" 1>&6
3741 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3742 then
3743 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3744 echo "configure:3745: checking for resizeterm in -lncurses" >&5
3745 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3748 else
3749 ac_save_LIBS="$LIBS"
3750 LIBS="-lncurses $LIBS"
3751 cat > conftest.$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char resizeterm();
3759 int main() {
3760 resizeterm()
3761 ; return 0; }
3763 if { (eval echo configure:3764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764 rm -rf conftest*
3765 eval "ac_cv_lib_$ac_lib_var=yes"
3766 else
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 rm -rf conftest*
3770 eval "ac_cv_lib_$ac_lib_var=no"
3772 rm -f conftest*
3773 LIBS="$ac_save_LIBS"
3776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 cat >> confdefs.h <<\EOF
3779 #define HAVE_RESIZETERM 1
3782 else
3783 echo "$ac_t""no" 1>&6
3786 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3787 echo "configure:3788: checking for getbkgd in -lncurses" >&5
3788 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791 else
3792 ac_save_LIBS="$LIBS"
3793 LIBS="-lncurses $LIBS"
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 /* Override any gcc2 internal prototype to avoid an error. */
3798 /* We use char because int might match the return type of a gcc2
3799 builtin and then its argument prototype would still apply. */
3800 char getbkgd();
3802 int main() {
3803 getbkgd()
3804 ; return 0; }
3806 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3807 rm -rf conftest*
3808 eval "ac_cv_lib_$ac_lib_var=yes"
3809 else
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3812 rm -rf conftest*
3813 eval "ac_cv_lib_$ac_lib_var=no"
3815 rm -f conftest*
3816 LIBS="$ac_save_LIBS"
3819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 cat >> confdefs.h <<\EOF
3822 #define HAVE_GETBKGD 1
3825 else
3826 echo "$ac_t""no" 1>&6
3829 else
3830 for ac_hdr in curses.h
3832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3834 echo "configure:3835: checking for $ac_hdr" >&5
3835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 cat > conftest.$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 #include <$ac_hdr>
3843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3844 { (eval echo configure:3845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3846 if test -z "$ac_err"; then
3847 rm -rf conftest*
3848 eval "ac_cv_header_$ac_safe=yes"
3849 else
3850 echo "$ac_err" >&5
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3853 rm -rf conftest*
3854 eval "ac_cv_header_$ac_safe=no"
3856 rm -f conftest*
3858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3859 echo "$ac_t""yes" 1>&6
3860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3861 cat >> confdefs.h <<EOF
3862 #define $ac_tr_hdr 1
3865 else
3866 echo "$ac_t""no" 1>&6
3868 done
3870 if test "$ac_cv_header_curses_h" = "yes"
3871 then
3872 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3873 echo "configure:3874: checking for waddch in -lcurses" >&5
3874 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3877 else
3878 ac_save_LIBS="$LIBS"
3879 LIBS="-lcurses $LIBS"
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 /* Override any gcc2 internal prototype to avoid an error. */
3884 /* We use char because int might match the return type of a gcc2
3885 builtin and then its argument prototype would still apply. */
3886 char waddch();
3888 int main() {
3889 waddch()
3890 ; return 0; }
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 rm -rf conftest*
3894 eval "ac_cv_lib_$ac_lib_var=yes"
3895 else
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 rm -rf conftest*
3899 eval "ac_cv_lib_$ac_lib_var=no"
3901 rm -f conftest*
3902 LIBS="$ac_save_LIBS"
3905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3909 cat >> confdefs.h <<EOF
3910 #define $ac_tr_lib 1
3913 LIBS="-lcurses $LIBS"
3915 else
3916 echo "$ac_t""no" 1>&6
3919 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3920 echo "configure:3921: checking for resizeterm in -lcurses" >&5
3921 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3924 else
3925 ac_save_LIBS="$LIBS"
3926 LIBS="-lcurses $LIBS"
3927 cat > conftest.$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3933 char resizeterm();
3935 int main() {
3936 resizeterm()
3937 ; return 0; }
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940 rm -rf conftest*
3941 eval "ac_cv_lib_$ac_lib_var=yes"
3942 else
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 rm -rf conftest*
3946 eval "ac_cv_lib_$ac_lib_var=no"
3948 rm -f conftest*
3949 LIBS="$ac_save_LIBS"
3952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_RESIZETERM 1
3958 else
3959 echo "$ac_t""no" 1>&6
3962 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3963 echo "configure:3964: checking for getbkgd in -lcurses" >&5
3964 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3967 else
3968 ac_save_LIBS="$LIBS"
3969 LIBS="-lcurses $LIBS"
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976 char getbkgd();
3978 int main() {
3979 getbkgd()
3980 ; return 0; }
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 rm -rf conftest*
3984 eval "ac_cv_lib_$ac_lib_var=yes"
3985 else
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 rm -rf conftest*
3989 eval "ac_cv_lib_$ac_lib_var=no"
3991 rm -f conftest*
3992 LIBS="$ac_save_LIBS"
3995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 cat >> confdefs.h <<\EOF
3998 #define HAVE_GETBKGD 1
4001 else
4002 echo "$ac_t""no" 1>&6
4008 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4009 echo "configure:4010: checking "for GNU style IPX support"" >&5
4010 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <sys/socket.h>
4017 #include <netipx/ipx.h>
4018 int main() {
4019 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4020 ; return 0; }
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 rm -rf conftest*
4024 ac_cv_c_ipx_gnu="yes"
4025 else
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 rm -rf conftest*
4029 ac_cv_c_ipx_gnu="no"
4031 rm -f conftest*
4035 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4036 if test "$ac_cv_c_ipx_gnu" = "yes"
4037 then
4038 cat >> confdefs.h <<\EOF
4039 #define HAVE_IPX_GNU 1
4044 if test "$ac_cv_c_ipx_gnu" = "no"
4045 then
4046 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4047 echo "configure:4048: checking "for linux style IPX support"" >&5
4048 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <sys/socket.h>
4055 #include <asm/types.h>
4056 #include <linux/ipx.h>
4057 int main() {
4058 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 rm -rf conftest*
4063 ac_cv_c_ipx_linux="yes"
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 ac_cv_c_ipx_linux="no"
4070 rm -f conftest*
4074 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4075 if test "$ac_cv_c_ipx_linux" = "yes"
4076 then
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_IPX_LINUX 1
4084 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_hdr" >&5
4089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 #include <$ac_hdr>
4097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4098 { (eval echo configure:4099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4100 if test -z "$ac_err"; then
4101 rm -rf conftest*
4102 eval "ac_cv_header_$ac_safe=yes"
4103 else
4104 echo "$ac_err" >&5
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 rm -rf conftest*
4108 eval "ac_cv_header_$ac_safe=no"
4110 rm -f conftest*
4112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_hdr 1
4118 break
4119 else
4120 echo "$ac_t""no" 1>&6
4122 done
4125 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4126 echo "configure:4127: checking "for Open Sound System"" >&5
4127 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129 else
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4134 #if defined(HAVE_SYS_SOUNDCARD_H)
4135 #include <sys/soundcard.h>
4136 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4137 #include <machine/soundcard.h>
4138 #elif defined(HAVE_SOUNDCARD_H)
4139 #include <soundcard.h>
4140 #endif
4142 int main() {
4145 /* check for one of the Open Sound System specific SNDCTL_ defines */
4146 #if !defined(SNDCTL_DSP_STEREO)
4147 #error No open sound system
4148 #endif
4150 ; return 0; }
4152 if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4153 rm -rf conftest*
4154 ac_cv_c_opensoundsystem="yes"
4155 else
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4158 rm -rf conftest*
4159 ac_cv_c_opensoundsystem="no"
4161 rm -f conftest*
4164 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4166 if test "$ac_cv_c_opensoundsystem" = "yes"
4167 then
4168 cat >> confdefs.h <<\EOF
4169 #define HAVE_OSS 1
4174 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4175 echo "configure:4176: checking "for Open Sound System/MIDI interface"" >&5
4176 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4178 else
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4183 #if defined(HAVE_SYS_SOUNDCARD_H)
4184 #include <sys/soundcard.h>
4185 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4186 #include <machine/soundcard.h>
4187 #elif defined(HAVE_SOUNDCARD_H)
4188 #include <soundcard.h>
4189 #endif
4191 int main() {
4194 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4195 #if !defined(SNDCTL_SEQ_SYNC)
4196 #error No open sound system MIDI interface
4197 #endif
4199 ; return 0; }
4201 if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 rm -rf conftest*
4203 ac_cv_c_opensoundsystem_midi="yes"
4204 else
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4207 rm -rf conftest*
4208 ac_cv_c_opensoundsystem_midi="no"
4210 rm -f conftest*
4213 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4215 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4216 then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_OSS_MIDI 1
4223 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4226 if test "x${GCC}" = "xyes"
4227 then
4228 CFLAGS="$CFLAGS -Wall"
4229 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4230 echo "configure:4231: checking "for gcc strength-reduce bug"" >&5
4231 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4233 else
4234 if test "$cross_compiling" = yes; then
4235 ac_cv_c_gcc_strength_bug="yes"
4236 else
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4241 int main(void) {
4242 static int Array[3];
4243 unsigned int B = 3;
4244 int i;
4245 for(i=0; i<B; i++) Array[i] = i - 3;
4246 exit( Array[1] != -2 );
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4250 then
4251 ac_cv_c_gcc_strength_bug="no"
4252 else
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 rm -fr conftest*
4256 ac_cv_c_gcc_strength_bug="yes"
4258 rm -fr conftest*
4263 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4264 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4265 then
4266 CFLAGS="$CFLAGS -fno-strength-reduce"
4271 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4272 echo "configure:4273: checking "whether external symbols need an underscore prefix"" >&5
4273 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4276 saved_libs=$LIBS
4277 LIBS="conftest_asm.s $LIBS"
4278 cat > conftest_asm.s <<EOF
4279 .globl _ac_test
4280 _ac_test:
4281 .long 0
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 extern int ac_test;
4287 int main() {
4288 if (ac_test) return 1
4289 ; return 0; }
4291 if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 rm -rf conftest*
4293 ac_cv_c_extern_prefix="yes"
4294 else
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4297 rm -rf conftest*
4298 ac_cv_c_extern_prefix="no"
4300 rm -f conftest*
4301 LIBS=$saved_libs
4304 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4305 if test "$ac_cv_c_extern_prefix" = "yes"
4306 then
4307 cat >> confdefs.h <<\EOF
4308 #define NEED_UNDERSCORE_PREFIX 1
4314 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "whether assembler accepts .string"" >&5
4316 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319 saved_libs=$LIBS
4320 LIBS="conftest_asm.s $LIBS"
4321 cat > conftest_asm.s <<EOF
4322 .string "test"
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4328 int main() {
4330 ; return 0; }
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4333 rm -rf conftest*
4334 ac_cv_c_asm_string="yes"
4335 else
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 rm -rf conftest*
4339 ac_cv_c_asm_string="no"
4341 rm -f conftest*
4342 LIBS=$saved_libs
4345 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4346 if test "$ac_cv_c_asm_string" = "yes"
4347 then
4348 cat >> confdefs.h <<\EOF
4349 #define HAVE_ASM_STRING 1
4355 LDSHARED=""
4356 if test "$LIBEXT" = "so"
4357 then
4358 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4359 echo "configure:4360: checking "whether we can build a Linux dll"" >&5
4360 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363 saved_cflags=$CFLAGS
4364 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4369 int main() {
4370 return 1
4371 ; return 0; }
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4374 rm -rf conftest*
4375 ac_cv_c_dll_linux="yes"
4376 else
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -rf conftest*
4380 ac_cv_c_dll_linux="no"
4382 rm -f conftest*
4383 CFLAGS=$saved_cflags
4387 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4388 if test "$ac_cv_c_dll_linux" = "yes"
4389 then
4390 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4391 else
4392 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4393 echo "configure:4394: checking whether we can build a UnixWare (Solaris) dll" >&5
4394 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397 saved_cflags=$CFLAGS
4398 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4403 int main() {
4404 return 1
4405 ; return 0; }
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 rm -rf conftest*
4409 ac_cv_c_dll_unixware="yes"
4410 else
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 rm -rf conftest*
4414 ac_cv_c_dll_unixware="no"
4416 rm -f conftest*
4417 CFLAGS=$saved_cflags
4421 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4422 if test "$ac_cv_c_dll_unixware" = "yes"
4423 then
4424 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4425 else
4426 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4427 echo "configure:4428: checking "whether we can build a NetBSD dll"" >&5
4428 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4430 else
4431 saved_cflags=$CFLAGS
4432 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4437 int main() {
4438 return 1
4439 ; return 0; }
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 rm -rf conftest*
4443 ac_cv_c_dll_netbsd="yes"
4444 else
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4447 rm -rf conftest*
4448 ac_cv_c_dll_netbsd="no"
4450 rm -f conftest*
4451 CFLAGS=$saved_cflags
4455 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4456 if test "$ac_cv_c_dll_netbsd" = "yes"
4457 then
4458 LDSHARED="ld -Bshareable -Bforcearchive"
4462 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4463 then
4464 LIBEXT="a"
4468 DLLFLAGS=""
4469 BUILDFLAGS=""
4470 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4472 if test "$LIBEXT" = "so"; then
4473 BUILDFLAGS="-pic"
4474 DLLFLAGS="-fPIC"
4475 else
4476 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4477 echo "configure:4478: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4478 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4480 else
4481 saved_cflags=$CFLAGS
4482 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4487 int main() {
4488 return 1
4489 ; return 0; }
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4492 rm -rf conftest*
4493 ac_cv_c_whole_archive="yes"
4494 else
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4497 rm -rf conftest*
4498 ac_cv_c_whole_archive="no"
4500 rm -f conftest*
4501 CFLAGS=$saved_cflags
4505 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4506 if test "$ac_cv_c_whole_archive" = "yes"
4507 then
4508 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4509 else
4510 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4511 echo "configure:4512: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4512 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4514 else
4515 saved_cflags=$CFLAGS
4516 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4521 int main() {
4522 return 1
4523 ; return 0; }
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4526 rm -rf conftest*
4527 ac_cv_c_allextract="yes"
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 ac_cv_c_allextract="no"
4534 rm -f conftest*
4535 CFLAGS=$saved_cflags
4539 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4540 if test "$ac_cv_c_allextract" = "yes"
4541 then
4542 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4554 wine_cv_libc_reentrant=no
4555 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4556 echo "configure:4557: checking "for reentrant libc: __errno_location"" >&5
4557 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 if test "$cross_compiling" = yes; then
4561 wine_cv_libc_r__errno_location=yes
4562 else
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 int myerrno = 0;
4567 char buf[256];
4568 int *__errno_location(){return &myerrno;}
4569 main(){connect(0,buf,255); exit(!myerrno);}
4571 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4572 then
4573 wine_cv_libc_r__errno_location=yes
4574 else
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 rm -fr conftest*
4578 wine_cv_libc_r__errno_location=no
4580 rm -fr conftest*
4586 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4587 if test "$wine_cv_libc_r__errno_location" = "yes"
4588 then
4589 cat >> confdefs.h <<\EOF
4590 #define HAVE__ERRNO_LOCATION 1
4593 wine_cv_libc_reentrant=__errno_location
4595 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4596 echo "configure:4597: checking "for reentrant libc: __error"" >&5
4597 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 if test "$cross_compiling" = yes; then
4601 wine_cv_libc_r__error=yes
4602 else
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 int myerrno = 0;
4607 char buf[256];
4608 int *__error(){return &myerrno;}
4609 main(){connect(0,buf,255); exit(!myerrno);}
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4612 then
4613 wine_cv_libc_r__error=yes
4614 else
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4617 rm -fr conftest*
4618 wine_cv_libc_r__error=no
4620 rm -fr conftest*
4626 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4627 if test "$wine_cv_libc_r__error" = "yes"
4628 then
4629 cat >> confdefs.h <<\EOF
4630 #define HAVE__ERROR 1
4633 wine_cv_libc_reentrant=__error
4635 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4636 echo "configure:4637: checking "for reentrant libc: ___errno"" >&5
4637 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4639 else
4640 if test "$cross_compiling" = yes; then
4641 wine_cv_libc_r___errno=yes
4642 else
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 int myerrno = 0;
4647 char buf[256];
4648 int *___errno(){return &myerrno;}
4649 main(){connect(0,buf,255); exit(!myerrno);}
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4652 then
4653 wine_cv_libc_r___errno=yes
4654 else
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4657 rm -fr conftest*
4658 wine_cv_libc_r___errno=no
4660 rm -fr conftest*
4666 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4667 if test "$wine_cv_libc_r___errno" = "yes"
4668 then
4669 cat >> confdefs.h <<\EOF
4670 #define HAVE___ERRNO 1
4673 wine_cv_libc_reentrant=___errno
4675 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4676 echo "configure:4677: checking "for reentrant libc: __thr_errno"" >&5
4677 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4679 else
4680 if test "$cross_compiling" = yes; then
4681 wine_cv_libc_r__thr_errno=yes
4682 else
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 int myerrno = 0;
4687 char buf[256];
4688 int *__thr_errno(){return &myerrno;}
4689 main(){connect(0,buf,255); exit(!myerrno);}
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4692 then
4693 wine_cv_libc_r__thr_errno=yes
4694 else
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -fr conftest*
4698 wine_cv_libc_r__thr_errno=no
4700 rm -fr conftest*
4706 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4707 if test "$wine_cv_libc_r__thr_errno" = "yes"
4708 then
4709 cat >> confdefs.h <<\EOF
4710 #define HAVE__THR_ERRNO 1
4713 wine_cv_libc_reentrant=__thr_errno
4715 if test "$wine_cv_libc_reentrant" = "no"
4716 then
4717 cat >> confdefs.h <<\EOF
4718 #define NO_REENTRANT_LIBC 1
4724 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4725 then
4726 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4727 echo "configure:4728: checking "for reentrant X libraries"" >&5
4728 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731 if test "x$with_reentrant_x" = "xno"
4732 then
4733 wine_cv_x_reentrant=no
4734 else
4735 libX11_check=none
4736 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4737 if test -r $dir/libX11.so; then
4738 libX11_check="-D $dir/libX11.so"
4739 break 1
4741 if test -r $dir/libX11.a; then
4742 libX11_check="$dir/libX11.a"
4743 break 1
4745 done
4746 if test "$libX11_check" != "none"; then
4747 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4748 then
4749 wine_cv_x_reentrant=yes
4750 else
4751 wine_cv_x_reentrant=no
4753 else
4754 wine_cv_x_reentrant=unknown
4759 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4760 else
4761 wine_cv_x_reentrant=no
4763 if test "$wine_cv_x_reentrant" = "no"
4764 then
4765 cat >> confdefs.h <<\EOF
4766 #define NO_REENTRANT_X11 1
4772 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4773 echo "configure:4774: checking whether byte ordering is bigendian" >&5
4774 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4776 else
4777 ac_cv_c_bigendian=unknown
4778 # See if sys/param.h defines the BYTE_ORDER macro.
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 #include <sys/types.h>
4783 #include <sys/param.h>
4784 int main() {
4786 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4787 bogus endian macros
4788 #endif
4789 ; return 0; }
4791 if { (eval echo configure:4792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4792 rm -rf conftest*
4793 # It does; now see whether it defined to BIG_ENDIAN or not.
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <sys/types.h>
4798 #include <sys/param.h>
4799 int main() {
4801 #if BYTE_ORDER != BIG_ENDIAN
4802 not big endian
4803 #endif
4804 ; return 0; }
4806 if { (eval echo configure:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4807 rm -rf conftest*
4808 ac_cv_c_bigendian=yes
4809 else
4810 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4812 rm -rf conftest*
4813 ac_cv_c_bigendian=no
4815 rm -f conftest*
4816 else
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4820 rm -f conftest*
4821 if test $ac_cv_c_bigendian = unknown; then
4822 if test "$cross_compiling" = yes; then
4823 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4824 else
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4828 main () {
4829 /* Are we little or big endian? From Harbison&Steele. */
4830 union
4832 long l;
4833 char c[sizeof (long)];
4834 } u;
4835 u.l = 1;
4836 exit (u.c[sizeof (long) - 1] == 1);
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4840 then
4841 ac_cv_c_bigendian=no
4842 else
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 rm -fr conftest*
4846 ac_cv_c_bigendian=yes
4848 rm -fr conftest*
4854 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4855 if test $ac_cv_c_bigendian = yes; then
4856 cat >> confdefs.h <<\EOF
4857 #define WORDS_BIGENDIAN 1
4864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4865 # for constant arguments. Useless!
4866 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4867 echo "configure:4868: checking for working alloca.h" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <alloca.h>
4875 int main() {
4876 void *p = alloca(2 * sizeof(int));
4877 ; return 0; }
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 rm -rf conftest*
4881 ac_cv_header_alloca_h=yes
4882 else
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 rm -rf conftest*
4886 ac_cv_header_alloca_h=no
4888 rm -f conftest*
4891 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4892 if test $ac_cv_header_alloca_h = yes; then
4893 cat >> confdefs.h <<\EOF
4894 #define HAVE_ALLOCA_H 1
4899 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4900 echo "configure:4901: checking for alloca" >&5
4901 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4903 else
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4908 #ifdef __GNUC__
4909 # define alloca __builtin_alloca
4910 #else
4911 # ifdef _MSC_VER
4912 # include <malloc.h>
4913 # define alloca _alloca
4914 # else
4915 # if HAVE_ALLOCA_H
4916 # include <alloca.h>
4917 # else
4918 # ifdef _AIX
4919 #pragma alloca
4920 # else
4921 # ifndef alloca /* predefined by HP cc +Olibcalls */
4922 char *alloca ();
4923 # endif
4924 # endif
4925 # endif
4926 # endif
4927 #endif
4929 int main() {
4930 char *p = (char *) alloca(1);
4931 ; return 0; }
4933 if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4934 rm -rf conftest*
4935 ac_cv_func_alloca_works=yes
4936 else
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4939 rm -rf conftest*
4940 ac_cv_func_alloca_works=no
4942 rm -f conftest*
4945 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4946 if test $ac_cv_func_alloca_works = yes; then
4947 cat >> confdefs.h <<\EOF
4948 #define HAVE_ALLOCA 1
4953 if test $ac_cv_func_alloca_works = no; then
4954 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4955 # that cause trouble. Some versions do not even contain alloca or
4956 # contain a buggy version. If you still want to use their alloca,
4957 # use ar to extract alloca.o from them instead of compiling alloca.c.
4958 ALLOCA=alloca.${ac_objext}
4959 cat >> confdefs.h <<\EOF
4960 #define C_ALLOCA 1
4964 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4965 echo "configure:4966: checking whether alloca needs Cray hooks" >&5
4966 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4968 else
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 #if defined(CRAY) && ! defined(CRAY2)
4973 webecray
4974 #else
4975 wenotbecray
4976 #endif
4979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980 egrep "webecray" >/dev/null 2>&1; then
4981 rm -rf conftest*
4982 ac_cv_os_cray=yes
4983 else
4984 rm -rf conftest*
4985 ac_cv_os_cray=no
4987 rm -f conftest*
4991 echo "$ac_t""$ac_cv_os_cray" 1>&6
4992 if test $ac_cv_os_cray = yes; then
4993 for ac_func in _getb67 GETB67 getb67; do
4994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_func" >&5
4996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4998 else
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 /* System header to define __stub macros and hopefully few prototypes,
5003 which can conflict with char $ac_func(); below. */
5004 #include <assert.h>
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5008 char $ac_func();
5010 int main() {
5012 /* The GNU C library defines this for functions which it implements
5013 to always fail with ENOSYS. Some functions are actually named
5014 something starting with __ and the normal name is an alias. */
5015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5016 choke me
5017 #else
5018 $ac_func();
5019 #endif
5021 ; return 0; }
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024 rm -rf conftest*
5025 eval "ac_cv_func_$ac_func=yes"
5026 else
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 rm -rf conftest*
5030 eval "ac_cv_func_$ac_func=no"
5032 rm -f conftest*
5035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5037 cat >> confdefs.h <<EOF
5038 #define CRAY_STACKSEG_END $ac_func
5041 break
5042 else
5043 echo "$ac_t""no" 1>&6
5046 done
5049 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5050 echo "configure:5051: checking stack direction for C alloca" >&5
5051 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5053 else
5054 if test "$cross_compiling" = yes; then
5055 ac_cv_c_stack_direction=0
5056 else
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 find_stack_direction ()
5062 static char *addr = 0;
5063 auto char dummy;
5064 if (addr == 0)
5066 addr = &dummy;
5067 return find_stack_direction ();
5069 else
5070 return (&dummy > addr) ? 1 : -1;
5072 main ()
5074 exit (find_stack_direction() < 0);
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5078 then
5079 ac_cv_c_stack_direction=1
5080 else
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5083 rm -fr conftest*
5084 ac_cv_c_stack_direction=-1
5086 rm -fr conftest*
5091 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5092 cat >> confdefs.h <<EOF
5093 #define STACK_DIRECTION $ac_cv_c_stack_direction
5098 for ac_func in \
5099 _lwp_create \
5100 clone \
5101 getnetbyaddr \
5102 getnetbyname \
5103 getpagesize \
5104 getprotobyname \
5105 getprotobynumber \
5106 getservbyport \
5107 getsockopt \
5108 inet_network \
5109 memmove \
5110 rfork \
5111 select \
5112 sendmsg \
5113 settimeofday \
5114 sigaltstack \
5115 statfs \
5116 strcasecmp \
5117 strerror \
5118 strncasecmp \
5119 tcgetattr \
5120 timegm \
5121 usleep \
5122 vfscanf \
5123 wait4 \
5124 waitpid \
5127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_func" >&5
5129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char $ac_func(); below. */
5137 #include <assert.h>
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5141 char $ac_func();
5143 int main() {
5145 /* The GNU C library defines this for functions which it implements
5146 to always fail with ENOSYS. Some functions are actually named
5147 something starting with __ and the normal name is an alias. */
5148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5149 choke me
5150 #else
5151 $ac_func();
5152 #endif
5154 ; return 0; }
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5157 rm -rf conftest*
5158 eval "ac_cv_func_$ac_func=yes"
5159 else
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 rm -rf conftest*
5163 eval "ac_cv_func_$ac_func=no"
5165 rm -f conftest*
5168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5169 echo "$ac_t""yes" 1>&6
5170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_func 1
5175 else
5176 echo "$ac_t""no" 1>&6
5178 done
5182 for ac_hdr in \
5183 a.out.h \
5184 a_out.h \
5185 arpa/inet.h \
5186 arpa/nameser.h \
5187 curses.h \
5188 elf.h \
5189 float.h \
5190 libio.h \
5191 link.h \
5192 linux/cdrom.h \
5193 linux/joystick.h \
5194 linux/ucdrom.h \
5195 ncurses.h \
5196 net/if.h \
5197 netinet/in.h \
5198 netinet/tcp.h \
5199 pty.h \
5200 resolv.h \
5201 sched.h \
5202 socket.h \
5203 strings.h \
5204 sys/cdio.h \
5205 sys/errno.h \
5206 sys/file.h \
5207 sys/filio.h \
5208 sys/ipc.h \
5209 sys/lwp.h \
5210 sys/mman.h \
5211 sys/modem.h \
5212 sys/mount.h \
5213 sys/msg.h \
5214 sys/param.h \
5215 sys/reg.h \
5216 sys/signal.h \
5217 sys/shm.h \
5218 sys/socket.h \
5219 sys/sockio.h \
5220 sys/statfs.h \
5221 sys/strtio.h \
5222 sys/syscall.h \
5223 sys/wait.h \
5224 sys/v86.h \
5225 sys/v86intr.h \
5226 sys/vfs.h \
5227 sys/vm86.h \
5228 syscall.h \
5229 ucontext.h \
5230 wctype.h \
5233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5235 echo "configure:5236: checking for $ac_hdr" >&5
5236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5242 #include <$ac_hdr>
5244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5245 { (eval echo configure:5246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5247 if test -z "$ac_err"; then
5248 rm -rf conftest*
5249 eval "ac_cv_header_$ac_safe=yes"
5250 else
5251 echo "$ac_err" >&5
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 eval "ac_cv_header_$ac_safe=no"
5257 rm -f conftest*
5259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5260 echo "$ac_t""yes" 1>&6
5261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5262 cat >> confdefs.h <<EOF
5263 #define $ac_tr_hdr 1
5266 else
5267 echo "$ac_t""no" 1>&6
5269 done
5271 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5272 echo "configure:5273: checking whether stat file-mode macros are broken" >&5
5273 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 #include <sys/types.h>
5280 #include <sys/stat.h>
5282 #if defined(S_ISBLK) && defined(S_IFDIR)
5283 # if S_ISBLK (S_IFDIR)
5284 You lose.
5285 # endif
5286 #endif
5288 #if defined(S_ISBLK) && defined(S_IFCHR)
5289 # if S_ISBLK (S_IFCHR)
5290 You lose.
5291 # endif
5292 #endif
5294 #if defined(S_ISLNK) && defined(S_IFREG)
5295 # if S_ISLNK (S_IFREG)
5296 You lose.
5297 # endif
5298 #endif
5300 #if defined(S_ISSOCK) && defined(S_IFREG)
5301 # if S_ISSOCK (S_IFREG)
5302 You lose.
5303 # endif
5304 #endif
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 egrep "You lose" >/dev/null 2>&1; then
5309 rm -rf conftest*
5310 ac_cv_header_stat_broken=yes
5311 else
5312 rm -rf conftest*
5313 ac_cv_header_stat_broken=no
5315 rm -f conftest*
5319 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5320 if test $ac_cv_header_stat_broken = yes; then
5321 cat >> confdefs.h <<\EOF
5322 #define STAT_MACROS_BROKEN 1
5329 echo $ac_n "checking for working const""... $ac_c" 1>&6
5330 echo "configure:5331: checking for working const" >&5
5331 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5333 else
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5338 int main() {
5340 /* Ultrix mips cc rejects this. */
5341 typedef int charset[2]; const charset x = {0,0};
5342 /* SunOS 4.1.1 cc rejects this. */
5343 char const *const *ccp;
5344 char **p;
5345 /* NEC SVR4.0.2 mips cc rejects this. */
5346 struct point {int x, y;};
5347 static struct point const zero = {0,0};
5348 /* AIX XL C 1.02.0.0 rejects this.
5349 It does not let you subtract one const X* pointer from another in an arm
5350 of an if-expression whose if-part is not a constant expression */
5351 const char *g = "string";
5352 ccp = &g + (g ? g-g : 0);
5353 /* HPUX 7.0 cc rejects these. */
5354 ++ccp;
5355 p = (char**) ccp;
5356 ccp = (char const *const *) p;
5357 { /* SCO 3.2v4 cc rejects this. */
5358 char *t;
5359 char const *s = 0 ? (char *) 0 : (char const *) 0;
5361 *t++ = 0;
5363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5364 int x[] = {25, 17};
5365 const int *foo = &x[0];
5366 ++foo;
5368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5369 typedef const int *iptr;
5370 iptr p = 0;
5371 ++p;
5373 { /* AIX XL C 1.02.0.0 rejects this saying
5374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5375 struct s { int j; const int *ap[3]; };
5376 struct s *b; b->j = 5;
5378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5379 const int foo = 10;
5382 ; return 0; }
5384 if { (eval echo configure:5385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5385 rm -rf conftest*
5386 ac_cv_c_const=yes
5387 else
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 rm -rf conftest*
5391 ac_cv_c_const=no
5393 rm -f conftest*
5396 echo "$ac_t""$ac_cv_c_const" 1>&6
5397 if test $ac_cv_c_const = no; then
5398 cat >> confdefs.h <<\EOF
5399 #define const
5404 echo $ac_n "checking for inline""... $ac_c" 1>&6
5405 echo "configure:5406: checking for inline" >&5
5406 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5408 else
5409 ac_cv_c_inline=no
5410 for ac_kw in inline __inline__ __inline; do
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5415 int main() {
5416 } int $ac_kw foo() {
5417 ; return 0; }
5419 if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5420 rm -rf conftest*
5421 ac_cv_c_inline=$ac_kw; break
5422 else
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 rm -f conftest*
5427 done
5431 echo "$ac_t""$ac_cv_c_inline" 1>&6
5432 case "$ac_cv_c_inline" in
5433 inline | yes) ;;
5434 no) cat >> confdefs.h <<\EOF
5435 #define inline
5438 *) cat >> confdefs.h <<EOF
5439 #define inline $ac_cv_c_inline
5442 esac
5444 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5445 echo "configure:5446: checking for ANSI C header files" >&5
5446 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5448 else
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 #include <stdlib.h>
5453 #include <stdarg.h>
5454 #include <string.h>
5455 #include <float.h>
5457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5458 { (eval echo configure:5459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5460 if test -z "$ac_err"; then
5461 rm -rf conftest*
5462 ac_cv_header_stdc=yes
5463 else
5464 echo "$ac_err" >&5
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5467 rm -rf conftest*
5468 ac_cv_header_stdc=no
5470 rm -f conftest*
5472 if test $ac_cv_header_stdc = yes; then
5473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 #include <string.h>
5479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 egrep "memchr" >/dev/null 2>&1; then
5482 else
5483 rm -rf conftest*
5484 ac_cv_header_stdc=no
5486 rm -f conftest*
5490 if test $ac_cv_header_stdc = yes; then
5491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <stdlib.h>
5497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 egrep "free" >/dev/null 2>&1; then
5500 else
5501 rm -rf conftest*
5502 ac_cv_header_stdc=no
5504 rm -f conftest*
5508 if test $ac_cv_header_stdc = yes; then
5509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5510 if test "$cross_compiling" = yes; then
5512 else
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5516 #include <ctype.h>
5517 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5518 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5520 int main () { int i; for (i = 0; i < 256; i++)
5521 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5522 exit (0); }
5525 if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5526 then
5528 else
5529 echo "configure: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5531 rm -fr conftest*
5532 ac_cv_header_stdc=no
5534 rm -fr conftest*
5540 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5541 if test $ac_cv_header_stdc = yes; then
5542 cat >> confdefs.h <<\EOF
5543 #define STDC_HEADERS 1
5548 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5549 echo "configure:5550: checking for size_t" >&5
5550 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 #include <sys/types.h>
5557 #if STDC_HEADERS
5558 #include <stdlib.h>
5559 #include <stddef.h>
5560 #endif
5562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5564 rm -rf conftest*
5565 ac_cv_type_size_t=yes
5566 else
5567 rm -rf conftest*
5568 ac_cv_type_size_t=no
5570 rm -f conftest*
5573 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5574 if test $ac_cv_type_size_t = no; then
5575 cat >> confdefs.h <<\EOF
5576 #define size_t unsigned
5581 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5582 echo "configure:5583: checking size of long long" >&5
5583 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 if test "$cross_compiling" = yes; then
5587 ac_cv_sizeof_long_long=0
5588 else
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 #include <stdio.h>
5593 main()
5595 FILE *f=fopen("conftestval", "w");
5596 if (!f) exit(1);
5597 fprintf(f, "%d\n", sizeof(long long));
5598 exit(0);
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5602 then
5603 ac_cv_sizeof_long_long=`cat conftestval`
5604 else
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 rm -fr conftest*
5608 ac_cv_sizeof_long_long=0
5610 rm -fr conftest*
5614 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5615 cat >> confdefs.h <<EOF
5616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5621 if test "$ac_cv_header_linux_joystick_h" = "yes"
5622 then
5623 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5624 echo "configure:5625: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5625 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5627 else
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5632 #include <sys/ioctl.h>
5633 #include <linux/joystick.h>
5635 struct js_event blub;
5636 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5637 #error "no 2.2 header"
5638 #endif
5640 int main() {
5641 /*empty*/
5642 ; return 0; }
5644 if { (eval echo configure:5645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 rm -rf conftest*
5646 wine_cv_linux_joystick_22_api=yes
5647 else
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 rm -rf conftest*
5651 wine_cv_linux_joystick_22_api=no
5653 rm -f conftest*
5657 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5658 if test "$wine_cv_linux_joystick_22_api"
5659 then
5660 cat >> confdefs.h <<\EOF
5661 #define HAVE_LINUX_22_JOYSTICK_API 1
5668 if test "$ac_cv_header_sys_vfs_h" = "yes"
5669 then
5670 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5671 echo "configure:5672: checking "whether sys/vfs.h defines statfs"" >&5
5672 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5674 else
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5679 #include <sys/types.h>
5680 #ifdef HAVE_SYS_PARAM_H
5681 # include <sys/param.h>
5682 #endif
5683 #include <sys/vfs.h>
5685 int main() {
5687 struct statfs stfs;
5689 memset(&stfs,0,sizeof(stfs));
5691 ; return 0; }
5693 if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 rm -rf conftest*
5695 wine_cv_sys_vfs_has_statfs=yes
5696 else
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 wine_cv_sys_vfs_has_statfs=no
5703 rm -f conftest*
5707 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5708 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5709 then
5710 cat >> confdefs.h <<\EOF
5711 #define STATFS_DEFINED_BY_SYS_VFS 1
5717 if test "$ac_cv_header_sys_statfs_h" = "yes"
5718 then
5719 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5720 echo "configure:5721: checking "whether sys/statfs.h defines statfs"" >&5
5721 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5728 #include <sys/types.h>
5729 #ifdef HAVE_SYS_PARAM_H
5730 # include <sys/param.h>
5731 #endif
5732 #include <sys/statfs.h>
5734 int main() {
5736 struct statfs stfs;
5738 ; return 0; }
5740 if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5741 rm -rf conftest*
5742 wine_cv_sys_statfs_has_statfs=yes
5743 else
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 rm -rf conftest*
5747 wine_cv_sys_statfs_has_statfs=no
5750 rm -f conftest*
5754 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5755 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5756 then
5757 cat >> confdefs.h <<\EOF
5758 #define STATFS_DEFINED_BY_SYS_STATFS 1
5764 if test "$ac_cv_header_sys_mount_h" = "yes"
5765 then
5766 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5767 echo "configure:5768: checking "whether sys/mount.h defines statfs"" >&5
5768 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5769 echo $ac_n "(cached) $ac_c" 1>&6
5770 else
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5775 #include <sys/types.h>
5776 #ifdef HAVE_SYS_PARAM_H
5777 # include <sys/param.h>
5778 #endif
5779 #include <sys/mount.h>
5781 int main() {
5783 struct statfs stfs;
5785 ; return 0; }
5787 if { (eval echo configure:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5788 rm -rf conftest*
5789 wine_cv_sys_mount_has_statfs=yes
5790 else
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5793 rm -rf conftest*
5794 wine_cv_sys_mount_has_statfs=no
5797 rm -f conftest*
5801 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5802 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5803 then
5804 cat >> confdefs.h <<\EOF
5805 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5812 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5813 echo "configure:5814: checking "for statfs.f_bfree"" >&5
5814 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 if test "x$statfs_bfree" = "xno"
5818 then
5819 wine_cv_statfs_bfree=no
5820 else
5821 cat > conftest.$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5825 #include <sys/types.h>
5826 #ifdef HAVE_SYS_PARAM_H
5827 # include <sys/param.h>
5828 #endif
5829 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5830 # include <sys/mount.h>
5831 #else
5832 # ifdef STATFS_DEFINED_BY_SYS_VFS
5833 # include <sys/vfs.h>
5834 # else
5835 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5836 # include <sys/statfs.h>
5837 # endif
5838 # endif
5839 #endif
5841 int main() {
5843 struct statfs stfs;
5845 stfs.f_bfree++;
5847 ; return 0; }
5849 if { (eval echo configure:5850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5850 rm -rf conftest*
5851 wine_cv_statfs_bfree=yes
5852 else
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 rm -rf conftest*
5856 wine_cv_statfs_bfree=no
5859 rm -f conftest*
5863 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5864 if test "$wine_cv_statfs_bfree" = "yes"
5865 then
5866 cat >> confdefs.h <<\EOF
5867 #define STATFS_HAS_BFREE 1
5872 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5873 echo "configure:5874: checking "for statfs.f_bavail"" >&5
5874 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5876 else
5877 if test "x$statfs_bavail" = "xno"
5878 then
5879 wine_cv_statfs_bavail=no
5880 else
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5885 #include <sys/types.h>
5886 #ifdef HAVE_SYS_PARAM_H
5887 # include <sys/param.h>
5888 #endif
5889 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5890 # include <sys/mount.h>
5891 #else
5892 # ifdef STATFS_DEFINED_BY_SYS_VFS
5893 # include <sys/vfs.h>
5894 # else
5895 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5896 # include <sys/statfs.h>
5897 # endif
5898 # endif
5899 #endif
5901 int main() {
5903 struct statfs stfs;
5905 stfs.f_bavail++;
5907 ; return 0; }
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910 rm -rf conftest*
5911 wine_cv_statfs_bavail=yes
5912 else
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 rm -rf conftest*
5916 wine_cv_statfs_bavail=no
5919 rm -f conftest*
5923 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5924 if test "$wine_cv_statfs_bavail" = "yes"
5925 then
5926 cat >> confdefs.h <<\EOF
5927 #define STATFS_HAS_BAVAIL 1
5933 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5934 echo "configure:5935: checking "for msg_accrights in struct msghdr"" >&5
5935 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 #include <sys/types.h>
5942 #include <sys/socket.h>
5943 int main() {
5944 struct msghdr hdr; hdr.msg_accrights=0
5945 ; return 0; }
5947 if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5948 rm -rf conftest*
5949 ac_cv_c_msg_accrights="yes"
5950 else
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5953 rm -rf conftest*
5954 ac_cv_c_msg_accrights="no"
5956 rm -f conftest*
5959 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5960 if test "$ac_cv_c_msg_accrights" = "yes"
5961 then
5962 cat >> confdefs.h <<\EOF
5963 #define HAVE_MSGHDR_ACCRIGHTS 1
5969 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5970 echo "configure:5971: checking "for sun_len in struct sockaddr_un"" >&5
5971 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5972 echo $ac_n "(cached) $ac_c" 1>&6
5973 else
5974 cat > conftest.$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5977 #include <sys/types.h>
5978 #include <sys/socket.h>
5979 #include <sys/un.h>
5980 int main() {
5981 static struct sockaddr_un addr; addr.sun_len = 1
5982 ; return 0; }
5984 if { (eval echo configure:5985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5985 rm -rf conftest*
5986 ac_cv_c_sun_len="yes"
5987 else
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 rm -rf conftest*
5991 ac_cv_c_sun_len="no"
5993 rm -f conftest*
5996 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
5997 if test "$ac_cv_c_sun_len" = "yes"
5998 then
5999 cat >> confdefs.h <<\EOF
6000 #define HAVE_SOCKADDR_SUN_LEN 1
6006 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6007 echo "configure:6008: checking "whether we need to define __i386__"" >&5
6008 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6010 else
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6014 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6016 #endif
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 egrep "yes" >/dev/null 2>&1; then
6020 rm -rf conftest*
6021 ac_cv_cpp_def_i386="yes"
6022 else
6023 rm -rf conftest*
6024 ac_cv_cpp_def_i386="no"
6026 rm -f conftest*
6030 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6031 if test "$ac_cv_cpp_def_i386" = "yes"
6032 then
6033 CFLAGS="$CFLAGS -D__i386__"
6034 LINTFLAGS="$LINTFLAGS -D__i386__"
6037 GCC_NO_BUILTIN=""
6038 if test "$GCC" = "yes"
6039 then
6040 GCC_NO_BUILTIN="-fno-builtin"
6047 MAKE_RULES=Make.rules
6050 MAKE_DLL_RULES=dlls/Makedll.rules
6053 trap '' 1 2 15
6054 cat > confcache <<\EOF
6055 # This file is a shell script that caches the results of configure
6056 # tests run on this system so they can be shared between configure
6057 # scripts and configure runs. It is not useful on other systems.
6058 # If it contains results you don't want to keep, you may remove or edit it.
6060 # By default, configure uses ./config.cache as the cache file,
6061 # creating it if it does not exist already. You can give configure
6062 # the --cache-file=FILE option to use a different cache file; that is
6063 # what configure does when it calls configure scripts in
6064 # subdirectories, so they share the cache.
6065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6066 # config.status only pays attention to the cache file if you give it the
6067 # --recheck option to rerun configure.
6070 # The following way of writing the cache mishandles newlines in values,
6071 # but we know of no workaround that is simple, portable, and efficient.
6072 # So, don't put newlines in cache variables' values.
6073 # Ultrix sh set writes to stderr and can't be redirected directly,
6074 # and sets the high bit in the cache file unless we assign to the vars.
6075 (set) 2>&1 |
6076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6077 *ac_space=\ *)
6078 # `set' does not quote correctly, so add quotes (double-quote substitution
6079 # turns \\\\ into \\, and sed turns \\ into \).
6080 sed -n \
6081 -e "s/'/'\\\\''/g" \
6082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6085 # `set' quotes correctly as required by POSIX, so do not add quotes.
6086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6088 esac >> confcache
6089 if cmp -s $cache_file confcache; then
6091 else
6092 if test -w $cache_file; then
6093 echo "updating cache $cache_file"
6094 cat confcache > $cache_file
6095 else
6096 echo "not updating unwritable cache $cache_file"
6099 rm -f confcache
6101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6104 # Let make expand exec_prefix.
6105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6107 # Any assignment to VPATH causes Sun make to only execute
6108 # the first set of double-colon rules, so remove it if not needed.
6109 # If there is a colon in the path, we need to keep it.
6110 if test "x$srcdir" = x.; then
6111 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6116 DEFS=-DHAVE_CONFIG_H
6118 # Without the "./", some shells look in PATH for config.status.
6119 : ${CONFIG_STATUS=./config.status}
6121 echo creating $CONFIG_STATUS
6122 rm -f $CONFIG_STATUS
6123 cat > $CONFIG_STATUS <<EOF
6124 #! /bin/sh
6125 # Generated automatically by configure.
6126 # Run this file to recreate the current configuration.
6127 # This directory was configured as follows,
6128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6130 # $0 $ac_configure_args
6132 # Compiler output produced by configure, useful for debugging
6133 # configure, is in ./config.log if it exists.
6135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6136 for ac_option
6138 case "\$ac_option" in
6139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6143 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6144 exit 0 ;;
6145 -help | --help | --hel | --he | --h)
6146 echo "\$ac_cs_usage"; exit 0 ;;
6147 *) echo "\$ac_cs_usage"; exit 1 ;;
6148 esac
6149 done
6151 ac_given_srcdir=$srcdir
6152 ac_given_INSTALL="$INSTALL"
6154 trap 'rm -fr `echo "
6155 Make.rules
6156 Makefile
6157 console/Makefile
6158 controls/Makefile
6159 debugger/Makefile
6160 dlls/Makedll.rules
6161 dlls/Makefile
6162 dlls/advapi32/Makefile
6163 dlls/avifil32/Makefile
6164 dlls/comctl32/Makefile
6165 dlls/commdlg/Makefile
6166 dlls/crtdll/Makefile
6167 dlls/dciman32/Makefile
6168 dlls/ddraw/Makefile
6169 dlls/dinput/Makefile
6170 dlls/display/Makefile
6171 dlls/dplayx/Makefile
6172 dlls/dsound/Makefile
6173 dlls/gdi/Makefile
6174 dlls/icmp/Makefile
6175 dlls/imagehlp/Makefile
6176 dlls/imm32/Makefile
6177 dlls/lzexpand/Makefile
6178 dlls/mouse/Makefile
6179 dlls/mpr/Makefile
6180 dlls/msacm/Makefile
6181 dlls/msacm32/Makefile
6182 dlls/msnet32/Makefile
6183 dlls/msvideo/Makefile
6184 dlls/ntdll/Makefile
6185 dlls/odbc32/Makefile
6186 dlls/ole32/Makefile
6187 dlls/oleaut32/Makefile
6188 dlls/olecli/Makefile
6189 dlls/oledlg/Makefile
6190 dlls/olepro32/Makefile
6191 dlls/olesvr/Makefile
6192 dlls/psapi/Makefile
6193 dlls/rasapi32/Makefile
6194 dlls/setupx/Makefile
6195 dlls/shell32/Makefile
6196 dlls/sound/Makefile
6197 dlls/stress/Makefile
6198 dlls/tapi32/Makefile
6199 dlls/ttydrv/Makefile
6200 dlls/urlmon/Makefile
6201 dlls/user/Makefile
6202 dlls/version/Makefile
6203 dlls/win32s/Makefile
6204 dlls/win87em/Makefile
6205 dlls/winaspi/Makefile
6206 dlls/windebug/Makefile
6207 dlls/wing/Makefile
6208 dlls/wininet/Makefile
6209 dlls/winmm/Makefile
6210 dlls/winmm/joystick/Makefile
6211 dlls/winmm/mcianim/Makefile
6212 dlls/winmm/mciavi/Makefile
6213 dlls/winmm/mcicda/Makefile
6214 dlls/winmm/mciseq/Makefile
6215 dlls/winmm/mciwave/Makefile
6216 dlls/winmm/midimap/Makefile
6217 dlls/winmm/wavemap/Makefile
6218 dlls/winmm/wineoss/Makefile
6219 dlls/winsock/Makefile
6220 dlls/winspool/Makefile
6221 dlls/ttydrv/Makefile
6222 dlls/x11drv/Makefile
6223 documentation/Makefile
6224 documentation/wine.conf.man
6225 documentation/wine.man
6226 files/Makefile
6227 graphics/Makefile
6228 graphics/enhmetafiledrv/Makefile
6229 graphics/metafiledrv/Makefile
6230 graphics/psdrv/Makefile
6231 graphics/ttydrv/Makefile
6232 graphics/win16drv/Makefile
6233 graphics/x11drv/Makefile
6234 if1632/Makefile
6235 include/Makefile
6236 library/Makefile
6237 libtest/Makefile
6238 loader/Makefile
6239 loader/ne/Makefile
6240 loader/dos/Makefile
6241 memory/Makefile
6242 misc/Makefile
6243 miscemu/Makefile
6244 msdos/Makefile
6245 objects/Makefile
6246 ole/Makefile
6247 programs/Makefile
6248 programs/clock/Makefile
6249 programs/cmdlgtst/Makefile
6250 programs/control/Makefile
6251 programs/avitools/Makefile
6252 programs/osversioncheck/Makefile
6253 programs/notepad/Makefile
6254 programs/progman/Makefile
6255 programs/regtest/Makefile
6256 programs/regapi/Makefile
6257 programs/view/Makefile
6258 programs/wcmd/Makefile
6259 programs/winemine/Makefile
6260 programs/winhelp/Makefile
6261 programs/winver/Makefile
6262 relay32/Makefile
6263 resources/Makefile
6264 scheduler/Makefile
6265 server/Makefile
6266 tools/Makefile
6267 tools/cvdump/Makefile
6268 tools/wrc/Makefile
6269 tsx11/Makefile
6270 win32/Makefile
6271 windows/Makefile
6272 windows/ttydrv/Makefile
6273 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6275 cat >> $CONFIG_STATUS <<EOF
6277 # Protect against being on the right side of a sed subst in config.status.
6278 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6279 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6280 $ac_vpsub
6281 $extrasub
6282 s%@SHELL@%$SHELL%g
6283 s%@CFLAGS@%$CFLAGS%g
6284 s%@CPPFLAGS@%$CPPFLAGS%g
6285 s%@CXXFLAGS@%$CXXFLAGS%g
6286 s%@FFLAGS@%$FFLAGS%g
6287 s%@DEFS@%$DEFS%g
6288 s%@LDFLAGS@%$LDFLAGS%g
6289 s%@LIBS@%$LIBS%g
6290 s%@exec_prefix@%$exec_prefix%g
6291 s%@prefix@%$prefix%g
6292 s%@program_transform_name@%$program_transform_name%g
6293 s%@bindir@%$bindir%g
6294 s%@sbindir@%$sbindir%g
6295 s%@libexecdir@%$libexecdir%g
6296 s%@datadir@%$datadir%g
6297 s%@sysconfdir@%$sysconfdir%g
6298 s%@sharedstatedir@%$sharedstatedir%g
6299 s%@localstatedir@%$localstatedir%g
6300 s%@libdir@%$libdir%g
6301 s%@includedir@%$includedir%g
6302 s%@oldincludedir@%$oldincludedir%g
6303 s%@infodir@%$infodir%g
6304 s%@mandir@%$mandir%g
6305 s%@PROGEXT@%$PROGEXT%g
6306 s%@EMU_TARGET@%$EMU_TARGET%g
6307 s%@OPTIONS@%$OPTIONS%g
6308 s%@SET_MAKE@%$SET_MAKE%g
6309 s%@CC@%$CC%g
6310 s%@CPP@%$CPP%g
6311 s%@X_CFLAGS@%$X_CFLAGS%g
6312 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6313 s%@X_LIBS@%$X_LIBS%g
6314 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6315 s%@YACC@%$YACC%g
6316 s%@LEX@%$LEX%g
6317 s%@LEXLIB@%$LEXLIB%g
6318 s%@RANLIB@%$RANLIB%g
6319 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6320 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6321 s%@INSTALL_DATA@%$INSTALL_DATA%g
6322 s%@LN_S@%$LN_S%g
6323 s%@C2MAN@%$C2MAN%g
6324 s%@LDCONFIG@%$LDCONFIG%g
6325 s%@LINT@%$LINT%g
6326 s%@LINTFLAGS@%$LINTFLAGS%g
6327 s%@XLIB@%$XLIB%g
6328 s%@X_SRCS@%$X_SRCS%g
6329 s%@DGA_SRCS@%$DGA_SRCS%g
6330 s%@MESA_SRCS@%$MESA_SRCS%g
6331 s%@DLL_LINK@%$DLL_LINK%g
6332 s%@BUILDFLAGS@%$BUILDFLAGS%g
6333 s%@DLLFLAGS@%$DLLFLAGS%g
6334 s%@LDSHARED@%$LDSHARED%g
6335 s%@LIBEXT@%$LIBEXT%g
6336 s%@ALLOCA@%$ALLOCA%g
6337 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6338 /@MAKE_RULES@/r $MAKE_RULES
6339 s%@MAKE_RULES@%%g
6340 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6341 s%@MAKE_DLL_RULES@%%g
6343 CEOF
6346 cat >> $CONFIG_STATUS <<\EOF
6348 # Split the substitutions into bite-sized pieces for seds with
6349 # small command number limits, like on Digital OSF/1 and HP-UX.
6350 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6351 ac_file=1 # Number of current file.
6352 ac_beg=1 # First line for current file.
6353 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6354 ac_more_lines=:
6355 ac_sed_cmds=""
6356 while $ac_more_lines; do
6357 if test $ac_beg -gt 1; then
6358 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6359 else
6360 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6362 if test ! -s conftest.s$ac_file; then
6363 ac_more_lines=false
6364 rm -f conftest.s$ac_file
6365 else
6366 if test -z "$ac_sed_cmds"; then
6367 ac_sed_cmds="sed -f conftest.s$ac_file"
6368 else
6369 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6371 ac_file=`expr $ac_file + 1`
6372 ac_beg=$ac_end
6373 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6375 done
6376 if test -z "$ac_sed_cmds"; then
6377 ac_sed_cmds=cat
6381 cat >> $CONFIG_STATUS <<EOF
6383 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6384 Makefile
6385 console/Makefile
6386 controls/Makefile
6387 debugger/Makefile
6388 dlls/Makedll.rules
6389 dlls/Makefile
6390 dlls/advapi32/Makefile
6391 dlls/avifil32/Makefile
6392 dlls/comctl32/Makefile
6393 dlls/commdlg/Makefile
6394 dlls/crtdll/Makefile
6395 dlls/dciman32/Makefile
6396 dlls/ddraw/Makefile
6397 dlls/dinput/Makefile
6398 dlls/display/Makefile
6399 dlls/dplayx/Makefile
6400 dlls/dsound/Makefile
6401 dlls/gdi/Makefile
6402 dlls/icmp/Makefile
6403 dlls/imagehlp/Makefile
6404 dlls/imm32/Makefile
6405 dlls/lzexpand/Makefile
6406 dlls/mouse/Makefile
6407 dlls/mpr/Makefile
6408 dlls/msacm/Makefile
6409 dlls/msacm32/Makefile
6410 dlls/msnet32/Makefile
6411 dlls/msvideo/Makefile
6412 dlls/ntdll/Makefile
6413 dlls/odbc32/Makefile
6414 dlls/ole32/Makefile
6415 dlls/oleaut32/Makefile
6416 dlls/olecli/Makefile
6417 dlls/oledlg/Makefile
6418 dlls/olepro32/Makefile
6419 dlls/olesvr/Makefile
6420 dlls/psapi/Makefile
6421 dlls/rasapi32/Makefile
6422 dlls/setupx/Makefile
6423 dlls/shell32/Makefile
6424 dlls/sound/Makefile
6425 dlls/stress/Makefile
6426 dlls/tapi32/Makefile
6427 dlls/ttydrv/Makefile
6428 dlls/urlmon/Makefile
6429 dlls/user/Makefile
6430 dlls/version/Makefile
6431 dlls/win32s/Makefile
6432 dlls/win87em/Makefile
6433 dlls/winaspi/Makefile
6434 dlls/windebug/Makefile
6435 dlls/wing/Makefile
6436 dlls/wininet/Makefile
6437 dlls/winmm/Makefile
6438 dlls/winmm/joystick/Makefile
6439 dlls/winmm/mcianim/Makefile
6440 dlls/winmm/mciavi/Makefile
6441 dlls/winmm/mcicda/Makefile
6442 dlls/winmm/mciseq/Makefile
6443 dlls/winmm/mciwave/Makefile
6444 dlls/winmm/midimap/Makefile
6445 dlls/winmm/wavemap/Makefile
6446 dlls/winmm/wineoss/Makefile
6447 dlls/winsock/Makefile
6448 dlls/winspool/Makefile
6449 dlls/ttydrv/Makefile
6450 dlls/x11drv/Makefile
6451 documentation/Makefile
6452 documentation/wine.conf.man
6453 documentation/wine.man
6454 files/Makefile
6455 graphics/Makefile
6456 graphics/enhmetafiledrv/Makefile
6457 graphics/metafiledrv/Makefile
6458 graphics/psdrv/Makefile
6459 graphics/ttydrv/Makefile
6460 graphics/win16drv/Makefile
6461 graphics/x11drv/Makefile
6462 if1632/Makefile
6463 include/Makefile
6464 library/Makefile
6465 libtest/Makefile
6466 loader/Makefile
6467 loader/ne/Makefile
6468 loader/dos/Makefile
6469 memory/Makefile
6470 misc/Makefile
6471 miscemu/Makefile
6472 msdos/Makefile
6473 objects/Makefile
6474 ole/Makefile
6475 programs/Makefile
6476 programs/clock/Makefile
6477 programs/cmdlgtst/Makefile
6478 programs/control/Makefile
6479 programs/avitools/Makefile
6480 programs/osversioncheck/Makefile
6481 programs/notepad/Makefile
6482 programs/progman/Makefile
6483 programs/regtest/Makefile
6484 programs/regapi/Makefile
6485 programs/view/Makefile
6486 programs/wcmd/Makefile
6487 programs/winemine/Makefile
6488 programs/winhelp/Makefile
6489 programs/winver/Makefile
6490 relay32/Makefile
6491 resources/Makefile
6492 scheduler/Makefile
6493 server/Makefile
6494 tools/Makefile
6495 tools/cvdump/Makefile
6496 tools/wrc/Makefile
6497 tsx11/Makefile
6498 win32/Makefile
6499 windows/Makefile
6500 windows/ttydrv/Makefile
6501 windows/x11drv/Makefile "}
6503 cat >> $CONFIG_STATUS <<\EOF
6504 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6506 case "$ac_file" in
6507 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6508 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6509 *) ac_file_in="${ac_file}.in" ;;
6510 esac
6512 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6514 # Remove last slash and all that follows it. Not all systems have dirname.
6515 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6516 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6517 # The file is in a subdirectory.
6518 test ! -d "$ac_dir" && mkdir "$ac_dir"
6519 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6520 # A "../" for each directory in $ac_dir_suffix.
6521 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6522 else
6523 ac_dir_suffix= ac_dots=
6526 case "$ac_given_srcdir" in
6527 .) srcdir=.
6528 if test -z "$ac_dots"; then top_srcdir=.
6529 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6530 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6531 *) # Relative path.
6532 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6533 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6534 esac
6536 case "$ac_given_INSTALL" in
6537 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6538 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6539 esac
6541 echo creating "$ac_file"
6542 rm -f "$ac_file"
6543 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6544 case "$ac_file" in
6545 *Makefile*) ac_comsub="1i\\
6546 # $configure_input" ;;
6547 *) ac_comsub= ;;
6548 esac
6550 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6551 sed -e "$ac_comsub
6552 s%@configure_input@%$configure_input%g
6553 s%@srcdir@%$srcdir%g
6554 s%@top_srcdir@%$top_srcdir%g
6555 s%@INSTALL@%$INSTALL%g
6556 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6557 fi; done
6558 rm -f conftest.s*
6560 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6561 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6563 # ac_d sets the value in "#define NAME VALUE" lines.
6564 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6565 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6566 ac_dC='\3'
6567 ac_dD='%g'
6568 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6569 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6570 ac_uB='\([ ]\)%\1#\2define\3'
6571 ac_uC=' '
6572 ac_uD='\4%g'
6573 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6574 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6575 ac_eB='$%\1#\2define\3'
6576 ac_eC=' '
6577 ac_eD='%g'
6579 if test "${CONFIG_HEADERS+set}" != set; then
6581 cat >> $CONFIG_STATUS <<EOF
6582 CONFIG_HEADERS="include/config.h"
6584 cat >> $CONFIG_STATUS <<\EOF
6586 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6588 case "$ac_file" in
6589 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6590 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6591 *) ac_file_in="${ac_file}.in" ;;
6592 esac
6594 echo creating $ac_file
6596 rm -f conftest.frag conftest.in conftest.out
6597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6598 cat $ac_file_inputs > conftest.in
6602 # Transform confdefs.h into a sed script conftest.vals that substitutes
6603 # the proper values into config.h.in to produce config.h. And first:
6604 # Protect against being on the right side of a sed subst in config.status.
6605 # Protect against being in an unquoted here document in config.status.
6606 rm -f conftest.vals
6607 cat > conftest.hdr <<\EOF
6608 s/[\\&%]/\\&/g
6609 s%[\\$`]%\\&%g
6610 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6611 s%ac_d%ac_u%gp
6612 s%ac_u%ac_e%gp
6614 sed -n -f conftest.hdr confdefs.h > conftest.vals
6615 rm -f conftest.hdr
6617 # This sed command replaces #undef with comments. This is necessary, for
6618 # example, in the case of _POSIX_SOURCE, which is predefined and required
6619 # on some systems where configure will not decide to define it.
6620 cat >> conftest.vals <<\EOF
6621 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6624 # Break up conftest.vals because some shells have a limit on
6625 # the size of here documents, and old seds have small limits too.
6627 rm -f conftest.tail
6628 while :
6630 ac_lines=`grep -c . conftest.vals`
6631 # grep -c gives empty output for an empty file on some AIX systems.
6632 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6633 # Write a limited-size here document to conftest.frag.
6634 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6635 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6636 echo 'CEOF
6637 sed -f conftest.frag conftest.in > conftest.out
6638 rm -f conftest.in
6639 mv conftest.out conftest.in
6640 ' >> $CONFIG_STATUS
6641 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6642 rm -f conftest.vals
6643 mv conftest.tail conftest.vals
6644 done
6645 rm -f conftest.vals
6647 cat >> $CONFIG_STATUS <<\EOF
6648 rm -f conftest.frag conftest.h
6649 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6650 cat conftest.in >> conftest.h
6651 rm -f conftest.in
6652 if cmp -s $ac_file conftest.h 2>/dev/null; then
6653 echo "$ac_file is unchanged"
6654 rm -f conftest.h
6655 else
6656 # Remove last slash and all that follows it. Not all systems have dirname.
6657 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6658 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6659 # The file is in a subdirectory.
6660 test ! -d "$ac_dir" && mkdir "$ac_dir"
6662 rm -f $ac_file
6663 mv conftest.h $ac_file
6665 fi; done
6668 cat >> $CONFIG_STATUS <<EOF
6672 cat >> $CONFIG_STATUS <<\EOF
6674 extra_subdirs="\
6675 dlls/ddraw/d3ddevice \
6676 dlls/ddraw/dclipper \
6677 dlls/ddraw/ddraw \
6678 dlls/ddraw/direct3d \
6679 dlls/ddraw/dpalette \
6680 dlls/ddraw/dsurface \
6682 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6684 exit 0
6686 chmod +x $CONFIG_STATUS
6687 rm -fr confdefs* $ac_clean_files
6688 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6691 if test "$have_x" = "no"
6692 then
6693 echo
6694 echo "*** Warning: X development files not found. Wine will be built without"
6695 echo "*** X support, which currently does not work, and would probably not be"
6696 echo "*** what you want anyway. You will need to install devel packages of"
6697 echo "*** Xlib/Xfree86 and Xpm at the very least."
6698 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6699 then
6700 echo
6701 echo "*** Warning: Xpm development files not found. Wine will be built without"
6702 echo "*** Xpm support, which currently does not work. You will need to install"
6703 echo "*** devel packages of Xpm."
6706 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6707 then
6708 echo
6709 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6710 echo "*** terminal resize support. Consider upgrading ncurses."
6713 if test "$wine_cv_libc_reentrant" = "no"
6714 then
6715 echo
6716 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6717 echo "*** thread support. Consider upgrading libc to a more recent"
6718 echo "*** reentrant version of libc."
6721 if test "$wine_cv_mesa_version_OK" = "no"
6722 then
6723 echo
6724 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6725 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6728 if test "$wine_cv_mesa_version_threadsafe" = "yes"
6729 then
6730 echo
6731 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6732 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed"
6733 echo "*** (while we work on a better fix)."
6736 echo
6737 echo "Configure finished. Do 'make depend && make' to compile Wine."
6738 echo