Merged mouse dll into USER.
[wine.git] / configure
blob5c3d1b8e417ca5064f372a24dc0d27c01d19663c
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 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-curses do not use curses"
27 ac_help="$ac_help
28 --without-reentrant-x compile for use with non-reentrant X libraries"
29 ac_help="$ac_help
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
73 ac_prev=
74 for ac_option
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
89 # Accept the important Cygnus configure options, so we can diagnose typos.
91 case "$ac_option" in
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
188 cat << EOF
189 Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
204 exit 0 ;;
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
354 exit 0 ;;
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 nonopt="$ac_option"
409 esac
410 done
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427 exec 6>/dev/null
428 else
429 exec 6>&1
431 exec 5>./config.log
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452 done
454 # NLS nuisances.
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=controls/edit.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
484 else
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
509 done
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 ac_exeext=
527 ac_objext=o
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
536 else
537 ac_n= ac_c='\c' ac_t=
542 ac_aux_dir=
543 for ac_dir in tools $srcdir/tools; do
544 if 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
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
553 done
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # We want these before the checks, so the checks can modify their values.
564 test -z "$PROGEXT" && PROGEXT=""
567 EMU_TARGET=wine
568 LIBEXT=so # library type .so or .a
569 TRACE_MSGS=yes # the TRACE() macro
570 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
571 CURSES=yes
572 OPENGL=normal
574 # Check whether --enable-emulator or --disable-emulator was given.
575 if test "${enable_emulator+set}" = set; then
576 enableval="$enable_emulator"
577 if test "$enableval" = "no"; then EMU_TARGET=""; fi
581 # Check whether --enable-dll or --disable-dll was given.
582 if test "${enable_dll+set}" = set; then
583 enableval="$enable_dll"
584 if test "$enableval" = "no"; then LIBEXT="a"; fi
588 # Check whether --enable-debug or --disable-debug was given.
589 if test "${enable_debug+set}" = set; then
590 enableval="$enable_debug"
591 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
595 # Check whether --enable-opengl or --disable-opengl was given.
596 if test "${enable_opengl+set}" = set; then
597 enableval="$enable_opengl"
598 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
602 # Check whether --enable-trace or --disable-trace was given.
603 if test "${enable_trace+set}" = set; then
604 enableval="$enable_trace"
605 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
609 # Check whether --with-curses or --without-curses was given.
610 if test "${with_curses+set}" = set; then
611 withval="$with_curses"
612 if test "$withval" = "no"; then CURSES="no"; fi
616 # Check whether --with-reentrant-x or --without-reentrant-x was given.
617 if test "${with_reentrant_x+set}" = set; then
618 withval="$with_reentrant_x"
626 if test "$DEBUG_MSGS" = "no"
627 then
628 cat >> confdefs.h <<\EOF
629 #define NO_DEBUG_MSGS 1
632 cat >> confdefs.h <<\EOF
633 #define NO_TRACE_MSGS 1
636 else
637 if test "$TRACE_MSGS" = "no"
638 then
639 cat >> confdefs.h <<\EOF
640 #define NO_TRACE_MSGS 1
647 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
648 echo "configure:649: checking whether ${MAKE-make} sets \${MAKE}" >&5
649 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
650 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652 else
653 cat > conftestmake <<\EOF
654 all:
655 @echo 'ac_maketemp="${MAKE}"'
657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
658 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
659 if test -n "$ac_maketemp"; then
660 eval ac_cv_prog_make_${ac_make}_set=yes
661 else
662 eval ac_cv_prog_make_${ac_make}_set=no
664 rm -f conftestmake
666 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
667 echo "$ac_t""yes" 1>&6
668 SET_MAKE=
669 else
670 echo "$ac_t""no" 1>&6
671 SET_MAKE="MAKE=${MAKE-make}"
674 # Extract the first word of "gcc", so it can be a program name with args.
675 set dummy gcc; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680 else
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
683 else
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 ac_dummy="$PATH"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_prog_CC="gcc"
690 break
692 done
693 IFS="$ac_save_ifs"
696 CC="$ac_cv_prog_CC"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
699 else
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705 set dummy cc; ac_word=$2
706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
707 echo "configure:708: checking for $ac_word" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710 else
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
713 else
714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 ac_prog_rejected=no
716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
724 ac_cv_prog_CC="cc"
725 break
727 done
728 IFS="$ac_save_ifs"
729 if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
745 CC="$ac_cv_prog_CC"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748 else
749 echo "$ac_t""no" 1>&6
752 if test -z "$CC"; then
753 case "`uname -s`" in
754 *win32* | *WIN32*)
755 # Extract the first word of "cl", so it can be a program name with args.
756 set dummy cl; ac_word=$2
757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
758 echo "configure:759: checking for $ac_word" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761 else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764 else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_dummy="$PATH"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_CC="cl"
771 break
773 done
774 IFS="$ac_save_ifs"
777 CC="$ac_cv_prog_CC"
778 if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780 else
781 echo "$ac_t""no" 1>&6
784 esac
786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 ac_ext=c
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 cat > conftest.$ac_ext << EOF
801 #line 802 "configure"
802 #include "confdefs.h"
804 main(){return(0);}
806 if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
807 ac_cv_prog_cc_works=yes
808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (./conftest; exit) 2>/dev/null; then
810 ac_cv_prog_cc_cross=no
811 else
812 ac_cv_prog_cc_cross=yes
814 else
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
817 ac_cv_prog_cc_works=no
819 rm -fr conftest*
820 ac_ext=c
821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822 ac_cpp='$CPP $CPPFLAGS'
823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825 cross_compiling=$ac_cv_prog_cc_cross
827 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828 if test $ac_cv_prog_cc_works = no; then
829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
833 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834 cross_compiling=$ac_cv_prog_cc_cross
836 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
837 echo "configure:838: checking whether we are using GNU C" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 cat > conftest.c <<EOF
842 #ifdef __GNUC__
843 yes;
844 #endif
846 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
847 ac_cv_prog_gcc=yes
848 else
849 ac_cv_prog_gcc=no
853 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
855 if test $ac_cv_prog_gcc = yes; then
856 GCC=yes
857 else
858 GCC=
861 ac_test_CFLAGS="${CFLAGS+set}"
862 ac_save_CFLAGS="$CFLAGS"
863 CFLAGS=
864 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
865 echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 echo 'void f(){}' > conftest.c
870 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 ac_cv_prog_cc_g=yes
872 else
873 ac_cv_prog_cc_g=no
875 rm -f conftest*
879 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
880 if test "$ac_test_CFLAGS" = set; then
881 CFLAGS="$ac_save_CFLAGS"
882 elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
884 CFLAGS="-g -O2"
885 else
886 CFLAGS="-g"
888 else
889 if test "$GCC" = yes; then
890 CFLAGS="-O2"
891 else
892 CFLAGS=
896 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
897 echo "configure:898: checking how to run the C preprocessor" >&5
898 # On Suns, sometimes $CPP names a directory.
899 if test -n "$CPP" && test -d "$CPP"; then
900 CPP=
902 if test -z "$CPP"; then
903 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905 else
906 # This must be in double quotes, not single quotes, because CPP may get
907 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 CPP="${CC-cc} -E"
909 # On the NeXT, cc -E runs the code through the compiler's parser,
910 # not just through cpp.
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #include <assert.h>
915 Syntax Error
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 CPP="${CC-cc} -E -traditional-cpp"
928 cat > conftest.$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
931 #include <assert.h>
932 Syntax Error
934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
935 { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937 if test -z "$ac_err"; then
939 else
940 echo "$ac_err" >&5
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 CPP="${CC-cc} -nologo -E"
945 cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
948 #include <assert.h>
949 Syntax Error
951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
952 { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
954 if test -z "$ac_err"; then
956 else
957 echo "$ac_err" >&5
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -rf conftest*
961 CPP=/lib/cpp
963 rm -f conftest*
965 rm -f conftest*
967 rm -f conftest*
968 ac_cv_prog_CPP="$CPP"
970 CPP="$ac_cv_prog_CPP"
971 else
972 ac_cv_prog_CPP="$CPP"
974 echo "$ac_t""$CPP" 1>&6
976 # If we find X, set shell vars x_includes and x_libraries to the
977 # paths, otherwise set no_x=yes.
978 # Uses ac_ vars as temps to allow command line to override cache and checks.
979 # --without-x overrides everything else, but does not touch the cache.
980 echo $ac_n "checking for X""... $ac_c" 1>&6
981 echo "configure:982: checking for X" >&5
983 # Check whether --with-x or --without-x was given.
984 if test "${with_x+set}" = set; then
985 withval="$with_x"
989 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
990 if test "x$with_x" = xno; then
991 # The user explicitly disabled X.
992 have_x=disabled
993 else
994 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
995 # Both variables are already set.
996 have_x=yes
997 else
998 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 # One or both of the vars are not set, and there is no cached value.
1002 ac_x_includes=NO ac_x_libraries=NO
1003 rm -fr conftestdir
1004 if mkdir conftestdir; then
1005 cd conftestdir
1006 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1007 cat > Imakefile <<'EOF'
1008 acfindx:
1009 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1011 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1013 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1014 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1015 for ac_extension in a so sl; do
1016 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1017 test -f $ac_im_libdir/libX11.$ac_extension; then
1018 ac_im_usrlibdir=$ac_im_libdir; break
1020 done
1021 # Screen out bogus values from the imake configuration. They are
1022 # bogus both because they are the default anyway, and because
1023 # using them would break gcc on systems where it needs fixed includes.
1024 case "$ac_im_incroot" in
1025 /usr/include) ;;
1026 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1027 esac
1028 case "$ac_im_usrlibdir" in
1029 /usr/lib | /lib) ;;
1030 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1031 esac
1033 cd ..
1034 rm -fr conftestdir
1037 if test "$ac_x_includes" = NO; then
1038 # Guess where to find include files, by looking for this one X11 .h file.
1039 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1041 # First, try using that file with no special directory specified.
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <$x_direct_test_include>
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1051 rm -rf conftest*
1052 # We can compile using X headers with no special include directory.
1053 ac_x_includes=
1054 else
1055 echo "$ac_err" >&5
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1058 rm -rf conftest*
1059 # Look for the header file in a standard set of common directories.
1060 # Check X11 before X11Rn because it is often a symlink to the current release.
1061 for ac_dir in \
1062 /usr/X11/include \
1063 /usr/X11R6/include \
1064 /usr/X11R5/include \
1065 /usr/X11R4/include \
1067 /usr/include/X11 \
1068 /usr/include/X11R6 \
1069 /usr/include/X11R5 \
1070 /usr/include/X11R4 \
1072 /usr/local/X11/include \
1073 /usr/local/X11R6/include \
1074 /usr/local/X11R5/include \
1075 /usr/local/X11R4/include \
1077 /usr/local/include/X11 \
1078 /usr/local/include/X11R6 \
1079 /usr/local/include/X11R5 \
1080 /usr/local/include/X11R4 \
1082 /usr/X386/include \
1083 /usr/x386/include \
1084 /usr/XFree86/include/X11 \
1086 /usr/include \
1087 /usr/local/include \
1088 /usr/unsupported/include \
1089 /usr/athena/include \
1090 /usr/local/x11r5/include \
1091 /usr/lpp/Xamples/include \
1093 /usr/openwin/include \
1094 /usr/openwin/share/include \
1097 if test -r "$ac_dir/$x_direct_test_include"; then
1098 ac_x_includes=$ac_dir
1099 break
1101 done
1103 rm -f conftest*
1104 fi # $ac_x_includes = NO
1106 if test "$ac_x_libraries" = NO; then
1107 # Check for the libraries.
1109 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1110 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1112 # See if we find them without any special options.
1113 # Don't add to $LIBS permanently.
1114 ac_save_LIBS="$LIBS"
1115 LIBS="-l$x_direct_test_library $LIBS"
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1120 int main() {
1121 ${x_direct_test_function}()
1122 ; return 0; }
1124 if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1125 rm -rf conftest*
1126 LIBS="$ac_save_LIBS"
1127 # We can link X programs with no special library path.
1128 ac_x_libraries=
1129 else
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1132 rm -rf conftest*
1133 LIBS="$ac_save_LIBS"
1134 # First see if replacing the include by lib works.
1135 # Check X11 before X11Rn because it is often a symlink to the current release.
1136 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1137 /usr/X11/lib \
1138 /usr/X11R6/lib \
1139 /usr/X11R5/lib \
1140 /usr/X11R4/lib \
1142 /usr/lib/X11 \
1143 /usr/lib/X11R6 \
1144 /usr/lib/X11R5 \
1145 /usr/lib/X11R4 \
1147 /usr/local/X11/lib \
1148 /usr/local/X11R6/lib \
1149 /usr/local/X11R5/lib \
1150 /usr/local/X11R4/lib \
1152 /usr/local/lib/X11 \
1153 /usr/local/lib/X11R6 \
1154 /usr/local/lib/X11R5 \
1155 /usr/local/lib/X11R4 \
1157 /usr/X386/lib \
1158 /usr/x386/lib \
1159 /usr/XFree86/lib/X11 \
1161 /usr/lib \
1162 /usr/local/lib \
1163 /usr/unsupported/lib \
1164 /usr/athena/lib \
1165 /usr/local/x11r5/lib \
1166 /usr/lpp/Xamples/lib \
1167 /lib/usr/lib/X11 \
1169 /usr/openwin/lib \
1170 /usr/openwin/share/lib \
1173 for ac_extension in a so sl; do
1174 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1175 ac_x_libraries=$ac_dir
1176 break 2
1178 done
1179 done
1181 rm -f conftest*
1182 fi # $ac_x_libraries = NO
1184 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1185 # Didn't find X anywhere. Cache the known absence of X.
1186 ac_cv_have_x="have_x=no"
1187 else
1188 # Record where we found X for the cache.
1189 ac_cv_have_x="have_x=yes \
1190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1194 eval "$ac_cv_have_x"
1195 fi # $with_x != no
1197 if test "$have_x" != yes; then
1198 echo "$ac_t""$have_x" 1>&6
1199 no_x=yes
1200 else
1201 # If each of the values was on the command line, it overrides each guess.
1202 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1203 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1204 # Update the cache value to reflect the command line values.
1205 ac_cv_have_x="have_x=yes \
1206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1207 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1210 if test "$no_x" = yes; then
1211 # Not all programs may use this symbol, but it does not hurt to define it.
1212 cat >> confdefs.h <<\EOF
1213 #define X_DISPLAY_MISSING 1
1216 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1217 else
1218 if test -n "$x_includes"; then
1219 X_CFLAGS="$X_CFLAGS -I$x_includes"
1222 # It would also be nice to do this for all -L options, not just this one.
1223 if test -n "$x_libraries"; then
1224 X_LIBS="$X_LIBS -L$x_libraries"
1225 # For Solaris; some versions of Sun CC require a space after -R and
1226 # others require no space. Words are not sufficient . . . .
1227 case "`(uname -sr) 2>/dev/null`" in
1228 "SunOS 5"*)
1229 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether -R must be followed by a space" >&5
1231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1236 int main() {
1238 ; return 0; }
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1241 rm -rf conftest*
1242 ac_R_nospace=yes
1243 else
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1246 rm -rf conftest*
1247 ac_R_nospace=no
1249 rm -f conftest*
1250 if test $ac_R_nospace = yes; then
1251 echo "$ac_t""no" 1>&6
1252 X_LIBS="$X_LIBS -R$x_libraries"
1253 else
1254 LIBS="$ac_xsave_LIBS -R $x_libraries"
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1259 int main() {
1261 ; return 0; }
1263 if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1264 rm -rf conftest*
1265 ac_R_space=yes
1266 else
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 ac_R_space=no
1272 rm -f conftest*
1273 if test $ac_R_space = yes; then
1274 echo "$ac_t""yes" 1>&6
1275 X_LIBS="$X_LIBS -R $x_libraries"
1276 else
1277 echo "$ac_t""neither works" 1>&6
1280 LIBS="$ac_xsave_LIBS"
1281 esac
1284 # Check for system-dependent libraries X programs must link with.
1285 # Do this before checking for the system-independent R6 libraries
1286 # (-lICE), since we may need -lsocket or whatever for X linking.
1288 if test "$ISC" = yes; then
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1290 else
1291 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1292 # libraries were built with DECnet support. And karl@cs.umb.edu says
1293 # the Alpha needs dnet_stub (dnet does not exist).
1294 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1295 echo "configure:1296: checking for dnet_ntoa in -ldnet" >&5
1296 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 ac_save_LIBS="$LIBS"
1301 LIBS="-ldnet $LIBS"
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1305 /* Override any gcc2 internal prototype to avoid an error. */
1306 /* We use char because int might match the return type of a gcc2
1307 builtin and then its argument prototype would still apply. */
1308 char dnet_ntoa();
1310 int main() {
1311 dnet_ntoa()
1312 ; return 0; }
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1315 rm -rf conftest*
1316 eval "ac_cv_lib_$ac_lib_var=yes"
1317 else
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=no"
1323 rm -f conftest*
1324 LIBS="$ac_save_LIBS"
1327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1328 echo "$ac_t""yes" 1>&6
1329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1330 else
1331 echo "$ac_t""no" 1>&6
1334 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1335 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1336 echo "configure:1337: checking for dnet_ntoa in -ldnet_stub" >&5
1337 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341 ac_save_LIBS="$LIBS"
1342 LIBS="-ldnet_stub $LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error. */
1347 /* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
1349 char dnet_ntoa();
1351 int main() {
1352 dnet_ntoa()
1353 ; return 0; }
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356 rm -rf conftest*
1357 eval "ac_cv_lib_$ac_lib_var=yes"
1358 else
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1361 rm -rf conftest*
1362 eval "ac_cv_lib_$ac_lib_var=no"
1364 rm -f conftest*
1365 LIBS="$ac_save_LIBS"
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1370 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1371 else
1372 echo "$ac_t""no" 1>&6
1377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1378 # to get the SysV transport functions.
1379 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1380 # needs -lnsl.
1381 # The nsl library prevents programs from opening the X display
1382 # on Irix 5.2, according to dickey@clark.net.
1383 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1384 echo "configure:1385: checking for gethostbyname" >&5
1385 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 /* System header to define __stub macros and hopefully few prototypes,
1392 which can conflict with char gethostbyname(); below. */
1393 #include <assert.h>
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397 char gethostbyname();
1399 int main() {
1401 /* The GNU C library defines this for functions which it implements
1402 to always fail with ENOSYS. Some functions are actually named
1403 something starting with __ and the normal name is an alias. */
1404 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1405 choke me
1406 #else
1407 gethostbyname();
1408 #endif
1410 ; return 0; }
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 rm -rf conftest*
1414 eval "ac_cv_func_gethostbyname=yes"
1415 else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 eval "ac_cv_func_gethostbyname=no"
1421 rm -f conftest*
1424 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1427 else
1428 echo "$ac_t""no" 1>&6
1431 if test $ac_cv_func_gethostbyname = no; then
1432 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1433 echo "configure:1434: checking for gethostbyname in -lnsl" >&5
1434 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438 ac_save_LIBS="$LIBS"
1439 LIBS="-lnsl $LIBS"
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1446 char gethostbyname();
1448 int main() {
1449 gethostbyname()
1450 ; return 0; }
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1453 rm -rf conftest*
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1455 else
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1458 rm -rf conftest*
1459 eval "ac_cv_lib_$ac_lib_var=no"
1461 rm -f conftest*
1462 LIBS="$ac_save_LIBS"
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1468 else
1469 echo "$ac_t""no" 1>&6
1474 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1475 # socket/setsockopt and other routines are undefined under SCO ODT
1476 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1477 # on later versions), says simon@lia.di.epfl.ch: it contains
1478 # gethostby* variants that don't use the nameserver (or something).
1479 # -lsocket must be given before -lnsl if both are needed.
1480 # We assume that if connect needs -lnsl, so does gethostbyname.
1481 echo $ac_n "checking for connect""... $ac_c" 1>&6
1482 echo "configure:1483: checking for connect" >&5
1483 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 /* System header to define __stub macros and hopefully few prototypes,
1490 which can conflict with char connect(); below. */
1491 #include <assert.h>
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1495 char connect();
1497 int main() {
1499 /* The GNU C library defines this for functions which it implements
1500 to always fail with ENOSYS. Some functions are actually named
1501 something starting with __ and the normal name is an alias. */
1502 #if defined (__stub_connect) || defined (__stub___connect)
1503 choke me
1504 #else
1505 connect();
1506 #endif
1508 ; return 0; }
1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 rm -rf conftest*
1512 eval "ac_cv_func_connect=yes"
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_func_connect=no"
1519 rm -f conftest*
1522 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1525 else
1526 echo "$ac_t""no" 1>&6
1529 if test $ac_cv_func_connect = no; then
1530 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1531 echo "configure:1532: checking for connect in -lsocket" >&5
1532 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1535 else
1536 ac_save_LIBS="$LIBS"
1537 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1544 char connect();
1546 int main() {
1547 connect()
1548 ; return 0; }
1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 rm -rf conftest*
1552 eval "ac_cv_lib_$ac_lib_var=yes"
1553 else
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1556 rm -rf conftest*
1557 eval "ac_cv_lib_$ac_lib_var=no"
1559 rm -f conftest*
1560 LIBS="$ac_save_LIBS"
1563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1564 echo "$ac_t""yes" 1>&6
1565 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1566 else
1567 echo "$ac_t""no" 1>&6
1572 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1573 echo $ac_n "checking for remove""... $ac_c" 1>&6
1574 echo "configure:1575: checking for remove" >&5
1575 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* System header to define __stub macros and hopefully few prototypes,
1582 which can conflict with char remove(); below. */
1583 #include <assert.h>
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1587 char remove();
1589 int main() {
1591 /* The GNU C library defines this for functions which it implements
1592 to always fail with ENOSYS. Some functions are actually named
1593 something starting with __ and the normal name is an alias. */
1594 #if defined (__stub_remove) || defined (__stub___remove)
1595 choke me
1596 #else
1597 remove();
1598 #endif
1600 ; return 0; }
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1603 rm -rf conftest*
1604 eval "ac_cv_func_remove=yes"
1605 else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_func_remove=no"
1611 rm -f conftest*
1614 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1617 else
1618 echo "$ac_t""no" 1>&6
1621 if test $ac_cv_func_remove = no; then
1622 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1623 echo "configure:1624: checking for remove in -lposix" >&5
1624 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628 ac_save_LIBS="$LIBS"
1629 LIBS="-lposix $LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1636 char remove();
1638 int main() {
1639 remove()
1640 ; return 0; }
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1643 rm -rf conftest*
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1645 else
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 eval "ac_cv_lib_$ac_lib_var=no"
1651 rm -f conftest*
1652 LIBS="$ac_save_LIBS"
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1658 else
1659 echo "$ac_t""no" 1>&6
1664 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1665 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1666 echo "configure:1667: checking for shmat" >&5
1667 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char shmat(); below. */
1675 #include <assert.h>
1676 /* Override any gcc2 internal prototype to avoid an error. */
1677 /* We use char because int might match the return type of a gcc2
1678 builtin and then its argument prototype would still apply. */
1679 char shmat();
1681 int main() {
1683 /* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686 #if defined (__stub_shmat) || defined (__stub___shmat)
1687 choke me
1688 #else
1689 shmat();
1690 #endif
1692 ; return 0; }
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 rm -rf conftest*
1696 eval "ac_cv_func_shmat=yes"
1697 else
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1700 rm -rf conftest*
1701 eval "ac_cv_func_shmat=no"
1703 rm -f conftest*
1706 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1713 if test $ac_cv_func_shmat = no; then
1714 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1715 echo "configure:1716: checking for shmat in -lipc" >&5
1716 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 ac_save_LIBS="$LIBS"
1721 LIBS="-lipc $LIBS"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* Override any gcc2 internal prototype to avoid an error. */
1726 /* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1728 char shmat();
1730 int main() {
1731 shmat()
1732 ; return 0; }
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735 rm -rf conftest*
1736 eval "ac_cv_lib_$ac_lib_var=yes"
1737 else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 eval "ac_cv_lib_$ac_lib_var=no"
1743 rm -f conftest*
1744 LIBS="$ac_save_LIBS"
1747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1750 else
1751 echo "$ac_t""no" 1>&6
1757 # Check for libraries that X11R6 Xt/Xaw programs need.
1758 ac_save_LDFLAGS="$LDFLAGS"
1759 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1760 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1761 # check for ICE first), but we must link in the order -lSM -lICE or
1762 # we get undefined symbols. So assume we have SM if we have ICE.
1763 # These have to be linked with before -lX11, unlike the other
1764 # libraries we check for below, so use a different variable.
1765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1766 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1767 echo "configure:1768: checking for IceConnectionNumber in -lICE" >&5
1768 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 ac_save_LIBS="$LIBS"
1773 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* Override any gcc2 internal prototype to avoid an error. */
1778 /* We use char because int might match the return type of a gcc2
1779 builtin and then its argument prototype would still apply. */
1780 char IceConnectionNumber();
1782 int main() {
1783 IceConnectionNumber()
1784 ; return 0; }
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 rm -rf conftest*
1788 eval "ac_cv_lib_$ac_lib_var=yes"
1789 else
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 rm -rf conftest*
1793 eval "ac_cv_lib_$ac_lib_var=no"
1795 rm -f conftest*
1796 LIBS="$ac_save_LIBS"
1799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1802 else
1803 echo "$ac_t""no" 1>&6
1806 LDFLAGS="$ac_save_LDFLAGS"
1810 for ac_prog in 'bison -y' byacc
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 if test -n "$YACC"; then
1820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1821 else
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 ac_dummy="$PATH"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_YACC="$ac_prog"
1828 break
1830 done
1831 IFS="$ac_save_ifs"
1834 YACC="$ac_cv_prog_YACC"
1835 if test -n "$YACC"; then
1836 echo "$ac_t""$YACC" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1841 test -n "$YACC" && break
1842 done
1843 test -n "$YACC" || YACC="yacc"
1845 # Extract the first word of "flex", so it can be a program name with args.
1846 set dummy flex; ac_word=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 if test -n "$LEX"; then
1853 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1854 else
1855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 ac_dummy="$PATH"
1857 for ac_dir in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_LEX="flex"
1861 break
1863 done
1864 IFS="$ac_save_ifs"
1865 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1868 LEX="$ac_cv_prog_LEX"
1869 if test -n "$LEX"; then
1870 echo "$ac_t""$LEX" 1>&6
1871 else
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$LEXLIB"
1876 then
1877 case "$LEX" in
1878 flex*) ac_lib=fl ;;
1879 *) ac_lib=l ;;
1880 esac
1881 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1882 echo "configure:1883: checking for yywrap in -l$ac_lib" >&5
1883 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 ac_save_LIBS="$LIBS"
1888 LIBS="-l$ac_lib $LIBS"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 /* Override any gcc2 internal prototype to avoid an error. */
1893 /* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
1895 char yywrap();
1897 int main() {
1898 yywrap()
1899 ; return 0; }
1901 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 rm -rf conftest*
1903 eval "ac_cv_lib_$ac_lib_var=yes"
1904 else
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_lib_$ac_lib_var=no"
1910 rm -f conftest*
1911 LIBS="$ac_save_LIBS"
1914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 LEXLIB="-l$ac_lib"
1917 else
1918 echo "$ac_t""no" 1>&6
1923 # Extract the first word of "ranlib", so it can be a program name with args.
1924 set dummy ranlib; ac_word=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 if test -n "$RANLIB"; then
1931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1932 else
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1934 ac_dummy="$PATH"
1935 for ac_dir in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_prog_RANLIB="ranlib"
1939 break
1941 done
1942 IFS="$ac_save_ifs"
1943 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1946 RANLIB="$ac_cv_prog_RANLIB"
1947 if test -n "$RANLIB"; then
1948 echo "$ac_t""$RANLIB" 1>&6
1949 else
1950 echo "$ac_t""no" 1>&6
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1959 # AIX /bin/install
1960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1963 # ./install, which can be erroneously created by make from ./install.sh.
1964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1965 echo "configure:1966: checking for a BSD compatible install" >&5
1966 if test -z "$INSTALL"; then
1967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1971 for ac_dir in $PATH; do
1972 # Account for people who put trailing slashes in PATH elements.
1973 case "$ac_dir/" in
1974 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1976 # OSF1 and SCO ODT 3.0 have their own names for install.
1977 # Don't use installbsd from OSF since it installs stuff as root
1978 # by default.
1979 for ac_prog in ginstall scoinst install; do
1980 if test -f $ac_dir/$ac_prog; then
1981 if test $ac_prog = install &&
1982 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1983 # AIX install. It has an incompatible calling convention.
1985 else
1986 ac_cv_path_install="$ac_dir/$ac_prog -c"
1987 break 2
1990 done
1992 esac
1993 done
1994 IFS="$ac_save_IFS"
1997 if test "${ac_cv_path_install+set}" = set; then
1998 INSTALL="$ac_cv_path_install"
1999 else
2000 # As a last resort, use the slow shell script. We don't cache a
2001 # path for INSTALL within a source directory, because that will
2002 # break other packages using the cache if that directory is
2003 # removed, or if the path is relative.
2004 INSTALL="$ac_install_sh"
2007 echo "$ac_t""$INSTALL" 1>&6
2009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2010 # It thinks the first close brace ends the variable substitution.
2011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2017 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ln -s works" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 rm -f conftestdata
2023 if ln -s X conftestdata 2>/dev/null
2024 then
2025 rm -f conftestdata
2026 ac_cv_prog_LN_S="ln -s"
2027 else
2028 ac_cv_prog_LN_S=ln
2031 LN_S="$ac_cv_prog_LN_S"
2032 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2033 echo "$ac_t""yes" 1>&6
2034 else
2035 echo "$ac_t""no" 1>&6
2038 # Extract the first word of "c2man", so it can be a program name with args.
2039 set dummy c2man; ac_word=$2
2040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_word" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 if test -n "$C2MAN"; then
2046 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2047 else
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2049 ac_dummy="$PATH"
2050 for ac_dir in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_prog_C2MAN="c2man"
2054 break
2056 done
2057 IFS="$ac_save_ifs"
2058 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2061 C2MAN="$ac_cv_prog_C2MAN"
2062 if test -n "$C2MAN"; then
2063 echo "$ac_t""$C2MAN" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2068 # Extract the first word of "ldconfig", so it can be a program name with args.
2069 set dummy ldconfig; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 case "$LDCONFIG" in
2077 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2079 ?:/*)
2080 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2084 ac_dummy="/sbin:/usr/sbin:$PATH"
2085 for ac_dir in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2088 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2089 break
2091 done
2092 IFS="$ac_save_ifs"
2093 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2095 esac
2097 LDCONFIG="$ac_cv_path_LDCONFIG"
2098 if test -n "$LDCONFIG"; then
2099 echo "$ac_t""$LDCONFIG" 1>&6
2100 else
2101 echo "$ac_t""no" 1>&6
2105 for ac_prog in lclint lint
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy $ac_prog; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$LINT"; then
2115 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_LINT="$ac_prog"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2129 LINT="$ac_cv_prog_LINT"
2130 if test -n "$LINT"; then
2131 echo "$ac_t""$LINT" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2136 test -n "$LINT" && break
2137 done
2139 if test "$LINT" = "lint"
2140 then
2141 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2147 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2148 echo "configure:2149: checking for sqrt in -lm" >&5
2149 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153 ac_save_LIBS="$LIBS"
2154 LIBS="-lm $LIBS"
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2161 char sqrt();
2163 int main() {
2164 sqrt()
2165 ; return 0; }
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 rm -rf conftest*
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2170 else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 eval "ac_cv_lib_$ac_lib_var=no"
2176 rm -f conftest*
2177 LIBS="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184 cat >> confdefs.h <<EOF
2185 #define $ac_tr_lib 1
2188 LIBS="-lm $LIBS"
2190 else
2191 echo "$ac_t""no" 1>&6
2194 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2195 echo "configure:2196: checking for i386_set_ldt in -li386" >&5
2196 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200 ac_save_LIBS="$LIBS"
2201 LIBS="-li386 $LIBS"
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2208 char i386_set_ldt();
2210 int main() {
2211 i386_set_ldt()
2212 ; return 0; }
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215 rm -rf conftest*
2216 eval "ac_cv_lib_$ac_lib_var=yes"
2217 else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -rf conftest*
2221 eval "ac_cv_lib_$ac_lib_var=no"
2223 rm -f conftest*
2224 LIBS="$ac_save_LIBS"
2227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2231 cat >> confdefs.h <<EOF
2232 #define $ac_tr_lib 1
2235 LIBS="-li386 $LIBS"
2237 else
2238 echo "$ac_t""no" 1>&6
2241 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2242 echo "configure:2243: checking for _oss_ioctl in -lossaudio" >&5
2243 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 ac_save_LIBS="$LIBS"
2248 LIBS="-lossaudio $LIBS"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2255 char _oss_ioctl();
2257 int main() {
2258 _oss_ioctl()
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=no"
2270 rm -f conftest*
2271 LIBS="$ac_save_LIBS"
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h <<EOF
2279 #define $ac_tr_lib 1
2282 LIBS="-lossaudio $LIBS"
2284 else
2285 echo "$ac_t""no" 1>&6
2288 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2289 echo "configure:2290: checking for iswalnum in -lw" >&5
2290 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 ac_save_LIBS="$LIBS"
2295 LIBS="-lw $LIBS"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2302 char iswalnum();
2304 int main() {
2305 iswalnum()
2306 ; return 0; }
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 rm -rf conftest*
2310 eval "ac_cv_lib_$ac_lib_var=yes"
2311 else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 eval "ac_cv_lib_$ac_lib_var=no"
2317 rm -f conftest*
2318 LIBS="$ac_save_LIBS"
2321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2325 cat >> confdefs.h <<EOF
2326 #define $ac_tr_lib 1
2329 LIBS="-lw $LIBS"
2331 else
2332 echo "$ac_t""no" 1>&6
2335 for ac_func in gethostbyname
2337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_func" >&5
2339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2347 #include <assert.h>
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351 char $ac_func();
2353 int main() {
2355 /* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2359 choke me
2360 #else
2361 $ac_func();
2362 #endif
2364 ; return 0; }
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367 rm -rf conftest*
2368 eval "ac_cv_func_$ac_func=yes"
2369 else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_func_$ac_func=no"
2375 rm -f conftest*
2378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_func 1
2385 else
2386 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2388 echo "configure:2389: checking for gethostbyname in -lnsl" >&5
2389 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393 ac_save_LIBS="$LIBS"
2394 LIBS="-lnsl -lsocket $LIBS"
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char gethostbyname();
2403 int main() {
2404 gethostbyname()
2405 ; return 0; }
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 rm -rf conftest*
2409 eval "ac_cv_lib_$ac_lib_var=yes"
2410 else
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 rm -rf conftest*
2414 eval "ac_cv_lib_$ac_lib_var=no"
2416 rm -f conftest*
2417 LIBS="$ac_save_LIBS"
2420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2423 else
2424 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2426 echo "configure:2427: checking for gethostbyname in -lsocket" >&5
2427 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431 ac_save_LIBS="$LIBS"
2432 LIBS="-lsocket -lnsl $LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char gethostbyname();
2441 int main() {
2442 gethostbyname()
2443 ; return 0; }
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 rm -rf conftest*
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2448 else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 eval "ac_cv_lib_$ac_lib_var=no"
2454 rm -f conftest*
2455 LIBS="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2461 else
2462 echo "$ac_t""no" 1>&6
2468 done
2470 for ac_func in connect
2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_func" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2482 #include <assert.h>
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2486 char $ac_func();
2488 int main() {
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2494 choke me
2495 #else
2496 $ac_func();
2497 #endif
2499 ; return 0; }
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2502 rm -rf conftest*
2503 eval "ac_cv_func_$ac_func=yes"
2504 else
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 eval "ac_cv_func_$ac_func=no"
2510 rm -f conftest*
2513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h <<EOF
2517 #define $ac_tr_func 1
2520 else
2521 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2523 echo "configure:2524: checking for connect in -lsocket" >&5
2524 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 ac_save_LIBS="$LIBS"
2529 LIBS="-lsocket $LIBS"
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536 char connect();
2538 int main() {
2539 connect()
2540 ; return 0; }
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 rm -rf conftest*
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2545 else
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 rm -rf conftest*
2549 eval "ac_cv_lib_$ac_lib_var=no"
2551 rm -f conftest*
2552 LIBS="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_lib 1
2563 LIBS="-lsocket $LIBS"
2565 else
2566 echo "$ac_t""no" 1>&6
2570 done
2572 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2573 echo "configure:2574: checking for setrunelocale in -lxpg4" >&5
2574 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 ac_save_LIBS="$LIBS"
2579 LIBS="-lxpg4 $LIBS"
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char setrunelocale();
2588 int main() {
2589 setrunelocale()
2590 ; return 0; }
2592 if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2595 else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_lib_$ac_lib_var=no"
2601 rm -f conftest*
2602 LIBS="$ac_save_LIBS"
2605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2609 cat >> confdefs.h <<EOF
2610 #define $ac_tr_lib 1
2613 LIBS="-lxpg4 $LIBS"
2615 else
2616 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2620 echo "configure:2621: checking for mmap in -lmmap" >&5
2621 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625 ac_save_LIBS="$LIBS"
2626 LIBS="-lmmap $LIBS"
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2633 char mmap();
2635 int main() {
2636 mmap()
2637 ; return 0; }
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 rm -rf conftest*
2641 eval "ac_cv_lib_$ac_lib_var=yes"
2642 else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -rf conftest*
2646 eval "ac_cv_lib_$ac_lib_var=no"
2648 rm -f conftest*
2649 LIBS="$ac_save_LIBS"
2652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_lib 1
2660 LIBS="-lmmap $LIBS"
2662 else
2663 echo "$ac_t""no" 1>&6
2666 for ac_func in openpty
2668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_func" >&5
2670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 /* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $ac_func(); below. */
2678 #include <assert.h>
2679 /* Override any gcc2 internal prototype to avoid an error. */
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682 char $ac_func();
2684 int main() {
2686 /* The GNU C library defines this for functions which it implements
2687 to always fail with ENOSYS. Some functions are actually named
2688 something starting with __ and the normal name is an alias. */
2689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690 choke me
2691 #else
2692 $ac_func();
2693 #endif
2695 ; return 0; }
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698 rm -rf conftest*
2699 eval "ac_cv_func_$ac_func=yes"
2700 else
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 rm -rf conftest*
2704 eval "ac_cv_func_$ac_func=no"
2706 rm -f conftest*
2709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2712 cat >> confdefs.h <<EOF
2713 #define $ac_tr_func 1
2716 else
2717 echo "$ac_t""no" 1>&6
2718 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2719 echo "configure:2720: checking for openpty in -lutil" >&5
2720 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2723 else
2724 ac_save_LIBS="$LIBS"
2725 LIBS="-lutil $LIBS"
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* Override any gcc2 internal prototype to avoid an error. */
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732 char openpty();
2734 int main() {
2735 openpty()
2736 ; return 0; }
2738 if { (eval echo configure:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2739 rm -rf conftest*
2740 eval "ac_cv_lib_$ac_lib_var=yes"
2741 else
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 rm -rf conftest*
2745 eval "ac_cv_lib_$ac_lib_var=no"
2747 rm -f conftest*
2748 LIBS="$ac_save_LIBS"
2751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 cat >> confdefs.h <<\EOF
2754 #define HAVE_OPENPTY 1
2757 LIBS="$LIBS -lutil"
2759 else
2760 echo "$ac_t""no" 1>&6
2764 done
2767 for ac_hdr in dlfcn.h
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <$ac_hdr>
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2784 rm -rf conftest*
2785 eval "ac_cv_header_$ac_safe=yes"
2786 else
2787 echo "$ac_err" >&5
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=no"
2793 rm -f conftest*
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2801 for ac_func in dlopen
2803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_func" >&5
2805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807 else
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 /* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $ac_func(); below. */
2813 #include <assert.h>
2814 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2817 char $ac_func();
2819 int main() {
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2825 choke me
2826 #else
2827 $ac_func();
2828 #endif
2830 ; return 0; }
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833 rm -rf conftest*
2834 eval "ac_cv_func_$ac_func=yes"
2835 else
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_func_$ac_func=no"
2841 rm -f conftest*
2844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_func 1
2850 cat >> confdefs.h <<\EOF
2851 #define HAVE_DL_API 1
2854 else
2855 echo "$ac_t""no" 1>&6
2856 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2857 echo "configure:2858: checking for dlopen in -ldl" >&5
2858 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862 ac_save_LIBS="$LIBS"
2863 LIBS="-ldl $LIBS"
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870 char dlopen();
2872 int main() {
2873 dlopen()
2874 ; return 0; }
2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2877 rm -rf conftest*
2878 eval "ac_cv_lib_$ac_lib_var=yes"
2879 else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 eval "ac_cv_lib_$ac_lib_var=no"
2885 rm -f conftest*
2886 LIBS="$ac_save_LIBS"
2889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 cat >> confdefs.h <<\EOF
2892 #define HAVE_DL_API 1
2895 LIBS="$LIBS -ldl"
2896 else
2897 echo "$ac_t""no" 1>&6
2898 LIBEXT="a"
2904 done
2906 else
2907 echo "$ac_t""no" 1>&6
2908 LIBEXT="a"
2911 done
2915 X_DLLS=""
2917 XFILES=""
2919 OPENGLFILES=""
2921 OPENGL32_DLL=""
2923 DGA_SRCS=""
2925 DGA2_SRCS=""
2927 MESA_SRCS=""
2928 if test "$have_x" = "yes"
2929 then
2930 XLIB="-lXext -lX11"
2931 ac_save_CPPFLAGS="$CPPFLAGS"
2932 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2934 for ac_hdr in X11/xpm.h
2936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_hdr" >&5
2939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 #include <$ac_hdr>
2947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2948 { (eval echo configure:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2950 if test -z "$ac_err"; then
2951 rm -rf conftest*
2952 eval "ac_cv_header_$ac_safe=yes"
2953 else
2954 echo "$ac_err" >&5
2955 echo "configure: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2957 rm -rf conftest*
2958 eval "ac_cv_header_$ac_safe=no"
2960 rm -f conftest*
2962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2963 echo "$ac_t""yes" 1>&6
2964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2965 cat >> confdefs.h <<EOF
2966 #define $ac_tr_hdr 1
2968 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2969 echo "configure:2970: checking for XpmCreatePixmapFromData in -lXpm" >&5
2970 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2973 else
2974 ac_save_LIBS="$LIBS"
2975 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
2976 $LIBS"
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2983 char XpmCreatePixmapFromData();
2985 int main() {
2986 XpmCreatePixmapFromData()
2987 ; return 0; }
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 rm -rf conftest*
2991 eval "ac_cv_lib_$ac_lib_var=yes"
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -rf conftest*
2996 eval "ac_cv_lib_$ac_lib_var=no"
2998 rm -f conftest*
2999 LIBS="$ac_save_LIBS"
3002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_LIBXXPM 1
3007 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3008 else
3009 echo "$ac_t""no" 1>&6
3013 else
3014 echo "$ac_t""no" 1>&6
3015 echo "Redhat : xpm xpm-devel"
3016 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3017 echo "SuSE : xpm"
3018 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3019 echo
3020 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3021 echo "the directory /contrib/libraries."
3022 echo
3023 exit 1
3027 done
3030 for ac_hdr in X11/Xlib.h
3032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_hdr" >&5
3035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3037 else
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3041 #include <$ac_hdr>
3043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3044 { (eval echo configure:3045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3046 if test -z "$ac_err"; then
3047 rm -rf conftest*
3048 eval "ac_cv_header_$ac_safe=yes"
3049 else
3050 echo "$ac_err" >&5
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 rm -rf conftest*
3054 eval "ac_cv_header_$ac_safe=no"
3056 rm -f conftest*
3058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3061 cat >> confdefs.h <<EOF
3062 #define $ac_tr_hdr 1
3065 for ac_hdr in X11/extensions/XShm.h
3067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3069 echo "configure:3070: checking for $ac_hdr" >&5
3070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3072 else
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 #include <$ac_hdr>
3078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3079 { (eval echo configure:3080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3081 if test -z "$ac_err"; then
3082 rm -rf conftest*
3083 eval "ac_cv_header_$ac_safe=yes"
3084 else
3085 echo "$ac_err" >&5
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088 rm -rf conftest*
3089 eval "ac_cv_header_$ac_safe=no"
3091 rm -f conftest*
3093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3096 cat >> confdefs.h <<EOF
3097 #define $ac_tr_hdr 1
3099 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3100 echo "configure:3101: checking for XShmQueryExtension in -lXext" >&5
3101 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104 else
3105 ac_save_LIBS="$LIBS"
3106 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* Override any gcc2 internal prototype to avoid an error. */
3111 /* We use char because int might match the return type of a gcc2
3112 builtin and then its argument prototype would still apply. */
3113 char XShmQueryExtension();
3115 int main() {
3116 XShmQueryExtension()
3117 ; return 0; }
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120 rm -rf conftest*
3121 eval "ac_cv_lib_$ac_lib_var=yes"
3122 else
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3125 rm -rf conftest*
3126 eval "ac_cv_lib_$ac_lib_var=no"
3128 rm -f conftest*
3129 LIBS="$ac_save_LIBS"
3132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 cat >> confdefs.h <<\EOF
3135 #define HAVE_LIBXXSHM 1
3138 else
3139 echo "$ac_t""no" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 echo "configure: warning: Xshm extension not found!!" 1>&2
3148 done
3151 for ac_hdr in X11/extensions/xf86dga.h
3153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_hdr" >&5
3156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3158 else
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <$ac_hdr>
3164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3165 { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3167 if test -z "$ac_err"; then
3168 rm -rf conftest*
3169 eval "ac_cv_header_$ac_safe=yes"
3170 else
3171 echo "$ac_err" >&5
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 rm -rf conftest*
3175 eval "ac_cv_header_$ac_safe=no"
3177 rm -f conftest*
3179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3182 cat >> confdefs.h <<EOF
3183 #define $ac_tr_hdr 1
3185 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3186 echo "configure:3187: checking for XDGAQueryExtension in -lXxf86dga" >&5
3187 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190 else
3191 ac_save_LIBS="$LIBS"
3192 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3193 $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 XDGAQueryExtension();
3202 int main() {
3203 XDGAQueryExtension()
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_LIBXXF86DGA2 1
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_LIBXXF86DGA 1
3229 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3230 DGA_SRCS='$(DGA_SRCS)'
3231 DGA2_SRCS='$(DGA2_SRCS)'
3233 else
3234 echo "$ac_t""no" 1>&6
3235 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3236 echo "configure:3237: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3237 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3240 else
3241 ac_save_LIBS="$LIBS"
3242 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3243 $LIBS"
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 /* Override any gcc2 internal prototype to avoid an error. */
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3250 char XF86DGAQueryExtension();
3252 int main() {
3253 XF86DGAQueryExtension()
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 rm -rf conftest*
3258 eval "ac_cv_lib_$ac_lib_var=yes"
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_lib_$ac_lib_var=no"
3265 rm -f conftest*
3266 LIBS="$ac_save_LIBS"
3269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3270 echo "$ac_t""yes" 1>&6
3271 cat >> confdefs.h <<\EOF
3272 #define HAVE_LIBXXF86DGA 1
3275 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3276 DGA_SRCS='$(DGA_SRCS)'
3278 else
3279 echo "$ac_t""no" 1>&6
3286 else
3287 echo "$ac_t""no" 1>&6
3288 echo "configure: warning: DGA extension not found!!" 1>&2
3291 done
3294 for ac_hdr in X11/extensions/xf86vmode.h
3296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_hdr" >&5
3299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3301 else
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <$ac_hdr>
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3311 rm -rf conftest*
3312 eval "ac_cv_header_$ac_safe=yes"
3313 else
3314 echo "$ac_err" >&5
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 rm -rf conftest*
3318 eval "ac_cv_header_$ac_safe=no"
3320 rm -f conftest*
3322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_hdr 1
3328 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3329 echo "configure:3330: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3330 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3333 else
3334 ac_save_LIBS="$LIBS"
3335 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3336 $LIBS"
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3343 char XF86VidModeQueryExtension();
3345 int main() {
3346 XF86VidModeQueryExtension()
3347 ; return 0; }
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3350 rm -rf conftest*
3351 eval "ac_cv_lib_$ac_lib_var=yes"
3352 else
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 rm -rf conftest*
3356 eval "ac_cv_lib_$ac_lib_var=no"
3358 rm -f conftest*
3359 LIBS="$ac_save_LIBS"
3362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 cat >> confdefs.h <<\EOF
3365 #define HAVE_LIBXXF86VM 1
3368 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3370 else
3371 echo "$ac_t""no" 1>&6
3375 else
3376 echo "$ac_t""no" 1>&6
3377 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3380 done
3384 else
3385 echo "$ac_t""no" 1>&6
3387 done
3389 if test $OPENGL = "yes" -o $OPENGL = "normal"
3390 then
3391 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_hdr" >&5
3396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398 else
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <$ac_hdr>
3404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3405 { (eval echo configure:3406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3407 if test -z "$ac_err"; then
3408 rm -rf conftest*
3409 eval "ac_cv_header_$ac_safe=yes"
3410 else
3411 echo "$ac_err" >&5
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 eval "ac_cv_header_$ac_safe=no"
3417 rm -f conftest*
3419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3422 cat >> confdefs.h <<EOF
3423 #define $ac_tr_hdr 1
3426 else
3427 echo "$ac_t""no" 1>&6
3429 done
3431 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" -a "$ac_cv_header_GL_glext_h" = "yes"
3432 then
3433 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3434 echo "configure:3435: checking "for up-to-date OpenGL version"" >&5
3435 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3437 else
3438 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 #include <GL/gl.h>
3442 int main() {
3443 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3444 ; return 0; }
3446 if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 rm -rf conftest*
3448 wine_cv_opengl_version_OK="yes"
3449 else
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 rm -rf conftest*
3453 wine_cv_opengl_version_OK="no"
3456 rm -f conftest*
3460 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3462 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3463 echo "configure:3464: checking "for thread-safe OpenGL version"" >&5
3464 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466 else
3467 saved_libs=$LIBS
3468 LIBS="$X_LIBS -lGL"
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3473 int main() {
3474 pthread_getspecific();
3475 ; return 0; }
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 rm -rf conftest*
3479 wine_cv_opengl_version_threadsafe="yes"
3480 else
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 rm -rf conftest*
3484 wine_cv_opengl_version_threadsafe="no"
3486 rm -f conftest*
3487 LIBS=$saved_libs
3491 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3493 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3494 then
3495 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3496 echo "configure:3497: checking for glXCreateContext in -lGL" >&5
3497 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 ac_save_LIBS="$LIBS"
3502 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3509 char glXCreateContext();
3511 int main() {
3512 glXCreateContext()
3513 ; return 0; }
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 rm -rf conftest*
3517 eval "ac_cv_lib_$ac_lib_var=yes"
3518 else
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3521 rm -rf conftest*
3522 eval "ac_cv_lib_$ac_lib_var=no"
3524 rm -f conftest*
3525 LIBS="$ac_save_LIBS"
3528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3531 MESA_SRCS='$(MESA_SRCS)'
3533 else
3534 echo "$ac_t""no" 1>&6
3538 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3539 then
3540 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3541 echo "configure:3542: checking "for the OpenGL Color Index extension"" >&5
3542 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3544 else
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 #include <GL/gl.h>
3549 int main() {
3550 GLenum test = GL_COLOR_INDEX8_EXT;
3551 ; return 0; }
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 rm -rf conftest*
3555 cat >> confdefs.h <<\EOF
3556 #define HAVE_GL_COLOR_TABLE 1
3559 else
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 rm -f conftest*
3566 echo "$ac_t""$dummy" 1>&6
3568 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3569 echo "configure:3570: checking for glColorTableEXT in -lGL" >&5
3570 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574 ac_save_LIBS="$LIBS"
3575 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582 char glColorTableEXT();
3584 int main() {
3585 glColorTableEXT()
3586 ; return 0; }
3588 if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3589 rm -rf conftest*
3590 eval "ac_cv_lib_$ac_lib_var=yes"
3591 else
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 eval "ac_cv_lib_$ac_lib_var=no"
3597 rm -f conftest*
3598 LIBS="$ac_save_LIBS"
3601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3603 cat >> confdefs.h <<\EOF
3604 #define HAVE_GL_PALETTED_TEXTURE 1
3607 else
3608 echo "$ac_t""no" 1>&6
3611 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3612 echo "configure:3613: checking for glXGetProcAddressARB in -lGL" >&5
3613 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 ac_save_LIBS="$LIBS"
3618 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* Override any gcc2 internal prototype to avoid an error. */
3623 /* We use char because int might match the return type of a gcc2
3624 builtin and then its argument prototype would still apply. */
3625 char glXGetProcAddressARB();
3627 int main() {
3628 glXGetProcAddressARB()
3629 ; return 0; }
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3632 rm -rf conftest*
3633 eval "ac_cv_lib_$ac_lib_var=yes"
3634 else
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 rm -rf conftest*
3638 eval "ac_cv_lib_$ac_lib_var=no"
3640 rm -f conftest*
3641 LIBS="$ac_save_LIBS"
3644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 cat >> confdefs.h <<\EOF
3647 #define HAVE_GLX_GETPROCADDRESS 1
3650 else
3651 echo "$ac_t""no" 1>&6
3655 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3656 then
3657 cat >> confdefs.h <<\EOF
3658 #define HAVE_OPENGL 1
3661 OPENGL32_DLL=opengl32
3662 OPENGLFILES='$(OPENGLFILES)'
3669 CPPFLAGS="$ac_save_CPPFLAGS"
3670 X_DLLS='$(X_DLLS)'
3671 XFILES='$(XFILES)'
3672 else
3673 XLIB=""
3674 X_CFLAGS=""
3675 X_LIBS=""
3678 if test "$CURSES" = "yes"
3679 then
3680 for ac_hdr in ncurses.h
3682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_hdr" >&5
3685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687 else
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <$ac_hdr>
3693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3694 { (eval echo configure:3695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3696 if test -z "$ac_err"; then
3697 rm -rf conftest*
3698 eval "ac_cv_header_$ac_safe=yes"
3699 else
3700 echo "$ac_err" >&5
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 rm -rf conftest*
3704 eval "ac_cv_header_$ac_safe=no"
3706 rm -f conftest*
3708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3711 cat >> confdefs.h <<EOF
3712 #define $ac_tr_hdr 1
3715 else
3716 echo "$ac_t""no" 1>&6
3718 done
3720 if test "$ac_cv_header_ncurses_h" = "yes"
3721 then
3722 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3723 echo "configure:3724: checking for waddch in -lncurses" >&5
3724 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3727 else
3728 ac_save_LIBS="$LIBS"
3729 LIBS="-lncurses $LIBS"
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736 char waddch();
3738 int main() {
3739 waddch()
3740 ; return 0; }
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 rm -rf conftest*
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3745 else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=no"
3751 rm -f conftest*
3752 LIBS="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_lib 1
3763 LIBS="-lncurses $LIBS"
3765 else
3766 echo "$ac_t""no" 1>&6
3770 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3771 then
3772 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3773 echo "configure:3774: checking for resizeterm in -lncurses" >&5
3774 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 ac_save_LIBS="$LIBS"
3779 LIBS="-lncurses $LIBS"
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3786 char resizeterm();
3788 int main() {
3789 resizeterm()
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 rm -rf conftest*
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 eval "ac_cv_lib_$ac_lib_var=no"
3801 rm -f conftest*
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 cat >> confdefs.h <<\EOF
3808 #define HAVE_RESIZETERM 1
3811 else
3812 echo "$ac_t""no" 1>&6
3815 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3816 echo "configure:3817: checking for getbkgd in -lncurses" >&5
3817 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820 else
3821 ac_save_LIBS="$LIBS"
3822 LIBS="-lncurses $LIBS"
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829 char getbkgd();
3831 int main() {
3832 getbkgd()
3833 ; return 0; }
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836 rm -rf conftest*
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3838 else
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 rm -rf conftest*
3842 eval "ac_cv_lib_$ac_lib_var=no"
3844 rm -f conftest*
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 cat >> confdefs.h <<\EOF
3851 #define HAVE_GETBKGD 1
3854 else
3855 echo "$ac_t""no" 1>&6
3858 else
3859 for ac_hdr in curses.h
3861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3863 echo "configure:3864: checking for $ac_hdr" >&5
3864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866 else
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 #include <$ac_hdr>
3872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3873 { (eval echo configure:3874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3875 if test -z "$ac_err"; then
3876 rm -rf conftest*
3877 eval "ac_cv_header_$ac_safe=yes"
3878 else
3879 echo "$ac_err" >&5
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -rf conftest*
3883 eval "ac_cv_header_$ac_safe=no"
3885 rm -f conftest*
3887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3890 cat >> confdefs.h <<EOF
3891 #define $ac_tr_hdr 1
3894 else
3895 echo "$ac_t""no" 1>&6
3897 done
3899 if test "$ac_cv_header_curses_h" = "yes"
3900 then
3901 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3902 echo "configure:3903: checking for waddch in -lcurses" >&5
3903 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3907 ac_save_LIBS="$LIBS"
3908 LIBS="-lcurses $LIBS"
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char waddch();
3917 int main() {
3918 waddch()
3919 ; return 0; }
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 rm -rf conftest*
3923 eval "ac_cv_lib_$ac_lib_var=yes"
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 eval "ac_cv_lib_$ac_lib_var=no"
3930 rm -f conftest*
3931 LIBS="$ac_save_LIBS"
3934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3938 cat >> confdefs.h <<EOF
3939 #define $ac_tr_lib 1
3942 LIBS="-lcurses $LIBS"
3944 else
3945 echo "$ac_t""no" 1>&6
3948 if test "$ac_cv_lib_curses_waddch" = "yes"
3949 then
3950 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3951 echo "configure:3952: checking for resizeterm in -lcurses" >&5
3952 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3955 else
3956 ac_save_LIBS="$LIBS"
3957 LIBS="-lcurses $LIBS"
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964 char resizeterm();
3966 int main() {
3967 resizeterm()
3968 ; return 0; }
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971 rm -rf conftest*
3972 eval "ac_cv_lib_$ac_lib_var=yes"
3973 else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 eval "ac_cv_lib_$ac_lib_var=no"
3979 rm -f conftest*
3980 LIBS="$ac_save_LIBS"
3983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_RESIZETERM 1
3989 else
3990 echo "$ac_t""no" 1>&6
3993 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3994 echo "configure:3995: checking for getbkgd in -lcurses" >&5
3995 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999 ac_save_LIBS="$LIBS"
4000 LIBS="-lcurses $LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4007 char getbkgd();
4009 int main() {
4010 getbkgd()
4011 ; return 0; }
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4014 rm -rf conftest*
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4016 else
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4019 rm -rf conftest*
4020 eval "ac_cv_lib_$ac_lib_var=no"
4022 rm -f conftest*
4023 LIBS="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 cat >> confdefs.h <<\EOF
4029 #define HAVE_GETBKGD 1
4032 else
4033 echo "$ac_t""no" 1>&6
4041 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4042 echo "configure:4043: checking "for GNU style IPX support"" >&5
4043 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4045 else
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4049 #include <sys/socket.h>
4050 #include <netipx/ipx.h>
4051 int main() {
4052 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 rm -rf conftest*
4057 ac_cv_c_ipx_gnu="yes"
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 ac_cv_c_ipx_gnu="no"
4064 rm -f conftest*
4068 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4069 if test "$ac_cv_c_ipx_gnu" = "yes"
4070 then
4071 cat >> confdefs.h <<\EOF
4072 #define HAVE_IPX_GNU 1
4077 if test "$ac_cv_c_ipx_gnu" = "no"
4078 then
4079 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4080 echo "configure:4081: checking "for linux style IPX support"" >&5
4081 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 #include <sys/socket.h>
4088 #include <asm/types.h>
4089 #include <linux/ipx.h>
4090 int main() {
4091 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4092 ; return 0; }
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 rm -rf conftest*
4096 ac_cv_c_ipx_linux="yes"
4097 else
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4100 rm -rf conftest*
4101 ac_cv_c_ipx_linux="no"
4103 rm -f conftest*
4107 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4108 if test "$ac_cv_c_ipx_linux" = "yes"
4109 then
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_IPX_LINUX 1
4117 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_hdr" >&5
4122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4124 else
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 #include <$ac_hdr>
4130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4131 { (eval echo configure:4132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4133 if test -z "$ac_err"; then
4134 rm -rf conftest*
4135 eval "ac_cv_header_$ac_safe=yes"
4136 else
4137 echo "$ac_err" >&5
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 rm -rf conftest*
4141 eval "ac_cv_header_$ac_safe=no"
4143 rm -f conftest*
4145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4146 echo "$ac_t""yes" 1>&6
4147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4148 cat >> confdefs.h <<EOF
4149 #define $ac_tr_hdr 1
4151 break
4152 else
4153 echo "$ac_t""no" 1>&6
4155 done
4158 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4159 echo "configure:4160: checking "for Open Sound System"" >&5
4160 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4167 #if defined(HAVE_SYS_SOUNDCARD_H)
4168 #include <sys/soundcard.h>
4169 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4170 #include <machine/soundcard.h>
4171 #elif defined(HAVE_SOUNDCARD_H)
4172 #include <soundcard.h>
4173 #endif
4175 int main() {
4178 /* check for one of the Open Sound System specific SNDCTL_ defines */
4179 #if !defined(SNDCTL_DSP_STEREO)
4180 #error No open sound system
4181 #endif
4183 ; return 0; }
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4186 rm -rf conftest*
4187 ac_cv_c_opensoundsystem="yes"
4188 else
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 rm -rf conftest*
4192 ac_cv_c_opensoundsystem="no"
4194 rm -f conftest*
4197 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4199 if test "$ac_cv_c_opensoundsystem" = "yes"
4200 then
4201 cat >> confdefs.h <<\EOF
4202 #define HAVE_OSS 1
4207 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4208 echo "configure:4209: checking "for Open Sound System/MIDI interface"" >&5
4209 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4216 #if defined(HAVE_SYS_SOUNDCARD_H)
4217 #include <sys/soundcard.h>
4218 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4219 #include <machine/soundcard.h>
4220 #elif defined(HAVE_SOUNDCARD_H)
4221 #include <soundcard.h>
4222 #endif
4224 int main() {
4227 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4228 #if !defined(SNDCTL_SEQ_SYNC)
4229 #error No open sound system MIDI interface
4230 #endif
4232 ; return 0; }
4234 if { (eval echo configure:4235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 rm -rf conftest*
4236 ac_cv_c_opensoundsystem_midi="yes"
4237 else
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4240 rm -rf conftest*
4241 ac_cv_c_opensoundsystem_midi="no"
4243 rm -f conftest*
4246 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4248 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4249 then
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_OSS_MIDI 1
4256 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4259 if test "x${GCC}" = "xyes"
4260 then
4261 CFLAGS="$CFLAGS -Wall"
4262 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4263 echo "configure:4264: checking "for gcc strength-reduce bug"" >&5
4264 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4267 if test "$cross_compiling" = yes; then
4268 ac_cv_c_gcc_strength_bug="yes"
4269 else
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4274 int main(void) {
4275 static int Array[3];
4276 unsigned int B = 3;
4277 int i;
4278 for(i=0; i<B; i++) Array[i] = i - 3;
4279 exit( Array[1] != -2 );
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4283 then
4284 ac_cv_c_gcc_strength_bug="no"
4285 else
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4288 rm -fr conftest*
4289 ac_cv_c_gcc_strength_bug="yes"
4291 rm -fr conftest*
4296 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4297 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4298 then
4299 CFLAGS="$CFLAGS -fno-strength-reduce"
4304 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4305 echo "configure:4306: checking "whether external symbols need an underscore prefix"" >&5
4306 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4308 else
4309 saved_libs=$LIBS
4310 LIBS="conftest_asm.s $LIBS"
4311 cat > conftest_asm.s <<EOF
4312 .globl _ac_test
4313 _ac_test:
4314 .long 0
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 extern int ac_test;
4320 int main() {
4321 if (ac_test) return 1
4322 ; return 0; }
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 rm -rf conftest*
4326 ac_cv_c_extern_prefix="yes"
4327 else
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4330 rm -rf conftest*
4331 ac_cv_c_extern_prefix="no"
4333 rm -f conftest*
4334 LIBS=$saved_libs
4337 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4338 if test "$ac_cv_c_extern_prefix" = "yes"
4339 then
4340 cat >> confdefs.h <<\EOF
4341 #define NEED_UNDERSCORE_PREFIX 1
4347 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4348 echo "configure:4349: checking "whether assembler accepts .string"" >&5
4349 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 saved_libs=$LIBS
4353 LIBS="conftest_asm.s $LIBS"
4354 cat > conftest_asm.s <<EOF
4355 .string "test"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4361 int main() {
4363 ; return 0; }
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 rm -rf conftest*
4367 ac_cv_c_asm_string="yes"
4368 else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -rf conftest*
4372 ac_cv_c_asm_string="no"
4374 rm -f conftest*
4375 LIBS=$saved_libs
4378 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4379 if test "$ac_cv_c_asm_string" = "yes"
4380 then
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_ASM_STRING 1
4388 LDSHARED=""
4389 if test "$LIBEXT" = "so"
4390 then
4391 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4392 echo "configure:4393: checking "whether we can build a Linux dll"" >&5
4393 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4395 else
4396 saved_cflags=$CFLAGS
4397 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4402 int main() {
4403 return 1
4404 ; return 0; }
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4407 rm -rf conftest*
4408 ac_cv_c_dll_linux="yes"
4409 else
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4412 rm -rf conftest*
4413 ac_cv_c_dll_linux="no"
4415 rm -f conftest*
4416 CFLAGS=$saved_cflags
4420 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4421 if test "$ac_cv_c_dll_linux" = "yes"
4422 then
4423 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4424 else
4425 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4426 echo "configure:4427: checking whether we can build a UnixWare (Solaris) dll" >&5
4427 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4429 else
4430 saved_cflags=$CFLAGS
4431 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4436 int main() {
4437 return 1
4438 ; return 0; }
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 rm -rf conftest*
4442 ac_cv_c_dll_unixware="yes"
4443 else
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4446 rm -rf conftest*
4447 ac_cv_c_dll_unixware="no"
4449 rm -f conftest*
4450 CFLAGS=$saved_cflags
4454 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4455 if test "$ac_cv_c_dll_unixware" = "yes"
4456 then
4457 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4458 else
4459 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4460 echo "configure:4461: checking "whether we can build a NetBSD dll"" >&5
4461 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4463 else
4464 saved_cflags=$CFLAGS
4465 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4470 int main() {
4471 return 1
4472 ; return 0; }
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 rm -rf conftest*
4476 ac_cv_c_dll_netbsd="yes"
4477 else
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4480 rm -rf conftest*
4481 ac_cv_c_dll_netbsd="no"
4483 rm -f conftest*
4484 CFLAGS=$saved_cflags
4488 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4489 if test "$ac_cv_c_dll_netbsd" = "yes"
4490 then
4491 LDSHARED="ld -Bshareable -Bforcearchive"
4495 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4496 then
4497 LIBEXT="a"
4501 DLLFLAGS=""
4502 BUILDFLAGS=""
4504 if test "$LIBEXT" = "so"; then
4505 BUILDFLAGS="-pic"
4506 DLLFLAGS="-fPIC"
4507 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4508 else
4509 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4510 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4511 echo "configure:4512: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4512 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4514 else
4515 saved_cflags=$CFLAGS
4516 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
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_whole_archive="yes"
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 ac_cv_c_whole_archive="no"
4534 rm -f conftest*
4535 CFLAGS=$saved_cflags
4539 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4540 if test "$ac_cv_c_whole_archive" = "yes"
4541 then
4542 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4543 else
4544 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4545 echo "configure:4546: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4546 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4548 else
4549 saved_cflags=$CFLAGS
4550 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4551 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4555 int main() {
4556 return 1
4557 ; return 0; }
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4560 rm -rf conftest*
4561 ac_cv_c_allextract="yes"
4562 else
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 rm -rf conftest*
4566 ac_cv_c_allextract="no"
4568 rm -f conftest*
4569 CFLAGS=$saved_cflags
4573 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4574 if test "$ac_cv_c_allextract" = "yes"
4575 then
4576 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4588 wine_cv_libc_reentrant=no
4589 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4590 echo "configure:4591: checking "for reentrant libc: __errno_location"" >&5
4591 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593 else
4594 if test "$cross_compiling" = yes; then
4595 wine_cv_libc_r__errno_location=yes
4596 else
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 int myerrno = 0;
4601 char buf[256];
4602 int *__errno_location(){return &myerrno;}
4603 main(){connect(0,buf,255); exit(!myerrno);}
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4606 then
4607 wine_cv_libc_r__errno_location=yes
4608 else
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 rm -fr conftest*
4612 wine_cv_libc_r__errno_location=no
4614 rm -fr conftest*
4620 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4621 if test "$wine_cv_libc_r__errno_location" = "yes"
4622 then
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE__ERRNO_LOCATION 1
4627 wine_cv_libc_reentrant=__errno_location
4629 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4630 echo "configure:4631: checking "for reentrant libc: __error"" >&5
4631 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4633 else
4634 if test "$cross_compiling" = yes; then
4635 wine_cv_libc_r__error=yes
4636 else
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 int myerrno = 0;
4641 char buf[256];
4642 int *__error(){return &myerrno;}
4643 main(){connect(0,buf,255); exit(!myerrno);}
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4646 then
4647 wine_cv_libc_r__error=yes
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -fr conftest*
4652 wine_cv_libc_r__error=no
4654 rm -fr conftest*
4660 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4661 if test "$wine_cv_libc_r__error" = "yes"
4662 then
4663 cat >> confdefs.h <<\EOF
4664 #define HAVE__ERROR 1
4667 wine_cv_libc_reentrant=__error
4669 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4670 echo "configure:4671: checking "for reentrant libc: ___errno"" >&5
4671 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674 if test "$cross_compiling" = yes; then
4675 wine_cv_libc_r___errno=yes
4676 else
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 int myerrno = 0;
4681 char buf[256];
4682 int *___errno(){return &myerrno;}
4683 main(){connect(0,buf,255); exit(!myerrno);}
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4686 then
4687 wine_cv_libc_r___errno=yes
4688 else
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 rm -fr conftest*
4692 wine_cv_libc_r___errno=no
4694 rm -fr conftest*
4700 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4701 if test "$wine_cv_libc_r___errno" = "yes"
4702 then
4703 cat >> confdefs.h <<\EOF
4704 #define HAVE___ERRNO 1
4707 wine_cv_libc_reentrant=___errno
4709 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4710 echo "configure:4711: checking "for reentrant libc: __thr_errno"" >&5
4711 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4713 else
4714 if test "$cross_compiling" = yes; then
4715 wine_cv_libc_r__thr_errno=yes
4716 else
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 int myerrno = 0;
4721 char buf[256];
4722 int *__thr_errno(){return &myerrno;}
4723 main(){connect(0,buf,255); exit(!myerrno);}
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4726 then
4727 wine_cv_libc_r__thr_errno=yes
4728 else
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 rm -fr conftest*
4732 wine_cv_libc_r__thr_errno=no
4734 rm -fr conftest*
4740 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4741 if test "$wine_cv_libc_r__thr_errno" = "yes"
4742 then
4743 cat >> confdefs.h <<\EOF
4744 #define HAVE__THR_ERRNO 1
4747 wine_cv_libc_reentrant=__thr_errno
4749 if test "$wine_cv_libc_reentrant" = "no"
4750 then
4751 cat >> confdefs.h <<\EOF
4752 #define NO_REENTRANT_LIBC 1
4758 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4759 then
4760 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4761 echo "configure:4762: checking "for reentrant X libraries"" >&5
4762 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4764 else
4765 if test "x$with_reentrant_x" = "xno"
4766 then
4767 wine_cv_x_reentrant=no
4768 else
4769 libX11_check=none
4770 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4771 if test -r $dir/libX11.so; then
4772 libX11_check="-D $dir/libX11.so"
4773 break 1
4775 if test -r $dir/libX11.a; then
4776 libX11_check="$dir/libX11.a"
4777 break 1
4779 done
4780 if test "$libX11_check" != "none"; then
4781 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4782 then
4783 wine_cv_x_reentrant=yes
4784 else
4785 wine_cv_x_reentrant=no
4787 else
4788 wine_cv_x_reentrant=unknown
4793 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4794 else
4795 wine_cv_x_reentrant=no
4797 if test "$wine_cv_x_reentrant" = "no"
4798 then
4799 cat >> confdefs.h <<\EOF
4800 #define NO_REENTRANT_X11 1
4806 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4807 echo "configure:4808: checking whether byte ordering is bigendian" >&5
4808 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4810 else
4811 ac_cv_c_bigendian=unknown
4812 # See if sys/param.h defines the BYTE_ORDER macro.
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817 #include <sys/param.h>
4818 int main() {
4820 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4821 bogus endian macros
4822 #endif
4823 ; return 0; }
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4826 rm -rf conftest*
4827 # It does; now see whether it defined to BIG_ENDIAN or not.
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 #include <sys/types.h>
4832 #include <sys/param.h>
4833 int main() {
4835 #if BYTE_ORDER != BIG_ENDIAN
4836 not big endian
4837 #endif
4838 ; return 0; }
4840 if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 rm -rf conftest*
4842 ac_cv_c_bigendian=yes
4843 else
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4846 rm -rf conftest*
4847 ac_cv_c_bigendian=no
4849 rm -f conftest*
4850 else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4854 rm -f conftest*
4855 if test $ac_cv_c_bigendian = unknown; then
4856 if test "$cross_compiling" = yes; then
4857 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4858 else
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 main () {
4863 /* Are we little or big endian? From Harbison&Steele. */
4864 union
4866 long l;
4867 char c[sizeof (long)];
4868 } u;
4869 u.l = 1;
4870 exit (u.c[sizeof (long) - 1] == 1);
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4874 then
4875 ac_cv_c_bigendian=no
4876 else
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 rm -fr conftest*
4880 ac_cv_c_bigendian=yes
4882 rm -fr conftest*
4888 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4889 if test $ac_cv_c_bigendian = yes; then
4890 cat >> confdefs.h <<\EOF
4891 #define WORDS_BIGENDIAN 1
4898 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4899 # for constant arguments. Useless!
4900 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4901 echo "configure:4902: checking for working alloca.h" >&5
4902 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 #include <alloca.h>
4909 int main() {
4910 void *p = alloca(2 * sizeof(int));
4911 ; return 0; }
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 rm -rf conftest*
4915 ac_cv_header_alloca_h=yes
4916 else
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 rm -rf conftest*
4920 ac_cv_header_alloca_h=no
4922 rm -f conftest*
4925 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4926 if test $ac_cv_header_alloca_h = yes; then
4927 cat >> confdefs.h <<\EOF
4928 #define HAVE_ALLOCA_H 1
4933 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4934 echo "configure:4935: checking for alloca" >&5
4935 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4937 else
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4942 #ifdef __GNUC__
4943 # define alloca __builtin_alloca
4944 #else
4945 # ifdef _MSC_VER
4946 # include <malloc.h>
4947 # define alloca _alloca
4948 # else
4949 # if HAVE_ALLOCA_H
4950 # include <alloca.h>
4951 # else
4952 # ifdef _AIX
4953 #pragma alloca
4954 # else
4955 # ifndef alloca /* predefined by HP cc +Olibcalls */
4956 char *alloca ();
4957 # endif
4958 # endif
4959 # endif
4960 # endif
4961 #endif
4963 int main() {
4964 char *p = (char *) alloca(1);
4965 ; return 0; }
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 rm -rf conftest*
4969 ac_cv_func_alloca_works=yes
4970 else
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4973 rm -rf conftest*
4974 ac_cv_func_alloca_works=no
4976 rm -f conftest*
4979 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4980 if test $ac_cv_func_alloca_works = yes; then
4981 cat >> confdefs.h <<\EOF
4982 #define HAVE_ALLOCA 1
4987 if test $ac_cv_func_alloca_works = no; then
4988 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4989 # that cause trouble. Some versions do not even contain alloca or
4990 # contain a buggy version. If you still want to use their alloca,
4991 # use ar to extract alloca.o from them instead of compiling alloca.c.
4992 ALLOCA=alloca.${ac_objext}
4993 cat >> confdefs.h <<\EOF
4994 #define C_ALLOCA 1
4998 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4999 echo "configure:5000: checking whether alloca needs Cray hooks" >&5
5000 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5002 else
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5006 #if defined(CRAY) && ! defined(CRAY2)
5007 webecray
5008 #else
5009 wenotbecray
5010 #endif
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 egrep "webecray" >/dev/null 2>&1; then
5015 rm -rf conftest*
5016 ac_cv_os_cray=yes
5017 else
5018 rm -rf conftest*
5019 ac_cv_os_cray=no
5021 rm -f conftest*
5025 echo "$ac_t""$ac_cv_os_cray" 1>&6
5026 if test $ac_cv_os_cray = yes; then
5027 for ac_func in _getb67 GETB67 getb67; do
5028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5029 echo "configure:5030: checking for $ac_func" >&5
5030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5032 else
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* System header to define __stub macros and hopefully few prototypes,
5037 which can conflict with char $ac_func(); below. */
5038 #include <assert.h>
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042 char $ac_func();
5044 int main() {
5046 /* The GNU C library defines this for functions which it implements
5047 to always fail with ENOSYS. Some functions are actually named
5048 something starting with __ and the normal name is an alias. */
5049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5050 choke me
5051 #else
5052 $ac_func();
5053 #endif
5055 ; return 0; }
5057 if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058 rm -rf conftest*
5059 eval "ac_cv_func_$ac_func=yes"
5060 else
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 rm -rf conftest*
5064 eval "ac_cv_func_$ac_func=no"
5066 rm -f conftest*
5069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5070 echo "$ac_t""yes" 1>&6
5071 cat >> confdefs.h <<EOF
5072 #define CRAY_STACKSEG_END $ac_func
5075 break
5076 else
5077 echo "$ac_t""no" 1>&6
5080 done
5083 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5084 echo "configure:5085: checking stack direction for C alloca" >&5
5085 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5087 else
5088 if test "$cross_compiling" = yes; then
5089 ac_cv_c_stack_direction=0
5090 else
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 find_stack_direction ()
5096 static char *addr = 0;
5097 auto char dummy;
5098 if (addr == 0)
5100 addr = &dummy;
5101 return find_stack_direction ();
5103 else
5104 return (&dummy > addr) ? 1 : -1;
5106 main ()
5108 exit (find_stack_direction() < 0);
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5112 then
5113 ac_cv_c_stack_direction=1
5114 else
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5117 rm -fr conftest*
5118 ac_cv_c_stack_direction=-1
5120 rm -fr conftest*
5125 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5126 cat >> confdefs.h <<EOF
5127 #define STACK_DIRECTION $ac_cv_c_stack_direction
5132 for ac_func in \
5133 __libc_fork \
5134 _lwp_create \
5135 clone \
5136 getnetbyaddr \
5137 getnetbyname \
5138 getpagesize \
5139 getprotobyname \
5140 getprotobynumber \
5141 getservbyport \
5142 getsockopt \
5143 inet_network \
5144 memmove \
5145 rfork \
5146 select \
5147 sendmsg \
5148 settimeofday \
5149 sigaltstack \
5150 statfs \
5151 strcasecmp \
5152 strerror \
5153 strncasecmp \
5154 tcgetattr \
5155 timegm \
5156 usleep \
5157 vfscanf \
5158 wait4 \
5159 waitpid \
5162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5163 echo "configure:5164: checking for $ac_func" >&5
5164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5166 else
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* System header to define __stub macros and hopefully few prototypes,
5171 which can conflict with char $ac_func(); below. */
5172 #include <assert.h>
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char $ac_func();
5178 int main() {
5180 /* The GNU C library defines this for functions which it implements
5181 to always fail with ENOSYS. Some functions are actually named
5182 something starting with __ and the normal name is an alias. */
5183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5184 choke me
5185 #else
5186 $ac_func();
5187 #endif
5189 ; return 0; }
5191 if { (eval echo configure:5192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5192 rm -rf conftest*
5193 eval "ac_cv_func_$ac_func=yes"
5194 else
5195 echo "configure: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 rm -rf conftest*
5198 eval "ac_cv_func_$ac_func=no"
5200 rm -f conftest*
5203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5206 cat >> confdefs.h <<EOF
5207 #define $ac_tr_func 1
5210 else
5211 echo "$ac_t""no" 1>&6
5213 done
5217 for ac_hdr in \
5218 a.out.h \
5219 a_out.h \
5220 arpa/inet.h \
5221 arpa/nameser.h \
5222 elf.h \
5223 float.h \
5224 libio.h \
5225 link.h \
5226 linux/cdrom.h \
5227 linux/joystick.h \
5228 linux/ucdrom.h \
5229 net/if.h \
5230 netinet/in.h \
5231 netinet/tcp.h \
5232 pty.h \
5233 resolv.h \
5234 sched.h \
5235 socket.h \
5236 strings.h \
5237 sys/cdio.h \
5238 sys/errno.h \
5239 sys/file.h \
5240 sys/filio.h \
5241 sys/ipc.h \
5242 sys/lwp.h \
5243 sys/mman.h \
5244 sys/modem.h \
5245 sys/mount.h \
5246 sys/msg.h \
5247 sys/param.h \
5248 sys/reg.h \
5249 sys/signal.h \
5250 sys/shm.h \
5251 sys/socket.h \
5252 sys/sockio.h \
5253 sys/statfs.h \
5254 sys/strtio.h \
5255 sys/syscall.h \
5256 sys/wait.h \
5257 sys/v86.h \
5258 sys/v86intr.h \
5259 sys/vfs.h \
5260 sys/vm86.h \
5261 syscall.h \
5262 ucontext.h \
5263 wctype.h \
5266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5268 echo "configure:5269: checking for $ac_hdr" >&5
5269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5271 else
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5275 #include <$ac_hdr>
5277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5278 { (eval echo configure:5279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5280 if test -z "$ac_err"; then
5281 rm -rf conftest*
5282 eval "ac_cv_header_$ac_safe=yes"
5283 else
5284 echo "$ac_err" >&5
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 rm -rf conftest*
5288 eval "ac_cv_header_$ac_safe=no"
5290 rm -f conftest*
5292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5295 cat >> confdefs.h <<EOF
5296 #define $ac_tr_hdr 1
5299 else
5300 echo "$ac_t""no" 1>&6
5302 done
5304 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5305 echo "configure:5306: checking whether stat file-mode macros are broken" >&5
5306 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5308 else
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5312 #include <sys/types.h>
5313 #include <sys/stat.h>
5315 #if defined(S_ISBLK) && defined(S_IFDIR)
5316 # if S_ISBLK (S_IFDIR)
5317 You lose.
5318 # endif
5319 #endif
5321 #if defined(S_ISBLK) && defined(S_IFCHR)
5322 # if S_ISBLK (S_IFCHR)
5323 You lose.
5324 # endif
5325 #endif
5327 #if defined(S_ISLNK) && defined(S_IFREG)
5328 # if S_ISLNK (S_IFREG)
5329 You lose.
5330 # endif
5331 #endif
5333 #if defined(S_ISSOCK) && defined(S_IFREG)
5334 # if S_ISSOCK (S_IFREG)
5335 You lose.
5336 # endif
5337 #endif
5340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341 egrep "You lose" >/dev/null 2>&1; then
5342 rm -rf conftest*
5343 ac_cv_header_stat_broken=yes
5344 else
5345 rm -rf conftest*
5346 ac_cv_header_stat_broken=no
5348 rm -f conftest*
5352 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5353 if test $ac_cv_header_stat_broken = yes; then
5354 cat >> confdefs.h <<\EOF
5355 #define STAT_MACROS_BROKEN 1
5362 echo $ac_n "checking for working const""... $ac_c" 1>&6
5363 echo "configure:5364: checking for working const" >&5
5364 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5366 else
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5371 int main() {
5373 /* Ultrix mips cc rejects this. */
5374 typedef int charset[2]; const charset x = {0,0};
5375 /* SunOS 4.1.1 cc rejects this. */
5376 char const *const *ccp;
5377 char **p;
5378 /* NEC SVR4.0.2 mips cc rejects this. */
5379 struct point {int x, y;};
5380 static struct point const zero = {0,0};
5381 /* AIX XL C 1.02.0.0 rejects this.
5382 It does not let you subtract one const X* pointer from another in an arm
5383 of an if-expression whose if-part is not a constant expression */
5384 const char *g = "string";
5385 ccp = &g + (g ? g-g : 0);
5386 /* HPUX 7.0 cc rejects these. */
5387 ++ccp;
5388 p = (char**) ccp;
5389 ccp = (char const *const *) p;
5390 { /* SCO 3.2v4 cc rejects this. */
5391 char *t;
5392 char const *s = 0 ? (char *) 0 : (char const *) 0;
5394 *t++ = 0;
5396 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5397 int x[] = {25, 17};
5398 const int *foo = &x[0];
5399 ++foo;
5401 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5402 typedef const int *iptr;
5403 iptr p = 0;
5404 ++p;
5406 { /* AIX XL C 1.02.0.0 rejects this saying
5407 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5408 struct s { int j; const int *ap[3]; };
5409 struct s *b; b->j = 5;
5411 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5412 const int foo = 10;
5415 ; return 0; }
5417 if { (eval echo configure:5418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 rm -rf conftest*
5419 ac_cv_c_const=yes
5420 else
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5423 rm -rf conftest*
5424 ac_cv_c_const=no
5426 rm -f conftest*
5429 echo "$ac_t""$ac_cv_c_const" 1>&6
5430 if test $ac_cv_c_const = no; then
5431 cat >> confdefs.h <<\EOF
5432 #define const
5437 echo $ac_n "checking for inline""... $ac_c" 1>&6
5438 echo "configure:5439: checking for inline" >&5
5439 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5441 else
5442 ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5448 int main() {
5449 } int $ac_kw foo() {
5450 ; return 0; }
5452 if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5453 rm -rf conftest*
5454 ac_cv_c_inline=$ac_kw; break
5455 else
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 rm -f conftest*
5460 done
5464 echo "$ac_t""$ac_cv_c_inline" 1>&6
5465 case "$ac_cv_c_inline" in
5466 inline | yes) ;;
5467 no) cat >> confdefs.h <<\EOF
5468 #define inline
5471 *) cat >> confdefs.h <<EOF
5472 #define inline $ac_cv_c_inline
5475 esac
5477 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5478 echo "configure:5479: checking for ANSI C header files" >&5
5479 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5481 else
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 #include <stdlib.h>
5486 #include <stdarg.h>
5487 #include <string.h>
5488 #include <float.h>
5490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5491 { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5493 if test -z "$ac_err"; then
5494 rm -rf conftest*
5495 ac_cv_header_stdc=yes
5496 else
5497 echo "$ac_err" >&5
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 rm -rf conftest*
5501 ac_cv_header_stdc=no
5503 rm -f conftest*
5505 if test $ac_cv_header_stdc = yes; then
5506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <string.h>
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 egrep "memchr" >/dev/null 2>&1; then
5515 else
5516 rm -rf conftest*
5517 ac_cv_header_stdc=no
5519 rm -f conftest*
5523 if test $ac_cv_header_stdc = yes; then
5524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 #include <stdlib.h>
5530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5531 egrep "free" >/dev/null 2>&1; then
5533 else
5534 rm -rf conftest*
5535 ac_cv_header_stdc=no
5537 rm -f conftest*
5541 if test $ac_cv_header_stdc = yes; then
5542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543 if test "$cross_compiling" = yes; then
5545 else
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 #include <ctype.h>
5550 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5551 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5553 int main () { int i; for (i = 0; i < 256; i++)
5554 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5555 exit (0); }
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5559 then
5561 else
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 rm -fr conftest*
5565 ac_cv_header_stdc=no
5567 rm -fr conftest*
5573 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5574 if test $ac_cv_header_stdc = yes; then
5575 cat >> confdefs.h <<\EOF
5576 #define STDC_HEADERS 1
5581 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5582 echo "configure:5583: checking for size_t" >&5
5583 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 #include <sys/types.h>
5590 #if STDC_HEADERS
5591 #include <stdlib.h>
5592 #include <stddef.h>
5593 #endif
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5597 rm -rf conftest*
5598 ac_cv_type_size_t=yes
5599 else
5600 rm -rf conftest*
5601 ac_cv_type_size_t=no
5603 rm -f conftest*
5606 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5607 if test $ac_cv_type_size_t = no; then
5608 cat >> confdefs.h <<\EOF
5609 #define size_t unsigned
5614 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5615 echo "configure:5616: checking size of long long" >&5
5616 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5618 else
5619 if test "$cross_compiling" = yes; then
5620 ac_cv_sizeof_long_long=0
5621 else
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5625 #include <stdio.h>
5626 main()
5628 FILE *f=fopen("conftestval", "w");
5629 if (!f) exit(1);
5630 fprintf(f, "%d\n", sizeof(long long));
5631 exit(0);
5634 if { (eval echo configure:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5635 then
5636 ac_cv_sizeof_long_long=`cat conftestval`
5637 else
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 rm -fr conftest*
5641 ac_cv_sizeof_long_long=0
5643 rm -fr conftest*
5647 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5648 cat >> confdefs.h <<EOF
5649 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5654 if test "$ac_cv_header_linux_joystick_h" = "yes"
5655 then
5656 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5657 echo "configure:5658: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5658 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5665 #include <sys/ioctl.h>
5666 #include <linux/joystick.h>
5668 struct js_event blub;
5669 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5670 #error "no 2.2 header"
5671 #endif
5673 int main() {
5674 /*empty*/
5675 ; return 0; }
5677 if { (eval echo configure:5678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5678 rm -rf conftest*
5679 wine_cv_linux_joystick_22_api=yes
5680 else
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 rm -rf conftest*
5684 wine_cv_linux_joystick_22_api=no
5686 rm -f conftest*
5690 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5691 if test "$wine_cv_linux_joystick_22_api" = "yes"
5692 then
5693 cat >> confdefs.h <<\EOF
5694 #define HAVE_LINUX_22_JOYSTICK_API 1
5701 if test "$ac_cv_header_sys_vfs_h" = "yes"
5702 then
5703 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5704 echo "configure:5705: checking "whether sys/vfs.h defines statfs"" >&5
5705 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5707 else
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure"
5710 #include "confdefs.h"
5712 #include <sys/types.h>
5713 #ifdef HAVE_SYS_PARAM_H
5714 # include <sys/param.h>
5715 #endif
5716 #include <sys/vfs.h>
5718 int main() {
5720 struct statfs stfs;
5722 memset(&stfs,0,sizeof(stfs));
5724 ; return 0; }
5726 if { (eval echo configure:5727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5727 rm -rf conftest*
5728 wine_cv_sys_vfs_has_statfs=yes
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 wine_cv_sys_vfs_has_statfs=no
5736 rm -f conftest*
5740 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5741 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5742 then
5743 cat >> confdefs.h <<\EOF
5744 #define STATFS_DEFINED_BY_SYS_VFS 1
5750 if test "$ac_cv_header_sys_statfs_h" = "yes"
5751 then
5752 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5753 echo "configure:5754: checking "whether sys/statfs.h defines statfs"" >&5
5754 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756 else
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5761 #include <sys/types.h>
5762 #ifdef HAVE_SYS_PARAM_H
5763 # include <sys/param.h>
5764 #endif
5765 #include <sys/statfs.h>
5767 int main() {
5769 struct statfs stfs;
5771 ; return 0; }
5773 if { (eval echo configure:5774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5774 rm -rf conftest*
5775 wine_cv_sys_statfs_has_statfs=yes
5776 else
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 rm -rf conftest*
5780 wine_cv_sys_statfs_has_statfs=no
5783 rm -f conftest*
5787 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5788 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5789 then
5790 cat >> confdefs.h <<\EOF
5791 #define STATFS_DEFINED_BY_SYS_STATFS 1
5797 if test "$ac_cv_header_sys_mount_h" = "yes"
5798 then
5799 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5800 echo "configure:5801: checking "whether sys/mount.h defines statfs"" >&5
5801 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5803 else
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5808 #include <sys/types.h>
5809 #ifdef HAVE_SYS_PARAM_H
5810 # include <sys/param.h>
5811 #endif
5812 #include <sys/mount.h>
5814 int main() {
5816 struct statfs stfs;
5818 ; return 0; }
5820 if { (eval echo configure:5821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5821 rm -rf conftest*
5822 wine_cv_sys_mount_has_statfs=yes
5823 else
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 rm -rf conftest*
5827 wine_cv_sys_mount_has_statfs=no
5830 rm -f conftest*
5834 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5835 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5836 then
5837 cat >> confdefs.h <<\EOF
5838 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5845 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5846 echo "configure:5847: checking "for statfs.f_bfree"" >&5
5847 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5849 else
5850 if test "x$statfs_bfree" = "xno"
5851 then
5852 wine_cv_statfs_bfree=no
5853 else
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5858 #include <sys/types.h>
5859 #ifdef HAVE_SYS_PARAM_H
5860 # include <sys/param.h>
5861 #endif
5862 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5863 # include <sys/mount.h>
5864 #else
5865 # ifdef STATFS_DEFINED_BY_SYS_VFS
5866 # include <sys/vfs.h>
5867 # else
5868 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5869 # include <sys/statfs.h>
5870 # endif
5871 # endif
5872 #endif
5874 int main() {
5876 struct statfs stfs;
5878 stfs.f_bfree++;
5880 ; return 0; }
5882 if { (eval echo configure:5883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5883 rm -rf conftest*
5884 wine_cv_statfs_bfree=yes
5885 else
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 rm -rf conftest*
5889 wine_cv_statfs_bfree=no
5892 rm -f conftest*
5896 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5897 if test "$wine_cv_statfs_bfree" = "yes"
5898 then
5899 cat >> confdefs.h <<\EOF
5900 #define STATFS_HAS_BFREE 1
5905 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5906 echo "configure:5907: checking "for statfs.f_bavail"" >&5
5907 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5910 if test "x$statfs_bavail" = "xno"
5911 then
5912 wine_cv_statfs_bavail=no
5913 else
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5918 #include <sys/types.h>
5919 #ifdef HAVE_SYS_PARAM_H
5920 # include <sys/param.h>
5921 #endif
5922 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5923 # include <sys/mount.h>
5924 #else
5925 # ifdef STATFS_DEFINED_BY_SYS_VFS
5926 # include <sys/vfs.h>
5927 # else
5928 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5929 # include <sys/statfs.h>
5930 # endif
5931 # endif
5932 #endif
5934 int main() {
5936 struct statfs stfs;
5938 stfs.f_bavail++;
5940 ; return 0; }
5942 if { (eval echo configure:5943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5943 rm -rf conftest*
5944 wine_cv_statfs_bavail=yes
5945 else
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 rm -rf conftest*
5949 wine_cv_statfs_bavail=no
5952 rm -f conftest*
5956 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5957 if test "$wine_cv_statfs_bavail" = "yes"
5958 then
5959 cat >> confdefs.h <<\EOF
5960 #define STATFS_HAS_BAVAIL 1
5966 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5967 echo "configure:5968: checking "for msg_accrights in struct msghdr"" >&5
5968 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5970 else
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <sys/types.h>
5975 #include <sys/socket.h>
5976 int main() {
5977 struct msghdr hdr; hdr.msg_accrights=0
5978 ; return 0; }
5980 if { (eval echo configure:5981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5981 rm -rf conftest*
5982 ac_cv_c_msg_accrights="yes"
5983 else
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 rm -rf conftest*
5987 ac_cv_c_msg_accrights="no"
5989 rm -f conftest*
5992 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5993 if test "$ac_cv_c_msg_accrights" = "yes"
5994 then
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_MSGHDR_ACCRIGHTS 1
6002 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6003 echo "configure:6004: checking "for sun_len in struct sockaddr_un"" >&5
6004 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6006 else
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 #include <sys/types.h>
6011 #include <sys/socket.h>
6012 #include <sys/un.h>
6013 int main() {
6014 static struct sockaddr_un addr; addr.sun_len = 1
6015 ; return 0; }
6017 if { (eval echo configure:6018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6018 rm -rf conftest*
6019 ac_cv_c_sun_len="yes"
6020 else
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 rm -rf conftest*
6024 ac_cv_c_sun_len="no"
6026 rm -f conftest*
6029 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6030 if test "$ac_cv_c_sun_len" = "yes"
6031 then
6032 cat >> confdefs.h <<\EOF
6033 #define HAVE_SOCKADDR_SUN_LEN 1
6039 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6040 echo "configure:6041: checking "whether we need to define __i386__"" >&5
6041 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6049 #endif
6051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6052 egrep "yes" >/dev/null 2>&1; then
6053 rm -rf conftest*
6054 ac_cv_cpp_def_i386="yes"
6055 else
6056 rm -rf conftest*
6057 ac_cv_cpp_def_i386="no"
6059 rm -f conftest*
6063 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6064 if test "$ac_cv_cpp_def_i386" = "yes"
6065 then
6066 CFLAGS="$CFLAGS -D__i386__"
6067 LINTFLAGS="$LINTFLAGS -D__i386__"
6070 GCC_NO_BUILTIN=""
6071 if test "$GCC" = "yes"
6072 then
6073 GCC_NO_BUILTIN="-fno-builtin"
6080 MAKE_RULES=Make.rules
6083 MAKE_DLL_RULES=dlls/Makedll.rules
6086 trap '' 1 2 15
6087 cat > confcache <<\EOF
6088 # This file is a shell script that caches the results of configure
6089 # tests run on this system so they can be shared between configure
6090 # scripts and configure runs. It is not useful on other systems.
6091 # If it contains results you don't want to keep, you may remove or edit it.
6093 # By default, configure uses ./config.cache as the cache file,
6094 # creating it if it does not exist already. You can give configure
6095 # the --cache-file=FILE option to use a different cache file; that is
6096 # what configure does when it calls configure scripts in
6097 # subdirectories, so they share the cache.
6098 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6099 # config.status only pays attention to the cache file if you give it the
6100 # --recheck option to rerun configure.
6103 # The following way of writing the cache mishandles newlines in values,
6104 # but we know of no workaround that is simple, portable, and efficient.
6105 # So, don't put newlines in cache variables' values.
6106 # Ultrix sh set writes to stderr and can't be redirected directly,
6107 # and sets the high bit in the cache file unless we assign to the vars.
6108 (set) 2>&1 |
6109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6110 *ac_space=\ *)
6111 # `set' does not quote correctly, so add quotes (double-quote substitution
6112 # turns \\\\ into \\, and sed turns \\ into \).
6113 sed -n \
6114 -e "s/'/'\\\\''/g" \
6115 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6118 # `set' quotes correctly as required by POSIX, so do not add quotes.
6119 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6121 esac >> confcache
6122 if cmp -s $cache_file confcache; then
6124 else
6125 if test -w $cache_file; then
6126 echo "updating cache $cache_file"
6127 cat confcache > $cache_file
6128 else
6129 echo "not updating unwritable cache $cache_file"
6132 rm -f confcache
6134 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6137 # Let make expand exec_prefix.
6138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6140 # Any assignment to VPATH causes Sun make to only execute
6141 # the first set of double-colon rules, so remove it if not needed.
6142 # If there is a colon in the path, we need to keep it.
6143 if test "x$srcdir" = x.; then
6144 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6147 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6149 DEFS=-DHAVE_CONFIG_H
6151 # Without the "./", some shells look in PATH for config.status.
6152 : ${CONFIG_STATUS=./config.status}
6154 echo creating $CONFIG_STATUS
6155 rm -f $CONFIG_STATUS
6156 cat > $CONFIG_STATUS <<EOF
6157 #! /bin/sh
6158 # Generated automatically by configure.
6159 # Run this file to recreate the current configuration.
6160 # This directory was configured as follows,
6161 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6163 # $0 $ac_configure_args
6165 # Compiler output produced by configure, useful for debugging
6166 # configure, is in ./config.log if it exists.
6168 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6169 for ac_option
6171 case "\$ac_option" in
6172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6173 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6174 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6175 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6176 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6177 exit 0 ;;
6178 -help | --help | --hel | --he | --h)
6179 echo "\$ac_cs_usage"; exit 0 ;;
6180 *) echo "\$ac_cs_usage"; exit 1 ;;
6181 esac
6182 done
6184 ac_given_srcdir=$srcdir
6185 ac_given_INSTALL="$INSTALL"
6187 trap 'rm -fr `echo "
6188 Make.rules
6189 Makefile
6190 console/Makefile
6191 controls/Makefile
6192 debugger/Makefile
6193 dlls/Makedll.rules
6194 dlls/Makefile
6195 dlls/advapi32/Makefile
6196 dlls/avifil32/Makefile
6197 dlls/comctl32/Makefile
6198 dlls/commdlg/Makefile
6199 dlls/crtdll/Makefile
6200 dlls/dciman32/Makefile
6201 dlls/ddraw/Makefile
6202 dlls/dinput/Makefile
6203 dlls/dplayx/Makefile
6204 dlls/dsound/Makefile
6205 dlls/gdi/Makefile
6206 dlls/icmp/Makefile
6207 dlls/imagehlp/Makefile
6208 dlls/imm32/Makefile
6209 dlls/kernel/Makefile
6210 dlls/lzexpand/Makefile
6211 dlls/mpr/Makefile
6212 dlls/msacm/Makefile
6213 dlls/msacm32/Makefile
6214 dlls/msnet32/Makefile
6215 dlls/msvideo/Makefile
6216 dlls/ntdll/Makefile
6217 dlls/odbc32/Makefile
6218 dlls/ole32/Makefile
6219 dlls/oleaut32/Makefile
6220 dlls/olecli/Makefile
6221 dlls/oledlg/Makefile
6222 dlls/olepro32/Makefile
6223 dlls/olesvr/Makefile
6224 dlls/opengl32/Makefile
6225 dlls/psapi/Makefile
6226 dlls/rasapi32/Makefile
6227 dlls/richedit/Makefile
6228 dlls/setupx/Makefile
6229 dlls/shell32/Makefile
6230 dlls/sound/Makefile
6231 dlls/stress/Makefile
6232 dlls/tapi32/Makefile
6233 dlls/ttydrv/Makefile
6234 dlls/urlmon/Makefile
6235 dlls/user/Makefile
6236 dlls/version/Makefile
6237 dlls/win32s/Makefile
6238 dlls/win87em/Makefile
6239 dlls/winaspi/Makefile
6240 dlls/windebug/Makefile
6241 dlls/wineps/Makefile
6242 dlls/wing/Makefile
6243 dlls/wininet/Makefile
6244 dlls/winmm/Makefile
6245 dlls/winmm/joystick/Makefile
6246 dlls/winmm/mcianim/Makefile
6247 dlls/winmm/mciavi/Makefile
6248 dlls/winmm/mcicda/Makefile
6249 dlls/winmm/mciseq/Makefile
6250 dlls/winmm/mciwave/Makefile
6251 dlls/winmm/midimap/Makefile
6252 dlls/winmm/wavemap/Makefile
6253 dlls/winmm/wineoss/Makefile
6254 dlls/winsock/Makefile
6255 dlls/winspool/Makefile
6256 dlls/ttydrv/Makefile
6257 dlls/x11drv/Makefile
6258 documentation/Makefile
6259 documentation/wine.conf.man
6260 documentation/wine.man
6261 files/Makefile
6262 graphics/Makefile
6263 graphics/enhmetafiledrv/Makefile
6264 graphics/metafiledrv/Makefile
6265 graphics/ttydrv/Makefile
6266 graphics/win16drv/Makefile
6267 graphics/x11drv/Makefile
6268 if1632/Makefile
6269 include/Makefile
6270 library/Makefile
6271 libtest/Makefile
6272 loader/Makefile
6273 loader/ne/Makefile
6274 loader/dos/Makefile
6275 memory/Makefile
6276 misc/Makefile
6277 miscemu/Makefile
6278 msdos/Makefile
6279 objects/Makefile
6280 ole/Makefile
6281 programs/Makefile
6282 programs/clock/Makefile
6283 programs/cmdlgtst/Makefile
6284 programs/control/Makefile
6285 programs/avitools/Makefile
6286 programs/osversioncheck/Makefile
6287 programs/notepad/Makefile
6288 programs/progman/Makefile
6289 programs/regtest/Makefile
6290 programs/regapi/Makefile
6291 programs/view/Makefile
6292 programs/wcmd/Makefile
6293 programs/winemine/Makefile
6294 programs/winhelp/Makefile
6295 programs/winver/Makefile
6296 relay32/Makefile
6297 resources/Makefile
6298 scheduler/Makefile
6299 server/Makefile
6300 tools/Makefile
6301 tools/cvdump/Makefile
6302 tools/wrc/Makefile
6303 tsx11/Makefile
6304 win32/Makefile
6305 windows/Makefile
6306 windows/ttydrv/Makefile
6307 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6309 cat >> $CONFIG_STATUS <<EOF
6311 # Protect against being on the right side of a sed subst in config.status.
6312 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6313 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6314 $ac_vpsub
6315 $extrasub
6316 s%@SHELL@%$SHELL%g
6317 s%@CFLAGS@%$CFLAGS%g
6318 s%@CPPFLAGS@%$CPPFLAGS%g
6319 s%@CXXFLAGS@%$CXXFLAGS%g
6320 s%@FFLAGS@%$FFLAGS%g
6321 s%@DEFS@%$DEFS%g
6322 s%@LDFLAGS@%$LDFLAGS%g
6323 s%@LIBS@%$LIBS%g
6324 s%@exec_prefix@%$exec_prefix%g
6325 s%@prefix@%$prefix%g
6326 s%@program_transform_name@%$program_transform_name%g
6327 s%@bindir@%$bindir%g
6328 s%@sbindir@%$sbindir%g
6329 s%@libexecdir@%$libexecdir%g
6330 s%@datadir@%$datadir%g
6331 s%@sysconfdir@%$sysconfdir%g
6332 s%@sharedstatedir@%$sharedstatedir%g
6333 s%@localstatedir@%$localstatedir%g
6334 s%@libdir@%$libdir%g
6335 s%@includedir@%$includedir%g
6336 s%@oldincludedir@%$oldincludedir%g
6337 s%@infodir@%$infodir%g
6338 s%@mandir@%$mandir%g
6339 s%@PROGEXT@%$PROGEXT%g
6340 s%@EMU_TARGET@%$EMU_TARGET%g
6341 s%@OPTIONS@%$OPTIONS%g
6342 s%@SET_MAKE@%$SET_MAKE%g
6343 s%@CC@%$CC%g
6344 s%@CPP@%$CPP%g
6345 s%@X_CFLAGS@%$X_CFLAGS%g
6346 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6347 s%@X_LIBS@%$X_LIBS%g
6348 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6349 s%@YACC@%$YACC%g
6350 s%@LEX@%$LEX%g
6351 s%@LEXLIB@%$LEXLIB%g
6352 s%@RANLIB@%$RANLIB%g
6353 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6354 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6355 s%@INSTALL_DATA@%$INSTALL_DATA%g
6356 s%@LN_S@%$LN_S%g
6357 s%@C2MAN@%$C2MAN%g
6358 s%@LDCONFIG@%$LDCONFIG%g
6359 s%@LINT@%$LINT%g
6360 s%@LINTFLAGS@%$LINTFLAGS%g
6361 s%@XLIB@%$XLIB%g
6362 s%@X_DLLS@%$X_DLLS%g
6363 s%@XFILES@%$XFILES%g
6364 s%@OPENGLFILES@%$OPENGLFILES%g
6365 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6366 s%@DGA_SRCS@%$DGA_SRCS%g
6367 s%@DGA2_SRCS@%$DGA2_SRCS%g
6368 s%@MESA_SRCS@%$MESA_SRCS%g
6369 s%@DLL_LINK@%$DLL_LINK%g
6370 s%@BUILDFLAGS@%$BUILDFLAGS%g
6371 s%@DLLFLAGS@%$DLLFLAGS%g
6372 s%@LDSHARED@%$LDSHARED%g
6373 s%@LIBEXT@%$LIBEXT%g
6374 s%@ALLOCA@%$ALLOCA%g
6375 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6376 /@MAKE_RULES@/r $MAKE_RULES
6377 s%@MAKE_RULES@%%g
6378 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6379 s%@MAKE_DLL_RULES@%%g
6381 CEOF
6384 cat >> $CONFIG_STATUS <<\EOF
6386 # Split the substitutions into bite-sized pieces for seds with
6387 # small command number limits, like on Digital OSF/1 and HP-UX.
6388 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6389 ac_file=1 # Number of current file.
6390 ac_beg=1 # First line for current file.
6391 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6392 ac_more_lines=:
6393 ac_sed_cmds=""
6394 while $ac_more_lines; do
6395 if test $ac_beg -gt 1; then
6396 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6397 else
6398 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6400 if test ! -s conftest.s$ac_file; then
6401 ac_more_lines=false
6402 rm -f conftest.s$ac_file
6403 else
6404 if test -z "$ac_sed_cmds"; then
6405 ac_sed_cmds="sed -f conftest.s$ac_file"
6406 else
6407 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6409 ac_file=`expr $ac_file + 1`
6410 ac_beg=$ac_end
6411 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6413 done
6414 if test -z "$ac_sed_cmds"; then
6415 ac_sed_cmds=cat
6419 cat >> $CONFIG_STATUS <<EOF
6421 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6422 Makefile
6423 console/Makefile
6424 controls/Makefile
6425 debugger/Makefile
6426 dlls/Makedll.rules
6427 dlls/Makefile
6428 dlls/advapi32/Makefile
6429 dlls/avifil32/Makefile
6430 dlls/comctl32/Makefile
6431 dlls/commdlg/Makefile
6432 dlls/crtdll/Makefile
6433 dlls/dciman32/Makefile
6434 dlls/ddraw/Makefile
6435 dlls/dinput/Makefile
6436 dlls/dplayx/Makefile
6437 dlls/dsound/Makefile
6438 dlls/gdi/Makefile
6439 dlls/icmp/Makefile
6440 dlls/imagehlp/Makefile
6441 dlls/imm32/Makefile
6442 dlls/kernel/Makefile
6443 dlls/lzexpand/Makefile
6444 dlls/mpr/Makefile
6445 dlls/msacm/Makefile
6446 dlls/msacm32/Makefile
6447 dlls/msnet32/Makefile
6448 dlls/msvideo/Makefile
6449 dlls/ntdll/Makefile
6450 dlls/odbc32/Makefile
6451 dlls/ole32/Makefile
6452 dlls/oleaut32/Makefile
6453 dlls/olecli/Makefile
6454 dlls/oledlg/Makefile
6455 dlls/olepro32/Makefile
6456 dlls/olesvr/Makefile
6457 dlls/opengl32/Makefile
6458 dlls/psapi/Makefile
6459 dlls/rasapi32/Makefile
6460 dlls/richedit/Makefile
6461 dlls/setupx/Makefile
6462 dlls/shell32/Makefile
6463 dlls/sound/Makefile
6464 dlls/stress/Makefile
6465 dlls/tapi32/Makefile
6466 dlls/ttydrv/Makefile
6467 dlls/urlmon/Makefile
6468 dlls/user/Makefile
6469 dlls/version/Makefile
6470 dlls/win32s/Makefile
6471 dlls/win87em/Makefile
6472 dlls/winaspi/Makefile
6473 dlls/windebug/Makefile
6474 dlls/wineps/Makefile
6475 dlls/wing/Makefile
6476 dlls/wininet/Makefile
6477 dlls/winmm/Makefile
6478 dlls/winmm/joystick/Makefile
6479 dlls/winmm/mcianim/Makefile
6480 dlls/winmm/mciavi/Makefile
6481 dlls/winmm/mcicda/Makefile
6482 dlls/winmm/mciseq/Makefile
6483 dlls/winmm/mciwave/Makefile
6484 dlls/winmm/midimap/Makefile
6485 dlls/winmm/wavemap/Makefile
6486 dlls/winmm/wineoss/Makefile
6487 dlls/winsock/Makefile
6488 dlls/winspool/Makefile
6489 dlls/ttydrv/Makefile
6490 dlls/x11drv/Makefile
6491 documentation/Makefile
6492 documentation/wine.conf.man
6493 documentation/wine.man
6494 files/Makefile
6495 graphics/Makefile
6496 graphics/enhmetafiledrv/Makefile
6497 graphics/metafiledrv/Makefile
6498 graphics/ttydrv/Makefile
6499 graphics/win16drv/Makefile
6500 graphics/x11drv/Makefile
6501 if1632/Makefile
6502 include/Makefile
6503 library/Makefile
6504 libtest/Makefile
6505 loader/Makefile
6506 loader/ne/Makefile
6507 loader/dos/Makefile
6508 memory/Makefile
6509 misc/Makefile
6510 miscemu/Makefile
6511 msdos/Makefile
6512 objects/Makefile
6513 ole/Makefile
6514 programs/Makefile
6515 programs/clock/Makefile
6516 programs/cmdlgtst/Makefile
6517 programs/control/Makefile
6518 programs/avitools/Makefile
6519 programs/osversioncheck/Makefile
6520 programs/notepad/Makefile
6521 programs/progman/Makefile
6522 programs/regtest/Makefile
6523 programs/regapi/Makefile
6524 programs/view/Makefile
6525 programs/wcmd/Makefile
6526 programs/winemine/Makefile
6527 programs/winhelp/Makefile
6528 programs/winver/Makefile
6529 relay32/Makefile
6530 resources/Makefile
6531 scheduler/Makefile
6532 server/Makefile
6533 tools/Makefile
6534 tools/cvdump/Makefile
6535 tools/wrc/Makefile
6536 tsx11/Makefile
6537 win32/Makefile
6538 windows/Makefile
6539 windows/ttydrv/Makefile
6540 windows/x11drv/Makefile "}
6542 cat >> $CONFIG_STATUS <<\EOF
6543 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6545 case "$ac_file" in
6546 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6547 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6548 *) ac_file_in="${ac_file}.in" ;;
6549 esac
6551 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6553 # Remove last slash and all that follows it. Not all systems have dirname.
6554 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6556 # The file is in a subdirectory.
6557 test ! -d "$ac_dir" && mkdir "$ac_dir"
6558 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6559 # A "../" for each directory in $ac_dir_suffix.
6560 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6561 else
6562 ac_dir_suffix= ac_dots=
6565 case "$ac_given_srcdir" in
6566 .) srcdir=.
6567 if test -z "$ac_dots"; then top_srcdir=.
6568 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6569 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6570 *) # Relative path.
6571 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6572 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6573 esac
6575 case "$ac_given_INSTALL" in
6576 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6577 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6578 esac
6580 echo creating "$ac_file"
6581 rm -f "$ac_file"
6582 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6583 case "$ac_file" in
6584 *Makefile*) ac_comsub="1i\\
6585 # $configure_input" ;;
6586 *) ac_comsub= ;;
6587 esac
6589 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6590 sed -e "$ac_comsub
6591 s%@configure_input@%$configure_input%g
6592 s%@srcdir@%$srcdir%g
6593 s%@top_srcdir@%$top_srcdir%g
6594 s%@INSTALL@%$INSTALL%g
6595 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6596 fi; done
6597 rm -f conftest.s*
6599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6602 # ac_d sets the value in "#define NAME VALUE" lines.
6603 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6604 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6605 ac_dC='\3'
6606 ac_dD='%g'
6607 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6608 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6609 ac_uB='\([ ]\)%\1#\2define\3'
6610 ac_uC=' '
6611 ac_uD='\4%g'
6612 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6613 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6614 ac_eB='$%\1#\2define\3'
6615 ac_eC=' '
6616 ac_eD='%g'
6618 if test "${CONFIG_HEADERS+set}" != set; then
6620 cat >> $CONFIG_STATUS <<EOF
6621 CONFIG_HEADERS="include/config.h"
6623 cat >> $CONFIG_STATUS <<\EOF
6625 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6627 case "$ac_file" in
6628 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6629 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6630 *) ac_file_in="${ac_file}.in" ;;
6631 esac
6633 echo creating $ac_file
6635 rm -f conftest.frag conftest.in conftest.out
6636 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6637 cat $ac_file_inputs > conftest.in
6641 # Transform confdefs.h into a sed script conftest.vals that substitutes
6642 # the proper values into config.h.in to produce config.h. And first:
6643 # Protect against being on the right side of a sed subst in config.status.
6644 # Protect against being in an unquoted here document in config.status.
6645 rm -f conftest.vals
6646 cat > conftest.hdr <<\EOF
6647 s/[\\&%]/\\&/g
6648 s%[\\$`]%\\&%g
6649 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6650 s%ac_d%ac_u%gp
6651 s%ac_u%ac_e%gp
6653 sed -n -f conftest.hdr confdefs.h > conftest.vals
6654 rm -f conftest.hdr
6656 # This sed command replaces #undef with comments. This is necessary, for
6657 # example, in the case of _POSIX_SOURCE, which is predefined and required
6658 # on some systems where configure will not decide to define it.
6659 cat >> conftest.vals <<\EOF
6660 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6663 # Break up conftest.vals because some shells have a limit on
6664 # the size of here documents, and old seds have small limits too.
6666 rm -f conftest.tail
6667 while :
6669 ac_lines=`grep -c . conftest.vals`
6670 # grep -c gives empty output for an empty file on some AIX systems.
6671 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6672 # Write a limited-size here document to conftest.frag.
6673 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6674 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6675 echo 'CEOF
6676 sed -f conftest.frag conftest.in > conftest.out
6677 rm -f conftest.in
6678 mv conftest.out conftest.in
6679 ' >> $CONFIG_STATUS
6680 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6681 rm -f conftest.vals
6682 mv conftest.tail conftest.vals
6683 done
6684 rm -f conftest.vals
6686 cat >> $CONFIG_STATUS <<\EOF
6687 rm -f conftest.frag conftest.h
6688 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6689 cat conftest.in >> conftest.h
6690 rm -f conftest.in
6691 if cmp -s $ac_file conftest.h 2>/dev/null; then
6692 echo "$ac_file is unchanged"
6693 rm -f conftest.h
6694 else
6695 # Remove last slash and all that follows it. Not all systems have dirname.
6696 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6697 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6698 # The file is in a subdirectory.
6699 test ! -d "$ac_dir" && mkdir "$ac_dir"
6701 rm -f $ac_file
6702 mv conftest.h $ac_file
6704 fi; done
6707 cat >> $CONFIG_STATUS <<EOF
6711 cat >> $CONFIG_STATUS <<\EOF
6713 extra_subdirs="\
6714 dlls/ddraw/d3ddevice \
6715 dlls/ddraw/dclipper \
6716 dlls/ddraw/ddraw \
6717 dlls/ddraw/direct3d \
6718 dlls/ddraw/dpalette \
6719 dlls/ddraw/dsurface \
6721 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6723 exit 0
6725 chmod +x $CONFIG_STATUS
6726 rm -fr confdefs* $ac_clean_files
6727 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6730 if test "$have_x" = "no"
6731 then
6732 echo
6733 echo "*** Warning: X development files not found. Wine will be built without"
6734 echo "*** X support, which currently does not work, and would probably not be"
6735 echo "*** what you want anyway. You will need to install devel packages of"
6736 echo "*** Xlib/Xfree86 and Xpm at the very least."
6737 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6738 then
6739 echo
6740 echo "*** Warning: Xpm development files not found. Wine will be built without"
6741 echo "*** Xpm support, which currently does not work. You will need to install"
6742 echo "*** devel packages of Xpm."
6745 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6746 then
6747 echo
6748 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6749 echo "*** terminal resize support. Consider upgrading ncurses."
6752 if test "$wine_cv_libc_reentrant" = "no"
6753 then
6754 echo
6755 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6756 echo "*** thread support. Consider upgrading libc to a more recent"
6757 echo "*** reentrant version of libc."
6760 if test "$wine_cv_opengl_version_OK" = "no"
6761 then
6762 echo
6763 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6764 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6767 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6768 then
6769 echo
6770 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6771 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6772 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6773 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6776 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6777 then
6778 echo
6779 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6780 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6781 echo "*** support before reporting bugs."
6785 echo
6786 echo "Configure finished. Do 'make depend && make' to compile Wine."
6787 echo