Fixed a problem where when deleting an item using index -1 on an empty
[wine/wine-kai.git] / configure
blob650e96111ec64ff84007b7d41cc1c9d60d04bd58
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
2216 # Extract the first word of "dllwrap", so it can be a program name with args.
2217 set dummy dllwrap; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 if test -n "$DLLWRAP"; then
2224 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2225 else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_DLLWRAP="dllwrap"
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2236 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2239 DLLWRAP="$ac_cv_prog_DLLWRAP"
2240 if test -n "$DLLWRAP"; then
2241 echo "$ac_t""$DLLWRAP" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2247 for ac_prog in lclint lint
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 if test -n "$LINT"; then
2257 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2258 else
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2260 ac_dummy="$PATH"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_LINT="$ac_prog"
2265 break
2267 done
2268 IFS="$ac_save_ifs"
2271 LINT="$ac_cv_prog_LINT"
2272 if test -n "$LINT"; then
2273 echo "$ac_t""$LINT" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2278 test -n "$LINT" && break
2279 done
2281 if test "$LINT" = "lint"
2282 then
2283 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2288 if test "$CYGWIN" = "yes"
2289 then
2290 LDCOMBINE="ld -r --enable-stdcall-fixup"
2291 else
2292 LDCOMBINE="ld -r"
2297 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sqrt in -lm" >&5
2299 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 ac_save_LIBS="$LIBS"
2304 LIBS="-lm $LIBS"
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 /* Override any gcc2 internal prototype to avoid an error. */
2309 /* We use char because int might match the return type of a gcc2
2310 builtin and then its argument prototype would still apply. */
2311 char sqrt();
2313 int main() {
2314 sqrt()
2315 ; return 0; }
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318 rm -rf conftest*
2319 eval "ac_cv_lib_$ac_lib_var=yes"
2320 else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_lib_$ac_lib_var=no"
2326 rm -f conftest*
2327 LIBS="$ac_save_LIBS"
2330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2334 cat >> confdefs.h <<EOF
2335 #define $ac_tr_lib 1
2338 LIBS="-lm $LIBS"
2340 else
2341 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2345 echo "configure:2346: checking for i386_set_ldt in -li386" >&5
2346 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 ac_save_LIBS="$LIBS"
2351 LIBS="-li386 $LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2358 char i386_set_ldt();
2360 int main() {
2361 i386_set_ldt()
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 rm -rf conftest*
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 eval "ac_cv_lib_$ac_lib_var=no"
2373 rm -f conftest*
2374 LIBS="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_lib 1
2385 LIBS="-li386 $LIBS"
2387 else
2388 echo "$ac_t""no" 1>&6
2391 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2392 echo "configure:2393: checking for _oss_ioctl in -lossaudio" >&5
2393 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396 else
2397 ac_save_LIBS="$LIBS"
2398 LIBS="-lossaudio $LIBS"
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405 char _oss_ioctl();
2407 int main() {
2408 _oss_ioctl()
2409 ; return 0; }
2411 if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 rm -rf conftest*
2413 eval "ac_cv_lib_$ac_lib_var=yes"
2414 else
2415 echo "configure: failed program was:" >&5
2416 cat conftest.$ac_ext >&5
2417 rm -rf conftest*
2418 eval "ac_cv_lib_$ac_lib_var=no"
2420 rm -f conftest*
2421 LIBS="$ac_save_LIBS"
2424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2428 cat >> confdefs.h <<EOF
2429 #define $ac_tr_lib 1
2432 LIBS="-lossaudio $LIBS"
2434 else
2435 echo "$ac_t""no" 1>&6
2438 for ac_func in iswalnum
2440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_func" >&5
2442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* System header to define __stub macros and hopefully few prototypes,
2449 which can conflict with char $ac_func(); below. */
2450 #include <assert.h>
2451 /* Override any gcc2 internal prototype to avoid an error. */
2452 /* We use char because int might match the return type of a gcc2
2453 builtin and then its argument prototype would still apply. */
2454 char $ac_func();
2456 int main() {
2458 /* The GNU C library defines this for functions which it implements
2459 to always fail with ENOSYS. Some functions are actually named
2460 something starting with __ and the normal name is an alias. */
2461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2462 choke me
2463 #else
2464 $ac_func();
2465 #endif
2467 ; return 0; }
2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 rm -rf conftest*
2471 eval "ac_cv_func_$ac_func=yes"
2472 else
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -rf conftest*
2476 eval "ac_cv_func_$ac_func=no"
2478 rm -f conftest*
2481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2484 cat >> confdefs.h <<EOF
2485 #define $ac_tr_func 1
2488 else
2489 echo "$ac_t""no" 1>&6
2490 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2491 echo "configure:2492: checking for iswalnum in -lw" >&5
2492 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 ac_save_LIBS="$LIBS"
2497 LIBS="-lw $LIBS"
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* Override any gcc2 internal prototype to avoid an error. */
2502 /* We use char because int might match the return type of a gcc2
2503 builtin and then its argument prototype would still apply. */
2504 char iswalnum();
2506 int main() {
2507 iswalnum()
2508 ; return 0; }
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511 rm -rf conftest*
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 eval "ac_cv_lib_$ac_lib_var=no"
2519 rm -f conftest*
2520 LIBS="$ac_save_LIBS"
2523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_lib 1
2531 LIBS="-lw $LIBS"
2533 else
2534 echo "$ac_t""no" 1>&6
2538 done
2540 for ac_func in gethostbyname
2542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_func" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2552 #include <assert.h>
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char $ac_func();
2558 int main() {
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2564 choke me
2565 #else
2566 $ac_func();
2567 #endif
2569 ; return 0; }
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2572 rm -rf conftest*
2573 eval "ac_cv_func_$ac_func=yes"
2574 else
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -rf conftest*
2578 eval "ac_cv_func_$ac_func=no"
2580 rm -f conftest*
2583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h <<EOF
2587 #define $ac_tr_func 1
2590 else
2591 echo "$ac_t""no" 1>&6
2592 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2593 echo "configure:2594: checking for gethostbyname in -lnsl" >&5
2594 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2597 else
2598 ac_save_LIBS="$LIBS"
2599 LIBS="-lnsl $LIBS"
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.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 gethostbyname();
2608 int main() {
2609 gethostbyname()
2610 ; return 0; }
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613 rm -rf conftest*
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2615 else
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 eval "ac_cv_lib_$ac_lib_var=no"
2621 rm -f conftest*
2622 LIBS="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h <<EOF
2630 #define $ac_tr_lib 1
2633 LIBS="-lnsl $LIBS"
2635 else
2636 echo "$ac_t""no" 1>&6
2640 done
2642 for ac_func in connect
2644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_func" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2654 #include <assert.h>
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char $ac_func();
2660 int main() {
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2666 choke me
2667 #else
2668 $ac_func();
2669 #endif
2671 ; return 0; }
2673 if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2674 rm -rf conftest*
2675 eval "ac_cv_func_$ac_func=yes"
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 eval "ac_cv_func_$ac_func=no"
2682 rm -f conftest*
2685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2688 cat >> confdefs.h <<EOF
2689 #define $ac_tr_func 1
2692 else
2693 echo "$ac_t""no" 1>&6
2694 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2695 echo "configure:2696: checking for connect in -lsocket" >&5
2696 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 ac_save_LIBS="$LIBS"
2701 LIBS="-lsocket $LIBS"
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* Override any gcc2 internal prototype to avoid an error. */
2706 /* We use char because int might match the return type of a gcc2
2707 builtin and then its argument prototype would still apply. */
2708 char connect();
2710 int main() {
2711 connect()
2712 ; return 0; }
2714 if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2715 rm -rf conftest*
2716 eval "ac_cv_lib_$ac_lib_var=yes"
2717 else
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 rm -rf conftest*
2721 eval "ac_cv_lib_$ac_lib_var=no"
2723 rm -f conftest*
2724 LIBS="$ac_save_LIBS"
2727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_lib 1
2735 LIBS="-lsocket $LIBS"
2737 else
2738 echo "$ac_t""no" 1>&6
2742 done
2744 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2745 echo "configure:2746: checking for setrunelocale in -lxpg4" >&5
2746 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 ac_save_LIBS="$LIBS"
2751 LIBS="-lxpg4 $LIBS"
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* Override any gcc2 internal prototype to avoid an error. */
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2758 char setrunelocale();
2760 int main() {
2761 setrunelocale()
2762 ; return 0; }
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 rm -rf conftest*
2766 eval "ac_cv_lib_$ac_lib_var=yes"
2767 else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 eval "ac_cv_lib_$ac_lib_var=no"
2773 rm -f conftest*
2774 LIBS="$ac_save_LIBS"
2777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2781 cat >> confdefs.h <<EOF
2782 #define $ac_tr_lib 1
2785 LIBS="-lxpg4 $LIBS"
2787 else
2788 echo "$ac_t""no" 1>&6
2791 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2792 echo "configure:2793: checking for mmap in -lmmap" >&5
2793 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 ac_save_LIBS="$LIBS"
2798 LIBS="-lmmap $LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char mmap();
2807 int main() {
2808 mmap()
2809 ; return 0; }
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 rm -rf conftest*
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2814 else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 rm -rf conftest*
2818 eval "ac_cv_lib_$ac_lib_var=no"
2820 rm -f conftest*
2821 LIBS="$ac_save_LIBS"
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_lib 1
2832 LIBS="-lmmap $LIBS"
2834 else
2835 echo "$ac_t""no" 1>&6
2838 for ac_func in openpty
2840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_func" >&5
2842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2844 else
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848 /* System header to define __stub macros and hopefully few prototypes,
2849 which can conflict with char $ac_func(); below. */
2850 #include <assert.h>
2851 /* Override any gcc2 internal prototype to avoid an error. */
2852 /* We use char because int might match the return type of a gcc2
2853 builtin and then its argument prototype would still apply. */
2854 char $ac_func();
2856 int main() {
2858 /* The GNU C library defines this for functions which it implements
2859 to always fail with ENOSYS. Some functions are actually named
2860 something starting with __ and the normal name is an alias. */
2861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2862 choke me
2863 #else
2864 $ac_func();
2865 #endif
2867 ; return 0; }
2869 if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2870 rm -rf conftest*
2871 eval "ac_cv_func_$ac_func=yes"
2872 else
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 eval "ac_cv_func_$ac_func=no"
2878 rm -f conftest*
2881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2884 cat >> confdefs.h <<EOF
2885 #define $ac_tr_func 1
2888 else
2889 echo "$ac_t""no" 1>&6
2890 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2891 echo "configure:2892: checking for openpty in -lutil" >&5
2892 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2895 else
2896 ac_save_LIBS="$LIBS"
2897 LIBS="-lutil $LIBS"
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 /* Override any gcc2 internal prototype to avoid an error. */
2902 /* We use char because int might match the return type of a gcc2
2903 builtin and then its argument prototype would still apply. */
2904 char openpty();
2906 int main() {
2907 openpty()
2908 ; return 0; }
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 rm -rf conftest*
2912 eval "ac_cv_lib_$ac_lib_var=yes"
2913 else
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 eval "ac_cv_lib_$ac_lib_var=no"
2919 rm -f conftest*
2920 LIBS="$ac_save_LIBS"
2923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 cat >> confdefs.h <<\EOF
2926 #define HAVE_OPENPTY 1
2929 LIBS="$LIBS -lutil"
2931 else
2932 echo "$ac_t""no" 1>&6
2936 done
2939 for ac_hdr in dlfcn.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <$ac_hdr>
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=yes"
2958 else
2959 echo "$ac_err" >&5
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_header_$ac_safe=no"
2965 rm -f conftest*
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2973 for ac_func in dlopen
2975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_func" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979 else
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* System header to define __stub macros and hopefully few prototypes,
2984 which can conflict with char $ac_func(); below. */
2985 #include <assert.h>
2986 /* Override any gcc2 internal prototype to avoid an error. */
2987 /* We use char because int might match the return type of a gcc2
2988 builtin and then its argument prototype would still apply. */
2989 char $ac_func();
2991 int main() {
2993 /* The GNU C library defines this for functions which it implements
2994 to always fail with ENOSYS. Some functions are actually named
2995 something starting with __ and the normal name is an alias. */
2996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2997 choke me
2998 #else
2999 $ac_func();
3000 #endif
3002 ; return 0; }
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3005 rm -rf conftest*
3006 eval "ac_cv_func_$ac_func=yes"
3007 else
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 rm -rf conftest*
3011 eval "ac_cv_func_$ac_func=no"
3013 rm -f conftest*
3016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_func 1
3022 cat >> confdefs.h <<\EOF
3023 #define HAVE_DL_API 1
3026 else
3027 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3029 echo "configure:3030: checking for dlopen in -ldl" >&5
3030 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3033 else
3034 ac_save_LIBS="$LIBS"
3035 LIBS="-ldl $LIBS"
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 /* We use char because int might match the return type of a gcc2
3041 builtin and then its argument prototype would still apply. */
3042 char dlopen();
3044 int main() {
3045 dlopen()
3046 ; return 0; }
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 rm -rf conftest*
3050 eval "ac_cv_lib_$ac_lib_var=yes"
3051 else
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -rf conftest*
3055 eval "ac_cv_lib_$ac_lib_var=no"
3057 rm -f conftest*
3058 LIBS="$ac_save_LIBS"
3061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 cat >> confdefs.h <<\EOF
3064 #define HAVE_DL_API 1
3067 LIBS="$LIBS -ldl"
3068 else
3069 echo "$ac_t""no" 1>&6
3070 LIBEXT="a"
3076 done
3078 else
3079 echo "$ac_t""no" 1>&6
3080 LIBEXT="a"
3083 done
3087 X_DLLS=""
3089 XFILES=""
3091 OPENGLFILES=""
3093 OPENGL32_DLL=""
3095 DGA_SRCS=""
3097 DGA2_SRCS=""
3099 MESA_SRCS=""
3100 if test "$have_x" = "yes"
3101 then
3102 XLIB="-lXext -lX11"
3103 ac_save_CPPFLAGS="$CPPFLAGS"
3104 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3106 for ac_hdr in X11/xpm.h
3108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_hdr" >&5
3111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3113 else
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 #include <$ac_hdr>
3119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3120 { (eval echo configure:3121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3122 if test -z "$ac_err"; then
3123 rm -rf conftest*
3124 eval "ac_cv_header_$ac_safe=yes"
3125 else
3126 echo "$ac_err" >&5
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 rm -rf conftest*
3130 eval "ac_cv_header_$ac_safe=no"
3132 rm -f conftest*
3134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3137 cat >> confdefs.h <<EOF
3138 #define $ac_tr_hdr 1
3140 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3141 echo "configure:3142: checking for XpmCreatePixmapFromData in -lXpm" >&5
3142 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3145 else
3146 ac_save_LIBS="$LIBS"
3147 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3148 $LIBS"
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 /* Override any gcc2 internal prototype to avoid an error. */
3153 /* We use char because int might match the return type of a gcc2
3154 builtin and then its argument prototype would still apply. */
3155 char XpmCreatePixmapFromData();
3157 int main() {
3158 XpmCreatePixmapFromData()
3159 ; return 0; }
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162 rm -rf conftest*
3163 eval "ac_cv_lib_$ac_lib_var=yes"
3164 else
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 rm -rf conftest*
3168 eval "ac_cv_lib_$ac_lib_var=no"
3170 rm -f conftest*
3171 LIBS="$ac_save_LIBS"
3174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_LIBXXPM 1
3179 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3180 else
3181 echo "$ac_t""no" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 echo "Redhat : xpm xpm-devel"
3188 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3189 echo "SuSE : xpm"
3190 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3191 echo
3192 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3193 echo "the directory /contrib/libraries."
3194 echo
3195 exit 1
3199 done
3202 for ac_hdr in X11/Xlib.h
3204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_hdr" >&5
3207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3209 else
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <$ac_hdr>
3215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3216 { (eval echo configure:3217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3218 if test -z "$ac_err"; then
3219 rm -rf conftest*
3220 eval "ac_cv_header_$ac_safe=yes"
3221 else
3222 echo "$ac_err" >&5
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3225 rm -rf conftest*
3226 eval "ac_cv_header_$ac_safe=no"
3228 rm -f conftest*
3230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_hdr 1
3237 for ac_hdr in X11/XKBlib.h
3239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_hdr" >&5
3242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include <$ac_hdr>
3250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3251 { (eval echo configure:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3253 if test -z "$ac_err"; then
3254 rm -rf conftest*
3255 eval "ac_cv_header_$ac_safe=yes"
3256 else
3257 echo "$ac_err" >&5
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 rm -rf conftest*
3261 eval "ac_cv_header_$ac_safe=no"
3263 rm -f conftest*
3265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3268 cat >> confdefs.h <<EOF
3269 #define $ac_tr_hdr 1
3271 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3272 echo "configure:3273: checking for XkbQueryExtension in -lX11" >&5
3273 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3276 else
3277 ac_save_LIBS="$LIBS"
3278 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 /* Override any gcc2 internal prototype to avoid an error. */
3283 /* We use char because int might match the return type of a gcc2
3284 builtin and then its argument prototype would still apply. */
3285 char XkbQueryExtension();
3287 int main() {
3288 XkbQueryExtension()
3289 ; return 0; }
3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 rm -rf conftest*
3293 eval "ac_cv_lib_$ac_lib_var=yes"
3294 else
3295 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 rm -rf conftest*
3298 eval "ac_cv_lib_$ac_lib_var=no"
3300 rm -f conftest*
3301 LIBS="$ac_save_LIBS"
3304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3306 cat >> confdefs.h <<\EOF
3307 #define HAVE_XKB 1
3310 else
3311 echo "$ac_t""no" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 echo "configure: warning: XKB extension not found!!" 1>&2
3320 done
3323 for ac_hdr in X11/extensions/XShm.h
3325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_hdr" >&5
3328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3330 else
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <$ac_hdr>
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3339 if test -z "$ac_err"; then
3340 rm -rf conftest*
3341 eval "ac_cv_header_$ac_safe=yes"
3342 else
3343 echo "$ac_err" >&5
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3346 rm -rf conftest*
3347 eval "ac_cv_header_$ac_safe=no"
3349 rm -f conftest*
3351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3354 cat >> confdefs.h <<EOF
3355 #define $ac_tr_hdr 1
3357 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3358 echo "configure:3359: checking for XShmQueryExtension in -lXext" >&5
3359 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 ac_save_LIBS="$LIBS"
3364 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char XShmQueryExtension();
3373 int main() {
3374 XShmQueryExtension()
3375 ; return 0; }
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378 rm -rf conftest*
3379 eval "ac_cv_lib_$ac_lib_var=yes"
3380 else
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3383 rm -rf conftest*
3384 eval "ac_cv_lib_$ac_lib_var=no"
3386 rm -f conftest*
3387 LIBS="$ac_save_LIBS"
3390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 cat >> confdefs.h <<\EOF
3393 #define HAVE_LIBXXSHM 1
3396 else
3397 echo "$ac_t""no" 1>&6
3401 else
3402 echo "$ac_t""no" 1>&6
3403 echo "configure: warning: Xshm extension not found!!" 1>&2
3406 done
3409 for ac_hdr in X11/extensions/shape.h
3411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $ac_hdr" >&5
3414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #include <$ac_hdr>
3422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3423 { (eval echo configure:3424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3425 if test -z "$ac_err"; then
3426 rm -rf conftest*
3427 eval "ac_cv_header_$ac_safe=yes"
3428 else
3429 echo "$ac_err" >&5
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 rm -rf conftest*
3433 eval "ac_cv_header_$ac_safe=no"
3435 rm -f conftest*
3437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3440 cat >> confdefs.h <<EOF
3441 #define $ac_tr_hdr 1
3443 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3444 echo "configure:3445: checking for XShapeQueryExtension in -lXext" >&5
3445 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3448 else
3449 ac_save_LIBS="$LIBS"
3450 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3457 char XShapeQueryExtension();
3459 int main() {
3460 XShapeQueryExtension()
3461 ; return 0; }
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 rm -rf conftest*
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 eval "ac_cv_lib_$ac_lib_var=no"
3472 rm -f conftest*
3473 LIBS="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 cat >> confdefs.h <<\EOF
3479 #define HAVE_LIBXSHAPE 1
3482 else
3483 echo "$ac_t""no" 1>&6
3487 else
3488 echo "$ac_t""no" 1>&6
3489 echo "configure: warning: XShape extension not found!!" 1>&2
3492 done
3495 for ac_hdr in X11/extensions/xf86dga.h
3497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3499 echo "configure:3500: checking for $ac_hdr" >&5
3500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3502 else
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <$ac_hdr>
3508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3509 { (eval echo configure:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3511 if test -z "$ac_err"; then
3512 rm -rf conftest*
3513 eval "ac_cv_header_$ac_safe=yes"
3514 else
3515 echo "$ac_err" >&5
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 eval "ac_cv_header_$ac_safe=no"
3521 rm -f conftest*
3523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3526 cat >> confdefs.h <<EOF
3527 #define $ac_tr_hdr 1
3529 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3530 echo "configure:3531: checking for XDGAQueryExtension in -lXxf86dga" >&5
3531 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534 else
3535 ac_save_LIBS="$LIBS"
3536 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3537 $LIBS"
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 /* Override any gcc2 internal prototype to avoid an error. */
3542 /* We use char because int might match the return type of a gcc2
3543 builtin and then its argument prototype would still apply. */
3544 char XDGAQueryExtension();
3546 int main() {
3547 XDGAQueryExtension()
3548 ; return 0; }
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3551 rm -rf conftest*
3552 eval "ac_cv_lib_$ac_lib_var=yes"
3553 else
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3556 rm -rf conftest*
3557 eval "ac_cv_lib_$ac_lib_var=no"
3559 rm -f conftest*
3560 LIBS="$ac_save_LIBS"
3563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 cat >> confdefs.h <<\EOF
3566 #define HAVE_LIBXXF86DGA2 1
3569 cat >> confdefs.h <<\EOF
3570 #define HAVE_LIBXXF86DGA 1
3573 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3574 DGA_SRCS='$(DGA_SRCS)'
3575 DGA2_SRCS='$(DGA2_SRCS)'
3577 else
3578 echo "$ac_t""no" 1>&6
3579 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3580 echo "configure:3581: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3581 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3584 else
3585 ac_save_LIBS="$LIBS"
3586 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3587 $LIBS"
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error. */
3592 /* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594 char XF86DGAQueryExtension();
3596 int main() {
3597 XF86DGAQueryExtension()
3598 ; return 0; }
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 rm -rf conftest*
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 eval "ac_cv_lib_$ac_lib_var=no"
3609 rm -f conftest*
3610 LIBS="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 cat >> confdefs.h <<\EOF
3616 #define HAVE_LIBXXF86DGA 1
3619 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3620 DGA_SRCS='$(DGA_SRCS)'
3622 else
3623 echo "$ac_t""no" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 echo "configure: warning: DGA extension not found!!" 1>&2
3635 done
3638 for ac_hdr in X11/extensions/xf86vmode.h
3640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3642 echo "configure:3643: checking for $ac_hdr" >&5
3643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645 else
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <$ac_hdr>
3651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3652 { (eval echo configure:3653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3654 if test -z "$ac_err"; then
3655 rm -rf conftest*
3656 eval "ac_cv_header_$ac_safe=yes"
3657 else
3658 echo "$ac_err" >&5
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 rm -rf conftest*
3662 eval "ac_cv_header_$ac_safe=no"
3664 rm -f conftest*
3666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_hdr 1
3672 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3673 echo "configure:3674: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3674 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3677 else
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3680 $LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char XF86VidModeQueryExtension();
3689 int main() {
3690 XF86VidModeQueryExtension()
3691 ; return 0; }
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 rm -rf conftest*
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3696 else
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 rm -rf conftest*
3700 eval "ac_cv_lib_$ac_lib_var=no"
3702 rm -f conftest*
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 cat >> confdefs.h <<\EOF
3709 #define HAVE_LIBXXF86VM 1
3712 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3714 else
3715 echo "$ac_t""no" 1>&6
3719 else
3720 echo "$ac_t""no" 1>&6
3721 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3724 done
3727 for ac_hdr in X11/extensions/Xvlib.h
3729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3731 echo "configure:3732: checking for $ac_hdr" >&5
3732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3734 else
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <$ac_hdr>
3740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3741 { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3743 if test -z "$ac_err"; then
3744 rm -rf conftest*
3745 eval "ac_cv_header_$ac_safe=yes"
3746 else
3747 echo "$ac_err" >&5
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3750 rm -rf conftest*
3751 eval "ac_cv_header_$ac_safe=no"
3753 rm -f conftest*
3755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_hdr 1
3761 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3762 echo "configure:3763: checking for XvShmCreateImage in -lXv" >&5
3763 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3766 else
3767 ac_save_LIBS="$LIBS"
3768 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3769 $LIBS"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3776 char XvShmCreateImage();
3778 int main() {
3779 XvShmCreateImage()
3780 ; return 0; }
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 rm -rf conftest*
3784 eval "ac_cv_lib_$ac_lib_var=yes"
3785 else
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 rm -rf conftest*
3789 eval "ac_cv_lib_$ac_lib_var=no"
3791 rm -f conftest*
3792 LIBS="$ac_save_LIBS"
3795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 cat >> confdefs.h <<\EOF
3798 #define HAVE_XVIDEO 1
3801 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3803 else
3804 echo "$ac_t""no" 1>&6
3808 else
3809 echo "$ac_t""no" 1>&6
3810 echo "configure: warning: XVideo extension not found !!" 1>&2
3813 done
3818 else
3819 echo "$ac_t""no" 1>&6
3821 done
3823 if test $OPENGL = "yes" -o $OPENGL = "normal"
3824 then
3825 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_hdr" >&5
3830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 #include <$ac_hdr>
3838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3839 { (eval echo configure:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3841 if test -z "$ac_err"; then
3842 rm -rf conftest*
3843 eval "ac_cv_header_$ac_safe=yes"
3844 else
3845 echo "$ac_err" >&5
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -rf conftest*
3849 eval "ac_cv_header_$ac_safe=no"
3851 rm -f conftest*
3853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3856 cat >> confdefs.h <<EOF
3857 #define $ac_tr_hdr 1
3860 else
3861 echo "$ac_t""no" 1>&6
3863 done
3865 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3866 then
3867 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3868 echo "configure:3869: checking "for up-to-date OpenGL version"" >&5
3869 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871 else
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <GL/gl.h>
3876 int main() {
3877 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3878 ; return 0; }
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 rm -rf conftest*
3882 wine_cv_opengl_version_OK="yes"
3883 else
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 rm -rf conftest*
3887 wine_cv_opengl_version_OK="no"
3890 rm -f conftest*
3894 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3896 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3897 echo "configure:3898: checking "for thread-safe OpenGL version"" >&5
3898 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3900 else
3901 saved_libs=$LIBS
3902 LIBS="$X_LIBS -lGL"
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3907 int main() {
3908 pthread_getspecific();
3909 ; return 0; }
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 rm -rf conftest*
3913 wine_cv_opengl_version_threadsafe="yes"
3914 else
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -rf conftest*
3918 wine_cv_opengl_version_threadsafe="no"
3920 rm -f conftest*
3921 LIBS=$saved_libs
3925 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3927 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3928 then
3929 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3930 echo "configure:3931: checking for glXCreateContext in -lGL" >&5
3931 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3935 ac_save_LIBS="$LIBS"
3936 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3943 char glXCreateContext();
3945 int main() {
3946 glXCreateContext()
3947 ; return 0; }
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950 rm -rf conftest*
3951 eval "ac_cv_lib_$ac_lib_var=yes"
3952 else
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -rf conftest*
3956 eval "ac_cv_lib_$ac_lib_var=no"
3958 rm -f conftest*
3959 LIBS="$ac_save_LIBS"
3962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3964 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3965 MESA_SRCS='$(MESA_SRCS)'
3967 else
3968 echo "$ac_t""no" 1>&6
3972 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3973 then
3975 OPENGLFILES='$(OPENGLFILES)'
3976 cat >> confdefs.h <<\EOF
3977 #define HAVE_OPENGL 1
3981 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3982 echo "configure:3983: checking for glXGetProcAddressARB in -lGL" >&5
3983 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 ac_save_LIBS="$LIBS"
3988 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
3995 char glXGetProcAddressARB();
3997 int main() {
3998 glXGetProcAddressARB()
3999 ; return 0; }
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 rm -rf conftest*
4003 eval "ac_cv_lib_$ac_lib_var=yes"
4004 else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 eval "ac_cv_lib_$ac_lib_var=no"
4010 rm -f conftest*
4011 LIBS="$ac_save_LIBS"
4014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 cat >> confdefs.h <<\EOF
4017 #define HAVE_GLX_GETPROCADDRESS 1
4020 else
4021 echo "$ac_t""no" 1>&6
4025 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4026 then
4027 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
4028 echo "configure:4029: checking "for OpenGL extension functions prototypes"" >&5
4029 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4031 else
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 #include <GL/gl.h>
4036 #ifdef HAVE_GL_GLEXT_H
4037 # include <GL/glext.h>
4038 #endif
4040 int main() {
4041 PFNGLCOLORTABLEEXTPROC test_proc;
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 rm -rf conftest*
4046 wine_cv_extension_prototypes="yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 wine_cv_extension_prototypes="no"
4054 rm -f conftest*
4058 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4059 if test $wine_cv_extension_prototypes = "yes"
4060 then
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_GLEXT_PROTOTYPES 1
4067 OPENGL32_DLL=opengl32
4074 CPPFLAGS="$ac_save_CPPFLAGS"
4075 X_DLLS='$(X_DLLS)'
4076 XFILES='$(XFILES)'
4077 else
4078 XLIB=""
4079 X_CFLAGS=""
4080 X_LIBS=""
4083 if test "$CURSES" = "yes"
4084 then
4085 for ac_hdr in ncurses.h
4087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4089 echo "configure:4090: checking for $ac_hdr" >&5
4090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4092 else
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include <$ac_hdr>
4098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4099 { (eval echo configure:4100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4101 if test -z "$ac_err"; then
4102 rm -rf conftest*
4103 eval "ac_cv_header_$ac_safe=yes"
4104 else
4105 echo "$ac_err" >&5
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4108 rm -rf conftest*
4109 eval "ac_cv_header_$ac_safe=no"
4111 rm -f conftest*
4113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4116 cat >> confdefs.h <<EOF
4117 #define $ac_tr_hdr 1
4120 else
4121 echo "$ac_t""no" 1>&6
4123 done
4125 if test "$ac_cv_header_ncurses_h" = "yes"
4126 then
4127 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4128 echo "configure:4129: checking for waddch in -lncurses" >&5
4129 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 ac_save_LIBS="$LIBS"
4134 LIBS="-lncurses $LIBS"
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4141 char waddch();
4143 int main() {
4144 waddch()
4145 ; return 0; }
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 rm -rf conftest*
4149 eval "ac_cv_lib_$ac_lib_var=yes"
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 eval "ac_cv_lib_$ac_lib_var=no"
4156 rm -f conftest*
4157 LIBS="$ac_save_LIBS"
4160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4164 cat >> confdefs.h <<EOF
4165 #define $ac_tr_lib 1
4168 LIBS="-lncurses $LIBS"
4170 else
4171 echo "$ac_t""no" 1>&6
4175 if test "$ac_cv_lib_ncurses_waddch" = "yes"
4176 then
4177 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
4178 echo "configure:4179: checking for resizeterm in -lncurses" >&5
4179 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183 ac_save_LIBS="$LIBS"
4184 LIBS="-lncurses $LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4191 char resizeterm();
4193 int main() {
4194 resizeterm()
4195 ; return 0; }
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198 rm -rf conftest*
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4200 else
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 rm -rf conftest*
4204 eval "ac_cv_lib_$ac_lib_var=no"
4206 rm -f conftest*
4207 LIBS="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_RESIZETERM 1
4216 else
4217 echo "$ac_t""no" 1>&6
4220 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
4221 echo "configure:4222: checking for getbkgd in -lncurses" >&5
4222 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 ac_save_LIBS="$LIBS"
4227 LIBS="-lncurses $LIBS"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char getbkgd();
4236 int main() {
4237 getbkgd()
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 rm -rf conftest*
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 eval "ac_cv_lib_$ac_lib_var=no"
4249 rm -f conftest*
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 cat >> confdefs.h <<\EOF
4256 #define HAVE_GETBKGD 1
4259 else
4260 echo "$ac_t""no" 1>&6
4263 else
4264 for ac_hdr in curses.h
4266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4268 echo "configure:4269: checking for $ac_hdr" >&5
4269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4271 else
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 #include <$ac_hdr>
4277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4278 { (eval echo configure:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4280 if test -z "$ac_err"; then
4281 rm -rf conftest*
4282 eval "ac_cv_header_$ac_safe=yes"
4283 else
4284 echo "$ac_err" >&5
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 rm -rf conftest*
4288 eval "ac_cv_header_$ac_safe=no"
4290 rm -f conftest*
4292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4295 cat >> confdefs.h <<EOF
4296 #define $ac_tr_hdr 1
4299 else
4300 echo "$ac_t""no" 1>&6
4302 done
4304 if test "$ac_cv_header_curses_h" = "yes"
4305 then
4306 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4307 echo "configure:4308: checking for waddch in -lcurses" >&5
4308 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 ac_save_LIBS="$LIBS"
4313 LIBS="-lcurses $LIBS"
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char waddch();
4322 int main() {
4323 waddch()
4324 ; return 0; }
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 rm -rf conftest*
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4329 else
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -rf conftest*
4333 eval "ac_cv_lib_$ac_lib_var=no"
4335 rm -f conftest*
4336 LIBS="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4343 cat >> confdefs.h <<EOF
4344 #define $ac_tr_lib 1
4347 LIBS="-lcurses $LIBS"
4349 else
4350 echo "$ac_t""no" 1>&6
4353 if test "$ac_cv_lib_curses_waddch" = "yes"
4354 then
4355 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
4356 echo "configure:4357: checking for resizeterm in -lcurses" >&5
4357 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4360 else
4361 ac_save_LIBS="$LIBS"
4362 LIBS="-lcurses $LIBS"
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* Override any gcc2 internal prototype to avoid an error. */
4367 /* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4369 char resizeterm();
4371 int main() {
4372 resizeterm()
4373 ; return 0; }
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 rm -rf conftest*
4377 eval "ac_cv_lib_$ac_lib_var=yes"
4378 else
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4381 rm -rf conftest*
4382 eval "ac_cv_lib_$ac_lib_var=no"
4384 rm -f conftest*
4385 LIBS="$ac_save_LIBS"
4388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 cat >> confdefs.h <<\EOF
4391 #define HAVE_RESIZETERM 1
4394 else
4395 echo "$ac_t""no" 1>&6
4398 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
4399 echo "configure:4400: checking for getbkgd in -lcurses" >&5
4400 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 ac_save_LIBS="$LIBS"
4405 LIBS="-lcurses $LIBS"
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412 char getbkgd();
4414 int main() {
4415 getbkgd()
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 rm -rf conftest*
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_lib_$ac_lib_var=no"
4427 rm -f conftest*
4428 LIBS="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 cat >> confdefs.h <<\EOF
4434 #define HAVE_GETBKGD 1
4437 else
4438 echo "$ac_t""no" 1>&6
4446 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4447 echo "configure:4448: checking "for GNU style IPX support"" >&5
4448 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4450 else
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <sys/socket.h>
4455 #include <netipx/ipx.h>
4456 int main() {
4457 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4458 ; return 0; }
4460 if { (eval echo configure:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 rm -rf conftest*
4462 ac_cv_c_ipx_gnu="yes"
4463 else
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 rm -rf conftest*
4467 ac_cv_c_ipx_gnu="no"
4469 rm -f conftest*
4473 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4474 if test "$ac_cv_c_ipx_gnu" = "yes"
4475 then
4476 cat >> confdefs.h <<\EOF
4477 #define HAVE_IPX_GNU 1
4482 if test "$ac_cv_c_ipx_gnu" = "no"
4483 then
4484 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4485 echo "configure:4486: checking "for linux style IPX support"" >&5
4486 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488 else
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 #include <sys/socket.h>
4493 #include <asm/types.h>
4494 #include <linux/ipx.h>
4495 int main() {
4496 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4497 ; return 0; }
4499 if { (eval echo configure:4500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4500 rm -rf conftest*
4501 ac_cv_c_ipx_linux="yes"
4502 else
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 rm -rf conftest*
4506 ac_cv_c_ipx_linux="no"
4508 rm -f conftest*
4512 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4513 if test "$ac_cv_c_ipx_linux" = "yes"
4514 then
4515 cat >> confdefs.h <<\EOF
4516 #define HAVE_IPX_LINUX 1
4522 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_hdr" >&5
4527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4533 #include <$ac_hdr>
4535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4536 { (eval echo configure:4537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4538 if test -z "$ac_err"; then
4539 rm -rf conftest*
4540 eval "ac_cv_header_$ac_safe=yes"
4541 else
4542 echo "$ac_err" >&5
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 rm -rf conftest*
4546 eval "ac_cv_header_$ac_safe=no"
4548 rm -f conftest*
4550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_hdr 1
4556 break
4557 else
4558 echo "$ac_t""no" 1>&6
4560 done
4563 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4564 echo "configure:4565: checking "for Open Sound System"" >&5
4565 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4572 #if defined(HAVE_SYS_SOUNDCARD_H)
4573 #include <sys/soundcard.h>
4574 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4575 #include <machine/soundcard.h>
4576 #elif defined(HAVE_SOUNDCARD_H)
4577 #include <soundcard.h>
4578 #endif
4580 int main() {
4583 /* check for one of the Open Sound System specific SNDCTL_ defines */
4584 #if !defined(SNDCTL_DSP_STEREO)
4585 #error No open sound system
4586 #endif
4588 ; return 0; }
4590 if { (eval echo configure:4591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4591 rm -rf conftest*
4592 ac_cv_c_opensoundsystem="yes"
4593 else
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 rm -rf conftest*
4597 ac_cv_c_opensoundsystem="no"
4599 rm -f conftest*
4602 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4604 if test "$ac_cv_c_opensoundsystem" = "yes"
4605 then
4606 cat >> confdefs.h <<\EOF
4607 #define HAVE_OSS 1
4612 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4613 echo "configure:4614: checking "for Open Sound System/MIDI interface"" >&5
4614 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4616 else
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4621 #if defined(HAVE_SYS_SOUNDCARD_H)
4622 #include <sys/soundcard.h>
4623 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4624 #include <machine/soundcard.h>
4625 #elif defined(HAVE_SOUNDCARD_H)
4626 #include <soundcard.h>
4627 #endif
4629 int main() {
4632 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4633 #if !defined(SNDCTL_SEQ_SYNC)
4634 #error No open sound system MIDI interface
4635 #endif
4637 ; return 0; }
4639 if { (eval echo configure:4640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4640 rm -rf conftest*
4641 ac_cv_c_opensoundsystem_midi="yes"
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 ac_cv_c_opensoundsystem_midi="no"
4648 rm -f conftest*
4651 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4653 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4654 then
4655 cat >> confdefs.h <<\EOF
4656 #define HAVE_OSS_MIDI 1
4661 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4664 if test "x${GCC}" = "xyes"
4665 then
4666 CFLAGS="$CFLAGS -Wall"
4667 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4668 echo "configure:4669: checking "for gcc strength-reduce bug"" >&5
4669 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 if test "$cross_compiling" = yes; then
4673 ac_cv_c_gcc_strength_bug="yes"
4674 else
4675 cat > conftest.$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4679 int L[4] = {0,1,2,3};
4680 int main(void) {
4681 static int Array[3];
4682 unsigned int B = 3;
4683 int i;
4684 for(i=0; i<B; i++) Array[i] = i - 3;
4685 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4686 L[i] = 4;
4688 exit( Array[1] != -2 || L[2] != 3);
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4692 then
4693 ac_cv_c_gcc_strength_bug="no"
4694 else
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -fr conftest*
4698 ac_cv_c_gcc_strength_bug="yes"
4700 rm -fr conftest*
4705 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4706 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4707 then
4708 CFLAGS="$CFLAGS -fno-strength-reduce"
4711 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
4712 echo "configure:4713: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
4713 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4715 else
4716 saved_cflags=$CFLAGS
4717 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4722 int main() {
4723 return 0
4724 ; return 0; }
4726 if { (eval echo configure:4727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4727 rm -rf conftest*
4728 ac_cv_c_gcc_stack_boundary="yes"
4729 else
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 rm -rf conftest*
4733 ac_cv_c_gcc_stack_boundary="no"
4735 rm -f conftest*
4736 CFLAGS=$saved_cflags
4740 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
4741 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
4742 then
4743 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
4748 echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
4749 echo "configure:4750: checking "whether .type must sit inside a .def directive"" >&5
4750 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 saved_libs=$LIBS
4754 LIBS="conftest_asm.s $LIBS"
4755 cat > conftest_asm.s <<EOF
4756 .globl _ac_test
4757 .def _ac_test; .scl 2; .type 32; .endef
4758 _ac_test:
4759 .long 0
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4765 int main() {
4767 ; return 0; }
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 rm -rf conftest*
4771 ac_cv_c_type_in_def="yes"
4772 else
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 rm -rf conftest*
4776 ac_cv_c_type_in_def="no"
4778 rm -f conftest*
4779 LIBS=$saved_libs
4782 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
4783 if test "$ac_cv_c_type_in_def" = "yes"
4784 then
4785 cat >> confdefs.h <<\EOF
4786 #define NEED_TYPE_IN_DEF 1
4792 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4793 echo "configure:4794: checking "whether external symbols need an underscore prefix"" >&5
4794 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4796 else
4797 saved_libs=$LIBS
4798 LIBS="conftest_asm.s $LIBS"
4799 cat > conftest_asm.s <<EOF
4800 .globl _ac_test
4801 _ac_test:
4802 .long 0
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807 extern int ac_test;
4808 int main() {
4809 if (ac_test) return 1
4810 ; return 0; }
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4813 rm -rf conftest*
4814 ac_cv_c_extern_prefix="yes"
4815 else
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4818 rm -rf conftest*
4819 ac_cv_c_extern_prefix="no"
4821 rm -f conftest*
4822 LIBS=$saved_libs
4825 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4826 if test "$ac_cv_c_extern_prefix" = "yes"
4827 then
4828 cat >> confdefs.h <<\EOF
4829 #define NEED_UNDERSCORE_PREFIX 1
4835 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4836 echo "configure:4837: checking "whether assembler accepts .string"" >&5
4837 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4839 else
4840 saved_libs=$LIBS
4841 LIBS="conftest_asm.s $LIBS"
4842 cat > conftest_asm.s <<EOF
4843 .string "test"
4845 cat > conftest.$ac_ext <<EOF
4846 #line 4847 "configure"
4847 #include "confdefs.h"
4849 int main() {
4851 ; return 0; }
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 rm -rf conftest*
4855 ac_cv_c_asm_string="yes"
4856 else
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 rm -rf conftest*
4860 ac_cv_c_asm_string="no"
4862 rm -f conftest*
4863 LIBS=$saved_libs
4866 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4867 if test "$ac_cv_c_asm_string" = "yes"
4868 then
4869 cat >> confdefs.h <<\EOF
4870 #define HAVE_ASM_STRING 1
4876 LDSHARED=""
4877 LDDLLFLAGS=""
4878 if test "$LIBEXT" = "so"
4879 then
4880 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4881 echo "configure:4882: checking "whether we can build a Linux dll"" >&5
4882 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4884 else
4885 saved_cflags=$CFLAGS
4886 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4891 int main() {
4892 return 1
4893 ; return 0; }
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 rm -rf conftest*
4897 ac_cv_c_dll_linux="yes"
4898 else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -rf conftest*
4902 ac_cv_c_dll_linux="no"
4904 rm -f conftest*
4905 CFLAGS=$saved_cflags
4909 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4910 if test "$ac_cv_c_dll_linux" = "yes"
4911 then
4912 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
4913 LDDLLFLAGS="-Wl,-Bsymbolic"
4914 else
4915 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4916 echo "configure:4917: checking whether we can build a UnixWare (Solaris) dll" >&5
4917 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 saved_cflags=$CFLAGS
4921 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
4922 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4926 int main() {
4927 return 1
4928 ; return 0; }
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 rm -rf conftest*
4932 ac_cv_c_dll_unixware="yes"
4933 else
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4936 rm -rf conftest*
4937 ac_cv_c_dll_unixware="no"
4939 rm -f conftest*
4940 CFLAGS=$saved_cflags
4944 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4945 if test "$ac_cv_c_dll_unixware" = "yes"
4946 then
4947 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
4948 LDDLLFLAGS="-Wl,-B,symbolic"
4949 else
4950 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4951 echo "configure:4952: checking "whether we can build a NetBSD dll"" >&5
4952 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 saved_cflags=$CFLAGS
4956 CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4961 int main() {
4962 return 1
4963 ; return 0; }
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 rm -rf conftest*
4967 ac_cv_c_dll_netbsd="yes"
4968 else
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4971 rm -rf conftest*
4972 ac_cv_c_dll_netbsd="no"
4974 rm -f conftest*
4975 CFLAGS=$saved_cflags
4979 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4980 if test "$ac_cv_c_dll_netbsd" = "yes"
4981 then
4982 LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
4983 LDDLLFLAGS="" #FIXME
4987 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4988 then
4989 LIBEXT="a"
4990 if test "$DLLWRAP" = "dllwrap"; then
4991 if test "$CYGWIN" = "yes"; then
4992 echo "*** use dllwrap for building shared library."
4993 LIBEXT="dll"
4999 if test "$LIBEXT" = "a"; then
5000 echo "*** It is currently not possible to build WINE without shared"
5001 echo "*** library (.so) support to allow transparent switch between .so"
5002 echo "*** and .dll files."
5003 echo "*** If you are using Linux, you will need a newer binutils."
5004 exit 1
5007 DLLFLAGS=""
5008 LDPATH=""
5010 if test "$LIBEXT" = "so"; then
5011 DLLFLAGS="-fPIC"
5012 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5013 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5014 elif test "$LIBEXT" = "dll"; then
5015 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5016 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5017 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5018 else
5019 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
5020 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
5021 echo "configure:5022: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
5022 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5024 else
5025 saved_cflags=$CFLAGS
5026 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5031 int main() {
5032 return 1
5033 ; return 0; }
5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5036 rm -rf conftest*
5037 ac_cv_c_whole_archive="yes"
5038 else
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 rm -rf conftest*
5042 ac_cv_c_whole_archive="no"
5044 rm -f conftest*
5045 CFLAGS=$saved_cflags
5049 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
5050 if test "$ac_cv_c_whole_archive" = "yes"
5051 then
5052 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5053 else
5054 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
5055 echo "configure:5056: checking whether the linker supports -z {all,default}extract (Linux)" >&5
5056 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5058 else
5059 saved_cflags=$CFLAGS
5060 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5065 int main() {
5066 return 1
5067 ; return 0; }
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 rm -rf conftest*
5071 ac_cv_c_allextract="yes"
5072 else
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 rm -rf conftest*
5076 ac_cv_c_allextract="no"
5078 rm -f conftest*
5079 CFLAGS=$saved_cflags
5083 echo "$ac_t""$ac_cv_c_allextract" 1>&6
5084 if test "$ac_cv_c_allextract" = "yes"
5085 then
5086 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
5099 wine_cv_libc_reentrant=no
5100 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
5101 echo "configure:5102: checking "for reentrant libc: __errno_location"" >&5
5102 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105 if test "$cross_compiling" = yes; then
5106 wine_cv_libc_r__errno_location=yes
5107 else
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 int myerrno = 0;
5112 char buf[256];
5113 int *__errno_location(){return &myerrno;}
5114 main(){connect(0,buf,255); exit(!myerrno);}
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5117 then
5118 wine_cv_libc_r__errno_location=yes
5119 else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -fr conftest*
5123 wine_cv_libc_r__errno_location=no
5125 rm -fr conftest*
5131 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
5132 if test "$wine_cv_libc_r__errno_location" = "yes"
5133 then
5134 cat >> confdefs.h <<\EOF
5135 #define HAVE__ERRNO_LOCATION 1
5138 wine_cv_libc_reentrant=__errno_location
5140 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
5141 echo "configure:5142: checking "for reentrant libc: __error"" >&5
5142 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5144 else
5145 if test "$cross_compiling" = yes; then
5146 wine_cv_libc_r__error=yes
5147 else
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 int myerrno = 0;
5152 char buf[256];
5153 int *__error(){return &myerrno;}
5154 main(){connect(0,buf,255); exit(!myerrno);}
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5157 then
5158 wine_cv_libc_r__error=yes
5159 else
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5162 rm -fr conftest*
5163 wine_cv_libc_r__error=no
5165 rm -fr conftest*
5171 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
5172 if test "$wine_cv_libc_r__error" = "yes"
5173 then
5174 cat >> confdefs.h <<\EOF
5175 #define HAVE__ERROR 1
5178 wine_cv_libc_reentrant=__error
5180 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
5181 echo "configure:5182: checking "for reentrant libc: ___errno"" >&5
5182 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5184 else
5185 if test "$cross_compiling" = yes; then
5186 wine_cv_libc_r___errno=yes
5187 else
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 int myerrno = 0;
5192 char buf[256];
5193 int *___errno(){return &myerrno;}
5194 main(){connect(0,buf,255); exit(!myerrno);}
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5197 then
5198 wine_cv_libc_r___errno=yes
5199 else
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 rm -fr conftest*
5203 wine_cv_libc_r___errno=no
5205 rm -fr conftest*
5211 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5212 if test "$wine_cv_libc_r___errno" = "yes"
5213 then
5214 cat >> confdefs.h <<\EOF
5215 #define HAVE___ERRNO 1
5218 wine_cv_libc_reentrant=___errno
5220 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
5221 echo "configure:5222: checking "for reentrant libc: __thr_errno"" >&5
5222 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5224 else
5225 if test "$cross_compiling" = yes; then
5226 wine_cv_libc_r__thr_errno=yes
5227 else
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 int myerrno = 0;
5232 char buf[256];
5233 int *__thr_errno(){return &myerrno;}
5234 main(){connect(0,buf,255); exit(!myerrno);}
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5237 then
5238 wine_cv_libc_r__thr_errno=yes
5239 else
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 rm -fr conftest*
5243 wine_cv_libc_r__thr_errno=no
5245 rm -fr conftest*
5251 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
5252 if test "$wine_cv_libc_r__thr_errno" = "yes"
5253 then
5254 cat >> confdefs.h <<\EOF
5255 #define HAVE__THR_ERRNO 1
5258 wine_cv_libc_reentrant=__thr_errno
5260 if test "$wine_cv_libc_reentrant" = "no"
5261 then
5262 cat >> confdefs.h <<\EOF
5263 #define NO_REENTRANT_LIBC 1
5269 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5270 then
5271 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
5272 echo "configure:5273: checking "for reentrant X libraries"" >&5
5273 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276 if test "x$with_reentrant_x" = "xno"
5277 then
5278 wine_cv_x_reentrant=no
5279 else
5280 libX11_check=none
5281 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5282 if test -r $dir/libX11.so; then
5283 libX11_check="-D $dir/libX11.so"
5284 break 1
5286 if test -r $dir/libX11.a; then
5287 libX11_check="$dir/libX11.a"
5288 break 1
5290 done
5291 if test "$libX11_check" != "none"; then
5292 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5293 then
5294 wine_cv_x_reentrant=yes
5295 else
5296 wine_cv_x_reentrant=no
5298 else
5299 wine_cv_x_reentrant=unknown
5304 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5305 else
5306 wine_cv_x_reentrant=no
5308 if test "$wine_cv_x_reentrant" = "no"
5309 then
5310 cat >> confdefs.h <<\EOF
5311 #define NO_REENTRANT_X11 1
5317 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5318 echo "configure:5319: checking whether byte ordering is bigendian" >&5
5319 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322 ac_cv_c_bigendian=unknown
5323 # See if sys/param.h defines the BYTE_ORDER macro.
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 #include <sys/types.h>
5328 #include <sys/param.h>
5329 int main() {
5331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5332 bogus endian macros
5333 #endif
5334 ; return 0; }
5336 if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5337 rm -rf conftest*
5338 # It does; now see whether it defined to BIG_ENDIAN or not.
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 #include <sys/types.h>
5343 #include <sys/param.h>
5344 int main() {
5346 #if BYTE_ORDER != BIG_ENDIAN
5347 not big endian
5348 #endif
5349 ; return 0; }
5351 if { (eval echo configure:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5352 rm -rf conftest*
5353 ac_cv_c_bigendian=yes
5354 else
5355 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5357 rm -rf conftest*
5358 ac_cv_c_bigendian=no
5360 rm -f conftest*
5361 else
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 rm -f conftest*
5366 if test $ac_cv_c_bigendian = unknown; then
5367 if test "$cross_compiling" = yes; then
5368 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5369 else
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 main () {
5374 /* Are we little or big endian? From Harbison&Steele. */
5375 union
5377 long l;
5378 char c[sizeof (long)];
5379 } u;
5380 u.l = 1;
5381 exit (u.c[sizeof (long) - 1] == 1);
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5385 then
5386 ac_cv_c_bigendian=no
5387 else
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 rm -fr conftest*
5391 ac_cv_c_bigendian=yes
5393 rm -fr conftest*
5399 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5400 if test $ac_cv_c_bigendian = yes; then
5401 cat >> confdefs.h <<\EOF
5402 #define WORDS_BIGENDIAN 1
5408 echo $ac_n "checking "whether bitfields are bigendian"""... $ac_c" 1>&6
5409 echo "configure:5410: checking "whether bitfields are bigendian"" >&5
5410 if eval "test \"`echo '$''{'wine_cv_bitfields_bigendian'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5412 else
5413 if test "$cross_compiling" = yes; then
5414 wine_cv_bitfields_bigendian=no
5415 else
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5420 union
5422 int word;
5423 struct
5425 int bit0 : 1;
5426 int rest : sizeof(int)*8 - 1;
5427 } bitfield;
5428 } u;
5429 main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); }
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5432 then
5433 wine_cv_bitfields_bigendian=yes
5434 else
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5437 rm -fr conftest*
5438 wine_cv_bitfields_bigendian=no
5440 rm -fr conftest*
5445 echo "$ac_t""$wine_cv_bitfields_bigendian" 1>&6
5446 if test "$wine_cv_bitfields_bigendian" = "yes"
5447 then
5448 cat >> confdefs.h <<\EOF
5449 #define BITFIELDS_BIGENDIAN 1
5454 echo $ac_n "checking "whether unaligned memory access is allowed"""... $ac_c" 1>&6
5455 echo "configure:5456: checking "whether unaligned memory access is allowed"" >&5
5456 if eval "test \"`echo '$''{'wine_cv_allow_unaligned_access'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5458 else
5459 if test "$cross_compiling" = yes; then
5460 wine_cv_allow_unaligned_access=no
5461 else
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5466 long volatile test[2];
5467 main()
5469 long volatile *ua = (long volatile *)((char *)test + 1);
5470 *ua = 0;
5471 exit(0);
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5475 then
5476 wine_cv_allow_unaligned_access=yes
5477 else
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 rm -fr conftest*
5481 wine_cv_allow_unaligned_access=no
5483 rm -fr conftest*
5488 echo "$ac_t""$wine_cv_allow_unaligned_access" 1>&6
5489 if test "$wine_cv_allow_unaligned_access" = "yes"
5490 then
5491 cat >> confdefs.h <<\EOF
5492 #define ALLOW_UNALIGNED_ACCESS 1
5499 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5500 # for constant arguments. Useless!
5501 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5502 echo "configure:5503: checking for working alloca.h" >&5
5503 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5505 else
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 #include <alloca.h>
5510 int main() {
5511 void *p = alloca(2 * sizeof(int));
5512 ; return 0; }
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 rm -rf conftest*
5516 ac_cv_header_alloca_h=yes
5517 else
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 rm -rf conftest*
5521 ac_cv_header_alloca_h=no
5523 rm -f conftest*
5526 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5527 if test $ac_cv_header_alloca_h = yes; then
5528 cat >> confdefs.h <<\EOF
5529 #define HAVE_ALLOCA_H 1
5534 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5535 echo "configure:5536: checking for alloca" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5538 else
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5543 #ifdef __GNUC__
5544 # define alloca __builtin_alloca
5545 #else
5546 # ifdef _MSC_VER
5547 # include <malloc.h>
5548 # define alloca _alloca
5549 # else
5550 # if HAVE_ALLOCA_H
5551 # include <alloca.h>
5552 # else
5553 # ifdef _AIX
5554 #pragma alloca
5555 # else
5556 # ifndef alloca /* predefined by HP cc +Olibcalls */
5557 char *alloca ();
5558 # endif
5559 # endif
5560 # endif
5561 # endif
5562 #endif
5564 int main() {
5565 char *p = (char *) alloca(1);
5566 ; return 0; }
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5569 rm -rf conftest*
5570 ac_cv_func_alloca_works=yes
5571 else
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 rm -rf conftest*
5575 ac_cv_func_alloca_works=no
5577 rm -f conftest*
5580 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5581 if test $ac_cv_func_alloca_works = yes; then
5582 cat >> confdefs.h <<\EOF
5583 #define HAVE_ALLOCA 1
5588 if test $ac_cv_func_alloca_works = no; then
5589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5590 # that cause trouble. Some versions do not even contain alloca or
5591 # contain a buggy version. If you still want to use their alloca,
5592 # use ar to extract alloca.o from them instead of compiling alloca.c.
5593 ALLOCA=alloca.${ac_objext}
5594 cat >> confdefs.h <<\EOF
5595 #define C_ALLOCA 1
5599 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5600 echo "configure:5601: checking whether alloca needs Cray hooks" >&5
5601 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5603 else
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 #if defined(CRAY) && ! defined(CRAY2)
5608 webecray
5609 #else
5610 wenotbecray
5611 #endif
5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 egrep "webecray" >/dev/null 2>&1; then
5616 rm -rf conftest*
5617 ac_cv_os_cray=yes
5618 else
5619 rm -rf conftest*
5620 ac_cv_os_cray=no
5622 rm -f conftest*
5626 echo "$ac_t""$ac_cv_os_cray" 1>&6
5627 if test $ac_cv_os_cray = yes; then
5628 for ac_func in _getb67 GETB67 getb67; do
5629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5630 echo "configure:5631: checking for $ac_func" >&5
5631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5633 else
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5637 /* System header to define __stub macros and hopefully few prototypes,
5638 which can conflict with char $ac_func(); below. */
5639 #include <assert.h>
5640 /* Override any gcc2 internal prototype to avoid an error. */
5641 /* We use char because int might match the return type of a gcc2
5642 builtin and then its argument prototype would still apply. */
5643 char $ac_func();
5645 int main() {
5647 /* The GNU C library defines this for functions which it implements
5648 to always fail with ENOSYS. Some functions are actually named
5649 something starting with __ and the normal name is an alias. */
5650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5651 choke me
5652 #else
5653 $ac_func();
5654 #endif
5656 ; return 0; }
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 rm -rf conftest*
5660 eval "ac_cv_func_$ac_func=yes"
5661 else
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 rm -rf conftest*
5665 eval "ac_cv_func_$ac_func=no"
5667 rm -f conftest*
5670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5671 echo "$ac_t""yes" 1>&6
5672 cat >> confdefs.h <<EOF
5673 #define CRAY_STACKSEG_END $ac_func
5676 break
5677 else
5678 echo "$ac_t""no" 1>&6
5681 done
5684 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5685 echo "configure:5686: checking stack direction for C alloca" >&5
5686 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5688 else
5689 if test "$cross_compiling" = yes; then
5690 ac_cv_c_stack_direction=0
5691 else
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5695 find_stack_direction ()
5697 static char *addr = 0;
5698 auto char dummy;
5699 if (addr == 0)
5701 addr = &dummy;
5702 return find_stack_direction ();
5704 else
5705 return (&dummy > addr) ? 1 : -1;
5707 main ()
5709 exit (find_stack_direction() < 0);
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5713 then
5714 ac_cv_c_stack_direction=1
5715 else
5716 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5718 rm -fr conftest*
5719 ac_cv_c_stack_direction=-1
5721 rm -fr conftest*
5726 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5727 cat >> confdefs.h <<EOF
5728 #define STACK_DIRECTION $ac_cv_c_stack_direction
5733 for ac_func in \
5734 __libc_fork \
5735 _lwp_create \
5736 clone \
5737 finite \
5738 fpclass \
5739 getnetbyaddr \
5740 getnetbyname \
5741 getpagesize \
5742 getprotobyname \
5743 getprotobynumber \
5744 getrlimit \
5745 getservbyport \
5746 getsockopt \
5747 inet_network \
5748 lstat \
5749 memmove \
5750 mmap \
5751 rfork \
5752 select \
5753 sendmsg \
5754 settimeofday \
5755 sigaltstack \
5756 statfs \
5757 strcasecmp \
5758 strerror \
5759 strncasecmp \
5760 tcgetattr \
5761 timegm \
5762 usleep \
5763 vfscanf \
5764 wait4 \
5765 waitpid \
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char $ac_func(); below. */
5778 #include <assert.h>
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char $ac_func();
5784 int main() {
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 choke me
5791 #else
5792 $ac_func();
5793 #endif
5795 ; return 0; }
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798 rm -rf conftest*
5799 eval "ac_cv_func_$ac_func=yes"
5800 else
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 rm -rf conftest*
5804 eval "ac_cv_func_$ac_func=no"
5806 rm -f conftest*
5809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5812 cat >> confdefs.h <<EOF
5813 #define $ac_tr_func 1
5816 else
5817 echo "$ac_t""no" 1>&6
5819 done
5823 for ac_hdr in \
5824 arpa/inet.h \
5825 arpa/nameser.h \
5826 elf.h \
5827 float.h \
5828 ieeefp.h \
5829 libio.h \
5830 libutil.h \
5831 link.h \
5832 linux/cdrom.h \
5833 linux/input.h \
5834 linux/joystick.h \
5835 linux/ucdrom.h \
5836 net/if.h \
5837 netdb.h \
5838 netinet/in.h \
5839 netinet/in_systm.h \
5840 netinet/ip.h \
5841 netinet/tcp.h \
5842 pty.h \
5843 resolv.h \
5844 sched.h \
5845 socket.h \
5846 strings.h \
5847 sys/cdio.h \
5848 sys/errno.h \
5849 sys/file.h \
5850 sys/filio.h \
5851 sys/ipc.h \
5852 sys/lwp.h \
5853 sys/mman.h \
5854 sys/modem.h \
5855 sys/mount.h \
5856 sys/msg.h \
5857 sys/param.h \
5858 sys/ptrace.h \
5859 sys/reg.h \
5860 sys/signal.h \
5861 sys/shm.h \
5862 sys/socket.h \
5863 sys/sockio.h \
5864 sys/statfs.h \
5865 sys/strtio.h \
5866 sys/syscall.h \
5867 sys/user.h \
5868 sys/wait.h \
5869 sys/v86.h \
5870 sys/v86intr.h \
5871 sys/vfs.h \
5872 sys/vm86.h \
5873 syscall.h \
5874 ucontext.h \
5877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_hdr" >&5
5880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 #include <$ac_hdr>
5888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5889 { (eval echo configure:5890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5891 if test -z "$ac_err"; then
5892 rm -rf conftest*
5893 eval "ac_cv_header_$ac_safe=yes"
5894 else
5895 echo "$ac_err" >&5
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 rm -rf conftest*
5899 eval "ac_cv_header_$ac_safe=no"
5901 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_hdr 1
5910 else
5911 echo "$ac_t""no" 1>&6
5913 done
5915 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5916 echo "configure:5917: checking whether stat file-mode macros are broken" >&5
5917 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5926 #if defined(S_ISBLK) && defined(S_IFDIR)
5927 # if S_ISBLK (S_IFDIR)
5928 You lose.
5929 # endif
5930 #endif
5932 #if defined(S_ISBLK) && defined(S_IFCHR)
5933 # if S_ISBLK (S_IFCHR)
5934 You lose.
5935 # endif
5936 #endif
5938 #if defined(S_ISLNK) && defined(S_IFREG)
5939 # if S_ISLNK (S_IFREG)
5940 You lose.
5941 # endif
5942 #endif
5944 #if defined(S_ISSOCK) && defined(S_IFREG)
5945 # if S_ISSOCK (S_IFREG)
5946 You lose.
5947 # endif
5948 #endif
5951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5952 egrep "You lose" >/dev/null 2>&1; then
5953 rm -rf conftest*
5954 ac_cv_header_stat_broken=yes
5955 else
5956 rm -rf conftest*
5957 ac_cv_header_stat_broken=no
5959 rm -f conftest*
5963 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5964 if test $ac_cv_header_stat_broken = yes; then
5965 cat >> confdefs.h <<\EOF
5966 #define STAT_MACROS_BROKEN 1
5973 echo $ac_n "checking for working const""... $ac_c" 1>&6
5974 echo "configure:5975: checking for working const" >&5
5975 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5977 else
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5982 int main() {
5984 /* Ultrix mips cc rejects this. */
5985 typedef int charset[2]; const charset x = {0,0};
5986 /* SunOS 4.1.1 cc rejects this. */
5987 char const *const *ccp;
5988 char **p;
5989 /* NEC SVR4.0.2 mips cc rejects this. */
5990 struct point {int x, y;};
5991 static struct point const zero = {0,0};
5992 /* AIX XL C 1.02.0.0 rejects this.
5993 It does not let you subtract one const X* pointer from another in an arm
5994 of an if-expression whose if-part is not a constant expression */
5995 const char *g = "string";
5996 ccp = &g + (g ? g-g : 0);
5997 /* HPUX 7.0 cc rejects these. */
5998 ++ccp;
5999 p = (char**) ccp;
6000 ccp = (char const *const *) p;
6001 { /* SCO 3.2v4 cc rejects this. */
6002 char *t;
6003 char const *s = 0 ? (char *) 0 : (char const *) 0;
6005 *t++ = 0;
6007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6008 int x[] = {25, 17};
6009 const int *foo = &x[0];
6010 ++foo;
6012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6013 typedef const int *iptr;
6014 iptr p = 0;
6015 ++p;
6017 { /* AIX XL C 1.02.0.0 rejects this saying
6018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6019 struct s { int j; const int *ap[3]; };
6020 struct s *b; b->j = 5;
6022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6023 const int foo = 10;
6026 ; return 0; }
6028 if { (eval echo configure:6029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6029 rm -rf conftest*
6030 ac_cv_c_const=yes
6031 else
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034 rm -rf conftest*
6035 ac_cv_c_const=no
6037 rm -f conftest*
6040 echo "$ac_t""$ac_cv_c_const" 1>&6
6041 if test $ac_cv_c_const = no; then
6042 cat >> confdefs.h <<\EOF
6043 #define const
6048 echo $ac_n "checking for inline""... $ac_c" 1>&6
6049 echo "configure:6050: checking for inline" >&5
6050 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6052 else
6053 ac_cv_c_inline=no
6054 for ac_kw in inline __inline__ __inline; do
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6059 int main() {
6060 } int $ac_kw foo() {
6061 ; return 0; }
6063 if { (eval echo configure:6064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6064 rm -rf conftest*
6065 ac_cv_c_inline=$ac_kw; break
6066 else
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 rm -f conftest*
6071 done
6075 echo "$ac_t""$ac_cv_c_inline" 1>&6
6076 case "$ac_cv_c_inline" in
6077 inline | yes) ;;
6078 no) cat >> confdefs.h <<\EOF
6079 #define inline
6082 *) cat >> confdefs.h <<EOF
6083 #define inline $ac_cv_c_inline
6086 esac
6088 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6089 echo "configure:6090: checking for ANSI C header files" >&5
6090 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6092 else
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 #include <stdlib.h>
6097 #include <stdarg.h>
6098 #include <string.h>
6099 #include <float.h>
6101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6102 { (eval echo configure:6103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6104 if test -z "$ac_err"; then
6105 rm -rf conftest*
6106 ac_cv_header_stdc=yes
6107 else
6108 echo "$ac_err" >&5
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6111 rm -rf conftest*
6112 ac_cv_header_stdc=no
6114 rm -f conftest*
6116 if test $ac_cv_header_stdc = yes; then
6117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 #include <string.h>
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124 egrep "memchr" >/dev/null 2>&1; then
6126 else
6127 rm -rf conftest*
6128 ac_cv_header_stdc=no
6130 rm -f conftest*
6134 if test $ac_cv_header_stdc = yes; then
6135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 #include <stdlib.h>
6141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6142 egrep "free" >/dev/null 2>&1; then
6144 else
6145 rm -rf conftest*
6146 ac_cv_header_stdc=no
6148 rm -f conftest*
6152 if test $ac_cv_header_stdc = yes; then
6153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6154 if test "$cross_compiling" = yes; then
6156 else
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 #include <ctype.h>
6161 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6162 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6164 int main () { int i; for (i = 0; i < 256; i++)
6165 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6166 exit (0); }
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6170 then
6172 else
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 rm -fr conftest*
6176 ac_cv_header_stdc=no
6178 rm -fr conftest*
6184 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6185 if test $ac_cv_header_stdc = yes; then
6186 cat >> confdefs.h <<\EOF
6187 #define STDC_HEADERS 1
6192 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6193 echo "configure:6194: checking for size_t" >&5
6194 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 #include <sys/types.h>
6201 #if STDC_HEADERS
6202 #include <stdlib.h>
6203 #include <stddef.h>
6204 #endif
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6208 rm -rf conftest*
6209 ac_cv_type_size_t=yes
6210 else
6211 rm -rf conftest*
6212 ac_cv_type_size_t=no
6214 rm -f conftest*
6217 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6218 if test $ac_cv_type_size_t = no; then
6219 cat >> confdefs.h <<\EOF
6220 #define size_t unsigned
6225 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6226 echo "configure:6227: checking size of long long" >&5
6227 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6229 else
6230 if test "$cross_compiling" = yes; then
6231 ac_cv_sizeof_long_long=0
6232 else
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 #include <stdio.h>
6237 main()
6239 FILE *f=fopen("conftestval", "w");
6240 if (!f) exit(1);
6241 fprintf(f, "%d\n", sizeof(long long));
6242 exit(0);
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6246 then
6247 ac_cv_sizeof_long_long=`cat conftestval`
6248 else
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 rm -fr conftest*
6252 ac_cv_sizeof_long_long=0
6254 rm -fr conftest*
6258 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6259 cat >> confdefs.h <<EOF
6260 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6266 echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
6267 echo "configure:6268: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
6268 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6270 else
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6275 #include <netdb.h>
6277 int main() {
6279 char *name=NULL;
6280 struct hostent he;
6281 struct hostent *result;
6282 char *buf=NULL;
6283 int bufsize=0;
6284 int res,errnr;
6285 char *addr=NULL;
6286 int addrlen=0;
6287 int addrtype=0;
6288 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6289 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6291 ; return 0; }
6293 if { (eval echo configure:6294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6294 rm -rf conftest*
6295 wine_cv_linux_gethostbyname_r_6=yes
6296 else
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 rm -rf conftest*
6300 wine_cv_linux_gethostbyname_r_6=no
6303 rm -f conftest*
6307 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6308 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6309 then
6310 cat >> confdefs.h <<\EOF
6311 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6316 if test "$ac_cv_header_linux_joystick_h" = "yes"
6317 then
6318 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
6319 echo "configure:6320: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
6320 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6327 #include <sys/ioctl.h>
6328 #include <linux/joystick.h>
6330 struct js_event blub;
6331 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6332 #error "no 2.2 header"
6333 #endif
6335 int main() {
6336 /*empty*/
6337 ; return 0; }
6339 if { (eval echo configure:6340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6340 rm -rf conftest*
6341 wine_cv_linux_joystick_22_api=yes
6342 else
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6345 rm -rf conftest*
6346 wine_cv_linux_joystick_22_api=no
6348 rm -f conftest*
6352 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6353 if test "$wine_cv_linux_joystick_22_api" = "yes"
6354 then
6355 cat >> confdefs.h <<\EOF
6356 #define HAVE_LINUX_22_JOYSTICK_API 1
6363 if test "$ac_cv_header_sys_vfs_h" = "yes"
6364 then
6365 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
6366 echo "configure:6367: checking "whether sys/vfs.h defines statfs"" >&5
6367 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6369 else
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6374 #include <sys/types.h>
6375 #ifdef HAVE_SYS_PARAM_H
6376 # include <sys/param.h>
6377 #endif
6378 #include <sys/vfs.h>
6380 int main() {
6382 struct statfs stfs;
6384 memset(&stfs,0,sizeof(stfs));
6386 ; return 0; }
6388 if { (eval echo configure:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6389 rm -rf conftest*
6390 wine_cv_sys_vfs_has_statfs=yes
6391 else
6392 echo "configure: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6394 rm -rf conftest*
6395 wine_cv_sys_vfs_has_statfs=no
6398 rm -f conftest*
6402 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6403 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6404 then
6405 cat >> confdefs.h <<\EOF
6406 #define STATFS_DEFINED_BY_SYS_VFS 1
6412 if test "$ac_cv_header_sys_statfs_h" = "yes"
6413 then
6414 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
6415 echo "configure:6416: checking "whether sys/statfs.h defines statfs"" >&5
6416 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6423 #include <sys/types.h>
6424 #ifdef HAVE_SYS_PARAM_H
6425 # include <sys/param.h>
6426 #endif
6427 #include <sys/statfs.h>
6429 int main() {
6431 struct statfs stfs;
6433 ; return 0; }
6435 if { (eval echo configure:6436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6436 rm -rf conftest*
6437 wine_cv_sys_statfs_has_statfs=yes
6438 else
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6441 rm -rf conftest*
6442 wine_cv_sys_statfs_has_statfs=no
6445 rm -f conftest*
6449 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6450 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6451 then
6452 cat >> confdefs.h <<\EOF
6453 #define STATFS_DEFINED_BY_SYS_STATFS 1
6459 if test "$ac_cv_header_sys_mount_h" = "yes"
6460 then
6461 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
6462 echo "configure:6463: checking "whether sys/mount.h defines statfs"" >&5
6463 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6465 else
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6470 #include <sys/types.h>
6471 #ifdef HAVE_SYS_PARAM_H
6472 # include <sys/param.h>
6473 #endif
6474 #include <sys/mount.h>
6476 int main() {
6478 struct statfs stfs;
6480 ; return 0; }
6482 if { (eval echo configure:6483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6483 rm -rf conftest*
6484 wine_cv_sys_mount_has_statfs=yes
6485 else
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6488 rm -rf conftest*
6489 wine_cv_sys_mount_has_statfs=no
6492 rm -f conftest*
6496 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6497 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6498 then
6499 cat >> confdefs.h <<\EOF
6500 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6507 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
6508 echo "configure:6509: checking "for statfs.f_bfree"" >&5
6509 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6511 else
6512 if test "x$statfs_bfree" = "xno"
6513 then
6514 wine_cv_statfs_bfree=no
6515 else
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6520 #include <sys/types.h>
6521 #ifdef HAVE_SYS_PARAM_H
6522 # include <sys/param.h>
6523 #endif
6524 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6525 # include <sys/mount.h>
6526 #else
6527 # ifdef STATFS_DEFINED_BY_SYS_VFS
6528 # include <sys/vfs.h>
6529 # else
6530 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6531 # include <sys/statfs.h>
6532 # endif
6533 # endif
6534 #endif
6536 int main() {
6538 struct statfs stfs;
6540 stfs.f_bfree++;
6542 ; return 0; }
6544 if { (eval echo configure:6545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6545 rm -rf conftest*
6546 wine_cv_statfs_bfree=yes
6547 else
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6550 rm -rf conftest*
6551 wine_cv_statfs_bfree=no
6554 rm -f conftest*
6558 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6559 if test "$wine_cv_statfs_bfree" = "yes"
6560 then
6561 cat >> confdefs.h <<\EOF
6562 #define STATFS_HAS_BFREE 1
6567 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
6568 echo "configure:6569: checking "for statfs.f_bavail"" >&5
6569 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6571 else
6572 if test "x$statfs_bavail" = "xno"
6573 then
6574 wine_cv_statfs_bavail=no
6575 else
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6580 #include <sys/types.h>
6581 #ifdef HAVE_SYS_PARAM_H
6582 # include <sys/param.h>
6583 #endif
6584 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6585 # include <sys/mount.h>
6586 #else
6587 # ifdef STATFS_DEFINED_BY_SYS_VFS
6588 # include <sys/vfs.h>
6589 # else
6590 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6591 # include <sys/statfs.h>
6592 # endif
6593 # endif
6594 #endif
6596 int main() {
6598 struct statfs stfs;
6600 stfs.f_bavail++;
6602 ; return 0; }
6604 if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6605 rm -rf conftest*
6606 wine_cv_statfs_bavail=yes
6607 else
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 rm -rf conftest*
6611 wine_cv_statfs_bavail=no
6614 rm -f conftest*
6618 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6619 if test "$wine_cv_statfs_bavail" = "yes"
6620 then
6621 cat >> confdefs.h <<\EOF
6622 #define STATFS_HAS_BAVAIL 1
6628 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
6629 echo "configure:6630: checking "for msg_accrights in struct msghdr"" >&5
6630 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6631 echo $ac_n "(cached) $ac_c" 1>&6
6632 else
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 #include <sys/types.h>
6637 #include <sys/socket.h>
6638 int main() {
6639 struct msghdr hdr; hdr.msg_accrights=0
6640 ; return 0; }
6642 if { (eval echo configure:6643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6643 rm -rf conftest*
6644 ac_cv_c_msg_accrights="yes"
6645 else
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 rm -rf conftest*
6649 ac_cv_c_msg_accrights="no"
6651 rm -f conftest*
6654 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6655 if test "$ac_cv_c_msg_accrights" = "yes"
6656 then
6657 cat >> confdefs.h <<\EOF
6658 #define HAVE_MSGHDR_ACCRIGHTS 1
6664 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6665 echo "configure:6666: checking "for sun_len in struct sockaddr_un"" >&5
6666 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668 else
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 #include <sys/types.h>
6673 #include <sys/socket.h>
6674 #include <sys/un.h>
6675 int main() {
6676 static struct sockaddr_un addr; addr.sun_len = 1
6677 ; return 0; }
6679 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6680 rm -rf conftest*
6681 ac_cv_c_sun_len="yes"
6682 else
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 rm -rf conftest*
6686 ac_cv_c_sun_len="no"
6688 rm -f conftest*
6691 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6692 if test "$ac_cv_c_sun_len" = "yes"
6693 then
6694 cat >> confdefs.h <<\EOF
6695 #define HAVE_SOCKADDR_SUN_LEN 1
6701 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6702 echo "configure:6703: checking "whether we need to define __i386__"" >&5
6703 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6711 #endif
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 egrep "yes" >/dev/null 2>&1; then
6715 rm -rf conftest*
6716 ac_cv_cpp_def_i386="yes"
6717 else
6718 rm -rf conftest*
6719 ac_cv_cpp_def_i386="no"
6721 rm -f conftest*
6725 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6726 if test "$ac_cv_cpp_def_i386" = "yes"
6727 then
6728 CFLAGS="$CFLAGS -D__i386__"
6729 LINTFLAGS="$LINTFLAGS -D__i386__"
6732 GCC_NO_BUILTIN=""
6733 if test "$GCC" = "yes"
6734 then
6735 GCC_NO_BUILTIN="-fno-builtin"
6742 MAKE_RULES=Make.rules
6745 MAKE_DLL_RULES=dlls/Makedll.rules
6748 MAKE_PROG_RULES=programs/Makeprog.rules
6751 trap '' 1 2 15
6752 cat > confcache <<\EOF
6753 # This file is a shell script that caches the results of configure
6754 # tests run on this system so they can be shared between configure
6755 # scripts and configure runs. It is not useful on other systems.
6756 # If it contains results you don't want to keep, you may remove or edit it.
6758 # By default, configure uses ./config.cache as the cache file,
6759 # creating it if it does not exist already. You can give configure
6760 # the --cache-file=FILE option to use a different cache file; that is
6761 # what configure does when it calls configure scripts in
6762 # subdirectories, so they share the cache.
6763 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6764 # config.status only pays attention to the cache file if you give it the
6765 # --recheck option to rerun configure.
6768 # The following way of writing the cache mishandles newlines in values,
6769 # but we know of no workaround that is simple, portable, and efficient.
6770 # So, don't put newlines in cache variables' values.
6771 # Ultrix sh set writes to stderr and can't be redirected directly,
6772 # and sets the high bit in the cache file unless we assign to the vars.
6773 (set) 2>&1 |
6774 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6775 *ac_space=\ *)
6776 # `set' does not quote correctly, so add quotes (double-quote substitution
6777 # turns \\\\ into \\, and sed turns \\ into \).
6778 sed -n \
6779 -e "s/'/'\\\\''/g" \
6780 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6783 # `set' quotes correctly as required by POSIX, so do not add quotes.
6784 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6786 esac >> confcache
6787 if cmp -s $cache_file confcache; then
6789 else
6790 if test -w $cache_file; then
6791 echo "updating cache $cache_file"
6792 cat confcache > $cache_file
6793 else
6794 echo "not updating unwritable cache $cache_file"
6797 rm -f confcache
6799 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6802 # Let make expand exec_prefix.
6803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6805 # Any assignment to VPATH causes Sun make to only execute
6806 # the first set of double-colon rules, so remove it if not needed.
6807 # If there is a colon in the path, we need to keep it.
6808 if test "x$srcdir" = x.; then
6809 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6812 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6814 DEFS=-DHAVE_CONFIG_H
6816 # Without the "./", some shells look in PATH for config.status.
6817 : ${CONFIG_STATUS=./config.status}
6819 echo creating $CONFIG_STATUS
6820 rm -f $CONFIG_STATUS
6821 cat > $CONFIG_STATUS <<EOF
6822 #! /bin/sh
6823 # Generated automatically by configure.
6824 # Run this file to recreate the current configuration.
6825 # This directory was configured as follows,
6826 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6828 # $0 $ac_configure_args
6830 # Compiler output produced by configure, useful for debugging
6831 # configure, is in ./config.log if it exists.
6833 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6834 for ac_option
6836 case "\$ac_option" in
6837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6838 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6839 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6840 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6841 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6842 exit 0 ;;
6843 -help | --help | --hel | --he | --h)
6844 echo "\$ac_cs_usage"; exit 0 ;;
6845 *) echo "\$ac_cs_usage"; exit 1 ;;
6846 esac
6847 done
6849 ac_given_srcdir=$srcdir
6850 ac_given_INSTALL="$INSTALL"
6852 trap 'rm -fr `echo "
6853 Make.rules
6854 dlls/Makedll.rules
6855 programs/Makeprog.rules
6856 Makefile
6857 console/Makefile
6858 controls/Makefile
6859 debugger/Makefile
6860 dlls/Makefile
6861 dlls/advapi32/Makefile
6862 dlls/avifil32/Makefile
6863 dlls/comctl32/Makefile
6864 dlls/commdlg/Makefile
6865 dlls/crtdll/Makefile
6866 dlls/dciman32/Makefile
6867 dlls/ddraw/Makefile
6868 dlls/dinput/Makefile
6869 dlls/dplay/Makefile
6870 dlls/dplayx/Makefile
6871 dlls/dsound/Makefile
6872 dlls/gdi/Makefile
6873 dlls/icmp/Makefile
6874 dlls/imagehlp/Makefile
6875 dlls/imm32/Makefile
6876 dlls/kernel/Makefile
6877 dlls/lzexpand/Makefile
6878 dlls/mpr/Makefile
6879 dlls/msacm/Makefile
6880 dlls/msnet32/Makefile
6881 dlls/msvideo/Makefile
6882 dlls/ntdll/Makefile
6883 dlls/odbc32/Makefile
6884 dlls/ole32/Makefile
6885 dlls/oleaut32/Makefile
6886 dlls/olecli/Makefile
6887 dlls/oledlg/Makefile
6888 dlls/olepro32/Makefile
6889 dlls/olesvr/Makefile
6890 dlls/opengl32/Makefile
6891 dlls/psapi/Makefile
6892 dlls/rasapi32/Makefile
6893 dlls/richedit/Makefile
6894 dlls/rpcrt4/Makefile
6895 dlls/serialui/Makefile
6896 dlls/setupapi/Makefile
6897 dlls/shell32/Makefile
6898 dlls/shfolder/Makefile
6899 dlls/shlwapi/Makefile
6900 dlls/tapi32/Makefile
6901 dlls/ttydrv/Makefile
6902 dlls/urlmon/Makefile
6903 dlls/user/Makefile
6904 dlls/version/Makefile
6905 dlls/win32s/Makefile
6906 dlls/winaspi/Makefile
6907 dlls/winedos/Makefile
6908 dlls/wineps/Makefile
6909 dlls/wininet/Makefile
6910 dlls/winmm/Makefile
6911 dlls/winmm/joystick/Makefile
6912 dlls/winmm/mcianim/Makefile
6913 dlls/winmm/mciavi/Makefile
6914 dlls/winmm/mcicda/Makefile
6915 dlls/winmm/mciseq/Makefile
6916 dlls/winmm/mciwave/Makefile
6917 dlls/winmm/midimap/Makefile
6918 dlls/winmm/wavemap/Makefile
6919 dlls/winmm/wineoss/Makefile
6920 dlls/winnls/Makefile
6921 dlls/winsock/Makefile
6922 dlls/winspool/Makefile
6923 dlls/wow32/Makefile
6924 dlls/wsock32/Makefile
6925 dlls/x11drv/Makefile
6926 documentation/Makefile
6927 documentation/wine.conf.man
6928 documentation/wine.man
6929 files/Makefile
6930 graphics/Makefile
6931 graphics/enhmetafiledrv/Makefile
6932 graphics/metafiledrv/Makefile
6933 graphics/win16drv/Makefile
6934 graphics/x11drv/Makefile
6935 if1632/Makefile
6936 include/Makefile
6937 library/Makefile
6938 libtest/Makefile
6939 loader/Makefile
6940 loader/dos/Makefile
6941 loader/ne/Makefile
6942 memory/Makefile
6943 misc/Makefile
6944 miscemu/Makefile
6945 msdos/Makefile
6946 objects/Makefile
6947 ole/Makefile
6948 programs/Makefile
6949 programs/avitools/Makefile
6950 programs/clock/Makefile
6951 programs/cmdlgtst/Makefile
6952 programs/control/Makefile
6953 programs/notepad/Makefile
6954 programs/osversioncheck/Makefile
6955 programs/progman/Makefile
6956 programs/regapi/Makefile
6957 programs/regtest/Makefile
6958 programs/uninstaller/Makefile
6959 programs/view/Makefile
6960 programs/wcmd/Makefile
6961 programs/winemine/Makefile
6962 programs/winhelp/Makefile
6963 programs/winver/Makefile
6964 relay32/Makefile
6965 scheduler/Makefile
6966 server/Makefile
6967 tools/Makefile
6968 tools/cvdump/Makefile
6969 tools/winebuild/Makefile
6970 tools/winelauncher
6971 tools/wmc/Makefile
6972 tools/wrc/Makefile
6973 tsx11/Makefile
6974 unicode/Makefile
6975 win32/Makefile
6976 windows/Makefile
6977 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6979 cat >> $CONFIG_STATUS <<EOF
6981 # Protect against being on the right side of a sed subst in config.status.
6982 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6983 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6984 $ac_vpsub
6985 $extrasub
6986 s%@SHELL@%$SHELL%g
6987 s%@CFLAGS@%$CFLAGS%g
6988 s%@CPPFLAGS@%$CPPFLAGS%g
6989 s%@CXXFLAGS@%$CXXFLAGS%g
6990 s%@FFLAGS@%$FFLAGS%g
6991 s%@DEFS@%$DEFS%g
6992 s%@LDFLAGS@%$LDFLAGS%g
6993 s%@LIBS@%$LIBS%g
6994 s%@exec_prefix@%$exec_prefix%g
6995 s%@prefix@%$prefix%g
6996 s%@program_transform_name@%$program_transform_name%g
6997 s%@bindir@%$bindir%g
6998 s%@sbindir@%$sbindir%g
6999 s%@libexecdir@%$libexecdir%g
7000 s%@datadir@%$datadir%g
7001 s%@sysconfdir@%$sysconfdir%g
7002 s%@sharedstatedir@%$sharedstatedir%g
7003 s%@localstatedir@%$localstatedir%g
7004 s%@libdir@%$libdir%g
7005 s%@includedir@%$includedir%g
7006 s%@oldincludedir@%$oldincludedir%g
7007 s%@infodir@%$infodir%g
7008 s%@mandir@%$mandir%g
7009 s%@OPTIONS@%$OPTIONS%g
7010 s%@SET_MAKE@%$SET_MAKE%g
7011 s%@CC@%$CC%g
7012 s%@CPP@%$CPP%g
7013 s%@X_CFLAGS@%$X_CFLAGS%g
7014 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7015 s%@X_LIBS@%$X_LIBS%g
7016 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7017 s%@YACC@%$YACC%g
7018 s%@LEX@%$LEX%g
7019 s%@LEXLIB@%$LEXLIB%g
7020 s%@XLEX@%$XLEX%g
7021 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7022 s%@RANLIB@%$RANLIB%g
7023 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7024 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7025 s%@INSTALL_DATA@%$INSTALL_DATA%g
7026 s%@LN_S@%$LN_S%g
7027 s%@C2MAN@%$C2MAN%g
7028 s%@LDCONFIG@%$LDCONFIG%g
7029 s%@DLLWRAP@%$DLLWRAP%g
7030 s%@LINT@%$LINT%g
7031 s%@LINTFLAGS@%$LINTFLAGS%g
7032 s%@LDCOMBINE@%$LDCOMBINE%g
7033 s%@XLIB@%$XLIB%g
7034 s%@X_DLLS@%$X_DLLS%g
7035 s%@XFILES@%$XFILES%g
7036 s%@OPENGLFILES@%$OPENGLFILES%g
7037 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
7038 s%@DGA_SRCS@%$DGA_SRCS%g
7039 s%@DGA2_SRCS@%$DGA2_SRCS%g
7040 s%@MESA_SRCS@%$MESA_SRCS%g
7041 s%@DLL_LINK@%$DLL_LINK%g
7042 s%@DLLFLAGS@%$DLLFLAGS%g
7043 s%@LDSHARED@%$LDSHARED%g
7044 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7045 s%@LIBEXT@%$LIBEXT%g
7046 s%@LDPATH@%$LDPATH%g
7047 s%@ALLOCA@%$ALLOCA%g
7048 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7049 /@MAKE_RULES@/r $MAKE_RULES
7050 s%@MAKE_RULES@%%g
7051 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7052 s%@MAKE_DLL_RULES@%%g
7053 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7054 s%@MAKE_PROG_RULES@%%g
7056 CEOF
7059 cat >> $CONFIG_STATUS <<\EOF
7061 # Split the substitutions into bite-sized pieces for seds with
7062 # small command number limits, like on Digital OSF/1 and HP-UX.
7063 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7064 ac_file=1 # Number of current file.
7065 ac_beg=1 # First line for current file.
7066 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7067 ac_more_lines=:
7068 ac_sed_cmds=""
7069 while $ac_more_lines; do
7070 if test $ac_beg -gt 1; then
7071 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7072 else
7073 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7075 if test ! -s conftest.s$ac_file; then
7076 ac_more_lines=false
7077 rm -f conftest.s$ac_file
7078 else
7079 if test -z "$ac_sed_cmds"; then
7080 ac_sed_cmds="sed -f conftest.s$ac_file"
7081 else
7082 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7084 ac_file=`expr $ac_file + 1`
7085 ac_beg=$ac_end
7086 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7088 done
7089 if test -z "$ac_sed_cmds"; then
7090 ac_sed_cmds=cat
7094 cat >> $CONFIG_STATUS <<EOF
7096 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7097 dlls/Makedll.rules
7098 programs/Makeprog.rules
7099 Makefile
7100 console/Makefile
7101 controls/Makefile
7102 debugger/Makefile
7103 dlls/Makefile
7104 dlls/advapi32/Makefile
7105 dlls/avifil32/Makefile
7106 dlls/comctl32/Makefile
7107 dlls/commdlg/Makefile
7108 dlls/crtdll/Makefile
7109 dlls/dciman32/Makefile
7110 dlls/ddraw/Makefile
7111 dlls/dinput/Makefile
7112 dlls/dplay/Makefile
7113 dlls/dplayx/Makefile
7114 dlls/dsound/Makefile
7115 dlls/gdi/Makefile
7116 dlls/icmp/Makefile
7117 dlls/imagehlp/Makefile
7118 dlls/imm32/Makefile
7119 dlls/kernel/Makefile
7120 dlls/lzexpand/Makefile
7121 dlls/mpr/Makefile
7122 dlls/msacm/Makefile
7123 dlls/msnet32/Makefile
7124 dlls/msvideo/Makefile
7125 dlls/ntdll/Makefile
7126 dlls/odbc32/Makefile
7127 dlls/ole32/Makefile
7128 dlls/oleaut32/Makefile
7129 dlls/olecli/Makefile
7130 dlls/oledlg/Makefile
7131 dlls/olepro32/Makefile
7132 dlls/olesvr/Makefile
7133 dlls/opengl32/Makefile
7134 dlls/psapi/Makefile
7135 dlls/rasapi32/Makefile
7136 dlls/richedit/Makefile
7137 dlls/rpcrt4/Makefile
7138 dlls/serialui/Makefile
7139 dlls/setupapi/Makefile
7140 dlls/shell32/Makefile
7141 dlls/shfolder/Makefile
7142 dlls/shlwapi/Makefile
7143 dlls/tapi32/Makefile
7144 dlls/ttydrv/Makefile
7145 dlls/urlmon/Makefile
7146 dlls/user/Makefile
7147 dlls/version/Makefile
7148 dlls/win32s/Makefile
7149 dlls/winaspi/Makefile
7150 dlls/winedos/Makefile
7151 dlls/wineps/Makefile
7152 dlls/wininet/Makefile
7153 dlls/winmm/Makefile
7154 dlls/winmm/joystick/Makefile
7155 dlls/winmm/mcianim/Makefile
7156 dlls/winmm/mciavi/Makefile
7157 dlls/winmm/mcicda/Makefile
7158 dlls/winmm/mciseq/Makefile
7159 dlls/winmm/mciwave/Makefile
7160 dlls/winmm/midimap/Makefile
7161 dlls/winmm/wavemap/Makefile
7162 dlls/winmm/wineoss/Makefile
7163 dlls/winnls/Makefile
7164 dlls/winsock/Makefile
7165 dlls/winspool/Makefile
7166 dlls/wow32/Makefile
7167 dlls/wsock32/Makefile
7168 dlls/x11drv/Makefile
7169 documentation/Makefile
7170 documentation/wine.conf.man
7171 documentation/wine.man
7172 files/Makefile
7173 graphics/Makefile
7174 graphics/enhmetafiledrv/Makefile
7175 graphics/metafiledrv/Makefile
7176 graphics/win16drv/Makefile
7177 graphics/x11drv/Makefile
7178 if1632/Makefile
7179 include/Makefile
7180 library/Makefile
7181 libtest/Makefile
7182 loader/Makefile
7183 loader/dos/Makefile
7184 loader/ne/Makefile
7185 memory/Makefile
7186 misc/Makefile
7187 miscemu/Makefile
7188 msdos/Makefile
7189 objects/Makefile
7190 ole/Makefile
7191 programs/Makefile
7192 programs/avitools/Makefile
7193 programs/clock/Makefile
7194 programs/cmdlgtst/Makefile
7195 programs/control/Makefile
7196 programs/notepad/Makefile
7197 programs/osversioncheck/Makefile
7198 programs/progman/Makefile
7199 programs/regapi/Makefile
7200 programs/regtest/Makefile
7201 programs/uninstaller/Makefile
7202 programs/view/Makefile
7203 programs/wcmd/Makefile
7204 programs/winemine/Makefile
7205 programs/winhelp/Makefile
7206 programs/winver/Makefile
7207 relay32/Makefile
7208 scheduler/Makefile
7209 server/Makefile
7210 tools/Makefile
7211 tools/cvdump/Makefile
7212 tools/winebuild/Makefile
7213 tools/winelauncher
7214 tools/wmc/Makefile
7215 tools/wrc/Makefile
7216 tsx11/Makefile
7217 unicode/Makefile
7218 win32/Makefile
7219 windows/Makefile
7220 windows/x11drv/Makefile "}
7222 cat >> $CONFIG_STATUS <<\EOF
7223 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7225 case "$ac_file" in
7226 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7227 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7228 *) ac_file_in="${ac_file}.in" ;;
7229 esac
7231 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7233 # Remove last slash and all that follows it. Not all systems have dirname.
7234 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7235 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7236 # The file is in a subdirectory.
7237 test ! -d "$ac_dir" && mkdir "$ac_dir"
7238 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7239 # A "../" for each directory in $ac_dir_suffix.
7240 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7241 else
7242 ac_dir_suffix= ac_dots=
7245 case "$ac_given_srcdir" in
7246 .) srcdir=.
7247 if test -z "$ac_dots"; then top_srcdir=.
7248 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7249 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7250 *) # Relative path.
7251 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7252 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7253 esac
7255 case "$ac_given_INSTALL" in
7256 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7257 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7258 esac
7260 echo creating "$ac_file"
7261 rm -f "$ac_file"
7262 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7263 case "$ac_file" in
7264 *Makefile*) ac_comsub="1i\\
7265 # $configure_input" ;;
7266 *) ac_comsub= ;;
7267 esac
7269 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7270 sed -e "$ac_comsub
7271 s%@configure_input@%$configure_input%g
7272 s%@srcdir@%$srcdir%g
7273 s%@top_srcdir@%$top_srcdir%g
7274 s%@INSTALL@%$INSTALL%g
7275 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7276 fi; done
7277 rm -f conftest.s*
7279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7282 # ac_d sets the value in "#define NAME VALUE" lines.
7283 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7284 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7285 ac_dC='\3'
7286 ac_dD='%g'
7287 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7288 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7289 ac_uB='\([ ]\)%\1#\2define\3'
7290 ac_uC=' '
7291 ac_uD='\4%g'
7292 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7293 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7294 ac_eB='$%\1#\2define\3'
7295 ac_eC=' '
7296 ac_eD='%g'
7298 if test "${CONFIG_HEADERS+set}" != set; then
7300 cat >> $CONFIG_STATUS <<EOF
7301 CONFIG_HEADERS="include/config.h"
7303 cat >> $CONFIG_STATUS <<\EOF
7305 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7307 case "$ac_file" in
7308 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7309 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7310 *) ac_file_in="${ac_file}.in" ;;
7311 esac
7313 echo creating $ac_file
7315 rm -f conftest.frag conftest.in conftest.out
7316 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7317 cat $ac_file_inputs > conftest.in
7321 # Transform confdefs.h into a sed script conftest.vals that substitutes
7322 # the proper values into config.h.in to produce config.h. And first:
7323 # Protect against being on the right side of a sed subst in config.status.
7324 # Protect against being in an unquoted here document in config.status.
7325 rm -f conftest.vals
7326 cat > conftest.hdr <<\EOF
7327 s/[\\&%]/\\&/g
7328 s%[\\$`]%\\&%g
7329 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7330 s%ac_d%ac_u%gp
7331 s%ac_u%ac_e%gp
7333 sed -n -f conftest.hdr confdefs.h > conftest.vals
7334 rm -f conftest.hdr
7336 # This sed command replaces #undef with comments. This is necessary, for
7337 # example, in the case of _POSIX_SOURCE, which is predefined and required
7338 # on some systems where configure will not decide to define it.
7339 cat >> conftest.vals <<\EOF
7340 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7343 # Break up conftest.vals because some shells have a limit on
7344 # the size of here documents, and old seds have small limits too.
7346 rm -f conftest.tail
7347 while :
7349 ac_lines=`grep -c . conftest.vals`
7350 # grep -c gives empty output for an empty file on some AIX systems.
7351 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7352 # Write a limited-size here document to conftest.frag.
7353 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7354 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7355 echo 'CEOF
7356 sed -f conftest.frag conftest.in > conftest.out
7357 rm -f conftest.in
7358 mv conftest.out conftest.in
7359 ' >> $CONFIG_STATUS
7360 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7361 rm -f conftest.vals
7362 mv conftest.tail conftest.vals
7363 done
7364 rm -f conftest.vals
7366 cat >> $CONFIG_STATUS <<\EOF
7367 rm -f conftest.frag conftest.h
7368 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7369 cat conftest.in >> conftest.h
7370 rm -f conftest.in
7371 if cmp -s $ac_file conftest.h 2>/dev/null; then
7372 echo "$ac_file is unchanged"
7373 rm -f conftest.h
7374 else
7375 # Remove last slash and all that follows it. Not all systems have dirname.
7376 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7377 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7378 # The file is in a subdirectory.
7379 test ! -d "$ac_dir" && mkdir "$ac_dir"
7381 rm -f $ac_file
7382 mv conftest.h $ac_file
7384 fi; done
7387 cat >> $CONFIG_STATUS <<EOF
7391 cat >> $CONFIG_STATUS <<\EOF
7393 extra_subdirs="\
7394 dlls/ddraw/d3ddevice \
7395 dlls/ddraw/dclipper \
7396 dlls/ddraw/ddraw \
7397 dlls/ddraw/direct3d \
7398 dlls/ddraw/dpalette \
7399 dlls/ddraw/dsurface \
7400 dlls/dinput/joystick \
7401 dlls/dinput/keyboard \
7402 dlls/dinput/mouse \
7403 dlls/kernel/messages \
7404 dlls/user/resources \
7406 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7408 exit 0
7410 chmod +x $CONFIG_STATUS
7411 rm -fr confdefs* $ac_clean_files
7412 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7415 if test "$have_x" = "no"
7416 then
7417 echo
7418 echo "*** Warning: X development files not found. Wine will be built without"
7419 echo "*** X support, which currently does not work, and would probably not be"
7420 echo "*** what you want anyway. You will need to install devel packages of"
7421 echo "*** Xlib/Xfree86 and Xpm at the very least."
7422 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7423 then
7424 echo
7425 echo "*** Warning: Xpm development files not found. Wine will be built without"
7426 echo "*** Xpm support, which currently does not work. You will need to install"
7427 echo "*** devel packages of Xpm."
7430 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7431 then
7432 echo
7433 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7434 echo "*** terminal resize support. Consider upgrading ncurses."
7437 if test "$wine_cv_libc_reentrant" = "no"
7438 then
7439 echo
7440 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7441 echo "*** thread support. Consider upgrading libc to a more recent"
7442 echo "*** reentrant version of libc."
7445 if test "$wine_cv_opengl_version_OK" = "no"
7446 then
7447 echo
7448 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7449 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7452 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7453 then
7454 echo
7455 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7456 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7457 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
7458 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7461 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7462 then
7463 echo
7464 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
7465 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7466 echo "*** support before reporting bugs."
7470 echo
7471 echo "Configure finished. Do 'make depend && make' to compile Wine."
7472 echo