Fixed a bug.
[wine/multimedia.git] / configure
blob622f81a71e4d18a2260ae9bc5515878e443fef73
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 dlopen in -ldl""... $ac_c" 1>&6
2121 echo "configure:2122: checking for dlopen in -ldl" >&5
2122 ac_lib_var=`echo dl'_'dlopen | 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="-ldl $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 dlopen();
2136 int main() {
2137 dlopen()
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 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2157 cat >> confdefs.h <<EOF
2158 #define $ac_tr_lib 1
2161 LIBS="-ldl $LIBS"
2163 else
2164 echo "$ac_t""no" 1>&6
2167 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2168 echo "configure:2169: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2169 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 ac_save_LIBS="$LIBS"
2174 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2181 char XF86DGAQueryExtension();
2183 int main() {
2184 XF86DGAQueryExtension()
2185 ; return 0; }
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2188 rm -rf conftest*
2189 eval "ac_cv_lib_$ac_lib_var=yes"
2190 else
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 rm -rf conftest*
2194 eval "ac_cv_lib_$ac_lib_var=no"
2196 rm -f conftest*
2197 LIBS="$ac_save_LIBS"
2200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 cat >> confdefs.h <<\EOF
2203 #define HAVE_LIBXXF86DGA 1
2205 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2206 else
2207 echo "$ac_t""no" 1>&6
2211 for ac_hdr in sys/soundcard.h machine/soundcard.h
2213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_hdr" >&5
2216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 #include <$ac_hdr>
2224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225 { (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226 ac_err=`grep -v '^ *+' conftest.out`
2227 if test -z "$ac_err"; then
2228 rm -rf conftest*
2229 eval "ac_cv_header_$ac_safe=yes"
2230 else
2231 echo "$ac_err" >&5
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 rm -rf conftest*
2235 eval "ac_cv_header_$ac_safe=no"
2237 rm -f conftest*
2239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2242 cat >> confdefs.h <<EOF
2243 #define $ac_tr_hdr 1
2246 else
2247 echo "$ac_t""no" 1>&6
2249 done
2252 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2253 echo "configure:2254: checking "for Open Sound System"" >&5
2254 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2261 #ifdef HAVE_SYS_SOUNDCARD_H
2262 #include <sys/soundcard.h>
2263 #endif
2264 #ifdef HAVE_MACHINE_SOUNDCARD_H
2265 #include <machine/soundcard.h>
2266 #endif
2268 int main() {
2271 /* check for one of the Open Sound System specific SNDCTL_ defines */
2272 #if !defined(SNDCTL_DSP_STEREO)
2273 #error No open sound system
2274 #endif
2276 ; return 0; }
2278 if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 rm -rf conftest*
2280 ac_cv_c_opensoundsystem="yes"
2281 else
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 ac_cv_c_opensoundsystem="no"
2287 rm -f conftest*
2290 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2292 if test "$ac_cv_c_opensoundsystem" = "yes"
2293 then
2294 cat >> confdefs.h <<\EOF
2295 #define HAVE_OSS 1
2301 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2302 echo "configure:2303: checking "for union semun"" >&5
2303 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305 else
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <sys/types.h>
2310 #include <sys/sem.h>
2311 int main() {
2312 union semun foo
2313 ; return 0; }
2315 if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 rm -rf conftest*
2317 ac_cv_c_union_semun="yes"
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 ac_cv_c_union_semun="no"
2324 rm -f conftest*
2327 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2328 if test "$ac_cv_c_union_semun" = "yes"
2329 then
2330 cat >> confdefs.h <<\EOF
2331 #define HAVE_UNION_SEMUN 1
2336 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2339 if test "x${GCC}" = "xyes"
2340 then
2341 CFLAGS="$CFLAGS -Wall"
2342 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2343 echo "configure:2344: checking "for gcc strength-reduce bug"" >&5
2344 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347 if test "$cross_compiling" = yes; then
2348 ac_cv_c_gcc_strength_bug="yes"
2349 else
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2354 int main(void) {
2355 static int Array[3];
2356 unsigned int B = 3;
2357 int i;
2358 for(i=0; i<B; i++) Array[i] = i - 3;
2359 exit( Array[1] != -2 );
2362 if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2363 then
2364 ac_cv_c_gcc_strength_bug="no"
2365 else
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 rm -fr conftest*
2369 ac_cv_c_gcc_strength_bug="yes"
2371 rm -fr conftest*
2376 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2377 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2378 then
2379 CFLAGS="$CFLAGS -fno-strength-reduce"
2384 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2385 echo "configure:2386: checking "whether external symbols need an underscore prefix"" >&5
2386 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389 saved_libs=$LIBS
2390 LIBS="conftest_asm.s $LIBS"
2391 cat > conftest_asm.s <<EOF
2392 .globl _ac_test
2393 _ac_test:
2394 .long 0
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 extern int ac_test;
2400 int main() {
2401 if (ac_test) return 1
2402 ; return 0; }
2404 if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2405 rm -rf conftest*
2406 ac_cv_c_extern_prefix="yes"
2407 else
2408 echo "configure: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 rm -rf conftest*
2411 ac_cv_c_extern_prefix="no"
2413 rm -f conftest*
2414 LIBS=$saved_libs
2417 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2418 if test "$ac_cv_c_extern_prefix" = "yes"
2419 then
2420 cat >> confdefs.h <<\EOF
2421 #define NEED_UNDERSCORE_PREFIX 1
2427 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2428 echo "configure:2429: checking "whether assembler accepts .string"" >&5
2429 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2432 saved_libs=$LIBS
2433 LIBS="conftest_asm.s $LIBS"
2434 cat > conftest_asm.s <<EOF
2435 .string "test"
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2441 int main() {
2443 ; return 0; }
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2446 rm -rf conftest*
2447 ac_cv_c_asm_string="yes"
2448 else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 ac_cv_c_asm_string="no"
2454 rm -f conftest*
2455 LIBS=$saved_libs
2458 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2459 if test "$ac_cv_c_asm_string" = "yes"
2460 then
2461 cat >> confdefs.h <<\EOF
2462 #define HAVE_ASM_STRING 1
2468 DLLFLAGS=""
2469 if test "$LIB_TARGET" = "libwine.so.1.0"
2470 then
2471 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2472 echo "configure:2473: checking "whether we can build a dll"" >&5
2473 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 saved_cflags=$CFLAGS
2477 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2482 int main() {
2483 return 1
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2487 rm -rf conftest*
2488 ac_cv_c_dll="yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 ac_cv_c_dll="no"
2495 rm -f conftest*
2496 CFLAGS=$saved_cflags
2500 echo "$ac_t""$ac_cv_c_dll" 1>&6
2501 if test "$ac_cv_c_dll" = "yes"
2502 then
2503 DLLFLAGS="-fPIC"
2504 else
2505 LIB_TARGET="libwine.a"
2511 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
2512 echo "configure:2513: checking "for reentrant libc"" >&5
2513 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 if test "$cross_compiling" = yes; then
2517 wine_cv_libc_reentrant=yes
2518 else
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 int myerrno = 0;
2523 char buf[256];
2524 int *__errno_location(){return &myerrno;}
2525 main(){connect(0,buf,255); exit(!myerrno);}
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2528 then
2529 wine_cv_libc_reentrant=yes
2530 else
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 rm -fr conftest*
2534 wine_cv_libc_reentrant=no
2536 rm -fr conftest*
2541 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2542 if test "$wine_cv_libc_reentrant" = "no"
2543 then
2544 cat >> confdefs.h <<\EOF
2545 #define NO_REENTRANT_LIBC 1
2551 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2552 echo "configure:2553: checking "for reentrant X libraries"" >&5
2553 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2555 else
2556 if test "x$with_reentrant_x" = "xno"
2557 then
2558 wine_cv_x_reentrant=no
2559 else
2560 libX11_ckeck=none
2561 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2562 if test -r $dir/libX11.so; then
2563 libX11_check="-D $dir/libX11.so"
2564 break 1
2566 if test -r $dir/libX11.a; then
2567 libX11_check="$dir/libX11.a"
2568 break 1
2570 done
2571 if test "$libX11_check" != "none"; then
2572 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
2573 then
2574 wine_cv_x_reentrant=yes
2575 else
2576 wine_cv_x_reentrant=no
2578 else
2579 wine_cv_x_reentrant=unknown
2584 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2585 if test "$wine_cv_x_reentrant" = "no"
2586 then
2587 cat >> confdefs.h <<\EOF
2588 #define NO_REENTRANT_X11 1
2594 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
2596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_func" >&5
2598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2600 else
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $ac_func(); below. */
2606 #include <assert.h>
2607 /* Override any gcc2 internal prototype to avoid an error. */
2608 /* We use char because int might match the return type of a gcc2
2609 builtin and then its argument prototype would still apply. */
2610 char $ac_func();
2612 int main() {
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2618 choke me
2619 #else
2620 $ac_func();
2621 #endif
2623 ; return 0; }
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2626 rm -rf conftest*
2627 eval "ac_cv_func_$ac_func=yes"
2628 else
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -rf conftest*
2632 eval "ac_cv_func_$ac_func=no"
2634 rm -f conftest*
2637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2640 cat >> confdefs.h <<EOF
2641 #define $ac_tr_func 1
2644 else
2645 echo "$ac_t""no" 1>&6
2647 done
2649 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 dlfcn.h
2651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2653 echo "configure:2654: checking for $ac_hdr" >&5
2654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656 else
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <$ac_hdr>
2662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2663 { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2664 ac_err=`grep -v '^ *+' conftest.out`
2665 if test -z "$ac_err"; then
2666 rm -rf conftest*
2667 eval "ac_cv_header_$ac_safe=yes"
2668 else
2669 echo "$ac_err" >&5
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 eval "ac_cv_header_$ac_safe=no"
2675 rm -f conftest*
2677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2680 cat >> confdefs.h <<EOF
2681 #define $ac_tr_hdr 1
2684 else
2685 echo "$ac_t""no" 1>&6
2687 done
2689 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2690 echo "configure:2691: checking whether stat file-mode macros are broken" >&5
2691 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 #include <sys/types.h>
2698 #include <sys/stat.h>
2700 #if defined(S_ISBLK) && defined(S_IFDIR)
2701 # if S_ISBLK (S_IFDIR)
2702 You lose.
2703 # endif
2704 #endif
2706 #if defined(S_ISBLK) && defined(S_IFCHR)
2707 # if S_ISBLK (S_IFCHR)
2708 You lose.
2709 # endif
2710 #endif
2712 #if defined(S_ISLNK) && defined(S_IFREG)
2713 # if S_ISLNK (S_IFREG)
2714 You lose.
2715 # endif
2716 #endif
2718 #if defined(S_ISSOCK) && defined(S_IFREG)
2719 # if S_ISSOCK (S_IFREG)
2720 You lose.
2721 # endif
2722 #endif
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "You lose" >/dev/null 2>&1; then
2727 rm -rf conftest*
2728 ac_cv_header_stat_broken=yes
2729 else
2730 rm -rf conftest*
2731 ac_cv_header_stat_broken=no
2733 rm -f conftest*
2737 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2738 if test $ac_cv_header_stat_broken = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define STAT_MACROS_BROKEN 1
2745 echo $ac_n "checking for working const""... $ac_c" 1>&6
2746 echo "configure:2747: checking for working const" >&5
2747 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2754 int main() {
2756 /* Ultrix mips cc rejects this. */
2757 typedef int charset[2]; const charset x;
2758 /* SunOS 4.1.1 cc rejects this. */
2759 char const *const *ccp;
2760 char **p;
2761 /* NEC SVR4.0.2 mips cc rejects this. */
2762 struct point {int x, y;};
2763 static struct point const zero = {0,0};
2764 /* AIX XL C 1.02.0.0 rejects this.
2765 It does not let you subtract one const X* pointer from another in an arm
2766 of an if-expression whose if-part is not a constant expression */
2767 const char *g = "string";
2768 ccp = &g + (g ? g-g : 0);
2769 /* HPUX 7.0 cc rejects these. */
2770 ++ccp;
2771 p = (char**) ccp;
2772 ccp = (char const *const *) p;
2773 { /* SCO 3.2v4 cc rejects this. */
2774 char *t;
2775 char const *s = 0 ? (char *) 0 : (char const *) 0;
2777 *t++ = 0;
2779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2780 int x[] = {25, 17};
2781 const int *foo = &x[0];
2782 ++foo;
2784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2785 typedef const int *iptr;
2786 iptr p = 0;
2787 ++p;
2789 { /* AIX XL C 1.02.0.0 rejects this saying
2790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2791 struct s { int j; const int *ap[3]; };
2792 struct s *b; b->j = 5;
2794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2795 const int foo = 10;
2798 ; return 0; }
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2801 rm -rf conftest*
2802 ac_cv_c_const=yes
2803 else
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2806 rm -rf conftest*
2807 ac_cv_c_const=no
2809 rm -f conftest*
2812 echo "$ac_t""$ac_cv_c_const" 1>&6
2813 if test $ac_cv_c_const = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define const
2820 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2821 echo "configure:2822: checking for ANSI C header files" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824 else
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <stdlib.h>
2829 #include <stdarg.h>
2830 #include <string.h>
2831 #include <float.h>
2833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2834 { (eval echo configure:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2835 ac_err=`grep -v '^ *+' conftest.out`
2836 if test -z "$ac_err"; then
2837 rm -rf conftest*
2838 ac_cv_header_stdc=yes
2839 else
2840 echo "$ac_err" >&5
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 rm -rf conftest*
2844 ac_cv_header_stdc=no
2846 rm -f conftest*
2848 if test $ac_cv_header_stdc = yes; then
2849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <string.h>
2855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2856 egrep "memchr" >/dev/null 2>&1; then
2858 else
2859 rm -rf conftest*
2860 ac_cv_header_stdc=no
2862 rm -f conftest*
2866 if test $ac_cv_header_stdc = yes; then
2867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 #include <stdlib.h>
2873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2874 egrep "free" >/dev/null 2>&1; then
2876 else
2877 rm -rf conftest*
2878 ac_cv_header_stdc=no
2880 rm -f conftest*
2884 if test $ac_cv_header_stdc = yes; then
2885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2886 if test "$cross_compiling" = yes; then
2888 else
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include <ctype.h>
2893 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2894 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2896 int main () { int i; for (i = 0; i < 256; i++)
2897 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2898 exit (0); }
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2902 then
2904 else
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -fr conftest*
2908 ac_cv_header_stdc=no
2910 rm -fr conftest*
2916 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2917 if test $ac_cv_header_stdc = yes; then
2918 cat >> confdefs.h <<\EOF
2919 #define STDC_HEADERS 1
2924 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for size_t" >&5
2926 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2933 #if STDC_HEADERS
2934 #include <stdlib.h>
2935 #include <stddef.h>
2936 #endif
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2940 rm -rf conftest*
2941 ac_cv_type_size_t=yes
2942 else
2943 rm -rf conftest*
2944 ac_cv_type_size_t=no
2946 rm -f conftest*
2949 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2950 if test $ac_cv_type_size_t = no; then
2951 cat >> confdefs.h <<\EOF
2952 #define size_t unsigned
2957 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2958 echo "configure:2959: checking size of long long" >&5
2959 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 if test "$cross_compiling" = yes; then
2963 ac_cv_sizeof_long_long=0
2964 else
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <stdio.h>
2969 main()
2971 FILE *f=fopen("conftestval", "w");
2972 if (!f) exit(1);
2973 fprintf(f, "%d\n", sizeof(long long));
2974 exit(0);
2977 if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2978 then
2979 ac_cv_sizeof_long_long=`cat conftestval`
2980 else
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983 rm -fr conftest*
2984 ac_cv_sizeof_long_long=0
2986 rm -fr conftest*
2990 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2991 cat >> confdefs.h <<EOF
2992 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2998 if test $ac_cv_func_sendmsg = no; then
2999 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
3000 echo "configure:3001: checking for sendmsg in -lsocket" >&5
3001 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
3002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004 else
3005 ac_save_LIBS="$LIBS"
3006 LIBS="-lsocket $LIBS"
3007 cat > conftest.$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3013 char sendmsg();
3015 int main() {
3016 sendmsg()
3017 ; return 0; }
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3020 rm -rf conftest*
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 eval "ac_cv_lib_$ac_lib_var=no"
3028 rm -f conftest*
3029 LIBS="$ac_save_LIBS"
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h <<EOF
3037 #define $ac_tr_lib 1
3040 LIBS="-lsocket $LIBS"
3042 else
3043 echo "$ac_t""no" 1>&6
3049 if test "$ac_cv_header_sys_vfs_h" = "yes"
3050 then
3051 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3052 echo "configure:3053: checking "whether sys/vfs.h defines statfs"" >&5
3053 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3055 else
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3060 #include <sys/types.h>
3061 #ifdef HAVE_SYS_PARAM_H
3062 # include <sys/param.h>
3063 #endif
3064 #include <sys/vfs.h>
3066 int main() {
3068 struct statfs stfs;
3070 memset(&stfs,0,sizeof(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_vfs_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_vfs_has_statfs=no
3084 rm -f conftest*
3088 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3089 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3090 then
3091 cat >> confdefs.h <<\EOF
3092 #define STATFS_DEFINED_BY_SYS_VFS 1
3098 if test "$ac_cv_header_sys_statfs_h" = "yes"
3099 then
3100 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
3101 echo "configure:3102: checking "whether sys/statfs.h defines statfs"" >&5
3102 if eval "test \"`echo '$''{'wine_cv_sys_statfs_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/statfs.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_statfs_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_statfs_has_statfs=no
3131 rm -f conftest*
3135 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3136 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3137 then
3138 cat >> confdefs.h <<\EOF
3139 #define STATFS_DEFINED_BY_SYS_STATFS 1
3145 if test "$ac_cv_header_sys_mount_h" = "yes"
3146 then
3147 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
3148 echo "configure:3149: checking "whether sys/mount.h defines statfs"" >&5
3149 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3151 else
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3156 #include <sys/types.h>
3157 #ifdef HAVE_SYS_PARAM_H
3158 # include <sys/param.h>
3159 #endif
3160 #include <sys/mount.h>
3162 int main() {
3164 struct statfs stfs;
3166 ; return 0; }
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 rm -rf conftest*
3170 wine_cv_sys_mount_has_statfs=yes
3171 else
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 rm -rf conftest*
3175 wine_cv_sys_mount_has_statfs=no
3178 rm -f conftest*
3182 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3183 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3184 then
3185 cat >> confdefs.h <<\EOF
3186 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3193 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
3194 echo "configure:3195: checking "for statfs.f_bfree"" >&5
3195 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3197 else
3198 if test "x$statfs_bfree" = "xno"
3199 then
3200 wine_cv_statfs_bfree=no
3201 else
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3206 #include <sys/types.h>
3207 #ifdef HAVE_SYS_PARAM_H
3208 # include <sys/param.h>
3209 #endif
3210 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3211 # include <sys/mount.h>
3212 #else
3213 # ifdef STATFS_DEFINED_BY_SYS_VFS
3214 # include <sys/vfs.h>
3215 # else
3216 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3217 # include <sys/statfs.h>
3218 # endif
3219 # endif
3220 #endif
3222 int main() {
3224 struct statfs stfs;
3226 stfs.f_bfree++;
3228 ; return 0; }
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 rm -rf conftest*
3232 wine_cv_statfs_bfree=yes
3233 else
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 rm -rf conftest*
3237 wine_cv_statfs_bfree=no
3240 rm -f conftest*
3244 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3245 if test "$wine_cv_statfs_bfree" = "yes"
3246 then
3247 cat >> confdefs.h <<\EOF
3248 #define STATFS_HAS_BFREE 1
3253 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3254 echo "configure:3255: checking "for statfs.f_bavail"" >&5
3255 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258 if test "x$statfs_bavail" = "xno"
3259 then
3260 wine_cv_statfs_bavail=no
3261 else
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3266 #include <sys/types.h>
3267 #ifdef HAVE_SYS_PARAM_H
3268 # include <sys/param.h>
3269 #endif
3270 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3271 # include <sys/mount.h>
3272 #else
3273 # ifdef STATFS_DEFINED_BY_SYS_VFS
3274 # include <sys/vfs.h>
3275 # else
3276 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3277 # include <sys/statfs.h>
3278 # endif
3279 # endif
3280 #endif
3282 int main() {
3284 struct statfs stfs;
3286 stfs.f_bavail++;
3288 ; return 0; }
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3291 rm -rf conftest*
3292 wine_cv_statfs_bavail=yes
3293 else
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 rm -rf conftest*
3297 wine_cv_statfs_bavail=no
3300 rm -f conftest*
3304 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3305 if test "$wine_cv_statfs_bavail" = "yes"
3306 then
3307 cat >> confdefs.h <<\EOF
3308 #define STATFS_HAS_BAVAIL 1
3314 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3315 echo "configure:3316: checking "for working sigaltstack"" >&5
3316 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319 if test "$cross_compiling" = yes; then
3320 ac_cv_c_working_sigaltstack="no"
3322 else
3323 cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3327 #include <stdio.h>
3328 #include <time.h> /* <sys/time.h> ? bad magic without end */
3329 #include <sys/types.h>
3330 #include <sys/signal.h>
3331 #ifdef HAVE_SYS_PARAM_H
3332 # include <sys/param.h>
3333 #endif
3334 #ifdef HAVE_SYSCALL_H
3335 # include <syscall.h>
3336 #else
3337 # ifdef HAVE_SYS_SYSCALL_H
3338 # include <sys/syscall.h>
3339 # endif
3340 #endif
3342 unsigned char *xaltstack;
3345 main(int argc,char **argv) {
3346 struct sigaltstack ss;
3348 xaltstack = malloc(16384);
3349 ss.ss_sp = xaltstack;
3350 ss.ss_size = 16384;
3351 ss.ss_flags = 0;
3352 if (sigaltstack(&ss, NULL) < 0) {
3353 /* this catches the glibc case */
3354 perror("sigaltstack");
3355 return (1); /* aka exit(1) aka fail */
3357 /* assume it works. */
3358 return 0; /* OK */
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3363 then
3364 ac_cv_c_working_sigaltstack="yes"
3365 else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -fr conftest*
3369 ac_cv_c_working_sigaltstack="no"
3371 rm -fr conftest*
3376 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3378 if test "$ac_cv_c_working_sigaltstack" = "yes"
3379 then
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_WORKING_SIGALTSTACK 1
3388 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
3389 echo "configure:3390: checking "for msg_accrights in struct msghdr"" >&5
3390 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3392 else
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <sys/types.h>
3397 #include <sys/socket.h>
3398 int main() {
3399 struct msghdr hdr; hdr.msg_accrights=0
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3403 rm -rf conftest*
3404 ac_cv_c_msg_accrights="yes"
3405 else
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 ac_cv_c_msg_accrights="no"
3411 rm -f conftest*
3414 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3415 if test "$ac_cv_c_msg_accrights" = "yes"
3416 then
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_MSGHDR_ACCRIGHTS 1
3424 MAKE_RULES=Make.rules
3427 trap '' 1 2 15
3428 cat > confcache <<\EOF
3429 # This file is a shell script that caches the results of configure
3430 # tests run on this system so they can be shared between configure
3431 # scripts and configure runs. It is not useful on other systems.
3432 # If it contains results you don't want to keep, you may remove or edit it.
3434 # By default, configure uses ./config.cache as the cache file,
3435 # creating it if it does not exist already. You can give configure
3436 # the --cache-file=FILE option to use a different cache file; that is
3437 # what configure does when it calls configure scripts in
3438 # subdirectories, so they share the cache.
3439 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3440 # config.status only pays attention to the cache file if you give it the
3441 # --recheck option to rerun configure.
3444 # The following way of writing the cache mishandles newlines in values,
3445 # but we know of no workaround that is simple, portable, and efficient.
3446 # So, don't put newlines in cache variables' values.
3447 # Ultrix sh set writes to stderr and can't be redirected directly,
3448 # and sets the high bit in the cache file unless we assign to the vars.
3449 (set) 2>&1 |
3450 case `(ac_space=' '; set) 2>&1` in
3451 *ac_space=\ *)
3452 # `set' does not quote correctly, so add quotes (double-quote substitution
3453 # turns \\\\ into \\, and sed turns \\ into \).
3454 sed -n \
3455 -e "s/'/'\\\\''/g" \
3456 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3459 # `set' quotes correctly as required by POSIX, so do not add quotes.
3460 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3462 esac >> confcache
3463 if cmp -s $cache_file confcache; then
3465 else
3466 if test -w $cache_file; then
3467 echo "updating cache $cache_file"
3468 cat confcache > $cache_file
3469 else
3470 echo "not updating unwritable cache $cache_file"
3473 rm -f confcache
3475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3478 # Let make expand exec_prefix.
3479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3481 # Any assignment to VPATH causes Sun make to only execute
3482 # the first set of double-colon rules, so remove it if not needed.
3483 # If there is a colon in the path, we need to keep it.
3484 if test "x$srcdir" = x.; then
3485 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3488 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3490 DEFS=-DHAVE_CONFIG_H
3492 # Without the "./", some shells look in PATH for config.status.
3493 : ${CONFIG_STATUS=./config.status}
3495 echo creating $CONFIG_STATUS
3496 rm -f $CONFIG_STATUS
3497 cat > $CONFIG_STATUS <<EOF
3498 #! /bin/sh
3499 # Generated automatically by configure.
3500 # Run this file to recreate the current configuration.
3501 # This directory was configured as follows,
3502 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3504 # $0 $ac_configure_args
3506 # Compiler output produced by configure, useful for debugging
3507 # configure, is in ./config.log if it exists.
3509 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3510 for ac_option
3512 case "\$ac_option" in
3513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3514 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3515 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3516 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3517 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3518 exit 0 ;;
3519 -help | --help | --hel | --he | --h)
3520 echo "\$ac_cs_usage"; exit 0 ;;
3521 *) echo "\$ac_cs_usage"; exit 1 ;;
3522 esac
3523 done
3525 ac_given_srcdir=$srcdir
3526 ac_given_INSTALL="$INSTALL"
3528 trap 'rm -fr `echo "
3529 Make.rules
3530 Makefile
3531 controls/Makefile
3532 debugger/Makefile
3533 dlls/Makefile
3534 dlls/comctl32/Makefile
3535 dlls/psapi/Makefile
3536 dlls/shell32/Makefile
3537 dlls/winaspi/Makefile
3538 dlls/wnaspi32/Makefile
3539 documentation/Makefile
3540 files/Makefile
3541 graphics/Makefile
3542 graphics/metafiledrv/Makefile
3543 graphics/psdrv/Makefile
3544 graphics/win16drv/Makefile
3545 graphics/x11drv/Makefile
3546 if1632/Makefile
3547 ipc/Makefile
3548 library/Makefile
3549 libtest/Makefile
3550 loader/Makefile
3551 loader/ne/Makefile
3552 loader/dos/Makefile
3553 memory/Makefile
3554 misc/Makefile
3555 miscemu/Makefile
3556 msdos/Makefile
3557 multimedia/Makefile
3558 objects/Makefile
3559 ole/Makefile
3560 programs/Makefile
3561 programs/clock/Makefile
3562 programs/control/Makefile
3563 programs/notepad/Makefile
3564 programs/progman/Makefile
3565 programs/regtest/Makefile
3566 programs/view/Makefile
3567 programs/winhelp/Makefile
3568 programs/winver/Makefile
3569 rc/Makefile
3570 relay32/Makefile
3571 resources/Makefile
3572 scheduler/Makefile
3573 server/Makefile
3574 tools/Makefile
3575 tools/wrc/Makefile
3576 tsx11/Makefile
3577 win32/Makefile
3578 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3580 cat >> $CONFIG_STATUS <<EOF
3582 # Protect against being on the right side of a sed subst in config.status.
3583 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3584 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3585 $ac_vpsub
3586 $extrasub
3587 s%@CFLAGS@%$CFLAGS%g
3588 s%@CPPFLAGS@%$CPPFLAGS%g
3589 s%@CXXFLAGS@%$CXXFLAGS%g
3590 s%@DEFS@%$DEFS%g
3591 s%@LDFLAGS@%$LDFLAGS%g
3592 s%@LIBS@%$LIBS%g
3593 s%@exec_prefix@%$exec_prefix%g
3594 s%@prefix@%$prefix%g
3595 s%@program_transform_name@%$program_transform_name%g
3596 s%@bindir@%$bindir%g
3597 s%@sbindir@%$sbindir%g
3598 s%@libexecdir@%$libexecdir%g
3599 s%@datadir@%$datadir%g
3600 s%@sysconfdir@%$sysconfdir%g
3601 s%@sharedstatedir@%$sharedstatedir%g
3602 s%@localstatedir@%$localstatedir%g
3603 s%@libdir@%$libdir%g
3604 s%@includedir@%$includedir%g
3605 s%@oldincludedir@%$oldincludedir%g
3606 s%@infodir@%$infodir%g
3607 s%@mandir@%$mandir%g
3608 s%@PROGEXT@%$PROGEXT%g
3609 s%@MAIN_TARGET@%$MAIN_TARGET%g
3610 s%@LIB_TARGET@%$LIB_TARGET%g
3611 s%@OPTIONS@%$OPTIONS%g
3612 s%@SET_MAKE@%$SET_MAKE%g
3613 s%@CC@%$CC%g
3614 s%@CPP@%$CPP%g
3615 s%@X_CFLAGS@%$X_CFLAGS%g
3616 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3617 s%@X_LIBS@%$X_LIBS%g
3618 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3619 s%@YACC@%$YACC%g
3620 s%@LEX@%$LEX%g
3621 s%@LEXLIB@%$LEXLIB%g
3622 s%@RANLIB@%$RANLIB%g
3623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3624 s%@INSTALL_DATA@%$INSTALL_DATA%g
3625 s%@LN_S@%$LN_S%g
3626 s%@C2MAN@%$C2MAN%g
3627 s%@DLLFLAGS@%$DLLFLAGS%g
3628 /@MAKE_RULES@/r $MAKE_RULES
3629 s%@MAKE_RULES@%%g
3631 CEOF
3634 cat >> $CONFIG_STATUS <<\EOF
3636 # Split the substitutions into bite-sized pieces for seds with
3637 # small command number limits, like on Digital OSF/1 and HP-UX.
3638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3639 ac_file=1 # Number of current file.
3640 ac_beg=1 # First line for current file.
3641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3642 ac_more_lines=:
3643 ac_sed_cmds=""
3644 while $ac_more_lines; do
3645 if test $ac_beg -gt 1; then
3646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3647 else
3648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3650 if test ! -s conftest.s$ac_file; then
3651 ac_more_lines=false
3652 rm -f conftest.s$ac_file
3653 else
3654 if test -z "$ac_sed_cmds"; then
3655 ac_sed_cmds="sed -f conftest.s$ac_file"
3656 else
3657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3659 ac_file=`expr $ac_file + 1`
3660 ac_beg=$ac_end
3661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3663 done
3664 if test -z "$ac_sed_cmds"; then
3665 ac_sed_cmds=cat
3669 cat >> $CONFIG_STATUS <<EOF
3671 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3672 Makefile
3673 controls/Makefile
3674 debugger/Makefile
3675 dlls/Makefile
3676 dlls/comctl32/Makefile
3677 dlls/psapi/Makefile
3678 dlls/shell32/Makefile
3679 dlls/winaspi/Makefile
3680 dlls/wnaspi32/Makefile
3681 documentation/Makefile
3682 files/Makefile
3683 graphics/Makefile
3684 graphics/metafiledrv/Makefile
3685 graphics/psdrv/Makefile
3686 graphics/win16drv/Makefile
3687 graphics/x11drv/Makefile
3688 if1632/Makefile
3689 ipc/Makefile
3690 library/Makefile
3691 libtest/Makefile
3692 loader/Makefile
3693 loader/ne/Makefile
3694 loader/dos/Makefile
3695 memory/Makefile
3696 misc/Makefile
3697 miscemu/Makefile
3698 msdos/Makefile
3699 multimedia/Makefile
3700 objects/Makefile
3701 ole/Makefile
3702 programs/Makefile
3703 programs/clock/Makefile
3704 programs/control/Makefile
3705 programs/notepad/Makefile
3706 programs/progman/Makefile
3707 programs/regtest/Makefile
3708 programs/view/Makefile
3709 programs/winhelp/Makefile
3710 programs/winver/Makefile
3711 rc/Makefile
3712 relay32/Makefile
3713 resources/Makefile
3714 scheduler/Makefile
3715 server/Makefile
3716 tools/Makefile
3717 tools/wrc/Makefile
3718 tsx11/Makefile
3719 win32/Makefile
3720 windows/Makefile "}
3722 cat >> $CONFIG_STATUS <<\EOF
3723 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3725 case "$ac_file" in
3726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3728 *) ac_file_in="${ac_file}.in" ;;
3729 esac
3731 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3733 # Remove last slash and all that follows it. Not all systems have dirname.
3734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3736 # The file is in a subdirectory.
3737 test ! -d "$ac_dir" && mkdir "$ac_dir"
3738 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3739 # A "../" for each directory in $ac_dir_suffix.
3740 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3741 else
3742 ac_dir_suffix= ac_dots=
3745 case "$ac_given_srcdir" in
3746 .) srcdir=.
3747 if test -z "$ac_dots"; then top_srcdir=.
3748 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3749 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3750 *) # Relative path.
3751 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3752 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3753 esac
3755 case "$ac_given_INSTALL" in
3756 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3757 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3758 esac
3760 echo creating "$ac_file"
3761 rm -f "$ac_file"
3762 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3763 case "$ac_file" in
3764 *Makefile*) ac_comsub="1i\\
3765 # $configure_input" ;;
3766 *) ac_comsub= ;;
3767 esac
3769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3770 sed -e "$ac_comsub
3771 s%@configure_input@%$configure_input%g
3772 s%@srcdir@%$srcdir%g
3773 s%@top_srcdir@%$top_srcdir%g
3774 s%@INSTALL@%$INSTALL%g
3775 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3776 fi; done
3777 rm -f conftest.s*
3779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3782 # ac_d sets the value in "#define NAME VALUE" lines.
3783 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3784 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3785 ac_dC='\3'
3786 ac_dD='%g'
3787 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3788 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3789 ac_uB='\([ ]\)%\1#\2define\3'
3790 ac_uC=' '
3791 ac_uD='\4%g'
3792 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3793 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3794 ac_eB='$%\1#\2define\3'
3795 ac_eC=' '
3796 ac_eD='%g'
3798 if test "${CONFIG_HEADERS+set}" != set; then
3800 cat >> $CONFIG_STATUS <<EOF
3801 CONFIG_HEADERS="include/config.h"
3803 cat >> $CONFIG_STATUS <<\EOF
3805 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3807 case "$ac_file" in
3808 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3809 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3810 *) ac_file_in="${ac_file}.in" ;;
3811 esac
3813 echo creating $ac_file
3815 rm -f conftest.frag conftest.in conftest.out
3816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3817 cat $ac_file_inputs > conftest.in
3821 # Transform confdefs.h into a sed script conftest.vals that substitutes
3822 # the proper values into config.h.in to produce config.h. And first:
3823 # Protect against being on the right side of a sed subst in config.status.
3824 # Protect against being in an unquoted here document in config.status.
3825 rm -f conftest.vals
3826 cat > conftest.hdr <<\EOF
3827 s/[\\&%]/\\&/g
3828 s%[\\$`]%\\&%g
3829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3830 s%ac_d%ac_u%gp
3831 s%ac_u%ac_e%gp
3833 sed -n -f conftest.hdr confdefs.h > conftest.vals
3834 rm -f conftest.hdr
3836 # This sed command replaces #undef with comments. This is necessary, for
3837 # example, in the case of _POSIX_SOURCE, which is predefined and required
3838 # on some systems where configure will not decide to define it.
3839 cat >> conftest.vals <<\EOF
3840 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3843 # Break up conftest.vals because some shells have a limit on
3844 # the size of here documents, and old seds have small limits too.
3846 rm -f conftest.tail
3847 while :
3849 ac_lines=`grep -c . conftest.vals`
3850 # grep -c gives empty output for an empty file on some AIX systems.
3851 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3852 # Write a limited-size here document to conftest.frag.
3853 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3854 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3855 echo 'CEOF
3856 sed -f conftest.frag conftest.in > conftest.out
3857 rm -f conftest.in
3858 mv conftest.out conftest.in
3859 ' >> $CONFIG_STATUS
3860 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3861 rm -f conftest.vals
3862 mv conftest.tail conftest.vals
3863 done
3864 rm -f conftest.vals
3866 cat >> $CONFIG_STATUS <<\EOF
3867 rm -f conftest.frag conftest.h
3868 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3869 cat conftest.in >> conftest.h
3870 rm -f conftest.in
3871 if cmp -s $ac_file conftest.h 2>/dev/null; then
3872 echo "$ac_file is unchanged"
3873 rm -f conftest.h
3874 else
3875 # Remove last slash and all that follows it. Not all systems have dirname.
3876 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3878 # The file is in a subdirectory.
3879 test ! -d "$ac_dir" && mkdir "$ac_dir"
3881 rm -f $ac_file
3882 mv conftest.h $ac_file
3884 fi; done
3887 cat >> $CONFIG_STATUS <<EOF
3890 cat >> $CONFIG_STATUS <<\EOF
3892 exit 0
3894 chmod +x $CONFIG_STATUS
3895 rm -fr confdefs* $ac_clean_files
3896 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3899 if test "$wine_cv_libc_reentrant" = "no"
3900 then
3901 echo
3902 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
3903 echo "*** thread support. Consider upgrading libc to a more recent"
3904 echo "*** reentrant version of libc."
3905 echo
3908 echo
3909 echo "Configure finished. Do 'make depend; make' to compile Wine."
3910 echo