Release 980517
[wine/multimedia.git] / configure
blob5863cb273692bdb082b3897abc24375b47979db1
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.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --enable-dll build the Wine library as a DLL"
19 ac_help="$ac_help
20 --without-reentrant-x Compile for use with non-reentrant X libraries"
21 ac_help="$ac_help
22 --with-x use the X Window System"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
64 ac_prev=
65 for ac_option
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
71 ac_prev=
72 continue
75 case "$ac_option" in
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 *) ac_optarg= ;;
78 esac
80 # Accept the important Cygnus configure options, so we can diagnose typos.
82 case "$ac_option" in
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 ac_prev=bindir ;;
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 build="$ac_optarg" ;;
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 ac_prev=cache_file ;;
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 ac_prev=datadir ;;
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 | --da=*)
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 case "$ac_option" in
124 *=*) ;;
125 *) ac_optarg=yes ;;
126 esac
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
140 with_gas=yes ;;
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
145 cat << EOF
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
179 cat << EOF
180 Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
195 exit 0 ;;
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 ac_prev=srcdir ;;
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
336 ac_prev=target ;;
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 verbose=yes ;;
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.12"
345 exit 0 ;;
347 -with-* | --with-*)
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 case "$ac_option" in
355 *=*) ;;
356 *) ac_optarg=yes ;;
357 esac
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
369 --x)
370 # Obsolete; use --with-x.
371 with_x=yes ;;
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 nonopt="$ac_option"
400 esac
401 done
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
410 # 0 standard input
411 # 1 file creation
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
418 exec 6>/dev/null
419 else
420 exec 6>&1
422 exec 5>./config.log
424 echo "\
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
427 " 1>&5
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
431 ac_configure_args=
432 for ac_arg
434 case "$ac_arg" in
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 esac
443 done
445 # NLS nuisances.
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > confdefs.h
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=controls/edit.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
468 ac_prog=$0
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 srcdir=$ac_confdir
472 if test ! -r $srcdir/$ac_unique_file; then
473 srcdir=..
475 else
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 else
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
498 . "$ac_site_file"
500 done
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505 else
506 echo "creating cache $cache_file"
507 > $cache_file
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='
521 ' ac_t=' '
522 else
523 ac_n=-n ac_c= ac_t=
525 else
526 ac_n= ac_c='\c' ac_t=
531 ac_aux_dir=
532 for ac_dir in tools $srcdir/tools; do
533 if test -f $ac_dir/install-sh; then
534 ac_aux_dir=$ac_dir
535 ac_install_sh="$ac_aux_dir/install-sh -c"
536 break
537 elif test -f $ac_dir/install.sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install.sh -c"
540 break
542 done
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # We want these before the checks, so the checks can modify their values.
552 LIBS="$LIBS -lm"
553 test -z "$PROGEXT" && PROGEXT=""
556 MAIN_TARGET=emu
557 LIB_TARGET=libwine.a
559 # Check whether --enable-emulator or --disable-emulator was given.
560 if test "${enable_emulator+set}" = set; then
561 enableval="$enable_emulator"
562 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
566 # Check whether --enable-dll or --disable-dll was given.
567 if test "${enable_dll+set}" = set; then
568 enableval="$enable_dll"
569 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
574 # Check whether --with-reentrant-x or --without-reentrant-x was given.
575 if test "${with_reentrant_x+set}" = set; then
576 withval="$with_reentrant_x"
586 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
587 echo "configure:588: checking whether ${MAKE-make} sets \${MAKE}" >&5
588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
589 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
591 else
592 cat > conftestmake <<\EOF
593 all:
594 @echo 'ac_maketemp="${MAKE}"'
596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
597 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
598 if test -n "$ac_maketemp"; then
599 eval ac_cv_prog_make_${ac_make}_set=yes
600 else
601 eval ac_cv_prog_make_${ac_make}_set=no
603 rm -f conftestmake
605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
606 echo "$ac_t""yes" 1>&6
607 SET_MAKE=
608 else
609 echo "$ac_t""no" 1>&6
610 SET_MAKE="MAKE=${MAKE-make}"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
622 else
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
624 for ac_dir in $PATH; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
627 ac_cv_prog_CC="gcc"
628 break
630 done
631 IFS="$ac_save_ifs"
634 CC="$ac_cv_prog_CC"
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
637 else
638 echo "$ac_t""no" 1>&6
641 if test -z "$CC"; then
642 # Extract the first word of "cc", so it can be a program name with args.
643 set dummy cc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
648 else
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
651 else
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
653 ac_prog_rejected=no
654 for ac_dir in $PATH; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
658 ac_prog_rejected=yes
659 continue
661 ac_cv_prog_CC="cc"
662 break
664 done
665 IFS="$ac_save_ifs"
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy $ac_cv_prog_CC
669 shift
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
674 shift
675 set dummy "$ac_dir/$ac_word" "$@"
676 shift
677 ac_cv_prog_CC="$@"
682 CC="$ac_cv_prog_CC"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
685 else
686 echo "$ac_t""no" 1>&6
689 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
693 echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
695 ac_ext=c
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp='$CPP $CPPFLAGS'
698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling=$ac_cv_prog_cc_cross
702 cat > conftest.$ac_ext <<EOF
703 #line 704 "configure"
704 #include "confdefs.h"
705 main(){return(0);}
707 if { (eval echo configure:708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
708 ac_cv_prog_cc_works=yes
709 # If we can't run a trivial program, we are probably using a cross compiler.
710 if (./conftest; exit) 2>/dev/null; then
711 ac_cv_prog_cc_cross=no
712 else
713 ac_cv_prog_cc_cross=yes
715 else
716 echo "configure: failed program was:" >&5
717 cat conftest.$ac_ext >&5
718 ac_cv_prog_cc_works=no
720 rm -fr conftest*
722 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
723 if test $ac_cv_prog_cc_works = no; then
724 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
728 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
729 cross_compiling=$ac_cv_prog_cc_cross
731 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
732 echo "configure:733: checking whether we are using GNU C" >&5
733 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735 else
736 cat > conftest.c <<EOF
737 #ifdef __GNUC__
738 yes;
739 #endif
741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
742 ac_cv_prog_gcc=yes
743 else
744 ac_cv_prog_gcc=no
748 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
750 if test $ac_cv_prog_gcc = yes; then
751 GCC=yes
752 ac_test_CFLAGS="${CFLAGS+set}"
753 ac_save_CFLAGS="$CFLAGS"
754 CFLAGS=
755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
759 else
760 echo 'void f(){}' > conftest.c
761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762 ac_cv_prog_cc_g=yes
763 else
764 ac_cv_prog_cc_g=no
766 rm -f conftest*
770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
771 if test "$ac_test_CFLAGS" = set; then
772 CFLAGS="$ac_save_CFLAGS"
773 elif test $ac_cv_prog_cc_g = yes; then
774 CFLAGS="-g -O2"
775 else
776 CFLAGS="-O2"
778 else
779 GCC=
780 test "${CFLAGS+set}" = set || CFLAGS="-g"
783 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
784 echo "configure:785: checking how to run the C preprocessor" >&5
785 # On Suns, sometimes $CPP names a directory.
786 if test -n "$CPP" && test -d "$CPP"; then
787 CPP=
789 if test -z "$CPP"; then
790 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 # This must be in double quotes, not single quotes, because CPP may get
794 # substituted into the Makefile and "${CC-cc}" will confuse make.
795 CPP="${CC-cc} -E"
796 # On the NeXT, cc -E runs the code through the compiler's parser,
797 # not just through cpp.
798 cat > conftest.$ac_ext <<EOF
799 #line 800 "configure"
800 #include "confdefs.h"
801 #include <assert.h>
802 Syntax Error
804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
805 { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
806 ac_err=`grep -v '^ *+' conftest.out`
807 if test -z "$ac_err"; then
809 else
810 echo "$ac_err" >&5
811 echo "configure: failed program was:" >&5
812 cat conftest.$ac_ext >&5
813 rm -rf conftest*
814 CPP="${CC-cc} -E -traditional-cpp"
815 cat > conftest.$ac_ext <<EOF
816 #line 817 "configure"
817 #include "confdefs.h"
818 #include <assert.h>
819 Syntax Error
821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822 { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823 ac_err=`grep -v '^ *+' conftest.out`
824 if test -z "$ac_err"; then
826 else
827 echo "$ac_err" >&5
828 echo "configure: failed program was:" >&5
829 cat conftest.$ac_ext >&5
830 rm -rf conftest*
831 CPP=/lib/cpp
833 rm -f conftest*
835 rm -f conftest*
836 ac_cv_prog_CPP="$CPP"
838 CPP="$ac_cv_prog_CPP"
839 else
840 ac_cv_prog_CPP="$CPP"
842 echo "$ac_t""$CPP" 1>&6
844 # If we find X, set shell vars x_includes and x_libraries to the
845 # paths, otherwise set no_x=yes.
846 # Uses ac_ vars as temps to allow command line to override cache and checks.
847 # --without-x overrides everything else, but does not touch the cache.
848 echo $ac_n "checking for X""... $ac_c" 1>&6
849 echo "configure:850: checking for X" >&5
851 # Check whether --with-x or --without-x was given.
852 if test "${with_x+set}" = set; then
853 withval="$with_x"
857 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
858 if test "x$with_x" = xno; then
859 # The user explicitly disabled X.
860 have_x=disabled
861 else
862 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
863 # Both variables are already set.
864 have_x=yes
865 else
866 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 # One or both of the vars are not set, and there is no cached value.
870 ac_x_includes=NO ac_x_libraries=NO
871 rm -fr conftestdir
872 if mkdir conftestdir; then
873 cd conftestdir
874 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
875 cat > Imakefile <<'EOF'
876 acfindx:
877 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
879 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
881 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
883 for ac_extension in a so sl; do
884 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
885 test -f $ac_im_libdir/libX11.$ac_extension; then
886 ac_im_usrlibdir=$ac_im_libdir; break
888 done
889 # Screen out bogus values from the imake configuration. They are
890 # bogus both because they are the default anyway, and because
891 # using them would break gcc on systems where it needs fixed includes.
892 case "$ac_im_incroot" in
893 /usr/include) ;;
894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
895 esac
896 case "$ac_im_usrlibdir" in
897 /usr/lib | /lib) ;;
898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
899 esac
901 cd ..
902 rm -fr conftestdir
905 if test "$ac_x_includes" = NO; then
906 # Guess where to find include files, by looking for this one X11 .h file.
907 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
909 # First, try using that file with no special directory specified.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 #include <$x_direct_test_include>
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out`
918 if test -z "$ac_err"; then
919 rm -rf conftest*
920 # We can compile using X headers with no special include directory.
921 ac_x_includes=
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 # Look for the header file in a standard set of common directories.
928 # Check X11 before X11Rn because it is often a symlink to the current release.
929 for ac_dir in \
930 /usr/X11/include \
931 /usr/X11R6/include \
932 /usr/X11R5/include \
933 /usr/X11R4/include \
935 /usr/include/X11 \
936 /usr/include/X11R6 \
937 /usr/include/X11R5 \
938 /usr/include/X11R4 \
940 /usr/local/X11/include \
941 /usr/local/X11R6/include \
942 /usr/local/X11R5/include \
943 /usr/local/X11R4/include \
945 /usr/local/include/X11 \
946 /usr/local/include/X11R6 \
947 /usr/local/include/X11R5 \
948 /usr/local/include/X11R4 \
950 /usr/X386/include \
951 /usr/x386/include \
952 /usr/XFree86/include/X11 \
954 /usr/include \
955 /usr/local/include \
956 /usr/unsupported/include \
957 /usr/athena/include \
958 /usr/local/x11r5/include \
959 /usr/lpp/Xamples/include \
961 /usr/openwin/include \
962 /usr/openwin/share/include \
965 if test -r "$ac_dir/$x_direct_test_include"; then
966 ac_x_includes=$ac_dir
967 break
969 done
971 rm -f conftest*
972 fi # $ac_x_includes = NO
974 if test "$ac_x_libraries" = NO; then
975 # Check for the libraries.
977 test -z "$x_direct_test_library" && x_direct_test_library=Xt
978 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
980 # See if we find them without any special options.
981 # Don't add to $LIBS permanently.
982 ac_save_LIBS="$LIBS"
983 LIBS="-l$x_direct_test_library $LIBS"
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
988 int main() {
989 ${x_direct_test_function}()
990 ; return 0; }
992 if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
993 rm -rf conftest*
994 LIBS="$ac_save_LIBS"
995 # We can link X programs with no special library path.
996 ac_x_libraries=
997 else
998 echo "configure: failed program was:" >&5
999 cat conftest.$ac_ext >&5
1000 rm -rf conftest*
1001 LIBS="$ac_save_LIBS"
1002 # First see if replacing the include by lib works.
1003 # Check X11 before X11Rn because it is often a symlink to the current release.
1004 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1005 /usr/X11/lib \
1006 /usr/X11R6/lib \
1007 /usr/X11R5/lib \
1008 /usr/X11R4/lib \
1010 /usr/lib/X11 \
1011 /usr/lib/X11R6 \
1012 /usr/lib/X11R5 \
1013 /usr/lib/X11R4 \
1015 /usr/local/X11/lib \
1016 /usr/local/X11R6/lib \
1017 /usr/local/X11R5/lib \
1018 /usr/local/X11R4/lib \
1020 /usr/local/lib/X11 \
1021 /usr/local/lib/X11R6 \
1022 /usr/local/lib/X11R5 \
1023 /usr/local/lib/X11R4 \
1025 /usr/X386/lib \
1026 /usr/x386/lib \
1027 /usr/XFree86/lib/X11 \
1029 /usr/lib \
1030 /usr/local/lib \
1031 /usr/unsupported/lib \
1032 /usr/athena/lib \
1033 /usr/local/x11r5/lib \
1034 /usr/lpp/Xamples/lib \
1035 /lib/usr/lib/X11 \
1037 /usr/openwin/lib \
1038 /usr/openwin/share/lib \
1041 for ac_extension in a so sl; do
1042 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1043 ac_x_libraries=$ac_dir
1044 break 2
1046 done
1047 done
1049 rm -f conftest*
1050 fi # $ac_x_libraries = NO
1052 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1053 # Didn't find X anywhere. Cache the known absence of X.
1054 ac_cv_have_x="have_x=no"
1055 else
1056 # Record where we found X for the cache.
1057 ac_cv_have_x="have_x=yes \
1058 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1062 eval "$ac_cv_have_x"
1063 fi # $with_x != no
1065 if test "$have_x" != yes; then
1066 echo "$ac_t""$have_x" 1>&6
1067 no_x=yes
1068 else
1069 # If each of the values was on the command line, it overrides each guess.
1070 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1071 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1072 # Update the cache value to reflect the command line values.
1073 ac_cv_have_x="have_x=yes \
1074 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1075 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1078 if test "$no_x" = yes; then
1079 # Not all programs may use this symbol, but it does not hurt to define it.
1080 cat >> confdefs.h <<\EOF
1081 #define X_DISPLAY_MISSING 1
1084 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1085 else
1086 if test -n "$x_includes"; then
1087 X_CFLAGS="$X_CFLAGS -I$x_includes"
1090 # It would also be nice to do this for all -L options, not just this one.
1091 if test -n "$x_libraries"; then
1092 X_LIBS="$X_LIBS -L$x_libraries"
1093 # For Solaris; some versions of Sun CC require a space after -R and
1094 # others require no space. Words are not sufficient . . . .
1095 case "`(uname -sr) 2>/dev/null`" in
1096 "SunOS 5"*)
1097 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether -R must be followed by a space" >&5
1099 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1104 int main() {
1106 ; return 0; }
1108 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1109 rm -rf conftest*
1110 ac_R_nospace=yes
1111 else
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 ac_R_nospace=no
1117 rm -f conftest*
1118 if test $ac_R_nospace = yes; then
1119 echo "$ac_t""no" 1>&6
1120 X_LIBS="$X_LIBS -R$x_libraries"
1121 else
1122 LIBS="$ac_xsave_LIBS -R $x_libraries"
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1127 int main() {
1129 ; return 0; }
1131 if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1132 rm -rf conftest*
1133 ac_R_space=yes
1134 else
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1137 rm -rf conftest*
1138 ac_R_space=no
1140 rm -f conftest*
1141 if test $ac_R_space = yes; then
1142 echo "$ac_t""yes" 1>&6
1143 X_LIBS="$X_LIBS -R $x_libraries"
1144 else
1145 echo "$ac_t""neither works" 1>&6
1148 LIBS="$ac_xsave_LIBS"
1149 esac
1152 # Check for system-dependent libraries X programs must link with.
1153 # Do this before checking for the system-independent R6 libraries
1154 # (-lICE), since we may need -lsocket or whatever for X linking.
1156 if test "$ISC" = yes; then
1157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1158 else
1159 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1160 # libraries were built with DECnet support. And karl@cs.umb.edu says
1161 # the Alpha needs dnet_stub (dnet does not exist).
1162 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1163 echo "configure:1164: checking for dnet_ntoa in -ldnet" >&5
1164 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167 else
1168 ac_save_LIBS="$LIBS"
1169 LIBS="-ldnet $LIBS"
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1173 /* Override any gcc2 internal prototype to avoid an error. */
1174 /* We use char because int might match the return type of a gcc2
1175 builtin and then its argument prototype would still apply. */
1176 char dnet_ntoa();
1178 int main() {
1179 dnet_ntoa()
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 rm -rf conftest*
1184 eval "ac_cv_lib_$ac_lib_var=yes"
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 eval "ac_cv_lib_$ac_lib_var=no"
1191 rm -f conftest*
1192 LIBS="$ac_save_LIBS"
1195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1198 else
1199 echo "$ac_t""no" 1>&6
1202 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1203 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1204 echo "configure:1205: checking for dnet_ntoa in -ldnet_stub" >&5
1205 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209 ac_save_LIBS="$LIBS"
1210 LIBS="-ldnet_stub $LIBS"
1211 cat > conftest.$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1217 char dnet_ntoa();
1219 int main() {
1220 dnet_ntoa()
1221 ; return 0; }
1223 if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1224 rm -rf conftest*
1225 eval "ac_cv_lib_$ac_lib_var=yes"
1226 else
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1229 rm -rf conftest*
1230 eval "ac_cv_lib_$ac_lib_var=no"
1232 rm -f conftest*
1233 LIBS="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1238 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1239 else
1240 echo "$ac_t""no" 1>&6
1245 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1246 # to get the SysV transport functions.
1247 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1248 # needs -lnsl.
1249 # The nsl library prevents programs from opening the X display
1250 # on Irix 5.2, according to dickey@clark.net.
1251 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1252 echo "configure:1253: checking for gethostbyname" >&5
1253 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 cat > conftest.$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259 /* System header to define __stub macros and hopefully few prototypes,
1260 which can conflict with char gethostbyname(); below. */
1261 #include <assert.h>
1262 /* Override any gcc2 internal prototype to avoid an error. */
1263 /* We use char because int might match the return type of a gcc2
1264 builtin and then its argument prototype would still apply. */
1265 char gethostbyname();
1267 int main() {
1269 /* The GNU C library defines this for functions which it implements
1270 to always fail with ENOSYS. Some functions are actually named
1271 something starting with __ and the normal name is an alias. */
1272 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1273 choke me
1274 #else
1275 gethostbyname();
1276 #endif
1278 ; return 0; }
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1281 rm -rf conftest*
1282 eval "ac_cv_func_gethostbyname=yes"
1283 else
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 eval "ac_cv_func_gethostbyname=no"
1289 rm -f conftest*
1292 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1293 echo "$ac_t""yes" 1>&6
1295 else
1296 echo "$ac_t""no" 1>&6
1299 if test $ac_cv_func_gethostbyname = no; then
1300 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gethostbyname in -lnsl" >&5
1302 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 ac_save_LIBS="$LIBS"
1307 LIBS="-lnsl $LIBS"
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 /* Override any gcc2 internal prototype to avoid an error. */
1312 /* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314 char gethostbyname();
1316 int main() {
1317 gethostbyname()
1318 ; return 0; }
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1329 rm -f conftest*
1330 LIBS="$ac_save_LIBS"
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1336 else
1337 echo "$ac_t""no" 1>&6
1342 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1343 # socket/setsockopt and other routines are undefined under SCO ODT
1344 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1345 # on later versions), says simon@lia.di.epfl.ch: it contains
1346 # gethostby* variants that don't use the nameserver (or something).
1347 # -lsocket must be given before -lnsl if both are needed.
1348 # We assume that if connect needs -lnsl, so does gethostbyname.
1349 echo $ac_n "checking for connect""... $ac_c" 1>&6
1350 echo "configure:1351: checking for connect" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char connect(); below. */
1359 #include <assert.h>
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char connect();
1365 int main() {
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_connect) || defined (__stub___connect)
1371 choke me
1372 #else
1373 connect();
1374 #endif
1376 ; return 0; }
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1379 rm -rf conftest*
1380 eval "ac_cv_func_connect=yes"
1381 else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_connect=no"
1387 rm -f conftest*
1390 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_connect = no; then
1398 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1399 echo "configure:1400: checking for connect in -lsocket" >&5
1400 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 ac_save_LIBS="$LIBS"
1405 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char connect();
1414 int main() {
1415 connect()
1416 ; return 0; }
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1419 rm -rf conftest*
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 eval "ac_cv_lib_$ac_lib_var=no"
1427 rm -f conftest*
1428 LIBS="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1434 else
1435 echo "$ac_t""no" 1>&6
1440 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1441 echo $ac_n "checking for remove""... $ac_c" 1>&6
1442 echo "configure:1443: checking for remove" >&5
1443 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 /* System header to define __stub macros and hopefully few prototypes,
1450 which can conflict with char remove(); below. */
1451 #include <assert.h>
1452 /* Override any gcc2 internal prototype to avoid an error. */
1453 /* We use char because int might match the return type of a gcc2
1454 builtin and then its argument prototype would still apply. */
1455 char remove();
1457 int main() {
1459 /* The GNU C library defines this for functions which it implements
1460 to always fail with ENOSYS. Some functions are actually named
1461 something starting with __ and the normal name is an alias. */
1462 #if defined (__stub_remove) || defined (__stub___remove)
1463 choke me
1464 #else
1465 remove();
1466 #endif
1468 ; return 0; }
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1471 rm -rf conftest*
1472 eval "ac_cv_func_remove=yes"
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_func_remove=no"
1479 rm -f conftest*
1482 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1485 else
1486 echo "$ac_t""no" 1>&6
1489 if test $ac_cv_func_remove = no; then
1490 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1491 echo "configure:1492: checking for remove in -lposix" >&5
1492 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 ac_save_LIBS="$LIBS"
1497 LIBS="-lposix $LIBS"
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 /* Override any gcc2 internal prototype to avoid an error. */
1502 /* We use char because int might match the return type of a gcc2
1503 builtin and then its argument prototype would still apply. */
1504 char remove();
1506 int main() {
1507 remove()
1508 ; return 0; }
1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1511 rm -rf conftest*
1512 eval "ac_cv_lib_$ac_lib_var=yes"
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_lib_$ac_lib_var=no"
1519 rm -f conftest*
1520 LIBS="$ac_save_LIBS"
1523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1524 echo "$ac_t""yes" 1>&6
1525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1526 else
1527 echo "$ac_t""no" 1>&6
1532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1533 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1534 echo "configure:1535: checking for shmat" >&5
1535 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* System header to define __stub macros and hopefully few prototypes,
1542 which can conflict with char shmat(); below. */
1543 #include <assert.h>
1544 /* Override any gcc2 internal prototype to avoid an error. */
1545 /* We use char because int might match the return type of a gcc2
1546 builtin and then its argument prototype would still apply. */
1547 char shmat();
1549 int main() {
1551 /* The GNU C library defines this for functions which it implements
1552 to always fail with ENOSYS. Some functions are actually named
1553 something starting with __ and the normal name is an alias. */
1554 #if defined (__stub_shmat) || defined (__stub___shmat)
1555 choke me
1556 #else
1557 shmat();
1558 #endif
1560 ; return 0; }
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1563 rm -rf conftest*
1564 eval "ac_cv_func_shmat=yes"
1565 else
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 rm -rf conftest*
1569 eval "ac_cv_func_shmat=no"
1571 rm -f conftest*
1574 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1577 else
1578 echo "$ac_t""no" 1>&6
1581 if test $ac_cv_func_shmat = no; then
1582 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1583 echo "configure:1584: checking for shmat in -lipc" >&5
1584 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 ac_save_LIBS="$LIBS"
1589 LIBS="-lipc $LIBS"
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 /* Override any gcc2 internal prototype to avoid an error. */
1594 /* We use char because int might match the return type of a gcc2
1595 builtin and then its argument prototype would still apply. */
1596 char shmat();
1598 int main() {
1599 shmat()
1600 ; return 0; }
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1603 rm -rf conftest*
1604 eval "ac_cv_lib_$ac_lib_var=yes"
1605 else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_lib_$ac_lib_var=no"
1611 rm -f conftest*
1612 LIBS="$ac_save_LIBS"
1615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1618 else
1619 echo "$ac_t""no" 1>&6
1625 # Check for libraries that X11R6 Xt/Xaw programs need.
1626 ac_save_LDFLAGS="$LDFLAGS"
1627 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1628 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1629 # check for ICE first), but we must link in the order -lSM -lICE or
1630 # we get undefined symbols. So assume we have SM if we have ICE.
1631 # These have to be linked with before -lX11, unlike the other
1632 # libraries we check for below, so use a different variable.
1633 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1634 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1635 echo "configure:1636: checking for IceConnectionNumber in -lICE" >&5
1636 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1639 else
1640 ac_save_LIBS="$LIBS"
1641 LIBS="-lICE $LIBS"
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* Override any gcc2 internal prototype to avoid an error. */
1646 /* We use char because int might match the return type of a gcc2
1647 builtin and then its argument prototype would still apply. */
1648 char IceConnectionNumber();
1650 int main() {
1651 IceConnectionNumber()
1652 ; return 0; }
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1655 rm -rf conftest*
1656 eval "ac_cv_lib_$ac_lib_var=yes"
1657 else
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1660 rm -rf conftest*
1661 eval "ac_cv_lib_$ac_lib_var=no"
1663 rm -f conftest*
1664 LIBS="$ac_save_LIBS"
1667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1670 else
1671 echo "$ac_t""no" 1>&6
1674 LDFLAGS="$ac_save_LDFLAGS"
1678 for ac_prog in 'bison -y' byacc
1680 # Extract the first word of "$ac_prog", so it can be a program name with args.
1681 set dummy $ac_prog; ac_word=$2
1682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_word" >&5
1684 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 if test -n "$YACC"; then
1688 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1689 else
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1691 for ac_dir in $PATH; do
1692 test -z "$ac_dir" && ac_dir=.
1693 if test -f $ac_dir/$ac_word; then
1694 ac_cv_prog_YACC="$ac_prog"
1695 break
1697 done
1698 IFS="$ac_save_ifs"
1701 YACC="$ac_cv_prog_YACC"
1702 if test -n "$YACC"; then
1703 echo "$ac_t""$YACC" 1>&6
1704 else
1705 echo "$ac_t""no" 1>&6
1708 test -n "$YACC" && break
1709 done
1710 test -n "$YACC" || YACC="yacc"
1712 # Extract the first word of "flex", so it can be a program name with args.
1713 set dummy flex; ac_word=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 if test -n "$LEX"; then
1720 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1721 else
1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1723 for ac_dir in $PATH; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_LEX="flex"
1727 break
1729 done
1730 IFS="$ac_save_ifs"
1731 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1734 LEX="$ac_cv_prog_LEX"
1735 if test -n "$LEX"; then
1736 echo "$ac_t""$LEX" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1741 if test -z "$LEXLIB"
1742 then
1743 case "$LEX" in
1744 flex*) ac_lib=fl ;;
1745 *) ac_lib=l ;;
1746 esac
1747 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1748 echo "configure:1749: checking for yywrap in -l$ac_lib" >&5
1749 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 ac_save_LIBS="$LIBS"
1754 LIBS="-l$ac_lib $LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1761 char yywrap();
1763 int main() {
1764 yywrap()
1765 ; return 0; }
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768 rm -rf conftest*
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1770 else
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 rm -rf conftest*
1774 eval "ac_cv_lib_$ac_lib_var=no"
1776 rm -f conftest*
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 LEXLIB="-l$ac_lib"
1783 else
1784 echo "$ac_t""no" 1>&6
1789 # Extract the first word of "ranlib", so it can be a program name with args.
1790 set dummy ranlib; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5
1793 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795 else
1796 if test -n "$RANLIB"; then
1797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1798 else
1799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1800 for ac_dir in $PATH; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_RANLIB="ranlib"
1804 break
1806 done
1807 IFS="$ac_save_ifs"
1808 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1811 RANLIB="$ac_cv_prog_RANLIB"
1812 if test -n "$RANLIB"; then
1813 echo "$ac_t""$RANLIB" 1>&6
1814 else
1815 echo "$ac_t""no" 1>&6
1818 # Find a good install program. We prefer a C program (faster),
1819 # so one script is as good as another. But avoid the broken or
1820 # incompatible versions:
1821 # SysV /etc/install, /usr/sbin/install
1822 # SunOS /usr/etc/install
1823 # IRIX /sbin/install
1824 # AIX /bin/install
1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1827 # ./install, which can be erroneously created by make from ./install.sh.
1828 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1829 echo "configure:1830: checking for a BSD compatible install" >&5
1830 if test -z "$INSTALL"; then
1831 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1835 for ac_dir in $PATH; do
1836 # Account for people who put trailing slashes in PATH elements.
1837 case "$ac_dir/" in
1838 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1840 # OSF1 and SCO ODT 3.0 have their own names for install.
1841 for ac_prog in ginstall installbsd scoinst install; do
1842 if test -f $ac_dir/$ac_prog; then
1843 if test $ac_prog = install &&
1844 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1845 # AIX install. It has an incompatible calling convention.
1846 # OSF/1 installbsd also uses dspmsg, but is usable.
1848 else
1849 ac_cv_path_install="$ac_dir/$ac_prog -c"
1850 break 2
1853 done
1855 esac
1856 done
1857 IFS="$ac_save_IFS"
1860 if test "${ac_cv_path_install+set}" = set; then
1861 INSTALL="$ac_cv_path_install"
1862 else
1863 # As a last resort, use the slow shell script. We don't cache a
1864 # path for INSTALL within a source directory, because that will
1865 # break other packages using the cache if that directory is
1866 # removed, or if the path is relative.
1867 INSTALL="$ac_install_sh"
1870 echo "$ac_t""$INSTALL" 1>&6
1872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1873 # It thinks the first close brace ends the variable substitution.
1874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ln -s works" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 rm -f conftestdata
1884 if ln -s X conftestdata 2>/dev/null
1885 then
1886 rm -f conftestdata
1887 ac_cv_prog_LN_S="ln -s"
1888 else
1889 ac_cv_prog_LN_S=ln
1892 LN_S="$ac_cv_prog_LN_S"
1893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1894 echo "$ac_t""yes" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1899 # Extract the first word of "c2man", so it can be a program name with args.
1900 set dummy c2man; ac_word=$2
1901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1902 echo "configure:1903: checking for $ac_word" >&5
1903 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1905 else
1906 if test -n "$C2MAN"; then
1907 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1908 else
1909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1910 for ac_dir in $PATH; do
1911 test -z "$ac_dir" && ac_dir=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_prog_C2MAN="c2man"
1914 break
1916 done
1917 IFS="$ac_save_ifs"
1918 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1921 C2MAN="$ac_cv_prog_C2MAN"
1922 if test -n "$C2MAN"; then
1923 echo "$ac_t""$C2MAN" 1>&6
1924 else
1925 echo "$ac_t""no" 1>&6
1930 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1931 echo "configure:1932: checking for i386_set_ldt in -li386" >&5
1932 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1935 else
1936 ac_save_LIBS="$LIBS"
1937 LIBS="-li386 $LIBS"
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 /* Override any gcc2 internal prototype to avoid an error. */
1942 /* We use char because int might match the return type of a gcc2
1943 builtin and then its argument prototype would still apply. */
1944 char i386_set_ldt();
1946 int main() {
1947 i386_set_ldt()
1948 ; return 0; }
1950 if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1951 rm -rf conftest*
1952 eval "ac_cv_lib_$ac_lib_var=yes"
1953 else
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1956 rm -rf conftest*
1957 eval "ac_cv_lib_$ac_lib_var=no"
1959 rm -f conftest*
1960 LIBS="$ac_save_LIBS"
1963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1967 cat >> confdefs.h <<EOF
1968 #define $ac_tr_lib 1
1971 LIBS="-li386 $LIBS"
1973 else
1974 echo "$ac_t""no" 1>&6
1977 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
1978 echo "configure:1979: checking for iswalnum in -lw" >&5
1979 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
1980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983 ac_save_LIBS="$LIBS"
1984 LIBS="-lw $LIBS"
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 /* Override any gcc2 internal prototype to avoid an error. */
1989 /* We use char because int might match the return type of a gcc2
1990 builtin and then its argument prototype would still apply. */
1991 char iswalnum();
1993 int main() {
1994 iswalnum()
1995 ; return 0; }
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1998 rm -rf conftest*
1999 eval "ac_cv_lib_$ac_lib_var=yes"
2000 else
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 rm -rf conftest*
2004 eval "ac_cv_lib_$ac_lib_var=no"
2006 rm -f conftest*
2007 LIBS="$ac_save_LIBS"
2010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2012 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2014 cat >> confdefs.h <<EOF
2015 #define $ac_tr_lib 1
2018 LIBS="-lw $LIBS"
2020 else
2021 echo "$ac_t""no" 1>&6
2024 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2025 echo "configure:2026: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2026 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 ac_save_LIBS="$LIBS"
2031 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2038 char XF86DGAQueryExtension();
2040 int main() {
2041 XF86DGAQueryExtension()
2042 ; return 0; }
2044 if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2045 rm -rf conftest*
2046 eval "ac_cv_lib_$ac_lib_var=yes"
2047 else
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2050 rm -rf conftest*
2051 eval "ac_cv_lib_$ac_lib_var=no"
2053 rm -f conftest*
2054 LIBS="$ac_save_LIBS"
2057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2059 cat >> confdefs.h <<\EOF
2060 #define HAVE_LIBXXF86DGA 1
2062 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2063 else
2064 echo "$ac_t""no" 1>&6
2068 for ac_hdr in sys/soundcard.h machine/soundcard.h
2070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_hdr" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 #include <$ac_hdr>
2081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082 { (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083 ac_err=`grep -v '^ *+' conftest.out`
2084 if test -z "$ac_err"; then
2085 rm -rf conftest*
2086 eval "ac_cv_header_$ac_safe=yes"
2087 else
2088 echo "$ac_err" >&5
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2091 rm -rf conftest*
2092 eval "ac_cv_header_$ac_safe=no"
2094 rm -f conftest*
2096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2099 cat >> confdefs.h <<EOF
2100 #define $ac_tr_hdr 1
2103 else
2104 echo "$ac_t""no" 1>&6
2106 done
2109 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2110 echo "configure:2111: checking "for Open Sound System"" >&5
2111 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2118 #ifdef HAVE_SYS_SOUNDCARD_H
2119 #include <sys/soundcard.h>
2120 #endif
2121 #ifdef HAVE_MACHINE_SOUNDCARD_H
2122 #include <machine/soundcard.h>
2123 #endif
2125 int main() {
2128 /* check for one of the Open Sound System specific SNDCTL_ defines */
2129 #if !defined(SNDCTL_DSP_STEREO)
2130 #error No open sound system
2131 #endif
2133 ; return 0; }
2135 if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2136 rm -rf conftest*
2137 ac_cv_c_opensoundsystem="yes"
2138 else
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2141 rm -rf conftest*
2142 ac_cv_c_opensoundsystem="no"
2144 rm -f conftest*
2147 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2149 if test "$ac_cv_c_opensoundsystem" = "yes"
2150 then
2151 cat >> confdefs.h <<\EOF
2152 #define HAVE_OSS 1
2158 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2159 echo "configure:2160: checking "for union semun"" >&5
2160 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 #include <sys/types.h>
2167 #include <sys/sem.h>
2168 int main() {
2169 union semun foo
2170 ; return 0; }
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2173 rm -rf conftest*
2174 ac_cv_c_union_semun="yes"
2175 else
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 rm -rf conftest*
2179 ac_cv_c_union_semun="no"
2181 rm -f conftest*
2184 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2185 if test "$ac_cv_c_union_semun" = "yes"
2186 then
2187 cat >> confdefs.h <<\EOF
2188 #define HAVE_UNION_SEMUN 1
2193 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2196 if test "x${GCC}" = "xyes"
2197 then
2198 CFLAGS="$CFLAGS -Wall"
2199 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2200 echo "configure:2201: checking "for gcc strength-reduce bug"" >&5
2201 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 if test "$cross_compiling" = yes; then
2205 ac_cv_c_gcc_strength_bug="yes"
2206 else
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2211 int main(void) {
2212 static int Array[3];
2213 unsigned int B = 3;
2214 int i;
2215 for(i=0; i<B; i++) Array[i] = i - 3;
2216 exit( Array[1] != -2 );
2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2220 then
2221 ac_cv_c_gcc_strength_bug="no"
2222 else
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 rm -fr conftest*
2226 ac_cv_c_gcc_strength_bug="yes"
2228 rm -fr conftest*
2233 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2234 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2235 then
2236 CFLAGS="$CFLAGS -fno-strength-reduce"
2241 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2242 echo "configure:2243: checking "whether external symbols need an underscore prefix"" >&5
2243 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2245 else
2246 saved_libs=$LIBS
2247 LIBS="conftest_asm.s $LIBS"
2248 cat > conftest_asm.s <<EOF
2249 .globl _ac_test
2250 _ac_test:
2251 .long 0
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 extern int ac_test;
2257 int main() {
2258 if (ac_test) return 1
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2262 rm -rf conftest*
2263 ac_cv_c_extern_prefix="yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 ac_cv_c_extern_prefix="no"
2270 rm -f conftest*
2271 LIBS=$saved_libs
2274 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2275 if test "$ac_cv_c_extern_prefix" = "yes"
2276 then
2277 cat >> confdefs.h <<\EOF
2278 #define NEED_UNDERSCORE_PREFIX 1
2284 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2285 echo "configure:2286: checking "whether assembler accepts .string"" >&5
2286 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 saved_libs=$LIBS
2290 LIBS="conftest_asm.s $LIBS"
2291 cat > conftest_asm.s <<EOF
2292 .string "test"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2298 int main() {
2300 ; return 0; }
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2303 rm -rf conftest*
2304 ac_cv_c_asm_string="yes"
2305 else
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 rm -rf conftest*
2309 ac_cv_c_asm_string="no"
2311 rm -f conftest*
2312 LIBS=$saved_libs
2315 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2316 if test "$ac_cv_c_asm_string" = "yes"
2317 then
2318 cat >> confdefs.h <<\EOF
2319 #define HAVE_ASM_STRING 1
2325 DLLFLAGS=""
2326 if test "$LIB_TARGET" = "libwine.so.1.0"
2327 then
2328 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2329 echo "configure:2330: checking "whether we can build a dll"" >&5
2330 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 saved_cflags=$CFLAGS
2334 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2339 int main() {
2340 return 1
2341 ; return 0; }
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2344 rm -rf conftest*
2345 ac_cv_c_dll="yes"
2346 else
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 ac_cv_c_dll="no"
2352 rm -f conftest*
2353 CFLAGS=$saved_cflags
2357 echo "$ac_t""$ac_cv_c_dll" 1>&6
2358 if test "$ac_cv_c_dll" = "yes"
2359 then
2360 DLLFLAGS="-fPIC"
2361 else
2362 LIB_TARGET="libwine.a"
2368 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2369 echo "configure:2370: checking "for reentrant X libraries"" >&5
2370 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372 else
2373 if test "x$with_reentrant_x" = "xno"
2374 then
2375 wine_cv_x_reentrant=no
2376 else
2377 libX11_ckeck=none
2378 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2379 if test -e $dir/libX11.so; then
2380 libX11_check="-D $dir/libX11.so"
2381 break 1
2383 if test -e $dir/libX11.a; then
2384 libX11_check="$dir/libX11.a"
2385 break 1
2387 done
2388 if test "$libX11_check" != "none"; then
2389 if nm $libX11_check | grep -q __errno_location; then
2390 wine_cv_x_reentrant=yes
2391 else
2392 wine_cv_x_reentrant=no
2394 else
2395 wine_cv_x_reentrant=unknown
2400 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2401 if test "$wine_cv_x_reentrant" = "no"
2402 then
2403 cat >> confdefs.h <<\EOF
2404 #define NO_REENTRANT_X11 1
2410 for ac_func in clone getpagesize memmove sigaltstack strerror tcgetattr timegm usleep wait4 waitpid
2412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_func" >&5
2414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2416 else
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char $ac_func(); below. */
2422 #include <assert.h>
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2426 char $ac_func();
2428 int main() {
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2434 choke me
2435 #else
2436 $ac_func();
2437 #endif
2439 ; return 0; }
2441 if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2442 rm -rf conftest*
2443 eval "ac_cv_func_$ac_func=yes"
2444 else
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 rm -rf conftest*
2448 eval "ac_cv_func_$ac_func=no"
2450 rm -f conftest*
2453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2456 cat >> confdefs.h <<EOF
2457 #define $ac_tr_func 1
2460 else
2461 echo "$ac_t""no" 1>&6
2463 done
2465 for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h sys/cdio.h sys/filio.h
2467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_hdr" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2472 else
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <$ac_hdr>
2478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2479 { (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2480 ac_err=`grep -v '^ *+' conftest.out`
2481 if test -z "$ac_err"; then
2482 rm -rf conftest*
2483 eval "ac_cv_header_$ac_safe=yes"
2484 else
2485 echo "$ac_err" >&5
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2488 rm -rf conftest*
2489 eval "ac_cv_header_$ac_safe=no"
2491 rm -f conftest*
2493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2496 cat >> confdefs.h <<EOF
2497 #define $ac_tr_hdr 1
2500 else
2501 echo "$ac_t""no" 1>&6
2503 done
2505 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2506 echo "configure:2507: checking whether stat file-mode macros are broken" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <sys/types.h>
2514 #include <sys/stat.h>
2516 #if defined(S_ISBLK) && defined(S_IFDIR)
2517 # if S_ISBLK (S_IFDIR)
2518 You lose.
2519 # endif
2520 #endif
2522 #if defined(S_ISBLK) && defined(S_IFCHR)
2523 # if S_ISBLK (S_IFCHR)
2524 You lose.
2525 # endif
2526 #endif
2528 #if defined(S_ISLNK) && defined(S_IFREG)
2529 # if S_ISLNK (S_IFREG)
2530 You lose.
2531 # endif
2532 #endif
2534 #if defined(S_ISSOCK) && defined(S_IFREG)
2535 # if S_ISSOCK (S_IFREG)
2536 You lose.
2537 # endif
2538 #endif
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "You lose" >/dev/null 2>&1; then
2543 rm -rf conftest*
2544 ac_cv_header_stat_broken=yes
2545 else
2546 rm -rf conftest*
2547 ac_cv_header_stat_broken=no
2549 rm -f conftest*
2553 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2554 if test $ac_cv_header_stat_broken = yes; then
2555 cat >> confdefs.h <<\EOF
2556 #define STAT_MACROS_BROKEN 1
2561 echo $ac_n "checking for working const""... $ac_c" 1>&6
2562 echo "configure:2563: checking for working const" >&5
2563 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2565 else
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2570 int main() {
2572 /* Ultrix mips cc rejects this. */
2573 typedef int charset[2]; const charset x;
2574 /* SunOS 4.1.1 cc rejects this. */
2575 char const *const *ccp;
2576 char **p;
2577 /* NEC SVR4.0.2 mips cc rejects this. */
2578 struct point {int x, y;};
2579 static struct point const zero = {0,0};
2580 /* AIX XL C 1.02.0.0 rejects this.
2581 It does not let you subtract one const X* pointer from another in an arm
2582 of an if-expression whose if-part is not a constant expression */
2583 const char *g = "string";
2584 ccp = &g + (g ? g-g : 0);
2585 /* HPUX 7.0 cc rejects these. */
2586 ++ccp;
2587 p = (char**) ccp;
2588 ccp = (char const *const *) p;
2589 { /* SCO 3.2v4 cc rejects this. */
2590 char *t;
2591 char const *s = 0 ? (char *) 0 : (char const *) 0;
2593 *t++ = 0;
2595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2596 int x[] = {25, 17};
2597 const int *foo = &x[0];
2598 ++foo;
2600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2601 typedef const int *iptr;
2602 iptr p = 0;
2603 ++p;
2605 { /* AIX XL C 1.02.0.0 rejects this saying
2606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2607 struct s { int j; const int *ap[3]; };
2608 struct s *b; b->j = 5;
2610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2611 const int foo = 10;
2614 ; return 0; }
2616 if { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2617 rm -rf conftest*
2618 ac_cv_c_const=yes
2619 else
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2622 rm -rf conftest*
2623 ac_cv_c_const=no
2625 rm -f conftest*
2628 echo "$ac_t""$ac_cv_c_const" 1>&6
2629 if test $ac_cv_c_const = no; then
2630 cat >> confdefs.h <<\EOF
2631 #define const
2636 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2637 echo "configure:2638: checking for ANSI C header files" >&5
2638 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <stdlib.h>
2645 #include <stdarg.h>
2646 #include <string.h>
2647 #include <float.h>
2649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2650 { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2651 ac_err=`grep -v '^ *+' conftest.out`
2652 if test -z "$ac_err"; then
2653 rm -rf conftest*
2654 ac_cv_header_stdc=yes
2655 else
2656 echo "$ac_err" >&5
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -rf conftest*
2660 ac_cv_header_stdc=no
2662 rm -f conftest*
2664 if test $ac_cv_header_stdc = yes; then
2665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <string.h>
2671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672 egrep "memchr" >/dev/null 2>&1; then
2674 else
2675 rm -rf conftest*
2676 ac_cv_header_stdc=no
2678 rm -f conftest*
2682 if test $ac_cv_header_stdc = yes; then
2683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <stdlib.h>
2689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2690 egrep "free" >/dev/null 2>&1; then
2692 else
2693 rm -rf conftest*
2694 ac_cv_header_stdc=no
2696 rm -f conftest*
2700 if test $ac_cv_header_stdc = yes; then
2701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2702 if test "$cross_compiling" = yes; then
2704 else
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 #include <ctype.h>
2709 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2710 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2712 int main () { int i; for (i = 0; i < 256; i++)
2713 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2714 exit (0); }
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2718 then
2720 else
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -fr conftest*
2724 ac_cv_header_stdc=no
2726 rm -fr conftest*
2732 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2733 if test $ac_cv_header_stdc = yes; then
2734 cat >> confdefs.h <<\EOF
2735 #define STDC_HEADERS 1
2740 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2741 echo "configure:2742: checking for size_t" >&5
2742 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <sys/types.h>
2749 #if STDC_HEADERS
2750 #include <stdlib.h>
2751 #include <stddef.h>
2752 #endif
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2756 rm -rf conftest*
2757 ac_cv_type_size_t=yes
2758 else
2759 rm -rf conftest*
2760 ac_cv_type_size_t=no
2762 rm -f conftest*
2765 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2766 if test $ac_cv_type_size_t = no; then
2767 cat >> confdefs.h <<\EOF
2768 #define size_t unsigned
2773 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2774 echo "configure:2775: checking size of long long" >&5
2775 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778 if test "$cross_compiling" = yes; then
2779 ac_cv_sizeof_long_long=0
2780 else
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 #include <stdio.h>
2785 main()
2787 FILE *f=fopen("conftestval", "w");
2788 if (!f) exit(1);
2789 fprintf(f, "%d\n", sizeof(long long));
2790 exit(0);
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2794 then
2795 ac_cv_sizeof_long_long=`cat conftestval`
2796 else
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 rm -fr conftest*
2800 ac_cv_sizeof_long_long=0
2802 rm -fr conftest*
2806 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2807 cat >> confdefs.h <<EOF
2808 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2814 if test "$ac_cv_header_sys_vfs_h" = "yes"
2815 then
2816 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
2817 echo "configure:2818: checking "whether sys/vfs.h defines statfs"" >&5
2818 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2825 #include <sys/types.h>
2826 #ifdef HAVE_SYS_PARAM_H
2827 # include <sys/param.h>
2828 #endif
2829 #include <sys/vfs.h>
2831 int main() {
2833 struct statfs stfs;
2835 memset(&stfs,0,sizeof(stfs));
2837 ; return 0; }
2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2840 rm -rf conftest*
2841 wine_cv_sys_vfs_has_statfs=yes
2842 else
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 rm -rf conftest*
2846 wine_cv_sys_vfs_has_statfs=no
2849 rm -f conftest*
2853 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
2854 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
2855 then
2856 cat >> confdefs.h <<\EOF
2857 #define STATFS_DEFINED_BY_SYS_VFS 1
2863 if test "$ac_cv_header_sys_statfs_h" = "yes"
2864 then
2865 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
2866 echo "configure:2867: checking "whether sys/statfs.h defines statfs"" >&5
2867 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2869 else
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2874 #include <sys/types.h>
2875 #ifdef HAVE_SYS_PARAM_H
2876 # include <sys/param.h>
2877 #endif
2878 #include <sys/statfs.h>
2880 int main() {
2882 struct statfs stfs;
2884 ; return 0; }
2886 if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2887 rm -rf conftest*
2888 wine_cv_sys_statfs_has_statfs=yes
2889 else
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -rf conftest*
2893 wine_cv_sys_statfs_has_statfs=no
2896 rm -f conftest*
2900 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
2901 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
2902 then
2903 cat >> confdefs.h <<\EOF
2904 #define STATFS_DEFINED_BY_SYS_STATFS 1
2910 if test "$ac_cv_header_sys_mount_h" = "yes"
2911 then
2912 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
2913 echo "configure:2914: checking "whether sys/mount.h defines statfs"" >&5
2914 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2916 else
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2921 #include <sys/types.h>
2922 #ifdef HAVE_SYS_PARAM_H
2923 # include <sys/param.h>
2924 #endif
2925 #include <sys/mount.h>
2927 int main() {
2929 struct statfs stfs;
2931 ; return 0; }
2933 if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2934 rm -rf conftest*
2935 wine_cv_sys_mount_has_statfs=yes
2936 else
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 rm -rf conftest*
2940 wine_cv_sys_mount_has_statfs=no
2943 rm -f conftest*
2947 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
2948 if test "$wine_cv_sys_mount_has_statfs" = "yes"
2949 then
2950 cat >> confdefs.h <<\EOF
2951 #define STATFS_DEFINED_BY_SYS_MOUNT 1
2958 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
2959 echo "configure:2960: checking "for statfs.f_bfree"" >&5
2960 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963 if test "x$statfs_bfree" = "xno"
2964 then
2965 wine_cv_statfs_bfree=no
2966 else
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2971 #include <sys/types.h>
2972 #ifdef HAVE_SYS_PARAM_H
2973 # include <sys/param.h>
2974 #endif
2975 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
2976 # include <sys/mount.h>
2977 #else
2978 # ifdef STATFS_DEFINED_BY_SYS_VFS
2979 # include <sys/vfs.h>
2980 # else
2981 # ifdef STATFS_DEFINED_BY_SYS_STATFS
2982 # include <sys/statfs.h>
2983 # endif
2984 # endif
2985 #endif
2987 int main() {
2989 struct statfs stfs;
2991 stfs.f_bfree++;
2993 ; return 0; }
2995 if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2996 rm -rf conftest*
2997 wine_cv_statfs_bfree=yes
2998 else
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 rm -rf conftest*
3002 wine_cv_statfs_bfree=no
3005 rm -f conftest*
3009 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3010 if test "$wine_cv_statfs_bfree" = "yes"
3011 then
3012 cat >> confdefs.h <<\EOF
3013 #define STATFS_HAS_BFREE 1
3018 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3019 echo "configure:3020: checking "for statfs.f_bavail"" >&5
3020 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 if test "x$statfs_bavail" = "xno"
3024 then
3025 wine_cv_statfs_bavail=no
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3031 #include <sys/types.h>
3032 #ifdef HAVE_SYS_PARAM_H
3033 # include <sys/param.h>
3034 #endif
3035 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3036 # include <sys/mount.h>
3037 #else
3038 # ifdef STATFS_DEFINED_BY_SYS_VFS
3039 # include <sys/vfs.h>
3040 # else
3041 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3042 # include <sys/statfs.h>
3043 # endif
3044 # endif
3045 #endif
3047 int main() {
3049 struct statfs stfs;
3051 stfs.f_bavail++;
3053 ; return 0; }
3055 if { (eval echo configure:3056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 rm -rf conftest*
3057 wine_cv_statfs_bavail=yes
3058 else
3059 echo "configure: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 rm -rf conftest*
3062 wine_cv_statfs_bavail=no
3065 rm -f conftest*
3069 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3070 if test "$wine_cv_statfs_bavail" = "yes"
3071 then
3072 cat >> confdefs.h <<\EOF
3073 #define STATFS_HAS_BAVAIL 1
3079 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3080 echo "configure:3081: checking "for working sigaltstack"" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084 if test "$cross_compiling" = yes; then
3085 ac_cv_c_working_sigaltstack="no"
3087 else
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3092 #include <stdio.h>
3093 #include <time.h> /* <sys/time.h> ? bad magic without end */
3094 #include <sys/types.h>
3095 #include <sys/signal.h>
3096 #ifdef HAVE_SYS_PARAM_H
3097 # include <sys/param.h>
3098 #endif
3099 #ifdef HAVE_SYSCALL_H
3100 # include <syscall.h>
3101 #else
3102 # ifdef HAVE_SYS_SYSCALL_H
3103 # include <sys/syscall.h>
3104 # endif
3105 #endif
3107 unsigned char *xaltstack;
3110 main(int argc,char **argv) {
3111 struct sigaltstack ss;
3113 xaltstack = malloc(16384);
3114 ss.ss_sp = xaltstack;
3115 ss.ss_size = 16384;
3116 ss.ss_flags = 0;
3117 if (sigaltstack(&ss, NULL) < 0) {
3118 /* this catches the glibc case */
3119 perror("sigaltstack");
3120 return (1); /* aka exit(1) aka fail */
3122 /* assume it works. */
3123 return 0; /* OK */
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3128 then
3129 ac_cv_c_working_sigaltstack="yes"
3130 else
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 rm -fr conftest*
3134 ac_cv_c_working_sigaltstack="no"
3136 rm -fr conftest*
3141 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3143 if test "$ac_cv_c_working_sigaltstack" = "yes"
3144 then
3145 cat >> confdefs.h <<\EOF
3146 #define HAVE_WORKING_SIGALTSTACK 1
3153 MAKE_RULES=Make.rules
3156 trap '' 1 2 15
3157 cat > confcache <<\EOF
3158 # This file is a shell script that caches the results of configure
3159 # tests run on this system so they can be shared between configure
3160 # scripts and configure runs. It is not useful on other systems.
3161 # If it contains results you don't want to keep, you may remove or edit it.
3163 # By default, configure uses ./config.cache as the cache file,
3164 # creating it if it does not exist already. You can give configure
3165 # the --cache-file=FILE option to use a different cache file; that is
3166 # what configure does when it calls configure scripts in
3167 # subdirectories, so they share the cache.
3168 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3169 # config.status only pays attention to the cache file if you give it the
3170 # --recheck option to rerun configure.
3173 # The following way of writing the cache mishandles newlines in values,
3174 # but we know of no workaround that is simple, portable, and efficient.
3175 # So, don't put newlines in cache variables' values.
3176 # Ultrix sh set writes to stderr and can't be redirected directly,
3177 # and sets the high bit in the cache file unless we assign to the vars.
3178 (set) 2>&1 |
3179 case `(ac_space=' '; set) 2>&1` in
3180 *ac_space=\ *)
3181 # `set' does not quote correctly, so add quotes (double-quote substitution
3182 # turns \\\\ into \\, and sed turns \\ into \).
3183 sed -n \
3184 -e "s/'/'\\\\''/g" \
3185 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3188 # `set' quotes correctly as required by POSIX, so do not add quotes.
3189 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3191 esac >> confcache
3192 if cmp -s $cache_file confcache; then
3194 else
3195 if test -w $cache_file; then
3196 echo "updating cache $cache_file"
3197 cat confcache > $cache_file
3198 else
3199 echo "not updating unwritable cache $cache_file"
3202 rm -f confcache
3204 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3206 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3207 # Let make expand exec_prefix.
3208 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3210 # Any assignment to VPATH causes Sun make to only execute
3211 # the first set of double-colon rules, so remove it if not needed.
3212 # If there is a colon in the path, we need to keep it.
3213 if test "x$srcdir" = x.; then
3214 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3217 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3219 DEFS=-DHAVE_CONFIG_H
3221 # Without the "./", some shells look in PATH for config.status.
3222 : ${CONFIG_STATUS=./config.status}
3224 echo creating $CONFIG_STATUS
3225 rm -f $CONFIG_STATUS
3226 cat > $CONFIG_STATUS <<EOF
3227 #! /bin/sh
3228 # Generated automatically by configure.
3229 # Run this file to recreate the current configuration.
3230 # This directory was configured as follows,
3231 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3233 # $0 $ac_configure_args
3235 # Compiler output produced by configure, useful for debugging
3236 # configure, is in ./config.log if it exists.
3238 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3239 for ac_option
3241 case "\$ac_option" in
3242 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3243 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3244 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3245 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3246 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3247 exit 0 ;;
3248 -help | --help | --hel | --he | --h)
3249 echo "\$ac_cs_usage"; exit 0 ;;
3250 *) echo "\$ac_cs_usage"; exit 1 ;;
3251 esac
3252 done
3254 ac_given_srcdir=$srcdir
3255 ac_given_INSTALL="$INSTALL"
3257 trap 'rm -fr `echo "
3258 Make.rules
3259 Makefile
3260 controls/Makefile
3261 debugger/Makefile
3262 documentation/Makefile
3263 files/Makefile
3264 graphics/Makefile
3265 graphics/metafiledrv/Makefile
3266 graphics/win16drv/Makefile
3267 graphics/x11drv/Makefile
3268 if1632/Makefile
3269 ipc/Makefile
3270 library/Makefile
3271 libtest/Makefile
3272 loader/Makefile
3273 loader/ne/Makefile
3274 memory/Makefile
3275 misc/Makefile
3276 miscemu/Makefile
3277 msdos/Makefile
3278 multimedia/Makefile
3279 objects/Makefile
3280 ole/Makefile
3281 programs/Makefile
3282 programs/clock/Makefile
3283 programs/notepad/Makefile
3284 programs/progman/Makefile
3285 programs/regtest/Makefile
3286 programs/view/Makefile
3287 programs/winhelp/Makefile
3288 programs/winver/Makefile
3289 rc/Makefile
3290 relay32/Makefile
3291 resources/Makefile
3292 scheduler/Makefile
3293 tools/Makefile
3294 tsx11/Makefile
3295 win32/Makefile
3296 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3298 cat >> $CONFIG_STATUS <<EOF
3300 # Protect against being on the right side of a sed subst in config.status.
3301 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3302 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3303 $ac_vpsub
3304 $extrasub
3305 s%@CFLAGS@%$CFLAGS%g
3306 s%@CPPFLAGS@%$CPPFLAGS%g
3307 s%@CXXFLAGS@%$CXXFLAGS%g
3308 s%@DEFS@%$DEFS%g
3309 s%@LDFLAGS@%$LDFLAGS%g
3310 s%@LIBS@%$LIBS%g
3311 s%@exec_prefix@%$exec_prefix%g
3312 s%@prefix@%$prefix%g
3313 s%@program_transform_name@%$program_transform_name%g
3314 s%@bindir@%$bindir%g
3315 s%@sbindir@%$sbindir%g
3316 s%@libexecdir@%$libexecdir%g
3317 s%@datadir@%$datadir%g
3318 s%@sysconfdir@%$sysconfdir%g
3319 s%@sharedstatedir@%$sharedstatedir%g
3320 s%@localstatedir@%$localstatedir%g
3321 s%@libdir@%$libdir%g
3322 s%@includedir@%$includedir%g
3323 s%@oldincludedir@%$oldincludedir%g
3324 s%@infodir@%$infodir%g
3325 s%@mandir@%$mandir%g
3326 s%@PROGEXT@%$PROGEXT%g
3327 s%@MAIN_TARGET@%$MAIN_TARGET%g
3328 s%@LIB_TARGET@%$LIB_TARGET%g
3329 s%@OPTIONS@%$OPTIONS%g
3330 s%@SET_MAKE@%$SET_MAKE%g
3331 s%@CC@%$CC%g
3332 s%@CPP@%$CPP%g
3333 s%@X_CFLAGS@%$X_CFLAGS%g
3334 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3335 s%@X_LIBS@%$X_LIBS%g
3336 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3337 s%@YACC@%$YACC%g
3338 s%@LEX@%$LEX%g
3339 s%@LEXLIB@%$LEXLIB%g
3340 s%@RANLIB@%$RANLIB%g
3341 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3342 s%@INSTALL_DATA@%$INSTALL_DATA%g
3343 s%@LN_S@%$LN_S%g
3344 s%@C2MAN@%$C2MAN%g
3345 s%@DLLFLAGS@%$DLLFLAGS%g
3346 /@MAKE_RULES@/r $MAKE_RULES
3347 s%@MAKE_RULES@%%g
3349 CEOF
3352 cat >> $CONFIG_STATUS <<\EOF
3354 # Split the substitutions into bite-sized pieces for seds with
3355 # small command number limits, like on Digital OSF/1 and HP-UX.
3356 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3357 ac_file=1 # Number of current file.
3358 ac_beg=1 # First line for current file.
3359 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3360 ac_more_lines=:
3361 ac_sed_cmds=""
3362 while $ac_more_lines; do
3363 if test $ac_beg -gt 1; then
3364 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3365 else
3366 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3368 if test ! -s conftest.s$ac_file; then
3369 ac_more_lines=false
3370 rm -f conftest.s$ac_file
3371 else
3372 if test -z "$ac_sed_cmds"; then
3373 ac_sed_cmds="sed -f conftest.s$ac_file"
3374 else
3375 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3377 ac_file=`expr $ac_file + 1`
3378 ac_beg=$ac_end
3379 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3381 done
3382 if test -z "$ac_sed_cmds"; then
3383 ac_sed_cmds=cat
3387 cat >> $CONFIG_STATUS <<EOF
3389 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3390 Makefile
3391 controls/Makefile
3392 debugger/Makefile
3393 documentation/Makefile
3394 files/Makefile
3395 graphics/Makefile
3396 graphics/metafiledrv/Makefile
3397 graphics/win16drv/Makefile
3398 graphics/x11drv/Makefile
3399 if1632/Makefile
3400 ipc/Makefile
3401 library/Makefile
3402 libtest/Makefile
3403 loader/Makefile
3404 loader/ne/Makefile
3405 memory/Makefile
3406 misc/Makefile
3407 miscemu/Makefile
3408 msdos/Makefile
3409 multimedia/Makefile
3410 objects/Makefile
3411 ole/Makefile
3412 programs/Makefile
3413 programs/clock/Makefile
3414 programs/notepad/Makefile
3415 programs/progman/Makefile
3416 programs/regtest/Makefile
3417 programs/view/Makefile
3418 programs/winhelp/Makefile
3419 programs/winver/Makefile
3420 rc/Makefile
3421 relay32/Makefile
3422 resources/Makefile
3423 scheduler/Makefile
3424 tools/Makefile
3425 tsx11/Makefile
3426 win32/Makefile
3427 windows/Makefile "}
3429 cat >> $CONFIG_STATUS <<\EOF
3430 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3432 case "$ac_file" in
3433 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3434 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3435 *) ac_file_in="${ac_file}.in" ;;
3436 esac
3438 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3440 # Remove last slash and all that follows it. Not all systems have dirname.
3441 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3442 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3443 # The file is in a subdirectory.
3444 test ! -d "$ac_dir" && mkdir "$ac_dir"
3445 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3446 # A "../" for each directory in $ac_dir_suffix.
3447 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3448 else
3449 ac_dir_suffix= ac_dots=
3452 case "$ac_given_srcdir" in
3453 .) srcdir=.
3454 if test -z "$ac_dots"; then top_srcdir=.
3455 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3456 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3457 *) # Relative path.
3458 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3459 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3460 esac
3462 case "$ac_given_INSTALL" in
3463 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3464 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3465 esac
3467 echo creating "$ac_file"
3468 rm -f "$ac_file"
3469 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3470 case "$ac_file" in
3471 *Makefile*) ac_comsub="1i\\
3472 # $configure_input" ;;
3473 *) ac_comsub= ;;
3474 esac
3476 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3477 sed -e "$ac_comsub
3478 s%@configure_input@%$configure_input%g
3479 s%@srcdir@%$srcdir%g
3480 s%@top_srcdir@%$top_srcdir%g
3481 s%@INSTALL@%$INSTALL%g
3482 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3483 fi; done
3484 rm -f conftest.s*
3486 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3487 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3489 # ac_d sets the value in "#define NAME VALUE" lines.
3490 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3491 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3492 ac_dC='\3'
3493 ac_dD='%g'
3494 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3495 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3496 ac_uB='\([ ]\)%\1#\2define\3'
3497 ac_uC=' '
3498 ac_uD='\4%g'
3499 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3500 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3501 ac_eB='$%\1#\2define\3'
3502 ac_eC=' '
3503 ac_eD='%g'
3505 if test "${CONFIG_HEADERS+set}" != set; then
3507 cat >> $CONFIG_STATUS <<EOF
3508 CONFIG_HEADERS="include/config.h"
3510 cat >> $CONFIG_STATUS <<\EOF
3512 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3514 case "$ac_file" in
3515 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3516 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3517 *) ac_file_in="${ac_file}.in" ;;
3518 esac
3520 echo creating $ac_file
3522 rm -f conftest.frag conftest.in conftest.out
3523 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3524 cat $ac_file_inputs > conftest.in
3528 # Transform confdefs.h into a sed script conftest.vals that substitutes
3529 # the proper values into config.h.in to produce config.h. And first:
3530 # Protect against being on the right side of a sed subst in config.status.
3531 # Protect against being in an unquoted here document in config.status.
3532 rm -f conftest.vals
3533 cat > conftest.hdr <<\EOF
3534 s/[\\&%]/\\&/g
3535 s%[\\$`]%\\&%g
3536 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3537 s%ac_d%ac_u%gp
3538 s%ac_u%ac_e%gp
3540 sed -n -f conftest.hdr confdefs.h > conftest.vals
3541 rm -f conftest.hdr
3543 # This sed command replaces #undef with comments. This is necessary, for
3544 # example, in the case of _POSIX_SOURCE, which is predefined and required
3545 # on some systems where configure will not decide to define it.
3546 cat >> conftest.vals <<\EOF
3547 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3550 # Break up conftest.vals because some shells have a limit on
3551 # the size of here documents, and old seds have small limits too.
3553 rm -f conftest.tail
3554 while :
3556 ac_lines=`grep -c . conftest.vals`
3557 # grep -c gives empty output for an empty file on some AIX systems.
3558 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3559 # Write a limited-size here document to conftest.frag.
3560 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3561 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3562 echo 'CEOF
3563 sed -f conftest.frag conftest.in > conftest.out
3564 rm -f conftest.in
3565 mv conftest.out conftest.in
3566 ' >> $CONFIG_STATUS
3567 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3568 rm -f conftest.vals
3569 mv conftest.tail conftest.vals
3570 done
3571 rm -f conftest.vals
3573 cat >> $CONFIG_STATUS <<\EOF
3574 rm -f conftest.frag conftest.h
3575 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3576 cat conftest.in >> conftest.h
3577 rm -f conftest.in
3578 if cmp -s $ac_file conftest.h 2>/dev/null; then
3579 echo "$ac_file is unchanged"
3580 rm -f conftest.h
3581 else
3582 # Remove last slash and all that follows it. Not all systems have dirname.
3583 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3585 # The file is in a subdirectory.
3586 test ! -d "$ac_dir" && mkdir "$ac_dir"
3588 rm -f $ac_file
3589 mv conftest.h $ac_file
3591 fi; done
3594 cat >> $CONFIG_STATUS <<EOF
3597 cat >> $CONFIG_STATUS <<\EOF
3599 exit 0
3601 chmod +x $CONFIG_STATUS
3602 rm -fr confdefs* $ac_clean_files
3603 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3606 echo
3607 echo "Configure finished. Do 'make depend; make' to compile Wine."
3608 echo