The Zw... Functions in ntdll.dll are just alternate entry
[wine/multimedia.git] / configure
blobf401e626b3d3213e173137c94d654b6e0885f676
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 --with-ncurses compile in the ncurses terminal (EXPERIMENTAL)"
27 ac_help="$ac_help
28 --without-reentrant-x compile for use with non-reentrant X libraries"
29 ac_help="$ac_help
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 # Maximum number of lines to put in a shell here document.
70 ac_max_here_lines=12
72 ac_prev=
73 for ac_option
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
79 ac_prev=
80 continue
83 case "$ac_option" in
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 *) ac_optarg= ;;
86 esac
88 # Accept the important Cygnus configure options, so we can diagnose typos.
90 case "$ac_option" in
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 ac_prev=bindir ;;
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
98 ac_prev=build ;;
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 ac_prev=datadir ;;
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 | --da=*)
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 case "$ac_option" in
132 *=*) ;;
133 *) ac_optarg=yes ;;
134 esac
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
148 with_gas=yes ;;
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
153 cat << EOF
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
156 Configuration:
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
164 [$ac_default_prefix]
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 [same as prefix]
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
171 [PREFIX/share]
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 [PREFIX/com]
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
187 cat << EOF
188 Host type:
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
203 exit 0 ;;
205 -host | --host | --hos | --ho)
206 ac_prev=host ;;
207 -host=* | --host=* | --hos=* | --ho=*)
208 host="$ac_optarg" ;;
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 ac_prev=infodir ;;
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
223 ac_prev=libdir ;;
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 ac_prev=mandir ;;
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
248 -nfp | --nfp | --nf)
249 # Obsolete; use --without-fp.
250 with_fp=no ;;
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 | --no-cr | --no-c)
254 no_create=yes ;;
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
258 no_recursion=yes ;;
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 ac_prev=prefix ;;
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
307 silent=yes ;;
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 ac_prev=sbindir ;;
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 | --sbi=* | --sb=*)
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
318 | --sha | --sh)
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 | --sha=* | --sh=*)
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
327 ac_prev=site ;;
328 -site=* | --site=* | --sit=*)
329 site="$ac_optarg" ;;
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 ac_prev=srcdir ;;
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
344 ac_prev=target ;;
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
349 verbose=yes ;;
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.12"
353 exit 0 ;;
355 -with-* | --with-*)
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 case "$ac_option" in
363 *=*) ;;
364 *) ac_optarg=yes ;;
365 esac
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
377 --x)
378 # Obsolete; use --with-x.
379 with_x=yes ;;
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 nonopt="$ac_option"
408 esac
409 done
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
418 # 0 standard input
419 # 1 file creation
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
426 exec 6>/dev/null
427 else
428 exec 6>&1
430 exec 5>./config.log
432 echo "\
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
435 " 1>&5
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
439 ac_configure_args=
440 for ac_arg
442 case "$ac_arg" in
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 esac
451 done
453 # NLS nuisances.
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 echo > confdefs.h
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=controls/edit.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
476 ac_prog=$0
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 srcdir=$ac_confdir
480 if test ! -r $srcdir/$ac_unique_file; then
481 srcdir=..
483 else
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 else
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 else
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
506 . "$ac_site_file"
508 done
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
512 . $cache_file
513 else
514 echo "creating cache $cache_file"
515 > $cache_file
518 ac_ext=c
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528 ac_n= ac_c='
529 ' ac_t=' '
530 else
531 ac_n=-n ac_c= ac_t=
533 else
534 ac_n= ac_c='\c' ac_t=
539 ac_aux_dir=
540 for ac_dir in tools $srcdir/tools; do
541 if test -f $ac_dir/install-sh; then
542 ac_aux_dir=$ac_dir
543 ac_install_sh="$ac_aux_dir/install-sh -c"
544 break
545 elif test -f $ac_dir/install.sh; then
546 ac_aux_dir=$ac_dir
547 ac_install_sh="$ac_aux_dir/install.sh -c"
548 break
550 done
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
554 ac_config_guess=$ac_aux_dir/config.guess
555 ac_config_sub=$ac_aux_dir/config.sub
556 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 # We want these before the checks, so the checks can modify their values.
560 LIBS="$LIBS -lm"
561 test -z "$PROGEXT" && PROGEXT=""
564 MAIN_TARGET=emu
565 LIB_TARGET=libwine.a
566 ALT_LINK=" "
567 TRACE_MSGS=yes # the TRACE() macro
568 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
570 # Check whether --enable-emulator or --disable-emulator was given.
571 if test "${enable_emulator+set}" = set; then
572 enableval="$enable_emulator"
573 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
577 # Check whether --enable-dll or --disable-dll was given.
578 if test "${enable_dll+set}" = set; then
579 enableval="$enable_dll"
580 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
584 # Check whether --enable-lib or --disable-lib was given.
585 if test "${enable_lib+set}" = set; then
586 enableval="$enable_lib"
587 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval="$enable_debug"
595 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
599 # Check whether --enable-trace or --disable-trace was given.
600 if test "${enable_trace+set}" = set; then
601 enableval="$enable_trace"
602 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
606 # Check whether --with-ncurses or --without-ncurses was given.
607 if test "${with_ncurses+set}" = set; then
608 withval="$with_ncurses"
609 if test "$withval" = "yes"; then LIBS="$LIBS -lncurses"; cat >> confdefs.h <<\EOF
610 #define WINE_NCURSES 1
616 # Check whether --with-reentrant-x or --without-reentrant-x was given.
617 if test "${with_reentrant_x+set}" = set; then
618 withval="$with_reentrant_x"
628 if test "$DEBUG_MSGS" = "no"
629 then
630 cat >> confdefs.h <<\EOF
631 #define NO_DEBUG_MSGS 1
634 cat >> confdefs.h <<\EOF
635 #define NO_TRACE_MSGS 1
638 else
639 if test "$TRACE_MSGS" = "no"
640 then
641 cat >> confdefs.h <<\EOF
642 #define NO_TRACE_MSGS 1
649 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
650 echo "configure:651: checking whether ${MAKE-make} sets \${MAKE}" >&5
651 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
652 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654 else
655 cat > conftestmake <<\EOF
656 all:
657 @echo 'ac_maketemp="${MAKE}"'
659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
660 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
661 if test -n "$ac_maketemp"; then
662 eval ac_cv_prog_make_${ac_make}_set=yes
663 else
664 eval ac_cv_prog_make_${ac_make}_set=no
666 rm -f conftestmake
668 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
669 echo "$ac_t""yes" 1>&6
670 SET_MAKE=
671 else
672 echo "$ac_t""no" 1>&6
673 SET_MAKE="MAKE=${MAKE-make}"
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685 else
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
687 for ac_dir in $PATH; do
688 test -z "$ac_dir" && ac_dir=.
689 if test -f $ac_dir/$ac_word; then
690 ac_cv_prog_CC="gcc"
691 break
693 done
694 IFS="$ac_save_ifs"
697 CC="$ac_cv_prog_CC"
698 if test -n "$CC"; then
699 echo "$ac_t""$CC" 1>&6
700 else
701 echo "$ac_t""no" 1>&6
704 if test -z "$CC"; then
705 # Extract the first word of "cc", so it can be a program name with args.
706 set dummy cc; ac_word=$2
707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
708 echo "configure:709: checking for $ac_word" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
711 else
712 if test -n "$CC"; then
713 ac_cv_prog_CC="$CC" # Let the user override the test.
714 else
715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
716 ac_prog_rejected=no
717 for ac_dir in $PATH; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
724 ac_cv_prog_CC="cc"
725 break
727 done
728 IFS="$ac_save_ifs"
729 if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
745 CC="$ac_cv_prog_CC"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748 else
749 echo "$ac_t""no" 1>&6
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
758 ac_ext=c
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 cat > conftest.$ac_ext <<EOF
766 #line 767 "configure"
767 #include "confdefs.h"
768 main(){return(0);}
770 if { (eval echo configure:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
771 ac_cv_prog_cc_works=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (./conftest; exit) 2>/dev/null; then
774 ac_cv_prog_cc_cross=no
775 else
776 ac_cv_prog_cc_cross=yes
778 else
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
781 ac_cv_prog_cc_works=no
783 rm -fr conftest*
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798 else
799 cat > conftest.c <<EOF
800 #ifdef __GNUC__
801 yes;
802 #endif
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805 ac_cv_prog_gcc=yes
806 else
807 ac_cv_prog_gcc=no
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813 if test $ac_cv_prog_gcc = yes; then
814 GCC=yes
815 ac_test_CFLAGS="${CFLAGS+set}"
816 ac_save_CFLAGS="$CFLAGS"
817 CFLAGS=
818 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
819 echo "configure:820: checking whether ${CC-cc} accepts -g" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
822 else
823 echo 'void f(){}' > conftest.c
824 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
825 ac_cv_prog_cc_g=yes
826 else
827 ac_cv_prog_cc_g=no
829 rm -f conftest*
833 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
834 if test "$ac_test_CFLAGS" = set; then
835 CFLAGS="$ac_save_CFLAGS"
836 elif test $ac_cv_prog_cc_g = yes; then
837 CFLAGS="-g -O2"
838 else
839 CFLAGS="-O2"
841 else
842 GCC=
843 test "${CFLAGS+set}" = set || CFLAGS="-g"
846 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
847 echo "configure:848: checking how to run the C preprocessor" >&5
848 # On Suns, sometimes $CPP names a directory.
849 if test -n "$CPP" && test -d "$CPP"; then
850 CPP=
852 if test -z "$CPP"; then
853 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855 else
856 # This must be in double quotes, not single quotes, because CPP may get
857 # substituted into the Makefile and "${CC-cc}" will confuse make.
858 CPP="${CC-cc} -E"
859 # On the NeXT, cc -E runs the code through the compiler's parser,
860 # not just through cpp.
861 cat > conftest.$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
864 #include <assert.h>
865 Syntax Error
867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err=`grep -v '^ *+' conftest.out`
870 if test -z "$ac_err"; then
872 else
873 echo "$ac_err" >&5
874 echo "configure: failed program was:" >&5
875 cat conftest.$ac_ext >&5
876 rm -rf conftest*
877 CPP="${CC-cc} -E -traditional-cpp"
878 cat > conftest.$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
881 #include <assert.h>
882 Syntax Error
884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err=`grep -v '^ *+' conftest.out`
887 if test -z "$ac_err"; then
889 else
890 echo "$ac_err" >&5
891 echo "configure: failed program was:" >&5
892 cat conftest.$ac_ext >&5
893 rm -rf conftest*
894 CPP=/lib/cpp
896 rm -f conftest*
898 rm -f conftest*
899 ac_cv_prog_CPP="$CPP"
901 CPP="$ac_cv_prog_CPP"
902 else
903 ac_cv_prog_CPP="$CPP"
905 echo "$ac_t""$CPP" 1>&6
907 # If we find X, set shell vars x_includes and x_libraries to the
908 # paths, otherwise set no_x=yes.
909 # Uses ac_ vars as temps to allow command line to override cache and checks.
910 # --without-x overrides everything else, but does not touch the cache.
911 echo $ac_n "checking for X""... $ac_c" 1>&6
912 echo "configure:913: checking for X" >&5
914 # Check whether --with-x or --without-x was given.
915 if test "${with_x+set}" = set; then
916 withval="$with_x"
920 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
921 if test "x$with_x" = xno; then
922 # The user explicitly disabled X.
923 have_x=disabled
924 else
925 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
926 # Both variables are already set.
927 have_x=yes
928 else
929 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
931 else
932 # One or both of the vars are not set, and there is no cached value.
933 ac_x_includes=NO ac_x_libraries=NO
934 rm -fr conftestdir
935 if mkdir conftestdir; then
936 cd conftestdir
937 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
938 cat > Imakefile <<'EOF'
939 acfindx:
940 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
942 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
944 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
945 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
946 for ac_extension in a so sl; do
947 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
948 test -f $ac_im_libdir/libX11.$ac_extension; then
949 ac_im_usrlibdir=$ac_im_libdir; break
951 done
952 # Screen out bogus values from the imake configuration. They are
953 # bogus both because they are the default anyway, and because
954 # using them would break gcc on systems where it needs fixed includes.
955 case "$ac_im_incroot" in
956 /usr/include) ;;
957 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
958 esac
959 case "$ac_im_usrlibdir" in
960 /usr/lib | /lib) ;;
961 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
962 esac
964 cd ..
965 rm -fr conftestdir
968 if test "$ac_x_includes" = NO; then
969 # Guess where to find include files, by looking for this one X11 .h file.
970 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
972 # First, try using that file with no special directory specified.
973 cat > conftest.$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
976 #include <$x_direct_test_include>
978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
979 { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
980 ac_err=`grep -v '^ *+' conftest.out`
981 if test -z "$ac_err"; then
982 rm -rf conftest*
983 # We can compile using X headers with no special include directory.
984 ac_x_includes=
985 else
986 echo "$ac_err" >&5
987 echo "configure: failed program was:" >&5
988 cat conftest.$ac_ext >&5
989 rm -rf conftest*
990 # Look for the header file in a standard set of common directories.
991 # Check X11 before X11Rn because it is often a symlink to the current release.
992 for ac_dir in \
993 /usr/X11/include \
994 /usr/X11R6/include \
995 /usr/X11R5/include \
996 /usr/X11R4/include \
998 /usr/include/X11 \
999 /usr/include/X11R6 \
1000 /usr/include/X11R5 \
1001 /usr/include/X11R4 \
1003 /usr/local/X11/include \
1004 /usr/local/X11R6/include \
1005 /usr/local/X11R5/include \
1006 /usr/local/X11R4/include \
1008 /usr/local/include/X11 \
1009 /usr/local/include/X11R6 \
1010 /usr/local/include/X11R5 \
1011 /usr/local/include/X11R4 \
1013 /usr/X386/include \
1014 /usr/x386/include \
1015 /usr/XFree86/include/X11 \
1017 /usr/include \
1018 /usr/local/include \
1019 /usr/unsupported/include \
1020 /usr/athena/include \
1021 /usr/local/x11r5/include \
1022 /usr/lpp/Xamples/include \
1024 /usr/openwin/include \
1025 /usr/openwin/share/include \
1028 if test -r "$ac_dir/$x_direct_test_include"; then
1029 ac_x_includes=$ac_dir
1030 break
1032 done
1034 rm -f conftest*
1035 fi # $ac_x_includes = NO
1037 if test "$ac_x_libraries" = NO; then
1038 # Check for the libraries.
1040 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1041 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1043 # See if we find them without any special options.
1044 # Don't add to $LIBS permanently.
1045 ac_save_LIBS="$LIBS"
1046 LIBS="-l$x_direct_test_library $LIBS"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1051 int main() {
1052 ${x_direct_test_function}()
1053 ; return 0; }
1055 if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1056 rm -rf conftest*
1057 LIBS="$ac_save_LIBS"
1058 # We can link X programs with no special library path.
1059 ac_x_libraries=
1060 else
1061 echo "configure: failed program was:" >&5
1062 cat conftest.$ac_ext >&5
1063 rm -rf conftest*
1064 LIBS="$ac_save_LIBS"
1065 # First see if replacing the include by lib works.
1066 # Check X11 before X11Rn because it is often a symlink to the current release.
1067 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1068 /usr/X11/lib \
1069 /usr/X11R6/lib \
1070 /usr/X11R5/lib \
1071 /usr/X11R4/lib \
1073 /usr/lib/X11 \
1074 /usr/lib/X11R6 \
1075 /usr/lib/X11R5 \
1076 /usr/lib/X11R4 \
1078 /usr/local/X11/lib \
1079 /usr/local/X11R6/lib \
1080 /usr/local/X11R5/lib \
1081 /usr/local/X11R4/lib \
1083 /usr/local/lib/X11 \
1084 /usr/local/lib/X11R6 \
1085 /usr/local/lib/X11R5 \
1086 /usr/local/lib/X11R4 \
1088 /usr/X386/lib \
1089 /usr/x386/lib \
1090 /usr/XFree86/lib/X11 \
1092 /usr/lib \
1093 /usr/local/lib \
1094 /usr/unsupported/lib \
1095 /usr/athena/lib \
1096 /usr/local/x11r5/lib \
1097 /usr/lpp/Xamples/lib \
1098 /lib/usr/lib/X11 \
1100 /usr/openwin/lib \
1101 /usr/openwin/share/lib \
1104 for ac_extension in a so sl; do
1105 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1106 ac_x_libraries=$ac_dir
1107 break 2
1109 done
1110 done
1112 rm -f conftest*
1113 fi # $ac_x_libraries = NO
1115 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1116 # Didn't find X anywhere. Cache the known absence of X.
1117 ac_cv_have_x="have_x=no"
1118 else
1119 # Record where we found X for the cache.
1120 ac_cv_have_x="have_x=yes \
1121 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1125 eval "$ac_cv_have_x"
1126 fi # $with_x != no
1128 if test "$have_x" != yes; then
1129 echo "$ac_t""$have_x" 1>&6
1130 no_x=yes
1131 else
1132 # If each of the values was on the command line, it overrides each guess.
1133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1135 # Update the cache value to reflect the command line values.
1136 ac_cv_have_x="have_x=yes \
1137 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1138 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1141 if test "$no_x" = yes; then
1142 # Not all programs may use this symbol, but it does not hurt to define it.
1143 cat >> confdefs.h <<\EOF
1144 #define X_DISPLAY_MISSING 1
1147 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1148 else
1149 if test -n "$x_includes"; then
1150 X_CFLAGS="$X_CFLAGS -I$x_includes"
1153 # It would also be nice to do this for all -L options, not just this one.
1154 if test -n "$x_libraries"; then
1155 X_LIBS="$X_LIBS -L$x_libraries"
1156 # For Solaris; some versions of Sun CC require a space after -R and
1157 # others require no space. Words are not sufficient . . . .
1158 case "`(uname -sr) 2>/dev/null`" in
1159 "SunOS 5"*)
1160 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether -R must be followed by a space" >&5
1162 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1167 int main() {
1169 ; return 0; }
1171 if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1172 rm -rf conftest*
1173 ac_R_nospace=yes
1174 else
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1177 rm -rf conftest*
1178 ac_R_nospace=no
1180 rm -f conftest*
1181 if test $ac_R_nospace = yes; then
1182 echo "$ac_t""no" 1>&6
1183 X_LIBS="$X_LIBS -R$x_libraries"
1184 else
1185 LIBS="$ac_xsave_LIBS -R $x_libraries"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1190 int main() {
1192 ; return 0; }
1194 if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1195 rm -rf conftest*
1196 ac_R_space=yes
1197 else
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 rm -rf conftest*
1201 ac_R_space=no
1203 rm -f conftest*
1204 if test $ac_R_space = yes; then
1205 echo "$ac_t""yes" 1>&6
1206 X_LIBS="$X_LIBS -R $x_libraries"
1207 else
1208 echo "$ac_t""neither works" 1>&6
1211 LIBS="$ac_xsave_LIBS"
1212 esac
1215 # Check for system-dependent libraries X programs must link with.
1216 # Do this before checking for the system-independent R6 libraries
1217 # (-lICE), since we may need -lsocket or whatever for X linking.
1219 if test "$ISC" = yes; then
1220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1221 else
1222 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1223 # libraries were built with DECnet support. And karl@cs.umb.edu says
1224 # the Alpha needs dnet_stub (dnet does not exist).
1225 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1226 echo "configure:1227: checking for dnet_ntoa in -ldnet" >&5
1227 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 ac_save_LIBS="$LIBS"
1232 LIBS="-ldnet $LIBS"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 /* Override any gcc2 internal prototype to avoid an error. */
1237 /* We use char because int might match the return type of a gcc2
1238 builtin and then its argument prototype would still apply. */
1239 char dnet_ntoa();
1241 int main() {
1242 dnet_ntoa()
1243 ; return 0; }
1245 if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1246 rm -rf conftest*
1247 eval "ac_cv_lib_$ac_lib_var=yes"
1248 else
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1251 rm -rf conftest*
1252 eval "ac_cv_lib_$ac_lib_var=no"
1254 rm -f conftest*
1255 LIBS="$ac_save_LIBS"
1258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1259 echo "$ac_t""yes" 1>&6
1260 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1261 else
1262 echo "$ac_t""no" 1>&6
1265 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1266 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1267 echo "configure:1268: checking for dnet_ntoa in -ldnet_stub" >&5
1268 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271 else
1272 ac_save_LIBS="$LIBS"
1273 LIBS="-ldnet_stub $LIBS"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1277 /* Override any gcc2 internal prototype to avoid an error. */
1278 /* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
1280 char dnet_ntoa();
1282 int main() {
1283 dnet_ntoa()
1284 ; return 0; }
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1287 rm -rf conftest*
1288 eval "ac_cv_lib_$ac_lib_var=yes"
1289 else
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1292 rm -rf conftest*
1293 eval "ac_cv_lib_$ac_lib_var=no"
1295 rm -f conftest*
1296 LIBS="$ac_save_LIBS"
1299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1302 else
1303 echo "$ac_t""no" 1>&6
1308 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1309 # to get the SysV transport functions.
1310 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1311 # needs -lnsl.
1312 # The nsl library prevents programs from opening the X display
1313 # on Irix 5.2, according to dickey@clark.net.
1314 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1315 echo "configure:1316: checking for gethostbyname" >&5
1316 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* System header to define __stub macros and hopefully few prototypes,
1323 which can conflict with char gethostbyname(); below. */
1324 #include <assert.h>
1325 /* Override any gcc2 internal prototype to avoid an error. */
1326 /* We use char because int might match the return type of a gcc2
1327 builtin and then its argument prototype would still apply. */
1328 char gethostbyname();
1330 int main() {
1332 /* The GNU C library defines this for functions which it implements
1333 to always fail with ENOSYS. Some functions are actually named
1334 something starting with __ and the normal name is an alias. */
1335 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1336 choke me
1337 #else
1338 gethostbyname();
1339 #endif
1341 ; return 0; }
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1344 rm -rf conftest*
1345 eval "ac_cv_func_gethostbyname=yes"
1346 else
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1349 rm -rf conftest*
1350 eval "ac_cv_func_gethostbyname=no"
1352 rm -f conftest*
1355 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1358 else
1359 echo "$ac_t""no" 1>&6
1362 if test $ac_cv_func_gethostbyname = no; then
1363 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1364 echo "configure:1365: checking for gethostbyname in -lnsl" >&5
1365 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369 ac_save_LIBS="$LIBS"
1370 LIBS="-lnsl $LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1377 char gethostbyname();
1379 int main() {
1380 gethostbyname()
1381 ; return 0; }
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1384 rm -rf conftest*
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1386 else
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1389 rm -rf conftest*
1390 eval "ac_cv_lib_$ac_lib_var=no"
1392 rm -f conftest*
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1399 else
1400 echo "$ac_t""no" 1>&6
1405 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1406 # socket/setsockopt and other routines are undefined under SCO ODT
1407 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1408 # on later versions), says simon@lia.di.epfl.ch: it contains
1409 # gethostby* variants that don't use the nameserver (or something).
1410 # -lsocket must be given before -lnsl if both are needed.
1411 # We assume that if connect needs -lnsl, so does gethostbyname.
1412 echo $ac_n "checking for connect""... $ac_c" 1>&6
1413 echo "configure:1414: checking for connect" >&5
1414 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* System header to define __stub macros and hopefully few prototypes,
1421 which can conflict with char connect(); below. */
1422 #include <assert.h>
1423 /* Override any gcc2 internal prototype to avoid an error. */
1424 /* We use char because int might match the return type of a gcc2
1425 builtin and then its argument prototype would still apply. */
1426 char connect();
1428 int main() {
1430 /* The GNU C library defines this for functions which it implements
1431 to always fail with ENOSYS. Some functions are actually named
1432 something starting with __ and the normal name is an alias. */
1433 #if defined (__stub_connect) || defined (__stub___connect)
1434 choke me
1435 #else
1436 connect();
1437 #endif
1439 ; return 0; }
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1442 rm -rf conftest*
1443 eval "ac_cv_func_connect=yes"
1444 else
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1447 rm -rf conftest*
1448 eval "ac_cv_func_connect=no"
1450 rm -f conftest*
1453 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1456 else
1457 echo "$ac_t""no" 1>&6
1460 if test $ac_cv_func_connect = no; then
1461 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1462 echo "configure:1463: checking for connect in -lsocket" >&5
1463 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467 ac_save_LIBS="$LIBS"
1468 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 /* Override any gcc2 internal prototype to avoid an error. */
1473 /* We use char because int might match the return type of a gcc2
1474 builtin and then its argument prototype would still apply. */
1475 char connect();
1477 int main() {
1478 connect()
1479 ; return 0; }
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1482 rm -rf conftest*
1483 eval "ac_cv_lib_$ac_lib_var=yes"
1484 else
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1487 rm -rf conftest*
1488 eval "ac_cv_lib_$ac_lib_var=no"
1490 rm -f conftest*
1491 LIBS="$ac_save_LIBS"
1494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1496 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1497 else
1498 echo "$ac_t""no" 1>&6
1503 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1504 echo $ac_n "checking for remove""... $ac_c" 1>&6
1505 echo "configure:1506: checking for remove" >&5
1506 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 /* System header to define __stub macros and hopefully few prototypes,
1513 which can conflict with char remove(); below. */
1514 #include <assert.h>
1515 /* Override any gcc2 internal prototype to avoid an error. */
1516 /* We use char because int might match the return type of a gcc2
1517 builtin and then its argument prototype would still apply. */
1518 char remove();
1520 int main() {
1522 /* The GNU C library defines this for functions which it implements
1523 to always fail with ENOSYS. Some functions are actually named
1524 something starting with __ and the normal name is an alias. */
1525 #if defined (__stub_remove) || defined (__stub___remove)
1526 choke me
1527 #else
1528 remove();
1529 #endif
1531 ; return 0; }
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1534 rm -rf conftest*
1535 eval "ac_cv_func_remove=yes"
1536 else
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 rm -rf conftest*
1540 eval "ac_cv_func_remove=no"
1542 rm -f conftest*
1545 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1548 else
1549 echo "$ac_t""no" 1>&6
1552 if test $ac_cv_func_remove = no; then
1553 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1554 echo "configure:1555: checking for remove in -lposix" >&5
1555 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 ac_save_LIBS="$LIBS"
1560 LIBS="-lposix $LIBS"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1566 builtin and then its argument prototype would still apply. */
1567 char remove();
1569 int main() {
1570 remove()
1571 ; return 0; }
1573 if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1574 rm -rf conftest*
1575 eval "ac_cv_lib_$ac_lib_var=yes"
1576 else
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 eval "ac_cv_lib_$ac_lib_var=no"
1582 rm -f conftest*
1583 LIBS="$ac_save_LIBS"
1586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1588 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1589 else
1590 echo "$ac_t""no" 1>&6
1595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1596 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1597 echo "configure:1598: checking for shmat" >&5
1598 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1600 else
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 /* System header to define __stub macros and hopefully few prototypes,
1605 which can conflict with char shmat(); below. */
1606 #include <assert.h>
1607 /* Override any gcc2 internal prototype to avoid an error. */
1608 /* We use char because int might match the return type of a gcc2
1609 builtin and then its argument prototype would still apply. */
1610 char shmat();
1612 int main() {
1614 /* The GNU C library defines this for functions which it implements
1615 to always fail with ENOSYS. Some functions are actually named
1616 something starting with __ and the normal name is an alias. */
1617 #if defined (__stub_shmat) || defined (__stub___shmat)
1618 choke me
1619 #else
1620 shmat();
1621 #endif
1623 ; return 0; }
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1626 rm -rf conftest*
1627 eval "ac_cv_func_shmat=yes"
1628 else
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 eval "ac_cv_func_shmat=no"
1634 rm -f conftest*
1637 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1640 else
1641 echo "$ac_t""no" 1>&6
1644 if test $ac_cv_func_shmat = no; then
1645 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1646 echo "configure:1647: checking for shmat in -lipc" >&5
1647 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651 ac_save_LIBS="$LIBS"
1652 LIBS="-lipc $LIBS"
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1659 char shmat();
1661 int main() {
1662 shmat()
1663 ; return 0; }
1665 if { (eval echo configure:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1666 rm -rf conftest*
1667 eval "ac_cv_lib_$ac_lib_var=yes"
1668 else
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671 rm -rf conftest*
1672 eval "ac_cv_lib_$ac_lib_var=no"
1674 rm -f conftest*
1675 LIBS="$ac_save_LIBS"
1678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1681 else
1682 echo "$ac_t""no" 1>&6
1688 # Check for libraries that X11R6 Xt/Xaw programs need.
1689 ac_save_LDFLAGS="$LDFLAGS"
1690 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1691 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1692 # check for ICE first), but we must link in the order -lSM -lICE or
1693 # we get undefined symbols. So assume we have SM if we have ICE.
1694 # These have to be linked with before -lX11, unlike the other
1695 # libraries we check for below, so use a different variable.
1696 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1697 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1698 echo "configure:1699: checking for IceConnectionNumber in -lICE" >&5
1699 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703 ac_save_LIBS="$LIBS"
1704 LIBS="-lICE $LIBS"
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 /* Override any gcc2 internal prototype to avoid an error. */
1709 /* We use char because int might match the return type of a gcc2
1710 builtin and then its argument prototype would still apply. */
1711 char IceConnectionNumber();
1713 int main() {
1714 IceConnectionNumber()
1715 ; return 0; }
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1718 rm -rf conftest*
1719 eval "ac_cv_lib_$ac_lib_var=yes"
1720 else
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 rm -rf conftest*
1724 eval "ac_cv_lib_$ac_lib_var=no"
1726 rm -f conftest*
1727 LIBS="$ac_save_LIBS"
1730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1731 echo "$ac_t""yes" 1>&6
1732 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1733 else
1734 echo "$ac_t""no" 1>&6
1737 LDFLAGS="$ac_save_LDFLAGS"
1741 for ac_prog in 'bison -y' byacc
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy $ac_prog; ac_word=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 if test -n "$YACC"; then
1751 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1752 else
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1754 for ac_dir in $PATH; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_prog_YACC="$ac_prog"
1758 break
1760 done
1761 IFS="$ac_save_ifs"
1764 YACC="$ac_cv_prog_YACC"
1765 if test -n "$YACC"; then
1766 echo "$ac_t""$YACC" 1>&6
1767 else
1768 echo "$ac_t""no" 1>&6
1771 test -n "$YACC" && break
1772 done
1773 test -n "$YACC" || YACC="yacc"
1775 # Extract the first word of "flex", so it can be a program name with args.
1776 set dummy flex; ac_word=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5
1779 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781 else
1782 if test -n "$LEX"; then
1783 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1784 else
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1786 for ac_dir in $PATH; do
1787 test -z "$ac_dir" && ac_dir=.
1788 if test -f $ac_dir/$ac_word; then
1789 ac_cv_prog_LEX="flex"
1790 break
1792 done
1793 IFS="$ac_save_ifs"
1794 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1797 LEX="$ac_cv_prog_LEX"
1798 if test -n "$LEX"; then
1799 echo "$ac_t""$LEX" 1>&6
1800 else
1801 echo "$ac_t""no" 1>&6
1804 if test -z "$LEXLIB"
1805 then
1806 case "$LEX" in
1807 flex*) ac_lib=fl ;;
1808 *) ac_lib=l ;;
1809 esac
1810 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1811 echo "configure:1812: checking for yywrap in -l$ac_lib" >&5
1812 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 ac_save_LIBS="$LIBS"
1817 LIBS="-l$ac_lib $LIBS"
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1824 char yywrap();
1826 int main() {
1827 yywrap()
1828 ; return 0; }
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1831 rm -rf conftest*
1832 eval "ac_cv_lib_$ac_lib_var=yes"
1833 else
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 rm -rf conftest*
1837 eval "ac_cv_lib_$ac_lib_var=no"
1839 rm -f conftest*
1840 LIBS="$ac_save_LIBS"
1843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 LEXLIB="-l$ac_lib"
1846 else
1847 echo "$ac_t""no" 1>&6
1852 # Extract the first word of "ranlib", so it can be a program name with args.
1853 set dummy ranlib; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 if test -n "$RANLIB"; then
1860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1861 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1863 for ac_dir in $PATH; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 ac_cv_prog_RANLIB="ranlib"
1867 break
1869 done
1870 IFS="$ac_save_ifs"
1871 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1874 RANLIB="$ac_cv_prog_RANLIB"
1875 if test -n "$RANLIB"; then
1876 echo "$ac_t""$RANLIB" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1881 # Find a good install program. We prefer a C program (faster),
1882 # so one script is as good as another. But avoid the broken or
1883 # incompatible versions:
1884 # SysV /etc/install, /usr/sbin/install
1885 # SunOS /usr/etc/install
1886 # IRIX /sbin/install
1887 # AIX /bin/install
1888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1890 # ./install, which can be erroneously created by make from ./install.sh.
1891 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1892 echo "configure:1893: checking for a BSD compatible install" >&5
1893 if test -z "$INSTALL"; then
1894 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1896 else
1897 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1898 for ac_dir in $PATH; do
1899 # Account for people who put trailing slashes in PATH elements.
1900 case "$ac_dir/" in
1901 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1903 # OSF1 and SCO ODT 3.0 have their own names for install.
1904 for ac_prog in ginstall installbsd scoinst install; do
1905 if test -f $ac_dir/$ac_prog; then
1906 if test $ac_prog = install &&
1907 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1908 # AIX install. It has an incompatible calling convention.
1909 # OSF/1 installbsd also uses dspmsg, but is usable.
1911 else
1912 ac_cv_path_install="$ac_dir/$ac_prog -c"
1913 break 2
1916 done
1918 esac
1919 done
1920 IFS="$ac_save_IFS"
1923 if test "${ac_cv_path_install+set}" = set; then
1924 INSTALL="$ac_cv_path_install"
1925 else
1926 # As a last resort, use the slow shell script. We don't cache a
1927 # path for INSTALL within a source directory, because that will
1928 # break other packages using the cache if that directory is
1929 # removed, or if the path is relative.
1930 INSTALL="$ac_install_sh"
1933 echo "$ac_t""$INSTALL" 1>&6
1935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1936 # It thinks the first close brace ends the variable substitution.
1937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1941 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether ln -s works" >&5
1943 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946 rm -f conftestdata
1947 if ln -s X conftestdata 2>/dev/null
1948 then
1949 rm -f conftestdata
1950 ac_cv_prog_LN_S="ln -s"
1951 else
1952 ac_cv_prog_LN_S=ln
1955 LN_S="$ac_cv_prog_LN_S"
1956 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1957 echo "$ac_t""yes" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1962 # Extract the first word of "c2man", so it can be a program name with args.
1963 set dummy c2man; ac_word=$2
1964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965 echo "configure:1966: checking for $ac_word" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1968 else
1969 if test -n "$C2MAN"; then
1970 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1971 else
1972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1973 for ac_dir in $PATH; do
1974 test -z "$ac_dir" && ac_dir=.
1975 if test -f $ac_dir/$ac_word; then
1976 ac_cv_prog_C2MAN="c2man"
1977 break
1979 done
1980 IFS="$ac_save_ifs"
1981 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1984 C2MAN="$ac_cv_prog_C2MAN"
1985 if test -n "$C2MAN"; then
1986 echo "$ac_t""$C2MAN" 1>&6
1987 else
1988 echo "$ac_t""no" 1>&6
1993 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1994 echo "configure:1995: checking for i386_set_ldt in -li386" >&5
1995 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 ac_save_LIBS="$LIBS"
2000 LIBS="-li386 $LIBS"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2007 char i386_set_ldt();
2009 int main() {
2010 i386_set_ldt()
2011 ; return 0; }
2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2014 rm -rf conftest*
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2016 else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 eval "ac_cv_lib_$ac_lib_var=no"
2022 rm -f conftest*
2023 LIBS="$ac_save_LIBS"
2026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2030 cat >> confdefs.h <<EOF
2031 #define $ac_tr_lib 1
2034 LIBS="-li386 $LIBS"
2036 else
2037 echo "$ac_t""no" 1>&6
2040 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2041 echo "configure:2042: checking for _oss_ioctl in -lossaudio" >&5
2042 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 ac_save_LIBS="$LIBS"
2047 LIBS="-lossaudio $LIBS"
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2054 char _oss_ioctl();
2056 int main() {
2057 _oss_ioctl()
2058 ; return 0; }
2060 if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2061 rm -rf conftest*
2062 eval "ac_cv_lib_$ac_lib_var=yes"
2063 else
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2066 rm -rf conftest*
2067 eval "ac_cv_lib_$ac_lib_var=no"
2069 rm -f conftest*
2070 LIBS="$ac_save_LIBS"
2073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2077 cat >> confdefs.h <<EOF
2078 #define $ac_tr_lib 1
2081 LIBS="-lossaudio $LIBS"
2083 else
2084 echo "$ac_t""no" 1>&6
2087 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2088 echo "configure:2089: checking for iswalnum in -lw" >&5
2089 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 ac_save_LIBS="$LIBS"
2094 LIBS="-lw $LIBS"
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 /* Override any gcc2 internal prototype to avoid an error. */
2099 /* We use char because int might match the return type of a gcc2
2100 builtin and then its argument prototype would still apply. */
2101 char iswalnum();
2103 int main() {
2104 iswalnum()
2105 ; return 0; }
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2108 rm -rf conftest*
2109 eval "ac_cv_lib_$ac_lib_var=yes"
2110 else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 eval "ac_cv_lib_$ac_lib_var=no"
2116 rm -f conftest*
2117 LIBS="$ac_save_LIBS"
2120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2124 cat >> confdefs.h <<EOF
2125 #define $ac_tr_lib 1
2128 LIBS="-lw $LIBS"
2130 else
2131 echo "$ac_t""no" 1>&6
2134 for ac_func in gethostbyname
2136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_func" >&5
2138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 /* System header to define __stub macros and hopefully few prototypes,
2145 which can conflict with char $ac_func(); below. */
2146 #include <assert.h>
2147 /* Override any gcc2 internal prototype to avoid an error. */
2148 /* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2150 char $ac_func();
2152 int main() {
2154 /* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2158 choke me
2159 #else
2160 $ac_func();
2161 #endif
2163 ; return 0; }
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2166 rm -rf conftest*
2167 eval "ac_cv_func_$ac_func=yes"
2168 else
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 rm -rf conftest*
2172 eval "ac_cv_func_$ac_func=no"
2174 rm -f conftest*
2177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2180 cat >> confdefs.h <<EOF
2181 #define $ac_tr_func 1
2184 else
2185 echo "$ac_t""no" 1>&6
2187 done
2189 if test "$ac_cv_func_gethostbyname" = "no"
2190 then
2191 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2192 echo "configure:2193: checking for gethostbyname in -lnsl" >&5
2193 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 ac_save_LIBS="$LIBS"
2198 LIBS="-lnsl $LIBS"
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* Override any gcc2 internal prototype to avoid an error. */
2203 /* We use char because int might match the return type of a gcc2
2204 builtin and then its argument prototype would still apply. */
2205 char gethostbyname();
2207 int main() {
2208 gethostbyname()
2209 ; return 0; }
2211 if { (eval echo configure:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2212 rm -rf conftest*
2213 eval "ac_cv_lib_$ac_lib_var=yes"
2214 else
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 rm -rf conftest*
2218 eval "ac_cv_lib_$ac_lib_var=no"
2220 rm -f conftest*
2221 LIBS="$ac_save_LIBS"
2224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2228 cat >> confdefs.h <<EOF
2229 #define $ac_tr_lib 1
2232 LIBS="-lnsl $LIBS"
2234 else
2235 echo "$ac_t""no" 1>&6
2239 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2240 echo "configure:2241: checking for setrunelocale in -lxpg4" >&5
2241 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2244 else
2245 ac_save_LIBS="$LIBS"
2246 LIBS="-lxpg4 $LIBS"
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* Override any gcc2 internal prototype to avoid an error. */
2251 /* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
2253 char setrunelocale();
2255 int main() {
2256 setrunelocale()
2257 ; return 0; }
2259 if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2260 rm -rf conftest*
2261 eval "ac_cv_lib_$ac_lib_var=yes"
2262 else
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2265 rm -rf conftest*
2266 eval "ac_cv_lib_$ac_lib_var=no"
2268 rm -f conftest*
2269 LIBS="$ac_save_LIBS"
2272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2276 cat >> confdefs.h <<EOF
2277 #define $ac_tr_lib 1
2280 LIBS="-lxpg4 $LIBS"
2282 else
2283 echo "$ac_t""no" 1>&6
2286 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2287 echo "configure:2288: checking for dlopen in -ldl" >&5
2288 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 ac_save_LIBS="$LIBS"
2293 LIBS="-ldl $LIBS"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300 char dlopen();
2302 int main() {
2303 dlopen()
2304 ; return 0; }
2306 if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2307 rm -rf conftest*
2308 eval "ac_cv_lib_$ac_lib_var=yes"
2309 else
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 rm -rf conftest*
2313 eval "ac_cv_lib_$ac_lib_var=no"
2315 rm -f conftest*
2316 LIBS="$ac_save_LIBS"
2319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2320 echo "$ac_t""yes" 1>&6
2321 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2323 cat >> confdefs.h <<EOF
2324 #define $ac_tr_lib 1
2327 LIBS="-ldl $LIBS"
2329 else
2330 echo "$ac_t""no" 1>&6
2334 if test "$have_x" = "yes"
2335 then
2336 XLIB="-lXpm -lXext -lX11"
2337 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2338 echo "configure:2339: checking for XShmQueryExtension in -lXext" >&5
2339 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 ac_save_LIBS="$LIBS"
2344 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351 char XShmQueryExtension();
2353 int main() {
2354 XShmQueryExtension()
2355 ; return 0; }
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2358 rm -rf conftest*
2359 eval "ac_cv_lib_$ac_lib_var=yes"
2360 else
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 eval "ac_cv_lib_$ac_lib_var=no"
2366 rm -f conftest*
2367 LIBS="$ac_save_LIBS"
2370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 cat >> confdefs.h <<\EOF
2373 #define HAVE_LIBXXSHM 1
2376 else
2377 echo "$ac_t""no" 1>&6
2380 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2381 echo "configure:2382: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2382 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386 ac_save_LIBS="$LIBS"
2387 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2394 char XF86DGAQueryExtension();
2396 int main() {
2397 XF86DGAQueryExtension()
2398 ; return 0; }
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2401 rm -rf conftest*
2402 eval "ac_cv_lib_$ac_lib_var=yes"
2403 else
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2406 rm -rf conftest*
2407 eval "ac_cv_lib_$ac_lib_var=no"
2409 rm -f conftest*
2410 LIBS="$ac_save_LIBS"
2413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 cat >> confdefs.h <<\EOF
2416 #define HAVE_LIBXXF86DGA 1
2418 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2419 else
2420 echo "$ac_t""no" 1>&6
2423 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2424 echo "configure:2425: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2425 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 ac_save_LIBS="$LIBS"
2430 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 /* Override any gcc2 internal prototype to avoid an error. */
2435 /* We use char because int might match the return type of a gcc2
2436 builtin and then its argument prototype would still apply. */
2437 char XF86VidModeQueryExtension();
2439 int main() {
2440 XF86VidModeQueryExtension()
2441 ; return 0; }
2443 if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2444 rm -rf conftest*
2445 eval "ac_cv_lib_$ac_lib_var=yes"
2446 else
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 rm -rf conftest*
2450 eval "ac_cv_lib_$ac_lib_var=no"
2452 rm -f conftest*
2453 LIBS="$ac_save_LIBS"
2456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2457 echo "$ac_t""yes" 1>&6
2458 cat >> confdefs.h <<\EOF
2459 #define HAVE_LIBXXF86VM 1
2461 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2462 else
2463 echo "$ac_t""no" 1>&6
2466 else
2467 XLIB=""
2468 X_CFLAGS=""
2469 X_LIBS=""
2472 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
2474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_hdr" >&5
2477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <$ac_hdr>
2485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2486 { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2487 ac_err=`grep -v '^ *+' conftest.out`
2488 if test -z "$ac_err"; then
2489 rm -rf conftest*
2490 eval "ac_cv_header_$ac_safe=yes"
2491 else
2492 echo "$ac_err" >&5
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 eval "ac_cv_header_$ac_safe=no"
2498 rm -f conftest*
2500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2503 cat >> confdefs.h <<EOF
2504 #define $ac_tr_hdr 1
2506 break
2507 else
2508 echo "$ac_t""no" 1>&6
2510 done
2513 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2514 echo "configure:2515: checking "for Open Sound System"" >&5
2515 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2522 #if defined(HAVE_SYS_SOUNDCARD_H)
2523 #include <sys/soundcard.h>
2524 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
2525 #include <machine/soundcard.h>
2526 #elif defined(HAVE_SOUNDCARD_H)
2527 #include <soundcard.h>
2528 #endif
2530 int main() {
2533 /* check for one of the Open Sound System specific SNDCTL_ defines */
2534 #if !defined(SNDCTL_DSP_STEREO)
2535 #error No open sound system
2536 #endif
2538 ; return 0; }
2540 if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2541 rm -rf conftest*
2542 ac_cv_c_opensoundsystem="yes"
2543 else
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 ac_cv_c_opensoundsystem="no"
2549 rm -f conftest*
2552 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2554 if test "$ac_cv_c_opensoundsystem" = "yes"
2555 then
2556 cat >> confdefs.h <<\EOF
2557 #define HAVE_OSS 1
2563 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2564 echo "configure:2565: checking "for union semun"" >&5
2565 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2572 #include <sys/sem.h>
2573 int main() {
2574 union semun foo
2575 ; return 0; }
2577 if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2578 rm -rf conftest*
2579 ac_cv_c_union_semun="yes"
2580 else
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 rm -rf conftest*
2584 ac_cv_c_union_semun="no"
2586 rm -f conftest*
2589 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2590 if test "$ac_cv_c_union_semun" = "yes"
2591 then
2592 cat >> confdefs.h <<\EOF
2593 #define HAVE_UNION_SEMUN 1
2598 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2601 if test "x${GCC}" = "xyes"
2602 then
2603 CFLAGS="$CFLAGS -Wall"
2604 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2605 echo "configure:2606: checking "for gcc strength-reduce bug"" >&5
2606 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2608 else
2609 if test "$cross_compiling" = yes; then
2610 ac_cv_c_gcc_strength_bug="yes"
2611 else
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2616 int main(void) {
2617 static int Array[3];
2618 unsigned int B = 3;
2619 int i;
2620 for(i=0; i<B; i++) Array[i] = i - 3;
2621 exit( Array[1] != -2 );
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2625 then
2626 ac_cv_c_gcc_strength_bug="no"
2627 else
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 rm -fr conftest*
2631 ac_cv_c_gcc_strength_bug="yes"
2633 rm -fr conftest*
2638 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2639 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2640 then
2641 CFLAGS="$CFLAGS -fno-strength-reduce"
2646 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2647 echo "configure:2648: checking "whether external symbols need an underscore prefix"" >&5
2648 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 saved_libs=$LIBS
2652 LIBS="conftest_asm.s $LIBS"
2653 cat > conftest_asm.s <<EOF
2654 .globl _ac_test
2655 _ac_test:
2656 .long 0
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 extern int ac_test;
2662 int main() {
2663 if (ac_test) return 1
2664 ; return 0; }
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2667 rm -rf conftest*
2668 ac_cv_c_extern_prefix="yes"
2669 else
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 ac_cv_c_extern_prefix="no"
2675 rm -f conftest*
2676 LIBS=$saved_libs
2679 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2680 if test "$ac_cv_c_extern_prefix" = "yes"
2681 then
2682 cat >> confdefs.h <<\EOF
2683 #define NEED_UNDERSCORE_PREFIX 1
2689 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2690 echo "configure:2691: checking "whether assembler accepts .string"" >&5
2691 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694 saved_libs=$LIBS
2695 LIBS="conftest_asm.s $LIBS"
2696 cat > conftest_asm.s <<EOF
2697 .string "test"
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2703 int main() {
2705 ; return 0; }
2707 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2708 rm -rf conftest*
2709 ac_cv_c_asm_string="yes"
2710 else
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 rm -rf conftest*
2714 ac_cv_c_asm_string="no"
2716 rm -f conftest*
2717 LIBS=$saved_libs
2720 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2721 if test "$ac_cv_c_asm_string" = "yes"
2722 then
2723 cat >> confdefs.h <<\EOF
2724 #define HAVE_ASM_STRING 1
2730 DLLFLAGS=""
2731 LDSHARED=""
2732 if test "$LIB_TARGET" = "libwine.so.1.0"
2733 then
2734 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
2735 echo "configure:2736: checking "whether we can build a Linux dll"" >&5
2736 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 saved_cflags=$CFLAGS
2740 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2745 int main() {
2746 return 1
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2750 rm -rf conftest*
2751 ac_cv_c_dll_linux="yes"
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 ac_cv_c_dll_linux="no"
2758 rm -f conftest*
2759 CFLAGS=$saved_cflags
2763 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
2764 if test "$ac_cv_c_dll_linux" = "yes"
2765 then
2766 DLLFLAGS="-fPIC"
2767 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
2768 else
2769 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
2770 echo "configure:2771: checking "whether we can build a NetBSD dll"" >&5
2771 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773 else
2774 saved_cflags=$CFLAGS
2775 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2780 int main() {
2781 return 1
2782 ; return 0; }
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2785 rm -rf conftest*
2786 ac_cv_c_dll_netbsd="yes"
2787 else
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 ac_cv_c_dll_netbsd="no"
2793 rm -f conftest*
2794 CFLAGS=$saved_cflags
2798 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
2799 if test "$ac_cv_c_dll_netbsd" = "yes"
2800 then
2801 DLLFLAGS="-fPIC"
2802 LDSHARED="ld -Bshareable -Bforcearchive"
2805 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
2806 then
2807 LIB_TARGET="libwine.a"
2814 echo $ac_n "checking "for reentrant libc"""... $ac_c" 1>&6
2815 echo "configure:2816: checking "for reentrant libc"" >&5
2816 if eval "test \"`echo '$''{'wine_cv_libc_reentrant'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 if test "$cross_compiling" = yes; then
2820 wine_cv_libc_reentrant=yes
2821 else
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 int myerrno = 0;
2826 char buf[256];
2827 int *__errno_location(){return &myerrno;}
2828 main(){connect(0,buf,255); exit(!myerrno);}
2830 if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2831 then
2832 wine_cv_libc_reentrant=yes
2833 else
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2836 rm -fr conftest*
2837 wine_cv_libc_reentrant=no
2839 rm -fr conftest*
2844 echo "$ac_t""$wine_cv_libc_reentrant" 1>&6
2845 if test "$wine_cv_libc_reentrant" = "no"
2846 then
2847 cat >> confdefs.h <<\EOF
2848 #define NO_REENTRANT_LIBC 1
2854 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
2855 echo "configure:2856: checking "for reentrant X libraries"" >&5
2856 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 if test "x$with_reentrant_x" = "xno"
2860 then
2861 wine_cv_x_reentrant=no
2862 else
2863 libX11_ckeck=none
2864 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
2865 if test -r $dir/libX11.so; then
2866 libX11_check="-D $dir/libX11.so"
2867 break 1
2869 if test -r $dir/libX11.a; then
2870 libX11_check="$dir/libX11.a"
2871 break 1
2873 done
2874 if test "$libX11_check" != "none"; then
2875 if nm $libX11_check | grep __errno_location >/dev/null 2>&1
2876 then
2877 wine_cv_x_reentrant=yes
2878 else
2879 wine_cv_x_reentrant=no
2881 else
2882 wine_cv_x_reentrant=unknown
2887 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
2888 if test "$wine_cv_x_reentrant" = "no"
2889 then
2890 cat >> confdefs.h <<\EOF
2891 #define NO_REENTRANT_X11 1
2897 for ac_func in clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
2899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_func" >&5
2901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2903 else
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 /* System header to define __stub macros and hopefully few prototypes,
2908 which can conflict with char $ac_func(); below. */
2909 #include <assert.h>
2910 /* Override any gcc2 internal prototype to avoid an error. */
2911 /* We use char because int might match the return type of a gcc2
2912 builtin and then its argument prototype would still apply. */
2913 char $ac_func();
2915 int main() {
2917 /* The GNU C library defines this for functions which it implements
2918 to always fail with ENOSYS. Some functions are actually named
2919 something starting with __ and the normal name is an alias. */
2920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2921 choke me
2922 #else
2923 $ac_func();
2924 #endif
2926 ; return 0; }
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2929 rm -rf conftest*
2930 eval "ac_cv_func_$ac_func=yes"
2931 else
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 rm -rf conftest*
2935 eval "ac_cv_func_$ac_func=no"
2937 rm -f conftest*
2940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2943 cat >> confdefs.h <<EOF
2944 #define $ac_tr_func 1
2947 else
2948 echo "$ac_t""no" 1>&6
2950 done
2952 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 unistd.h sys/sockio.h net/if.h netinet/in.h linux/ipx.h
2954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_hdr" >&5
2957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <$ac_hdr>
2965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966 { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967 ac_err=`grep -v '^ *+' conftest.out`
2968 if test -z "$ac_err"; then
2969 rm -rf conftest*
2970 eval "ac_cv_header_$ac_safe=yes"
2971 else
2972 echo "$ac_err" >&5
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 rm -rf conftest*
2976 eval "ac_cv_header_$ac_safe=no"
2978 rm -f conftest*
2980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2981 echo "$ac_t""yes" 1>&6
2982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2983 cat >> confdefs.h <<EOF
2984 #define $ac_tr_hdr 1
2987 else
2988 echo "$ac_t""no" 1>&6
2990 done
2992 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2993 echo "configure:2994: checking whether stat file-mode macros are broken" >&5
2994 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3003 #if defined(S_ISBLK) && defined(S_IFDIR)
3004 # if S_ISBLK (S_IFDIR)
3005 You lose.
3006 # endif
3007 #endif
3009 #if defined(S_ISBLK) && defined(S_IFCHR)
3010 # if S_ISBLK (S_IFCHR)
3011 You lose.
3012 # endif
3013 #endif
3015 #if defined(S_ISLNK) && defined(S_IFREG)
3016 # if S_ISLNK (S_IFREG)
3017 You lose.
3018 # endif
3019 #endif
3021 #if defined(S_ISSOCK) && defined(S_IFREG)
3022 # if S_ISSOCK (S_IFREG)
3023 You lose.
3024 # endif
3025 #endif
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 egrep "You lose" >/dev/null 2>&1; then
3030 rm -rf conftest*
3031 ac_cv_header_stat_broken=yes
3032 else
3033 rm -rf conftest*
3034 ac_cv_header_stat_broken=no
3036 rm -f conftest*
3040 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3041 if test $ac_cv_header_stat_broken = yes; then
3042 cat >> confdefs.h <<\EOF
3043 #define STAT_MACROS_BROKEN 1
3048 echo $ac_n "checking for working const""... $ac_c" 1>&6
3049 echo "configure:3050: checking for working const" >&5
3050 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3052 else
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3057 int main() {
3059 /* Ultrix mips cc rejects this. */
3060 typedef int charset[2]; const charset x;
3061 /* SunOS 4.1.1 cc rejects this. */
3062 char const *const *ccp;
3063 char **p;
3064 /* NEC SVR4.0.2 mips cc rejects this. */
3065 struct point {int x, y;};
3066 static struct point const zero = {0,0};
3067 /* AIX XL C 1.02.0.0 rejects this.
3068 It does not let you subtract one const X* pointer from another in an arm
3069 of an if-expression whose if-part is not a constant expression */
3070 const char *g = "string";
3071 ccp = &g + (g ? g-g : 0);
3072 /* HPUX 7.0 cc rejects these. */
3073 ++ccp;
3074 p = (char**) ccp;
3075 ccp = (char const *const *) p;
3076 { /* SCO 3.2v4 cc rejects this. */
3077 char *t;
3078 char const *s = 0 ? (char *) 0 : (char const *) 0;
3080 *t++ = 0;
3082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3083 int x[] = {25, 17};
3084 const int *foo = &x[0];
3085 ++foo;
3087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3088 typedef const int *iptr;
3089 iptr p = 0;
3090 ++p;
3092 { /* AIX XL C 1.02.0.0 rejects this saying
3093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3094 struct s { int j; const int *ap[3]; };
3095 struct s *b; b->j = 5;
3097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3098 const int foo = 10;
3101 ; return 0; }
3103 if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3104 rm -rf conftest*
3105 ac_cv_c_const=yes
3106 else
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3109 rm -rf conftest*
3110 ac_cv_c_const=no
3112 rm -f conftest*
3115 echo "$ac_t""$ac_cv_c_const" 1>&6
3116 if test $ac_cv_c_const = no; then
3117 cat >> confdefs.h <<\EOF
3118 #define const
3123 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3124 echo "configure:3125: checking for ANSI C header files" >&5
3125 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <stdlib.h>
3132 #include <stdarg.h>
3133 #include <string.h>
3134 #include <float.h>
3136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3137 { (eval echo configure:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3138 ac_err=`grep -v '^ *+' conftest.out`
3139 if test -z "$ac_err"; then
3140 rm -rf conftest*
3141 ac_cv_header_stdc=yes
3142 else
3143 echo "$ac_err" >&5
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 rm -rf conftest*
3147 ac_cv_header_stdc=no
3149 rm -f conftest*
3151 if test $ac_cv_header_stdc = yes; then
3152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 #include <string.h>
3158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3159 egrep "memchr" >/dev/null 2>&1; then
3161 else
3162 rm -rf conftest*
3163 ac_cv_header_stdc=no
3165 rm -f conftest*
3169 if test $ac_cv_header_stdc = yes; then
3170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 #include <stdlib.h>
3176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3177 egrep "free" >/dev/null 2>&1; then
3179 else
3180 rm -rf conftest*
3181 ac_cv_header_stdc=no
3183 rm -f conftest*
3187 if test $ac_cv_header_stdc = yes; then
3188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3189 if test "$cross_compiling" = yes; then
3191 else
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 #include <ctype.h>
3196 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3197 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3199 int main () { int i; for (i = 0; i < 256; i++)
3200 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3201 exit (0); }
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3205 then
3207 else
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 rm -fr conftest*
3211 ac_cv_header_stdc=no
3213 rm -fr conftest*
3219 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3220 if test $ac_cv_header_stdc = yes; then
3221 cat >> confdefs.h <<\EOF
3222 #define STDC_HEADERS 1
3227 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3228 echo "configure:3229: checking for size_t" >&5
3229 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3231 else
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3236 #if STDC_HEADERS
3237 #include <stdlib.h>
3238 #include <stddef.h>
3239 #endif
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3243 rm -rf conftest*
3244 ac_cv_type_size_t=yes
3245 else
3246 rm -rf conftest*
3247 ac_cv_type_size_t=no
3249 rm -f conftest*
3252 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3253 if test $ac_cv_type_size_t = no; then
3254 cat >> confdefs.h <<\EOF
3255 #define size_t unsigned
3260 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3261 echo "configure:3262: checking size of long long" >&5
3262 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3264 else
3265 if test "$cross_compiling" = yes; then
3266 ac_cv_sizeof_long_long=0
3267 else
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <stdio.h>
3272 main()
3274 FILE *f=fopen("conftestval", "w");
3275 if (!f) exit(1);
3276 fprintf(f, "%d\n", sizeof(long long));
3277 exit(0);
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3281 then
3282 ac_cv_sizeof_long_long=`cat conftestval`
3283 else
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 rm -fr conftest*
3287 ac_cv_sizeof_long_long=0
3289 rm -fr conftest*
3293 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3294 cat >> confdefs.h <<EOF
3295 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3301 if test $ac_cv_func_sendmsg = no; then
3302 echo $ac_n "checking for sendmsg in -lsocket""... $ac_c" 1>&6
3303 echo "configure:3304: checking for sendmsg in -lsocket" >&5
3304 ac_lib_var=`echo socket'_'sendmsg | sed 'y%./+-%__p_%'`
3305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3307 else
3308 ac_save_LIBS="$LIBS"
3309 LIBS="-lsocket $LIBS"
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char sendmsg();
3318 int main() {
3319 sendmsg()
3320 ; return 0; }
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3323 rm -rf conftest*
3324 eval "ac_cv_lib_$ac_lib_var=yes"
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -rf conftest*
3329 eval "ac_cv_lib_$ac_lib_var=no"
3331 rm -f conftest*
3332 LIBS="$ac_save_LIBS"
3335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_lib 1
3343 LIBS="-lsocket $LIBS"
3345 else
3346 echo "$ac_t""no" 1>&6
3352 if test "$ac_cv_header_sys_vfs_h" = "yes"
3353 then
3354 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
3355 echo "configure:3356: checking "whether sys/vfs.h defines statfs"" >&5
3356 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358 else
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3363 #include <sys/types.h>
3364 #ifdef HAVE_SYS_PARAM_H
3365 # include <sys/param.h>
3366 #endif
3367 #include <sys/vfs.h>
3369 int main() {
3371 struct statfs stfs;
3373 memset(&stfs,0,sizeof(stfs));
3375 ; return 0; }
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 rm -rf conftest*
3379 wine_cv_sys_vfs_has_statfs=yes
3380 else
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3383 rm -rf conftest*
3384 wine_cv_sys_vfs_has_statfs=no
3387 rm -f conftest*
3391 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
3392 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
3393 then
3394 cat >> confdefs.h <<\EOF
3395 #define STATFS_DEFINED_BY_SYS_VFS 1
3401 if test "$ac_cv_header_sys_statfs_h" = "yes"
3402 then
3403 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
3404 echo "configure:3405: checking "whether sys/statfs.h defines statfs"" >&5
3405 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3407 else
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3412 #include <sys/types.h>
3413 #ifdef HAVE_SYS_PARAM_H
3414 # include <sys/param.h>
3415 #endif
3416 #include <sys/statfs.h>
3418 int main() {
3420 struct statfs stfs;
3422 ; return 0; }
3424 if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 rm -rf conftest*
3426 wine_cv_sys_statfs_has_statfs=yes
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 wine_cv_sys_statfs_has_statfs=no
3434 rm -f conftest*
3438 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
3439 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
3440 then
3441 cat >> confdefs.h <<\EOF
3442 #define STATFS_DEFINED_BY_SYS_STATFS 1
3448 if test "$ac_cv_header_sys_mount_h" = "yes"
3449 then
3450 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
3451 echo "configure:3452: checking "whether sys/mount.h defines statfs"" >&5
3452 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3459 #include <sys/types.h>
3460 #ifdef HAVE_SYS_PARAM_H
3461 # include <sys/param.h>
3462 #endif
3463 #include <sys/mount.h>
3465 int main() {
3467 struct statfs stfs;
3469 ; return 0; }
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 rm -rf conftest*
3473 wine_cv_sys_mount_has_statfs=yes
3474 else
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 rm -rf conftest*
3478 wine_cv_sys_mount_has_statfs=no
3481 rm -f conftest*
3485 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
3486 if test "$wine_cv_sys_mount_has_statfs" = "yes"
3487 then
3488 cat >> confdefs.h <<\EOF
3489 #define STATFS_DEFINED_BY_SYS_MOUNT 1
3496 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
3497 echo "configure:3498: checking "for statfs.f_bfree"" >&5
3498 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 if test "x$statfs_bfree" = "xno"
3502 then
3503 wine_cv_statfs_bfree=no
3504 else
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3509 #include <sys/types.h>
3510 #ifdef HAVE_SYS_PARAM_H
3511 # include <sys/param.h>
3512 #endif
3513 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3514 # include <sys/mount.h>
3515 #else
3516 # ifdef STATFS_DEFINED_BY_SYS_VFS
3517 # include <sys/vfs.h>
3518 # else
3519 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3520 # include <sys/statfs.h>
3521 # endif
3522 # endif
3523 #endif
3525 int main() {
3527 struct statfs stfs;
3529 stfs.f_bfree++;
3531 ; return 0; }
3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 rm -rf conftest*
3535 wine_cv_statfs_bfree=yes
3536 else
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 rm -rf conftest*
3540 wine_cv_statfs_bfree=no
3543 rm -f conftest*
3547 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
3548 if test "$wine_cv_statfs_bfree" = "yes"
3549 then
3550 cat >> confdefs.h <<\EOF
3551 #define STATFS_HAS_BFREE 1
3556 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
3557 echo "configure:3558: checking "for statfs.f_bavail"" >&5
3558 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3560 else
3561 if test "x$statfs_bavail" = "xno"
3562 then
3563 wine_cv_statfs_bavail=no
3564 else
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3569 #include <sys/types.h>
3570 #ifdef HAVE_SYS_PARAM_H
3571 # include <sys/param.h>
3572 #endif
3573 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
3574 # include <sys/mount.h>
3575 #else
3576 # ifdef STATFS_DEFINED_BY_SYS_VFS
3577 # include <sys/vfs.h>
3578 # else
3579 # ifdef STATFS_DEFINED_BY_SYS_STATFS
3580 # include <sys/statfs.h>
3581 # endif
3582 # endif
3583 #endif
3585 int main() {
3587 struct statfs stfs;
3589 stfs.f_bavail++;
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 rm -rf conftest*
3595 wine_cv_statfs_bavail=yes
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 wine_cv_statfs_bavail=no
3603 rm -f conftest*
3607 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
3608 if test "$wine_cv_statfs_bavail" = "yes"
3609 then
3610 cat >> confdefs.h <<\EOF
3611 #define STATFS_HAS_BAVAIL 1
3617 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
3618 echo "configure:3619: checking "for working sigaltstack"" >&5
3619 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3621 else
3622 if test "$cross_compiling" = yes; then
3623 ac_cv_c_working_sigaltstack="no"
3625 else
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3630 #include <stdio.h>
3631 #include <time.h> /* <sys/time.h> ? bad magic without end */
3632 #include <sys/types.h>
3633 #include <sys/signal.h>
3634 #ifdef HAVE_SYS_PARAM_H
3635 # include <sys/param.h>
3636 #endif
3637 #ifdef HAVE_SYSCALL_H
3638 # include <syscall.h>
3639 #else
3640 # ifdef HAVE_SYS_SYSCALL_H
3641 # include <sys/syscall.h>
3642 # endif
3643 #endif
3645 unsigned char *xaltstack;
3648 main(int argc,char **argv) {
3649 struct sigaltstack ss;
3651 xaltstack = malloc(16384);
3652 ss.ss_sp = xaltstack;
3653 ss.ss_size = 16384;
3654 ss.ss_flags = 0;
3655 if (sigaltstack(&ss, NULL) < 0) {
3656 /* this catches the glibc case */
3657 perror("sigaltstack");
3658 return (1); /* aka exit(1) aka fail */
3660 /* assume it works. */
3661 return 0; /* OK */
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3666 then
3667 ac_cv_c_working_sigaltstack="yes"
3668 else
3669 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3671 rm -fr conftest*
3672 ac_cv_c_working_sigaltstack="no"
3674 rm -fr conftest*
3679 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
3681 if test "$ac_cv_c_working_sigaltstack" = "yes"
3682 then
3683 cat >> confdefs.h <<\EOF
3684 #define HAVE_WORKING_SIGALTSTACK 1
3691 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
3692 echo "configure:3693: checking "for msg_accrights in struct msghdr"" >&5
3693 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <sys/types.h>
3700 #include <sys/socket.h>
3701 int main() {
3702 struct msghdr hdr; hdr.msg_accrights=0
3703 ; return 0; }
3705 if { (eval echo configure:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 rm -rf conftest*
3707 ac_cv_c_msg_accrights="yes"
3708 else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -rf conftest*
3712 ac_cv_c_msg_accrights="no"
3714 rm -f conftest*
3717 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
3718 if test "$ac_cv_c_msg_accrights" = "yes"
3719 then
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_MSGHDR_ACCRIGHTS 1
3727 MAKE_RULES=Make.rules
3730 trap '' 1 2 15
3731 cat > confcache <<\EOF
3732 # This file is a shell script that caches the results of configure
3733 # tests run on this system so they can be shared between configure
3734 # scripts and configure runs. It is not useful on other systems.
3735 # If it contains results you don't want to keep, you may remove or edit it.
3737 # By default, configure uses ./config.cache as the cache file,
3738 # creating it if it does not exist already. You can give configure
3739 # the --cache-file=FILE option to use a different cache file; that is
3740 # what configure does when it calls configure scripts in
3741 # subdirectories, so they share the cache.
3742 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3743 # config.status only pays attention to the cache file if you give it the
3744 # --recheck option to rerun configure.
3747 # The following way of writing the cache mishandles newlines in values,
3748 # but we know of no workaround that is simple, portable, and efficient.
3749 # So, don't put newlines in cache variables' values.
3750 # Ultrix sh set writes to stderr and can't be redirected directly,
3751 # and sets the high bit in the cache file unless we assign to the vars.
3752 (set) 2>&1 |
3753 case `(ac_space=' '; set) 2>&1` in
3754 *ac_space=\ *)
3755 # `set' does not quote correctly, so add quotes (double-quote substitution
3756 # turns \\\\ into \\, and sed turns \\ into \).
3757 sed -n \
3758 -e "s/'/'\\\\''/g" \
3759 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3762 # `set' quotes correctly as required by POSIX, so do not add quotes.
3763 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3765 esac >> confcache
3766 if cmp -s $cache_file confcache; then
3768 else
3769 if test -w $cache_file; then
3770 echo "updating cache $cache_file"
3771 cat confcache > $cache_file
3772 else
3773 echo "not updating unwritable cache $cache_file"
3776 rm -f confcache
3778 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3781 # Let make expand exec_prefix.
3782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3784 # Any assignment to VPATH causes Sun make to only execute
3785 # the first set of double-colon rules, so remove it if not needed.
3786 # If there is a colon in the path, we need to keep it.
3787 if test "x$srcdir" = x.; then
3788 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3791 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3793 DEFS=-DHAVE_CONFIG_H
3795 # Without the "./", some shells look in PATH for config.status.
3796 : ${CONFIG_STATUS=./config.status}
3798 echo creating $CONFIG_STATUS
3799 rm -f $CONFIG_STATUS
3800 cat > $CONFIG_STATUS <<EOF
3801 #! /bin/sh
3802 # Generated automatically by configure.
3803 # Run this file to recreate the current configuration.
3804 # This directory was configured as follows,
3805 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3807 # $0 $ac_configure_args
3809 # Compiler output produced by configure, useful for debugging
3810 # configure, is in ./config.log if it exists.
3812 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3813 for ac_option
3815 case "\$ac_option" in
3816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3817 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3818 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3819 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3820 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3821 exit 0 ;;
3822 -help | --help | --hel | --he | --h)
3823 echo "\$ac_cs_usage"; exit 0 ;;
3824 *) echo "\$ac_cs_usage"; exit 1 ;;
3825 esac
3826 done
3828 ac_given_srcdir=$srcdir
3829 ac_given_INSTALL="$INSTALL"
3831 trap 'rm -fr `echo "
3832 Make.rules
3833 Makefile
3834 console/Makefile
3835 controls/Makefile
3836 debugger/Makefile
3837 dlls/Makefile
3838 dlls/comctl32/Makefile
3839 dlls/imagehlp/Makefile
3840 dlls/msacm/Makefile
3841 dlls/msacm32/Makefile
3842 dlls/ntdll/Makefile
3843 dlls/psapi/Makefile
3844 dlls/rasapi32/Makefile
3845 dlls/shell32/Makefile
3846 dlls/winaspi/Makefile
3847 dlls/wnaspi32/Makefile
3848 documentation/Makefile
3849 files/Makefile
3850 graphics/Makefile
3851 graphics/metafiledrv/Makefile
3852 graphics/psdrv/Makefile
3853 graphics/win16drv/Makefile
3854 graphics/x11drv/Makefile
3855 if1632/Makefile
3856 ipc/Makefile
3857 library/Makefile
3858 libtest/Makefile
3859 loader/Makefile
3860 loader/ne/Makefile
3861 loader/dos/Makefile
3862 memory/Makefile
3863 misc/Makefile
3864 miscemu/Makefile
3865 msdos/Makefile
3866 multimedia/Makefile
3867 objects/Makefile
3868 ole/Makefile
3869 programs/Makefile
3870 programs/clock/Makefile
3871 programs/control/Makefile
3872 programs/notepad/Makefile
3873 programs/progman/Makefile
3874 programs/regtest/Makefile
3875 programs/view/Makefile
3876 programs/winhelp/Makefile
3877 programs/winver/Makefile
3878 rc/Makefile
3879 relay32/Makefile
3880 resources/Makefile
3881 scheduler/Makefile
3882 server/Makefile
3883 tools/Makefile
3884 tools/wrc/Makefile
3885 tsx11/Makefile
3886 win32/Makefile
3887 windows/Makefile
3888 windows/ttydrv/Makefile
3889 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3891 cat >> $CONFIG_STATUS <<EOF
3893 # Protect against being on the right side of a sed subst in config.status.
3894 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3895 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3896 $ac_vpsub
3897 $extrasub
3898 s%@CFLAGS@%$CFLAGS%g
3899 s%@CPPFLAGS@%$CPPFLAGS%g
3900 s%@CXXFLAGS@%$CXXFLAGS%g
3901 s%@DEFS@%$DEFS%g
3902 s%@LDFLAGS@%$LDFLAGS%g
3903 s%@LIBS@%$LIBS%g
3904 s%@exec_prefix@%$exec_prefix%g
3905 s%@prefix@%$prefix%g
3906 s%@program_transform_name@%$program_transform_name%g
3907 s%@bindir@%$bindir%g
3908 s%@sbindir@%$sbindir%g
3909 s%@libexecdir@%$libexecdir%g
3910 s%@datadir@%$datadir%g
3911 s%@sysconfdir@%$sysconfdir%g
3912 s%@sharedstatedir@%$sharedstatedir%g
3913 s%@localstatedir@%$localstatedir%g
3914 s%@libdir@%$libdir%g
3915 s%@includedir@%$includedir%g
3916 s%@oldincludedir@%$oldincludedir%g
3917 s%@infodir@%$infodir%g
3918 s%@mandir@%$mandir%g
3919 s%@PROGEXT@%$PROGEXT%g
3920 s%@MAIN_TARGET@%$MAIN_TARGET%g
3921 s%@LIB_TARGET@%$LIB_TARGET%g
3922 s%@ALT_LINK@%$ALT_LINK%g
3923 s%@OPTIONS@%$OPTIONS%g
3924 s%@SET_MAKE@%$SET_MAKE%g
3925 s%@CC@%$CC%g
3926 s%@CPP@%$CPP%g
3927 s%@X_CFLAGS@%$X_CFLAGS%g
3928 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3929 s%@X_LIBS@%$X_LIBS%g
3930 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3931 s%@YACC@%$YACC%g
3932 s%@LEX@%$LEX%g
3933 s%@LEXLIB@%$LEXLIB%g
3934 s%@RANLIB@%$RANLIB%g
3935 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3936 s%@INSTALL_DATA@%$INSTALL_DATA%g
3937 s%@LN_S@%$LN_S%g
3938 s%@C2MAN@%$C2MAN%g
3939 s%@XLIB@%$XLIB%g
3940 s%@DLLFLAGS@%$DLLFLAGS%g
3941 s%@LDSHARED@%$LDSHARED%g
3942 /@MAKE_RULES@/r $MAKE_RULES
3943 s%@MAKE_RULES@%%g
3945 CEOF
3948 cat >> $CONFIG_STATUS <<\EOF
3950 # Split the substitutions into bite-sized pieces for seds with
3951 # small command number limits, like on Digital OSF/1 and HP-UX.
3952 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3953 ac_file=1 # Number of current file.
3954 ac_beg=1 # First line for current file.
3955 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3956 ac_more_lines=:
3957 ac_sed_cmds=""
3958 while $ac_more_lines; do
3959 if test $ac_beg -gt 1; then
3960 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3961 else
3962 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3964 if test ! -s conftest.s$ac_file; then
3965 ac_more_lines=false
3966 rm -f conftest.s$ac_file
3967 else
3968 if test -z "$ac_sed_cmds"; then
3969 ac_sed_cmds="sed -f conftest.s$ac_file"
3970 else
3971 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3973 ac_file=`expr $ac_file + 1`
3974 ac_beg=$ac_end
3975 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3977 done
3978 if test -z "$ac_sed_cmds"; then
3979 ac_sed_cmds=cat
3983 cat >> $CONFIG_STATUS <<EOF
3985 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
3986 Makefile
3987 console/Makefile
3988 controls/Makefile
3989 debugger/Makefile
3990 dlls/Makefile
3991 dlls/comctl32/Makefile
3992 dlls/imagehlp/Makefile
3993 dlls/msacm/Makefile
3994 dlls/msacm32/Makefile
3995 dlls/ntdll/Makefile
3996 dlls/psapi/Makefile
3997 dlls/rasapi32/Makefile
3998 dlls/shell32/Makefile
3999 dlls/winaspi/Makefile
4000 dlls/wnaspi32/Makefile
4001 documentation/Makefile
4002 files/Makefile
4003 graphics/Makefile
4004 graphics/metafiledrv/Makefile
4005 graphics/psdrv/Makefile
4006 graphics/win16drv/Makefile
4007 graphics/x11drv/Makefile
4008 if1632/Makefile
4009 ipc/Makefile
4010 library/Makefile
4011 libtest/Makefile
4012 loader/Makefile
4013 loader/ne/Makefile
4014 loader/dos/Makefile
4015 memory/Makefile
4016 misc/Makefile
4017 miscemu/Makefile
4018 msdos/Makefile
4019 multimedia/Makefile
4020 objects/Makefile
4021 ole/Makefile
4022 programs/Makefile
4023 programs/clock/Makefile
4024 programs/control/Makefile
4025 programs/notepad/Makefile
4026 programs/progman/Makefile
4027 programs/regtest/Makefile
4028 programs/view/Makefile
4029 programs/winhelp/Makefile
4030 programs/winver/Makefile
4031 rc/Makefile
4032 relay32/Makefile
4033 resources/Makefile
4034 scheduler/Makefile
4035 server/Makefile
4036 tools/Makefile
4037 tools/wrc/Makefile
4038 tsx11/Makefile
4039 win32/Makefile
4040 windows/Makefile
4041 windows/ttydrv/Makefile
4042 windows/x11drv/Makefile "}
4044 cat >> $CONFIG_STATUS <<\EOF
4045 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4047 case "$ac_file" in
4048 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4049 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4050 *) ac_file_in="${ac_file}.in" ;;
4051 esac
4053 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4055 # Remove last slash and all that follows it. Not all systems have dirname.
4056 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4057 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4058 # The file is in a subdirectory.
4059 test ! -d "$ac_dir" && mkdir "$ac_dir"
4060 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4061 # A "../" for each directory in $ac_dir_suffix.
4062 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4063 else
4064 ac_dir_suffix= ac_dots=
4067 case "$ac_given_srcdir" in
4068 .) srcdir=.
4069 if test -z "$ac_dots"; then top_srcdir=.
4070 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4071 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4072 *) # Relative path.
4073 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4074 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4075 esac
4077 case "$ac_given_INSTALL" in
4078 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4079 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4080 esac
4082 echo creating "$ac_file"
4083 rm -f "$ac_file"
4084 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4085 case "$ac_file" in
4086 *Makefile*) ac_comsub="1i\\
4087 # $configure_input" ;;
4088 *) ac_comsub= ;;
4089 esac
4091 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4092 sed -e "$ac_comsub
4093 s%@configure_input@%$configure_input%g
4094 s%@srcdir@%$srcdir%g
4095 s%@top_srcdir@%$top_srcdir%g
4096 s%@INSTALL@%$INSTALL%g
4097 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4098 fi; done
4099 rm -f conftest.s*
4101 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4102 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4104 # ac_d sets the value in "#define NAME VALUE" lines.
4105 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4106 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4107 ac_dC='\3'
4108 ac_dD='%g'
4109 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4110 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4111 ac_uB='\([ ]\)%\1#\2define\3'
4112 ac_uC=' '
4113 ac_uD='\4%g'
4114 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4115 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4116 ac_eB='$%\1#\2define\3'
4117 ac_eC=' '
4118 ac_eD='%g'
4120 if test "${CONFIG_HEADERS+set}" != set; then
4122 cat >> $CONFIG_STATUS <<EOF
4123 CONFIG_HEADERS="include/config.h"
4125 cat >> $CONFIG_STATUS <<\EOF
4127 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4129 case "$ac_file" in
4130 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4131 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4132 *) ac_file_in="${ac_file}.in" ;;
4133 esac
4135 echo creating $ac_file
4137 rm -f conftest.frag conftest.in conftest.out
4138 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4139 cat $ac_file_inputs > conftest.in
4143 # Transform confdefs.h into a sed script conftest.vals that substitutes
4144 # the proper values into config.h.in to produce config.h. And first:
4145 # Protect against being on the right side of a sed subst in config.status.
4146 # Protect against being in an unquoted here document in config.status.
4147 rm -f conftest.vals
4148 cat > conftest.hdr <<\EOF
4149 s/[\\&%]/\\&/g
4150 s%[\\$`]%\\&%g
4151 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4152 s%ac_d%ac_u%gp
4153 s%ac_u%ac_e%gp
4155 sed -n -f conftest.hdr confdefs.h > conftest.vals
4156 rm -f conftest.hdr
4158 # This sed command replaces #undef with comments. This is necessary, for
4159 # example, in the case of _POSIX_SOURCE, which is predefined and required
4160 # on some systems where configure will not decide to define it.
4161 cat >> conftest.vals <<\EOF
4162 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4165 # Break up conftest.vals because some shells have a limit on
4166 # the size of here documents, and old seds have small limits too.
4168 rm -f conftest.tail
4169 while :
4171 ac_lines=`grep -c . conftest.vals`
4172 # grep -c gives empty output for an empty file on some AIX systems.
4173 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4174 # Write a limited-size here document to conftest.frag.
4175 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4176 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4177 echo 'CEOF
4178 sed -f conftest.frag conftest.in > conftest.out
4179 rm -f conftest.in
4180 mv conftest.out conftest.in
4181 ' >> $CONFIG_STATUS
4182 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4183 rm -f conftest.vals
4184 mv conftest.tail conftest.vals
4185 done
4186 rm -f conftest.vals
4188 cat >> $CONFIG_STATUS <<\EOF
4189 rm -f conftest.frag conftest.h
4190 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4191 cat conftest.in >> conftest.h
4192 rm -f conftest.in
4193 if cmp -s $ac_file conftest.h 2>/dev/null; then
4194 echo "$ac_file is unchanged"
4195 rm -f conftest.h
4196 else
4197 # Remove last slash and all that follows it. Not all systems have dirname.
4198 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4199 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4200 # The file is in a subdirectory.
4201 test ! -d "$ac_dir" && mkdir "$ac_dir"
4203 rm -f $ac_file
4204 mv conftest.h $ac_file
4206 fi; done
4209 cat >> $CONFIG_STATUS <<EOF
4212 cat >> $CONFIG_STATUS <<\EOF
4214 exit 0
4216 chmod +x $CONFIG_STATUS
4217 rm -fr confdefs* $ac_clean_files
4218 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4221 if test "$wine_cv_libc_reentrant" = "no"
4222 then
4223 echo
4224 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
4225 echo "*** thread support. Consider upgrading libc to a more recent"
4226 echo "*** reentrant version of libc."
4227 echo
4230 echo
4231 echo "Configure finished. Do 'make depend; make' to compile Wine."
4232 echo