Fixed CharNextW.
[wine/multimedia.git] / configure
blob0f0d865aa171ce5a6558ec3d97164f7e98e8b59c
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-dll build static libraries instead of DLLs"
17 ac_help="$ac_help
18 --disable-debug compile out all debugging messages"
19 ac_help="$ac_help
20 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
21 ac_help="$ac_help
22 --disable-trace compile out TRACE messages"
23 ac_help="$ac_help
24 --without-curses do not use curses"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
71 ac_prev=
72 for ac_option
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
87 # Accept the important Cygnus configure options, so we can diagnose typos.
89 case "$ac_option" in
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
186 cat << EOF
187 Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
202 exit 0 ;;
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 nonopt="$ac_option"
407 esac
408 done
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
429 exec 5>./config.log
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=controls/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
482 else
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
507 done
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512 else
513 echo "creating cache $cache_file"
514 > $cache_file
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530 ' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
534 else
535 ac_n= ac_c='\c' ac_t=
540 ac_aux_dir=
541 for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 LIBEXT=so # library type .so or .a
562 TRACE_MSGS=yes # the TRACE() macro
563 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
564 CURSES=yes
565 OPENGL=normal
567 # Check whether --enable-dll or --disable-dll was given.
568 if test "${enable_dll+set}" = set; then
569 enableval="$enable_dll"
570 if test "$enableval" = "no"; then LIBEXT="a"; fi
574 # Check whether --enable-debug or --disable-debug was given.
575 if test "${enable_debug+set}" = set; then
576 enableval="$enable_debug"
577 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
581 # Check whether --enable-opengl or --disable-opengl was given.
582 if test "${enable_opengl+set}" = set; then
583 enableval="$enable_opengl"
584 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
588 # Check whether --enable-trace or --disable-trace was given.
589 if test "${enable_trace+set}" = set; then
590 enableval="$enable_trace"
591 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
595 # Check whether --with-curses or --without-curses was given.
596 if test "${with_curses+set}" = set; then
597 withval="$with_curses"
598 if test "$withval" = "no"; then CURSES="no"; fi
602 # Check whether --with-reentrant-x or --without-reentrant-x was given.
603 if test "${with_reentrant_x+set}" = set; then
604 withval="$with_reentrant_x"
611 if test "$DEBUG_MSGS" = "no"
612 then
613 cat >> confdefs.h <<\EOF
614 #define NO_DEBUG_MSGS 1
617 cat >> confdefs.h <<\EOF
618 #define NO_TRACE_MSGS 1
621 else
622 if test "$TRACE_MSGS" = "no"
623 then
624 cat >> confdefs.h <<\EOF
625 #define NO_TRACE_MSGS 1
632 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
633 echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5
634 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
635 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637 else
638 cat > conftestmake <<\EOF
639 all:
640 @echo 'ac_maketemp="${MAKE}"'
642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
643 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
644 if test -n "$ac_maketemp"; then
645 eval ac_cv_prog_make_${ac_make}_set=yes
646 else
647 eval ac_cv_prog_make_${ac_make}_set=no
649 rm -f conftestmake
651 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
652 echo "$ac_t""yes" 1>&6
653 SET_MAKE=
654 else
655 echo "$ac_t""no" 1>&6
656 SET_MAKE="MAKE=${MAKE-make}"
659 # Extract the first word of "gcc", so it can be a program name with args.
660 set dummy gcc; ac_word=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 echo "configure:663: checking for $ac_word" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665 else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668 else
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
677 done
678 IFS="$ac_save_ifs"
681 CC="$ac_cv_prog_CC"
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684 else
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690 set dummy cc; ac_word=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698 else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_prog_rejected=no
701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
709 ac_cv_prog_CC="cc"
710 break
712 done
713 IFS="$ac_save_ifs"
714 if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
730 CC="$ac_cv_prog_CC"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733 else
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741 set dummy cl; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746 else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749 else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
758 done
759 IFS="$ac_save_ifs"
762 CC="$ac_cv_prog_CC"
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765 else
766 echo "$ac_t""no" 1>&6
769 esac
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777 ac_ext=c
778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779 ac_cpp='$CPP $CPPFLAGS'
780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782 cross_compiling=$ac_cv_prog_cc_cross
784 cat > conftest.$ac_ext << EOF
786 #line 787 "configure"
787 #include "confdefs.h"
789 main(){return(0);}
791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
799 else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
804 rm -fr conftest*
805 ac_ext=c
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813 if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819 cross_compiling=$ac_cv_prog_cc_cross
821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822 echo "configure:823: checking whether we are using GNU C" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 cat > conftest.c <<EOF
827 #ifdef __GNUC__
828 yes;
829 #endif
831 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
832 ac_cv_prog_gcc=yes
833 else
834 ac_cv_prog_gcc=no
838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
840 if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
842 else
843 GCC=
846 ac_test_CFLAGS="${CFLAGS+set}"
847 ac_save_CFLAGS="$CFLAGS"
848 CFLAGS=
849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 echo 'void f(){}' > conftest.c
855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 ac_cv_prog_cc_g=yes
857 else
858 ac_cv_prog_cc_g=no
860 rm -f conftest*
864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865 if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867 elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
869 CFLAGS="-g -O2"
870 else
871 CFLAGS="-g"
873 else
874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
881 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
882 echo "configure:883: checking how to run the C preprocessor" >&5
883 # On Suns, sometimes $CPP names a directory.
884 if test -n "$CPP" && test -d "$CPP"; then
885 CPP=
887 if test -z "$CPP"; then
888 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
890 else
891 # This must be in double quotes, not single quotes, because CPP may get
892 # substituted into the Makefile and "${CC-cc}" will confuse make.
893 CPP="${CC-cc} -E"
894 # On the NeXT, cc -E runs the code through the compiler's parser,
895 # not just through cpp.
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
899 #include <assert.h>
900 Syntax Error
902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
907 else
908 echo "$ac_err" >&5
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
911 rm -rf conftest*
912 CPP="${CC-cc} -E -traditional-cpp"
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
916 #include <assert.h>
917 Syntax Error
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
924 else
925 echo "$ac_err" >&5
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 rm -rf conftest*
929 CPP="${CC-cc} -nologo -E"
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933 #include <assert.h>
934 Syntax Error
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
941 else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 CPP=/lib/cpp
948 rm -f conftest*
950 rm -f conftest*
952 rm -f conftest*
953 ac_cv_prog_CPP="$CPP"
955 CPP="$ac_cv_prog_CPP"
956 else
957 ac_cv_prog_CPP="$CPP"
959 echo "$ac_t""$CPP" 1>&6
961 # If we find X, set shell vars x_includes and x_libraries to the
962 # paths, otherwise set no_x=yes.
963 # Uses ac_ vars as temps to allow command line to override cache and checks.
964 # --without-x overrides everything else, but does not touch the cache.
965 echo $ac_n "checking for X""... $ac_c" 1>&6
966 echo "configure:967: checking for X" >&5
968 # Check whether --with-x or --without-x was given.
969 if test "${with_x+set}" = set; then
970 withval="$with_x"
974 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
975 if test "x$with_x" = xno; then
976 # The user explicitly disabled X.
977 have_x=disabled
978 else
979 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
980 # Both variables are already set.
981 have_x=yes
982 else
983 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985 else
986 # One or both of the vars are not set, and there is no cached value.
987 ac_x_includes=NO ac_x_libraries=NO
988 rm -fr conftestdir
989 if mkdir conftestdir; then
990 cd conftestdir
991 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
992 cat > Imakefile <<'EOF'
993 acfindx:
994 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
996 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
999 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1000 for ac_extension in a so sl; do
1001 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1002 test -f $ac_im_libdir/libX11.$ac_extension; then
1003 ac_im_usrlibdir=$ac_im_libdir; break
1005 done
1006 # Screen out bogus values from the imake configuration. They are
1007 # bogus both because they are the default anyway, and because
1008 # using them would break gcc on systems where it needs fixed includes.
1009 case "$ac_im_incroot" in
1010 /usr/include) ;;
1011 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1012 esac
1013 case "$ac_im_usrlibdir" in
1014 /usr/lib | /lib) ;;
1015 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1016 esac
1018 cd ..
1019 rm -fr conftestdir
1022 if test "$ac_x_includes" = NO; then
1023 # Guess where to find include files, by looking for this one X11 .h file.
1024 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1026 # First, try using that file with no special directory specified.
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <$x_direct_test_include>
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1036 rm -rf conftest*
1037 # We can compile using X headers with no special include directory.
1038 ac_x_includes=
1039 else
1040 echo "$ac_err" >&5
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1043 rm -rf conftest*
1044 # Look for the header file in a standard set of common directories.
1045 # Check X11 before X11Rn because it is often a symlink to the current release.
1046 for ac_dir in \
1047 /usr/X11/include \
1048 /usr/X11R6/include \
1049 /usr/X11R5/include \
1050 /usr/X11R4/include \
1052 /usr/include/X11 \
1053 /usr/include/X11R6 \
1054 /usr/include/X11R5 \
1055 /usr/include/X11R4 \
1057 /usr/local/X11/include \
1058 /usr/local/X11R6/include \
1059 /usr/local/X11R5/include \
1060 /usr/local/X11R4/include \
1062 /usr/local/include/X11 \
1063 /usr/local/include/X11R6 \
1064 /usr/local/include/X11R5 \
1065 /usr/local/include/X11R4 \
1067 /usr/X386/include \
1068 /usr/x386/include \
1069 /usr/XFree86/include/X11 \
1071 /usr/include \
1072 /usr/local/include \
1073 /usr/unsupported/include \
1074 /usr/athena/include \
1075 /usr/local/x11r5/include \
1076 /usr/lpp/Xamples/include \
1078 /usr/openwin/include \
1079 /usr/openwin/share/include \
1082 if test -r "$ac_dir/$x_direct_test_include"; then
1083 ac_x_includes=$ac_dir
1084 break
1086 done
1088 rm -f conftest*
1089 fi # $ac_x_includes = NO
1091 if test "$ac_x_libraries" = NO; then
1092 # Check for the libraries.
1094 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1095 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1097 # See if we find them without any special options.
1098 # Don't add to $LIBS permanently.
1099 ac_save_LIBS="$LIBS"
1100 LIBS="-l$x_direct_test_library $LIBS"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1105 int main() {
1106 ${x_direct_test_function}()
1107 ; return 0; }
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1110 rm -rf conftest*
1111 LIBS="$ac_save_LIBS"
1112 # We can link X programs with no special library path.
1113 ac_x_libraries=
1114 else
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1117 rm -rf conftest*
1118 LIBS="$ac_save_LIBS"
1119 # First see if replacing the include by lib works.
1120 # Check X11 before X11Rn because it is often a symlink to the current release.
1121 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1122 /usr/X11/lib \
1123 /usr/X11R6/lib \
1124 /usr/X11R5/lib \
1125 /usr/X11R4/lib \
1127 /usr/lib/X11 \
1128 /usr/lib/X11R6 \
1129 /usr/lib/X11R5 \
1130 /usr/lib/X11R4 \
1132 /usr/local/X11/lib \
1133 /usr/local/X11R6/lib \
1134 /usr/local/X11R5/lib \
1135 /usr/local/X11R4/lib \
1137 /usr/local/lib/X11 \
1138 /usr/local/lib/X11R6 \
1139 /usr/local/lib/X11R5 \
1140 /usr/local/lib/X11R4 \
1142 /usr/X386/lib \
1143 /usr/x386/lib \
1144 /usr/XFree86/lib/X11 \
1146 /usr/lib \
1147 /usr/local/lib \
1148 /usr/unsupported/lib \
1149 /usr/athena/lib \
1150 /usr/local/x11r5/lib \
1151 /usr/lpp/Xamples/lib \
1152 /lib/usr/lib/X11 \
1154 /usr/openwin/lib \
1155 /usr/openwin/share/lib \
1158 for ac_extension in a so sl; do
1159 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1160 ac_x_libraries=$ac_dir
1161 break 2
1163 done
1164 done
1166 rm -f conftest*
1167 fi # $ac_x_libraries = NO
1169 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1170 # Didn't find X anywhere. Cache the known absence of X.
1171 ac_cv_have_x="have_x=no"
1172 else
1173 # Record where we found X for the cache.
1174 ac_cv_have_x="have_x=yes \
1175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1179 eval "$ac_cv_have_x"
1180 fi # $with_x != no
1182 if test "$have_x" != yes; then
1183 echo "$ac_t""$have_x" 1>&6
1184 no_x=yes
1185 else
1186 # If each of the values was on the command line, it overrides each guess.
1187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1189 # Update the cache value to reflect the command line values.
1190 ac_cv_have_x="have_x=yes \
1191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1195 if test "$no_x" = yes; then
1196 # Not all programs may use this symbol, but it does not hurt to define it.
1197 cat >> confdefs.h <<\EOF
1198 #define X_DISPLAY_MISSING 1
1201 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1202 else
1203 if test -n "$x_includes"; then
1204 X_CFLAGS="$X_CFLAGS -I$x_includes"
1207 # It would also be nice to do this for all -L options, not just this one.
1208 if test -n "$x_libraries"; then
1209 X_LIBS="$X_LIBS -L$x_libraries"
1210 # For Solaris; some versions of Sun CC require a space after -R and
1211 # others require no space. Words are not sufficient . . . .
1212 case "`(uname -sr) 2>/dev/null`" in
1213 "SunOS 5"*)
1214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether -R must be followed by a space" >&5
1216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1221 int main() {
1223 ; return 0; }
1225 if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1226 rm -rf conftest*
1227 ac_R_nospace=yes
1228 else
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1231 rm -rf conftest*
1232 ac_R_nospace=no
1234 rm -f conftest*
1235 if test $ac_R_nospace = yes; then
1236 echo "$ac_t""no" 1>&6
1237 X_LIBS="$X_LIBS -R$x_libraries"
1238 else
1239 LIBS="$ac_xsave_LIBS -R $x_libraries"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1244 int main() {
1246 ; return 0; }
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249 rm -rf conftest*
1250 ac_R_space=yes
1251 else
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1254 rm -rf conftest*
1255 ac_R_space=no
1257 rm -f conftest*
1258 if test $ac_R_space = yes; then
1259 echo "$ac_t""yes" 1>&6
1260 X_LIBS="$X_LIBS -R $x_libraries"
1261 else
1262 echo "$ac_t""neither works" 1>&6
1265 LIBS="$ac_xsave_LIBS"
1266 esac
1269 # Check for system-dependent libraries X programs must link with.
1270 # Do this before checking for the system-independent R6 libraries
1271 # (-lICE), since we may need -lsocket or whatever for X linking.
1273 if test "$ISC" = yes; then
1274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1275 else
1276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1277 # libraries were built with DECnet support. And karl@cs.umb.edu says
1278 # the Alpha needs dnet_stub (dnet does not exist).
1279 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1280 echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5
1281 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-ldnet $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1293 char dnet_ntoa();
1295 int main() {
1296 dnet_ntoa()
1297 ; return 0; }
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 rm -rf conftest*
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1302 else
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1305 rm -rf conftest*
1306 eval "ac_cv_lib_$ac_lib_var=no"
1308 rm -f conftest*
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1315 else
1316 echo "$ac_t""no" 1>&6
1319 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1321 echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5
1322 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 ac_save_LIBS="$LIBS"
1327 LIBS="-ldnet_stub $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334 char dnet_ntoa();
1336 int main() {
1337 dnet_ntoa()
1338 ; return 0; }
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1343 else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=no"
1349 rm -f conftest*
1350 LIBS="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1356 else
1357 echo "$ac_t""no" 1>&6
1362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1363 # to get the SysV transport functions.
1364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1365 # needs -lnsl.
1366 # The nsl library prevents programs from opening the X display
1367 # on Irix 5.2, according to dickey@clark.net.
1368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1369 echo "configure:1370: checking for gethostbyname" >&5
1370 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* System header to define __stub macros and hopefully few prototypes,
1377 which can conflict with char gethostbyname(); below. */
1378 #include <assert.h>
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382 char gethostbyname();
1384 int main() {
1386 /* The GNU C library defines this for functions which it implements
1387 to always fail with ENOSYS. Some functions are actually named
1388 something starting with __ and the normal name is an alias. */
1389 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1390 choke me
1391 #else
1392 gethostbyname();
1393 #endif
1395 ; return 0; }
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 rm -rf conftest*
1399 eval "ac_cv_func_gethostbyname=yes"
1400 else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404 eval "ac_cv_func_gethostbyname=no"
1406 rm -f conftest*
1409 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1412 else
1413 echo "$ac_t""no" 1>&6
1416 if test $ac_cv_func_gethostbyname = no; then
1417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1418 echo "configure:1419: checking for gethostbyname in -lnsl" >&5
1419 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 ac_save_LIBS="$LIBS"
1424 LIBS="-lnsl $LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char gethostbyname();
1433 int main() {
1434 gethostbyname()
1435 ; return 0; }
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 rm -rf conftest*
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1440 else
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 rm -rf conftest*
1444 eval "ac_cv_lib_$ac_lib_var=no"
1446 rm -f conftest*
1447 LIBS="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1453 else
1454 echo "$ac_t""no" 1>&6
1459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1460 # socket/setsockopt and other routines are undefined under SCO ODT
1461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1462 # on later versions), says simon@lia.di.epfl.ch: it contains
1463 # gethostby* variants that don't use the nameserver (or something).
1464 # -lsocket must be given before -lnsl if both are needed.
1465 # We assume that if connect needs -lnsl, so does gethostbyname.
1466 echo $ac_n "checking for connect""... $ac_c" 1>&6
1467 echo "configure:1468: checking for connect" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char connect(); below. */
1476 #include <assert.h>
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1480 char connect();
1482 int main() {
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_connect) || defined (__stub___connect)
1488 choke me
1489 #else
1490 connect();
1491 #endif
1493 ; return 0; }
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496 rm -rf conftest*
1497 eval "ac_cv_func_connect=yes"
1498 else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_func_connect=no"
1504 rm -f conftest*
1507 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1510 else
1511 echo "$ac_t""no" 1>&6
1514 if test $ac_cv_func_connect = no; then
1515 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1516 echo "configure:1517: checking for connect in -lsocket" >&5
1517 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521 ac_save_LIBS="$LIBS"
1522 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1529 char connect();
1531 int main() {
1532 connect()
1533 ; return 0; }
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536 rm -rf conftest*
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1538 else
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 rm -rf conftest*
1542 eval "ac_cv_lib_$ac_lib_var=no"
1544 rm -f conftest*
1545 LIBS="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1551 else
1552 echo "$ac_t""no" 1>&6
1557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1558 echo $ac_n "checking for remove""... $ac_c" 1>&6
1559 echo "configure:1560: checking for remove" >&5
1560 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char remove(); below. */
1568 #include <assert.h>
1569 /* Override any gcc2 internal prototype to avoid an error. */
1570 /* We use char because int might match the return type of a gcc2
1571 builtin and then its argument prototype would still apply. */
1572 char remove();
1574 int main() {
1576 /* The GNU C library defines this for functions which it implements
1577 to always fail with ENOSYS. Some functions are actually named
1578 something starting with __ and the normal name is an alias. */
1579 #if defined (__stub_remove) || defined (__stub___remove)
1580 choke me
1581 #else
1582 remove();
1583 #endif
1585 ; return 0; }
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588 rm -rf conftest*
1589 eval "ac_cv_func_remove=yes"
1590 else
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 eval "ac_cv_func_remove=no"
1596 rm -f conftest*
1599 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1602 else
1603 echo "$ac_t""no" 1>&6
1606 if test $ac_cv_func_remove = no; then
1607 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1608 echo "configure:1609: checking for remove in -lposix" >&5
1609 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1612 else
1613 ac_save_LIBS="$LIBS"
1614 LIBS="-lposix $LIBS"
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1621 char remove();
1623 int main() {
1624 remove()
1625 ; return 0; }
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=no"
1636 rm -f conftest*
1637 LIBS="$ac_save_LIBS"
1640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1643 else
1644 echo "$ac_t""no" 1>&6
1649 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1650 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1651 echo "configure:1652: checking for shmat" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char shmat(); below. */
1660 #include <assert.h>
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1664 char shmat();
1666 int main() {
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_shmat) || defined (__stub___shmat)
1672 choke me
1673 #else
1674 shmat();
1675 #endif
1677 ; return 0; }
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 rm -rf conftest*
1681 eval "ac_cv_func_shmat=yes"
1682 else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 eval "ac_cv_func_shmat=no"
1688 rm -f conftest*
1691 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1694 else
1695 echo "$ac_t""no" 1>&6
1698 if test $ac_cv_func_shmat = no; then
1699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1700 echo "configure:1701: checking for shmat in -lipc" >&5
1701 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705 ac_save_LIBS="$LIBS"
1706 LIBS="-lipc $LIBS"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1713 char shmat();
1715 int main() {
1716 shmat()
1717 ; return 0; }
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 rm -rf conftest*
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1722 else
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=no"
1728 rm -f conftest*
1729 LIBS="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1735 else
1736 echo "$ac_t""no" 1>&6
1742 # Check for libraries that X11R6 Xt/Xaw programs need.
1743 ac_save_LDFLAGS="$LDFLAGS"
1744 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1745 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1746 # check for ICE first), but we must link in the order -lSM -lICE or
1747 # we get undefined symbols. So assume we have SM if we have ICE.
1748 # These have to be linked with before -lX11, unlike the other
1749 # libraries we check for below, so use a different variable.
1750 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1751 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1752 echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5
1753 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765 char IceConnectionNumber();
1767 int main() {
1768 IceConnectionNumber()
1769 ; return 0; }
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1774 else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 eval "ac_cv_lib_$ac_lib_var=no"
1780 rm -f conftest*
1781 LIBS="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1787 else
1788 echo "$ac_t""no" 1>&6
1791 LDFLAGS="$ac_save_LDFLAGS"
1795 for ac_prog in 'bison -y' byacc
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_word" >&5
1801 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 if test -n "$YACC"; then
1805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1806 else
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 ac_dummy="$PATH"
1809 for ac_dir in $ac_dummy; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1812 ac_cv_prog_YACC="$ac_prog"
1813 break
1815 done
1816 IFS="$ac_save_ifs"
1819 YACC="$ac_cv_prog_YACC"
1820 if test -n "$YACC"; then
1821 echo "$ac_t""$YACC" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1826 test -n "$YACC" && break
1827 done
1828 test -n "$YACC" || YACC="yacc"
1830 # Extract the first word of "flex", so it can be a program name with args.
1831 set dummy flex; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 if test -n "$LEX"; then
1838 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1839 else
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 ac_dummy="$PATH"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_LEX="flex"
1846 break
1848 done
1849 IFS="$ac_save_ifs"
1850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1853 LEX="$ac_cv_prog_LEX"
1854 if test -n "$LEX"; then
1855 echo "$ac_t""$LEX" 1>&6
1856 else
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$LEXLIB"
1861 then
1862 case "$LEX" in
1863 flex*) ac_lib=fl ;;
1864 *) ac_lib=l ;;
1865 esac
1866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1867 echo "configure:1868: checking for yywrap in -l$ac_lib" >&5
1868 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 ac_save_LIBS="$LIBS"
1873 LIBS="-l$ac_lib $LIBS"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1880 char yywrap();
1882 int main() {
1883 yywrap()
1884 ; return 0; }
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 rm -rf conftest*
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1889 else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 eval "ac_cv_lib_$ac_lib_var=no"
1895 rm -f conftest*
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 LEXLIB="-l$ac_lib"
1902 else
1903 echo "$ac_t""no" 1>&6
1908 for ac_prog in $LEX flex lex
1910 # Extract the first word of "$ac_prog", so it can be a program name with args.
1911 set dummy $ac_prog; ac_word=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1914 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 if test -n "$XLEX"; then
1918 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1919 else
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 ac_dummy="$PATH"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_prog_XLEX="$ac_prog"
1926 break
1928 done
1929 IFS="$ac_save_ifs"
1932 XLEX="$ac_cv_prog_XLEX"
1933 if test -n "$XLEX"; then
1934 echo "$ac_t""$XLEX" 1>&6
1935 else
1936 echo "$ac_t""no" 1>&6
1939 test -n "$XLEX" && break
1940 done
1941 test -n "$XLEX" || XLEX="none"
1943 if test "$XLEX" = "none"
1944 then
1945 echo "*** Error: No suitable lex found. ***"
1946 echo " Please install the 'flex' package."
1947 exit 1
1949 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1950 echo "configure:1951: checking lex output file root" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953 else
1954 # The minimal lex program is just a single line: %%. But some broken lexes
1955 # (Solaris, I think it was) want two %% lines, so accommodate them.
1956 echo '%%
1957 %%' | $LEX
1958 if test -f lex.yy.c; then
1959 ac_cv_prog_lex_root=lex.yy
1960 elif test -f lexyy.c; then
1961 ac_cv_prog_lex_root=lexyy
1962 else
1963 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1967 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1968 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1970 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether yytext is a pointer" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975 # POSIX says lex can declare yytext either as a pointer or an array; the
1976 # default is implementation-dependent. Figure out which it is, since
1977 # not all implementations provide the %pointer and %array declarations.
1978 ac_cv_prog_lex_yytext_pointer=no
1979 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1980 ac_save_LIBS="$LIBS"
1981 LIBS="$LIBS $LEXLIB"
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 `cat $LEX_OUTPUT_ROOT.c`
1986 int main() {
1988 ; return 0; }
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1991 rm -rf conftest*
1992 ac_cv_prog_lex_yytext_pointer=yes
1993 else
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 rm -f conftest*
1998 LIBS="$ac_save_LIBS"
1999 rm -f "${LEX_OUTPUT_ROOT}.c"
2003 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2004 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2005 cat >> confdefs.h <<\EOF
2006 #define YYTEXT_POINTER 1
2011 # Extract the first word of "ranlib", so it can be a program name with args.
2012 set dummy ranlib; ac_word=$2
2013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2014 echo "configure:2015: checking for $ac_word" >&5
2015 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017 else
2018 if test -n "$RANLIB"; then
2019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2020 else
2021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2022 ac_dummy="$PATH"
2023 for ac_dir in $ac_dummy; do
2024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_RANLIB="ranlib"
2027 break
2029 done
2030 IFS="$ac_save_ifs"
2031 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2034 RANLIB="$ac_cv_prog_RANLIB"
2035 if test -n "$RANLIB"; then
2036 echo "$ac_t""$RANLIB" 1>&6
2037 else
2038 echo "$ac_t""no" 1>&6
2041 # Find a good install program. We prefer a C program (faster),
2042 # so one script is as good as another. But avoid the broken or
2043 # incompatible versions:
2044 # SysV /etc/install, /usr/sbin/install
2045 # SunOS /usr/etc/install
2046 # IRIX /sbin/install
2047 # AIX /bin/install
2048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2051 # ./install, which can be erroneously created by make from ./install.sh.
2052 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2053 echo "configure:2054: checking for a BSD compatible install" >&5
2054 if test -z "$INSTALL"; then
2055 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2059 for ac_dir in $PATH; do
2060 # Account for people who put trailing slashes in PATH elements.
2061 case "$ac_dir/" in
2062 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2064 # OSF1 and SCO ODT 3.0 have their own names for install.
2065 # Don't use installbsd from OSF since it installs stuff as root
2066 # by default.
2067 for ac_prog in ginstall scoinst install; do
2068 if test -f $ac_dir/$ac_prog; then
2069 if test $ac_prog = install &&
2070 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2071 # AIX install. It has an incompatible calling convention.
2073 else
2074 ac_cv_path_install="$ac_dir/$ac_prog -c"
2075 break 2
2078 done
2080 esac
2081 done
2082 IFS="$ac_save_IFS"
2085 if test "${ac_cv_path_install+set}" = set; then
2086 INSTALL="$ac_cv_path_install"
2087 else
2088 # As a last resort, use the slow shell script. We don't cache a
2089 # path for INSTALL within a source directory, because that will
2090 # break other packages using the cache if that directory is
2091 # removed, or if the path is relative.
2092 INSTALL="$ac_install_sh"
2095 echo "$ac_t""$INSTALL" 1>&6
2097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2098 # It thinks the first close brace ends the variable substitution.
2099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2105 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether ln -s works" >&5
2107 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109 else
2110 rm -f conftestdata
2111 if ln -s X conftestdata 2>/dev/null
2112 then
2113 rm -f conftestdata
2114 ac_cv_prog_LN_S="ln -s"
2115 else
2116 ac_cv_prog_LN_S=ln
2119 LN_S="$ac_cv_prog_LN_S"
2120 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2121 echo "$ac_t""yes" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2126 # Extract the first word of "c2man", so it can be a program name with args.
2127 set dummy c2man; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 if test -n "$C2MAN"; then
2134 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2135 else
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2137 ac_dummy="$PATH"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_C2MAN="c2man"
2142 break
2144 done
2145 IFS="$ac_save_ifs"
2146 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2149 C2MAN="$ac_cv_prog_C2MAN"
2150 if test -n "$C2MAN"; then
2151 echo "$ac_t""$C2MAN" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2156 # Extract the first word of "ldconfig", so it can be a program name with args.
2157 set dummy ldconfig; ac_word=$2
2158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_word" >&5
2160 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 case "$LDCONFIG" in
2165 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2167 ?:/*)
2168 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2172 ac_dummy="/sbin:/usr/sbin:$PATH"
2173 for ac_dir in $ac_dummy; do
2174 test -z "$ac_dir" && ac_dir=.
2175 if test -f $ac_dir/$ac_word; then
2176 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2177 break
2179 done
2180 IFS="$ac_save_ifs"
2181 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2183 esac
2185 LDCONFIG="$ac_cv_path_LDCONFIG"
2186 if test -n "$LDCONFIG"; then
2187 echo "$ac_t""$LDCONFIG" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2193 for ac_prog in lclint lint
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 if test -n "$LINT"; then
2203 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2204 else
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2206 ac_dummy="$PATH"
2207 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_LINT="$ac_prog"
2211 break
2213 done
2214 IFS="$ac_save_ifs"
2217 LINT="$ac_cv_prog_LINT"
2218 if test -n "$LINT"; then
2219 echo "$ac_t""$LINT" 1>&6
2220 else
2221 echo "$ac_t""no" 1>&6
2224 test -n "$LINT" && break
2225 done
2227 if test "$LINT" = "lint"
2228 then
2229 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2235 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2236 echo "configure:2237: checking for sqrt in -lm" >&5
2237 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241 ac_save_LIBS="$LIBS"
2242 LIBS="-lm $LIBS"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* Override any gcc2 internal prototype to avoid an error. */
2247 /* We use char because int might match the return type of a gcc2
2248 builtin and then its argument prototype would still apply. */
2249 char sqrt();
2251 int main() {
2252 sqrt()
2253 ; return 0; }
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=yes"
2258 else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 eval "ac_cv_lib_$ac_lib_var=no"
2264 rm -f conftest*
2265 LIBS="$ac_save_LIBS"
2268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2272 cat >> confdefs.h <<EOF
2273 #define $ac_tr_lib 1
2276 LIBS="-lm $LIBS"
2278 else
2279 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2283 echo "configure:2284: checking for i386_set_ldt in -li386" >&5
2284 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288 ac_save_LIBS="$LIBS"
2289 LIBS="-li386 $LIBS"
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2296 char i386_set_ldt();
2298 int main() {
2299 i386_set_ldt()
2300 ; return 0; }
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 rm -rf conftest*
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 eval "ac_cv_lib_$ac_lib_var=no"
2311 rm -f conftest*
2312 LIBS="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2319 cat >> confdefs.h <<EOF
2320 #define $ac_tr_lib 1
2323 LIBS="-li386 $LIBS"
2325 else
2326 echo "$ac_t""no" 1>&6
2329 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2330 echo "configure:2331: checking for _oss_ioctl in -lossaudio" >&5
2331 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 ac_save_LIBS="$LIBS"
2336 LIBS="-lossaudio $LIBS"
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2343 char _oss_ioctl();
2345 int main() {
2346 _oss_ioctl()
2347 ; return 0; }
2349 if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2350 rm -rf conftest*
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2352 else
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 rm -rf conftest*
2356 eval "ac_cv_lib_$ac_lib_var=no"
2358 rm -f conftest*
2359 LIBS="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_lib 1
2370 LIBS="-lossaudio $LIBS"
2372 else
2373 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2377 echo "configure:2378: checking for iswalnum in -lw" >&5
2378 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382 ac_save_LIBS="$LIBS"
2383 LIBS="-lw $LIBS"
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2390 char iswalnum();
2392 int main() {
2393 iswalnum()
2394 ; return 0; }
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2397 rm -rf conftest*
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2399 else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 eval "ac_cv_lib_$ac_lib_var=no"
2405 rm -f conftest*
2406 LIBS="$ac_save_LIBS"
2409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2413 cat >> confdefs.h <<EOF
2414 #define $ac_tr_lib 1
2417 LIBS="-lw $LIBS"
2419 else
2420 echo "$ac_t""no" 1>&6
2423 for ac_func in gethostbyname
2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_func" >&5
2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char $ac_func(); below. */
2435 #include <assert.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 $ac_func();
2441 int main() {
2443 /* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2447 choke me
2448 #else
2449 $ac_func();
2450 #endif
2452 ; return 0; }
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 eval "ac_cv_func_$ac_func=yes"
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_func_$ac_func=no"
2463 rm -f conftest*
2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2469 cat >> confdefs.h <<EOF
2470 #define $ac_tr_func 1
2473 else
2474 echo "$ac_t""no" 1>&6
2475 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2476 echo "configure:2477: checking for gethostbyname in -lnsl" >&5
2477 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 ac_save_LIBS="$LIBS"
2482 LIBS="-lnsl -lsocket $LIBS"
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2489 char gethostbyname();
2491 int main() {
2492 gethostbyname()
2493 ; return 0; }
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 rm -rf conftest*
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2498 else
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2501 rm -rf conftest*
2502 eval "ac_cv_lib_$ac_lib_var=no"
2504 rm -f conftest*
2505 LIBS="$ac_save_LIBS"
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2511 else
2512 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2514 echo "configure:2515: checking for gethostbyname in -lsocket" >&5
2515 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2518 else
2519 ac_save_LIBS="$LIBS"
2520 LIBS="-lsocket -lnsl $LIBS"
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 /* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2527 char gethostbyname();
2529 int main() {
2530 gethostbyname()
2531 ; return 0; }
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2534 rm -rf conftest*
2535 eval "ac_cv_lib_$ac_lib_var=yes"
2536 else
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2539 rm -rf conftest*
2540 eval "ac_cv_lib_$ac_lib_var=no"
2542 rm -f conftest*
2543 LIBS="$ac_save_LIBS"
2546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2547 echo "$ac_t""yes" 1>&6
2548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2549 else
2550 echo "$ac_t""no" 1>&6
2556 done
2558 for ac_func in connect
2560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_func" >&5
2562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $ac_func(); below. */
2570 #include <assert.h>
2571 /* Override any gcc2 internal prototype to avoid an error. */
2572 /* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2574 char $ac_func();
2576 int main() {
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2582 choke me
2583 #else
2584 $ac_func();
2585 #endif
2587 ; return 0; }
2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2590 rm -rf conftest*
2591 eval "ac_cv_func_$ac_func=yes"
2592 else
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2595 rm -rf conftest*
2596 eval "ac_cv_func_$ac_func=no"
2598 rm -f conftest*
2601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2604 cat >> confdefs.h <<EOF
2605 #define $ac_tr_func 1
2608 else
2609 echo "$ac_t""no" 1>&6
2610 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2611 echo "configure:2612: checking for connect in -lsocket" >&5
2612 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2615 else
2616 ac_save_LIBS="$LIBS"
2617 LIBS="-lsocket $LIBS"
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624 char connect();
2626 int main() {
2627 connect()
2628 ; return 0; }
2630 if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2631 rm -rf conftest*
2632 eval "ac_cv_lib_$ac_lib_var=yes"
2633 else
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 eval "ac_cv_lib_$ac_lib_var=no"
2639 rm -f conftest*
2640 LIBS="$ac_save_LIBS"
2643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2647 cat >> confdefs.h <<EOF
2648 #define $ac_tr_lib 1
2651 LIBS="-lsocket $LIBS"
2653 else
2654 echo "$ac_t""no" 1>&6
2658 done
2660 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2661 echo "configure:2662: checking for setrunelocale in -lxpg4" >&5
2662 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2665 else
2666 ac_save_LIBS="$LIBS"
2667 LIBS="-lxpg4 $LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674 char setrunelocale();
2676 int main() {
2677 setrunelocale()
2678 ; return 0; }
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2681 rm -rf conftest*
2682 eval "ac_cv_lib_$ac_lib_var=yes"
2683 else
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 rm -rf conftest*
2687 eval "ac_cv_lib_$ac_lib_var=no"
2689 rm -f conftest*
2690 LIBS="$ac_save_LIBS"
2693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_lib 1
2701 LIBS="-lxpg4 $LIBS"
2703 else
2704 echo "$ac_t""no" 1>&6
2707 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2708 echo "configure:2709: checking for mmap in -lmmap" >&5
2709 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712 else
2713 ac_save_LIBS="$LIBS"
2714 LIBS="-lmmap $LIBS"
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2721 char mmap();
2723 int main() {
2724 mmap()
2725 ; return 0; }
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 rm -rf conftest*
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2730 else
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 rm -rf conftest*
2734 eval "ac_cv_lib_$ac_lib_var=no"
2736 rm -f conftest*
2737 LIBS="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2744 cat >> confdefs.h <<EOF
2745 #define $ac_tr_lib 1
2748 LIBS="-lmmap $LIBS"
2750 else
2751 echo "$ac_t""no" 1>&6
2754 for ac_func in openpty
2756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_func" >&5
2758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char $ac_func(); below. */
2766 #include <assert.h>
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2770 char $ac_func();
2772 int main() {
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2778 choke me
2779 #else
2780 $ac_func();
2781 #endif
2783 ; return 0; }
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 rm -rf conftest*
2787 eval "ac_cv_func_$ac_func=yes"
2788 else
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 rm -rf conftest*
2792 eval "ac_cv_func_$ac_func=no"
2794 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_func 1
2804 else
2805 echo "$ac_t""no" 1>&6
2806 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2807 echo "configure:2808: checking for openpty in -lutil" >&5
2808 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2811 else
2812 ac_save_LIBS="$LIBS"
2813 LIBS="-lutil $LIBS"
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 /* We use char because int might match the return type of a gcc2
2819 builtin and then its argument prototype would still apply. */
2820 char openpty();
2822 int main() {
2823 openpty()
2824 ; return 0; }
2826 if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2827 rm -rf conftest*
2828 eval "ac_cv_lib_$ac_lib_var=yes"
2829 else
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 eval "ac_cv_lib_$ac_lib_var=no"
2835 rm -f conftest*
2836 LIBS="$ac_save_LIBS"
2839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 cat >> confdefs.h <<\EOF
2842 #define HAVE_OPENPTY 1
2845 LIBS="$LIBS -lutil"
2847 else
2848 echo "$ac_t""no" 1>&6
2852 done
2855 for ac_hdr in dlfcn.h
2857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <$ac_hdr>
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=yes"
2874 else
2875 echo "$ac_err" >&5
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_header_$ac_safe=no"
2881 rm -f conftest*
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h <<EOF
2887 #define $ac_tr_hdr 1
2889 for ac_func in dlopen
2891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2892 echo "configure:2893: checking for $ac_func" >&5
2893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895 else
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char $ac_func(); below. */
2901 #include <assert.h>
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905 char $ac_func();
2907 int main() {
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913 choke me
2914 #else
2915 $ac_func();
2916 #endif
2918 ; return 0; }
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 rm -rf conftest*
2922 eval "ac_cv_func_$ac_func=yes"
2923 else
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 rm -rf conftest*
2927 eval "ac_cv_func_$ac_func=no"
2929 rm -f conftest*
2932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2935 cat >> confdefs.h <<EOF
2936 #define $ac_tr_func 1
2938 cat >> confdefs.h <<\EOF
2939 #define HAVE_DL_API 1
2942 else
2943 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2945 echo "configure:2946: checking for dlopen in -ldl" >&5
2946 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2949 else
2950 ac_save_LIBS="$LIBS"
2951 LIBS="-ldl $LIBS"
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 /* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2958 char dlopen();
2960 int main() {
2961 dlopen()
2962 ; return 0; }
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2965 rm -rf conftest*
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2967 else
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 rm -rf conftest*
2971 eval "ac_cv_lib_$ac_lib_var=no"
2973 rm -f conftest*
2974 LIBS="$ac_save_LIBS"
2977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 cat >> confdefs.h <<\EOF
2980 #define HAVE_DL_API 1
2983 LIBS="$LIBS -ldl"
2984 else
2985 echo "$ac_t""no" 1>&6
2986 LIBEXT="a"
2992 done
2994 else
2995 echo "$ac_t""no" 1>&6
2996 LIBEXT="a"
2999 done
3003 X_DLLS=""
3005 XFILES=""
3007 OPENGLFILES=""
3009 OPENGL32_DLL=""
3011 DGA_SRCS=""
3013 DGA2_SRCS=""
3015 MESA_SRCS=""
3016 if test "$have_x" = "yes"
3017 then
3018 XLIB="-lXext -lX11"
3019 ac_save_CPPFLAGS="$CPPFLAGS"
3020 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3022 for ac_hdr in X11/xpm.h
3024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_hdr" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <$ac_hdr>
3035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3036 { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3038 if test -z "$ac_err"; then
3039 rm -rf conftest*
3040 eval "ac_cv_header_$ac_safe=yes"
3041 else
3042 echo "$ac_err" >&5
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 rm -rf conftest*
3046 eval "ac_cv_header_$ac_safe=no"
3048 rm -f conftest*
3050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3053 cat >> confdefs.h <<EOF
3054 #define $ac_tr_hdr 1
3056 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3057 echo "configure:3058: checking for XpmCreatePixmapFromData in -lXpm" >&5
3058 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3062 ac_save_LIBS="$LIBS"
3063 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3064 $LIBS"
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3071 char XpmCreatePixmapFromData();
3073 int main() {
3074 XpmCreatePixmapFromData()
3075 ; return 0; }
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3080 else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 eval "ac_cv_lib_$ac_lib_var=no"
3086 rm -f conftest*
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 cat >> confdefs.h <<\EOF
3093 #define HAVE_LIBXXPM 1
3095 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3096 else
3097 echo "$ac_t""no" 1>&6
3101 else
3102 echo "$ac_t""no" 1>&6
3103 echo "Redhat : xpm xpm-devel"
3104 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3105 echo "SuSE : xpm"
3106 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3107 echo
3108 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3109 echo "the directory /contrib/libraries."
3110 echo
3111 exit 1
3115 done
3118 for ac_hdr in X11/Xlib.h
3120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_hdr" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <$ac_hdr>
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3135 rm -rf conftest*
3136 eval "ac_cv_header_$ac_safe=yes"
3137 else
3138 echo "$ac_err" >&5
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 eval "ac_cv_header_$ac_safe=no"
3144 rm -f conftest*
3146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3149 cat >> confdefs.h <<EOF
3150 #define $ac_tr_hdr 1
3153 for ac_hdr in X11/extensions/XShm.h
3155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_hdr" >&5
3158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3160 else
3161 cat > conftest.$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #include <$ac_hdr>
3166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3167 { (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169 if test -z "$ac_err"; then
3170 rm -rf conftest*
3171 eval "ac_cv_header_$ac_safe=yes"
3172 else
3173 echo "$ac_err" >&5
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 rm -rf conftest*
3177 eval "ac_cv_header_$ac_safe=no"
3179 rm -f conftest*
3181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3184 cat >> confdefs.h <<EOF
3185 #define $ac_tr_hdr 1
3187 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3188 echo "configure:3189: checking for XShmQueryExtension in -lXext" >&5
3189 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193 ac_save_LIBS="$LIBS"
3194 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3201 char XShmQueryExtension();
3203 int main() {
3204 XShmQueryExtension()
3205 ; return 0; }
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3208 rm -rf conftest*
3209 eval "ac_cv_lib_$ac_lib_var=yes"
3210 else
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 rm -rf conftest*
3214 eval "ac_cv_lib_$ac_lib_var=no"
3216 rm -f conftest*
3217 LIBS="$ac_save_LIBS"
3220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 cat >> confdefs.h <<\EOF
3223 #define HAVE_LIBXXSHM 1
3226 else
3227 echo "$ac_t""no" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 echo "configure: warning: Xshm extension not found!!" 1>&2
3236 done
3239 for ac_hdr in X11/Xlib.h X11/extensions/shape.h
3241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_hdr" >&5
3244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <$ac_hdr>
3252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3256 rm -rf conftest*
3257 eval "ac_cv_header_$ac_safe=yes"
3258 else
3259 echo "$ac_err" >&5
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_header_$ac_safe=no"
3265 rm -f conftest*
3267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3270 cat >> confdefs.h <<EOF
3271 #define $ac_tr_hdr 1
3273 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3274 echo "configure:3275: checking for XShapeQueryExtension in -lXext" >&5
3275 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279 ac_save_LIBS="$LIBS"
3280 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3281 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 /* Override any gcc2 internal prototype to avoid an error. */
3285 /* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287 char XShapeQueryExtension();
3289 int main() {
3290 XShapeQueryExtension()
3291 ; return 0; }
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3294 rm -rf conftest*
3295 eval "ac_cv_lib_$ac_lib_var=yes"
3296 else
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 rm -rf conftest*
3300 eval "ac_cv_lib_$ac_lib_var=no"
3302 rm -f conftest*
3303 LIBS="$ac_save_LIBS"
3306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 cat >> confdefs.h <<\EOF
3309 #define HAVE_LIBXSHAPE 1
3312 else
3313 echo "$ac_t""no" 1>&6
3317 else
3318 echo "$ac_t""no" 1>&6
3319 echo "configure: warning: XShape extension found!!" 1>&2
3322 done
3325 for ac_hdr in X11/extensions/xf86dga.h
3327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_hdr" >&5
3330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3332 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <$ac_hdr>
3338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3339 { (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3341 if test -z "$ac_err"; then
3342 rm -rf conftest*
3343 eval "ac_cv_header_$ac_safe=yes"
3344 else
3345 echo "$ac_err" >&5
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 rm -rf conftest*
3349 eval "ac_cv_header_$ac_safe=no"
3351 rm -f conftest*
3353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3356 cat >> confdefs.h <<EOF
3357 #define $ac_tr_hdr 1
3359 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3360 echo "configure:3361: checking for XDGAQueryExtension in -lXxf86dga" >&5
3361 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 ac_save_LIBS="$LIBS"
3366 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3367 $LIBS"
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3374 char XDGAQueryExtension();
3376 int main() {
3377 XDGAQueryExtension()
3378 ; return 0; }
3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 rm -rf conftest*
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3383 else
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3386 rm -rf conftest*
3387 eval "ac_cv_lib_$ac_lib_var=no"
3389 rm -f conftest*
3390 LIBS="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 cat >> confdefs.h <<\EOF
3396 #define HAVE_LIBXXF86DGA2 1
3399 cat >> confdefs.h <<\EOF
3400 #define HAVE_LIBXXF86DGA 1
3403 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3404 DGA_SRCS='$(DGA_SRCS)'
3405 DGA2_SRCS='$(DGA2_SRCS)'
3407 else
3408 echo "$ac_t""no" 1>&6
3409 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3410 echo "configure:3411: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3411 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 ac_save_LIBS="$LIBS"
3416 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3417 $LIBS"
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3424 char XF86DGAQueryExtension();
3426 int main() {
3427 XF86DGAQueryExtension()
3428 ; return 0; }
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3431 rm -rf conftest*
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3433 else
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3436 rm -rf conftest*
3437 eval "ac_cv_lib_$ac_lib_var=no"
3439 rm -f conftest*
3440 LIBS="$ac_save_LIBS"
3443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3445 cat >> confdefs.h <<\EOF
3446 #define HAVE_LIBXXF86DGA 1
3449 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3450 DGA_SRCS='$(DGA_SRCS)'
3452 else
3453 echo "$ac_t""no" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 echo "configure: warning: DGA extension not found!!" 1>&2
3465 done
3468 for ac_hdr in X11/extensions/xf86vmode.h
3470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_hdr" >&5
3473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3475 else
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 #include <$ac_hdr>
3481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3482 { (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3484 if test -z "$ac_err"; then
3485 rm -rf conftest*
3486 eval "ac_cv_header_$ac_safe=yes"
3487 else
3488 echo "$ac_err" >&5
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3491 rm -rf conftest*
3492 eval "ac_cv_header_$ac_safe=no"
3494 rm -f conftest*
3496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3499 cat >> confdefs.h <<EOF
3500 #define $ac_tr_hdr 1
3502 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3503 echo "configure:3504: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3504 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3507 else
3508 ac_save_LIBS="$LIBS"
3509 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3510 $LIBS"
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 /* We use char because int might match the return type of a gcc2
3516 builtin and then its argument prototype would still apply. */
3517 char XF86VidModeQueryExtension();
3519 int main() {
3520 XF86VidModeQueryExtension()
3521 ; return 0; }
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 rm -rf conftest*
3525 eval "ac_cv_lib_$ac_lib_var=yes"
3526 else
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 eval "ac_cv_lib_$ac_lib_var=no"
3532 rm -f conftest*
3533 LIBS="$ac_save_LIBS"
3536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 cat >> confdefs.h <<\EOF
3539 #define HAVE_LIBXXF86VM 1
3542 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3544 else
3545 echo "$ac_t""no" 1>&6
3549 else
3550 echo "$ac_t""no" 1>&6
3551 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3554 done
3558 else
3559 echo "$ac_t""no" 1>&6
3561 done
3563 if test $OPENGL = "yes" -o $OPENGL = "normal"
3564 then
3565 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_hdr" >&5
3570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <$ac_hdr>
3578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3579 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3581 if test -z "$ac_err"; then
3582 rm -rf conftest*
3583 eval "ac_cv_header_$ac_safe=yes"
3584 else
3585 echo "$ac_err" >&5
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 rm -rf conftest*
3589 eval "ac_cv_header_$ac_safe=no"
3591 rm -f conftest*
3593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_hdr 1
3600 else
3601 echo "$ac_t""no" 1>&6
3603 done
3605 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"
3606 then
3607 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3608 echo "configure:3609: checking "for up-to-date OpenGL version"" >&5
3609 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3611 else
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <GL/gl.h>
3616 int main() {
3617 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3618 ; return 0; }
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621 rm -rf conftest*
3622 wine_cv_opengl_version_OK="yes"
3623 else
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3626 rm -rf conftest*
3627 wine_cv_opengl_version_OK="no"
3630 rm -f conftest*
3634 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3636 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3637 echo "configure:3638: checking "for thread-safe OpenGL version"" >&5
3638 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640 else
3641 saved_libs=$LIBS
3642 LIBS="$X_LIBS -lGL"
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3647 int main() {
3648 pthread_getspecific();
3649 ; return 0; }
3651 if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652 rm -rf conftest*
3653 wine_cv_opengl_version_threadsafe="yes"
3654 else
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3657 rm -rf conftest*
3658 wine_cv_opengl_version_threadsafe="no"
3660 rm -f conftest*
3661 LIBS=$saved_libs
3665 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3667 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3668 then
3669 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3670 echo "configure:3671: checking for glXCreateContext in -lGL" >&5
3671 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675 ac_save_LIBS="$LIBS"
3676 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error. */
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3683 char glXCreateContext();
3685 int main() {
3686 glXCreateContext()
3687 ; return 0; }
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3690 rm -rf conftest*
3691 eval "ac_cv_lib_$ac_lib_var=yes"
3692 else
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 rm -rf conftest*
3696 eval "ac_cv_lib_$ac_lib_var=no"
3698 rm -f conftest*
3699 LIBS="$ac_save_LIBS"
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3705 MESA_SRCS='$(MESA_SRCS)'
3707 else
3708 echo "$ac_t""no" 1>&6
3712 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3713 then
3714 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3715 echo "configure:3716: checking for glXGetProcAddressARB in -lGL" >&5
3716 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3719 else
3720 ac_save_LIBS="$LIBS"
3721 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728 char glXGetProcAddressARB();
3730 int main() {
3731 glXGetProcAddressARB()
3732 ; return 0; }
3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3735 rm -rf conftest*
3736 eval "ac_cv_lib_$ac_lib_var=yes"
3737 else
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 rm -rf conftest*
3741 eval "ac_cv_lib_$ac_lib_var=no"
3743 rm -f conftest*
3744 LIBS="$ac_save_LIBS"
3747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 cat >> confdefs.h <<\EOF
3750 #define HAVE_GLX_GETPROCADDRESS 1
3753 else
3754 echo "$ac_t""no" 1>&6
3758 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3759 then
3760 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
3761 echo "configure:3762: checking "for OpenGL extension functions prototypes"" >&5
3762 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3764 else
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <GL/gl.h>
3769 #include <GL/glext.h>
3770 int main() {
3771 PFNGLCOLORTABLEEXTPROC test_proc;
3772 ; return 0; }
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 rm -rf conftest*
3776 wine_cv_extension_prototypes="yes"
3777 else
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 rm -rf conftest*
3781 wine_cv_extension_prototypes="no"
3784 rm -f conftest*
3788 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3789 if test $wine_cv_extension_prototypes = "yes"
3790 then
3791 cat >> confdefs.h <<\EOF
3792 #define HAVE_GLEXT_PROTOTYPES 1
3797 cat >> confdefs.h <<\EOF
3798 #define HAVE_OPENGL 1
3801 OPENGL32_DLL=opengl32
3802 OPENGLFILES='$(OPENGLFILES)'
3809 CPPFLAGS="$ac_save_CPPFLAGS"
3810 X_DLLS='$(X_DLLS)'
3811 XFILES='$(XFILES)'
3812 else
3813 XLIB=""
3814 X_CFLAGS=""
3815 X_LIBS=""
3818 if test "$CURSES" = "yes"
3819 then
3820 for ac_hdr in ncurses.h
3822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_hdr" >&5
3825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <$ac_hdr>
3833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834 { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836 if test -z "$ac_err"; then
3837 rm -rf conftest*
3838 eval "ac_cv_header_$ac_safe=yes"
3839 else
3840 echo "$ac_err" >&5
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 eval "ac_cv_header_$ac_safe=no"
3846 rm -f conftest*
3848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3851 cat >> confdefs.h <<EOF
3852 #define $ac_tr_hdr 1
3855 else
3856 echo "$ac_t""no" 1>&6
3858 done
3860 if test "$ac_cv_header_ncurses_h" = "yes"
3861 then
3862 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3863 echo "configure:3864: checking for waddch in -lncurses" >&5
3864 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867 else
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lncurses $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char waddch();
3878 int main() {
3879 waddch()
3880 ; return 0; }
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 rm -rf conftest*
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3885 else
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 rm -rf conftest*
3889 eval "ac_cv_lib_$ac_lib_var=no"
3891 rm -f conftest*
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3899 cat >> confdefs.h <<EOF
3900 #define $ac_tr_lib 1
3903 LIBS="-lncurses $LIBS"
3905 else
3906 echo "$ac_t""no" 1>&6
3910 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3911 then
3912 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3913 echo "configure:3914: checking for resizeterm in -lncurses" >&5
3914 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3917 else
3918 ac_save_LIBS="$LIBS"
3919 LIBS="-lncurses $LIBS"
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char resizeterm();
3928 int main() {
3929 resizeterm()
3930 ; return 0; }
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3933 rm -rf conftest*
3934 eval "ac_cv_lib_$ac_lib_var=yes"
3935 else
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 eval "ac_cv_lib_$ac_lib_var=no"
3941 rm -f conftest*
3942 LIBS="$ac_save_LIBS"
3945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_RESIZETERM 1
3951 else
3952 echo "$ac_t""no" 1>&6
3955 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3956 echo "configure:3957: checking for getbkgd in -lncurses" >&5
3957 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960 else
3961 ac_save_LIBS="$LIBS"
3962 LIBS="-lncurses $LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char getbkgd();
3971 int main() {
3972 getbkgd()
3973 ; return 0; }
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 rm -rf conftest*
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3978 else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_lib_$ac_lib_var=no"
3984 rm -f conftest*
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_GETBKGD 1
3994 else
3995 echo "$ac_t""no" 1>&6
3998 else
3999 for ac_hdr in curses.h
4001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_hdr" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006 else
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <$ac_hdr>
4012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4013 { (eval echo configure:4014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4015 if test -z "$ac_err"; then
4016 rm -rf conftest*
4017 eval "ac_cv_header_$ac_safe=yes"
4018 else
4019 echo "$ac_err" >&5
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4022 rm -rf conftest*
4023 eval "ac_cv_header_$ac_safe=no"
4025 rm -f conftest*
4027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6
4029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4030 cat >> confdefs.h <<EOF
4031 #define $ac_tr_hdr 1
4034 else
4035 echo "$ac_t""no" 1>&6
4037 done
4039 if test "$ac_cv_header_curses_h" = "yes"
4040 then
4041 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4042 echo "configure:4043: checking for waddch in -lcurses" >&5
4043 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047 ac_save_LIBS="$LIBS"
4048 LIBS="-lcurses $LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4055 char waddch();
4057 int main() {
4058 waddch()
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4062 rm -rf conftest*
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 eval "ac_cv_lib_$ac_lib_var=no"
4070 rm -f conftest*
4071 LIBS="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4078 cat >> confdefs.h <<EOF
4079 #define $ac_tr_lib 1
4082 LIBS="-lcurses $LIBS"
4084 else
4085 echo "$ac_t""no" 1>&6
4088 if test "$ac_cv_lib_curses_waddch" = "yes"
4089 then
4090 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4091 echo "configure:4092: checking for resizeterm in -lcurses" >&5
4092 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4095 else
4096 ac_save_LIBS="$LIBS"
4097 LIBS="-lcurses $LIBS"
4098 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char resizeterm();
4106 int main() {
4107 resizeterm()
4108 ; return 0; }
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4111 rm -rf conftest*
4112 eval "ac_cv_lib_$ac_lib_var=yes"
4113 else
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=no"
4119 rm -f conftest*
4120 LIBS="$ac_save_LIBS"
4123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 cat >> confdefs.h <<\EOF
4126 #define HAVE_RESIZETERM 1
4129 else
4130 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4134 echo "configure:4135: checking for getbkgd in -lcurses" >&5
4135 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 ac_save_LIBS="$LIBS"
4140 LIBS="-lcurses $LIBS"
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* Override any gcc2 internal prototype to avoid an error. */
4145 /* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4147 char getbkgd();
4149 int main() {
4150 getbkgd()
4151 ; return 0; }
4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 rm -rf conftest*
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4156 else
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4159 rm -rf conftest*
4160 eval "ac_cv_lib_$ac_lib_var=no"
4162 rm -f conftest*
4163 LIBS="$ac_save_LIBS"
4166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 cat >> confdefs.h <<\EOF
4169 #define HAVE_GETBKGD 1
4172 else
4173 echo "$ac_t""no" 1>&6
4181 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4182 echo "configure:4183: checking "for GNU style IPX support"" >&5
4183 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/socket.h>
4190 #include <netipx/ipx.h>
4191 int main() {
4192 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4193 ; return 0; }
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 rm -rf conftest*
4197 ac_cv_c_ipx_gnu="yes"
4198 else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 ac_cv_c_ipx_gnu="no"
4204 rm -f conftest*
4208 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4209 if test "$ac_cv_c_ipx_gnu" = "yes"
4210 then
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_IPX_GNU 1
4217 if test "$ac_cv_c_ipx_gnu" = "no"
4218 then
4219 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4220 echo "configure:4221: checking "for linux style IPX support"" >&5
4221 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4223 else
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <sys/socket.h>
4228 #include <asm/types.h>
4229 #include <linux/ipx.h>
4230 int main() {
4231 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
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_ipx_linux="yes"
4237 else
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4240 rm -rf conftest*
4241 ac_cv_c_ipx_linux="no"
4243 rm -f conftest*
4247 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4248 if test "$ac_cv_c_ipx_linux" = "yes"
4249 then
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_IPX_LINUX 1
4257 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4261 echo "configure:4262: checking for $ac_hdr" >&5
4262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <$ac_hdr>
4270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4271 { (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4273 if test -z "$ac_err"; then
4274 rm -rf conftest*
4275 eval "ac_cv_header_$ac_safe=yes"
4276 else
4277 echo "$ac_err" >&5
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 rm -rf conftest*
4281 eval "ac_cv_header_$ac_safe=no"
4283 rm -f conftest*
4285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4288 cat >> confdefs.h <<EOF
4289 #define $ac_tr_hdr 1
4291 break
4292 else
4293 echo "$ac_t""no" 1>&6
4295 done
4298 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4299 echo "configure:4300: checking "for Open Sound System"" >&5
4300 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4302 else
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4307 #if defined(HAVE_SYS_SOUNDCARD_H)
4308 #include <sys/soundcard.h>
4309 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4310 #include <machine/soundcard.h>
4311 #elif defined(HAVE_SOUNDCARD_H)
4312 #include <soundcard.h>
4313 #endif
4315 int main() {
4318 /* check for one of the Open Sound System specific SNDCTL_ defines */
4319 #if !defined(SNDCTL_DSP_STEREO)
4320 #error No open sound system
4321 #endif
4323 ; return 0; }
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 rm -rf conftest*
4327 ac_cv_c_opensoundsystem="yes"
4328 else
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -rf conftest*
4332 ac_cv_c_opensoundsystem="no"
4334 rm -f conftest*
4337 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4339 if test "$ac_cv_c_opensoundsystem" = "yes"
4340 then
4341 cat >> confdefs.h <<\EOF
4342 #define HAVE_OSS 1
4347 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4348 echo "configure:4349: checking "for Open Sound System/MIDI interface"" >&5
4349 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4356 #if defined(HAVE_SYS_SOUNDCARD_H)
4357 #include <sys/soundcard.h>
4358 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4359 #include <machine/soundcard.h>
4360 #elif defined(HAVE_SOUNDCARD_H)
4361 #include <soundcard.h>
4362 #endif
4364 int main() {
4367 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4368 #if !defined(SNDCTL_SEQ_SYNC)
4369 #error No open sound system MIDI interface
4370 #endif
4372 ; return 0; }
4374 if { (eval echo configure:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 rm -rf conftest*
4376 ac_cv_c_opensoundsystem_midi="yes"
4377 else
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4380 rm -rf conftest*
4381 ac_cv_c_opensoundsystem_midi="no"
4383 rm -f conftest*
4386 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4388 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4389 then
4390 cat >> confdefs.h <<\EOF
4391 #define HAVE_OSS_MIDI 1
4396 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4399 if test "x${GCC}" = "xyes"
4400 then
4401 CFLAGS="$CFLAGS -Wall"
4402 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4403 echo "configure:4404: checking "for gcc strength-reduce bug"" >&5
4404 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407 if test "$cross_compiling" = yes; then
4408 ac_cv_c_gcc_strength_bug="yes"
4409 else
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4414 int main(void) {
4415 static int Array[3];
4416 unsigned int B = 3;
4417 int i;
4418 for(i=0; i<B; i++) Array[i] = i - 3;
4419 exit( Array[1] != -2 );
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4423 then
4424 ac_cv_c_gcc_strength_bug="no"
4425 else
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -fr conftest*
4429 ac_cv_c_gcc_strength_bug="yes"
4431 rm -fr conftest*
4436 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4437 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4438 then
4439 CFLAGS="$CFLAGS -fno-strength-reduce"
4444 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4445 echo "configure:4446: checking "whether external symbols need an underscore prefix"" >&5
4446 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4448 else
4449 saved_libs=$LIBS
4450 LIBS="conftest_asm.s $LIBS"
4451 cat > conftest_asm.s <<EOF
4452 .globl _ac_test
4453 _ac_test:
4454 .long 0
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 extern int ac_test;
4460 int main() {
4461 if (ac_test) return 1
4462 ; return 0; }
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 rm -rf conftest*
4466 ac_cv_c_extern_prefix="yes"
4467 else
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4470 rm -rf conftest*
4471 ac_cv_c_extern_prefix="no"
4473 rm -f conftest*
4474 LIBS=$saved_libs
4477 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4478 if test "$ac_cv_c_extern_prefix" = "yes"
4479 then
4480 cat >> confdefs.h <<\EOF
4481 #define NEED_UNDERSCORE_PREFIX 1
4487 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4488 echo "configure:4489: checking "whether assembler accepts .string"" >&5
4489 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4491 else
4492 saved_libs=$LIBS
4493 LIBS="conftest_asm.s $LIBS"
4494 cat > conftest_asm.s <<EOF
4495 .string "test"
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4501 int main() {
4503 ; return 0; }
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 rm -rf conftest*
4507 ac_cv_c_asm_string="yes"
4508 else
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4511 rm -rf conftest*
4512 ac_cv_c_asm_string="no"
4514 rm -f conftest*
4515 LIBS=$saved_libs
4518 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4519 if test "$ac_cv_c_asm_string" = "yes"
4520 then
4521 cat >> confdefs.h <<\EOF
4522 #define HAVE_ASM_STRING 1
4528 LDSHARED=""
4529 if test "$LIBEXT" = "so"
4530 then
4531 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4532 echo "configure:4533: checking "whether we can build a Linux dll"" >&5
4533 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 saved_cflags=$CFLAGS
4537 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4542 int main() {
4543 return 1
4544 ; return 0; }
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4547 rm -rf conftest*
4548 ac_cv_c_dll_linux="yes"
4549 else
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 rm -rf conftest*
4553 ac_cv_c_dll_linux="no"
4555 rm -f conftest*
4556 CFLAGS=$saved_cflags
4560 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4561 if test "$ac_cv_c_dll_linux" = "yes"
4562 then
4563 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4564 else
4565 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4566 echo "configure:4567: checking whether we can build a UnixWare (Solaris) dll" >&5
4567 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 saved_cflags=$CFLAGS
4571 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4576 int main() {
4577 return 1
4578 ; return 0; }
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 rm -rf conftest*
4582 ac_cv_c_dll_unixware="yes"
4583 else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 rm -rf conftest*
4587 ac_cv_c_dll_unixware="no"
4589 rm -f conftest*
4590 CFLAGS=$saved_cflags
4594 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4595 if test "$ac_cv_c_dll_unixware" = "yes"
4596 then
4597 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4598 else
4599 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4600 echo "configure:4601: checking "whether we can build a NetBSD dll"" >&5
4601 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4603 else
4604 saved_cflags=$CFLAGS
4605 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4610 int main() {
4611 return 1
4612 ; return 0; }
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 rm -rf conftest*
4616 ac_cv_c_dll_netbsd="yes"
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 ac_cv_c_dll_netbsd="no"
4623 rm -f conftest*
4624 CFLAGS=$saved_cflags
4628 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4629 if test "$ac_cv_c_dll_netbsd" = "yes"
4630 then
4631 LDSHARED="ld -Bshareable -Bforcearchive"
4635 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4636 then
4637 LIBEXT="a"
4641 DLLFLAGS=""
4643 if test "$LIBEXT" = "so"; then
4644 DLLFLAGS="-fPIC"
4645 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
4646 else
4647 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
4648 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4650 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653 saved_cflags=$CFLAGS
4654 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4655 cat > conftest.$ac_ext <<EOF
4656 #line 4657 "configure"
4657 #include "confdefs.h"
4659 int main() {
4660 return 1
4661 ; return 0; }
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4664 rm -rf conftest*
4665 ac_cv_c_whole_archive="yes"
4666 else
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669 rm -rf conftest*
4670 ac_cv_c_whole_archive="no"
4672 rm -f conftest*
4673 CFLAGS=$saved_cflags
4677 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4678 if test "$ac_cv_c_whole_archive" = "yes"
4679 then
4680 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4681 else
4682 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4683 echo "configure:4684: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4684 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686 else
4687 saved_cflags=$CFLAGS
4688 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4693 int main() {
4694 return 1
4695 ; return 0; }
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 rm -rf conftest*
4699 ac_cv_c_allextract="yes"
4700 else
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4703 rm -rf conftest*
4704 ac_cv_c_allextract="no"
4706 rm -f conftest*
4707 CFLAGS=$saved_cflags
4711 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4712 if test "$ac_cv_c_allextract" = "yes"
4713 then
4714 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4725 wine_cv_libc_reentrant=no
4726 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4727 echo "configure:4728: checking "for reentrant libc: __errno_location"" >&5
4728 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4730 else
4731 if test "$cross_compiling" = yes; then
4732 wine_cv_libc_r__errno_location=yes
4733 else
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 int myerrno = 0;
4738 char buf[256];
4739 int *__errno_location(){return &myerrno;}
4740 main(){connect(0,buf,255); exit(!myerrno);}
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4743 then
4744 wine_cv_libc_r__errno_location=yes
4745 else
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -fr conftest*
4749 wine_cv_libc_r__errno_location=no
4751 rm -fr conftest*
4757 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4758 if test "$wine_cv_libc_r__errno_location" = "yes"
4759 then
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE__ERRNO_LOCATION 1
4764 wine_cv_libc_reentrant=__errno_location
4766 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4767 echo "configure:4768: checking "for reentrant libc: __error"" >&5
4768 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4770 else
4771 if test "$cross_compiling" = yes; then
4772 wine_cv_libc_r__error=yes
4773 else
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 int myerrno = 0;
4778 char buf[256];
4779 int *__error(){return &myerrno;}
4780 main(){connect(0,buf,255); exit(!myerrno);}
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4783 then
4784 wine_cv_libc_r__error=yes
4785 else
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4788 rm -fr conftest*
4789 wine_cv_libc_r__error=no
4791 rm -fr conftest*
4797 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4798 if test "$wine_cv_libc_r__error" = "yes"
4799 then
4800 cat >> confdefs.h <<\EOF
4801 #define HAVE__ERROR 1
4804 wine_cv_libc_reentrant=__error
4806 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4807 echo "configure:4808: checking "for reentrant libc: ___errno"" >&5
4808 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4810 else
4811 if test "$cross_compiling" = yes; then
4812 wine_cv_libc_r___errno=yes
4813 else
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 int myerrno = 0;
4818 char buf[256];
4819 int *___errno(){return &myerrno;}
4820 main(){connect(0,buf,255); exit(!myerrno);}
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4823 then
4824 wine_cv_libc_r___errno=yes
4825 else
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4828 rm -fr conftest*
4829 wine_cv_libc_r___errno=no
4831 rm -fr conftest*
4837 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4838 if test "$wine_cv_libc_r___errno" = "yes"
4839 then
4840 cat >> confdefs.h <<\EOF
4841 #define HAVE___ERRNO 1
4844 wine_cv_libc_reentrant=___errno
4846 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4847 echo "configure:4848: checking "for reentrant libc: __thr_errno"" >&5
4848 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4850 else
4851 if test "$cross_compiling" = yes; then
4852 wine_cv_libc_r__thr_errno=yes
4853 else
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 int myerrno = 0;
4858 char buf[256];
4859 int *__thr_errno(){return &myerrno;}
4860 main(){connect(0,buf,255); exit(!myerrno);}
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4863 then
4864 wine_cv_libc_r__thr_errno=yes
4865 else
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 rm -fr conftest*
4869 wine_cv_libc_r__thr_errno=no
4871 rm -fr conftest*
4877 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4878 if test "$wine_cv_libc_r__thr_errno" = "yes"
4879 then
4880 cat >> confdefs.h <<\EOF
4881 #define HAVE__THR_ERRNO 1
4884 wine_cv_libc_reentrant=__thr_errno
4886 if test "$wine_cv_libc_reentrant" = "no"
4887 then
4888 cat >> confdefs.h <<\EOF
4889 #define NO_REENTRANT_LIBC 1
4895 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4896 then
4897 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4898 echo "configure:4899: checking "for reentrant X libraries"" >&5
4899 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902 if test "x$with_reentrant_x" = "xno"
4903 then
4904 wine_cv_x_reentrant=no
4905 else
4906 libX11_check=none
4907 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4908 if test -r $dir/libX11.so; then
4909 libX11_check="-D $dir/libX11.so"
4910 break 1
4912 if test -r $dir/libX11.a; then
4913 libX11_check="$dir/libX11.a"
4914 break 1
4916 done
4917 if test "$libX11_check" != "none"; then
4918 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4919 then
4920 wine_cv_x_reentrant=yes
4921 else
4922 wine_cv_x_reentrant=no
4924 else
4925 wine_cv_x_reentrant=unknown
4930 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4931 else
4932 wine_cv_x_reentrant=no
4934 if test "$wine_cv_x_reentrant" = "no"
4935 then
4936 cat >> confdefs.h <<\EOF
4937 #define NO_REENTRANT_X11 1
4943 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4944 echo "configure:4945: checking whether byte ordering is bigendian" >&5
4945 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4947 else
4948 ac_cv_c_bigendian=unknown
4949 # See if sys/param.h defines the BYTE_ORDER macro.
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 #include <sys/types.h>
4954 #include <sys/param.h>
4955 int main() {
4957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4958 bogus endian macros
4959 #endif
4960 ; return 0; }
4962 if { (eval echo configure:4963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4963 rm -rf conftest*
4964 # It does; now see whether it defined to BIG_ENDIAN or not.
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 #include <sys/types.h>
4969 #include <sys/param.h>
4970 int main() {
4972 #if BYTE_ORDER != BIG_ENDIAN
4973 not big endian
4974 #endif
4975 ; return 0; }
4977 if { (eval echo configure:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4978 rm -rf conftest*
4979 ac_cv_c_bigendian=yes
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 ac_cv_c_bigendian=no
4986 rm -f conftest*
4987 else
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4991 rm -f conftest*
4992 if test $ac_cv_c_bigendian = unknown; then
4993 if test "$cross_compiling" = yes; then
4994 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4995 else
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
4999 main () {
5000 /* Are we little or big endian? From Harbison&Steele. */
5001 union
5003 long l;
5004 char c[sizeof (long)];
5005 } u;
5006 u.l = 1;
5007 exit (u.c[sizeof (long) - 1] == 1);
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5011 then
5012 ac_cv_c_bigendian=no
5013 else
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5016 rm -fr conftest*
5017 ac_cv_c_bigendian=yes
5019 rm -fr conftest*
5025 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5026 if test $ac_cv_c_bigendian = yes; then
5027 cat >> confdefs.h <<\EOF
5028 #define WORDS_BIGENDIAN 1
5035 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5036 # for constant arguments. Useless!
5037 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5038 echo "configure:5039: checking for working alloca.h" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5041 else
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 #include <alloca.h>
5046 int main() {
5047 void *p = alloca(2 * sizeof(int));
5048 ; return 0; }
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5051 rm -rf conftest*
5052 ac_cv_header_alloca_h=yes
5053 else
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 rm -rf conftest*
5057 ac_cv_header_alloca_h=no
5059 rm -f conftest*
5062 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5063 if test $ac_cv_header_alloca_h = yes; then
5064 cat >> confdefs.h <<\EOF
5065 #define HAVE_ALLOCA_H 1
5070 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5071 echo "configure:5072: checking for alloca" >&5
5072 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5074 else
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5079 #ifdef __GNUC__
5080 # define alloca __builtin_alloca
5081 #else
5082 # ifdef _MSC_VER
5083 # include <malloc.h>
5084 # define alloca _alloca
5085 # else
5086 # if HAVE_ALLOCA_H
5087 # include <alloca.h>
5088 # else
5089 # ifdef _AIX
5090 #pragma alloca
5091 # else
5092 # ifndef alloca /* predefined by HP cc +Olibcalls */
5093 char *alloca ();
5094 # endif
5095 # endif
5096 # endif
5097 # endif
5098 #endif
5100 int main() {
5101 char *p = (char *) alloca(1);
5102 ; return 0; }
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 rm -rf conftest*
5106 ac_cv_func_alloca_works=yes
5107 else
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 rm -rf conftest*
5111 ac_cv_func_alloca_works=no
5113 rm -f conftest*
5116 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5117 if test $ac_cv_func_alloca_works = yes; then
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_ALLOCA 1
5124 if test $ac_cv_func_alloca_works = no; then
5125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5126 # that cause trouble. Some versions do not even contain alloca or
5127 # contain a buggy version. If you still want to use their alloca,
5128 # use ar to extract alloca.o from them instead of compiling alloca.c.
5129 ALLOCA=alloca.${ac_objext}
5130 cat >> confdefs.h <<\EOF
5131 #define C_ALLOCA 1
5135 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5136 echo "configure:5137: checking whether alloca needs Cray hooks" >&5
5137 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5139 else
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 #if defined(CRAY) && ! defined(CRAY2)
5144 webecray
5145 #else
5146 wenotbecray
5147 #endif
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 egrep "webecray" >/dev/null 2>&1; then
5152 rm -rf conftest*
5153 ac_cv_os_cray=yes
5154 else
5155 rm -rf conftest*
5156 ac_cv_os_cray=no
5158 rm -f conftest*
5162 echo "$ac_t""$ac_cv_os_cray" 1>&6
5163 if test $ac_cv_os_cray = yes; then
5164 for ac_func in _getb67 GETB67 getb67; do
5165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5166 echo "configure:5167: checking for $ac_func" >&5
5167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5169 else
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func(); below. */
5175 #include <assert.h>
5176 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5179 char $ac_func();
5181 int main() {
5183 /* The GNU C library defines this for functions which it implements
5184 to always fail with ENOSYS. Some functions are actually named
5185 something starting with __ and the normal name is an alias. */
5186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5187 choke me
5188 #else
5189 $ac_func();
5190 #endif
5192 ; return 0; }
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 rm -rf conftest*
5196 eval "ac_cv_func_$ac_func=yes"
5197 else
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 rm -rf conftest*
5201 eval "ac_cv_func_$ac_func=no"
5203 rm -f conftest*
5206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 cat >> confdefs.h <<EOF
5209 #define CRAY_STACKSEG_END $ac_func
5212 break
5213 else
5214 echo "$ac_t""no" 1>&6
5217 done
5220 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5221 echo "configure:5222: checking stack direction for C alloca" >&5
5222 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5224 else
5225 if test "$cross_compiling" = yes; then
5226 ac_cv_c_stack_direction=0
5227 else
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 find_stack_direction ()
5233 static char *addr = 0;
5234 auto char dummy;
5235 if (addr == 0)
5237 addr = &dummy;
5238 return find_stack_direction ();
5240 else
5241 return (&dummy > addr) ? 1 : -1;
5243 main ()
5245 exit (find_stack_direction() < 0);
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5249 then
5250 ac_cv_c_stack_direction=1
5251 else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -fr conftest*
5255 ac_cv_c_stack_direction=-1
5257 rm -fr conftest*
5262 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5263 cat >> confdefs.h <<EOF
5264 #define STACK_DIRECTION $ac_cv_c_stack_direction
5269 for ac_func in \
5270 __libc_fork \
5271 _lwp_create \
5272 clone \
5273 getnetbyaddr \
5274 getnetbyname \
5275 getpagesize \
5276 getprotobyname \
5277 getprotobynumber \
5278 getservbyport \
5279 getsockopt \
5280 inet_network \
5281 memmove \
5282 rfork \
5283 select \
5284 sendmsg \
5285 settimeofday \
5286 sigaltstack \
5287 statfs \
5288 strcasecmp \
5289 strerror \
5290 strncasecmp \
5291 tcgetattr \
5292 timegm \
5293 usleep \
5294 vfscanf \
5295 wait4 \
5296 waitpid \
5299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5300 echo "configure:5301: checking for $ac_func" >&5
5301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5303 else
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 /* System header to define __stub macros and hopefully few prototypes,
5308 which can conflict with char $ac_func(); below. */
5309 #include <assert.h>
5310 /* Override any gcc2 internal prototype to avoid an error. */
5311 /* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313 char $ac_func();
5315 int main() {
5317 /* The GNU C library defines this for functions which it implements
5318 to always fail with ENOSYS. Some functions are actually named
5319 something starting with __ and the normal name is an alias. */
5320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5321 choke me
5322 #else
5323 $ac_func();
5324 #endif
5326 ; return 0; }
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5329 rm -rf conftest*
5330 eval "ac_cv_func_$ac_func=yes"
5331 else
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 rm -rf conftest*
5335 eval "ac_cv_func_$ac_func=no"
5337 rm -f conftest*
5340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5341 echo "$ac_t""yes" 1>&6
5342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5343 cat >> confdefs.h <<EOF
5344 #define $ac_tr_func 1
5347 else
5348 echo "$ac_t""no" 1>&6
5350 done
5354 for ac_hdr in \
5355 a.out.h \
5356 a_out.h \
5357 arpa/inet.h \
5358 arpa/nameser.h \
5359 elf.h \
5360 float.h \
5361 libio.h \
5362 libutil.h \
5363 link.h \
5364 linux/cdrom.h \
5365 linux/joystick.h \
5366 linux/ucdrom.h \
5367 net/if.h \
5368 netinet/in.h \
5369 netinet/tcp.h \
5370 pty.h \
5371 resolv.h \
5372 sched.h \
5373 socket.h \
5374 strings.h \
5375 sys/cdio.h \
5376 sys/errno.h \
5377 sys/file.h \
5378 sys/filio.h \
5379 sys/ipc.h \
5380 sys/lwp.h \
5381 sys/mman.h \
5382 sys/modem.h \
5383 sys/mount.h \
5384 sys/msg.h \
5385 sys/param.h \
5386 sys/reg.h \
5387 sys/signal.h \
5388 sys/shm.h \
5389 sys/socket.h \
5390 sys/sockio.h \
5391 sys/statfs.h \
5392 sys/strtio.h \
5393 sys/syscall.h \
5394 sys/wait.h \
5395 sys/v86.h \
5396 sys/v86intr.h \
5397 sys/vfs.h \
5398 sys/vm86.h \
5399 syscall.h \
5400 ucontext.h \
5401 wctype.h \
5404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_hdr" >&5
5407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5409 else
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 #include <$ac_hdr>
5415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5416 { (eval echo configure:5417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5418 if test -z "$ac_err"; then
5419 rm -rf conftest*
5420 eval "ac_cv_header_$ac_safe=yes"
5421 else
5422 echo "$ac_err" >&5
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 rm -rf conftest*
5426 eval "ac_cv_header_$ac_safe=no"
5428 rm -f conftest*
5430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_hdr 1
5437 else
5438 echo "$ac_t""no" 1>&6
5440 done
5442 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5443 echo "configure:5444: checking whether stat file-mode macros are broken" >&5
5444 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5446 else
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 #include <sys/types.h>
5451 #include <sys/stat.h>
5453 #if defined(S_ISBLK) && defined(S_IFDIR)
5454 # if S_ISBLK (S_IFDIR)
5455 You lose.
5456 # endif
5457 #endif
5459 #if defined(S_ISBLK) && defined(S_IFCHR)
5460 # if S_ISBLK (S_IFCHR)
5461 You lose.
5462 # endif
5463 #endif
5465 #if defined(S_ISLNK) && defined(S_IFREG)
5466 # if S_ISLNK (S_IFREG)
5467 You lose.
5468 # endif
5469 #endif
5471 #if defined(S_ISSOCK) && defined(S_IFREG)
5472 # if S_ISSOCK (S_IFREG)
5473 You lose.
5474 # endif
5475 #endif
5478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5479 egrep "You lose" >/dev/null 2>&1; then
5480 rm -rf conftest*
5481 ac_cv_header_stat_broken=yes
5482 else
5483 rm -rf conftest*
5484 ac_cv_header_stat_broken=no
5486 rm -f conftest*
5490 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5491 if test $ac_cv_header_stat_broken = yes; then
5492 cat >> confdefs.h <<\EOF
5493 #define STAT_MACROS_BROKEN 1
5500 echo $ac_n "checking for working const""... $ac_c" 1>&6
5501 echo "configure:5502: checking for working const" >&5
5502 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5504 else
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5509 int main() {
5511 /* Ultrix mips cc rejects this. */
5512 typedef int charset[2]; const charset x = {0,0};
5513 /* SunOS 4.1.1 cc rejects this. */
5514 char const *const *ccp;
5515 char **p;
5516 /* NEC SVR4.0.2 mips cc rejects this. */
5517 struct point {int x, y;};
5518 static struct point const zero = {0,0};
5519 /* AIX XL C 1.02.0.0 rejects this.
5520 It does not let you subtract one const X* pointer from another in an arm
5521 of an if-expression whose if-part is not a constant expression */
5522 const char *g = "string";
5523 ccp = &g + (g ? g-g : 0);
5524 /* HPUX 7.0 cc rejects these. */
5525 ++ccp;
5526 p = (char**) ccp;
5527 ccp = (char const *const *) p;
5528 { /* SCO 3.2v4 cc rejects this. */
5529 char *t;
5530 char const *s = 0 ? (char *) 0 : (char const *) 0;
5532 *t++ = 0;
5534 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5535 int x[] = {25, 17};
5536 const int *foo = &x[0];
5537 ++foo;
5539 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5540 typedef const int *iptr;
5541 iptr p = 0;
5542 ++p;
5544 { /* AIX XL C 1.02.0.0 rejects this saying
5545 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5546 struct s { int j; const int *ap[3]; };
5547 struct s *b; b->j = 5;
5549 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5550 const int foo = 10;
5553 ; return 0; }
5555 if { (eval echo configure:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5556 rm -rf conftest*
5557 ac_cv_c_const=yes
5558 else
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 rm -rf conftest*
5562 ac_cv_c_const=no
5564 rm -f conftest*
5567 echo "$ac_t""$ac_cv_c_const" 1>&6
5568 if test $ac_cv_c_const = no; then
5569 cat >> confdefs.h <<\EOF
5570 #define const
5575 echo $ac_n "checking for inline""... $ac_c" 1>&6
5576 echo "configure:5577: checking for inline" >&5
5577 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 ac_cv_c_inline=no
5581 for ac_kw in inline __inline__ __inline; do
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5586 int main() {
5587 } int $ac_kw foo() {
5588 ; return 0; }
5590 if { (eval echo configure:5591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 rm -rf conftest*
5592 ac_cv_c_inline=$ac_kw; break
5593 else
5594 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5597 rm -f conftest*
5598 done
5602 echo "$ac_t""$ac_cv_c_inline" 1>&6
5603 case "$ac_cv_c_inline" in
5604 inline | yes) ;;
5605 no) cat >> confdefs.h <<\EOF
5606 #define inline
5609 *) cat >> confdefs.h <<EOF
5610 #define inline $ac_cv_c_inline
5613 esac
5615 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5616 echo "configure:5617: checking for ANSI C header files" >&5
5617 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5619 else
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 #include <stdlib.h>
5624 #include <stdarg.h>
5625 #include <string.h>
5626 #include <float.h>
5628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5629 { (eval echo configure:5630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5631 if test -z "$ac_err"; then
5632 rm -rf conftest*
5633 ac_cv_header_stdc=yes
5634 else
5635 echo "$ac_err" >&5
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 rm -rf conftest*
5639 ac_cv_header_stdc=no
5641 rm -f conftest*
5643 if test $ac_cv_header_stdc = yes; then
5644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 #include <string.h>
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 egrep "memchr" >/dev/null 2>&1; then
5653 else
5654 rm -rf conftest*
5655 ac_cv_header_stdc=no
5657 rm -f conftest*
5661 if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 #include <stdlib.h>
5668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669 egrep "free" >/dev/null 2>&1; then
5671 else
5672 rm -rf conftest*
5673 ac_cv_header_stdc=no
5675 rm -f conftest*
5679 if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <ctype.h>
5688 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5691 int main () { int i; for (i = 0; i < 256; i++)
5692 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5693 exit (0); }
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5697 then
5699 else
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 rm -fr conftest*
5703 ac_cv_header_stdc=no
5705 rm -fr conftest*
5711 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5712 if test $ac_cv_header_stdc = yes; then
5713 cat >> confdefs.h <<\EOF
5714 #define STDC_HEADERS 1
5719 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5720 echo "configure:5721: checking for size_t" >&5
5721 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5723 else
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 #include <sys/types.h>
5728 #if STDC_HEADERS
5729 #include <stdlib.h>
5730 #include <stddef.h>
5731 #endif
5733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5734 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5735 rm -rf conftest*
5736 ac_cv_type_size_t=yes
5737 else
5738 rm -rf conftest*
5739 ac_cv_type_size_t=no
5741 rm -f conftest*
5744 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5745 if test $ac_cv_type_size_t = no; then
5746 cat >> confdefs.h <<\EOF
5747 #define size_t unsigned
5752 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5753 echo "configure:5754: checking size of long long" >&5
5754 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756 else
5757 if test "$cross_compiling" = yes; then
5758 ac_cv_sizeof_long_long=0
5759 else
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 #include <stdio.h>
5764 main()
5766 FILE *f=fopen("conftestval", "w");
5767 if (!f) exit(1);
5768 fprintf(f, "%d\n", sizeof(long long));
5769 exit(0);
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5773 then
5774 ac_cv_sizeof_long_long=`cat conftestval`
5775 else
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5778 rm -fr conftest*
5779 ac_cv_sizeof_long_long=0
5781 rm -fr conftest*
5785 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5786 cat >> confdefs.h <<EOF
5787 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5792 if test "$ac_cv_header_linux_joystick_h" = "yes"
5793 then
5794 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5795 echo "configure:5796: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5796 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5798 else
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5803 #include <sys/ioctl.h>
5804 #include <linux/joystick.h>
5806 struct js_event blub;
5807 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5808 #error "no 2.2 header"
5809 #endif
5811 int main() {
5812 /*empty*/
5813 ; return 0; }
5815 if { (eval echo configure:5816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5816 rm -rf conftest*
5817 wine_cv_linux_joystick_22_api=yes
5818 else
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 rm -rf conftest*
5822 wine_cv_linux_joystick_22_api=no
5824 rm -f conftest*
5828 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5829 if test "$wine_cv_linux_joystick_22_api" = "yes"
5830 then
5831 cat >> confdefs.h <<\EOF
5832 #define HAVE_LINUX_22_JOYSTICK_API 1
5839 if test "$ac_cv_header_sys_vfs_h" = "yes"
5840 then
5841 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5842 echo "configure:5843: checking "whether sys/vfs.h defines statfs"" >&5
5843 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5845 else
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5850 #include <sys/types.h>
5851 #ifdef HAVE_SYS_PARAM_H
5852 # include <sys/param.h>
5853 #endif
5854 #include <sys/vfs.h>
5856 int main() {
5858 struct statfs stfs;
5860 memset(&stfs,0,sizeof(stfs));
5862 ; return 0; }
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5865 rm -rf conftest*
5866 wine_cv_sys_vfs_has_statfs=yes
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -rf conftest*
5871 wine_cv_sys_vfs_has_statfs=no
5874 rm -f conftest*
5878 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5879 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5880 then
5881 cat >> confdefs.h <<\EOF
5882 #define STATFS_DEFINED_BY_SYS_VFS 1
5888 if test "$ac_cv_header_sys_statfs_h" = "yes"
5889 then
5890 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5891 echo "configure:5892: checking "whether sys/statfs.h defines statfs"" >&5
5892 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5894 else
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5899 #include <sys/types.h>
5900 #ifdef HAVE_SYS_PARAM_H
5901 # include <sys/param.h>
5902 #endif
5903 #include <sys/statfs.h>
5905 int main() {
5907 struct statfs stfs;
5909 ; return 0; }
5911 if { (eval echo configure:5912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5912 rm -rf conftest*
5913 wine_cv_sys_statfs_has_statfs=yes
5914 else
5915 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5
5917 rm -rf conftest*
5918 wine_cv_sys_statfs_has_statfs=no
5921 rm -f conftest*
5925 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5926 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5927 then
5928 cat >> confdefs.h <<\EOF
5929 #define STATFS_DEFINED_BY_SYS_STATFS 1
5935 if test "$ac_cv_header_sys_mount_h" = "yes"
5936 then
5937 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5938 echo "configure:5939: checking "whether sys/mount.h defines statfs"" >&5
5939 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5941 else
5942 cat > conftest.$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5946 #include <sys/types.h>
5947 #ifdef HAVE_SYS_PARAM_H
5948 # include <sys/param.h>
5949 #endif
5950 #include <sys/mount.h>
5952 int main() {
5954 struct statfs stfs;
5956 ; return 0; }
5958 if { (eval echo configure:5959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5959 rm -rf conftest*
5960 wine_cv_sys_mount_has_statfs=yes
5961 else
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 rm -rf conftest*
5965 wine_cv_sys_mount_has_statfs=no
5968 rm -f conftest*
5972 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5973 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5974 then
5975 cat >> confdefs.h <<\EOF
5976 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5983 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5984 echo "configure:5985: checking "for statfs.f_bfree"" >&5
5985 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5987 else
5988 if test "x$statfs_bfree" = "xno"
5989 then
5990 wine_cv_statfs_bfree=no
5991 else
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5996 #include <sys/types.h>
5997 #ifdef HAVE_SYS_PARAM_H
5998 # include <sys/param.h>
5999 #endif
6000 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6001 # include <sys/mount.h>
6002 #else
6003 # ifdef STATFS_DEFINED_BY_SYS_VFS
6004 # include <sys/vfs.h>
6005 # else
6006 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6007 # include <sys/statfs.h>
6008 # endif
6009 # endif
6010 #endif
6012 int main() {
6014 struct statfs stfs;
6016 stfs.f_bfree++;
6018 ; return 0; }
6020 if { (eval echo configure:6021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6021 rm -rf conftest*
6022 wine_cv_statfs_bfree=yes
6023 else
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 rm -rf conftest*
6027 wine_cv_statfs_bfree=no
6030 rm -f conftest*
6034 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6035 if test "$wine_cv_statfs_bfree" = "yes"
6036 then
6037 cat >> confdefs.h <<\EOF
6038 #define STATFS_HAS_BFREE 1
6043 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6044 echo "configure:6045: checking "for statfs.f_bavail"" >&5
6045 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6047 else
6048 if test "x$statfs_bavail" = "xno"
6049 then
6050 wine_cv_statfs_bavail=no
6051 else
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6056 #include <sys/types.h>
6057 #ifdef HAVE_SYS_PARAM_H
6058 # include <sys/param.h>
6059 #endif
6060 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6061 # include <sys/mount.h>
6062 #else
6063 # ifdef STATFS_DEFINED_BY_SYS_VFS
6064 # include <sys/vfs.h>
6065 # else
6066 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6067 # include <sys/statfs.h>
6068 # endif
6069 # endif
6070 #endif
6072 int main() {
6074 struct statfs stfs;
6076 stfs.f_bavail++;
6078 ; return 0; }
6080 if { (eval echo configure:6081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6081 rm -rf conftest*
6082 wine_cv_statfs_bavail=yes
6083 else
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -rf conftest*
6087 wine_cv_statfs_bavail=no
6090 rm -f conftest*
6094 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6095 if test "$wine_cv_statfs_bavail" = "yes"
6096 then
6097 cat >> confdefs.h <<\EOF
6098 #define STATFS_HAS_BAVAIL 1
6104 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6105 echo "configure:6106: checking "for msg_accrights in struct msghdr"" >&5
6106 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6108 else
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 #include <sys/types.h>
6113 #include <sys/socket.h>
6114 int main() {
6115 struct msghdr hdr; hdr.msg_accrights=0
6116 ; return 0; }
6118 if { (eval echo configure:6119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6119 rm -rf conftest*
6120 ac_cv_c_msg_accrights="yes"
6121 else
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 rm -rf conftest*
6125 ac_cv_c_msg_accrights="no"
6127 rm -f conftest*
6130 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6131 if test "$ac_cv_c_msg_accrights" = "yes"
6132 then
6133 cat >> confdefs.h <<\EOF
6134 #define HAVE_MSGHDR_ACCRIGHTS 1
6140 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6141 echo "configure:6142: checking "for sun_len in struct sockaddr_un"" >&5
6142 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144 else
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <sys/types.h>
6149 #include <sys/socket.h>
6150 #include <sys/un.h>
6151 int main() {
6152 static struct sockaddr_un addr; addr.sun_len = 1
6153 ; return 0; }
6155 if { (eval echo configure:6156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6156 rm -rf conftest*
6157 ac_cv_c_sun_len="yes"
6158 else
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 rm -rf conftest*
6162 ac_cv_c_sun_len="no"
6164 rm -f conftest*
6167 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6168 if test "$ac_cv_c_sun_len" = "yes"
6169 then
6170 cat >> confdefs.h <<\EOF
6171 #define HAVE_SOCKADDR_SUN_LEN 1
6177 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6178 echo "configure:6179: checking "whether we need to define __i386__"" >&5
6179 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181 else
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6187 #endif
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 egrep "yes" >/dev/null 2>&1; then
6191 rm -rf conftest*
6192 ac_cv_cpp_def_i386="yes"
6193 else
6194 rm -rf conftest*
6195 ac_cv_cpp_def_i386="no"
6197 rm -f conftest*
6201 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6202 if test "$ac_cv_cpp_def_i386" = "yes"
6203 then
6204 CFLAGS="$CFLAGS -D__i386__"
6205 LINTFLAGS="$LINTFLAGS -D__i386__"
6208 GCC_NO_BUILTIN=""
6209 if test "$GCC" = "yes"
6210 then
6211 GCC_NO_BUILTIN="-fno-builtin"
6218 MAKE_RULES=Make.rules
6221 MAKE_DLL_RULES=dlls/Makedll.rules
6224 trap '' 1 2 15
6225 cat > confcache <<\EOF
6226 # This file is a shell script that caches the results of configure
6227 # tests run on this system so they can be shared between configure
6228 # scripts and configure runs. It is not useful on other systems.
6229 # If it contains results you don't want to keep, you may remove or edit it.
6231 # By default, configure uses ./config.cache as the cache file,
6232 # creating it if it does not exist already. You can give configure
6233 # the --cache-file=FILE option to use a different cache file; that is
6234 # what configure does when it calls configure scripts in
6235 # subdirectories, so they share the cache.
6236 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6237 # config.status only pays attention to the cache file if you give it the
6238 # --recheck option to rerun configure.
6241 # The following way of writing the cache mishandles newlines in values,
6242 # but we know of no workaround that is simple, portable, and efficient.
6243 # So, don't put newlines in cache variables' values.
6244 # Ultrix sh set writes to stderr and can't be redirected directly,
6245 # and sets the high bit in the cache file unless we assign to the vars.
6246 (set) 2>&1 |
6247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6248 *ac_space=\ *)
6249 # `set' does not quote correctly, so add quotes (double-quote substitution
6250 # turns \\\\ into \\, and sed turns \\ into \).
6251 sed -n \
6252 -e "s/'/'\\\\''/g" \
6253 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6256 # `set' quotes correctly as required by POSIX, so do not add quotes.
6257 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6259 esac >> confcache
6260 if cmp -s $cache_file confcache; then
6262 else
6263 if test -w $cache_file; then
6264 echo "updating cache $cache_file"
6265 cat confcache > $cache_file
6266 else
6267 echo "not updating unwritable cache $cache_file"
6270 rm -f confcache
6272 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6275 # Let make expand exec_prefix.
6276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6278 # Any assignment to VPATH causes Sun make to only execute
6279 # the first set of double-colon rules, so remove it if not needed.
6280 # If there is a colon in the path, we need to keep it.
6281 if test "x$srcdir" = x.; then
6282 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6285 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6287 DEFS=-DHAVE_CONFIG_H
6289 # Without the "./", some shells look in PATH for config.status.
6290 : ${CONFIG_STATUS=./config.status}
6292 echo creating $CONFIG_STATUS
6293 rm -f $CONFIG_STATUS
6294 cat > $CONFIG_STATUS <<EOF
6295 #! /bin/sh
6296 # Generated automatically by configure.
6297 # Run this file to recreate the current configuration.
6298 # This directory was configured as follows,
6299 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6301 # $0 $ac_configure_args
6303 # Compiler output produced by configure, useful for debugging
6304 # configure, is in ./config.log if it exists.
6306 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6307 for ac_option
6309 case "\$ac_option" in
6310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6311 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6312 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6313 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6314 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6315 exit 0 ;;
6316 -help | --help | --hel | --he | --h)
6317 echo "\$ac_cs_usage"; exit 0 ;;
6318 *) echo "\$ac_cs_usage"; exit 1 ;;
6319 esac
6320 done
6322 ac_given_srcdir=$srcdir
6323 ac_given_INSTALL="$INSTALL"
6325 trap 'rm -fr `echo "
6326 Make.rules
6327 Makefile
6328 console/Makefile
6329 controls/Makefile
6330 debugger/Makefile
6331 dlls/Makedll.rules
6332 dlls/Makefile
6333 dlls/advapi32/Makefile
6334 dlls/avifil32/Makefile
6335 dlls/comctl32/Makefile
6336 dlls/commdlg/Makefile
6337 dlls/crtdll/Makefile
6338 dlls/dciman32/Makefile
6339 dlls/ddraw/Makefile
6340 dlls/dinput/Makefile
6341 dlls/dplay/Makefile
6342 dlls/dplayx/Makefile
6343 dlls/dsound/Makefile
6344 dlls/gdi/Makefile
6345 dlls/icmp/Makefile
6346 dlls/imagehlp/Makefile
6347 dlls/imm32/Makefile
6348 dlls/kernel/Makefile
6349 dlls/lzexpand/Makefile
6350 dlls/mpr/Makefile
6351 dlls/msacm/Makefile
6352 dlls/msnet32/Makefile
6353 dlls/msvideo/Makefile
6354 dlls/ntdll/Makefile
6355 dlls/odbc32/Makefile
6356 dlls/ole32/Makefile
6357 dlls/oleaut32/Makefile
6358 dlls/olecli/Makefile
6359 dlls/oledlg/Makefile
6360 dlls/olepro32/Makefile
6361 dlls/olesvr/Makefile
6362 dlls/opengl32/Makefile
6363 dlls/psapi/Makefile
6364 dlls/rasapi32/Makefile
6365 dlls/richedit/Makefile
6366 dlls/rpcrt4/Makefile
6367 dlls/serialui/Makefile
6368 dlls/setupapi/Makefile
6369 dlls/shell32/Makefile
6370 dlls/shfolder/Makefile
6371 dlls/shlwapi/Makefile
6372 dlls/tapi32/Makefile
6373 dlls/ttydrv/Makefile
6374 dlls/urlmon/Makefile
6375 dlls/user/Makefile
6376 dlls/version/Makefile
6377 dlls/win32s/Makefile
6378 dlls/winaspi/Makefile
6379 dlls/wineps/Makefile
6380 dlls/wininet/Makefile
6381 dlls/winmm/Makefile
6382 dlls/winmm/joystick/Makefile
6383 dlls/winmm/mcianim/Makefile
6384 dlls/winmm/mciavi/Makefile
6385 dlls/winmm/mcicda/Makefile
6386 dlls/winmm/mciseq/Makefile
6387 dlls/winmm/mciwave/Makefile
6388 dlls/winmm/midimap/Makefile
6389 dlls/winmm/wavemap/Makefile
6390 dlls/winmm/wineoss/Makefile
6391 dlls/winsock/Makefile
6392 dlls/winspool/Makefile
6393 dlls/wow32/Makefile
6394 dlls/wsock32/Makefile
6395 dlls/x11drv/Makefile
6396 documentation/Makefile
6397 documentation/wine.conf.man
6398 documentation/wine.man
6399 files/Makefile
6400 graphics/Makefile
6401 graphics/enhmetafiledrv/Makefile
6402 graphics/metafiledrv/Makefile
6403 graphics/ttydrv/Makefile
6404 graphics/win16drv/Makefile
6405 graphics/x11drv/Makefile
6406 if1632/Makefile
6407 include/Makefile
6408 library/Makefile
6409 libtest/Makefile
6410 loader/Makefile
6411 loader/dos/Makefile
6412 loader/ne/Makefile
6413 memory/Makefile
6414 misc/Makefile
6415 miscemu/Makefile
6416 msdos/Makefile
6417 objects/Makefile
6418 ole/Makefile
6419 programs/Makefile
6420 programs/avitools/Makefile
6421 programs/clock/Makefile
6422 programs/cmdlgtst/Makefile
6423 programs/control/Makefile
6424 programs/notepad/Makefile
6425 programs/osversioncheck/Makefile
6426 programs/progman/Makefile
6427 programs/regapi/Makefile
6428 programs/regtest/Makefile
6429 programs/uninstaller/Makefile
6430 programs/view/Makefile
6431 programs/wcmd/Makefile
6432 programs/winemine/Makefile
6433 programs/winhelp/Makefile
6434 programs/winver/Makefile
6435 relay32/Makefile
6436 resources/Makefile
6437 scheduler/Makefile
6438 server/Makefile
6439 tools/Makefile
6440 tools/cvdump/Makefile
6441 tools/winebuild/Makefile
6442 tools/wmc/Makefile
6443 tools/wrc/Makefile
6444 tsx11/Makefile
6445 unicode/Makefile
6446 win32/Makefile
6447 windows/Makefile
6448 windows/ttydrv/Makefile
6449 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6451 cat >> $CONFIG_STATUS <<EOF
6453 # Protect against being on the right side of a sed subst in config.status.
6454 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6455 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6456 $ac_vpsub
6457 $extrasub
6458 s%@SHELL@%$SHELL%g
6459 s%@CFLAGS@%$CFLAGS%g
6460 s%@CPPFLAGS@%$CPPFLAGS%g
6461 s%@CXXFLAGS@%$CXXFLAGS%g
6462 s%@FFLAGS@%$FFLAGS%g
6463 s%@DEFS@%$DEFS%g
6464 s%@LDFLAGS@%$LDFLAGS%g
6465 s%@LIBS@%$LIBS%g
6466 s%@exec_prefix@%$exec_prefix%g
6467 s%@prefix@%$prefix%g
6468 s%@program_transform_name@%$program_transform_name%g
6469 s%@bindir@%$bindir%g
6470 s%@sbindir@%$sbindir%g
6471 s%@libexecdir@%$libexecdir%g
6472 s%@datadir@%$datadir%g
6473 s%@sysconfdir@%$sysconfdir%g
6474 s%@sharedstatedir@%$sharedstatedir%g
6475 s%@localstatedir@%$localstatedir%g
6476 s%@libdir@%$libdir%g
6477 s%@includedir@%$includedir%g
6478 s%@oldincludedir@%$oldincludedir%g
6479 s%@infodir@%$infodir%g
6480 s%@mandir@%$mandir%g
6481 s%@OPTIONS@%$OPTIONS%g
6482 s%@SET_MAKE@%$SET_MAKE%g
6483 s%@CC@%$CC%g
6484 s%@CPP@%$CPP%g
6485 s%@X_CFLAGS@%$X_CFLAGS%g
6486 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6487 s%@X_LIBS@%$X_LIBS%g
6488 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6489 s%@YACC@%$YACC%g
6490 s%@LEX@%$LEX%g
6491 s%@LEXLIB@%$LEXLIB%g
6492 s%@XLEX@%$XLEX%g
6493 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6494 s%@RANLIB@%$RANLIB%g
6495 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6496 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6497 s%@INSTALL_DATA@%$INSTALL_DATA%g
6498 s%@LN_S@%$LN_S%g
6499 s%@C2MAN@%$C2MAN%g
6500 s%@LDCONFIG@%$LDCONFIG%g
6501 s%@LINT@%$LINT%g
6502 s%@LINTFLAGS@%$LINTFLAGS%g
6503 s%@XLIB@%$XLIB%g
6504 s%@X_DLLS@%$X_DLLS%g
6505 s%@XFILES@%$XFILES%g
6506 s%@OPENGLFILES@%$OPENGLFILES%g
6507 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6508 s%@DGA_SRCS@%$DGA_SRCS%g
6509 s%@DGA2_SRCS@%$DGA2_SRCS%g
6510 s%@MESA_SRCS@%$MESA_SRCS%g
6511 s%@DLL_LINK@%$DLL_LINK%g
6512 s%@DLLFLAGS@%$DLLFLAGS%g
6513 s%@LDSHARED@%$LDSHARED%g
6514 s%@LIBEXT@%$LIBEXT%g
6515 s%@ALLOCA@%$ALLOCA%g
6516 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6517 /@MAKE_RULES@/r $MAKE_RULES
6518 s%@MAKE_RULES@%%g
6519 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6520 s%@MAKE_DLL_RULES@%%g
6522 CEOF
6525 cat >> $CONFIG_STATUS <<\EOF
6527 # Split the substitutions into bite-sized pieces for seds with
6528 # small command number limits, like on Digital OSF/1 and HP-UX.
6529 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6530 ac_file=1 # Number of current file.
6531 ac_beg=1 # First line for current file.
6532 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6533 ac_more_lines=:
6534 ac_sed_cmds=""
6535 while $ac_more_lines; do
6536 if test $ac_beg -gt 1; then
6537 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6538 else
6539 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6541 if test ! -s conftest.s$ac_file; then
6542 ac_more_lines=false
6543 rm -f conftest.s$ac_file
6544 else
6545 if test -z "$ac_sed_cmds"; then
6546 ac_sed_cmds="sed -f conftest.s$ac_file"
6547 else
6548 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6550 ac_file=`expr $ac_file + 1`
6551 ac_beg=$ac_end
6552 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6554 done
6555 if test -z "$ac_sed_cmds"; then
6556 ac_sed_cmds=cat
6560 cat >> $CONFIG_STATUS <<EOF
6562 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6563 Makefile
6564 console/Makefile
6565 controls/Makefile
6566 debugger/Makefile
6567 dlls/Makedll.rules
6568 dlls/Makefile
6569 dlls/advapi32/Makefile
6570 dlls/avifil32/Makefile
6571 dlls/comctl32/Makefile
6572 dlls/commdlg/Makefile
6573 dlls/crtdll/Makefile
6574 dlls/dciman32/Makefile
6575 dlls/ddraw/Makefile
6576 dlls/dinput/Makefile
6577 dlls/dplay/Makefile
6578 dlls/dplayx/Makefile
6579 dlls/dsound/Makefile
6580 dlls/gdi/Makefile
6581 dlls/icmp/Makefile
6582 dlls/imagehlp/Makefile
6583 dlls/imm32/Makefile
6584 dlls/kernel/Makefile
6585 dlls/lzexpand/Makefile
6586 dlls/mpr/Makefile
6587 dlls/msacm/Makefile
6588 dlls/msnet32/Makefile
6589 dlls/msvideo/Makefile
6590 dlls/ntdll/Makefile
6591 dlls/odbc32/Makefile
6592 dlls/ole32/Makefile
6593 dlls/oleaut32/Makefile
6594 dlls/olecli/Makefile
6595 dlls/oledlg/Makefile
6596 dlls/olepro32/Makefile
6597 dlls/olesvr/Makefile
6598 dlls/opengl32/Makefile
6599 dlls/psapi/Makefile
6600 dlls/rasapi32/Makefile
6601 dlls/richedit/Makefile
6602 dlls/rpcrt4/Makefile
6603 dlls/serialui/Makefile
6604 dlls/setupapi/Makefile
6605 dlls/shell32/Makefile
6606 dlls/shfolder/Makefile
6607 dlls/shlwapi/Makefile
6608 dlls/tapi32/Makefile
6609 dlls/ttydrv/Makefile
6610 dlls/urlmon/Makefile
6611 dlls/user/Makefile
6612 dlls/version/Makefile
6613 dlls/win32s/Makefile
6614 dlls/winaspi/Makefile
6615 dlls/wineps/Makefile
6616 dlls/wininet/Makefile
6617 dlls/winmm/Makefile
6618 dlls/winmm/joystick/Makefile
6619 dlls/winmm/mcianim/Makefile
6620 dlls/winmm/mciavi/Makefile
6621 dlls/winmm/mcicda/Makefile
6622 dlls/winmm/mciseq/Makefile
6623 dlls/winmm/mciwave/Makefile
6624 dlls/winmm/midimap/Makefile
6625 dlls/winmm/wavemap/Makefile
6626 dlls/winmm/wineoss/Makefile
6627 dlls/winsock/Makefile
6628 dlls/winspool/Makefile
6629 dlls/wow32/Makefile
6630 dlls/wsock32/Makefile
6631 dlls/x11drv/Makefile
6632 documentation/Makefile
6633 documentation/wine.conf.man
6634 documentation/wine.man
6635 files/Makefile
6636 graphics/Makefile
6637 graphics/enhmetafiledrv/Makefile
6638 graphics/metafiledrv/Makefile
6639 graphics/ttydrv/Makefile
6640 graphics/win16drv/Makefile
6641 graphics/x11drv/Makefile
6642 if1632/Makefile
6643 include/Makefile
6644 library/Makefile
6645 libtest/Makefile
6646 loader/Makefile
6647 loader/dos/Makefile
6648 loader/ne/Makefile
6649 memory/Makefile
6650 misc/Makefile
6651 miscemu/Makefile
6652 msdos/Makefile
6653 objects/Makefile
6654 ole/Makefile
6655 programs/Makefile
6656 programs/avitools/Makefile
6657 programs/clock/Makefile
6658 programs/cmdlgtst/Makefile
6659 programs/control/Makefile
6660 programs/notepad/Makefile
6661 programs/osversioncheck/Makefile
6662 programs/progman/Makefile
6663 programs/regapi/Makefile
6664 programs/regtest/Makefile
6665 programs/uninstaller/Makefile
6666 programs/view/Makefile
6667 programs/wcmd/Makefile
6668 programs/winemine/Makefile
6669 programs/winhelp/Makefile
6670 programs/winver/Makefile
6671 relay32/Makefile
6672 resources/Makefile
6673 scheduler/Makefile
6674 server/Makefile
6675 tools/Makefile
6676 tools/cvdump/Makefile
6677 tools/winebuild/Makefile
6678 tools/wmc/Makefile
6679 tools/wrc/Makefile
6680 tsx11/Makefile
6681 unicode/Makefile
6682 win32/Makefile
6683 windows/Makefile
6684 windows/ttydrv/Makefile
6685 windows/x11drv/Makefile "}
6687 cat >> $CONFIG_STATUS <<\EOF
6688 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6689 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6690 case "$ac_file" in
6691 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6692 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6693 *) ac_file_in="${ac_file}.in" ;;
6694 esac
6696 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6698 # Remove last slash and all that follows it. Not all systems have dirname.
6699 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6701 # The file is in a subdirectory.
6702 test ! -d "$ac_dir" && mkdir "$ac_dir"
6703 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6704 # A "../" for each directory in $ac_dir_suffix.
6705 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6706 else
6707 ac_dir_suffix= ac_dots=
6710 case "$ac_given_srcdir" in
6711 .) srcdir=.
6712 if test -z "$ac_dots"; then top_srcdir=.
6713 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6714 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6715 *) # Relative path.
6716 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6717 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6718 esac
6720 case "$ac_given_INSTALL" in
6721 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6722 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6723 esac
6725 echo creating "$ac_file"
6726 rm -f "$ac_file"
6727 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6728 case "$ac_file" in
6729 *Makefile*) ac_comsub="1i\\
6730 # $configure_input" ;;
6731 *) ac_comsub= ;;
6732 esac
6734 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6735 sed -e "$ac_comsub
6736 s%@configure_input@%$configure_input%g
6737 s%@srcdir@%$srcdir%g
6738 s%@top_srcdir@%$top_srcdir%g
6739 s%@INSTALL@%$INSTALL%g
6740 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6741 fi; done
6742 rm -f conftest.s*
6744 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6745 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6747 # ac_d sets the value in "#define NAME VALUE" lines.
6748 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6749 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6750 ac_dC='\3'
6751 ac_dD='%g'
6752 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6753 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6754 ac_uB='\([ ]\)%\1#\2define\3'
6755 ac_uC=' '
6756 ac_uD='\4%g'
6757 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6758 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6759 ac_eB='$%\1#\2define\3'
6760 ac_eC=' '
6761 ac_eD='%g'
6763 if test "${CONFIG_HEADERS+set}" != set; then
6765 cat >> $CONFIG_STATUS <<EOF
6766 CONFIG_HEADERS="include/config.h"
6768 cat >> $CONFIG_STATUS <<\EOF
6770 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6772 case "$ac_file" in
6773 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6774 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6775 *) ac_file_in="${ac_file}.in" ;;
6776 esac
6778 echo creating $ac_file
6780 rm -f conftest.frag conftest.in conftest.out
6781 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6782 cat $ac_file_inputs > conftest.in
6786 # Transform confdefs.h into a sed script conftest.vals that substitutes
6787 # the proper values into config.h.in to produce config.h. And first:
6788 # Protect against being on the right side of a sed subst in config.status.
6789 # Protect against being in an unquoted here document in config.status.
6790 rm -f conftest.vals
6791 cat > conftest.hdr <<\EOF
6792 s/[\\&%]/\\&/g
6793 s%[\\$`]%\\&%g
6794 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6795 s%ac_d%ac_u%gp
6796 s%ac_u%ac_e%gp
6798 sed -n -f conftest.hdr confdefs.h > conftest.vals
6799 rm -f conftest.hdr
6801 # This sed command replaces #undef with comments. This is necessary, for
6802 # example, in the case of _POSIX_SOURCE, which is predefined and required
6803 # on some systems where configure will not decide to define it.
6804 cat >> conftest.vals <<\EOF
6805 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6808 # Break up conftest.vals because some shells have a limit on
6809 # the size of here documents, and old seds have small limits too.
6811 rm -f conftest.tail
6812 while :
6814 ac_lines=`grep -c . conftest.vals`
6815 # grep -c gives empty output for an empty file on some AIX systems.
6816 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6817 # Write a limited-size here document to conftest.frag.
6818 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6819 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6820 echo 'CEOF
6821 sed -f conftest.frag conftest.in > conftest.out
6822 rm -f conftest.in
6823 mv conftest.out conftest.in
6824 ' >> $CONFIG_STATUS
6825 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6826 rm -f conftest.vals
6827 mv conftest.tail conftest.vals
6828 done
6829 rm -f conftest.vals
6831 cat >> $CONFIG_STATUS <<\EOF
6832 rm -f conftest.frag conftest.h
6833 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6834 cat conftest.in >> conftest.h
6835 rm -f conftest.in
6836 if cmp -s $ac_file conftest.h 2>/dev/null; then
6837 echo "$ac_file is unchanged"
6838 rm -f conftest.h
6839 else
6840 # Remove last slash and all that follows it. Not all systems have dirname.
6841 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6842 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6843 # The file is in a subdirectory.
6844 test ! -d "$ac_dir" && mkdir "$ac_dir"
6846 rm -f $ac_file
6847 mv conftest.h $ac_file
6849 fi; done
6852 cat >> $CONFIG_STATUS <<EOF
6856 cat >> $CONFIG_STATUS <<\EOF
6858 extra_subdirs="\
6859 dlls/ddraw/d3ddevice \
6860 dlls/ddraw/dclipper \
6861 dlls/ddraw/ddraw \
6862 dlls/ddraw/direct3d \
6863 dlls/ddraw/dpalette \
6864 dlls/ddraw/dsurface \
6865 dlls/kernel/messages \
6867 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6869 exit 0
6871 chmod +x $CONFIG_STATUS
6872 rm -fr confdefs* $ac_clean_files
6873 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6876 if test "$have_x" = "no"
6877 then
6878 echo
6879 echo "*** Warning: X development files not found. Wine will be built without"
6880 echo "*** X support, which currently does not work, and would probably not be"
6881 echo "*** what you want anyway. You will need to install devel packages of"
6882 echo "*** Xlib/Xfree86 and Xpm at the very least."
6883 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6884 then
6885 echo
6886 echo "*** Warning: Xpm development files not found. Wine will be built without"
6887 echo "*** Xpm support, which currently does not work. You will need to install"
6888 echo "*** devel packages of Xpm."
6891 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6892 then
6893 echo
6894 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6895 echo "*** terminal resize support. Consider upgrading ncurses."
6898 if test "$wine_cv_libc_reentrant" = "no"
6899 then
6900 echo
6901 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6902 echo "*** thread support. Consider upgrading libc to a more recent"
6903 echo "*** reentrant version of libc."
6906 if test "$wine_cv_opengl_version_OK" = "no"
6907 then
6908 echo
6909 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6910 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6913 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6914 then
6915 echo
6916 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6917 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6918 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6919 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6922 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6923 then
6924 echo
6925 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6926 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6927 echo "*** support before reporting bugs."
6931 echo
6932 echo "Configure finished. Do 'make depend && make' to compile Wine."
6933 echo