Release 980927
[wine.git] / configure
blobeaece4d34d63cec97085d36bf5f744c89406792b
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 --disable-lib build the Wine without building libwine.a"
21 ac_help="$ac_help
22 --disable-debug compile out all debugging messages"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-reentrant-x Compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 # Maximum number of lines to put in a shell here document.
68 ac_max_here_lines=12
70 ac_prev=
71 for ac_option
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
86 # Accept the important Cygnus configure options, so we can diagnose typos.
88 case "$ac_option" in
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
154 Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
351 exit 0 ;;
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 nonopt="$ac_option"
406 esac
407 done
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424 exec 6>/dev/null
425 else
426 exec 6>&1
428 exec 5>./config.log
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449 done
451 # NLS nuisances.
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=controls/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
481 else
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
506 done
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511 else
512 echo "creating cache $cache_file"
513 > $cache_file
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527 ' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
531 else
532 ac_n= ac_c='\c' ac_t=
537 ac_aux_dir=
538 for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
548 done
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
558 LIBS="$LIBS -lm"
559 test -z "$PROGEXT" && PROGEXT=""
562 MAIN_TARGET=emu
563 LIB_TARGET=libwine.a
564 TRACE_MSGS=yes # the TRACE() macro
565 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
567 # Check whether --enable-emulator or --disable-emulator was given.
568 if test "${enable_emulator+set}" = set; then
569 enableval="$enable_emulator"
570 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
574 # Check whether --enable-dll or --disable-dll was given.
575 if test "${enable_dll+set}" = set; then
576 enableval="$enable_dll"
577 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
581 # Check whether --enable-lib or --disable-lib was given.
582 if test "${enable_lib+set}" = set; then
583 enableval="$enable_lib"
584 if test "$enableval" = "no"; then LIB_TARGET="\$(LIBOBJS)"; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval="$with_reentrant_x"
614 if test "$DEBUG_MSGS" = "no"
615 then
616 cat >> confdefs.h <<\EOF
617 #define NO_DEBUG_MSGS 1
620 cat >> confdefs.h <<\EOF
621 #define NO_TRACE_MSGS 1
624 else
625 if test "$TRACE_MSGS" = "no"
626 then
627 cat >> confdefs.h <<\EOF
628 #define NO_TRACE_MSGS 1
635 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
636 echo "configure:637: checking whether ${MAKE-make} sets \${MAKE}" >&5
637 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
638 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
640 else
641 cat > conftestmake <<\EOF
642 all:
643 @echo 'ac_maketemp="${MAKE}"'
645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
646 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
647 if test -n "$ac_maketemp"; then
648 eval ac_cv_prog_make_${ac_make}_set=yes
649 else
650 eval ac_cv_prog_make_${ac_make}_set=no
652 rm -f conftestmake
654 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
655 echo "$ac_t""yes" 1>&6
656 SET_MAKE=
657 else
658 echo "$ac_t""no" 1>&6
659 SET_MAKE="MAKE=${MAKE-make}"
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668 else
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
671 else
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
673 for ac_dir in $PATH; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 ac_cv_prog_CC="gcc"
677 break
679 done
680 IFS="$ac_save_ifs"
683 CC="$ac_cv_prog_CC"
684 if test -n "$CC"; then
685 echo "$ac_t""$CC" 1>&6
686 else
687 echo "$ac_t""no" 1>&6
690 if test -z "$CC"; then
691 # Extract the first word of "cc", so it can be a program name with args.
692 set dummy cc; ac_word=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
700 else
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
702 ac_prog_rejected=no
703 for ac_dir in $PATH; do
704 test -z "$ac_dir" && ac_dir=.
705 if test -f $ac_dir/$ac_word; then
706 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
707 ac_prog_rejected=yes
708 continue
710 ac_cv_prog_CC="cc"
711 break
713 done
714 IFS="$ac_save_ifs"
715 if test $ac_prog_rejected = yes; then
716 # We found a bogon in the path, so make sure we never use it.
717 set dummy $ac_cv_prog_CC
718 shift
719 if test $# -gt 0; then
720 # We chose a different compiler from the bogus one.
721 # However, it has the same basename, so the bogon will be chosen
722 # first if we set CC to just the basename; use the full file name.
723 shift
724 set dummy "$ac_dir/$ac_word" "$@"
725 shift
726 ac_cv_prog_CC="$@"
731 CC="$ac_cv_prog_CC"
732 if test -n "$CC"; then
733 echo "$ac_t""$CC" 1>&6
734 else
735 echo "$ac_t""no" 1>&6
738 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
742 echo "configure:743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 ac_ext=c
745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
746 ac_cpp='$CPP $CPPFLAGS'
747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
748 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
749 cross_compiling=$ac_cv_prog_cc_cross
751 cat > conftest.$ac_ext <<EOF
752 #line 753 "configure"
753 #include "confdefs.h"
754 main(){return(0);}
756 if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
757 ac_cv_prog_cc_works=yes
758 # If we can't run a trivial program, we are probably using a cross compiler.
759 if (./conftest; exit) 2>/dev/null; then
760 ac_cv_prog_cc_cross=no
761 else
762 ac_cv_prog_cc_cross=yes
764 else
765 echo "configure: failed program was:" >&5
766 cat conftest.$ac_ext >&5
767 ac_cv_prog_cc_works=no
769 rm -fr conftest*
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
784 else
785 cat > conftest.c <<EOF
786 #ifdef __GNUC__
787 yes;
788 #endif
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
791 ac_cv_prog_gcc=yes
792 else
793 ac_cv_prog_gcc=no
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
800 GCC=yes
801 ac_test_CFLAGS="${CFLAGS+set}"
802 ac_save_CFLAGS="$CFLAGS"
803 CFLAGS=
804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
805 echo "configure:806: checking whether ${CC-cc} accepts -g" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 echo 'void f(){}' > conftest.c
810 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
811 ac_cv_prog_cc_g=yes
812 else
813 ac_cv_prog_cc_g=no
815 rm -f conftest*
819 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
820 if test "$ac_test_CFLAGS" = set; then
821 CFLAGS="$ac_save_CFLAGS"
822 elif test $ac_cv_prog_cc_g = yes; then
823 CFLAGS="-g -O2"
824 else
825 CFLAGS="-O2"
827 else
828 GCC=
829 test "${CFLAGS+set}" = set || CFLAGS="-g"
832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
833 echo "configure:834: checking how to run the C preprocessor" >&5
834 # On Suns, sometimes $CPP names a directory.
835 if test -n "$CPP" && test -d "$CPP"; then
836 CPP=
838 if test -z "$CPP"; then
839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841 else
842 # This must be in double quotes, not single quotes, because CPP may get
843 # substituted into the Makefile and "${CC-cc}" will confuse make.
844 CPP="${CC-cc} -E"
845 # On the NeXT, cc -E runs the code through the compiler's parser,
846 # not just through cpp.
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
850 #include <assert.h>
851 Syntax Error
853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
854 { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
855 ac_err=`grep -v '^ *+' conftest.out`
856 if test -z "$ac_err"; then
858 else
859 echo "$ac_err" >&5
860 echo "configure: failed program was:" >&5
861 cat conftest.$ac_ext >&5
862 rm -rf conftest*
863 CPP="${CC-cc} -E -traditional-cpp"
864 cat > conftest.$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
867 #include <assert.h>
868 Syntax Error
870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
871 { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
872 ac_err=`grep -v '^ *+' conftest.out`
873 if test -z "$ac_err"; then
875 else
876 echo "$ac_err" >&5
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
879 rm -rf conftest*
880 CPP=/lib/cpp
882 rm -f conftest*
884 rm -f conftest*
885 ac_cv_prog_CPP="$CPP"
887 CPP="$ac_cv_prog_CPP"
888 else
889 ac_cv_prog_CPP="$CPP"
891 echo "$ac_t""$CPP" 1>&6
893 # If we find X, set shell vars x_includes and x_libraries to the
894 # paths, otherwise set no_x=yes.
895 # Uses ac_ vars as temps to allow command line to override cache and checks.
896 # --without-x overrides everything else, but does not touch the cache.
897 echo $ac_n "checking for X""... $ac_c" 1>&6
898 echo "configure:899: checking for X" >&5
900 # Check whether --with-x or --without-x was given.
901 if test "${with_x+set}" = set; then
902 withval="$with_x"
906 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
907 if test "x$with_x" = xno; then
908 # The user explicitly disabled X.
909 have_x=disabled
910 else
911 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
912 # Both variables are already set.
913 have_x=yes
914 else
915 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917 else
918 # One or both of the vars are not set, and there is no cached value.
919 ac_x_includes=NO ac_x_libraries=NO
920 rm -fr conftestdir
921 if mkdir conftestdir; then
922 cd conftestdir
923 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
924 cat > Imakefile <<'EOF'
925 acfindx:
926 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
928 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
930 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
931 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
932 for ac_extension in a so sl; do
933 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
934 test -f $ac_im_libdir/libX11.$ac_extension; then
935 ac_im_usrlibdir=$ac_im_libdir; break
937 done
938 # Screen out bogus values from the imake configuration. They are
939 # bogus both because they are the default anyway, and because
940 # using them would break gcc on systems where it needs fixed includes.
941 case "$ac_im_incroot" in
942 /usr/include) ;;
943 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
944 esac
945 case "$ac_im_usrlibdir" in
946 /usr/lib | /lib) ;;
947 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
948 esac
950 cd ..
951 rm -fr conftestdir
954 if test "$ac_x_includes" = NO; then
955 # Guess where to find include files, by looking for this one X11 .h file.
956 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
958 # First, try using that file with no special directory specified.
959 cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
962 #include <$x_direct_test_include>
964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
965 { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
966 ac_err=`grep -v '^ *+' conftest.out`
967 if test -z "$ac_err"; then
968 rm -rf conftest*
969 # We can compile using X headers with no special include directory.
970 ac_x_includes=
971 else
972 echo "$ac_err" >&5
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
975 rm -rf conftest*
976 # Look for the header file in a standard set of common directories.
977 # Check X11 before X11Rn because it is often a symlink to the current release.
978 for ac_dir in \
979 /usr/X11/include \
980 /usr/X11R6/include \
981 /usr/X11R5/include \
982 /usr/X11R4/include \
984 /usr/include/X11 \
985 /usr/include/X11R6 \
986 /usr/include/X11R5 \
987 /usr/include/X11R4 \
989 /usr/local/X11/include \
990 /usr/local/X11R6/include \
991 /usr/local/X11R5/include \
992 /usr/local/X11R4/include \
994 /usr/local/include/X11 \
995 /usr/local/include/X11R6 \
996 /usr/local/include/X11R5 \
997 /usr/local/include/X11R4 \
999 /usr/X386/include \
1000 /usr/x386/include \
1001 /usr/XFree86/include/X11 \
1003 /usr/include \
1004 /usr/local/include \
1005 /usr/unsupported/include \
1006 /usr/athena/include \
1007 /usr/local/x11r5/include \
1008 /usr/lpp/Xamples/include \
1010 /usr/openwin/include \
1011 /usr/openwin/share/include \
1014 if test -r "$ac_dir/$x_direct_test_include"; then
1015 ac_x_includes=$ac_dir
1016 break
1018 done
1020 rm -f conftest*
1021 fi # $ac_x_includes = NO
1023 if test "$ac_x_libraries" = NO; then
1024 # Check for the libraries.
1026 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1027 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1029 # See if we find them without any special options.
1030 # Don't add to $LIBS permanently.
1031 ac_save_LIBS="$LIBS"
1032 LIBS="-l$x_direct_test_library $LIBS"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1037 int main() {
1038 ${x_direct_test_function}()
1039 ; return 0; }
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1042 rm -rf conftest*
1043 LIBS="$ac_save_LIBS"
1044 # We can link X programs with no special library path.
1045 ac_x_libraries=
1046 else
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1049 rm -rf conftest*
1050 LIBS="$ac_save_LIBS"
1051 # First see if replacing the include by lib works.
1052 # Check X11 before X11Rn because it is often a symlink to the current release.
1053 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1054 /usr/X11/lib \
1055 /usr/X11R6/lib \
1056 /usr/X11R5/lib \
1057 /usr/X11R4/lib \
1059 /usr/lib/X11 \
1060 /usr/lib/X11R6 \
1061 /usr/lib/X11R5 \
1062 /usr/lib/X11R4 \
1064 /usr/local/X11/lib \
1065 /usr/local/X11R6/lib \
1066 /usr/local/X11R5/lib \
1067 /usr/local/X11R4/lib \
1069 /usr/local/lib/X11 \
1070 /usr/local/lib/X11R6 \
1071 /usr/local/lib/X11R5 \
1072 /usr/local/lib/X11R4 \
1074 /usr/X386/lib \
1075 /usr/x386/lib \
1076 /usr/XFree86/lib/X11 \
1078 /usr/lib \
1079 /usr/local/lib \
1080 /usr/unsupported/lib \
1081 /usr/athena/lib \
1082 /usr/local/x11r5/lib \
1083 /usr/lpp/Xamples/lib \
1084 /lib/usr/lib/X11 \
1086 /usr/openwin/lib \
1087 /usr/openwin/share/lib \
1090 for ac_extension in a so sl; do
1091 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1092 ac_x_libraries=$ac_dir
1093 break 2
1095 done
1096 done
1098 rm -f conftest*
1099 fi # $ac_x_libraries = NO
1101 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1102 # Didn't find X anywhere. Cache the known absence of X.
1103 ac_cv_have_x="have_x=no"
1104 else
1105 # Record where we found X for the cache.
1106 ac_cv_have_x="have_x=yes \
1107 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1111 eval "$ac_cv_have_x"
1112 fi # $with_x != no
1114 if test "$have_x" != yes; then
1115 echo "$ac_t""$have_x" 1>&6
1116 no_x=yes
1117 else
1118 # If each of the values was on the command line, it overrides each guess.
1119 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1120 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1121 # Update the cache value to reflect the command line values.
1122 ac_cv_have_x="have_x=yes \
1123 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1124 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1127 if test "$no_x" = yes; then
1128 # Not all programs may use this symbol, but it does not hurt to define it.
1129 cat >> confdefs.h <<\EOF
1130 #define X_DISPLAY_MISSING 1
1133 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1134 else
1135 if test -n "$x_includes"; then
1136 X_CFLAGS="$X_CFLAGS -I$x_includes"
1139 # It would also be nice to do this for all -L options, not just this one.
1140 if test -n "$x_libraries"; then
1141 X_LIBS="$X_LIBS -L$x_libraries"
1142 # For Solaris; some versions of Sun CC require a space after -R and
1143 # others require no space. Words are not sufficient . . . .
1144 case "`(uname -sr) 2>/dev/null`" in
1145 "SunOS 5"*)
1146 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether -R must be followed by a space" >&5
1148 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1153 int main() {
1155 ; return 0; }
1157 if { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1158 rm -rf conftest*
1159 ac_R_nospace=yes
1160 else
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1163 rm -rf conftest*
1164 ac_R_nospace=no
1166 rm -f conftest*
1167 if test $ac_R_nospace = yes; then
1168 echo "$ac_t""no" 1>&6
1169 X_LIBS="$X_LIBS -R$x_libraries"
1170 else
1171 LIBS="$ac_xsave_LIBS -R $x_libraries"
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1176 int main() {
1178 ; return 0; }
1180 if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1181 rm -rf conftest*
1182 ac_R_space=yes
1183 else
1184 echo "configure: failed program was:" >&5
1185 cat conftest.$ac_ext >&5
1186 rm -rf conftest*
1187 ac_R_space=no
1189 rm -f conftest*
1190 if test $ac_R_space = yes; then
1191 echo "$ac_t""yes" 1>&6
1192 X_LIBS="$X_LIBS -R $x_libraries"
1193 else
1194 echo "$ac_t""neither works" 1>&6
1197 LIBS="$ac_xsave_LIBS"
1198 esac
1201 # Check for system-dependent libraries X programs must link with.
1202 # Do this before checking for the system-independent R6 libraries
1203 # (-lICE), since we may need -lsocket or whatever for X linking.
1205 if test "$ISC" = yes; then
1206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1207 else
1208 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1209 # libraries were built with DECnet support. And karl@cs.umb.edu says
1210 # the Alpha needs dnet_stub (dnet does not exist).
1211 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1212 echo "configure:1213: checking for dnet_ntoa in -ldnet" >&5
1213 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217 ac_save_LIBS="$LIBS"
1218 LIBS="-ldnet $LIBS"
1219 cat > conftest.$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1222 /* Override any gcc2 internal prototype to avoid an error. */
1223 /* We use char because int might match the return type of a gcc2
1224 builtin and then its argument prototype would still apply. */
1225 char dnet_ntoa();
1227 int main() {
1228 dnet_ntoa()
1229 ; return 0; }
1231 if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1232 rm -rf conftest*
1233 eval "ac_cv_lib_$ac_lib_var=yes"
1234 else
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1237 rm -rf conftest*
1238 eval "ac_cv_lib_$ac_lib_var=no"
1240 rm -f conftest*
1241 LIBS="$ac_save_LIBS"
1244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1245 echo "$ac_t""yes" 1>&6
1246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1247 else
1248 echo "$ac_t""no" 1>&6
1251 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1252 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1253 echo "configure:1254: checking for dnet_ntoa in -ldnet_stub" >&5
1254 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258 ac_save_LIBS="$LIBS"
1259 LIBS="-ldnet_stub $LIBS"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 /* Override any gcc2 internal prototype to avoid an error. */
1264 /* We use char because int might match the return type of a gcc2
1265 builtin and then its argument prototype would still apply. */
1266 char dnet_ntoa();
1268 int main() {
1269 dnet_ntoa()
1270 ; return 0; }
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1273 rm -rf conftest*
1274 eval "ac_cv_lib_$ac_lib_var=yes"
1275 else
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1278 rm -rf conftest*
1279 eval "ac_cv_lib_$ac_lib_var=no"
1281 rm -f conftest*
1282 LIBS="$ac_save_LIBS"
1285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1286 echo "$ac_t""yes" 1>&6
1287 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1288 else
1289 echo "$ac_t""no" 1>&6
1294 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1295 # to get the SysV transport functions.
1296 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1297 # needs -lnsl.
1298 # The nsl library prevents programs from opening the X display
1299 # on Irix 5.2, according to dickey@clark.net.
1300 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1301 echo "configure:1302: checking for gethostbyname" >&5
1302 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 /* System header to define __stub macros and hopefully few prototypes,
1309 which can conflict with char gethostbyname(); below. */
1310 #include <assert.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() {
1318 /* The GNU C library defines this for functions which it implements
1319 to always fail with ENOSYS. Some functions are actually named
1320 something starting with __ and the normal name is an alias. */
1321 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1322 choke me
1323 #else
1324 gethostbyname();
1325 #endif
1327 ; return 0; }
1329 if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1330 rm -rf conftest*
1331 eval "ac_cv_func_gethostbyname=yes"
1332 else
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1335 rm -rf conftest*
1336 eval "ac_cv_func_gethostbyname=no"
1338 rm -f conftest*
1341 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1342 echo "$ac_t""yes" 1>&6
1344 else
1345 echo "$ac_t""no" 1>&6
1348 if test $ac_cv_func_gethostbyname = no; then
1349 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname in -lnsl" >&5
1351 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355 ac_save_LIBS="$LIBS"
1356 LIBS="-lnsl $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.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 gethostbyname();
1365 int main() {
1366 gethostbyname()
1367 ; return 0; }
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1370 rm -rf conftest*
1371 eval "ac_cv_lib_$ac_lib_var=yes"
1372 else
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1375 rm -rf conftest*
1376 eval "ac_cv_lib_$ac_lib_var=no"
1378 rm -f conftest*
1379 LIBS="$ac_save_LIBS"
1382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1385 else
1386 echo "$ac_t""no" 1>&6
1391 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1392 # socket/setsockopt and other routines are undefined under SCO ODT
1393 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1394 # on later versions), says simon@lia.di.epfl.ch: it contains
1395 # gethostby* variants that don't use the nameserver (or something).
1396 # -lsocket must be given before -lnsl if both are needed.
1397 # We assume that if connect needs -lnsl, so does gethostbyname.
1398 echo $ac_n "checking for connect""... $ac_c" 1>&6
1399 echo "configure:1400: checking for connect" >&5
1400 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* System header to define __stub macros and hopefully few prototypes,
1407 which can conflict with char connect(); below. */
1408 #include <assert.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() {
1416 /* The GNU C library defines this for functions which it implements
1417 to always fail with ENOSYS. Some functions are actually named
1418 something starting with __ and the normal name is an alias. */
1419 #if defined (__stub_connect) || defined (__stub___connect)
1420 choke me
1421 #else
1422 connect();
1423 #endif
1425 ; return 0; }
1427 if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1428 rm -rf conftest*
1429 eval "ac_cv_func_connect=yes"
1430 else
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1433 rm -rf conftest*
1434 eval "ac_cv_func_connect=no"
1436 rm -f conftest*
1439 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1442 else
1443 echo "$ac_t""no" 1>&6
1446 if test $ac_cv_func_connect = no; then
1447 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect in -lsocket" >&5
1449 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1452 else
1453 ac_save_LIBS="$LIBS"
1454 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1461 char connect();
1463 int main() {
1464 connect()
1465 ; return 0; }
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1468 rm -rf conftest*
1469 eval "ac_cv_lib_$ac_lib_var=yes"
1470 else
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1473 rm -rf conftest*
1474 eval "ac_cv_lib_$ac_lib_var=no"
1476 rm -f conftest*
1477 LIBS="$ac_save_LIBS"
1480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1481 echo "$ac_t""yes" 1>&6
1482 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1483 else
1484 echo "$ac_t""no" 1>&6
1489 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1490 echo $ac_n "checking for remove""... $ac_c" 1>&6
1491 echo "configure:1492: checking for remove" >&5
1492 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 /* System header to define __stub macros and hopefully few prototypes,
1499 which can conflict with char remove(); below. */
1500 #include <assert.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() {
1508 /* The GNU C library defines this for functions which it implements
1509 to always fail with ENOSYS. Some functions are actually named
1510 something starting with __ and the normal name is an alias. */
1511 #if defined (__stub_remove) || defined (__stub___remove)
1512 choke me
1513 #else
1514 remove();
1515 #endif
1517 ; return 0; }
1519 if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1520 rm -rf conftest*
1521 eval "ac_cv_func_remove=yes"
1522 else
1523 echo "configure: failed program was:" >&5
1524 cat conftest.$ac_ext >&5
1525 rm -rf conftest*
1526 eval "ac_cv_func_remove=no"
1528 rm -f conftest*
1531 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1532 echo "$ac_t""yes" 1>&6
1534 else
1535 echo "$ac_t""no" 1>&6
1538 if test $ac_cv_func_remove = no; then
1539 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove in -lposix" >&5
1541 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 ac_save_LIBS="$LIBS"
1546 LIBS="-lposix $LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1553 char remove();
1555 int main() {
1556 remove()
1557 ; return 0; }
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1560 rm -rf conftest*
1561 eval "ac_cv_lib_$ac_lib_var=yes"
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 eval "ac_cv_lib_$ac_lib_var=no"
1568 rm -f conftest*
1569 LIBS="$ac_save_LIBS"
1572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1573 echo "$ac_t""yes" 1>&6
1574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1575 else
1576 echo "$ac_t""no" 1>&6
1581 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1582 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1583 echo "configure:1584: checking for shmat" >&5
1584 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 /* System header to define __stub macros and hopefully few prototypes,
1591 which can conflict with char shmat(); below. */
1592 #include <assert.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() {
1600 /* The GNU C library defines this for functions which it implements
1601 to always fail with ENOSYS. Some functions are actually named
1602 something starting with __ and the normal name is an alias. */
1603 #if defined (__stub_shmat) || defined (__stub___shmat)
1604 choke me
1605 #else
1606 shmat();
1607 #endif
1609 ; return 0; }
1611 if { (eval echo configure:1612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1612 rm -rf conftest*
1613 eval "ac_cv_func_shmat=yes"
1614 else
1615 echo "configure: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1617 rm -rf conftest*
1618 eval "ac_cv_func_shmat=no"
1620 rm -f conftest*
1623 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1626 else
1627 echo "$ac_t""no" 1>&6
1630 if test $ac_cv_func_shmat = no; then
1631 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat in -lipc" >&5
1633 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637 ac_save_LIBS="$LIBS"
1638 LIBS="-lipc $LIBS"
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1645 char shmat();
1647 int main() {
1648 shmat()
1649 ; return 0; }
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1652 rm -rf conftest*
1653 eval "ac_cv_lib_$ac_lib_var=yes"
1654 else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 eval "ac_cv_lib_$ac_lib_var=no"
1660 rm -f conftest*
1661 LIBS="$ac_save_LIBS"
1664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1667 else
1668 echo "$ac_t""no" 1>&6
1674 # Check for libraries that X11R6 Xt/Xaw programs need.
1675 ac_save_LDFLAGS="$LDFLAGS"
1676 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1678 # check for ICE first), but we must link in the order -lSM -lICE or
1679 # we get undefined symbols. So assume we have SM if we have ICE.
1680 # These have to be linked with before -lX11, unlike the other
1681 # libraries we check for below, so use a different variable.
1682 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1683 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1684 echo "configure:1685: checking for IceConnectionNumber in -lICE" >&5
1685 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689 ac_save_LIBS="$LIBS"
1690 LIBS="-lICE $LIBS"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* Override any gcc2 internal prototype to avoid an error. */
1695 /* We use char because int might match the return type of a gcc2
1696 builtin and then its argument prototype would still apply. */
1697 char IceConnectionNumber();
1699 int main() {
1700 IceConnectionNumber()
1701 ; return 0; }
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1704 rm -rf conftest*
1705 eval "ac_cv_lib_$ac_lib_var=yes"
1706 else
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1709 rm -rf conftest*
1710 eval "ac_cv_lib_$ac_lib_var=no"
1712 rm -f conftest*
1713 LIBS="$ac_save_LIBS"
1716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1719 else
1720 echo "$ac_t""no" 1>&6
1723 LDFLAGS="$ac_save_LDFLAGS"
1727 for ac_prog in 'bison -y' byacc
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_word" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735 else
1736 if test -n "$YACC"; then
1737 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1738 else
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1740 for ac_dir in $PATH; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 ac_cv_prog_YACC="$ac_prog"
1744 break
1746 done
1747 IFS="$ac_save_ifs"
1750 YACC="$ac_cv_prog_YACC"
1751 if test -n "$YACC"; then
1752 echo "$ac_t""$YACC" 1>&6
1753 else
1754 echo "$ac_t""no" 1>&6
1757 test -n "$YACC" && break
1758 done
1759 test -n "$YACC" || YACC="yacc"
1761 # Extract the first word of "flex", so it can be a program name with args.
1762 set dummy flex; ac_word=$2
1763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $ac_word" >&5
1765 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 if test -n "$LEX"; then
1769 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1770 else
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1772 for ac_dir in $PATH; do
1773 test -z "$ac_dir" && ac_dir=.
1774 if test -f $ac_dir/$ac_word; then
1775 ac_cv_prog_LEX="flex"
1776 break
1778 done
1779 IFS="$ac_save_ifs"
1780 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1783 LEX="$ac_cv_prog_LEX"
1784 if test -n "$LEX"; then
1785 echo "$ac_t""$LEX" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1790 if test -z "$LEXLIB"
1791 then
1792 case "$LEX" in
1793 flex*) ac_lib=fl ;;
1794 *) ac_lib=l ;;
1795 esac
1796 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1797 echo "configure:1798: checking for yywrap in -l$ac_lib" >&5
1798 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 ac_save_LIBS="$LIBS"
1803 LIBS="-l$ac_lib $LIBS"
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1810 char yywrap();
1812 int main() {
1813 yywrap()
1814 ; return 0; }
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1817 rm -rf conftest*
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1819 else
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 rm -rf conftest*
1823 eval "ac_cv_lib_$ac_lib_var=no"
1825 rm -f conftest*
1826 LIBS="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 LEXLIB="-l$ac_lib"
1832 else
1833 echo "$ac_t""no" 1>&6
1838 # Extract the first word of "ranlib", so it can be a program name with args.
1839 set dummy ranlib; ac_word=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845 if test -n "$RANLIB"; then
1846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1847 else
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1849 for ac_dir in $PATH; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_RANLIB="ranlib"
1853 break
1855 done
1856 IFS="$ac_save_ifs"
1857 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1860 RANLIB="$ac_cv_prog_RANLIB"
1861 if test -n "$RANLIB"; then
1862 echo "$ac_t""$RANLIB" 1>&6
1863 else
1864 echo "$ac_t""no" 1>&6
1867 # Find a good install program. We prefer a C program (faster),
1868 # so one script is as good as another. But avoid the broken or
1869 # incompatible versions:
1870 # SysV /etc/install, /usr/sbin/install
1871 # SunOS /usr/etc/install
1872 # IRIX /sbin/install
1873 # AIX /bin/install
1874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1876 # ./install, which can be erroneously created by make from ./install.sh.
1877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1878 echo "configure:1879: checking for a BSD compatible install" >&5
1879 if test -z "$INSTALL"; then
1880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1884 for ac_dir in $PATH; do
1885 # Account for people who put trailing slashes in PATH elements.
1886 case "$ac_dir/" in
1887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1889 # OSF1 and SCO ODT 3.0 have their own names for install.
1890 for ac_prog in ginstall installbsd scoinst install; do
1891 if test -f $ac_dir/$ac_prog; then
1892 if test $ac_prog = install &&
1893 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1894 # AIX install. It has an incompatible calling convention.
1895 # OSF/1 installbsd also uses dspmsg, but is usable.
1897 else
1898 ac_cv_path_install="$ac_dir/$ac_prog -c"
1899 break 2
1902 done
1904 esac
1905 done
1906 IFS="$ac_save_IFS"
1909 if test "${ac_cv_path_install+set}" = set; then
1910 INSTALL="$ac_cv_path_install"
1911 else
1912 # As a last resort, use the slow shell script. We don't cache a
1913 # path for INSTALL within a source directory, because that will
1914 # break other packages using the cache if that directory is
1915 # removed, or if the path is relative.
1916 INSTALL="$ac_install_sh"
1919 echo "$ac_t""$INSTALL" 1>&6
1921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1922 # It thinks the first close brace ends the variable substitution.
1923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1927 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1928 echo "configure:1929: checking whether ln -s works" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932 rm -f conftestdata
1933 if ln -s X conftestdata 2>/dev/null
1934 then
1935 rm -f conftestdata
1936 ac_cv_prog_LN_S="ln -s"
1937 else
1938 ac_cv_prog_LN_S=ln
1941 LN_S="$ac_cv_prog_LN_S"
1942 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1943 echo "$ac_t""yes" 1>&6
1944 else
1945 echo "$ac_t""no" 1>&6
1948 # Extract the first word of "c2man", so it can be a program name with args.
1949 set dummy c2man; ac_word=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955 if test -n "$C2MAN"; then
1956 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1957 else
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1959 for ac_dir in $PATH; do
1960 test -z "$ac_dir" && ac_dir=.
1961 if test -f $ac_dir/$ac_word; then
1962 ac_cv_prog_C2MAN="c2man"
1963 break
1965 done
1966 IFS="$ac_save_ifs"
1967 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1970 C2MAN="$ac_cv_prog_C2MAN"
1971 if test -n "$C2MAN"; then
1972 echo "$ac_t""$C2MAN" 1>&6
1973 else
1974 echo "$ac_t""no" 1>&6
1979 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1980 echo "configure:1981: checking for i386_set_ldt in -li386" >&5
1981 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 ac_save_LIBS="$LIBS"
1986 LIBS="-li386 $LIBS"
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* Override any gcc2 internal prototype to avoid an error. */
1991 /* We use char because int might match the return type of a gcc2
1992 builtin and then its argument prototype would still apply. */
1993 char i386_set_ldt();
1995 int main() {
1996 i386_set_ldt()
1997 ; return 0; }
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2000 rm -rf conftest*
2001 eval "ac_cv_lib_$ac_lib_var=yes"
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -rf conftest*
2006 eval "ac_cv_lib_$ac_lib_var=no"
2008 rm -f conftest*
2009 LIBS="$ac_save_LIBS"
2012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_lib 1
2020 LIBS="-li386 $LIBS"
2022 else
2023 echo "$ac_t""no" 1>&6
2026 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2027 echo "configure:2028: checking for iswalnum in -lw" >&5
2028 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 ac_save_LIBS="$LIBS"
2033 LIBS="-lw $LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2040 char iswalnum();
2042 int main() {
2043 iswalnum()
2044 ; return 0; }
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2047 rm -rf conftest*
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2049 else
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -rf conftest*
2053 eval "ac_cv_lib_$ac_lib_var=no"
2055 rm -f conftest*
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2063 cat >> confdefs.h <<EOF
2064 #define $ac_tr_lib 1
2067 LIBS="-lw $LIBS"
2069 else
2070 echo "$ac_t""no" 1>&6
2073 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2074 echo "configure:2075: checking for setrunelocale in -lxpg4" >&5
2075 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079 ac_save_LIBS="$LIBS"
2080 LIBS="-lxpg4 $LIBS"
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* Override any gcc2 internal prototype to avoid an error. */
2085 /* We use char because int might match the return type of a gcc2
2086 builtin and then its argument prototype would still apply. */
2087 char setrunelocale();
2089 int main() {
2090 setrunelocale()
2091 ; return 0; }
2093 if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2094 rm -rf conftest*
2095 eval "ac_cv_lib_$ac_lib_var=yes"
2096 else
2097 echo "configure: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2099 rm -rf conftest*
2100 eval "ac_cv_lib_$ac_lib_var=no"
2102 rm -f conftest*
2103 LIBS="$ac_save_LIBS"
2106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_lib 1
2114 LIBS="-lxpg4 $LIBS"
2116 else
2117 echo "$ac_t""no" 1>&6
2120 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2121 echo "configure:2122: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2122 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126 ac_save_LIBS="$LIBS"
2127 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* Override any gcc2 internal prototype to avoid an error. */
2132 /* We use char because int might match the return type of a gcc2
2133 builtin and then its argument prototype would still apply. */
2134 char XF86DGAQueryExtension();
2136 int main() {
2137 XF86DGAQueryExtension()
2138 ; return 0; }
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2141 rm -rf conftest*
2142 eval "ac_cv_lib_$ac_lib_var=yes"
2143 else
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 rm -rf conftest*
2147 eval "ac_cv_lib_$ac_lib_var=no"
2149 rm -f conftest*
2150 LIBS="$ac_save_LIBS"
2153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 cat >> confdefs.h <<\EOF
2156 #define HAVE_LIBXXF86DGA 1
2158 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2159 else
2160 echo "$ac_t""no" 1>&6
2164 for ac_hdr in sys/soundcard.h machine/soundcard.h
2166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_hdr" >&5
2169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 #include <$ac_hdr>
2177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2178 { (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2179 ac_err=`grep -v '^ *+' conftest.out`
2180 if test -z "$ac_err"; then
2181 rm -rf conftest*
2182 eval "ac_cv_header_$ac_safe=yes"
2183 else
2184 echo "$ac_err" >&5
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 rm -rf conftest*
2188 eval "ac_cv_header_$ac_safe=no"
2190 rm -f conftest*
2192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2193 echo "$ac_t""yes" 1>&6
2194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2195 cat >> confdefs.h <<EOF
2196 #define $ac_tr_hdr 1
2199 else
2200 echo "$ac_t""no" 1>&6
2202 done
2205 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2206 echo "configure:2207: checking "for Open Sound System"" >&5
2207 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2214 #ifdef HAVE_SYS_SOUNDCARD_H
2215 #include <sys/soundcard.h>
2216 #endif
2217 #ifdef HAVE_MACHINE_SOUNDCARD_H
2218 #include <machine/soundcard.h>
2219 #endif
2221 int main() {
2224 /* check for one of the Open Sound System specific SNDCTL_ defines */
2225 #if !defined(SNDCTL_DSP_STEREO)
2226 #error No open sound system
2227 #endif
2229 ; return 0; }
2231 if { (eval echo configure:2232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2232 rm -rf conftest*
2233 ac_cv_c_opensoundsystem="yes"
2234 else
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 ac_cv_c_opensoundsystem="no"
2240 rm -f conftest*
2243 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2245 if test "$ac_cv_c_opensoundsystem" = "yes"
2246 then
2247 cat >> confdefs.h <<\EOF
2248 #define HAVE_OSS 1
2254 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2255 echo "configure:2256: checking "for union semun"" >&5
2256 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <sys/types.h>
2263 #include <sys/sem.h>
2264 int main() {
2265 union semun foo
2266 ; return 0; }
2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269 rm -rf conftest*
2270 ac_cv_c_union_semun="yes"
2271 else
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 rm -rf conftest*
2275 ac_cv_c_union_semun="no"
2277 rm -f conftest*
2280 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2281 if test "$ac_cv_c_union_semun" = "yes"
2282 then
2283 cat >> confdefs.h <<\EOF
2284 #define HAVE_UNION_SEMUN 1
2289 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2292 if test "x${GCC}" = "xyes"
2293 then
2294 CFLAGS="$CFLAGS -Wall"
2295 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2296 echo "configure:2297: checking "for gcc strength-reduce bug"" >&5
2297 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 if test "$cross_compiling" = yes; then
2301 ac_cv_c_gcc_strength_bug="yes"
2302 else
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2307 int main(void) {
2308 static int Array[3];
2309 unsigned int B = 3;
2310 int i;
2311 for(i=0; i<B; i++) Array[i] = i - 3;
2312 exit( Array[1] != -2 );
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2316 then
2317 ac_cv_c_gcc_strength_bug="no"
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -fr conftest*
2322 ac_cv_c_gcc_strength_bug="yes"
2324 rm -fr conftest*
2329 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2330 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2331 then
2332 CFLAGS="$CFLAGS -fno-strength-reduce"
2337 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2338 echo "configure:2339: checking "whether external symbols need an underscore prefix"" >&5
2339 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 saved_libs=$LIBS
2343 LIBS="conftest_asm.s $LIBS"
2344 cat > conftest_asm.s <<EOF
2345 .globl _ac_test
2346 _ac_test:
2347 .long 0
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 extern int ac_test;
2353 int main() {
2354 if (ac_test) return 1
2355 ; return 0; }
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2358 rm -rf conftest*
2359 ac_cv_c_extern_prefix="yes"
2360 else
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 ac_cv_c_extern_prefix="no"
2366 rm -f conftest*
2367 LIBS=$saved_libs
2370 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2371 if test "$ac_cv_c_extern_prefix" = "yes"
2372 then
2373 cat >> confdefs.h <<\EOF
2374 #define NEED_UNDERSCORE_PREFIX 1
2380 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2381 echo "configure:2382: checking "whether assembler accepts .string"" >&5
2382 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 saved_libs=$LIBS
2386 LIBS="conftest_asm.s $LIBS"
2387 cat > conftest_asm.s <<EOF
2388 .string "test"
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2394 int main() {
2396 ; return 0; }
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2399 rm -rf conftest*
2400 ac_cv_c_asm_string="yes"
2401 else
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 rm -rf conftest*
2405 ac_cv_c_asm_string="no"
2407 rm -f conftest*
2408 LIBS=$saved_libs
2411 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2412 if test "$ac_cv_c_asm_string" = "yes"
2413 then
2414 cat >> confdefs.h <<\EOF
2415 #define HAVE_ASM_STRING 1
2421 DLLFLAGS=""
2422 if test "$LIB_TARGET" = "libwine.so.1.0"
2423 then
2424 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2425 echo "configure:2426: checking "whether we can build a dll"" >&5
2426 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 saved_cflags=$CFLAGS
2430 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2435 int main() {
2436 return 1
2437 ; return 0; }
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2440 rm -rf conftest*
2441 ac_cv_c_dll="yes"
2442 else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 ac_cv_c_dll="no"
2448 rm -f conftest*
2449 CFLAGS=$saved_cflags
2453 echo "$ac_t""$ac_cv_c_dll" 1>&6
2454 if test "$ac_cv_c_dll" = "yes"
2455 then
2456 DLLFLAGS="-fPIC"
2457 else
2458 LIB_TARGET="libwine.a"
2464 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
2465 echo "configure:2466: checking "for reentrant libc"" >&5
2466 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 if test "$cross_compiling" = yes; then
2470 wine_cv_libc_reentrant=yes
2471 else
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 int myerrno = 0;
2476 char buf[256];
2477 int *__errno_location(){return &myerrno;}
2478 main(){connect(0,buf,255); exit(!myerrno);}
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2481 then
2482 wine_cv_libc_reentrant=yes
2483 else
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -fr conftest*
2487 wine_cv_libc_reentrant=no
2489 rm -fr conftest*
2494 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2495 if test "$wine_cv_libc_reentrant" = "no"
2496 then
2497 cat >> confdefs.h <<\EOF
2498 #define NO_REENTRANT_LIBC 1
2504 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2505 echo "configure:2506: checking "for reentrant X libraries"" >&5
2506 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2508 else
2509 if test "x$with_reentrant_x" = "xno"
2510 then
2511 wine_cv_x_reentrant=no
2512 else
2513 libX11_ckeck=none
2514 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2515 if test -r $dir/libX11.so; then
2516 libX11_check="-D $dir/libX11.so"
2517 break 1
2519 if test -r $dir/libX11.a; then
2520 libX11_check="$dir/libX11.a"
2521 break 1
2523 done
2524 if test "$libX11_check" != "none"; then
2525 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
2526 then
2527 wine_cv_x_reentrant=yes
2528 else
2529 wine_cv_x_reentrant=no
2531 else
2532 wine_cv_x_reentrant=unknown
2537 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2538 if test "$wine_cv_x_reentrant" = "no"
2539 then
2540 cat >> confdefs.h <<\EOF
2541 #define NO_REENTRANT_X11 1
2547 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
2549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_func" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char $ac_func(); below. */
2559 #include <assert.h>
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563 char $ac_func();
2565 int main() {
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2571 choke me
2572 #else
2573 $ac_func();
2574 #endif
2576 ; return 0; }
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2579 rm -rf conftest*
2580 eval "ac_cv_func_$ac_func=yes"
2581 else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 rm -rf conftest*
2585 eval "ac_cv_func_$ac_func=no"
2587 rm -f conftest*
2590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2593 cat >> confdefs.h <<EOF
2594 #define $ac_tr_func 1
2597 else
2598 echo "$ac_t""no" 1>&6
2600 done
2602 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 linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h
2604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_hdr" >&5
2607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <$ac_hdr>
2615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2616 { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2617 ac_err=`grep -v '^ *+' conftest.out`
2618 if test -z "$ac_err"; then
2619 rm -rf conftest*
2620 eval "ac_cv_header_$ac_safe=yes"
2621 else
2622 echo "$ac_err" >&5
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 eval "ac_cv_header_$ac_safe=no"
2628 rm -f conftest*
2630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2631 echo "$ac_t""yes" 1>&6
2632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2633 cat >> confdefs.h <<EOF
2634 #define $ac_tr_hdr 1
2637 else
2638 echo "$ac_t""no" 1>&6
2640 done
2642 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2643 echo "configure:2644: checking whether stat file-mode macros are broken" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2653 #if defined(S_ISBLK) && defined(S_IFDIR)
2654 # if S_ISBLK (S_IFDIR)
2655 You lose.
2656 # endif
2657 #endif
2659 #if defined(S_ISBLK) && defined(S_IFCHR)
2660 # if S_ISBLK (S_IFCHR)
2661 You lose.
2662 # endif
2663 #endif
2665 #if defined(S_ISLNK) && defined(S_IFREG)
2666 # if S_ISLNK (S_IFREG)
2667 You lose.
2668 # endif
2669 #endif
2671 #if defined(S_ISSOCK) && defined(S_IFREG)
2672 # if S_ISSOCK (S_IFREG)
2673 You lose.
2674 # endif
2675 #endif
2678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2679 egrep "You lose" >/dev/null 2>&1; then
2680 rm -rf conftest*
2681 ac_cv_header_stat_broken=yes
2682 else
2683 rm -rf conftest*
2684 ac_cv_header_stat_broken=no
2686 rm -f conftest*
2690 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2691 if test $ac_cv_header_stat_broken = yes; then
2692 cat >> confdefs.h <<\EOF
2693 #define STAT_MACROS_BROKEN 1
2698 echo $ac_n "checking for working const""... $ac_c" 1>&6
2699 echo "configure:2700: checking for working const" >&5
2700 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2707 int main() {
2709 /* Ultrix mips cc rejects this. */
2710 typedef int charset[2]; const charset x;
2711 /* SunOS 4.1.1 cc rejects this. */
2712 char const *const *ccp;
2713 char **p;
2714 /* NEC SVR4.0.2 mips cc rejects this. */
2715 struct point {int x, y;};
2716 static struct point const zero = {0,0};
2717 /* AIX XL C 1.02.0.0 rejects this.
2718 It does not let you subtract one const X* pointer from another in an arm
2719 of an if-expression whose if-part is not a constant expression */
2720 const char *g = "string";
2721 ccp = &g + (g ? g-g : 0);
2722 /* HPUX 7.0 cc rejects these. */
2723 ++ccp;
2724 p = (char**) ccp;
2725 ccp = (char const *const *) p;
2726 { /* SCO 3.2v4 cc rejects this. */
2727 char *t;
2728 char const *s = 0 ? (char *) 0 : (char const *) 0;
2730 *t++ = 0;
2732 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2733 int x[] = {25, 17};
2734 const int *foo = &x[0];
2735 ++foo;
2737 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2738 typedef const int *iptr;
2739 iptr p = 0;
2740 ++p;
2742 { /* AIX XL C 1.02.0.0 rejects this saying
2743 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2744 struct s { int j; const int *ap[3]; };
2745 struct s *b; b->j = 5;
2747 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2748 const int foo = 10;
2751 ; return 0; }
2753 if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2754 rm -rf conftest*
2755 ac_cv_c_const=yes
2756 else
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 ac_cv_c_const=no
2762 rm -f conftest*
2765 echo "$ac_t""$ac_cv_c_const" 1>&6
2766 if test $ac_cv_c_const = no; then
2767 cat >> confdefs.h <<\EOF
2768 #define const
2773 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2774 echo "configure:2775: checking for ANSI C header files" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2777 else
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <stdlib.h>
2782 #include <stdarg.h>
2783 #include <string.h>
2784 #include <float.h>
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out`
2789 if test -z "$ac_err"; then
2790 rm -rf conftest*
2791 ac_cv_header_stdc=yes
2792 else
2793 echo "$ac_err" >&5
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 rm -rf conftest*
2797 ac_cv_header_stdc=no
2799 rm -f conftest*
2801 if test $ac_cv_header_stdc = yes; then
2802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 #include <string.h>
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809 egrep "memchr" >/dev/null 2>&1; then
2811 else
2812 rm -rf conftest*
2813 ac_cv_header_stdc=no
2815 rm -f conftest*
2819 if test $ac_cv_header_stdc = yes; then
2820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <stdlib.h>
2826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827 egrep "free" >/dev/null 2>&1; then
2829 else
2830 rm -rf conftest*
2831 ac_cv_header_stdc=no
2833 rm -f conftest*
2837 if test $ac_cv_header_stdc = yes; then
2838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2839 if test "$cross_compiling" = yes; then
2841 else
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 #include <ctype.h>
2846 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2847 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2849 int main () { int i; for (i = 0; i < 256; i++)
2850 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2851 exit (0); }
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2855 then
2857 else
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2860 rm -fr conftest*
2861 ac_cv_header_stdc=no
2863 rm -fr conftest*
2869 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2870 if test $ac_cv_header_stdc = yes; then
2871 cat >> confdefs.h <<\EOF
2872 #define STDC_HEADERS 1
2877 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2878 echo "configure:2879: checking for size_t" >&5
2879 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2881 else
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 #include <sys/types.h>
2886 #if STDC_HEADERS
2887 #include <stdlib.h>
2888 #include <stddef.h>
2889 #endif
2891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2892 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2893 rm -rf conftest*
2894 ac_cv_type_size_t=yes
2895 else
2896 rm -rf conftest*
2897 ac_cv_type_size_t=no
2899 rm -f conftest*
2902 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2903 if test $ac_cv_type_size_t = no; then
2904 cat >> confdefs.h <<\EOF
2905 #define size_t unsigned
2910 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2911 echo "configure:2912: checking size of long long" >&5
2912 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2914 else
2915 if test "$cross_compiling" = yes; then
2916 ac_cv_sizeof_long_long=0
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <stdio.h>
2922 main()
2924 FILE *f=fopen("conftestval", "w");
2925 if (!f) exit(1);
2926 fprintf(f, "%d\n", sizeof(long long));
2927 exit(0);
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2931 then
2932 ac_cv_sizeof_long_long=`cat conftestval`
2933 else
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 rm -fr conftest*
2937 ac_cv_sizeof_long_long=0
2939 rm -fr conftest*
2943 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2944 cat >> confdefs.h <<EOF
2945 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2951 if test $ac_cv_func_sendmsg = no; then
2952 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
2953 echo "configure:2954: checking for sendmsg in -lsocket" >&5
2954 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 ac_save_LIBS="$LIBS"
2959 LIBS="-lsocket $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2966 char sendmsg();
2968 int main() {
2969 sendmsg()
2970 ; return 0; }
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2973 rm -rf conftest*
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 eval "ac_cv_lib_$ac_lib_var=no"
2981 rm -f conftest*
2982 LIBS="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2989 cat >> confdefs.h <<EOF
2990 #define $ac_tr_lib 1
2993 LIBS="-lsocket $LIBS"
2995 else
2996 echo "$ac_t""no" 1>&6
3002 if test "$ac_cv_header_sys_vfs_h" = "yes"
3003 then
3004 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3005 echo "configure:3006: checking "whether sys/vfs.h defines statfs"" >&5
3006 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3008 else
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3013 #include <sys/types.h>
3014 #ifdef HAVE_SYS_PARAM_H
3015 # include <sys/param.h>
3016 #endif
3017 #include <sys/vfs.h>
3019 int main() {
3021 struct statfs stfs;
3023 memset(&stfs,0,sizeof(stfs));
3025 ; return 0; }
3027 if { (eval echo configure:3028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3028 rm -rf conftest*
3029 wine_cv_sys_vfs_has_statfs=yes
3030 else
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3033 rm -rf conftest*
3034 wine_cv_sys_vfs_has_statfs=no
3037 rm -f conftest*
3041 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3042 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3043 then
3044 cat >> confdefs.h <<\EOF
3045 #define STATFS_DEFINED_BY_SYS_VFS 1
3051 if test "$ac_cv_header_sys_statfs_h" = "yes"
3052 then
3053 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
3054 echo "configure:3055: checking "whether sys/statfs.h defines statfs"" >&5
3055 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3062 #include <sys/types.h>
3063 #ifdef HAVE_SYS_PARAM_H
3064 # include <sys/param.h>
3065 #endif
3066 #include <sys/statfs.h>
3068 int main() {
3070 struct statfs stfs;
3072 ; return 0; }
3074 if { (eval echo configure:3075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 rm -rf conftest*
3076 wine_cv_sys_statfs_has_statfs=yes
3077 else
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 rm -rf conftest*
3081 wine_cv_sys_statfs_has_statfs=no
3084 rm -f conftest*
3088 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3089 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3090 then
3091 cat >> confdefs.h <<\EOF
3092 #define STATFS_DEFINED_BY_SYS_STATFS 1
3098 if test "$ac_cv_header_sys_mount_h" = "yes"
3099 then
3100 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "whether sys/mount.h defines statfs"" >&5
3102 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104 else
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3109 #include <sys/types.h>
3110 #ifdef HAVE_SYS_PARAM_H
3111 # include <sys/param.h>
3112 #endif
3113 #include <sys/mount.h>
3115 int main() {
3117 struct statfs stfs;
3119 ; return 0; }
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 rm -rf conftest*
3123 wine_cv_sys_mount_has_statfs=yes
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 wine_cv_sys_mount_has_statfs=no
3131 rm -f conftest*
3135 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3136 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3137 then
3138 cat >> confdefs.h <<\EOF
3139 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3146 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
3147 echo "configure:3148: checking "for statfs.f_bfree"" >&5
3148 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3150 else
3151 if test "x$statfs_bfree" = "xno"
3152 then
3153 wine_cv_statfs_bfree=no
3154 else
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3159 #include <sys/types.h>
3160 #ifdef HAVE_SYS_PARAM_H
3161 # include <sys/param.h>
3162 #endif
3163 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3164 # include <sys/mount.h>
3165 #else
3166 # ifdef STATFS_DEFINED_BY_SYS_VFS
3167 # include <sys/vfs.h>
3168 # else
3169 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3170 # include <sys/statfs.h>
3171 # endif
3172 # endif
3173 #endif
3175 int main() {
3177 struct statfs stfs;
3179 stfs.f_bfree++;
3181 ; return 0; }
3183 if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3184 rm -rf conftest*
3185 wine_cv_statfs_bfree=yes
3186 else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
3190 wine_cv_statfs_bfree=no
3193 rm -f conftest*
3197 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3198 if test "$wine_cv_statfs_bfree" = "yes"
3199 then
3200 cat >> confdefs.h <<\EOF
3201 #define STATFS_HAS_BFREE 1
3206 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3207 echo "configure:3208: checking "for statfs.f_bavail"" >&5
3208 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3210 else
3211 if test "x$statfs_bavail" = "xno"
3212 then
3213 wine_cv_statfs_bavail=no
3214 else
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #ifdef HAVE_SYS_PARAM_H
3221 # include <sys/param.h>
3222 #endif
3223 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3224 # include <sys/mount.h>
3225 #else
3226 # ifdef STATFS_DEFINED_BY_SYS_VFS
3227 # include <sys/vfs.h>
3228 # else
3229 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3230 # include <sys/statfs.h>
3231 # endif
3232 # endif
3233 #endif
3235 int main() {
3237 struct statfs stfs;
3239 stfs.f_bavail++;
3241 ; return 0; }
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3244 rm -rf conftest*
3245 wine_cv_statfs_bavail=yes
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 wine_cv_statfs_bavail=no
3253 rm -f conftest*
3257 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3258 if test "$wine_cv_statfs_bavail" = "yes"
3259 then
3260 cat >> confdefs.h <<\EOF
3261 #define STATFS_HAS_BAVAIL 1
3267 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3268 echo "configure:3269: checking "for working sigaltstack"" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272 if test "$cross_compiling" = yes; then
3273 ac_cv_c_working_sigaltstack="no"
3275 else
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3280 #include <stdio.h>
3281 #include <time.h> /* <sys/time.h> ? bad magic without end */
3282 #include <sys/types.h>
3283 #include <sys/signal.h>
3284 #ifdef HAVE_SYS_PARAM_H
3285 # include <sys/param.h>
3286 #endif
3287 #ifdef HAVE_SYSCALL_H
3288 # include <syscall.h>
3289 #else
3290 # ifdef HAVE_SYS_SYSCALL_H
3291 # include <sys/syscall.h>
3292 # endif
3293 #endif
3295 unsigned char *xaltstack;
3298 main(int argc,char **argv) {
3299 struct sigaltstack ss;
3301 xaltstack = malloc(16384);
3302 ss.ss_sp = xaltstack;
3303 ss.ss_size = 16384;
3304 ss.ss_flags = 0;
3305 if (sigaltstack(&ss, NULL) < 0) {
3306 /* this catches the glibc case */
3307 perror("sigaltstack");
3308 return (1); /* aka exit(1) aka fail */
3310 /* assume it works. */
3311 return 0; /* OK */
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3316 then
3317 ac_cv_c_working_sigaltstack="yes"
3318 else
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 rm -fr conftest*
3322 ac_cv_c_working_sigaltstack="no"
3324 rm -fr conftest*
3329 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3331 if test "$ac_cv_c_working_sigaltstack" = "yes"
3332 then
3333 cat >> confdefs.h <<\EOF
3334 #define HAVE_WORKING_SIGALTSTACK 1
3341 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
3342 echo "configure:3343: checking "for msg_accrights in struct msghdr"" >&5
3343 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3345 else
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3350 #include <sys/socket.h>
3351 int main() {
3352 struct msghdr hdr; hdr.msg_accrights=0
3353 ; return 0; }
3355 if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3356 rm -rf conftest*
3357 ac_cv_c_msg_accrights="yes"
3358 else
3359 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5
3361 rm -rf conftest*
3362 ac_cv_c_msg_accrights="no"
3364 rm -f conftest*
3367 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3368 if test "$ac_cv_c_msg_accrights" = "yes"
3369 then
3370 cat >> confdefs.h <<\EOF
3371 #define HAVE_MSGHDR_ACCRIGHTS 1
3377 MAKE_RULES=Make.rules
3380 trap '' 1 2 15
3381 cat > confcache <<\EOF
3382 # This file is a shell script that caches the results of configure
3383 # tests run on this system so they can be shared between configure
3384 # scripts and configure runs. It is not useful on other systems.
3385 # If it contains results you don't want to keep, you may remove or edit it.
3387 # By default, configure uses ./config.cache as the cache file,
3388 # creating it if it does not exist already. You can give configure
3389 # the --cache-file=FILE option to use a different cache file; that is
3390 # what configure does when it calls configure scripts in
3391 # subdirectories, so they share the cache.
3392 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3393 # config.status only pays attention to the cache file if you give it the
3394 # --recheck option to rerun configure.
3397 # The following way of writing the cache mishandles newlines in values,
3398 # but we know of no workaround that is simple, portable, and efficient.
3399 # So, don't put newlines in cache variables' values.
3400 # Ultrix sh set writes to stderr and can't be redirected directly,
3401 # and sets the high bit in the cache file unless we assign to the vars.
3402 (set) 2>&1 |
3403 case `(ac_space=' '; set) 2>&1` in
3404 *ac_space=\ *)
3405 # `set' does not quote correctly, so add quotes (double-quote substitution
3406 # turns \\\\ into \\, and sed turns \\ into \).
3407 sed -n \
3408 -e "s/'/'\\\\''/g" \
3409 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3412 # `set' quotes correctly as required by POSIX, so do not add quotes.
3413 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3415 esac >> confcache
3416 if cmp -s $cache_file confcache; then
3418 else
3419 if test -w $cache_file; then
3420 echo "updating cache $cache_file"
3421 cat confcache > $cache_file
3422 else
3423 echo "not updating unwritable cache $cache_file"
3426 rm -f confcache
3428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3431 # Let make expand exec_prefix.
3432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3434 # Any assignment to VPATH causes Sun make to only execute
3435 # the first set of double-colon rules, so remove it if not needed.
3436 # If there is a colon in the path, we need to keep it.
3437 if test "x$srcdir" = x.; then
3438 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3441 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3443 DEFS=-DHAVE_CONFIG_H
3445 # Without the "./", some shells look in PATH for config.status.
3446 : ${CONFIG_STATUS=./config.status}
3448 echo creating $CONFIG_STATUS
3449 rm -f $CONFIG_STATUS
3450 cat > $CONFIG_STATUS <<EOF
3451 #! /bin/sh
3452 # Generated automatically by configure.
3453 # Run this file to recreate the current configuration.
3454 # This directory was configured as follows,
3455 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3457 # $0 $ac_configure_args
3459 # Compiler output produced by configure, useful for debugging
3460 # configure, is in ./config.log if it exists.
3462 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3463 for ac_option
3465 case "\$ac_option" in
3466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3467 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3468 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3469 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3470 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3471 exit 0 ;;
3472 -help | --help | --hel | --he | --h)
3473 echo "\$ac_cs_usage"; exit 0 ;;
3474 *) echo "\$ac_cs_usage"; exit 1 ;;
3475 esac
3476 done
3478 ac_given_srcdir=$srcdir
3479 ac_given_INSTALL="$INSTALL"
3481 trap 'rm -fr `echo "
3482 Make.rules
3483 Makefile
3484 controls/Makefile
3485 debugger/Makefile
3486 dlls/Makefile
3487 dlls/comctl32/Makefile
3488 dlls/psapi/Makefile
3489 dlls/shell32/Makefile
3490 dlls/winaspi/Makefile
3491 dlls/wnaspi32/Makefile
3492 documentation/Makefile
3493 files/Makefile
3494 graphics/Makefile
3495 graphics/metafiledrv/Makefile
3496 graphics/psdrv/Makefile
3497 graphics/win16drv/Makefile
3498 graphics/x11drv/Makefile
3499 if1632/Makefile
3500 ipc/Makefile
3501 library/Makefile
3502 libtest/Makefile
3503 loader/Makefile
3504 loader/ne/Makefile
3505 loader/dos/Makefile
3506 memory/Makefile
3507 misc/Makefile
3508 miscemu/Makefile
3509 msdos/Makefile
3510 multimedia/Makefile
3511 objects/Makefile
3512 ole/Makefile
3513 programs/Makefile
3514 programs/clock/Makefile
3515 programs/control/Makefile
3516 programs/notepad/Makefile
3517 programs/progman/Makefile
3518 programs/regtest/Makefile
3519 programs/view/Makefile
3520 programs/winhelp/Makefile
3521 programs/winver/Makefile
3522 rc/Makefile
3523 relay32/Makefile
3524 resources/Makefile
3525 scheduler/Makefile
3526 server/Makefile
3527 tools/Makefile
3528 tools/wrc/Makefile
3529 tsx11/Makefile
3530 win32/Makefile
3531 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3533 cat >> $CONFIG_STATUS <<EOF
3535 # Protect against being on the right side of a sed subst in config.status.
3536 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3537 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3538 $ac_vpsub
3539 $extrasub
3540 s%@CFLAGS@%$CFLAGS%g
3541 s%@CPPFLAGS@%$CPPFLAGS%g
3542 s%@CXXFLAGS@%$CXXFLAGS%g
3543 s%@DEFS@%$DEFS%g
3544 s%@LDFLAGS@%$LDFLAGS%g
3545 s%@LIBS@%$LIBS%g
3546 s%@exec_prefix@%$exec_prefix%g
3547 s%@prefix@%$prefix%g
3548 s%@program_transform_name@%$program_transform_name%g
3549 s%@bindir@%$bindir%g
3550 s%@sbindir@%$sbindir%g
3551 s%@libexecdir@%$libexecdir%g
3552 s%@datadir@%$datadir%g
3553 s%@sysconfdir@%$sysconfdir%g
3554 s%@sharedstatedir@%$sharedstatedir%g
3555 s%@localstatedir@%$localstatedir%g
3556 s%@libdir@%$libdir%g
3557 s%@includedir@%$includedir%g
3558 s%@oldincludedir@%$oldincludedir%g
3559 s%@infodir@%$infodir%g
3560 s%@mandir@%$mandir%g
3561 s%@PROGEXT@%$PROGEXT%g
3562 s%@MAIN_TARGET@%$MAIN_TARGET%g
3563 s%@LIB_TARGET@%$LIB_TARGET%g
3564 s%@OPTIONS@%$OPTIONS%g
3565 s%@SET_MAKE@%$SET_MAKE%g
3566 s%@CC@%$CC%g
3567 s%@CPP@%$CPP%g
3568 s%@X_CFLAGS@%$X_CFLAGS%g
3569 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3570 s%@X_LIBS@%$X_LIBS%g
3571 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3572 s%@YACC@%$YACC%g
3573 s%@LEX@%$LEX%g
3574 s%@LEXLIB@%$LEXLIB%g
3575 s%@RANLIB@%$RANLIB%g
3576 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3577 s%@INSTALL_DATA@%$INSTALL_DATA%g
3578 s%@LN_S@%$LN_S%g
3579 s%@C2MAN@%$C2MAN%g
3580 s%@DLLFLAGS@%$DLLFLAGS%g
3581 /@MAKE_RULES@/r $MAKE_RULES
3582 s%@MAKE_RULES@%%g
3584 CEOF
3587 cat >> $CONFIG_STATUS <<\EOF
3589 # Split the substitutions into bite-sized pieces for seds with
3590 # small command number limits, like on Digital OSF/1 and HP-UX.
3591 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3592 ac_file=1 # Number of current file.
3593 ac_beg=1 # First line for current file.
3594 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3595 ac_more_lines=:
3596 ac_sed_cmds=""
3597 while $ac_more_lines; do
3598 if test $ac_beg -gt 1; then
3599 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3600 else
3601 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3603 if test ! -s conftest.s$ac_file; then
3604 ac_more_lines=false
3605 rm -f conftest.s$ac_file
3606 else
3607 if test -z "$ac_sed_cmds"; then
3608 ac_sed_cmds="sed -f conftest.s$ac_file"
3609 else
3610 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3612 ac_file=`expr $ac_file + 1`
3613 ac_beg=$ac_end
3614 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3616 done
3617 if test -z "$ac_sed_cmds"; then
3618 ac_sed_cmds=cat
3622 cat >> $CONFIG_STATUS <<EOF
3624 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3625 Makefile
3626 controls/Makefile
3627 debugger/Makefile
3628 dlls/Makefile
3629 dlls/comctl32/Makefile
3630 dlls/psapi/Makefile
3631 dlls/shell32/Makefile
3632 dlls/winaspi/Makefile
3633 dlls/wnaspi32/Makefile
3634 documentation/Makefile
3635 files/Makefile
3636 graphics/Makefile
3637 graphics/metafiledrv/Makefile
3638 graphics/psdrv/Makefile
3639 graphics/win16drv/Makefile
3640 graphics/x11drv/Makefile
3641 if1632/Makefile
3642 ipc/Makefile
3643 library/Makefile
3644 libtest/Makefile
3645 loader/Makefile
3646 loader/ne/Makefile
3647 loader/dos/Makefile
3648 memory/Makefile
3649 misc/Makefile
3650 miscemu/Makefile
3651 msdos/Makefile
3652 multimedia/Makefile
3653 objects/Makefile
3654 ole/Makefile
3655 programs/Makefile
3656 programs/clock/Makefile
3657 programs/control/Makefile
3658 programs/notepad/Makefile
3659 programs/progman/Makefile
3660 programs/regtest/Makefile
3661 programs/view/Makefile
3662 programs/winhelp/Makefile
3663 programs/winver/Makefile
3664 rc/Makefile
3665 relay32/Makefile
3666 resources/Makefile
3667 scheduler/Makefile
3668 server/Makefile
3669 tools/Makefile
3670 tools/wrc/Makefile
3671 tsx11/Makefile
3672 win32/Makefile
3673 windows/Makefile "}
3675 cat >> $CONFIG_STATUS <<\EOF
3676 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3678 case "$ac_file" in
3679 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3680 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3681 *) ac_file_in="${ac_file}.in" ;;
3682 esac
3684 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3686 # Remove last slash and all that follows it. Not all systems have dirname.
3687 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3688 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3689 # The file is in a subdirectory.
3690 test ! -d "$ac_dir" && mkdir "$ac_dir"
3691 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3692 # A "../" for each directory in $ac_dir_suffix.
3693 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3694 else
3695 ac_dir_suffix= ac_dots=
3698 case "$ac_given_srcdir" in
3699 .) srcdir=.
3700 if test -z "$ac_dots"; then top_srcdir=.
3701 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3702 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3703 *) # Relative path.
3704 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3705 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3706 esac
3708 case "$ac_given_INSTALL" in
3709 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3710 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3711 esac
3713 echo creating "$ac_file"
3714 rm -f "$ac_file"
3715 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3716 case "$ac_file" in
3717 *Makefile*) ac_comsub="1i\\
3718 # $configure_input" ;;
3719 *) ac_comsub= ;;
3720 esac
3722 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3723 sed -e "$ac_comsub
3724 s%@configure_input@%$configure_input%g
3725 s%@srcdir@%$srcdir%g
3726 s%@top_srcdir@%$top_srcdir%g
3727 s%@INSTALL@%$INSTALL%g
3728 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3729 fi; done
3730 rm -f conftest.s*
3732 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3733 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3735 # ac_d sets the value in "#define NAME VALUE" lines.
3736 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3737 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3738 ac_dC='\3'
3739 ac_dD='%g'
3740 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3741 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3742 ac_uB='\([ ]\)%\1#\2define\3'
3743 ac_uC=' '
3744 ac_uD='\4%g'
3745 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3746 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3747 ac_eB='$%\1#\2define\3'
3748 ac_eC=' '
3749 ac_eD='%g'
3751 if test "${CONFIG_HEADERS+set}" != set; then
3753 cat >> $CONFIG_STATUS <<EOF
3754 CONFIG_HEADERS="include/config.h"
3756 cat >> $CONFIG_STATUS <<\EOF
3758 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3759 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3760 case "$ac_file" in
3761 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3762 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3763 *) ac_file_in="${ac_file}.in" ;;
3764 esac
3766 echo creating $ac_file
3768 rm -f conftest.frag conftest.in conftest.out
3769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3770 cat $ac_file_inputs > conftest.in
3774 # Transform confdefs.h into a sed script conftest.vals that substitutes
3775 # the proper values into config.h.in to produce config.h. And first:
3776 # Protect against being on the right side of a sed subst in config.status.
3777 # Protect against being in an unquoted here document in config.status.
3778 rm -f conftest.vals
3779 cat > conftest.hdr <<\EOF
3780 s/[\\&%]/\\&/g
3781 s%[\\$`]%\\&%g
3782 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3783 s%ac_d%ac_u%gp
3784 s%ac_u%ac_e%gp
3786 sed -n -f conftest.hdr confdefs.h > conftest.vals
3787 rm -f conftest.hdr
3789 # This sed command replaces #undef with comments. This is necessary, for
3790 # example, in the case of _POSIX_SOURCE, which is predefined and required
3791 # on some systems where configure will not decide to define it.
3792 cat >> conftest.vals <<\EOF
3793 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3796 # Break up conftest.vals because some shells have a limit on
3797 # the size of here documents, and old seds have small limits too.
3799 rm -f conftest.tail
3800 while :
3802 ac_lines=`grep -c . conftest.vals`
3803 # grep -c gives empty output for an empty file on some AIX systems.
3804 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3805 # Write a limited-size here document to conftest.frag.
3806 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3807 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3808 echo 'CEOF
3809 sed -f conftest.frag conftest.in > conftest.out
3810 rm -f conftest.in
3811 mv conftest.out conftest.in
3812 ' >> $CONFIG_STATUS
3813 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3814 rm -f conftest.vals
3815 mv conftest.tail conftest.vals
3816 done
3817 rm -f conftest.vals
3819 cat >> $CONFIG_STATUS <<\EOF
3820 rm -f conftest.frag conftest.h
3821 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3822 cat conftest.in >> conftest.h
3823 rm -f conftest.in
3824 if cmp -s $ac_file conftest.h 2>/dev/null; then
3825 echo "$ac_file is unchanged"
3826 rm -f conftest.h
3827 else
3828 # Remove last slash and all that follows it. Not all systems have dirname.
3829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3831 # The file is in a subdirectory.
3832 test ! -d "$ac_dir" && mkdir "$ac_dir"
3834 rm -f $ac_file
3835 mv conftest.h $ac_file
3837 fi; done
3840 cat >> $CONFIG_STATUS <<EOF
3843 cat >> $CONFIG_STATUS <<\EOF
3845 exit 0
3847 chmod +x $CONFIG_STATUS
3848 rm -fr confdefs* $ac_clean_files
3849 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3852 if test "$wine_cv_libc_reentrant" = "no"
3853 then
3854 echo
3855 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
3856 echo "*** thread support. Consider upgrading libc to a more recent"
3857 echo "*** reentrant version of libc."
3858 echo
3861 echo
3862 echo "Configure finished. Do 'make depend; make' to compile Wine."
3863 echo