Fixed debug routines to work before the process heap is created.
[wine/multimedia.git] / configure
blob9ec827fb07503a77516b3d36904a310a54c8f2af
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-debug compile out all debugging messages"
17 ac_help="$ac_help
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
19 ac_help="$ac_help
20 --disable-trace compile out TRACE messages"
21 ac_help="$ac_help
22 --without-curses do not use curses"
23 ac_help="$ac_help
24 --without-reentrant-x compile for use with non-reentrant X libraries"
25 ac_help="$ac_help
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
184 cat << EOF
185 Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
200 exit 0 ;;
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 nonopt="$ac_option"
405 esac
406 done
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
427 exec 5>./config.log
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448 done
450 # NLS nuisances.
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
480 else
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 ac_exeext=
523 ac_objext=o
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528 ' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
532 else
533 ac_n= ac_c='\c' ac_t=
538 ac_aux_dir=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
549 done
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
562 CURSES=yes
563 OPENGL=normal
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
603 then
604 cat >> confdefs.h <<\EOF
605 #define NO_DEBUG_MSGS 1
608 cat >> confdefs.h <<\EOF
609 #define NO_TRACE_MSGS 1
612 else
613 if test "$TRACE_MSGS" = "no"
614 then
615 cat >> confdefs.h <<\EOF
616 #define NO_TRACE_MSGS 1
623 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
624 echo "configure:625: checking whether ${MAKE-make} sets \${MAKE}" >&5
625 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
626 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628 else
629 cat > conftestmake <<\EOF
630 all:
631 @echo 'ac_maketemp="${MAKE}"'
633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
634 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
635 if test -n "$ac_maketemp"; then
636 eval ac_cv_prog_make_${ac_make}_set=yes
637 else
638 eval ac_cv_prog_make_${ac_make}_set=no
640 rm -f conftestmake
642 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
643 echo "$ac_t""yes" 1>&6
644 SET_MAKE=
645 else
646 echo "$ac_t""no" 1>&6
647 SET_MAKE="MAKE=${MAKE-make}"
650 # Extract the first word of "gcc", so it can be a program name with args.
651 set dummy gcc; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 if test -n "$CC"; then
658 ac_cv_prog_CC="$CC" # Let the user override the test.
659 else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 ac_cv_prog_CC="gcc"
666 break
668 done
669 IFS="$ac_save_ifs"
672 CC="$ac_cv_prog_CC"
673 if test -n "$CC"; then
674 echo "$ac_t""$CC" 1>&6
675 else
676 echo "$ac_t""no" 1>&6
679 if test -z "$CC"; then
680 # Extract the first word of "cc", so it can be a program name with args.
681 set dummy cc; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686 else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689 else
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 ac_prog_rejected=no
692 ac_dummy="$PATH"
693 for ac_dir in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir=.
695 if test -f $ac_dir/$ac_word; then
696 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 ac_prog_rejected=yes
698 continue
700 ac_cv_prog_CC="cc"
701 break
703 done
704 IFS="$ac_save_ifs"
705 if test $ac_prog_rejected = yes; then
706 # We found a bogon in the path, so make sure we never use it.
707 set dummy $ac_cv_prog_CC
708 shift
709 if test $# -gt 0; then
710 # We chose a different compiler from the bogus one.
711 # However, it has the same basename, so the bogon will be chosen
712 # first if we set CC to just the basename; use the full file name.
713 shift
714 set dummy "$ac_dir/$ac_word" "$@"
715 shift
716 ac_cv_prog_CC="$@"
721 CC="$ac_cv_prog_CC"
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
724 else
725 echo "$ac_t""no" 1>&6
728 if test -z "$CC"; then
729 case "`uname -s`" in
730 *win32* | *WIN32*)
731 # Extract the first word of "cl", so it can be a program name with args.
732 set dummy cl; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 ac_dummy="$PATH"
743 for ac_dir in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 ac_cv_prog_CC="cl"
747 break
749 done
750 IFS="$ac_save_ifs"
753 CC="$ac_cv_prog_CC"
754 if test -n "$CC"; then
755 echo "$ac_t""$CC" 1>&6
756 else
757 echo "$ac_t""no" 1>&6
760 esac
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768 ac_ext=c
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp='$CPP $CPPFLAGS'
771 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling=$ac_cv_prog_cc_cross
775 cat > conftest.$ac_ext << EOF
777 #line 778 "configure"
778 #include "confdefs.h"
780 main(){return(0);}
782 if { (eval echo configure:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
783 ac_cv_prog_cc_works=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (./conftest; exit) 2>/dev/null; then
786 ac_cv_prog_cc_cross=no
787 else
788 ac_cv_prog_cc_cross=yes
790 else
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
793 ac_cv_prog_cc_works=no
795 rm -fr conftest*
796 ac_ext=c
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
803 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
804 if test $ac_cv_prog_cc_works = no; then
805 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
808 echo "configure:809: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
809 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
813 echo "configure:814: checking whether we are using GNU C" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 cat > conftest.c <<EOF
818 #ifdef __GNUC__
819 yes;
820 #endif
822 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
823 ac_cv_prog_gcc=yes
824 else
825 ac_cv_prog_gcc=no
829 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831 if test $ac_cv_prog_gcc = yes; then
832 GCC=yes
833 else
834 GCC=
837 ac_test_CFLAGS="${CFLAGS+set}"
838 ac_save_CFLAGS="$CFLAGS"
839 CFLAGS=
840 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 echo 'void f(){}' > conftest.c
846 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 ac_cv_prog_cc_g=yes
848 else
849 ac_cv_prog_cc_g=no
851 rm -f conftest*
855 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856 if test "$ac_test_CFLAGS" = set; then
857 CFLAGS="$ac_save_CFLAGS"
858 elif test $ac_cv_prog_cc_g = yes; then
859 if test "$GCC" = yes; then
860 CFLAGS="-g -O2"
861 else
862 CFLAGS="-g"
864 else
865 if test "$GCC" = yes; then
866 CFLAGS="-O2"
867 else
868 CFLAGS=
872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
873 echo "configure:874: checking how to run the C preprocessor" >&5
874 # On Suns, sometimes $CPP names a directory.
875 if test -n "$CPP" && test -d "$CPP"; then
876 CPP=
878 if test -z "$CPP"; then
879 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 # This must be in double quotes, not single quotes, because CPP may get
883 # substituted into the Makefile and "${CC-cc}" will confuse make.
884 CPP="${CC-cc} -E"
885 # On the NeXT, cc -E runs the code through the compiler's parser,
886 # not just through cpp.
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
890 #include <assert.h>
891 Syntax Error
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
898 else
899 echo "$ac_err" >&5
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
902 rm -rf conftest*
903 CPP="${CC-cc} -E -traditional-cpp"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
907 #include <assert.h>
908 Syntax Error
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
915 else
916 echo "$ac_err" >&5
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
919 rm -rf conftest*
920 CPP="${CC-cc} -nologo -E"
921 cat > conftest.$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
924 #include <assert.h>
925 Syntax Error
927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930 if test -z "$ac_err"; then
932 else
933 echo "$ac_err" >&5
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 rm -rf conftest*
937 CPP=/lib/cpp
939 rm -f conftest*
941 rm -f conftest*
943 rm -f conftest*
944 ac_cv_prog_CPP="$CPP"
946 CPP="$ac_cv_prog_CPP"
947 else
948 ac_cv_prog_CPP="$CPP"
950 echo "$ac_t""$CPP" 1>&6
952 # If we find X, set shell vars x_includes and x_libraries to the
953 # paths, otherwise set no_x=yes.
954 # Uses ac_ vars as temps to allow command line to override cache and checks.
955 # --without-x overrides everything else, but does not touch the cache.
956 echo $ac_n "checking for X""... $ac_c" 1>&6
957 echo "configure:958: checking for X" >&5
959 # Check whether --with-x or --without-x was given.
960 if test "${with_x+set}" = set; then
961 withval="$with_x"
965 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
966 if test "x$with_x" = xno; then
967 # The user explicitly disabled X.
968 have_x=disabled
969 else
970 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
971 # Both variables are already set.
972 have_x=yes
973 else
974 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 # One or both of the vars are not set, and there is no cached value.
978 ac_x_includes=NO ac_x_libraries=NO
979 rm -fr conftestdir
980 if mkdir conftestdir; then
981 cd conftestdir
982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
983 cat > Imakefile <<'EOF'
984 acfindx:
985 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
987 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
990 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
991 for ac_extension in a so sl; do
992 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
993 test -f $ac_im_libdir/libX11.$ac_extension; then
994 ac_im_usrlibdir=$ac_im_libdir; break
996 done
997 # Screen out bogus values from the imake configuration. They are
998 # bogus both because they are the default anyway, and because
999 # using them would break gcc on systems where it needs fixed includes.
1000 case "$ac_im_incroot" in
1001 /usr/include) ;;
1002 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1003 esac
1004 case "$ac_im_usrlibdir" in
1005 /usr/lib | /lib) ;;
1006 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1007 esac
1009 cd ..
1010 rm -fr conftestdir
1013 if test "$ac_x_includes" = NO; then
1014 # Guess where to find include files, by looking for this one X11 .h file.
1015 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1017 # First, try using that file with no special directory specified.
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <$x_direct_test_include>
1023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1024 { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1026 if test -z "$ac_err"; then
1027 rm -rf conftest*
1028 # We can compile using X headers with no special include directory.
1029 ac_x_includes=
1030 else
1031 echo "$ac_err" >&5
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1034 rm -rf conftest*
1035 # Look for the header file in a standard set of common directories.
1036 # Check X11 before X11Rn because it is often a symlink to the current release.
1037 for ac_dir in \
1038 /usr/X11/include \
1039 /usr/X11R6/include \
1040 /usr/X11R5/include \
1041 /usr/X11R4/include \
1043 /usr/include/X11 \
1044 /usr/include/X11R6 \
1045 /usr/include/X11R5 \
1046 /usr/include/X11R4 \
1048 /usr/local/X11/include \
1049 /usr/local/X11R6/include \
1050 /usr/local/X11R5/include \
1051 /usr/local/X11R4/include \
1053 /usr/local/include/X11 \
1054 /usr/local/include/X11R6 \
1055 /usr/local/include/X11R5 \
1056 /usr/local/include/X11R4 \
1058 /usr/X386/include \
1059 /usr/x386/include \
1060 /usr/XFree86/include/X11 \
1062 /usr/include \
1063 /usr/local/include \
1064 /usr/unsupported/include \
1065 /usr/athena/include \
1066 /usr/local/x11r5/include \
1067 /usr/lpp/Xamples/include \
1069 /usr/openwin/include \
1070 /usr/openwin/share/include \
1073 if test -r "$ac_dir/$x_direct_test_include"; then
1074 ac_x_includes=$ac_dir
1075 break
1077 done
1079 rm -f conftest*
1080 fi # $ac_x_includes = NO
1082 if test "$ac_x_libraries" = NO; then
1083 # Check for the libraries.
1085 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1086 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1088 # See if we find them without any special options.
1089 # Don't add to $LIBS permanently.
1090 ac_save_LIBS="$LIBS"
1091 LIBS="-l$x_direct_test_library $LIBS"
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1096 int main() {
1097 ${x_direct_test_function}()
1098 ; return 0; }
1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1101 rm -rf conftest*
1102 LIBS="$ac_save_LIBS"
1103 # We can link X programs with no special library path.
1104 ac_x_libraries=
1105 else
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1108 rm -rf conftest*
1109 LIBS="$ac_save_LIBS"
1110 # First see if replacing the include by lib works.
1111 # Check X11 before X11Rn because it is often a symlink to the current release.
1112 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1113 /usr/X11/lib \
1114 /usr/X11R6/lib \
1115 /usr/X11R5/lib \
1116 /usr/X11R4/lib \
1118 /usr/lib/X11 \
1119 /usr/lib/X11R6 \
1120 /usr/lib/X11R5 \
1121 /usr/lib/X11R4 \
1123 /usr/local/X11/lib \
1124 /usr/local/X11R6/lib \
1125 /usr/local/X11R5/lib \
1126 /usr/local/X11R4/lib \
1128 /usr/local/lib/X11 \
1129 /usr/local/lib/X11R6 \
1130 /usr/local/lib/X11R5 \
1131 /usr/local/lib/X11R4 \
1133 /usr/X386/lib \
1134 /usr/x386/lib \
1135 /usr/XFree86/lib/X11 \
1137 /usr/lib \
1138 /usr/local/lib \
1139 /usr/unsupported/lib \
1140 /usr/athena/lib \
1141 /usr/local/x11r5/lib \
1142 /usr/lpp/Xamples/lib \
1143 /lib/usr/lib/X11 \
1145 /usr/openwin/lib \
1146 /usr/openwin/share/lib \
1149 for ac_extension in a so sl; do
1150 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1151 ac_x_libraries=$ac_dir
1152 break 2
1154 done
1155 done
1157 rm -f conftest*
1158 fi # $ac_x_libraries = NO
1160 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1161 # Didn't find X anywhere. Cache the known absence of X.
1162 ac_cv_have_x="have_x=no"
1163 else
1164 # Record where we found X for the cache.
1165 ac_cv_have_x="have_x=yes \
1166 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1170 eval "$ac_cv_have_x"
1171 fi # $with_x != no
1173 if test "$have_x" != yes; then
1174 echo "$ac_t""$have_x" 1>&6
1175 no_x=yes
1176 else
1177 # If each of the values was on the command line, it overrides each guess.
1178 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1179 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1180 # Update the cache value to reflect the command line values.
1181 ac_cv_have_x="have_x=yes \
1182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1183 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1186 if test "$no_x" = yes; then
1187 # Not all programs may use this symbol, but it does not hurt to define it.
1188 cat >> confdefs.h <<\EOF
1189 #define X_DISPLAY_MISSING 1
1192 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1193 else
1194 if test -n "$x_includes"; then
1195 X_CFLAGS="$X_CFLAGS -I$x_includes"
1198 # It would also be nice to do this for all -L options, not just this one.
1199 if test -n "$x_libraries"; then
1200 X_LIBS="$X_LIBS -L$x_libraries"
1201 # For Solaris; some versions of Sun CC require a space after -R and
1202 # others require no space. Words are not sufficient . . . .
1203 case "`(uname -sr) 2>/dev/null`" in
1204 "SunOS 5"*)
1205 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether -R must be followed by a space" >&5
1207 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1212 int main() {
1214 ; return 0; }
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 rm -rf conftest*
1218 ac_R_nospace=yes
1219 else
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 rm -rf conftest*
1223 ac_R_nospace=no
1225 rm -f conftest*
1226 if test $ac_R_nospace = yes; then
1227 echo "$ac_t""no" 1>&6
1228 X_LIBS="$X_LIBS -R$x_libraries"
1229 else
1230 LIBS="$ac_xsave_LIBS -R $x_libraries"
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1235 int main() {
1237 ; return 0; }
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240 rm -rf conftest*
1241 ac_R_space=yes
1242 else
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1245 rm -rf conftest*
1246 ac_R_space=no
1248 rm -f conftest*
1249 if test $ac_R_space = yes; then
1250 echo "$ac_t""yes" 1>&6
1251 X_LIBS="$X_LIBS -R $x_libraries"
1252 else
1253 echo "$ac_t""neither works" 1>&6
1256 LIBS="$ac_xsave_LIBS"
1257 esac
1260 # Check for system-dependent libraries X programs must link with.
1261 # Do this before checking for the system-independent R6 libraries
1262 # (-lICE), since we may need -lsocket or whatever for X linking.
1264 if test "$ISC" = yes; then
1265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1266 else
1267 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1268 # libraries were built with DECnet support. And karl@cs.umb.edu says
1269 # the Alpha needs dnet_stub (dnet does not exist).
1270 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1271 echo "configure:1272: checking for dnet_ntoa in -ldnet" >&5
1272 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 ac_save_LIBS="$LIBS"
1277 LIBS="-ldnet $LIBS"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1284 char dnet_ntoa();
1286 int main() {
1287 dnet_ntoa()
1288 ; return 0; }
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1291 rm -rf conftest*
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1293 else
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=no"
1299 rm -f conftest*
1300 LIBS="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1305 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1306 else
1307 echo "$ac_t""no" 1>&6
1310 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1311 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1312 echo "configure:1313: checking for dnet_ntoa in -ldnet_stub" >&5
1313 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1316 else
1317 ac_save_LIBS="$LIBS"
1318 LIBS="-ldnet_stub $LIBS"
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1325 char dnet_ntoa();
1327 int main() {
1328 dnet_ntoa()
1329 ; return 0; }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1332 rm -rf conftest*
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_lib_$ac_lib_var=no"
1340 rm -f conftest*
1341 LIBS="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1346 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1347 else
1348 echo "$ac_t""no" 1>&6
1353 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1354 # to get the SysV transport functions.
1355 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1356 # needs -lnsl.
1357 # The nsl library prevents programs from opening the X display
1358 # on Irix 5.2, according to dickey@clark.net.
1359 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1360 echo "configure:1361: checking for gethostbyname" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char gethostbyname(); below. */
1369 #include <assert.h>
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1373 char gethostbyname();
1375 int main() {
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1381 choke me
1382 #else
1383 gethostbyname();
1384 #endif
1386 ; return 0; }
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1389 rm -rf conftest*
1390 eval "ac_cv_func_gethostbyname=yes"
1391 else
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1394 rm -rf conftest*
1395 eval "ac_cv_func_gethostbyname=no"
1397 rm -f conftest*
1400 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1403 else
1404 echo "$ac_t""no" 1>&6
1407 if test $ac_cv_func_gethostbyname = no; then
1408 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1409 echo "configure:1410: checking for gethostbyname in -lnsl" >&5
1410 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 ac_save_LIBS="$LIBS"
1415 LIBS="-lnsl $LIBS"
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419 /* Override any gcc2 internal prototype to avoid an error. */
1420 /* We use char because int might match the return type of a gcc2
1421 builtin and then its argument prototype would still apply. */
1422 char gethostbyname();
1424 int main() {
1425 gethostbyname()
1426 ; return 0; }
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1429 rm -rf conftest*
1430 eval "ac_cv_lib_$ac_lib_var=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_lib_$ac_lib_var=no"
1437 rm -f conftest*
1438 LIBS="$ac_save_LIBS"
1441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1444 else
1445 echo "$ac_t""no" 1>&6
1450 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1451 # socket/setsockopt and other routines are undefined under SCO ODT
1452 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1453 # on later versions), says simon@lia.di.epfl.ch: it contains
1454 # gethostby* variants that don't use the nameserver (or something).
1455 # -lsocket must be given before -lnsl if both are needed.
1456 # We assume that if connect needs -lnsl, so does gethostbyname.
1457 echo $ac_n "checking for connect""... $ac_c" 1>&6
1458 echo "configure:1459: checking for connect" >&5
1459 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1465 /* System header to define __stub macros and hopefully few prototypes,
1466 which can conflict with char connect(); below. */
1467 #include <assert.h>
1468 /* Override any gcc2 internal prototype to avoid an error. */
1469 /* We use char because int might match the return type of a gcc2
1470 builtin and then its argument prototype would still apply. */
1471 char connect();
1473 int main() {
1475 /* The GNU C library defines this for functions which it implements
1476 to always fail with ENOSYS. Some functions are actually named
1477 something starting with __ and the normal name is an alias. */
1478 #if defined (__stub_connect) || defined (__stub___connect)
1479 choke me
1480 #else
1481 connect();
1482 #endif
1484 ; return 0; }
1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1487 rm -rf conftest*
1488 eval "ac_cv_func_connect=yes"
1489 else
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 rm -rf conftest*
1493 eval "ac_cv_func_connect=no"
1495 rm -f conftest*
1498 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1505 if test $ac_cv_func_connect = no; then
1506 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1507 echo "configure:1508: checking for connect in -lsocket" >&5
1508 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512 ac_save_LIBS="$LIBS"
1513 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1520 char connect();
1522 int main() {
1523 connect()
1524 ; return 0; }
1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527 rm -rf conftest*
1528 eval "ac_cv_lib_$ac_lib_var=yes"
1529 else
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1532 rm -rf conftest*
1533 eval "ac_cv_lib_$ac_lib_var=no"
1535 rm -f conftest*
1536 LIBS="$ac_save_LIBS"
1539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1540 echo "$ac_t""yes" 1>&6
1541 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1542 else
1543 echo "$ac_t""no" 1>&6
1548 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1549 echo $ac_n "checking for remove""... $ac_c" 1>&6
1550 echo "configure:1551: checking for remove" >&5
1551 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char remove(); below. */
1559 #include <assert.h>
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1563 char remove();
1565 int main() {
1567 /* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570 #if defined (__stub_remove) || defined (__stub___remove)
1571 choke me
1572 #else
1573 remove();
1574 #endif
1576 ; return 0; }
1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1579 rm -rf conftest*
1580 eval "ac_cv_func_remove=yes"
1581 else
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 eval "ac_cv_func_remove=no"
1587 rm -f conftest*
1590 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1593 else
1594 echo "$ac_t""no" 1>&6
1597 if test $ac_cv_func_remove = no; then
1598 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1599 echo "configure:1600: checking for remove in -lposix" >&5
1600 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 ac_save_LIBS="$LIBS"
1605 LIBS="-lposix $LIBS"
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1612 char remove();
1614 int main() {
1615 remove()
1616 ; return 0; }
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1619 rm -rf conftest*
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1621 else
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1624 rm -rf conftest*
1625 eval "ac_cv_lib_$ac_lib_var=no"
1627 rm -f conftest*
1628 LIBS="$ac_save_LIBS"
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1634 else
1635 echo "$ac_t""no" 1>&6
1640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1641 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1642 echo "configure:1643: checking for shmat" >&5
1643 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 /* System header to define __stub macros and hopefully few prototypes,
1650 which can conflict with char shmat(); below. */
1651 #include <assert.h>
1652 /* Override any gcc2 internal prototype to avoid an error. */
1653 /* We use char because int might match the return type of a gcc2
1654 builtin and then its argument prototype would still apply. */
1655 char shmat();
1657 int main() {
1659 /* The GNU C library defines this for functions which it implements
1660 to always fail with ENOSYS. Some functions are actually named
1661 something starting with __ and the normal name is an alias. */
1662 #if defined (__stub_shmat) || defined (__stub___shmat)
1663 choke me
1664 #else
1665 shmat();
1666 #endif
1668 ; return 0; }
1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1671 rm -rf conftest*
1672 eval "ac_cv_func_shmat=yes"
1673 else
1674 echo "configure: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1676 rm -rf conftest*
1677 eval "ac_cv_func_shmat=no"
1679 rm -f conftest*
1682 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1685 else
1686 echo "$ac_t""no" 1>&6
1689 if test $ac_cv_func_shmat = no; then
1690 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1691 echo "configure:1692: checking for shmat in -lipc" >&5
1692 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 ac_save_LIBS="$LIBS"
1697 LIBS="-lipc $LIBS"
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 /* Override any gcc2 internal prototype to avoid an error. */
1702 /* We use char because int might match the return type of a gcc2
1703 builtin and then its argument prototype would still apply. */
1704 char shmat();
1706 int main() {
1707 shmat()
1708 ; return 0; }
1710 if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1713 else
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 eval "ac_cv_lib_$ac_lib_var=no"
1719 rm -f conftest*
1720 LIBS="$ac_save_LIBS"
1723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1726 else
1727 echo "$ac_t""no" 1>&6
1733 # Check for libraries that X11R6 Xt/Xaw programs need.
1734 ac_save_LDFLAGS="$LDFLAGS"
1735 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1736 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1737 # check for ICE first), but we must link in the order -lSM -lICE or
1738 # we get undefined symbols. So assume we have SM if we have ICE.
1739 # These have to be linked with before -lX11, unlike the other
1740 # libraries we check for below, so use a different variable.
1741 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1742 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1743 echo "configure:1744: checking for IceConnectionNumber in -lICE" >&5
1744 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 ac_save_LIBS="$LIBS"
1749 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1756 char IceConnectionNumber();
1758 int main() {
1759 IceConnectionNumber()
1760 ; return 0; }
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 rm -rf conftest*
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1765 else
1766 echo "configure: failed program was:" >&5
1767 cat conftest.$ac_ext >&5
1768 rm -rf conftest*
1769 eval "ac_cv_lib_$ac_lib_var=no"
1771 rm -f conftest*
1772 LIBS="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1778 else
1779 echo "$ac_t""no" 1>&6
1782 LDFLAGS="$ac_save_LDFLAGS"
1786 for ac_prog in 'bison -y' byacc
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -n "$YACC"; then
1796 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1797 else
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 ac_dummy="$PATH"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_YACC="$ac_prog"
1804 break
1806 done
1807 IFS="$ac_save_ifs"
1810 YACC="$ac_cv_prog_YACC"
1811 if test -n "$YACC"; then
1812 echo "$ac_t""$YACC" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1817 test -n "$YACC" && break
1818 done
1819 test -n "$YACC" || YACC="yacc"
1821 # Extract the first word of "flex", so it can be a program name with args.
1822 set dummy flex; ac_word=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828 if test -n "$LEX"; then
1829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1830 else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_LEX="flex"
1837 break
1839 done
1840 IFS="$ac_save_ifs"
1841 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1844 LEX="$ac_cv_prog_LEX"
1845 if test -n "$LEX"; then
1846 echo "$ac_t""$LEX" 1>&6
1847 else
1848 echo "$ac_t""no" 1>&6
1851 if test -z "$LEXLIB"
1852 then
1853 case "$LEX" in
1854 flex*) ac_lib=fl ;;
1855 *) ac_lib=l ;;
1856 esac
1857 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1858 echo "configure:1859: checking for yywrap in -l$ac_lib" >&5
1859 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 ac_save_LIBS="$LIBS"
1864 LIBS="-l$ac_lib $LIBS"
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 /* Override any gcc2 internal prototype to avoid an error. */
1869 /* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
1871 char yywrap();
1873 int main() {
1874 yywrap()
1875 ; return 0; }
1877 if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 rm -rf conftest*
1879 eval "ac_cv_lib_$ac_lib_var=yes"
1880 else
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 eval "ac_cv_lib_$ac_lib_var=no"
1886 rm -f conftest*
1887 LIBS="$ac_save_LIBS"
1890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 LEXLIB="-l$ac_lib"
1893 else
1894 echo "$ac_t""no" 1>&6
1899 for ac_prog in $LEX flex lex
1901 # Extract the first word of "$ac_prog", so it can be a program name with args.
1902 set dummy $ac_prog; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908 if test -n "$XLEX"; then
1909 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1910 else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 ac_dummy="$PATH"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1916 ac_cv_prog_XLEX="$ac_prog"
1917 break
1919 done
1920 IFS="$ac_save_ifs"
1923 XLEX="$ac_cv_prog_XLEX"
1924 if test -n "$XLEX"; then
1925 echo "$ac_t""$XLEX" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1930 test -n "$XLEX" && break
1931 done
1932 test -n "$XLEX" || XLEX="none"
1934 if test "$XLEX" = "none"
1935 then
1936 echo "*** Error: No suitable lex found. ***"
1937 echo " Please install the 'flex' package."
1938 exit 1
1940 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1941 echo "configure:1942: checking lex output file root" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 # The minimal lex program is just a single line: %%. But some broken lexes
1946 # (Solaris, I think it was) want two %% lines, so accommodate them.
1947 echo '%%
1948 %%' | $LEX
1949 if test -f lex.yy.c; then
1950 ac_cv_prog_lex_root=lex.yy
1951 elif test -f lexyy.c; then
1952 ac_cv_prog_lex_root=lexyy
1953 else
1954 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1958 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1959 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1961 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether yytext is a pointer" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 # POSIX says lex can declare yytext either as a pointer or an array; the
1967 # default is implementation-dependent. Figure out which it is, since
1968 # not all implementations provide the %pointer and %array declarations.
1969 ac_cv_prog_lex_yytext_pointer=no
1970 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1971 ac_save_LIBS="$LIBS"
1972 LIBS="$LIBS $LEXLIB"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 `cat $LEX_OUTPUT_ROOT.c`
1977 int main() {
1979 ; return 0; }
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982 rm -rf conftest*
1983 ac_cv_prog_lex_yytext_pointer=yes
1984 else
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 rm -f conftest*
1989 LIBS="$ac_save_LIBS"
1990 rm -f "${LEX_OUTPUT_ROOT}.c"
1994 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1995 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1996 cat >> confdefs.h <<\EOF
1997 #define YYTEXT_POINTER 1
2002 # Extract the first word of "ranlib", so it can be a program name with args.
2003 set dummy ranlib; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009 if test -n "$RANLIB"; then
2010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2011 else
2012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2013 ac_dummy="$PATH"
2014 for ac_dir in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_RANLIB="ranlib"
2018 break
2020 done
2021 IFS="$ac_save_ifs"
2022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2025 RANLIB="$ac_cv_prog_RANLIB"
2026 if test -n "$RANLIB"; then
2027 echo "$ac_t""$RANLIB" 1>&6
2028 else
2029 echo "$ac_t""no" 1>&6
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2038 # AIX /bin/install
2039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2042 # ./install, which can be erroneously created by make from ./install.sh.
2043 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2044 echo "configure:2045: checking for a BSD compatible install" >&5
2045 if test -z "$INSTALL"; then
2046 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2050 for ac_dir in $PATH; do
2051 # Account for people who put trailing slashes in PATH elements.
2052 case "$ac_dir/" in
2053 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2055 # OSF1 and SCO ODT 3.0 have their own names for install.
2056 # Don't use installbsd from OSF since it installs stuff as root
2057 # by default.
2058 for ac_prog in ginstall scoinst install; do
2059 if test -f $ac_dir/$ac_prog; then
2060 if test $ac_prog = install &&
2061 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2062 # AIX install. It has an incompatible calling convention.
2064 else
2065 ac_cv_path_install="$ac_dir/$ac_prog -c"
2066 break 2
2069 done
2071 esac
2072 done
2073 IFS="$ac_save_IFS"
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL="$ac_cv_path_install"
2078 else
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL="$ac_install_sh"
2086 echo "$ac_t""$INSTALL" 1>&6
2088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089 # It thinks the first close brace ends the variable substitution.
2090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2096 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether ln -s works" >&5
2098 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 rm -f conftestdata
2102 if ln -s X conftestdata 2>/dev/null
2103 then
2104 rm -f conftestdata
2105 ac_cv_prog_LN_S="ln -s"
2106 else
2107 ac_cv_prog_LN_S=ln
2110 LN_S="$ac_cv_prog_LN_S"
2111 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2112 echo "$ac_t""yes" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "c2man", so it can be a program name with args.
2118 set dummy c2man; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 if test -n "$C2MAN"; then
2125 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2126 else
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="$PATH"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_C2MAN="c2man"
2133 break
2135 done
2136 IFS="$ac_save_ifs"
2137 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2140 C2MAN="$ac_cv_prog_C2MAN"
2141 if test -n "$C2MAN"; then
2142 echo "$ac_t""$C2MAN" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2147 # Extract the first word of "ldconfig", so it can be a program name with args.
2148 set dummy ldconfig; ac_word=$2
2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_word" >&5
2151 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 case "$LDCONFIG" in
2156 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2158 ?:/*)
2159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 ac_dummy="/sbin:/usr/sbin:$PATH"
2164 for ac_dir in $ac_dummy; do
2165 test -z "$ac_dir" && ac_dir=.
2166 if test -f $ac_dir/$ac_word; then
2167 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2168 break
2170 done
2171 IFS="$ac_save_ifs"
2172 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2174 esac
2176 LDCONFIG="$ac_cv_path_LDCONFIG"
2177 if test -n "$LDCONFIG"; then
2178 echo "$ac_t""$LDCONFIG" 1>&6
2179 else
2180 echo "$ac_t""no" 1>&6
2183 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2184 echo "configure:2185: checking for Cygwin environment" >&5
2185 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2192 int main() {
2194 #ifndef __CYGWIN__
2195 #define __CYGWIN__ __CYGWIN32__
2196 #endif
2197 return __CYGWIN__;
2198 ; return 0; }
2200 if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 rm -rf conftest*
2202 ac_cv_cygwin=yes
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 ac_cv_cygwin=no
2209 rm -f conftest*
2210 rm -f conftest*
2213 echo "$ac_t""$ac_cv_cygwin" 1>&6
2214 CYGWIN=
2215 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2217 for ac_prog in lclint lint
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$LINT"; then
2227 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_LINT="$ac_prog"
2235 break
2237 done
2238 IFS="$ac_save_ifs"
2241 LINT="$ac_cv_prog_LINT"
2242 if test -n "$LINT"; then
2243 echo "$ac_t""$LINT" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2248 test -n "$LINT" && break
2249 done
2251 if test "$LINT" = "lint"
2252 then
2253 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2258 if test "$CYGWIN" = "yes"
2259 then
2260 LDCOMBINE="ld -r --enable-stdcall-fixup"
2261 else
2262 LDCOMBINE="ld -r"
2267 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2268 echo "configure:2269: checking for sqrt in -lm" >&5
2269 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 ac_save_LIBS="$LIBS"
2274 LIBS="-lm $LIBS"
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* Override any gcc2 internal prototype to avoid an error. */
2279 /* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2281 char sqrt();
2283 int main() {
2284 sqrt()
2285 ; return 0; }
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 rm -rf conftest*
2289 eval "ac_cv_lib_$ac_lib_var=yes"
2290 else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=no"
2296 rm -f conftest*
2297 LIBS="$ac_save_LIBS"
2300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_lib 1
2308 LIBS="-lm $LIBS"
2310 else
2311 echo "$ac_t""no" 1>&6
2314 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2315 echo "configure:2316: checking for i386_set_ldt in -li386" >&5
2316 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 ac_save_LIBS="$LIBS"
2321 LIBS="-li386 $LIBS"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2328 char i386_set_ldt();
2330 int main() {
2331 i386_set_ldt()
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 eval "ac_cv_lib_$ac_lib_var=yes"
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 eval "ac_cv_lib_$ac_lib_var=no"
2343 rm -f conftest*
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2355 LIBS="-li386 $LIBS"
2357 else
2358 echo "$ac_t""no" 1>&6
2361 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2362 echo "configure:2363: checking for _oss_ioctl in -lossaudio" >&5
2363 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367 ac_save_LIBS="$LIBS"
2368 LIBS="-lossaudio $LIBS"
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 /* Override any gcc2 internal prototype to avoid an error. */
2373 /* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2375 char _oss_ioctl();
2377 int main() {
2378 _oss_ioctl()
2379 ; return 0; }
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382 rm -rf conftest*
2383 eval "ac_cv_lib_$ac_lib_var=yes"
2384 else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_lib_$ac_lib_var=no"
2390 rm -f conftest*
2391 LIBS="$ac_save_LIBS"
2394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2398 cat >> confdefs.h <<EOF
2399 #define $ac_tr_lib 1
2402 LIBS="-lossaudio $LIBS"
2404 else
2405 echo "$ac_t""no" 1>&6
2408 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2409 echo "configure:2410: checking for iswalnum in -lw" >&5
2410 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414 ac_save_LIBS="$LIBS"
2415 LIBS="-lw $LIBS"
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* Override any gcc2 internal prototype to avoid an error. */
2420 /* We use char because int might match the return type of a gcc2
2421 builtin and then its argument prototype would still apply. */
2422 char iswalnum();
2424 int main() {
2425 iswalnum()
2426 ; return 0; }
2428 if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2429 rm -rf conftest*
2430 eval "ac_cv_lib_$ac_lib_var=yes"
2431 else
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 rm -rf conftest*
2435 eval "ac_cv_lib_$ac_lib_var=no"
2437 rm -f conftest*
2438 LIBS="$ac_save_LIBS"
2441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2442 echo "$ac_t""yes" 1>&6
2443 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2445 cat >> confdefs.h <<EOF
2446 #define $ac_tr_lib 1
2449 LIBS="-lw $LIBS"
2451 else
2452 echo "$ac_t""no" 1>&6
2455 for ac_func in gethostbyname
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467 #include <assert.h>
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471 char $ac_func();
2473 int main() {
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 choke me
2480 #else
2481 $ac_func();
2482 #endif
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2495 rm -f conftest*
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2505 else
2506 echo "$ac_t""no" 1>&6
2507 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2508 echo "configure:2509: checking for gethostbyname in -lnsl" >&5
2509 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513 ac_save_LIBS="$LIBS"
2514 LIBS="-lnsl -lsocket $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2521 char gethostbyname();
2523 int main() {
2524 gethostbyname()
2525 ; return 0; }
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528 rm -rf conftest*
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2530 else
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 rm -rf conftest*
2534 eval "ac_cv_lib_$ac_lib_var=no"
2536 rm -f conftest*
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2543 else
2544 echo "$ac_t""no" 1>&6
2545 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2546 echo "configure:2547: checking for gethostbyname in -lsocket" >&5
2547 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2550 else
2551 ac_save_LIBS="$LIBS"
2552 LIBS="-lsocket -lnsl $LIBS"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559 char gethostbyname();
2561 int main() {
2562 gethostbyname()
2563 ; return 0; }
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2566 rm -rf conftest*
2567 eval "ac_cv_lib_$ac_lib_var=yes"
2568 else
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 rm -rf conftest*
2572 eval "ac_cv_lib_$ac_lib_var=no"
2574 rm -f conftest*
2575 LIBS="$ac_save_LIBS"
2578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2581 else
2582 echo "$ac_t""no" 1>&6
2588 done
2590 for ac_func in connect
2592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_func" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char $ac_func(); below. */
2602 #include <assert.h>
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char $ac_func();
2608 int main() {
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2614 choke me
2615 #else
2616 $ac_func();
2617 #endif
2619 ; return 0; }
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622 rm -rf conftest*
2623 eval "ac_cv_func_$ac_func=yes"
2624 else
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 rm -rf conftest*
2628 eval "ac_cv_func_$ac_func=no"
2630 rm -f conftest*
2633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2634 echo "$ac_t""yes" 1>&6
2635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2636 cat >> confdefs.h <<EOF
2637 #define $ac_tr_func 1
2640 else
2641 echo "$ac_t""no" 1>&6
2642 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2643 echo "configure:2644: checking for connect in -lsocket" >&5
2644 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648 ac_save_LIBS="$LIBS"
2649 LIBS="-lsocket $LIBS"
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 /* Override any gcc2 internal prototype to avoid an error. */
2654 /* We use char because int might match the return type of a gcc2
2655 builtin and then its argument prototype would still apply. */
2656 char connect();
2658 int main() {
2659 connect()
2660 ; return 0; }
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663 rm -rf conftest*
2664 eval "ac_cv_lib_$ac_lib_var=yes"
2665 else
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 rm -rf conftest*
2669 eval "ac_cv_lib_$ac_lib_var=no"
2671 rm -f conftest*
2672 LIBS="$ac_save_LIBS"
2675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2677 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_lib 1
2683 LIBS="-lsocket $LIBS"
2685 else
2686 echo "$ac_t""no" 1>&6
2690 done
2692 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2693 echo "configure:2694: checking for setrunelocale in -lxpg4" >&5
2694 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697 else
2698 ac_save_LIBS="$LIBS"
2699 LIBS="-lxpg4 $LIBS"
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706 char setrunelocale();
2708 int main() {
2709 setrunelocale()
2710 ; return 0; }
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2713 rm -rf conftest*
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2715 else
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_lib_$ac_lib_var=no"
2721 rm -f conftest*
2722 LIBS="$ac_save_LIBS"
2725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2729 cat >> confdefs.h <<EOF
2730 #define $ac_tr_lib 1
2733 LIBS="-lxpg4 $LIBS"
2735 else
2736 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2740 echo "configure:2741: checking for mmap in -lmmap" >&5
2741 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 ac_save_LIBS="$LIBS"
2746 LIBS="-lmmap $LIBS"
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* Override any gcc2 internal prototype to avoid an error. */
2751 /* We use char because int might match the return type of a gcc2
2752 builtin and then its argument prototype would still apply. */
2753 char mmap();
2755 int main() {
2756 mmap()
2757 ; return 0; }
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2760 rm -rf conftest*
2761 eval "ac_cv_lib_$ac_lib_var=yes"
2762 else
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 rm -rf conftest*
2766 eval "ac_cv_lib_$ac_lib_var=no"
2768 rm -f conftest*
2769 LIBS="$ac_save_LIBS"
2772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2773 echo "$ac_t""yes" 1>&6
2774 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2775 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2776 cat >> confdefs.h <<EOF
2777 #define $ac_tr_lib 1
2780 LIBS="-lmmap $LIBS"
2782 else
2783 echo "$ac_t""no" 1>&6
2786 for ac_func in openpty
2788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_func" >&5
2790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $ac_func(); below. */
2798 #include <assert.h>
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2802 char $ac_func();
2804 int main() {
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2810 choke me
2811 #else
2812 $ac_func();
2813 #endif
2815 ; return 0; }
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2818 rm -rf conftest*
2819 eval "ac_cv_func_$ac_func=yes"
2820 else
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 rm -rf conftest*
2824 eval "ac_cv_func_$ac_func=no"
2826 rm -f conftest*
2829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_func 1
2836 else
2837 echo "$ac_t""no" 1>&6
2838 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2839 echo "configure:2840: checking for openpty in -lutil" >&5
2840 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2843 else
2844 ac_save_LIBS="$LIBS"
2845 LIBS="-lutil $LIBS"
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849 /* Override any gcc2 internal prototype to avoid an error. */
2850 /* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2852 char openpty();
2854 int main() {
2855 openpty()
2856 ; return 0; }
2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2859 rm -rf conftest*
2860 eval "ac_cv_lib_$ac_lib_var=yes"
2861 else
2862 echo "configure: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2864 rm -rf conftest*
2865 eval "ac_cv_lib_$ac_lib_var=no"
2867 rm -f conftest*
2868 LIBS="$ac_save_LIBS"
2871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 cat >> confdefs.h <<\EOF
2874 #define HAVE_OPENPTY 1
2877 LIBS="$LIBS -lutil"
2879 else
2880 echo "$ac_t""no" 1>&6
2884 done
2887 for ac_hdr in dlfcn.h
2889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2891 echo "configure:2892: checking for $ac_hdr" >&5
2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 #include <$ac_hdr>
2900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901 { (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903 if test -z "$ac_err"; then
2904 rm -rf conftest*
2905 eval "ac_cv_header_$ac_safe=yes"
2906 else
2907 echo "$ac_err" >&5
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=no"
2913 rm -f conftest*
2915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2918 cat >> confdefs.h <<EOF
2919 #define $ac_tr_hdr 1
2921 for ac_func in dlopen
2923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2924 echo "configure:2925: checking for $ac_func" >&5
2925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2927 else
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $ac_func(); below. */
2933 #include <assert.h>
2934 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2937 char $ac_func();
2939 int main() {
2941 /* The GNU C library defines this for functions which it implements
2942 to always fail with ENOSYS. Some functions are actually named
2943 something starting with __ and the normal name is an alias. */
2944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2945 choke me
2946 #else
2947 $ac_func();
2948 #endif
2950 ; return 0; }
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2953 rm -rf conftest*
2954 eval "ac_cv_func_$ac_func=yes"
2955 else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 eval "ac_cv_func_$ac_func=no"
2961 rm -f conftest*
2964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2965 echo "$ac_t""yes" 1>&6
2966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2967 cat >> confdefs.h <<EOF
2968 #define $ac_tr_func 1
2970 cat >> confdefs.h <<\EOF
2971 #define HAVE_DL_API 1
2974 else
2975 echo "$ac_t""no" 1>&6
2976 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2977 echo "configure:2978: checking for dlopen in -ldl" >&5
2978 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 ac_save_LIBS="$LIBS"
2983 LIBS="-ldl $LIBS"
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2990 char dlopen();
2992 int main() {
2993 dlopen()
2994 ; return 0; }
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 rm -rf conftest*
2998 eval "ac_cv_lib_$ac_lib_var=yes"
2999 else
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3002 rm -rf conftest*
3003 eval "ac_cv_lib_$ac_lib_var=no"
3005 rm -f conftest*
3006 LIBS="$ac_save_LIBS"
3009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 cat >> confdefs.h <<\EOF
3012 #define HAVE_DL_API 1
3015 LIBS="$LIBS -ldl"
3016 else
3017 echo "$ac_t""no" 1>&6
3018 LIBEXT="a"
3024 done
3026 else
3027 echo "$ac_t""no" 1>&6
3028 LIBEXT="a"
3031 done
3035 X_DLLS=""
3037 XFILES=""
3039 OPENGLFILES=""
3041 OPENGL32_DLL=""
3043 DGA_SRCS=""
3045 DGA2_SRCS=""
3047 MESA_SRCS=""
3048 if test "$have_x" = "yes"
3049 then
3050 XLIB="-lXext -lX11"
3051 ac_save_CPPFLAGS="$CPPFLAGS"
3052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3054 for ac_hdr in X11/xpm.h
3056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_hdr" >&5
3059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <$ac_hdr>
3067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3068 { (eval echo configure:3069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3070 if test -z "$ac_err"; then
3071 rm -rf conftest*
3072 eval "ac_cv_header_$ac_safe=yes"
3073 else
3074 echo "$ac_err" >&5
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3077 rm -rf conftest*
3078 eval "ac_cv_header_$ac_safe=no"
3080 rm -f conftest*
3082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3083 echo "$ac_t""yes" 1>&6
3084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3085 cat >> confdefs.h <<EOF
3086 #define $ac_tr_hdr 1
3088 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3089 echo "configure:3090: checking for XpmCreatePixmapFromData in -lXpm" >&5
3090 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3093 else
3094 ac_save_LIBS="$LIBS"
3095 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3096 $LIBS"
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* Override any gcc2 internal prototype to avoid an error. */
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3103 char XpmCreatePixmapFromData();
3105 int main() {
3106 XpmCreatePixmapFromData()
3107 ; return 0; }
3109 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3110 rm -rf conftest*
3111 eval "ac_cv_lib_$ac_lib_var=yes"
3112 else
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 rm -rf conftest*
3116 eval "ac_cv_lib_$ac_lib_var=no"
3118 rm -f conftest*
3119 LIBS="$ac_save_LIBS"
3122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3123 echo "$ac_t""yes" 1>&6
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_LIBXXPM 1
3127 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3128 else
3129 echo "$ac_t""no" 1>&6
3133 else
3134 echo "$ac_t""no" 1>&6
3135 echo "Redhat : xpm xpm-devel"
3136 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3137 echo "SuSE : xpm"
3138 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3139 echo
3140 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3141 echo "the directory /contrib/libraries."
3142 echo
3143 exit 1
3147 done
3150 for ac_hdr in X11/Xlib.h
3152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_hdr" >&5
3155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 #include <$ac_hdr>
3163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3167 rm -rf conftest*
3168 eval "ac_cv_header_$ac_safe=yes"
3169 else
3170 echo "$ac_err" >&5
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3173 rm -rf conftest*
3174 eval "ac_cv_header_$ac_safe=no"
3176 rm -f conftest*
3178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_hdr 1
3185 for ac_hdr in X11/extensions/XShm.h
3187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_hdr" >&5
3190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <$ac_hdr>
3198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3199 { (eval echo configure:3200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3201 if test -z "$ac_err"; then
3202 rm -rf conftest*
3203 eval "ac_cv_header_$ac_safe=yes"
3204 else
3205 echo "$ac_err" >&5
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3208 rm -rf conftest*
3209 eval "ac_cv_header_$ac_safe=no"
3211 rm -f conftest*
3213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3216 cat >> confdefs.h <<EOF
3217 #define $ac_tr_hdr 1
3219 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3220 echo "configure:3221: checking for XShmQueryExtension in -lXext" >&5
3221 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3224 else
3225 ac_save_LIBS="$LIBS"
3226 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233 char XShmQueryExtension();
3235 int main() {
3236 XShmQueryExtension()
3237 ; return 0; }
3239 if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3240 rm -rf conftest*
3241 eval "ac_cv_lib_$ac_lib_var=yes"
3242 else
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 rm -rf conftest*
3246 eval "ac_cv_lib_$ac_lib_var=no"
3248 rm -f conftest*
3249 LIBS="$ac_save_LIBS"
3252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_LIBXXSHM 1
3258 else
3259 echo "$ac_t""no" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 echo "configure: warning: Xshm extension not found!!" 1>&2
3268 done
3271 for ac_hdr in X11/Xlib.h X11/extensions/shape.h
3273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_hdr" >&5
3276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3278 else
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #include <$ac_hdr>
3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3287 if test -z "$ac_err"; then
3288 rm -rf conftest*
3289 eval "ac_cv_header_$ac_safe=yes"
3290 else
3291 echo "$ac_err" >&5
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 rm -rf conftest*
3295 eval "ac_cv_header_$ac_safe=no"
3297 rm -f conftest*
3299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302 cat >> confdefs.h <<EOF
3303 #define $ac_tr_hdr 1
3305 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3306 echo "configure:3307: checking for XShapeQueryExtension in -lXext" >&5
3307 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 ac_save_LIBS="$LIBS"
3312 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3319 char XShapeQueryExtension();
3321 int main() {
3322 XShapeQueryExtension()
3323 ; return 0; }
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 rm -rf conftest*
3327 eval "ac_cv_lib_$ac_lib_var=yes"
3328 else
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 rm -rf conftest*
3332 eval "ac_cv_lib_$ac_lib_var=no"
3334 rm -f conftest*
3335 LIBS="$ac_save_LIBS"
3338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 cat >> confdefs.h <<\EOF
3341 #define HAVE_LIBXSHAPE 1
3344 else
3345 echo "$ac_t""no" 1>&6
3349 else
3350 echo "$ac_t""no" 1>&6
3351 echo "configure: warning: XShape extension found!!" 1>&2
3354 done
3357 for ac_hdr in X11/extensions/xf86dga.h
3359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_hdr" >&5
3362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <$ac_hdr>
3370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3371 { (eval echo configure:3372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3373 if test -z "$ac_err"; then
3374 rm -rf conftest*
3375 eval "ac_cv_header_$ac_safe=yes"
3376 else
3377 echo "$ac_err" >&5
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 eval "ac_cv_header_$ac_safe=no"
3383 rm -f conftest*
3385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_hdr 1
3391 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3392 echo "configure:3393: checking for XDGAQueryExtension in -lXxf86dga" >&5
3393 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3397 ac_save_LIBS="$LIBS"
3398 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3399 $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char XDGAQueryExtension();
3408 int main() {
3409 XDGAQueryExtension()
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 rm -rf conftest*
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=no"
3421 rm -f conftest*
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 cat >> confdefs.h <<\EOF
3428 #define HAVE_LIBXXF86DGA2 1
3431 cat >> confdefs.h <<\EOF
3432 #define HAVE_LIBXXF86DGA 1
3435 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3436 DGA_SRCS='$(DGA_SRCS)'
3437 DGA2_SRCS='$(DGA2_SRCS)'
3439 else
3440 echo "$ac_t""no" 1>&6
3441 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3442 echo "configure:3443: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3443 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446 else
3447 ac_save_LIBS="$LIBS"
3448 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3449 $LIBS"
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3456 char XF86DGAQueryExtension();
3458 int main() {
3459 XF86DGAQueryExtension()
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 rm -rf conftest*
3464 eval "ac_cv_lib_$ac_lib_var=yes"
3465 else
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468 rm -rf conftest*
3469 eval "ac_cv_lib_$ac_lib_var=no"
3471 rm -f conftest*
3472 LIBS="$ac_save_LIBS"
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 cat >> confdefs.h <<\EOF
3478 #define HAVE_LIBXXF86DGA 1
3481 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3482 DGA_SRCS='$(DGA_SRCS)'
3484 else
3485 echo "$ac_t""no" 1>&6
3492 else
3493 echo "$ac_t""no" 1>&6
3494 echo "configure: warning: DGA extension not found!!" 1>&2
3497 done
3500 for ac_hdr in X11/extensions/xf86vmode.h
3502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3504 echo "configure:3505: checking for $ac_hdr" >&5
3505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3507 else
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <$ac_hdr>
3513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3514 { (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3516 if test -z "$ac_err"; then
3517 rm -rf conftest*
3518 eval "ac_cv_header_$ac_safe=yes"
3519 else
3520 echo "$ac_err" >&5
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 rm -rf conftest*
3524 eval "ac_cv_header_$ac_safe=no"
3526 rm -f conftest*
3528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3531 cat >> confdefs.h <<EOF
3532 #define $ac_tr_hdr 1
3534 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3535 echo "configure:3536: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3536 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3539 else
3540 ac_save_LIBS="$LIBS"
3541 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3542 $LIBS"
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char XF86VidModeQueryExtension();
3551 int main() {
3552 XF86VidModeQueryExtension()
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 rm -rf conftest*
3557 eval "ac_cv_lib_$ac_lib_var=yes"
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_lib_$ac_lib_var=no"
3564 rm -f conftest*
3565 LIBS="$ac_save_LIBS"
3568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_LIBXXF86VM 1
3574 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3576 else
3577 echo "$ac_t""no" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3583 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3586 done
3589 for ac_hdr in X11/extensions/Xvlib.h
3591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3593 echo "configure:3594: checking for $ac_hdr" >&5
3594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596 else
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <$ac_hdr>
3602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3605 if test -z "$ac_err"; then
3606 rm -rf conftest*
3607 eval "ac_cv_header_$ac_safe=yes"
3608 else
3609 echo "$ac_err" >&5
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3612 rm -rf conftest*
3613 eval "ac_cv_header_$ac_safe=no"
3615 rm -f conftest*
3617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3620 cat >> confdefs.h <<EOF
3621 #define $ac_tr_hdr 1
3623 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3624 echo "configure:3625: checking for XvShmCreateImage in -lXv" >&5
3625 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3629 ac_save_LIBS="$LIBS"
3630 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3631 $LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3638 char XvShmCreateImage();
3640 int main() {
3641 XvShmCreateImage()
3642 ; return 0; }
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 rm -rf conftest*
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3647 else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 eval "ac_cv_lib_$ac_lib_var=no"
3653 rm -f conftest*
3654 LIBS="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 cat >> confdefs.h <<\EOF
3660 #define HAVE_XVIDEO 1
3663 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3665 else
3666 echo "$ac_t""no" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 echo "configure: warning: XVideo extension not found !!" 1>&2
3675 done
3680 else
3681 echo "$ac_t""no" 1>&6
3683 done
3685 if test $OPENGL = "yes" -o $OPENGL = "normal"
3686 then
3687 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3691 echo "configure:3692: checking for $ac_hdr" >&5
3692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3694 else
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #include <$ac_hdr>
3700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3701 { (eval echo configure:3702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3703 if test -z "$ac_err"; then
3704 rm -rf conftest*
3705 eval "ac_cv_header_$ac_safe=yes"
3706 else
3707 echo "$ac_err" >&5
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 eval "ac_cv_header_$ac_safe=no"
3713 rm -f conftest*
3715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3718 cat >> confdefs.h <<EOF
3719 #define $ac_tr_hdr 1
3722 else
3723 echo "$ac_t""no" 1>&6
3725 done
3727 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3728 then
3729 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3730 echo "configure:3731: checking "for up-to-date OpenGL version"" >&5
3731 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733 else
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <GL/gl.h>
3738 int main() {
3739 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3740 ; return 0; }
3742 if { (eval echo configure:3743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 rm -rf conftest*
3744 wine_cv_opengl_version_OK="yes"
3745 else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 rm -rf conftest*
3749 wine_cv_opengl_version_OK="no"
3752 rm -f conftest*
3756 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3758 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3759 echo "configure:3760: checking "for thread-safe OpenGL version"" >&5
3760 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 saved_libs=$LIBS
3764 LIBS="$X_LIBS -lGL"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3769 int main() {
3770 pthread_getspecific();
3771 ; return 0; }
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 rm -rf conftest*
3775 wine_cv_opengl_version_threadsafe="yes"
3776 else
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 rm -rf conftest*
3780 wine_cv_opengl_version_threadsafe="no"
3782 rm -f conftest*
3783 LIBS=$saved_libs
3787 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3789 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3790 then
3791 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3792 echo "configure:3793: checking for glXCreateContext in -lGL" >&5
3793 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3796 else
3797 ac_save_LIBS="$LIBS"
3798 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* Override any gcc2 internal prototype to avoid an error. */
3803 /* We use char because int might match the return type of a gcc2
3804 builtin and then its argument prototype would still apply. */
3805 char glXCreateContext();
3807 int main() {
3808 glXCreateContext()
3809 ; return 0; }
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3812 rm -rf conftest*
3813 eval "ac_cv_lib_$ac_lib_var=yes"
3814 else
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 rm -rf conftest*
3818 eval "ac_cv_lib_$ac_lib_var=no"
3820 rm -f conftest*
3821 LIBS="$ac_save_LIBS"
3824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3825 echo "$ac_t""yes" 1>&6
3826 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3827 MESA_SRCS='$(MESA_SRCS)'
3829 else
3830 echo "$ac_t""no" 1>&6
3834 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3835 then
3837 OPENGLFILES='$(OPENGLFILES)'
3838 cat >> confdefs.h <<\EOF
3839 #define HAVE_OPENGL 1
3843 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3844 echo "configure:3845: checking for glXGetProcAddressARB in -lGL" >&5
3845 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3848 else
3849 ac_save_LIBS="$LIBS"
3850 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3857 char glXGetProcAddressARB();
3859 int main() {
3860 glXGetProcAddressARB()
3861 ; return 0; }
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864 rm -rf conftest*
3865 eval "ac_cv_lib_$ac_lib_var=yes"
3866 else
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3869 rm -rf conftest*
3870 eval "ac_cv_lib_$ac_lib_var=no"
3872 rm -f conftest*
3873 LIBS="$ac_save_LIBS"
3876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3878 cat >> confdefs.h <<\EOF
3879 #define HAVE_GLX_GETPROCADDRESS 1
3882 else
3883 echo "$ac_t""no" 1>&6
3887 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3888 then
3889 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
3890 echo "configure:3891: checking "for OpenGL extension functions prototypes"" >&5
3891 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <GL/gl.h>
3898 #ifdef HAVE_GL_GLEXT_H
3899 # include <GL/glext.h>
3900 #endif
3902 int main() {
3903 PFNGLCOLORTABLEEXTPROC test_proc;
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 rm -rf conftest*
3908 wine_cv_extension_prototypes="yes"
3909 else
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3912 rm -rf conftest*
3913 wine_cv_extension_prototypes="no"
3916 rm -f conftest*
3920 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
3921 if test $wine_cv_extension_prototypes = "yes"
3922 then
3923 cat >> confdefs.h <<\EOF
3924 #define HAVE_GLEXT_PROTOTYPES 1
3929 OPENGL32_DLL=opengl32
3936 CPPFLAGS="$ac_save_CPPFLAGS"
3937 X_DLLS='$(X_DLLS)'
3938 XFILES='$(XFILES)'
3939 else
3940 XLIB=""
3941 X_CFLAGS=""
3942 X_LIBS=""
3945 if test "$CURSES" = "yes"
3946 then
3947 for ac_hdr in ncurses.h
3949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_hdr" >&5
3952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 #include <$ac_hdr>
3960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3961 { (eval echo configure:3962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3963 if test -z "$ac_err"; then
3964 rm -rf conftest*
3965 eval "ac_cv_header_$ac_safe=yes"
3966 else
3967 echo "$ac_err" >&5
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3970 rm -rf conftest*
3971 eval "ac_cv_header_$ac_safe=no"
3973 rm -f conftest*
3975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3978 cat >> confdefs.h <<EOF
3979 #define $ac_tr_hdr 1
3982 else
3983 echo "$ac_t""no" 1>&6
3985 done
3987 if test "$ac_cv_header_ncurses_h" = "yes"
3988 then
3989 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3990 echo "configure:3991: checking for waddch in -lncurses" >&5
3991 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3994 else
3995 ac_save_LIBS="$LIBS"
3996 LIBS="-lncurses $LIBS"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 /* Override any gcc2 internal prototype to avoid an error. */
4001 /* We use char because int might match the return type of a gcc2
4002 builtin and then its argument prototype would still apply. */
4003 char waddch();
4005 int main() {
4006 waddch()
4007 ; return 0; }
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4010 rm -rf conftest*
4011 eval "ac_cv_lib_$ac_lib_var=yes"
4012 else
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 rm -rf conftest*
4016 eval "ac_cv_lib_$ac_lib_var=no"
4018 rm -f conftest*
4019 LIBS="$ac_save_LIBS"
4022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4026 cat >> confdefs.h <<EOF
4027 #define $ac_tr_lib 1
4030 LIBS="-lncurses $LIBS"
4032 else
4033 echo "$ac_t""no" 1>&6
4037 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4038 then
4039 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4040 echo "configure:4041: checking for resizeterm in -lncurses" >&5
4041 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 ac_save_LIBS="$LIBS"
4046 LIBS="-lncurses $LIBS"
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char resizeterm();
4055 int main() {
4056 resizeterm()
4057 ; return 0; }
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 rm -rf conftest*
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -rf conftest*
4066 eval "ac_cv_lib_$ac_lib_var=no"
4068 rm -f conftest*
4069 LIBS="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 cat >> confdefs.h <<\EOF
4075 #define HAVE_RESIZETERM 1
4078 else
4079 echo "$ac_t""no" 1>&6
4082 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4083 echo "configure:4084: checking for getbkgd in -lncurses" >&5
4084 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 ac_save_LIBS="$LIBS"
4089 LIBS="-lncurses $LIBS"
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4096 char getbkgd();
4098 int main() {
4099 getbkgd()
4100 ; return 0; }
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4103 rm -rf conftest*
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4105 else
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4108 rm -rf conftest*
4109 eval "ac_cv_lib_$ac_lib_var=no"
4111 rm -f conftest*
4112 LIBS="$ac_save_LIBS"
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4117 cat >> confdefs.h <<\EOF
4118 #define HAVE_GETBKGD 1
4121 else
4122 echo "$ac_t""no" 1>&6
4125 else
4126 for ac_hdr in curses.h
4128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_hdr" >&5
4131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 #include <$ac_hdr>
4139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4143 rm -rf conftest*
4144 eval "ac_cv_header_$ac_safe=yes"
4145 else
4146 echo "$ac_err" >&5
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 rm -rf conftest*
4150 eval "ac_cv_header_$ac_safe=no"
4152 rm -f conftest*
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4157 cat >> confdefs.h <<EOF
4158 #define $ac_tr_hdr 1
4161 else
4162 echo "$ac_t""no" 1>&6
4164 done
4166 if test "$ac_cv_header_curses_h" = "yes"
4167 then
4168 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4169 echo "configure:4170: checking for waddch in -lcurses" >&5
4170 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4173 else
4174 ac_save_LIBS="$LIBS"
4175 LIBS="-lcurses $LIBS"
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4182 char waddch();
4184 int main() {
4185 waddch()
4186 ; return 0; }
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4189 rm -rf conftest*
4190 eval "ac_cv_lib_$ac_lib_var=yes"
4191 else
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4194 rm -rf conftest*
4195 eval "ac_cv_lib_$ac_lib_var=no"
4197 rm -f conftest*
4198 LIBS="$ac_save_LIBS"
4201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4203 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4205 cat >> confdefs.h <<EOF
4206 #define $ac_tr_lib 1
4209 LIBS="-lcurses $LIBS"
4211 else
4212 echo "$ac_t""no" 1>&6
4215 if test "$ac_cv_lib_curses_waddch" = "yes"
4216 then
4217 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4218 echo "configure:4219: checking for resizeterm in -lcurses" >&5
4219 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4222 else
4223 ac_save_LIBS="$LIBS"
4224 LIBS="-lcurses $LIBS"
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4231 char resizeterm();
4233 int main() {
4234 resizeterm()
4235 ; return 0; }
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 rm -rf conftest*
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_lib_$ac_lib_var=no"
4246 rm -f conftest*
4247 LIBS="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 cat >> confdefs.h <<\EOF
4253 #define HAVE_RESIZETERM 1
4256 else
4257 echo "$ac_t""no" 1>&6
4260 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4261 echo "configure:4262: checking for getbkgd in -lcurses" >&5
4262 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 ac_save_LIBS="$LIBS"
4267 LIBS="-lcurses $LIBS"
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 /* Override any gcc2 internal prototype to avoid an error. */
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4274 char getbkgd();
4276 int main() {
4277 getbkgd()
4278 ; return 0; }
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 rm -rf conftest*
4282 eval "ac_cv_lib_$ac_lib_var=yes"
4283 else
4284 echo "configure: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 rm -rf conftest*
4287 eval "ac_cv_lib_$ac_lib_var=no"
4289 rm -f conftest*
4290 LIBS="$ac_save_LIBS"
4293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4294 echo "$ac_t""yes" 1>&6
4295 cat >> confdefs.h <<\EOF
4296 #define HAVE_GETBKGD 1
4299 else
4300 echo "$ac_t""no" 1>&6
4308 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4309 echo "configure:4310: checking "for GNU style IPX support"" >&5
4310 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <sys/socket.h>
4317 #include <netipx/ipx.h>
4318 int main() {
4319 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4320 ; return 0; }
4322 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 rm -rf conftest*
4324 ac_cv_c_ipx_gnu="yes"
4325 else
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -rf conftest*
4329 ac_cv_c_ipx_gnu="no"
4331 rm -f conftest*
4335 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4336 if test "$ac_cv_c_ipx_gnu" = "yes"
4337 then
4338 cat >> confdefs.h <<\EOF
4339 #define HAVE_IPX_GNU 1
4344 if test "$ac_cv_c_ipx_gnu" = "no"
4345 then
4346 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4347 echo "configure:4348: checking "for linux style IPX support"" >&5
4348 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350 else
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #include <sys/socket.h>
4355 #include <asm/types.h>
4356 #include <linux/ipx.h>
4357 int main() {
4358 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4359 ; return 0; }
4361 if { (eval echo configure:4362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 rm -rf conftest*
4363 ac_cv_c_ipx_linux="yes"
4364 else
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 rm -rf conftest*
4368 ac_cv_c_ipx_linux="no"
4370 rm -f conftest*
4374 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4375 if test "$ac_cv_c_ipx_linux" = "yes"
4376 then
4377 cat >> confdefs.h <<\EOF
4378 #define HAVE_IPX_LINUX 1
4384 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4388 echo "configure:4389: checking for $ac_hdr" >&5
4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4391 else
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 #include <$ac_hdr>
4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then
4401 rm -rf conftest*
4402 eval "ac_cv_header_$ac_safe=yes"
4403 else
4404 echo "$ac_err" >&5
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4407 rm -rf conftest*
4408 eval "ac_cv_header_$ac_safe=no"
4410 rm -f conftest*
4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_hdr 1
4418 break
4419 else
4420 echo "$ac_t""no" 1>&6
4422 done
4425 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4426 echo "configure:4427: checking "for Open Sound System"" >&5
4427 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4429 else
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4434 #if defined(HAVE_SYS_SOUNDCARD_H)
4435 #include <sys/soundcard.h>
4436 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4437 #include <machine/soundcard.h>
4438 #elif defined(HAVE_SOUNDCARD_H)
4439 #include <soundcard.h>
4440 #endif
4442 int main() {
4445 /* check for one of the Open Sound System specific SNDCTL_ defines */
4446 #if !defined(SNDCTL_DSP_STEREO)
4447 #error No open sound system
4448 #endif
4450 ; return 0; }
4452 if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 rm -rf conftest*
4454 ac_cv_c_opensoundsystem="yes"
4455 else
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 rm -rf conftest*
4459 ac_cv_c_opensoundsystem="no"
4461 rm -f conftest*
4464 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4466 if test "$ac_cv_c_opensoundsystem" = "yes"
4467 then
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_OSS 1
4474 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4475 echo "configure:4476: checking "for Open Sound System/MIDI interface"" >&5
4476 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4483 #if defined(HAVE_SYS_SOUNDCARD_H)
4484 #include <sys/soundcard.h>
4485 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4486 #include <machine/soundcard.h>
4487 #elif defined(HAVE_SOUNDCARD_H)
4488 #include <soundcard.h>
4489 #endif
4491 int main() {
4494 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4495 #if !defined(SNDCTL_SEQ_SYNC)
4496 #error No open sound system MIDI interface
4497 #endif
4499 ; return 0; }
4501 if { (eval echo configure:4502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4502 rm -rf conftest*
4503 ac_cv_c_opensoundsystem_midi="yes"
4504 else
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 rm -rf conftest*
4508 ac_cv_c_opensoundsystem_midi="no"
4510 rm -f conftest*
4513 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4515 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4516 then
4517 cat >> confdefs.h <<\EOF
4518 #define HAVE_OSS_MIDI 1
4523 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4526 if test "x${GCC}" = "xyes"
4527 then
4528 CFLAGS="$CFLAGS -Wall"
4529 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4530 echo "configure:4531: checking "for gcc strength-reduce bug"" >&5
4531 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 if test "$cross_compiling" = yes; then
4535 ac_cv_c_gcc_strength_bug="yes"
4536 else
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4541 int L[4] = {0,1,2,3};
4542 int main(void) {
4543 static int Array[3];
4544 unsigned int B = 3;
4545 int i;
4546 for(i=0; i<B; i++) Array[i] = i - 3;
4547 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4548 L[i] = 4;
4550 exit( Array[1] != -2 || L[2] != 3);
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4554 then
4555 ac_cv_c_gcc_strength_bug="no"
4556 else
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 rm -fr conftest*
4560 ac_cv_c_gcc_strength_bug="yes"
4562 rm -fr conftest*
4567 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4568 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4569 then
4570 CFLAGS="$CFLAGS -fno-strength-reduce"
4573 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
4574 echo "configure:4575: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
4575 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578 saved_cflags=$CFLAGS
4579 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4584 int main() {
4585 return 0
4586 ; return 0; }
4588 if { (eval echo configure:4589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4589 rm -rf conftest*
4590 ac_cv_c_gcc_stack_boundary="yes"
4591 else
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4594 rm -rf conftest*
4595 ac_cv_c_gcc_stack_boundary="no"
4597 rm -f conftest*
4598 CFLAGS=$saved_cflags
4602 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
4603 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
4604 then
4605 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4610 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
4611 echo "configure:4612: checking "whether .type must sit inside a .def directive"" >&5
4612 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4614 else
4615 saved_libs=$LIBS
4616 LIBS="conftest_asm.s $LIBS"
4617 cat > conftest_asm.s <<EOF
4618 .globl _ac_test
4619 .def _ac_test; .scl 2; .type 32; .endef
4620 _ac_test:
4621 .long 0
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4627 int main() {
4629 ; return 0; }
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 rm -rf conftest*
4633 ac_cv_c_type_in_def="yes"
4634 else
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4637 rm -rf conftest*
4638 ac_cv_c_type_in_def="no"
4640 rm -f conftest*
4641 LIBS=$saved_libs
4644 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
4645 if test "$ac_cv_c_type_in_def" = "yes"
4646 then
4647 cat >> confdefs.h <<\EOF
4648 #define NEED_TYPE_IN_DEF 1
4654 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4655 echo "configure:4656: checking "whether external symbols need an underscore prefix"" >&5
4656 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4658 else
4659 saved_libs=$LIBS
4660 LIBS="conftest_asm.s $LIBS"
4661 cat > conftest_asm.s <<EOF
4662 .globl _ac_test
4663 _ac_test:
4664 .long 0
4666 cat > conftest.$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 extern int ac_test;
4670 int main() {
4671 if (ac_test) return 1
4672 ; return 0; }
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 rm -rf conftest*
4676 ac_cv_c_extern_prefix="yes"
4677 else
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 ac_cv_c_extern_prefix="no"
4683 rm -f conftest*
4684 LIBS=$saved_libs
4687 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4688 if test "$ac_cv_c_extern_prefix" = "yes"
4689 then
4690 cat >> confdefs.h <<\EOF
4691 #define NEED_UNDERSCORE_PREFIX 1
4697 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4698 echo "configure:4699: checking "whether assembler accepts .string"" >&5
4699 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702 saved_libs=$LIBS
4703 LIBS="conftest_asm.s $LIBS"
4704 cat > conftest_asm.s <<EOF
4705 .string "test"
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4711 int main() {
4713 ; return 0; }
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4716 rm -rf conftest*
4717 ac_cv_c_asm_string="yes"
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 ac_cv_c_asm_string="no"
4724 rm -f conftest*
4725 LIBS=$saved_libs
4728 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4729 if test "$ac_cv_c_asm_string" = "yes"
4730 then
4731 cat >> confdefs.h <<\EOF
4732 #define HAVE_ASM_STRING 1
4738 LDSHARED=""
4739 LDDLLFLAGS=""
4740 if test "$LIBEXT" = "so"
4741 then
4742 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4743 echo "configure:4744: checking "whether we can build a Linux dll"" >&5
4744 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4746 else
4747 saved_cflags=$CFLAGS
4748 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4753 int main() {
4754 return 1
4755 ; return 0; }
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4758 rm -rf conftest*
4759 ac_cv_c_dll_linux="yes"
4760 else
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 rm -rf conftest*
4764 ac_cv_c_dll_linux="no"
4766 rm -f conftest*
4767 CFLAGS=$saved_cflags
4771 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4772 if test "$ac_cv_c_dll_linux" = "yes"
4773 then
4774 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
4775 LDDLLFLAGS="-Wl,-Bsymbolic"
4776 else
4777 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4778 echo "configure:4779: checking whether we can build a UnixWare (Solaris) dll" >&5
4779 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4781 else
4782 saved_cflags=$CFLAGS
4783 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4788 int main() {
4789 return 1
4790 ; return 0; }
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 rm -rf conftest*
4794 ac_cv_c_dll_unixware="yes"
4795 else
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 rm -rf conftest*
4799 ac_cv_c_dll_unixware="no"
4801 rm -f conftest*
4802 CFLAGS=$saved_cflags
4806 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4807 if test "$ac_cv_c_dll_unixware" = "yes"
4808 then
4809 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
4810 LDDLLFLAGS="-Wl,-B,symbolic"
4811 else
4812 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4813 echo "configure:4814: checking "whether we can build a NetBSD dll"" >&5
4814 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4816 else
4817 saved_cflags=$CFLAGS
4818 CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4823 int main() {
4824 return 1
4825 ; return 0; }
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828 rm -rf conftest*
4829 ac_cv_c_dll_netbsd="yes"
4830 else
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 rm -rf conftest*
4834 ac_cv_c_dll_netbsd="no"
4836 rm -f conftest*
4837 CFLAGS=$saved_cflags
4841 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4842 if test "$ac_cv_c_dll_netbsd" = "yes"
4843 then
4844 LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
4845 LDDLLFLAGS="" #FIXME
4849 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4850 then
4851 echo "*** It is currently not possible to build WINE without shared"
4852 echo "*** library (.so) support to allow transparent switch between .so"
4853 echo "*** and .dll files."
4854 echo "*** If you are using Linux, you will need a newer binutils."
4855 exit 1
4859 DLLFLAGS=""
4861 if test "$LIBEXT" = "so"; then
4862 DLLFLAGS="-fPIC"
4863 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
4864 else
4865 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
4866 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4867 echo "configure:4868: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4868 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 saved_cflags=$CFLAGS
4872 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4877 int main() {
4878 return 1
4879 ; return 0; }
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 rm -rf conftest*
4883 ac_cv_c_whole_archive="yes"
4884 else
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 rm -rf conftest*
4888 ac_cv_c_whole_archive="no"
4890 rm -f conftest*
4891 CFLAGS=$saved_cflags
4895 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4896 if test "$ac_cv_c_whole_archive" = "yes"
4897 then
4898 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4899 else
4900 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4901 echo "configure:4902: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4902 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 saved_cflags=$CFLAGS
4906 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4911 int main() {
4912 return 1
4913 ; return 0; }
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916 rm -rf conftest*
4917 ac_cv_c_allextract="yes"
4918 else
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4921 rm -rf conftest*
4922 ac_cv_c_allextract="no"
4924 rm -f conftest*
4925 CFLAGS=$saved_cflags
4929 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4930 if test "$ac_cv_c_allextract" = "yes"
4931 then
4932 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4944 wine_cv_libc_reentrant=no
4945 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4946 echo "configure:4947: checking "for reentrant libc: __errno_location"" >&5
4947 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 if test "$cross_compiling" = yes; then
4951 wine_cv_libc_r__errno_location=yes
4952 else
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 int myerrno = 0;
4957 char buf[256];
4958 int *__errno_location(){return &myerrno;}
4959 main(){connect(0,buf,255); exit(!myerrno);}
4961 if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4962 then
4963 wine_cv_libc_r__errno_location=yes
4964 else
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 rm -fr conftest*
4968 wine_cv_libc_r__errno_location=no
4970 rm -fr conftest*
4976 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4977 if test "$wine_cv_libc_r__errno_location" = "yes"
4978 then
4979 cat >> confdefs.h <<\EOF
4980 #define HAVE__ERRNO_LOCATION 1
4983 wine_cv_libc_reentrant=__errno_location
4985 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4986 echo "configure:4987: checking "for reentrant libc: __error"" >&5
4987 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4989 else
4990 if test "$cross_compiling" = yes; then
4991 wine_cv_libc_r__error=yes
4992 else
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 int myerrno = 0;
4997 char buf[256];
4998 int *__error(){return &myerrno;}
4999 main(){connect(0,buf,255); exit(!myerrno);}
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5002 then
5003 wine_cv_libc_r__error=yes
5004 else
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 rm -fr conftest*
5008 wine_cv_libc_r__error=no
5010 rm -fr conftest*
5016 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
5017 if test "$wine_cv_libc_r__error" = "yes"
5018 then
5019 cat >> confdefs.h <<\EOF
5020 #define HAVE__ERROR 1
5023 wine_cv_libc_reentrant=__error
5025 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
5026 echo "configure:5027: checking "for reentrant libc: ___errno"" >&5
5027 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5030 if test "$cross_compiling" = yes; then
5031 wine_cv_libc_r___errno=yes
5032 else
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 int myerrno = 0;
5037 char buf[256];
5038 int *___errno(){return &myerrno;}
5039 main(){connect(0,buf,255); exit(!myerrno);}
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5042 then
5043 wine_cv_libc_r___errno=yes
5044 else
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 rm -fr conftest*
5048 wine_cv_libc_r___errno=no
5050 rm -fr conftest*
5056 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5057 if test "$wine_cv_libc_r___errno" = "yes"
5058 then
5059 cat >> confdefs.h <<\EOF
5060 #define HAVE___ERRNO 1
5063 wine_cv_libc_reentrant=___errno
5065 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
5066 echo "configure:5067: checking "for reentrant libc: __thr_errno"" >&5
5067 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070 if test "$cross_compiling" = yes; then
5071 wine_cv_libc_r__thr_errno=yes
5072 else
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 int myerrno = 0;
5077 char buf[256];
5078 int *__thr_errno(){return &myerrno;}
5079 main(){connect(0,buf,255); exit(!myerrno);}
5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5082 then
5083 wine_cv_libc_r__thr_errno=yes
5084 else
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5087 rm -fr conftest*
5088 wine_cv_libc_r__thr_errno=no
5090 rm -fr conftest*
5096 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
5097 if test "$wine_cv_libc_r__thr_errno" = "yes"
5098 then
5099 cat >> confdefs.h <<\EOF
5100 #define HAVE__THR_ERRNO 1
5103 wine_cv_libc_reentrant=__thr_errno
5105 if test "$wine_cv_libc_reentrant" = "no"
5106 then
5107 cat >> confdefs.h <<\EOF
5108 #define NO_REENTRANT_LIBC 1
5114 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5115 then
5116 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5117 echo "configure:5118: checking "for reentrant X libraries"" >&5
5118 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5120 else
5121 if test "x$with_reentrant_x" = "xno"
5122 then
5123 wine_cv_x_reentrant=no
5124 else
5125 libX11_check=none
5126 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5127 if test -r $dir/libX11.so; then
5128 libX11_check="-D $dir/libX11.so"
5129 break 1
5131 if test -r $dir/libX11.a; then
5132 libX11_check="$dir/libX11.a"
5133 break 1
5135 done
5136 if test "$libX11_check" != "none"; then
5137 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5138 then
5139 wine_cv_x_reentrant=yes
5140 else
5141 wine_cv_x_reentrant=no
5143 else
5144 wine_cv_x_reentrant=unknown
5149 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5150 else
5151 wine_cv_x_reentrant=no
5153 if test "$wine_cv_x_reentrant" = "no"
5154 then
5155 cat >> confdefs.h <<\EOF
5156 #define NO_REENTRANT_X11 1
5162 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5163 echo "configure:5164: checking whether byte ordering is bigendian" >&5
5164 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5166 else
5167 ac_cv_c_bigendian=unknown
5168 # See if sys/param.h defines the BYTE_ORDER macro.
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 #include <sys/types.h>
5173 #include <sys/param.h>
5174 int main() {
5176 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5177 bogus endian macros
5178 #endif
5179 ; return 0; }
5181 if { (eval echo configure:5182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 rm -rf conftest*
5183 # It does; now see whether it defined to BIG_ENDIAN or not.
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 #include <sys/types.h>
5188 #include <sys/param.h>
5189 int main() {
5191 #if BYTE_ORDER != BIG_ENDIAN
5192 not big endian
5193 #endif
5194 ; return 0; }
5196 if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 rm -rf conftest*
5198 ac_cv_c_bigendian=yes
5199 else
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 rm -rf conftest*
5203 ac_cv_c_bigendian=no
5205 rm -f conftest*
5206 else
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 rm -f conftest*
5211 if test $ac_cv_c_bigendian = unknown; then
5212 if test "$cross_compiling" = yes; then
5213 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5214 else
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 main () {
5219 /* Are we little or big endian? From Harbison&Steele. */
5220 union
5222 long l;
5223 char c[sizeof (long)];
5224 } u;
5225 u.l = 1;
5226 exit (u.c[sizeof (long) - 1] == 1);
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5230 then
5231 ac_cv_c_bigendian=no
5232 else
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 rm -fr conftest*
5236 ac_cv_c_bigendian=yes
5238 rm -fr conftest*
5244 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5245 if test $ac_cv_c_bigendian = yes; then
5246 cat >> confdefs.h <<\EOF
5247 #define WORDS_BIGENDIAN 1
5253 echo $ac_n "checking "whether bitfields are bigendian"""... $ac_c" 1>&6
5254 echo "configure:5255: checking "whether bitfields are bigendian"" >&5
5255 if eval "test \"`echo '$''{'wine_cv_bitfields_bigendian'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5257 else
5258 if test "$cross_compiling" = yes; then
5259 wine_cv_bitfields_bigendian=no
5260 else
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5265 union
5267 int word;
5268 struct
5270 int bit0 : 1;
5271 int rest : sizeof(int)*8 - 1;
5272 } bitfield;
5273 } u;
5274 main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); }
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5277 then
5278 wine_cv_bitfields_bigendian=yes
5279 else
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5282 rm -fr conftest*
5283 wine_cv_bitfields_bigendian=no
5285 rm -fr conftest*
5290 echo "$ac_t""$wine_cv_bitfields_bigendian" 1>&6
5291 if test "$wine_cv_bitfields_bigendian" = "yes"
5292 then
5293 cat >> confdefs.h <<\EOF
5294 #define BITFIELDS_BIGENDIAN 1
5301 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5302 # for constant arguments. Useless!
5303 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5304 echo "configure:5305: checking for working alloca.h" >&5
5305 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307 else
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5311 #include <alloca.h>
5312 int main() {
5313 void *p = alloca(2 * sizeof(int));
5314 ; return 0; }
5316 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5317 rm -rf conftest*
5318 ac_cv_header_alloca_h=yes
5319 else
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5322 rm -rf conftest*
5323 ac_cv_header_alloca_h=no
5325 rm -f conftest*
5328 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5329 if test $ac_cv_header_alloca_h = yes; then
5330 cat >> confdefs.h <<\EOF
5331 #define HAVE_ALLOCA_H 1
5336 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5337 echo "configure:5338: checking for alloca" >&5
5338 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5340 else
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5345 #ifdef __GNUC__
5346 # define alloca __builtin_alloca
5347 #else
5348 # ifdef _MSC_VER
5349 # include <malloc.h>
5350 # define alloca _alloca
5351 # else
5352 # if HAVE_ALLOCA_H
5353 # include <alloca.h>
5354 # else
5355 # ifdef _AIX
5356 #pragma alloca
5357 # else
5358 # ifndef alloca /* predefined by HP cc +Olibcalls */
5359 char *alloca ();
5360 # endif
5361 # endif
5362 # endif
5363 # endif
5364 #endif
5366 int main() {
5367 char *p = (char *) alloca(1);
5368 ; return 0; }
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 rm -rf conftest*
5372 ac_cv_func_alloca_works=yes
5373 else
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5376 rm -rf conftest*
5377 ac_cv_func_alloca_works=no
5379 rm -f conftest*
5382 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5383 if test $ac_cv_func_alloca_works = yes; then
5384 cat >> confdefs.h <<\EOF
5385 #define HAVE_ALLOCA 1
5390 if test $ac_cv_func_alloca_works = no; then
5391 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5392 # that cause trouble. Some versions do not even contain alloca or
5393 # contain a buggy version. If you still want to use their alloca,
5394 # use ar to extract alloca.o from them instead of compiling alloca.c.
5395 ALLOCA=alloca.${ac_objext}
5396 cat >> confdefs.h <<\EOF
5397 #define C_ALLOCA 1
5401 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5402 echo "configure:5403: checking whether alloca needs Cray hooks" >&5
5403 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5405 else
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 #if defined(CRAY) && ! defined(CRAY2)
5410 webecray
5411 #else
5412 wenotbecray
5413 #endif
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 egrep "webecray" >/dev/null 2>&1; then
5418 rm -rf conftest*
5419 ac_cv_os_cray=yes
5420 else
5421 rm -rf conftest*
5422 ac_cv_os_cray=no
5424 rm -f conftest*
5428 echo "$ac_t""$ac_cv_os_cray" 1>&6
5429 if test $ac_cv_os_cray = yes; then
5430 for ac_func in _getb67 GETB67 getb67; do
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5435 else
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5441 #include <assert.h>
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5445 char $ac_func();
5447 int main() {
5449 /* The GNU C library defines this for functions which it implements
5450 to always fail with ENOSYS. Some functions are actually named
5451 something starting with __ and the normal name is an alias. */
5452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5453 choke me
5454 #else
5455 $ac_func();
5456 #endif
5458 ; return 0; }
5460 if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 rm -rf conftest*
5462 eval "ac_cv_func_$ac_func=yes"
5463 else
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 rm -rf conftest*
5467 eval "ac_cv_func_$ac_func=no"
5469 rm -f conftest*
5472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 cat >> confdefs.h <<EOF
5475 #define CRAY_STACKSEG_END $ac_func
5478 break
5479 else
5480 echo "$ac_t""no" 1>&6
5483 done
5486 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5487 echo "configure:5488: checking stack direction for C alloca" >&5
5488 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491 if test "$cross_compiling" = yes; then
5492 ac_cv_c_stack_direction=0
5493 else
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497 find_stack_direction ()
5499 static char *addr = 0;
5500 auto char dummy;
5501 if (addr == 0)
5503 addr = &dummy;
5504 return find_stack_direction ();
5506 else
5507 return (&dummy > addr) ? 1 : -1;
5509 main ()
5511 exit (find_stack_direction() < 0);
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5515 then
5516 ac_cv_c_stack_direction=1
5517 else
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 rm -fr conftest*
5521 ac_cv_c_stack_direction=-1
5523 rm -fr conftest*
5528 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5529 cat >> confdefs.h <<EOF
5530 #define STACK_DIRECTION $ac_cv_c_stack_direction
5535 for ac_func in \
5536 __libc_fork \
5537 _lwp_create \
5538 clone \
5539 finite \
5540 fpclass \
5541 getnetbyaddr \
5542 getnetbyname \
5543 getpagesize \
5544 getprotobyname \
5545 getprotobynumber \
5546 getrlimit \
5547 getservbyport \
5548 getsockopt \
5549 inet_network \
5550 lstat \
5551 memmove \
5552 mmap \
5553 rfork \
5554 select \
5555 sendmsg \
5556 settimeofday \
5557 sigaltstack \
5558 statfs \
5559 strcasecmp \
5560 strerror \
5561 strncasecmp \
5562 tcgetattr \
5563 timegm \
5564 usleep \
5565 vfscanf \
5566 wait4 \
5567 waitpid \
5570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5571 echo "configure:5572: checking for $ac_func" >&5
5572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5574 else
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5578 /* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char $ac_func(); below. */
5580 #include <assert.h>
5581 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5584 char $ac_func();
5586 int main() {
5588 /* The GNU C library defines this for functions which it implements
5589 to always fail with ENOSYS. Some functions are actually named
5590 something starting with __ and the normal name is an alias. */
5591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5592 choke me
5593 #else
5594 $ac_func();
5595 #endif
5597 ; return 0; }
5599 if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5600 rm -rf conftest*
5601 eval "ac_cv_func_$ac_func=yes"
5602 else
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 rm -rf conftest*
5606 eval "ac_cv_func_$ac_func=no"
5608 rm -f conftest*
5611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5614 cat >> confdefs.h <<EOF
5615 #define $ac_tr_func 1
5618 else
5619 echo "$ac_t""no" 1>&6
5621 done
5625 for ac_hdr in \
5626 arpa/inet.h \
5627 arpa/nameser.h \
5628 elf.h \
5629 float.h \
5630 libio.h \
5631 libutil.h \
5632 link.h \
5633 linux/cdrom.h \
5634 linux/input.h \
5635 linux/joystick.h \
5636 linux/ucdrom.h \
5637 net/if.h \
5638 netdb.h \
5639 netinet/in.h \
5640 netinet/in_systm.h \
5641 netinet/ip.h \
5642 netinet/tcp.h \
5643 pty.h \
5644 resolv.h \
5645 sched.h \
5646 socket.h \
5647 strings.h \
5648 sys/cdio.h \
5649 sys/errno.h \
5650 sys/file.h \
5651 sys/filio.h \
5652 sys/ipc.h \
5653 sys/lwp.h \
5654 sys/mman.h \
5655 sys/modem.h \
5656 sys/mount.h \
5657 sys/msg.h \
5658 sys/param.h \
5659 sys/ptrace.h \
5660 sys/reg.h \
5661 sys/signal.h \
5662 sys/shm.h \
5663 sys/socket.h \
5664 sys/sockio.h \
5665 sys/statfs.h \
5666 sys/strtio.h \
5667 sys/syscall.h \
5668 sys/user.h \
5669 sys/wait.h \
5670 sys/v86.h \
5671 sys/v86intr.h \
5672 sys/vfs.h \
5673 sys/vm86.h \
5674 syscall.h \
5675 ucontext.h \
5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_hdr" >&5
5681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <$ac_hdr>
5689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5690 { (eval echo configure:5691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5692 if test -z "$ac_err"; then
5693 rm -rf conftest*
5694 eval "ac_cv_header_$ac_safe=yes"
5695 else
5696 echo "$ac_err" >&5
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5699 rm -rf conftest*
5700 eval "ac_cv_header_$ac_safe=no"
5702 rm -f conftest*
5704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_hdr 1
5711 else
5712 echo "$ac_t""no" 1>&6
5714 done
5716 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5717 echo "configure:5718: checking whether stat file-mode macros are broken" >&5
5718 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5720 else
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5724 #include <sys/types.h>
5725 #include <sys/stat.h>
5727 #if defined(S_ISBLK) && defined(S_IFDIR)
5728 # if S_ISBLK (S_IFDIR)
5729 You lose.
5730 # endif
5731 #endif
5733 #if defined(S_ISBLK) && defined(S_IFCHR)
5734 # if S_ISBLK (S_IFCHR)
5735 You lose.
5736 # endif
5737 #endif
5739 #if defined(S_ISLNK) && defined(S_IFREG)
5740 # if S_ISLNK (S_IFREG)
5741 You lose.
5742 # endif
5743 #endif
5745 #if defined(S_ISSOCK) && defined(S_IFREG)
5746 # if S_ISSOCK (S_IFREG)
5747 You lose.
5748 # endif
5749 #endif
5752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5753 egrep "You lose" >/dev/null 2>&1; then
5754 rm -rf conftest*
5755 ac_cv_header_stat_broken=yes
5756 else
5757 rm -rf conftest*
5758 ac_cv_header_stat_broken=no
5760 rm -f conftest*
5764 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5765 if test $ac_cv_header_stat_broken = yes; then
5766 cat >> confdefs.h <<\EOF
5767 #define STAT_MACROS_BROKEN 1
5774 echo $ac_n "checking for working const""... $ac_c" 1>&6
5775 echo "configure:5776: checking for working const" >&5
5776 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5778 else
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5783 int main() {
5785 /* Ultrix mips cc rejects this. */
5786 typedef int charset[2]; const charset x = {0,0};
5787 /* SunOS 4.1.1 cc rejects this. */
5788 char const *const *ccp;
5789 char **p;
5790 /* NEC SVR4.0.2 mips cc rejects this. */
5791 struct point {int x, y;};
5792 static struct point const zero = {0,0};
5793 /* AIX XL C 1.02.0.0 rejects this.
5794 It does not let you subtract one const X* pointer from another in an arm
5795 of an if-expression whose if-part is not a constant expression */
5796 const char *g = "string";
5797 ccp = &g + (g ? g-g : 0);
5798 /* HPUX 7.0 cc rejects these. */
5799 ++ccp;
5800 p = (char**) ccp;
5801 ccp = (char const *const *) p;
5802 { /* SCO 3.2v4 cc rejects this. */
5803 char *t;
5804 char const *s = 0 ? (char *) 0 : (char const *) 0;
5806 *t++ = 0;
5808 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5809 int x[] = {25, 17};
5810 const int *foo = &x[0];
5811 ++foo;
5813 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5814 typedef const int *iptr;
5815 iptr p = 0;
5816 ++p;
5818 { /* AIX XL C 1.02.0.0 rejects this saying
5819 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5820 struct s { int j; const int *ap[3]; };
5821 struct s *b; b->j = 5;
5823 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5824 const int foo = 10;
5827 ; return 0; }
5829 if { (eval echo configure:5830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5830 rm -rf conftest*
5831 ac_cv_c_const=yes
5832 else
5833 echo "configure: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5835 rm -rf conftest*
5836 ac_cv_c_const=no
5838 rm -f conftest*
5841 echo "$ac_t""$ac_cv_c_const" 1>&6
5842 if test $ac_cv_c_const = no; then
5843 cat >> confdefs.h <<\EOF
5844 #define const
5849 echo $ac_n "checking for inline""... $ac_c" 1>&6
5850 echo "configure:5851: checking for inline" >&5
5851 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5852 echo $ac_n "(cached) $ac_c" 1>&6
5853 else
5854 ac_cv_c_inline=no
5855 for ac_kw in inline __inline__ __inline; do
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5860 int main() {
5861 } int $ac_kw foo() {
5862 ; return 0; }
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5865 rm -rf conftest*
5866 ac_cv_c_inline=$ac_kw; break
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5871 rm -f conftest*
5872 done
5876 echo "$ac_t""$ac_cv_c_inline" 1>&6
5877 case "$ac_cv_c_inline" in
5878 inline | yes) ;;
5879 no) cat >> confdefs.h <<\EOF
5880 #define inline
5883 *) cat >> confdefs.h <<EOF
5884 #define inline $ac_cv_c_inline
5887 esac
5889 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5890 echo "configure:5891: checking for ANSI C header files" >&5
5891 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 #include <stdlib.h>
5898 #include <stdarg.h>
5899 #include <string.h>
5900 #include <float.h>
5902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5903 { (eval echo configure:5904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5905 if test -z "$ac_err"; then
5906 rm -rf conftest*
5907 ac_cv_header_stdc=yes
5908 else
5909 echo "$ac_err" >&5
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5912 rm -rf conftest*
5913 ac_cv_header_stdc=no
5915 rm -f conftest*
5917 if test $ac_cv_header_stdc = yes; then
5918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include <string.h>
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 egrep "memchr" >/dev/null 2>&1; then
5927 else
5928 rm -rf conftest*
5929 ac_cv_header_stdc=no
5931 rm -f conftest*
5935 if test $ac_cv_header_stdc = yes; then
5936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 #include <stdlib.h>
5942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5943 egrep "free" >/dev/null 2>&1; then
5945 else
5946 rm -rf conftest*
5947 ac_cv_header_stdc=no
5949 rm -f conftest*
5953 if test $ac_cv_header_stdc = yes; then
5954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5955 if test "$cross_compiling" = yes; then
5957 else
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 #include <ctype.h>
5962 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5963 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5965 int main () { int i; for (i = 0; i < 256; i++)
5966 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5967 exit (0); }
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5971 then
5973 else
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 rm -fr conftest*
5977 ac_cv_header_stdc=no
5979 rm -fr conftest*
5985 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5986 if test $ac_cv_header_stdc = yes; then
5987 cat >> confdefs.h <<\EOF
5988 #define STDC_HEADERS 1
5993 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5994 echo "configure:5995: checking for size_t" >&5
5995 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5997 else
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <sys/types.h>
6002 #if STDC_HEADERS
6003 #include <stdlib.h>
6004 #include <stddef.h>
6005 #endif
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6009 rm -rf conftest*
6010 ac_cv_type_size_t=yes
6011 else
6012 rm -rf conftest*
6013 ac_cv_type_size_t=no
6015 rm -f conftest*
6018 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6019 if test $ac_cv_type_size_t = no; then
6020 cat >> confdefs.h <<\EOF
6021 #define size_t unsigned
6026 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6027 echo "configure:6028: checking size of long long" >&5
6028 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030 else
6031 if test "$cross_compiling" = yes; then
6032 ac_cv_sizeof_long_long=0
6033 else
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 #include <stdio.h>
6038 main()
6040 FILE *f=fopen("conftestval", "w");
6041 if (!f) exit(1);
6042 fprintf(f, "%d\n", sizeof(long long));
6043 exit(0);
6046 if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6047 then
6048 ac_cv_sizeof_long_long=`cat conftestval`
6049 else
6050 echo "configure: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 rm -fr conftest*
6053 ac_cv_sizeof_long_long=0
6055 rm -fr conftest*
6059 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6060 cat >> confdefs.h <<EOF
6061 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6067 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6068 echo "configure:6069: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6069 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure"
6074 #include "confdefs.h"
6076 #include <netdb.h>
6078 int main() {
6080 char *name=NULL;
6081 struct hostent he;
6082 struct hostent *result;
6083 char *buf=NULL;
6084 int bufsize=0;
6085 int res,errnr;
6086 char *addr=NULL;
6087 int addrlen=0;
6088 int addrtype=0;
6089 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6090 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6092 ; return 0; }
6094 if { (eval echo configure:6095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6095 rm -rf conftest*
6096 wine_cv_linux_gethostbyname_r_6=yes
6097 else
6098 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6100 rm -rf conftest*
6101 wine_cv_linux_gethostbyname_r_6=no
6104 rm -f conftest*
6108 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6109 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6110 then
6111 cat >> confdefs.h <<\EOF
6112 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6117 if test "$ac_cv_header_linux_joystick_h" = "yes"
6118 then
6119 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6120 echo "configure:6121: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6121 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6123 else
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6128 #include <sys/ioctl.h>
6129 #include <linux/joystick.h>
6131 struct js_event blub;
6132 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6133 #error "no 2.2 header"
6134 #endif
6136 int main() {
6137 /*empty*/
6138 ; return 0; }
6140 if { (eval echo configure:6141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6141 rm -rf conftest*
6142 wine_cv_linux_joystick_22_api=yes
6143 else
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6146 rm -rf conftest*
6147 wine_cv_linux_joystick_22_api=no
6149 rm -f conftest*
6153 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6154 if test "$wine_cv_linux_joystick_22_api" = "yes"
6155 then
6156 cat >> confdefs.h <<\EOF
6157 #define HAVE_LINUX_22_JOYSTICK_API 1
6164 if test "$ac_cv_header_sys_vfs_h" = "yes"
6165 then
6166 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6167 echo "configure:6168: checking "whether sys/vfs.h defines statfs"" >&5
6168 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6170 else
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6175 #include <sys/types.h>
6176 #ifdef HAVE_SYS_PARAM_H
6177 # include <sys/param.h>
6178 #endif
6179 #include <sys/vfs.h>
6181 int main() {
6183 struct statfs stfs;
6185 memset(&stfs,0,sizeof(stfs));
6187 ; return 0; }
6189 if { (eval echo configure:6190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6190 rm -rf conftest*
6191 wine_cv_sys_vfs_has_statfs=yes
6192 else
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6195 rm -rf conftest*
6196 wine_cv_sys_vfs_has_statfs=no
6199 rm -f conftest*
6203 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6204 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6205 then
6206 cat >> confdefs.h <<\EOF
6207 #define STATFS_DEFINED_BY_SYS_VFS 1
6213 if test "$ac_cv_header_sys_statfs_h" = "yes"
6214 then
6215 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6216 echo "configure:6217: checking "whether sys/statfs.h defines statfs"" >&5
6217 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6224 #include <sys/types.h>
6225 #ifdef HAVE_SYS_PARAM_H
6226 # include <sys/param.h>
6227 #endif
6228 #include <sys/statfs.h>
6230 int main() {
6232 struct statfs stfs;
6234 ; return 0; }
6236 if { (eval echo configure:6237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6237 rm -rf conftest*
6238 wine_cv_sys_statfs_has_statfs=yes
6239 else
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6242 rm -rf conftest*
6243 wine_cv_sys_statfs_has_statfs=no
6246 rm -f conftest*
6250 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6251 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6252 then
6253 cat >> confdefs.h <<\EOF
6254 #define STATFS_DEFINED_BY_SYS_STATFS 1
6260 if test "$ac_cv_header_sys_mount_h" = "yes"
6261 then
6262 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6263 echo "configure:6264: checking "whether sys/mount.h defines statfs"" >&5
6264 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6266 else
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6271 #include <sys/types.h>
6272 #ifdef HAVE_SYS_PARAM_H
6273 # include <sys/param.h>
6274 #endif
6275 #include <sys/mount.h>
6277 int main() {
6279 struct statfs stfs;
6281 ; return 0; }
6283 if { (eval echo configure:6284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6284 rm -rf conftest*
6285 wine_cv_sys_mount_has_statfs=yes
6286 else
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 wine_cv_sys_mount_has_statfs=no
6293 rm -f conftest*
6297 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6298 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6299 then
6300 cat >> confdefs.h <<\EOF
6301 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6308 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6309 echo "configure:6310: checking "for statfs.f_bfree"" >&5
6310 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312 else
6313 if test "x$statfs_bfree" = "xno"
6314 then
6315 wine_cv_statfs_bfree=no
6316 else
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6321 #include <sys/types.h>
6322 #ifdef HAVE_SYS_PARAM_H
6323 # include <sys/param.h>
6324 #endif
6325 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6326 # include <sys/mount.h>
6327 #else
6328 # ifdef STATFS_DEFINED_BY_SYS_VFS
6329 # include <sys/vfs.h>
6330 # else
6331 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6332 # include <sys/statfs.h>
6333 # endif
6334 # endif
6335 #endif
6337 int main() {
6339 struct statfs stfs;
6341 stfs.f_bfree++;
6343 ; return 0; }
6345 if { (eval echo configure:6346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6346 rm -rf conftest*
6347 wine_cv_statfs_bfree=yes
6348 else
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6351 rm -rf conftest*
6352 wine_cv_statfs_bfree=no
6355 rm -f conftest*
6359 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6360 if test "$wine_cv_statfs_bfree" = "yes"
6361 then
6362 cat >> confdefs.h <<\EOF
6363 #define STATFS_HAS_BFREE 1
6368 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6369 echo "configure:6370: checking "for statfs.f_bavail"" >&5
6370 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 if test "x$statfs_bavail" = "xno"
6374 then
6375 wine_cv_statfs_bavail=no
6376 else
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6381 #include <sys/types.h>
6382 #ifdef HAVE_SYS_PARAM_H
6383 # include <sys/param.h>
6384 #endif
6385 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6386 # include <sys/mount.h>
6387 #else
6388 # ifdef STATFS_DEFINED_BY_SYS_VFS
6389 # include <sys/vfs.h>
6390 # else
6391 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6392 # include <sys/statfs.h>
6393 # endif
6394 # endif
6395 #endif
6397 int main() {
6399 struct statfs stfs;
6401 stfs.f_bavail++;
6403 ; return 0; }
6405 if { (eval echo configure:6406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6406 rm -rf conftest*
6407 wine_cv_statfs_bavail=yes
6408 else
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6411 rm -rf conftest*
6412 wine_cv_statfs_bavail=no
6415 rm -f conftest*
6419 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6420 if test "$wine_cv_statfs_bavail" = "yes"
6421 then
6422 cat >> confdefs.h <<\EOF
6423 #define STATFS_HAS_BAVAIL 1
6429 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6430 echo "configure:6431: checking "for msg_accrights in struct msghdr"" >&5
6431 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6433 else
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 #include <sys/types.h>
6438 #include <sys/socket.h>
6439 int main() {
6440 struct msghdr hdr; hdr.msg_accrights=0
6441 ; return 0; }
6443 if { (eval echo configure:6444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6444 rm -rf conftest*
6445 ac_cv_c_msg_accrights="yes"
6446 else
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6449 rm -rf conftest*
6450 ac_cv_c_msg_accrights="no"
6452 rm -f conftest*
6455 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6456 if test "$ac_cv_c_msg_accrights" = "yes"
6457 then
6458 cat >> confdefs.h <<\EOF
6459 #define HAVE_MSGHDR_ACCRIGHTS 1
6465 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6466 echo "configure:6467: checking "for sun_len in struct sockaddr_un"" >&5
6467 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 #include <sys/types.h>
6474 #include <sys/socket.h>
6475 #include <sys/un.h>
6476 int main() {
6477 static struct sockaddr_un addr; addr.sun_len = 1
6478 ; return 0; }
6480 if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6481 rm -rf conftest*
6482 ac_cv_c_sun_len="yes"
6483 else
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 rm -rf conftest*
6487 ac_cv_c_sun_len="no"
6489 rm -f conftest*
6492 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6493 if test "$ac_cv_c_sun_len" = "yes"
6494 then
6495 cat >> confdefs.h <<\EOF
6496 #define HAVE_SOCKADDR_SUN_LEN 1
6502 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6503 echo "configure:6504: checking "whether we need to define __i386__"" >&5
6504 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506 else
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6512 #endif
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 egrep "yes" >/dev/null 2>&1; then
6516 rm -rf conftest*
6517 ac_cv_cpp_def_i386="yes"
6518 else
6519 rm -rf conftest*
6520 ac_cv_cpp_def_i386="no"
6522 rm -f conftest*
6526 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6527 if test "$ac_cv_cpp_def_i386" = "yes"
6528 then
6529 CFLAGS="$CFLAGS -D__i386__"
6530 LINTFLAGS="$LINTFLAGS -D__i386__"
6533 GCC_NO_BUILTIN=""
6534 if test "$GCC" = "yes"
6535 then
6536 GCC_NO_BUILTIN="-fno-builtin"
6543 MAKE_RULES=Make.rules
6546 MAKE_DLL_RULES=dlls/Makedll.rules
6549 MAKE_PROG_RULES=programs/Makeprog.rules
6552 trap '' 1 2 15
6553 cat > confcache <<\EOF
6554 # This file is a shell script that caches the results of configure
6555 # tests run on this system so they can be shared between configure
6556 # scripts and configure runs. It is not useful on other systems.
6557 # If it contains results you don't want to keep, you may remove or edit it.
6559 # By default, configure uses ./config.cache as the cache file,
6560 # creating it if it does not exist already. You can give configure
6561 # the --cache-file=FILE option to use a different cache file; that is
6562 # what configure does when it calls configure scripts in
6563 # subdirectories, so they share the cache.
6564 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6565 # config.status only pays attention to the cache file if you give it the
6566 # --recheck option to rerun configure.
6569 # The following way of writing the cache mishandles newlines in values,
6570 # but we know of no workaround that is simple, portable, and efficient.
6571 # So, don't put newlines in cache variables' values.
6572 # Ultrix sh set writes to stderr and can't be redirected directly,
6573 # and sets the high bit in the cache file unless we assign to the vars.
6574 (set) 2>&1 |
6575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6576 *ac_space=\ *)
6577 # `set' does not quote correctly, so add quotes (double-quote substitution
6578 # turns \\\\ into \\, and sed turns \\ into \).
6579 sed -n \
6580 -e "s/'/'\\\\''/g" \
6581 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6584 # `set' quotes correctly as required by POSIX, so do not add quotes.
6585 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6587 esac >> confcache
6588 if cmp -s $cache_file confcache; then
6590 else
6591 if test -w $cache_file; then
6592 echo "updating cache $cache_file"
6593 cat confcache > $cache_file
6594 else
6595 echo "not updating unwritable cache $cache_file"
6598 rm -f confcache
6600 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6603 # Let make expand exec_prefix.
6604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6606 # Any assignment to VPATH causes Sun make to only execute
6607 # the first set of double-colon rules, so remove it if not needed.
6608 # If there is a colon in the path, we need to keep it.
6609 if test "x$srcdir" = x.; then
6610 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6613 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6615 DEFS=-DHAVE_CONFIG_H
6617 # Without the "./", some shells look in PATH for config.status.
6618 : ${CONFIG_STATUS=./config.status}
6620 echo creating $CONFIG_STATUS
6621 rm -f $CONFIG_STATUS
6622 cat > $CONFIG_STATUS <<EOF
6623 #! /bin/sh
6624 # Generated automatically by configure.
6625 # Run this file to recreate the current configuration.
6626 # This directory was configured as follows,
6627 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6629 # $0 $ac_configure_args
6631 # Compiler output produced by configure, useful for debugging
6632 # configure, is in ./config.log if it exists.
6634 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6635 for ac_option
6637 case "\$ac_option" in
6638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6639 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6640 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6641 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6642 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6643 exit 0 ;;
6644 -help | --help | --hel | --he | --h)
6645 echo "\$ac_cs_usage"; exit 0 ;;
6646 *) echo "\$ac_cs_usage"; exit 1 ;;
6647 esac
6648 done
6650 ac_given_srcdir=$srcdir
6651 ac_given_INSTALL="$INSTALL"
6653 trap 'rm -fr `echo "
6654 Make.rules
6655 dlls/Makedll.rules
6656 programs/Makeprog.rules
6657 Makefile
6658 console/Makefile
6659 controls/Makefile
6660 debugger/Makefile
6661 dlls/Makefile
6662 dlls/advapi32/Makefile
6663 dlls/avifil32/Makefile
6664 dlls/comctl32/Makefile
6665 dlls/commdlg/Makefile
6666 dlls/crtdll/Makefile
6667 dlls/dciman32/Makefile
6668 dlls/ddraw/Makefile
6669 dlls/dinput/Makefile
6670 dlls/dplay/Makefile
6671 dlls/dplayx/Makefile
6672 dlls/dsound/Makefile
6673 dlls/gdi/Makefile
6674 dlls/icmp/Makefile
6675 dlls/imagehlp/Makefile
6676 dlls/imm32/Makefile
6677 dlls/kernel/Makefile
6678 dlls/lzexpand/Makefile
6679 dlls/mpr/Makefile
6680 dlls/msacm/Makefile
6681 dlls/msnet32/Makefile
6682 dlls/msvideo/Makefile
6683 dlls/ntdll/Makefile
6684 dlls/odbc32/Makefile
6685 dlls/ole32/Makefile
6686 dlls/oleaut32/Makefile
6687 dlls/olecli/Makefile
6688 dlls/oledlg/Makefile
6689 dlls/olepro32/Makefile
6690 dlls/olesvr/Makefile
6691 dlls/opengl32/Makefile
6692 dlls/psapi/Makefile
6693 dlls/rasapi32/Makefile
6694 dlls/richedit/Makefile
6695 dlls/rpcrt4/Makefile
6696 dlls/serialui/Makefile
6697 dlls/setupapi/Makefile
6698 dlls/shell32/Makefile
6699 dlls/shfolder/Makefile
6700 dlls/shlwapi/Makefile
6701 dlls/tapi32/Makefile
6702 dlls/ttydrv/Makefile
6703 dlls/urlmon/Makefile
6704 dlls/user/Makefile
6705 dlls/version/Makefile
6706 dlls/win32s/Makefile
6707 dlls/winaspi/Makefile
6708 dlls/wineps/Makefile
6709 dlls/wininet/Makefile
6710 dlls/winmm/Makefile
6711 dlls/winmm/joystick/Makefile
6712 dlls/winmm/mcianim/Makefile
6713 dlls/winmm/mciavi/Makefile
6714 dlls/winmm/mcicda/Makefile
6715 dlls/winmm/mciseq/Makefile
6716 dlls/winmm/mciwave/Makefile
6717 dlls/winmm/midimap/Makefile
6718 dlls/winmm/wavemap/Makefile
6719 dlls/winmm/wineoss/Makefile
6720 dlls/winnls/Makefile
6721 dlls/winsock/Makefile
6722 dlls/winspool/Makefile
6723 dlls/wow32/Makefile
6724 dlls/wsock32/Makefile
6725 dlls/x11drv/Makefile
6726 documentation/Makefile
6727 documentation/wine.conf.man
6728 documentation/wine.man
6729 files/Makefile
6730 graphics/Makefile
6731 graphics/enhmetafiledrv/Makefile
6732 graphics/metafiledrv/Makefile
6733 graphics/win16drv/Makefile
6734 graphics/x11drv/Makefile
6735 if1632/Makefile
6736 include/Makefile
6737 library/Makefile
6738 libtest/Makefile
6739 loader/Makefile
6740 loader/dos/Makefile
6741 loader/ne/Makefile
6742 memory/Makefile
6743 misc/Makefile
6744 miscemu/Makefile
6745 msdos/Makefile
6746 objects/Makefile
6747 ole/Makefile
6748 programs/Makefile
6749 programs/avitools/Makefile
6750 programs/clock/Makefile
6751 programs/cmdlgtst/Makefile
6752 programs/control/Makefile
6753 programs/notepad/Makefile
6754 programs/osversioncheck/Makefile
6755 programs/progman/Makefile
6756 programs/regapi/Makefile
6757 programs/regtest/Makefile
6758 programs/uninstaller/Makefile
6759 programs/view/Makefile
6760 programs/wcmd/Makefile
6761 programs/winemine/Makefile
6762 programs/winhelp/Makefile
6763 programs/winver/Makefile
6764 relay32/Makefile
6765 scheduler/Makefile
6766 server/Makefile
6767 tools/Makefile
6768 tools/cvdump/Makefile
6769 tools/winebuild/Makefile
6770 tools/winelauncher
6771 tools/wmc/Makefile
6772 tools/wrc/Makefile
6773 tsx11/Makefile
6774 unicode/Makefile
6775 win32/Makefile
6776 windows/Makefile
6777 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6779 cat >> $CONFIG_STATUS <<EOF
6781 # Protect against being on the right side of a sed subst in config.status.
6782 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6783 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6784 $ac_vpsub
6785 $extrasub
6786 s%@SHELL@%$SHELL%g
6787 s%@CFLAGS@%$CFLAGS%g
6788 s%@CPPFLAGS@%$CPPFLAGS%g
6789 s%@CXXFLAGS@%$CXXFLAGS%g
6790 s%@FFLAGS@%$FFLAGS%g
6791 s%@DEFS@%$DEFS%g
6792 s%@LDFLAGS@%$LDFLAGS%g
6793 s%@LIBS@%$LIBS%g
6794 s%@exec_prefix@%$exec_prefix%g
6795 s%@prefix@%$prefix%g
6796 s%@program_transform_name@%$program_transform_name%g
6797 s%@bindir@%$bindir%g
6798 s%@sbindir@%$sbindir%g
6799 s%@libexecdir@%$libexecdir%g
6800 s%@datadir@%$datadir%g
6801 s%@sysconfdir@%$sysconfdir%g
6802 s%@sharedstatedir@%$sharedstatedir%g
6803 s%@localstatedir@%$localstatedir%g
6804 s%@libdir@%$libdir%g
6805 s%@includedir@%$includedir%g
6806 s%@oldincludedir@%$oldincludedir%g
6807 s%@infodir@%$infodir%g
6808 s%@mandir@%$mandir%g
6809 s%@OPTIONS@%$OPTIONS%g
6810 s%@SET_MAKE@%$SET_MAKE%g
6811 s%@CC@%$CC%g
6812 s%@CPP@%$CPP%g
6813 s%@X_CFLAGS@%$X_CFLAGS%g
6814 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6815 s%@X_LIBS@%$X_LIBS%g
6816 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6817 s%@YACC@%$YACC%g
6818 s%@LEX@%$LEX%g
6819 s%@LEXLIB@%$LEXLIB%g
6820 s%@XLEX@%$XLEX%g
6821 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6822 s%@RANLIB@%$RANLIB%g
6823 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6824 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6825 s%@INSTALL_DATA@%$INSTALL_DATA%g
6826 s%@LN_S@%$LN_S%g
6827 s%@C2MAN@%$C2MAN%g
6828 s%@LDCONFIG@%$LDCONFIG%g
6829 s%@LINT@%$LINT%g
6830 s%@LINTFLAGS@%$LINTFLAGS%g
6831 s%@LDCOMBINE@%$LDCOMBINE%g
6832 s%@XLIB@%$XLIB%g
6833 s%@X_DLLS@%$X_DLLS%g
6834 s%@XFILES@%$XFILES%g
6835 s%@OPENGLFILES@%$OPENGLFILES%g
6836 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6837 s%@DGA_SRCS@%$DGA_SRCS%g
6838 s%@DGA2_SRCS@%$DGA2_SRCS%g
6839 s%@MESA_SRCS@%$MESA_SRCS%g
6840 s%@DLL_LINK@%$DLL_LINK%g
6841 s%@DLLFLAGS@%$DLLFLAGS%g
6842 s%@LDSHARED@%$LDSHARED%g
6843 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
6844 s%@LIBEXT@%$LIBEXT%g
6845 s%@ALLOCA@%$ALLOCA%g
6846 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6847 /@MAKE_RULES@/r $MAKE_RULES
6848 s%@MAKE_RULES@%%g
6849 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6850 s%@MAKE_DLL_RULES@%%g
6851 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
6852 s%@MAKE_PROG_RULES@%%g
6854 CEOF
6857 cat >> $CONFIG_STATUS <<\EOF
6859 # Split the substitutions into bite-sized pieces for seds with
6860 # small command number limits, like on Digital OSF/1 and HP-UX.
6861 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6862 ac_file=1 # Number of current file.
6863 ac_beg=1 # First line for current file.
6864 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6865 ac_more_lines=:
6866 ac_sed_cmds=""
6867 while $ac_more_lines; do
6868 if test $ac_beg -gt 1; then
6869 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6870 else
6871 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6873 if test ! -s conftest.s$ac_file; then
6874 ac_more_lines=false
6875 rm -f conftest.s$ac_file
6876 else
6877 if test -z "$ac_sed_cmds"; then
6878 ac_sed_cmds="sed -f conftest.s$ac_file"
6879 else
6880 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6882 ac_file=`expr $ac_file + 1`
6883 ac_beg=$ac_end
6884 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6886 done
6887 if test -z "$ac_sed_cmds"; then
6888 ac_sed_cmds=cat
6892 cat >> $CONFIG_STATUS <<EOF
6894 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6895 dlls/Makedll.rules
6896 programs/Makeprog.rules
6897 Makefile
6898 console/Makefile
6899 controls/Makefile
6900 debugger/Makefile
6901 dlls/Makefile
6902 dlls/advapi32/Makefile
6903 dlls/avifil32/Makefile
6904 dlls/comctl32/Makefile
6905 dlls/commdlg/Makefile
6906 dlls/crtdll/Makefile
6907 dlls/dciman32/Makefile
6908 dlls/ddraw/Makefile
6909 dlls/dinput/Makefile
6910 dlls/dplay/Makefile
6911 dlls/dplayx/Makefile
6912 dlls/dsound/Makefile
6913 dlls/gdi/Makefile
6914 dlls/icmp/Makefile
6915 dlls/imagehlp/Makefile
6916 dlls/imm32/Makefile
6917 dlls/kernel/Makefile
6918 dlls/lzexpand/Makefile
6919 dlls/mpr/Makefile
6920 dlls/msacm/Makefile
6921 dlls/msnet32/Makefile
6922 dlls/msvideo/Makefile
6923 dlls/ntdll/Makefile
6924 dlls/odbc32/Makefile
6925 dlls/ole32/Makefile
6926 dlls/oleaut32/Makefile
6927 dlls/olecli/Makefile
6928 dlls/oledlg/Makefile
6929 dlls/olepro32/Makefile
6930 dlls/olesvr/Makefile
6931 dlls/opengl32/Makefile
6932 dlls/psapi/Makefile
6933 dlls/rasapi32/Makefile
6934 dlls/richedit/Makefile
6935 dlls/rpcrt4/Makefile
6936 dlls/serialui/Makefile
6937 dlls/setupapi/Makefile
6938 dlls/shell32/Makefile
6939 dlls/shfolder/Makefile
6940 dlls/shlwapi/Makefile
6941 dlls/tapi32/Makefile
6942 dlls/ttydrv/Makefile
6943 dlls/urlmon/Makefile
6944 dlls/user/Makefile
6945 dlls/version/Makefile
6946 dlls/win32s/Makefile
6947 dlls/winaspi/Makefile
6948 dlls/wineps/Makefile
6949 dlls/wininet/Makefile
6950 dlls/winmm/Makefile
6951 dlls/winmm/joystick/Makefile
6952 dlls/winmm/mcianim/Makefile
6953 dlls/winmm/mciavi/Makefile
6954 dlls/winmm/mcicda/Makefile
6955 dlls/winmm/mciseq/Makefile
6956 dlls/winmm/mciwave/Makefile
6957 dlls/winmm/midimap/Makefile
6958 dlls/winmm/wavemap/Makefile
6959 dlls/winmm/wineoss/Makefile
6960 dlls/winnls/Makefile
6961 dlls/winsock/Makefile
6962 dlls/winspool/Makefile
6963 dlls/wow32/Makefile
6964 dlls/wsock32/Makefile
6965 dlls/x11drv/Makefile
6966 documentation/Makefile
6967 documentation/wine.conf.man
6968 documentation/wine.man
6969 files/Makefile
6970 graphics/Makefile
6971 graphics/enhmetafiledrv/Makefile
6972 graphics/metafiledrv/Makefile
6973 graphics/win16drv/Makefile
6974 graphics/x11drv/Makefile
6975 if1632/Makefile
6976 include/Makefile
6977 library/Makefile
6978 libtest/Makefile
6979 loader/Makefile
6980 loader/dos/Makefile
6981 loader/ne/Makefile
6982 memory/Makefile
6983 misc/Makefile
6984 miscemu/Makefile
6985 msdos/Makefile
6986 objects/Makefile
6987 ole/Makefile
6988 programs/Makefile
6989 programs/avitools/Makefile
6990 programs/clock/Makefile
6991 programs/cmdlgtst/Makefile
6992 programs/control/Makefile
6993 programs/notepad/Makefile
6994 programs/osversioncheck/Makefile
6995 programs/progman/Makefile
6996 programs/regapi/Makefile
6997 programs/regtest/Makefile
6998 programs/uninstaller/Makefile
6999 programs/view/Makefile
7000 programs/wcmd/Makefile
7001 programs/winemine/Makefile
7002 programs/winhelp/Makefile
7003 programs/winver/Makefile
7004 relay32/Makefile
7005 scheduler/Makefile
7006 server/Makefile
7007 tools/Makefile
7008 tools/cvdump/Makefile
7009 tools/winebuild/Makefile
7010 tools/winelauncher
7011 tools/wmc/Makefile
7012 tools/wrc/Makefile
7013 tsx11/Makefile
7014 unicode/Makefile
7015 win32/Makefile
7016 windows/Makefile
7017 windows/x11drv/Makefile "}
7019 cat >> $CONFIG_STATUS <<\EOF
7020 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7022 case "$ac_file" in
7023 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7024 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7025 *) ac_file_in="${ac_file}.in" ;;
7026 esac
7028 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7030 # Remove last slash and all that follows it. Not all systems have dirname.
7031 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7033 # The file is in a subdirectory.
7034 test ! -d "$ac_dir" && mkdir "$ac_dir"
7035 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7036 # A "../" for each directory in $ac_dir_suffix.
7037 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7038 else
7039 ac_dir_suffix= ac_dots=
7042 case "$ac_given_srcdir" in
7043 .) srcdir=.
7044 if test -z "$ac_dots"; then top_srcdir=.
7045 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7046 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7047 *) # Relative path.
7048 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7049 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7050 esac
7052 case "$ac_given_INSTALL" in
7053 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7054 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7055 esac
7057 echo creating "$ac_file"
7058 rm -f "$ac_file"
7059 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7060 case "$ac_file" in
7061 *Makefile*) ac_comsub="1i\\
7062 # $configure_input" ;;
7063 *) ac_comsub= ;;
7064 esac
7066 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7067 sed -e "$ac_comsub
7068 s%@configure_input@%$configure_input%g
7069 s%@srcdir@%$srcdir%g
7070 s%@top_srcdir@%$top_srcdir%g
7071 s%@INSTALL@%$INSTALL%g
7072 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7073 fi; done
7074 rm -f conftest.s*
7076 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7077 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7079 # ac_d sets the value in "#define NAME VALUE" lines.
7080 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7081 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7082 ac_dC='\3'
7083 ac_dD='%g'
7084 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7085 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7086 ac_uB='\([ ]\)%\1#\2define\3'
7087 ac_uC=' '
7088 ac_uD='\4%g'
7089 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7090 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7091 ac_eB='$%\1#\2define\3'
7092 ac_eC=' '
7093 ac_eD='%g'
7095 if test "${CONFIG_HEADERS+set}" != set; then
7097 cat >> $CONFIG_STATUS <<EOF
7098 CONFIG_HEADERS="include/config.h"
7100 cat >> $CONFIG_STATUS <<\EOF
7102 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7104 case "$ac_file" in
7105 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7106 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7107 *) ac_file_in="${ac_file}.in" ;;
7108 esac
7110 echo creating $ac_file
7112 rm -f conftest.frag conftest.in conftest.out
7113 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7114 cat $ac_file_inputs > conftest.in
7118 # Transform confdefs.h into a sed script conftest.vals that substitutes
7119 # the proper values into config.h.in to produce config.h. And first:
7120 # Protect against being on the right side of a sed subst in config.status.
7121 # Protect against being in an unquoted here document in config.status.
7122 rm -f conftest.vals
7123 cat > conftest.hdr <<\EOF
7124 s/[\\&%]/\\&/g
7125 s%[\\$`]%\\&%g
7126 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7127 s%ac_d%ac_u%gp
7128 s%ac_u%ac_e%gp
7130 sed -n -f conftest.hdr confdefs.h > conftest.vals
7131 rm -f conftest.hdr
7133 # This sed command replaces #undef with comments. This is necessary, for
7134 # example, in the case of _POSIX_SOURCE, which is predefined and required
7135 # on some systems where configure will not decide to define it.
7136 cat >> conftest.vals <<\EOF
7137 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7140 # Break up conftest.vals because some shells have a limit on
7141 # the size of here documents, and old seds have small limits too.
7143 rm -f conftest.tail
7144 while :
7146 ac_lines=`grep -c . conftest.vals`
7147 # grep -c gives empty output for an empty file on some AIX systems.
7148 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7149 # Write a limited-size here document to conftest.frag.
7150 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7151 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7152 echo 'CEOF
7153 sed -f conftest.frag conftest.in > conftest.out
7154 rm -f conftest.in
7155 mv conftest.out conftest.in
7156 ' >> $CONFIG_STATUS
7157 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7158 rm -f conftest.vals
7159 mv conftest.tail conftest.vals
7160 done
7161 rm -f conftest.vals
7163 cat >> $CONFIG_STATUS <<\EOF
7164 rm -f conftest.frag conftest.h
7165 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7166 cat conftest.in >> conftest.h
7167 rm -f conftest.in
7168 if cmp -s $ac_file conftest.h 2>/dev/null; then
7169 echo "$ac_file is unchanged"
7170 rm -f conftest.h
7171 else
7172 # Remove last slash and all that follows it. Not all systems have dirname.
7173 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7174 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7175 # The file is in a subdirectory.
7176 test ! -d "$ac_dir" && mkdir "$ac_dir"
7178 rm -f $ac_file
7179 mv conftest.h $ac_file
7181 fi; done
7184 cat >> $CONFIG_STATUS <<EOF
7188 cat >> $CONFIG_STATUS <<\EOF
7190 extra_subdirs="\
7191 dlls/ddraw/d3ddevice \
7192 dlls/ddraw/dclipper \
7193 dlls/ddraw/ddraw \
7194 dlls/ddraw/direct3d \
7195 dlls/ddraw/dpalette \
7196 dlls/ddraw/dsurface \
7197 dlls/dinput/joystick \
7198 dlls/dinput/keyboard \
7199 dlls/dinput/mouse \
7200 dlls/kernel/messages \
7201 dlls/user/resources \
7203 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7205 exit 0
7207 chmod +x $CONFIG_STATUS
7208 rm -fr confdefs* $ac_clean_files
7209 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7212 if test "$have_x" = "no"
7213 then
7214 echo
7215 echo "*** Warning: X development files not found. Wine will be built without"
7216 echo "*** X support, which currently does not work, and would probably not be"
7217 echo "*** what you want anyway. You will need to install devel packages of"
7218 echo "*** Xlib/Xfree86 and Xpm at the very least."
7219 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7220 then
7221 echo
7222 echo "*** Warning: Xpm development files not found. Wine will be built without"
7223 echo "*** Xpm support, which currently does not work. You will need to install"
7224 echo "*** devel packages of Xpm."
7227 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7228 then
7229 echo
7230 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7231 echo "*** terminal resize support. Consider upgrading ncurses."
7234 if test "$wine_cv_libc_reentrant" = "no"
7235 then
7236 echo
7237 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7238 echo "*** thread support. Consider upgrading libc to a more recent"
7239 echo "*** reentrant version of libc."
7242 if test "$wine_cv_opengl_version_OK" = "no"
7243 then
7244 echo
7245 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7246 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7249 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7250 then
7251 echo
7252 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7253 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7254 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7255 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7258 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7259 then
7260 echo
7261 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7262 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7263 echo "*** support before reporting bugs."
7267 echo
7268 echo "Configure finished. Do 'make depend && make' to compile Wine."
7269 echo