debug.h must be last in list of includes.
[wine/multimedia.git] / configure
blobb7a7f347d6bed8364cbf8361b3705a57d08867a0
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --enable-dll build the Wine library as a DLL"
19 ac_help="$ac_help
20 --disable-lib build the Wine without building libwine.a"
21 ac_help="$ac_help
22 --disable-debug compile out all debugging messages"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 # Maximum number of lines to put in a shell here document.
68 ac_max_here_lines=12
70 ac_prev=
71 for ac_option
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
86 # Accept the important Cygnus configure options, so we can diagnose typos.
88 case "$ac_option" in
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
154 Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
351 exit 0 ;;
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 nonopt="$ac_option"
406 esac
407 done
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424 exec 6>/dev/null
425 else
426 exec 6>&1
428 exec 5>./config.log
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449 done
451 # NLS nuisances.
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=controls/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
481 else
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
506 done
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511 else
512 echo "creating cache $cache_file"
513 > $cache_file
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527 ' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
531 else
532 ac_n= ac_c='\c' ac_t=
537 ac_aux_dir=
538 for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
548 done
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
558 LIBS="$LIBS -lm"
559 test -z "$PROGEXT" && PROGEXT=""
562 MAIN_TARGET=emu
563 LIB_TARGET=libwine.a
564 ALT_LINK="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS=yes # the TRACE() macro
566 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
590 # Check whether --enable-debug or --disable-debug was given.
591 if test "${enable_debug+set}" = set; then
592 enableval="$enable_debug"
593 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
597 # Check whether --enable-trace or --disable-trace was given.
598 if test "${enable_trace+set}" = set; then
599 enableval="$enable_trace"
600 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
604 # Check whether --with-reentrant-x or --without-reentrant-x was given.
605 if test "${with_reentrant_x+set}" = set; then
606 withval="$with_reentrant_x"
616 if test "$DEBUG_MSGS" = "no"
617 then
618 cat >> confdefs.h <<\EOF
619 #define NO_DEBUG_MSGS 1
622 cat >> confdefs.h <<\EOF
623 #define NO_TRACE_MSGS 1
626 else
627 if test "$TRACE_MSGS" = "no"
628 then
629 cat >> confdefs.h <<\EOF
630 #define NO_TRACE_MSGS 1
637 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
638 echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
640 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642 else
643 cat > conftestmake <<\EOF
644 all:
645 @echo 'ac_maketemp="${MAKE}"'
647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649 if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_${ac_make}_set=yes
651 else
652 eval ac_cv_prog_make_${ac_make}_set=no
654 rm -f conftestmake
656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
658 SET_MAKE=
659 else
660 echo "$ac_t""no" 1>&6
661 SET_MAKE="MAKE=${MAKE-make}"
664 # Extract the first word of "gcc", so it can be a program name with args.
665 set dummy gcc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673 else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
675 for ac_dir in $PATH; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
681 done
682 IFS="$ac_save_ifs"
685 CC="$ac_cv_prog_CC"
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688 else
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc; ac_word=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 if test -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702 else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 ac_prog_rejected=no
705 for ac_dir in $PATH; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 ac_prog_rejected=yes
710 continue
712 ac_cv_prog_CC="cc"
713 break
715 done
716 IFS="$ac_save_ifs"
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
720 shift
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
725 shift
726 set dummy "$ac_dir/$ac_word" "$@"
727 shift
728 ac_cv_prog_CC="$@"
733 CC="$ac_cv_prog_CC"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
736 else
737 echo "$ac_t""no" 1>&6
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 ac_ext=c
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CPP $CPPFLAGS'
749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cc_cross
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
756 main(){return(0);}
758 if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
759 ac_cv_prog_cc_works=yes
760 # If we can't run a trivial program, we are probably using a cross compiler.
761 if (./conftest; exit) 2>/dev/null; then
762 ac_cv_prog_cc_cross=no
763 else
764 ac_cv_prog_cc_cross=yes
766 else
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
769 ac_cv_prog_cc_works=no
771 rm -fr conftest*
773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774 if test $ac_cv_prog_cc_works = no; then
775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780 cross_compiling=$ac_cv_prog_cc_cross
782 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783 echo "configure:784: checking whether we are using GNU C" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 cat > conftest.c <<EOF
788 #ifdef __GNUC__
789 yes;
790 #endif
792 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
793 ac_cv_prog_gcc=yes
794 else
795 ac_cv_prog_gcc=no
799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
801 if test $ac_cv_prog_gcc = yes; then
802 GCC=yes
803 ac_test_CFLAGS="${CFLAGS+set}"
804 ac_save_CFLAGS="$CFLAGS"
805 CFLAGS=
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 ac_cv_prog_cc_g=yes
814 else
815 ac_cv_prog_cc_g=no
817 rm -f conftest*
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
825 CFLAGS="-g -O2"
826 else
827 CFLAGS="-O2"
829 else
830 GCC=
831 test "${CFLAGS+set}" = set || CFLAGS="-g"
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
838 CPP=
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843 else
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 CPP="${CC-cc} -E"
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
852 #include <assert.h>
853 Syntax Error
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err=`grep -v '^ *+' conftest.out`
858 if test -z "$ac_err"; then
860 else
861 echo "$ac_err" >&5
862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
864 rm -rf conftest*
865 CPP="${CC-cc} -E -traditional-cpp"
866 cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <assert.h>
870 Syntax Error
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out`
875 if test -z "$ac_err"; then
877 else
878 echo "$ac_err" >&5
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 CPP=/lib/cpp
884 rm -f conftest*
886 rm -f conftest*
887 ac_cv_prog_CPP="$CPP"
889 CPP="$ac_cv_prog_CPP"
890 else
891 ac_cv_prog_CPP="$CPP"
893 echo "$ac_t""$CPP" 1>&6
895 # If we find X, set shell vars x_includes and x_libraries to the
896 # paths, otherwise set no_x=yes.
897 # Uses ac_ vars as temps to allow command line to override cache and checks.
898 # --without-x overrides everything else, but does not touch the cache.
899 echo $ac_n "checking for X""... $ac_c" 1>&6
900 echo "configure:901: checking for X" >&5
902 # Check whether --with-x or --without-x was given.
903 if test "${with_x+set}" = set; then
904 withval="$with_x"
908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
909 if test "x$with_x" = xno; then
910 # The user explicitly disabled X.
911 have_x=disabled
912 else
913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
914 # Both variables are already set.
915 have_x=yes
916 else
917 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 # One or both of the vars are not set, and there is no cached value.
921 ac_x_includes=NO ac_x_libraries=NO
922 rm -fr conftestdir
923 if mkdir conftestdir; then
924 cd conftestdir
925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
926 cat > Imakefile <<'EOF'
927 acfindx:
928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
934 for ac_extension in a so sl; do
935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
936 test -f $ac_im_libdir/libX11.$ac_extension; then
937 ac_im_usrlibdir=$ac_im_libdir; break
939 done
940 # Screen out bogus values from the imake configuration. They are
941 # bogus both because they are the default anyway, and because
942 # using them would break gcc on systems where it needs fixed includes.
943 case "$ac_im_incroot" in
944 /usr/include) ;;
945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
946 esac
947 case "$ac_im_usrlibdir" in
948 /usr/lib | /lib) ;;
949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
950 esac
952 cd ..
953 rm -fr conftestdir
956 if test "$ac_x_includes" = NO; then
957 # Guess where to find include files, by looking for this one X11 .h file.
958 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
960 # First, try using that file with no special directory specified.
961 cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
964 #include <$x_direct_test_include>
966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err=`grep -v '^ *+' conftest.out`
969 if test -z "$ac_err"; then
970 rm -rf conftest*
971 # We can compile using X headers with no special include directory.
972 ac_x_includes=
973 else
974 echo "$ac_err" >&5
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 # Look for the header file in a standard set of common directories.
979 # Check X11 before X11Rn because it is often a symlink to the current release.
980 for ac_dir in \
981 /usr/X11/include \
982 /usr/X11R6/include \
983 /usr/X11R5/include \
984 /usr/X11R4/include \
986 /usr/include/X11 \
987 /usr/include/X11R6 \
988 /usr/include/X11R5 \
989 /usr/include/X11R4 \
991 /usr/local/X11/include \
992 /usr/local/X11R6/include \
993 /usr/local/X11R5/include \
994 /usr/local/X11R4/include \
996 /usr/local/include/X11 \
997 /usr/local/include/X11R6 \
998 /usr/local/include/X11R5 \
999 /usr/local/include/X11R4 \
1001 /usr/X386/include \
1002 /usr/x386/include \
1003 /usr/XFree86/include/X11 \
1005 /usr/include \
1006 /usr/local/include \
1007 /usr/unsupported/include \
1008 /usr/athena/include \
1009 /usr/local/x11r5/include \
1010 /usr/lpp/Xamples/include \
1012 /usr/openwin/include \
1013 /usr/openwin/share/include \
1016 if test -r "$ac_dir/$x_direct_test_include"; then
1017 ac_x_includes=$ac_dir
1018 break
1020 done
1022 rm -f conftest*
1023 fi # $ac_x_includes = NO
1025 if test "$ac_x_libraries" = NO; then
1026 # Check for the libraries.
1028 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1029 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1031 # See if we find them without any special options.
1032 # Don't add to $LIBS permanently.
1033 ac_save_LIBS="$LIBS"
1034 LIBS="-l$x_direct_test_library $LIBS"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1039 int main() {
1040 ${x_direct_test_function}()
1041 ; return 0; }
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1044 rm -rf conftest*
1045 LIBS="$ac_save_LIBS"
1046 # We can link X programs with no special library path.
1047 ac_x_libraries=
1048 else
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1051 rm -rf conftest*
1052 LIBS="$ac_save_LIBS"
1053 # First see if replacing the include by lib works.
1054 # Check X11 before X11Rn because it is often a symlink to the current release.
1055 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1056 /usr/X11/lib \
1057 /usr/X11R6/lib \
1058 /usr/X11R5/lib \
1059 /usr/X11R4/lib \
1061 /usr/lib/X11 \
1062 /usr/lib/X11R6 \
1063 /usr/lib/X11R5 \
1064 /usr/lib/X11R4 \
1066 /usr/local/X11/lib \
1067 /usr/local/X11R6/lib \
1068 /usr/local/X11R5/lib \
1069 /usr/local/X11R4/lib \
1071 /usr/local/lib/X11 \
1072 /usr/local/lib/X11R6 \
1073 /usr/local/lib/X11R5 \
1074 /usr/local/lib/X11R4 \
1076 /usr/X386/lib \
1077 /usr/x386/lib \
1078 /usr/XFree86/lib/X11 \
1080 /usr/lib \
1081 /usr/local/lib \
1082 /usr/unsupported/lib \
1083 /usr/athena/lib \
1084 /usr/local/x11r5/lib \
1085 /usr/lpp/Xamples/lib \
1086 /lib/usr/lib/X11 \
1088 /usr/openwin/lib \
1089 /usr/openwin/share/lib \
1092 for ac_extension in a so sl; do
1093 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1094 ac_x_libraries=$ac_dir
1095 break 2
1097 done
1098 done
1100 rm -f conftest*
1101 fi # $ac_x_libraries = NO
1103 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1104 # Didn't find X anywhere. Cache the known absence of X.
1105 ac_cv_have_x="have_x=no"
1106 else
1107 # Record where we found X for the cache.
1108 ac_cv_have_x="have_x=yes \
1109 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1113 eval "$ac_cv_have_x"
1114 fi # $with_x != no
1116 if test "$have_x" != yes; then
1117 echo "$ac_t""$have_x" 1>&6
1118 no_x=yes
1119 else
1120 # If each of the values was on the command line, it overrides each guess.
1121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1123 # Update the cache value to reflect the command line values.
1124 ac_cv_have_x="have_x=yes \
1125 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1126 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1129 if test "$no_x" = yes; then
1130 # Not all programs may use this symbol, but it does not hurt to define it.
1131 cat >> confdefs.h <<\EOF
1132 #define X_DISPLAY_MISSING 1
1135 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1136 else
1137 if test -n "$x_includes"; then
1138 X_CFLAGS="$X_CFLAGS -I$x_includes"
1141 # It would also be nice to do this for all -L options, not just this one.
1142 if test -n "$x_libraries"; then
1143 X_LIBS="$X_LIBS -L$x_libraries"
1144 # For Solaris; some versions of Sun CC require a space after -R and
1145 # others require no space. Words are not sufficient . . . .
1146 case "`(uname -sr) 2>/dev/null`" in
1147 "SunOS 5"*)
1148 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether -R must be followed by a space" >&5
1150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 int main() {
1157 ; return 0; }
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1160 rm -rf conftest*
1161 ac_R_nospace=yes
1162 else
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 rm -rf conftest*
1166 ac_R_nospace=no
1168 rm -f conftest*
1169 if test $ac_R_nospace = yes; then
1170 echo "$ac_t""no" 1>&6
1171 X_LIBS="$X_LIBS -R$x_libraries"
1172 else
1173 LIBS="$ac_xsave_LIBS -R $x_libraries"
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1178 int main() {
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 rm -rf conftest*
1184 ac_R_space=yes
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_R_space=no
1191 rm -f conftest*
1192 if test $ac_R_space = yes; then
1193 echo "$ac_t""yes" 1>&6
1194 X_LIBS="$X_LIBS -R $x_libraries"
1195 else
1196 echo "$ac_t""neither works" 1>&6
1199 LIBS="$ac_xsave_LIBS"
1200 esac
1203 # Check for system-dependent libraries X programs must link with.
1204 # Do this before checking for the system-independent R6 libraries
1205 # (-lICE), since we may need -lsocket or whatever for X linking.
1207 if test "$ISC" = yes; then
1208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1209 else
1210 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1211 # libraries were built with DECnet support. And karl@cs.umb.edu says
1212 # the Alpha needs dnet_stub (dnet does not exist).
1213 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1214 echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5
1215 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 ac_save_LIBS="$LIBS"
1220 LIBS="-ldnet $LIBS"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1227 char dnet_ntoa();
1229 int main() {
1230 dnet_ntoa()
1231 ; return 0; }
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1234 rm -rf conftest*
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1236 else
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 rm -rf conftest*
1240 eval "ac_cv_lib_$ac_lib_var=no"
1242 rm -f conftest*
1243 LIBS="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1249 else
1250 echo "$ac_t""no" 1>&6
1253 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1254 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1255 echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5
1256 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260 ac_save_LIBS="$LIBS"
1261 LIBS="-ldnet_stub $LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1268 char dnet_ntoa();
1270 int main() {
1271 dnet_ntoa()
1272 ; return 0; }
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 rm -rf conftest*
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 eval "ac_cv_lib_$ac_lib_var=no"
1283 rm -f conftest*
1284 LIBS="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1290 else
1291 echo "$ac_t""no" 1>&6
1296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1297 # to get the SysV transport functions.
1298 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # needs -lnsl.
1300 # The nsl library prevents programs from opening the X display
1301 # on Irix 5.2, according to dickey@clark.net.
1302 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1303 echo "configure:1304: checking for gethostbyname" >&5
1304 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* System header to define __stub macros and hopefully few prototypes,
1311 which can conflict with char gethostbyname(); below. */
1312 #include <assert.h>
1313 /* Override any gcc2 internal prototype to avoid an error. */
1314 /* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1316 char gethostbyname();
1318 int main() {
1320 /* The GNU C library defines this for functions which it implements
1321 to always fail with ENOSYS. Some functions are actually named
1322 something starting with __ and the normal name is an alias. */
1323 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1324 choke me
1325 #else
1326 gethostbyname();
1327 #endif
1329 ; return 0; }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1332 rm -rf conftest*
1333 eval "ac_cv_func_gethostbyname=yes"
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_func_gethostbyname=no"
1340 rm -f conftest*
1343 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1346 else
1347 echo "$ac_t""no" 1>&6
1350 if test $ac_cv_func_gethostbyname = no; then
1351 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1352 echo "configure:1353: checking for gethostbyname in -lnsl" >&5
1353 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 ac_save_LIBS="$LIBS"
1358 LIBS="-lnsl $LIBS"
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 /* Override any gcc2 internal prototype to avoid an error. */
1363 /* We use char because int might match the return type of a gcc2
1364 builtin and then its argument prototype would still apply. */
1365 char gethostbyname();
1367 int main() {
1368 gethostbyname()
1369 ; return 0; }
1371 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372 rm -rf conftest*
1373 eval "ac_cv_lib_$ac_lib_var=yes"
1374 else
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 rm -rf conftest*
1378 eval "ac_cv_lib_$ac_lib_var=no"
1380 rm -f conftest*
1381 LIBS="$ac_save_LIBS"
1384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1387 else
1388 echo "$ac_t""no" 1>&6
1393 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1394 # socket/setsockopt and other routines are undefined under SCO ODT
1395 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1396 # on later versions), says simon@lia.di.epfl.ch: it contains
1397 # gethostby* variants that don't use the nameserver (or something).
1398 # -lsocket must be given before -lnsl if both are needed.
1399 # We assume that if connect needs -lnsl, so does gethostbyname.
1400 echo $ac_n "checking for connect""... $ac_c" 1>&6
1401 echo "configure:1402: checking for connect" >&5
1402 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* System header to define __stub macros and hopefully few prototypes,
1409 which can conflict with char connect(); below. */
1410 #include <assert.h>
1411 /* Override any gcc2 internal prototype to avoid an error. */
1412 /* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1414 char connect();
1416 int main() {
1418 /* The GNU C library defines this for functions which it implements
1419 to always fail with ENOSYS. Some functions are actually named
1420 something starting with __ and the normal name is an alias. */
1421 #if defined (__stub_connect) || defined (__stub___connect)
1422 choke me
1423 #else
1424 connect();
1425 #endif
1427 ; return 0; }
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1430 rm -rf conftest*
1431 eval "ac_cv_func_connect=yes"
1432 else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_func_connect=no"
1438 rm -f conftest*
1441 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1444 else
1445 echo "$ac_t""no" 1>&6
1448 if test $ac_cv_func_connect = no; then
1449 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1450 echo "configure:1451: checking for connect in -lsocket" >&5
1451 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455 ac_save_LIBS="$LIBS"
1456 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 /* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
1463 char connect();
1465 int main() {
1466 connect()
1467 ; return 0; }
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1470 rm -rf conftest*
1471 eval "ac_cv_lib_$ac_lib_var=yes"
1472 else
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 rm -rf conftest*
1476 eval "ac_cv_lib_$ac_lib_var=no"
1478 rm -f conftest*
1479 LIBS="$ac_save_LIBS"
1482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1485 else
1486 echo "$ac_t""no" 1>&6
1491 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1492 echo $ac_n "checking for remove""... $ac_c" 1>&6
1493 echo "configure:1494: checking for remove" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char remove(); below. */
1502 #include <assert.h>
1503 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1506 char remove();
1508 int main() {
1510 /* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513 #if defined (__stub_remove) || defined (__stub___remove)
1514 choke me
1515 #else
1516 remove();
1517 #endif
1519 ; return 0; }
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1522 rm -rf conftest*
1523 eval "ac_cv_func_remove=yes"
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 eval "ac_cv_func_remove=no"
1530 rm -f conftest*
1533 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1536 else
1537 echo "$ac_t""no" 1>&6
1540 if test $ac_cv_func_remove = no; then
1541 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for remove in -lposix" >&5
1543 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547 ac_save_LIBS="$LIBS"
1548 LIBS="-lposix $LIBS"
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* Override any gcc2 internal prototype to avoid an error. */
1553 /* We use char because int might match the return type of a gcc2
1554 builtin and then its argument prototype would still apply. */
1555 char remove();
1557 int main() {
1558 remove()
1559 ; return 0; }
1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=yes"
1564 else
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 rm -rf conftest*
1568 eval "ac_cv_lib_$ac_lib_var=no"
1570 rm -f conftest*
1571 LIBS="$ac_save_LIBS"
1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1577 else
1578 echo "$ac_t""no" 1>&6
1583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1584 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1585 echo "configure:1586: checking for shmat" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char shmat(); below. */
1594 #include <assert.h>
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1598 char shmat();
1600 int main() {
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_shmat) || defined (__stub___shmat)
1606 choke me
1607 #else
1608 shmat();
1609 #endif
1611 ; return 0; }
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1614 rm -rf conftest*
1615 eval "ac_cv_func_shmat=yes"
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_func_shmat=no"
1622 rm -f conftest*
1625 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1628 else
1629 echo "$ac_t""no" 1>&6
1632 if test $ac_cv_func_shmat = no; then
1633 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1634 echo "configure:1635: checking for shmat in -lipc" >&5
1635 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 ac_save_LIBS="$LIBS"
1640 LIBS="-lipc $LIBS"
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1647 char shmat();
1649 int main() {
1650 shmat()
1651 ; return 0; }
1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1654 rm -rf conftest*
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1656 else
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_lib_$ac_lib_var=no"
1662 rm -f conftest*
1663 LIBS="$ac_save_LIBS"
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1669 else
1670 echo "$ac_t""no" 1>&6
1676 # Check for libraries that X11R6 Xt/Xaw programs need.
1677 ac_save_LDFLAGS="$LDFLAGS"
1678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1680 # check for ICE first), but we must link in the order -lSM -lICE or
1681 # we get undefined symbols. So assume we have SM if we have ICE.
1682 # These have to be linked with before -lX11, unlike the other
1683 # libraries we check for below, so use a different variable.
1684 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1685 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1686 echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5
1687 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 ac_save_LIBS="$LIBS"
1692 LIBS="-lICE $LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error. */
1697 /* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1699 char IceConnectionNumber();
1701 int main() {
1702 IceConnectionNumber()
1703 ; return 0; }
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1708 else
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=no"
1714 rm -f conftest*
1715 LIBS="$ac_save_LIBS"
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1721 else
1722 echo "$ac_t""no" 1>&6
1725 LDFLAGS="$ac_save_LDFLAGS"
1729 for ac_prog in 'bison -y' byacc
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 if test -n "$YACC"; then
1739 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1740 else
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1742 for ac_dir in $PATH; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_YACC="$ac_prog"
1746 break
1748 done
1749 IFS="$ac_save_ifs"
1752 YACC="$ac_cv_prog_YACC"
1753 if test -n "$YACC"; then
1754 echo "$ac_t""$YACC" 1>&6
1755 else
1756 echo "$ac_t""no" 1>&6
1759 test -n "$YACC" && break
1760 done
1761 test -n "$YACC" || YACC="yacc"
1763 # Extract the first word of "flex", so it can be a program name with args.
1764 set dummy flex; ac_word=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1769 else
1770 if test -n "$LEX"; then
1771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1772 else
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1774 for ac_dir in $PATH; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_LEX="flex"
1778 break
1780 done
1781 IFS="$ac_save_ifs"
1782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1785 LEX="$ac_cv_prog_LEX"
1786 if test -n "$LEX"; then
1787 echo "$ac_t""$LEX" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1792 if test -z "$LEXLIB"
1793 then
1794 case "$LEX" in
1795 flex*) ac_lib=fl ;;
1796 *) ac_lib=l ;;
1797 esac
1798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1799 echo "configure:1800: checking for yywrap in -l$ac_lib" >&5
1800 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 ac_save_LIBS="$LIBS"
1805 LIBS="-l$ac_lib $LIBS"
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1812 char yywrap();
1814 int main() {
1815 yywrap()
1816 ; return 0; }
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1819 rm -rf conftest*
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -rf conftest*
1825 eval "ac_cv_lib_$ac_lib_var=no"
1827 rm -f conftest*
1828 LIBS="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 LEXLIB="-l$ac_lib"
1834 else
1835 echo "$ac_t""no" 1>&6
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841 set dummy ranlib; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849 else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1851 for ac_dir in $PATH; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1854 ac_cv_prog_RANLIB="ranlib"
1855 break
1857 done
1858 IFS="$ac_save_ifs"
1859 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1862 RANLIB="$ac_cv_prog_RANLIB"
1863 if test -n "$RANLIB"; then
1864 echo "$ac_t""$RANLIB" 1>&6
1865 else
1866 echo "$ac_t""no" 1>&6
1869 # Find a good install program. We prefer a C program (faster),
1870 # so one script is as good as another. But avoid the broken or
1871 # incompatible versions:
1872 # SysV /etc/install, /usr/sbin/install
1873 # SunOS /usr/etc/install
1874 # IRIX /sbin/install
1875 # AIX /bin/install
1876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1878 # ./install, which can be erroneously created by make from ./install.sh.
1879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1880 echo "configure:1881: checking for a BSD compatible install" >&5
1881 if test -z "$INSTALL"; then
1882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1886 for ac_dir in $PATH; do
1887 # Account for people who put trailing slashes in PATH elements.
1888 case "$ac_dir/" in
1889 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1891 # OSF1 and SCO ODT 3.0 have their own names for install.
1892 for ac_prog in ginstall installbsd scoinst install; do
1893 if test -f $ac_dir/$ac_prog; then
1894 if test $ac_prog = install &&
1895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1896 # AIX install. It has an incompatible calling convention.
1897 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 else
1900 ac_cv_path_install="$ac_dir/$ac_prog -c"
1901 break 2
1904 done
1906 esac
1907 done
1908 IFS="$ac_save_IFS"
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL="$ac_cv_path_install"
1913 else
1914 # As a last resort, use the slow shell script. We don't cache a
1915 # path for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the path is relative.
1918 INSTALL="$ac_install_sh"
1921 echo "$ac_t""$INSTALL" 1>&6
1923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924 # It thinks the first close brace ends the variable substitution.
1925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 rm -f conftestdata
1935 if ln -s X conftestdata 2>/dev/null
1936 then
1937 rm -f conftestdata
1938 ac_cv_prog_LN_S="ln -s"
1939 else
1940 ac_cv_prog_LN_S=ln
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1946 else
1947 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "c2man", so it can be a program name with args.
1951 set dummy c2man; ac_word=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 if test -n "$C2MAN"; then
1958 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1959 else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1961 for ac_dir in $PATH; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_C2MAN="c2man"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1972 C2MAN="$ac_cv_prog_C2MAN"
1973 if test -n "$C2MAN"; then
1974 echo "$ac_t""$C2MAN" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1982 echo "configure:1983: checking for i386_set_ldt in -li386" >&5
1983 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 ac_save_LIBS="$LIBS"
1988 LIBS="-li386 $LIBS"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1995 char i386_set_ldt();
1997 int main() {
1998 i386_set_ldt()
1999 ; return 0; }
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2002 rm -rf conftest*
2003 eval "ac_cv_lib_$ac_lib_var=yes"
2004 else
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2007 rm -rf conftest*
2008 eval "ac_cv_lib_$ac_lib_var=no"
2010 rm -f conftest*
2011 LIBS="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_lib 1
2022 LIBS="-li386 $LIBS"
2024 else
2025 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2029 echo "configure:2030: checking for _oss_ioctl in -lossaudio" >&5
2030 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 ac_save_LIBS="$LIBS"
2035 LIBS="-lossaudio $LIBS"
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 /* Override any gcc2 internal prototype to avoid an error. */
2040 /* We use char because int might match the return type of a gcc2
2041 builtin and then its argument prototype would still apply. */
2042 char _oss_ioctl();
2044 int main() {
2045 _oss_ioctl()
2046 ; return 0; }
2048 if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2049 rm -rf conftest*
2050 eval "ac_cv_lib_$ac_lib_var=yes"
2051 else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 eval "ac_cv_lib_$ac_lib_var=no"
2057 rm -f conftest*
2058 LIBS="$ac_save_LIBS"
2061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2063 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2065 cat >> confdefs.h <<EOF
2066 #define $ac_tr_lib 1
2069 LIBS="-lossaudio $LIBS"
2071 else
2072 echo "$ac_t""no" 1>&6
2075 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2076 echo "configure:2077: checking for iswalnum in -lw" >&5
2077 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 ac_save_LIBS="$LIBS"
2082 LIBS="-lw $LIBS"
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2089 char iswalnum();
2091 int main() {
2092 iswalnum()
2093 ; return 0; }
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2096 rm -rf conftest*
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2098 else
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -rf conftest*
2102 eval "ac_cv_lib_$ac_lib_var=no"
2104 rm -f conftest*
2105 LIBS="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2112 cat >> confdefs.h <<EOF
2113 #define $ac_tr_lib 1
2116 LIBS="-lw $LIBS"
2118 else
2119 echo "$ac_t""no" 1>&6
2122 for ac_func in gethostbyname
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_func" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $ac_func(); below. */
2134 #include <assert.h>
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2138 char $ac_func();
2140 int main() {
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 choke me
2147 #else
2148 $ac_func();
2149 #endif
2151 ; return 0; }
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2154 rm -rf conftest*
2155 eval "ac_cv_func_$ac_func=yes"
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=no"
2162 rm -f conftest*
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2168 cat >> confdefs.h <<EOF
2169 #define $ac_tr_func 1
2172 else
2173 echo "$ac_t""no" 1>&6
2174 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2175 echo "configure:2176: checking for gethostbyname in -lnsl" >&5
2176 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 ac_save_LIBS="$LIBS"
2181 LIBS="-lnsl $LIBS"
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2188 char gethostbyname();
2190 int main() {
2191 gethostbyname()
2192 ; return 0; }
2194 if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2195 rm -rf conftest*
2196 eval "ac_cv_lib_$ac_lib_var=yes"
2197 else
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=no"
2203 rm -f conftest*
2204 LIBS="$ac_save_LIBS"
2207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_lib 1
2215 LIBS="-lnsl $LIBS"
2217 else
2218 echo "$ac_t""no" 1>&6
2222 done
2224 for ac_func in connect
2226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_func" >&5
2228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $ac_func(); below. */
2236 #include <assert.h>
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2240 char $ac_func();
2242 int main() {
2244 /* The GNU C library defines this for functions which it implements
2245 to always fail with ENOSYS. Some functions are actually named
2246 something starting with __ and the normal name is an alias. */
2247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2248 choke me
2249 #else
2250 $ac_func();
2251 #endif
2253 ; return 0; }
2255 if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2256 rm -rf conftest*
2257 eval "ac_cv_func_$ac_func=yes"
2258 else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 eval "ac_cv_func_$ac_func=no"
2264 rm -f conftest*
2267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2270 cat >> confdefs.h <<EOF
2271 #define $ac_tr_func 1
2274 else
2275 echo "$ac_t""no" 1>&6
2276 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2277 echo "configure:2278: checking for connect in -lsocket" >&5
2278 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 ac_save_LIBS="$LIBS"
2283 LIBS="-lsocket $LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2290 char connect();
2292 int main() {
2293 connect()
2294 ; return 0; }
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2297 rm -rf conftest*
2298 eval "ac_cv_lib_$ac_lib_var=yes"
2299 else
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2302 rm -rf conftest*
2303 eval "ac_cv_lib_$ac_lib_var=no"
2305 rm -f conftest*
2306 LIBS="$ac_save_LIBS"
2309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2313 cat >> confdefs.h <<EOF
2314 #define $ac_tr_lib 1
2317 LIBS="-lsocket $LIBS"
2319 else
2320 echo "$ac_t""no" 1>&6
2324 done
2326 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2327 echo "configure:2328: checking for setrunelocale in -lxpg4" >&5
2328 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 ac_save_LIBS="$LIBS"
2333 LIBS="-lxpg4 $LIBS"
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2340 char setrunelocale();
2342 int main() {
2343 setrunelocale()
2344 ; return 0; }
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2347 rm -rf conftest*
2348 eval "ac_cv_lib_$ac_lib_var=yes"
2349 else
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2352 rm -rf conftest*
2353 eval "ac_cv_lib_$ac_lib_var=no"
2355 rm -f conftest*
2356 LIBS="$ac_save_LIBS"
2359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2360 echo "$ac_t""yes" 1>&6
2361 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2363 cat >> confdefs.h <<EOF
2364 #define $ac_tr_lib 1
2367 LIBS="-lxpg4 $LIBS"
2369 else
2370 echo "$ac_t""no" 1>&6
2374 for ac_hdr in dlfcn.h
2376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_hdr" >&5
2379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 #include <$ac_hdr>
2387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2388 { (eval echo configure:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2389 ac_err=`grep -v '^ *+' conftest.out`
2390 if test -z "$ac_err"; then
2391 rm -rf conftest*
2392 eval "ac_cv_header_$ac_safe=yes"
2393 else
2394 echo "$ac_err" >&5
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -rf conftest*
2398 eval "ac_cv_header_$ac_safe=no"
2400 rm -f conftest*
2402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2403 echo "$ac_t""yes" 1>&6
2404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2405 cat >> confdefs.h <<EOF
2406 #define $ac_tr_hdr 1
2408 for ac_func in dlopen
2410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_func" >&5
2412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414 else
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $ac_func(); below. */
2420 #include <assert.h>
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424 char $ac_func();
2426 int main() {
2428 /* The GNU C library defines this for functions which it implements
2429 to always fail with ENOSYS. Some functions are actually named
2430 something starting with __ and the normal name is an alias. */
2431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2432 choke me
2433 #else
2434 $ac_func();
2435 #endif
2437 ; return 0; }
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2440 rm -rf conftest*
2441 eval "ac_cv_func_$ac_func=yes"
2442 else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 eval "ac_cv_func_$ac_func=no"
2448 rm -f conftest*
2451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_func 1
2457 cat >> confdefs.h <<\EOF
2458 #define HAVE_DL_API 1
2461 else
2462 echo "$ac_t""no" 1>&6
2463 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2464 echo "configure:2465: checking for dlopen in -ldl" >&5
2465 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 ac_save_LIBS="$LIBS"
2470 LIBS="-ldl $LIBS"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 /* Override any gcc2 internal prototype to avoid an error. */
2475 /* We use char because int might match the return type of a gcc2
2476 builtin and then its argument prototype would still apply. */
2477 char dlopen();
2479 int main() {
2480 dlopen()
2481 ; return 0; }
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2484 rm -rf conftest*
2485 eval "ac_cv_lib_$ac_lib_var=yes"
2486 else
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 eval "ac_cv_lib_$ac_lib_var=no"
2492 rm -f conftest*
2493 LIBS="$ac_save_LIBS"
2496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_DL_API 1
2502 LIBS="$LIBS -ldl"
2504 else
2505 echo "$ac_t""no" 1>&6
2510 done
2513 else
2514 echo "$ac_t""no" 1>&6
2516 done
2519 if test "$have_x" = "yes"
2520 then
2521 XLIB="-lXext -lX11"
2522 ac_save_CPPFLAGS="$CPPFLAGS"
2523 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2525 for ac_hdr in X11/xpm.h
2527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_hdr" >&5
2530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2532 else
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536 #include <$ac_hdr>
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out`
2541 if test -z "$ac_err"; then
2542 rm -rf conftest*
2543 eval "ac_cv_header_$ac_safe=yes"
2544 else
2545 echo "$ac_err" >&5
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 rm -rf conftest*
2549 eval "ac_cv_header_$ac_safe=no"
2551 rm -f conftest*
2553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2556 cat >> confdefs.h <<EOF
2557 #define $ac_tr_hdr 1
2560 else
2561 echo "$ac_t""no" 1>&6
2563 done
2565 if test "$ac_cv_header_X11_xpm_h" = "yes"
2566 then
2567 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2568 echo "configure:2569: checking for XpmCreatePixmapFromData in -lXpm" >&5
2569 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573 ac_save_LIBS="$LIBS"
2574 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 /* Override any gcc2 internal prototype to avoid an error. */
2579 /* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2581 char XpmCreatePixmapFromData();
2583 int main() {
2584 XpmCreatePixmapFromData()
2585 ; return 0; }
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=yes"
2590 else
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=no"
2596 rm -f conftest*
2597 LIBS="$ac_save_LIBS"
2600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 cat >> confdefs.h <<\EOF
2603 #define HAVE_LIBXXPM 1
2605 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2606 else
2607 echo "$ac_t""no" 1>&6
2612 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_hdr" >&5
2617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 #include <$ac_hdr>
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out`
2628 if test -z "$ac_err"; then
2629 rm -rf conftest*
2630 eval "ac_cv_header_$ac_safe=yes"
2631 else
2632 echo "$ac_err" >&5
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -rf conftest*
2636 eval "ac_cv_header_$ac_safe=no"
2638 rm -f conftest*
2640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2643 cat >> confdefs.h <<EOF
2644 #define $ac_tr_hdr 1
2647 else
2648 echo "$ac_t""no" 1>&6
2650 done
2652 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2653 then
2654 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2655 echo "configure:2656: checking for XShmQueryExtension in -lXext" >&5
2656 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2659 else
2660 ac_save_LIBS="$LIBS"
2661 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* Override any gcc2 internal prototype to avoid an error. */
2666 /* We use char because int might match the return type of a gcc2
2667 builtin and then its argument prototype would still apply. */
2668 char XShmQueryExtension();
2670 int main() {
2671 XShmQueryExtension()
2672 ; return 0; }
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2675 rm -rf conftest*
2676 eval "ac_cv_lib_$ac_lib_var=yes"
2677 else
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 eval "ac_cv_lib_$ac_lib_var=no"
2683 rm -f conftest*
2684 LIBS="$ac_save_LIBS"
2687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2689 cat >> confdefs.h <<\EOF
2690 #define HAVE_LIBXXSHM 1
2693 else
2694 echo "$ac_t""no" 1>&6
2698 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_hdr" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2705 else
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2709 #include <$ac_hdr>
2711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2712 { (eval echo configure:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2713 ac_err=`grep -v '^ *+' conftest.out`
2714 if test -z "$ac_err"; then
2715 rm -rf conftest*
2716 eval "ac_cv_header_$ac_safe=yes"
2717 else
2718 echo "$ac_err" >&5
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 rm -rf conftest*
2722 eval "ac_cv_header_$ac_safe=no"
2724 rm -f conftest*
2726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2729 cat >> confdefs.h <<EOF
2730 #define $ac_tr_hdr 1
2733 else
2734 echo "$ac_t""no" 1>&6
2736 done
2738 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2739 then
2740 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2741 echo "configure:2742: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2742 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746 ac_save_LIBS="$LIBS"
2747 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2748 cat > conftest.$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2754 char XF86DGAQueryExtension();
2756 int main() {
2757 XF86DGAQueryExtension()
2758 ; return 0; }
2760 if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2761 rm -rf conftest*
2762 eval "ac_cv_lib_$ac_lib_var=yes"
2763 else
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_lib_$ac_lib_var=no"
2769 rm -f conftest*
2770 LIBS="$ac_save_LIBS"
2773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2774 echo "$ac_t""yes" 1>&6
2775 cat >> confdefs.h <<\EOF
2776 #define HAVE_LIBXXF86DGA 1
2778 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2779 else
2780 echo "$ac_t""no" 1>&6
2785 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_hdr" >&5
2790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 #include <$ac_hdr>
2798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2799 { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2800 ac_err=`grep -v '^ *+' conftest.out`
2801 if test -z "$ac_err"; then
2802 rm -rf conftest*
2803 eval "ac_cv_header_$ac_safe=yes"
2804 else
2805 echo "$ac_err" >&5
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2808 rm -rf conftest*
2809 eval "ac_cv_header_$ac_safe=no"
2811 rm -f conftest*
2813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_hdr 1
2820 else
2821 echo "$ac_t""no" 1>&6
2823 done
2825 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2826 then
2827 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2828 echo "configure:2829: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2829 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833 ac_save_LIBS="$LIBS"
2834 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 /* Override any gcc2 internal prototype to avoid an error. */
2839 /* We use char because int might match the return type of a gcc2
2840 builtin and then its argument prototype would still apply. */
2841 char XF86VidModeQueryExtension();
2843 int main() {
2844 XF86VidModeQueryExtension()
2845 ; return 0; }
2847 if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2848 rm -rf conftest*
2849 eval "ac_cv_lib_$ac_lib_var=yes"
2850 else
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 rm -rf conftest*
2854 eval "ac_cv_lib_$ac_lib_var=no"
2856 rm -f conftest*
2857 LIBS="$ac_save_LIBS"
2860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2861 echo "$ac_t""yes" 1>&6
2862 cat >> confdefs.h <<\EOF
2863 #define HAVE_LIBXXF86VM 1
2865 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2866 else
2867 echo "$ac_t""no" 1>&6
2872 for ac_hdr in GL/gl.h GL/osmesa.h
2874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_hdr" >&5
2877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 #include <$ac_hdr>
2885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2886 { (eval echo configure:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2887 ac_err=`grep -v '^ *+' conftest.out`
2888 if test -z "$ac_err"; then
2889 rm -rf conftest*
2890 eval "ac_cv_header_$ac_safe=yes"
2891 else
2892 echo "$ac_err" >&5
2893 echo "configure: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2895 rm -rf conftest*
2896 eval "ac_cv_header_$ac_safe=no"
2898 rm -f conftest*
2900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2903 cat >> confdefs.h <<EOF
2904 #define $ac_tr_hdr 1
2907 else
2908 echo "$ac_t""no" 1>&6
2910 done
2912 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2913 then
2914 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
2915 echo "configure:2916: checking "for up-to-date Mesa version"" >&5
2916 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918 else
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 #include <GL/gl.h>
2923 int main() {
2924 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2925 ; return 0; }
2927 if { (eval echo configure:2928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2928 rm -rf conftest*
2929 wine_cv_mesa_version_OK="yes"
2930 else
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 wine_cv_mesa_version_OK="no"
2937 rm -f conftest*
2941 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
2943 if test "$wine_cv_mesa_version_OK" = "yes"
2944 then
2945 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
2946 echo "configure:2947: checking for OSMesaCreateContext in -lMesaGL" >&5
2947 ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
2948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2950 else
2951 ac_save_LIBS="$LIBS"
2952 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 /* Override any gcc2 internal prototype to avoid an error. */
2957 /* We use char because int might match the return type of a gcc2
2958 builtin and then its argument prototype would still apply. */
2959 char OSMesaCreateContext();
2961 int main() {
2962 OSMesaCreateContext()
2963 ; return 0; }
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2966 rm -rf conftest*
2967 eval "ac_cv_lib_$ac_lib_var=yes"
2968 else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -rf conftest*
2972 eval "ac_cv_lib_$ac_lib_var=no"
2974 rm -f conftest*
2975 LIBS="$ac_save_LIBS"
2978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2980 cat >> confdefs.h <<\EOF
2981 #define HAVE_LIBMESAGL 1
2983 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
2984 else
2985 echo "$ac_t""no" 1>&6
2991 CPPFLAGS="$ac_save_CPPFLAGS"
2992 else
2993 XLIB=""
2994 X_CFLAGS=""
2995 X_LIBS=""
2998 for ac_hdr in ncurses.h
3000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_hdr" >&5
3003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 #include <$ac_hdr>
3011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3012 { (eval echo configure:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3013 ac_err=`grep -v '^ *+' conftest.out`
3014 if test -z "$ac_err"; then
3015 rm -rf conftest*
3016 eval "ac_cv_header_$ac_safe=yes"
3017 else
3018 echo "$ac_err" >&5
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3021 rm -rf conftest*
3022 eval "ac_cv_header_$ac_safe=no"
3024 rm -f conftest*
3026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3029 cat >> confdefs.h <<EOF
3030 #define $ac_tr_hdr 1
3033 else
3034 echo "$ac_t""no" 1>&6
3036 done
3038 if test "$ac_cv_header_ncurses_h" = "yes"
3039 then
3040 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3041 echo "configure:3042: checking for waddch in -lncurses" >&5
3042 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3045 else
3046 ac_save_LIBS="$LIBS"
3047 LIBS="-lncurses $LIBS"
3048 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3051 /* Override any gcc2 internal prototype to avoid an error. */
3052 /* We use char because int might match the return type of a gcc2
3053 builtin and then its argument prototype would still apply. */
3054 char waddch();
3056 int main() {
3057 waddch()
3058 ; return 0; }
3060 if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3061 rm -rf conftest*
3062 eval "ac_cv_lib_$ac_lib_var=yes"
3063 else
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3066 rm -rf conftest*
3067 eval "ac_cv_lib_$ac_lib_var=no"
3069 rm -f conftest*
3070 LIBS="$ac_save_LIBS"
3073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3077 cat >> confdefs.h <<EOF
3078 #define $ac_tr_lib 1
3081 LIBS="-lncurses $LIBS"
3083 else
3084 echo "$ac_t""no" 1>&6
3088 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3089 then
3090 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3091 echo "configure:3092: checking for resizeterm in -lncurses" >&5
3092 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3095 else
3096 ac_save_LIBS="$LIBS"
3097 LIBS="-lncurses $LIBS"
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 /* Override any gcc2 internal prototype to avoid an error. */
3102 /* We use char because int might match the return type of a gcc2
3103 builtin and then its argument prototype would still apply. */
3104 char resizeterm();
3106 int main() {
3107 resizeterm()
3108 ; return 0; }
3110 if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3111 rm -rf conftest*
3112 eval "ac_cv_lib_$ac_lib_var=yes"
3113 else
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3116 rm -rf conftest*
3117 eval "ac_cv_lib_$ac_lib_var=no"
3119 rm -f conftest*
3120 LIBS="$ac_save_LIBS"
3123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3125 cat >> confdefs.h <<\EOF
3126 #define HAVE_RESIZETERM 1
3129 else
3130 echo "$ac_t""no" 1>&6
3133 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3134 echo "configure:3135: checking for getbkgd in -lncurses" >&5
3135 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3138 else
3139 ac_save_LIBS="$LIBS"
3140 LIBS="-lncurses $LIBS"
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 /* We use char because int might match the return type of a gcc2
3146 builtin and then its argument prototype would still apply. */
3147 char getbkgd();
3149 int main() {
3150 getbkgd()
3151 ; return 0; }
3153 if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3154 rm -rf conftest*
3155 eval "ac_cv_lib_$ac_lib_var=yes"
3156 else
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 eval "ac_cv_lib_$ac_lib_var=no"
3162 rm -f conftest*
3163 LIBS="$ac_save_LIBS"
3166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 cat >> confdefs.h <<\EOF
3169 #define HAVE_GETBKGD 1
3172 else
3173 echo "$ac_t""no" 1>&6
3176 else
3177 for ac_hdr in curses.h
3179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3180 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3181 echo "configure:3182: checking for $ac_hdr" >&5
3182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3184 else
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <$ac_hdr>
3190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3191 { (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3192 ac_err=`grep -v '^ *+' conftest.out`
3193 if test -z "$ac_err"; then
3194 rm -rf conftest*
3195 eval "ac_cv_header_$ac_safe=yes"
3196 else
3197 echo "$ac_err" >&5
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -rf conftest*
3201 eval "ac_cv_header_$ac_safe=no"
3203 rm -f conftest*
3205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3208 cat >> confdefs.h <<EOF
3209 #define $ac_tr_hdr 1
3212 else
3213 echo "$ac_t""no" 1>&6
3215 done
3217 if test "$ac_cv_header_curses_h" = "yes"
3218 then
3219 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3220 echo "configure:3221: checking for waddch in -lcurses" >&5
3221 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3224 else
3225 ac_save_LIBS="$LIBS"
3226 LIBS="-lcurses $LIBS"
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233 char waddch();
3235 int main() {
3236 waddch()
3237 ; return 0; }
3239 if { (eval echo configure:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3240 rm -rf conftest*
3241 eval "ac_cv_lib_$ac_lib_var=yes"
3242 else
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 rm -rf conftest*
3246 eval "ac_cv_lib_$ac_lib_var=no"
3248 rm -f conftest*
3249 LIBS="$ac_save_LIBS"
3252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3254 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3256 cat >> confdefs.h <<EOF
3257 #define $ac_tr_lib 1
3260 LIBS="-lcurses $LIBS"
3262 else
3263 echo "$ac_t""no" 1>&6
3266 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3267 echo "configure:3268: checking for resizeterm in -lcurses" >&5
3268 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272 ac_save_LIBS="$LIBS"
3273 LIBS="-lcurses $LIBS"
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 /* Override any gcc2 internal prototype to avoid an error. */
3278 /* We use char because int might match the return type of a gcc2
3279 builtin and then its argument prototype would still apply. */
3280 char resizeterm();
3282 int main() {
3283 resizeterm()
3284 ; return 0; }
3286 if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3287 rm -rf conftest*
3288 eval "ac_cv_lib_$ac_lib_var=yes"
3289 else
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3292 rm -rf conftest*
3293 eval "ac_cv_lib_$ac_lib_var=no"
3295 rm -f conftest*
3296 LIBS="$ac_save_LIBS"
3299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 cat >> confdefs.h <<\EOF
3302 #define HAVE_RESIZETERM 1
3305 else
3306 echo "$ac_t""no" 1>&6
3309 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3310 echo "configure:3311: checking for getbkgd in -lcurses" >&5
3311 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3314 else
3315 ac_save_LIBS="$LIBS"
3316 LIBS="-lcurses $LIBS"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3323 char getbkgd();
3325 int main() {
3326 getbkgd()
3327 ; return 0; }
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3330 rm -rf conftest*
3331 eval "ac_cv_lib_$ac_lib_var=yes"
3332 else
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3335 rm -rf conftest*
3336 eval "ac_cv_lib_$ac_lib_var=no"
3338 rm -f conftest*
3339 LIBS="$ac_save_LIBS"
3342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 cat >> confdefs.h <<\EOF
3345 #define HAVE_GETBKGD 1
3348 else
3349 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3356 echo "configure:3357: checking "for GNU style IPX support"" >&5
3357 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3359 else
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <sys/socket.h>
3364 #include <netipx/ipx.h>
3365 int main() {
3366 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3367 ; return 0; }
3369 if { (eval echo configure:3370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3370 rm -rf conftest*
3371 cat >> confdefs.h <<\EOF
3372 #define HAVE_IPX_GNU 1
3375 ac_cv_c_ipx_gnu="yes"
3376 else
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 rm -rf conftest*
3380 ac_cv_c_ipx_gnu="no"
3382 rm -f conftest*
3386 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3388 if test "$ac_cv_c_ipx_gnu" = "no"
3389 then
3390 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3391 echo "configure:3392: checking "for linux style IPX support"" >&5
3392 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 #include <sys/socket.h>
3399 #include <asm/types.h>
3400 #include <linux/ipx.h>
3401 int main() {
3402 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3403 ; return 0; }
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406 rm -rf conftest*
3407 cat >> confdefs.h <<\EOF
3408 #define HAVE_IPX_LINUX 1
3411 ac_cv_c_ipx_linux="yes"
3412 else
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 rm -rf conftest*
3416 ac_cv_c_ipx_linux="no"
3418 rm -f conftest*
3422 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3425 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_hdr" >&5
3430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <$ac_hdr>
3438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3439 { (eval echo configure:3440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3440 ac_err=`grep -v '^ *+' conftest.out`
3441 if test -z "$ac_err"; then
3442 rm -rf conftest*
3443 eval "ac_cv_header_$ac_safe=yes"
3444 else
3445 echo "$ac_err" >&5
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 eval "ac_cv_header_$ac_safe=no"
3451 rm -f conftest*
3453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_hdr 1
3459 break
3460 else
3461 echo "$ac_t""no" 1>&6
3463 done
3466 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3467 echo "configure:3468: checking "for Open Sound System"" >&5
3468 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470 else
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3475 #if defined(HAVE_SYS_SOUNDCARD_H)
3476 #include <sys/soundcard.h>
3477 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3478 #include <machine/soundcard.h>
3479 #elif defined(HAVE_SOUNDCARD_H)
3480 #include <soundcard.h>
3481 #endif
3483 int main() {
3486 /* check for one of the Open Sound System specific SNDCTL_ defines */
3487 #if !defined(SNDCTL_DSP_STEREO)
3488 #error No open sound system
3489 #endif
3491 ; return 0; }
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494 rm -rf conftest*
3495 ac_cv_c_opensoundsystem="yes"
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 rm -rf conftest*
3500 ac_cv_c_opensoundsystem="no"
3502 rm -f conftest*
3505 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3507 if test "$ac_cv_c_opensoundsystem" = "yes"
3508 then
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_OSS 1
3515 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3518 if test "x${GCC}" = "xyes"
3519 then
3520 CFLAGS="$CFLAGS -Wall"
3521 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3522 echo "configure:3523: checking "for gcc strength-reduce bug"" >&5
3523 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3525 else
3526 if test "$cross_compiling" = yes; then
3527 ac_cv_c_gcc_strength_bug="yes"
3528 else
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3533 int main(void) {
3534 static int Array[3];
3535 unsigned int B = 3;
3536 int i;
3537 for(i=0; i<B; i++) Array[i] = i - 3;
3538 exit( Array[1] != -2 );
3541 if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3542 then
3543 ac_cv_c_gcc_strength_bug="no"
3544 else
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3547 rm -fr conftest*
3548 ac_cv_c_gcc_strength_bug="yes"
3550 rm -fr conftest*
3555 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3556 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3557 then
3558 CFLAGS="$CFLAGS -fno-strength-reduce"
3563 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3564 echo "configure:3565: checking "whether external symbols need an underscore prefix"" >&5
3565 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 saved_libs=$LIBS
3569 LIBS="conftest_asm.s $LIBS"
3570 cat > conftest_asm.s <<EOF
3571 .globl _ac_test
3572 _ac_test:
3573 .long 0
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 extern int ac_test;
3579 int main() {
3580 if (ac_test) return 1
3581 ; return 0; }
3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3584 rm -rf conftest*
3585 ac_cv_c_extern_prefix="yes"
3586 else
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3589 rm -rf conftest*
3590 ac_cv_c_extern_prefix="no"
3592 rm -f conftest*
3593 LIBS=$saved_libs
3596 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3597 if test "$ac_cv_c_extern_prefix" = "yes"
3598 then
3599 cat >> confdefs.h <<\EOF
3600 #define NEED_UNDERSCORE_PREFIX 1
3606 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3607 echo "configure:3608: checking "whether assembler accepts .string"" >&5
3608 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611 saved_libs=$LIBS
3612 LIBS="conftest_asm.s $LIBS"
3613 cat > conftest_asm.s <<EOF
3614 .string "test"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3620 int main() {
3622 ; return 0; }
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3625 rm -rf conftest*
3626 ac_cv_c_asm_string="yes"
3627 else
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 rm -rf conftest*
3631 ac_cv_c_asm_string="no"
3633 rm -f conftest*
3634 LIBS=$saved_libs
3637 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3638 if test "$ac_cv_c_asm_string" = "yes"
3639 then
3640 cat >> confdefs.h <<\EOF
3641 #define HAVE_ASM_STRING 1
3647 DLLFLAGS=""
3648 LDSHARED=""
3649 if test "$LIB_TARGET" = "libwine.so.1.0"
3650 then
3651 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3652 echo "configure:3653: checking "whether we can build a Linux dll"" >&5
3653 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3655 else
3656 saved_cflags=$CFLAGS
3657 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3662 int main() {
3663 return 1
3664 ; return 0; }
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3667 rm -rf conftest*
3668 ac_cv_c_dll_linux="yes"
3669 else
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 rm -rf conftest*
3673 ac_cv_c_dll_linux="no"
3675 rm -f conftest*
3676 CFLAGS=$saved_cflags
3680 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3681 if test "$ac_cv_c_dll_linux" = "yes"
3682 then
3683 DLLFLAGS="-fPIC"
3684 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3685 else
3686 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
3687 echo "configure:3688: checking "whether we can build a NetBSD dll"" >&5
3688 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 saved_cflags=$CFLAGS
3692 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3697 int main() {
3698 return 1
3699 ; return 0; }
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3702 rm -rf conftest*
3703 ac_cv_c_dll_netbsd="yes"
3704 else
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3707 rm -rf conftest*
3708 ac_cv_c_dll_netbsd="no"
3710 rm -f conftest*
3711 CFLAGS=$saved_cflags
3715 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3716 if test "$ac_cv_c_dll_netbsd" = "yes"
3717 then
3718 DLLFLAGS="-fPIC"
3719 LDSHARED="ld -Bshareable -Bforcearchive"
3722 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3723 then
3724 LIB_TARGET="libwine.a"
3731 wine_cv_libc_reentrant=no
3732 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
3733 echo "configure:3734: checking "for reentrant libc: __errno_location"" >&5
3734 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3736 else
3737 if test "$cross_compiling" = yes; then
3738 wine_cv_libc_r__errno_location=yes
3739 else
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 int myerrno = 0;
3744 char buf[256];
3745 int *__errno_location(){return &myerrno;}
3746 main(){connect(0,buf,255); exit(!myerrno);}
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3749 then
3750 wine_cv_libc_r__errno_location=yes
3751 else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -fr conftest*
3755 wine_cv_libc_r__errno_location=no
3757 rm -fr conftest*
3763 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3764 if test "$wine_cv_libc_r__errno_location" = "yes"
3765 then
3766 cat >> confdefs.h <<\EOF
3767 #define HAVE__ERRNO_LOCATION 1
3770 wine_cv_libc_reentrant=__errno_location
3772 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
3773 echo "configure:3774: checking "for reentrant libc: __error"" >&5
3774 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776 else
3777 if test "$cross_compiling" = yes; then
3778 wine_cv_libc_r__error=yes
3779 else
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 int myerrno = 0;
3784 char buf[256];
3785 int *__error(){return &myerrno;}
3786 main(){connect(0,buf,255); exit(!myerrno);}
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3789 then
3790 wine_cv_libc_r__error=yes
3791 else
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 rm -fr conftest*
3795 wine_cv_libc_r__error=no
3797 rm -fr conftest*
3803 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3804 if test "$wine_cv_libc_r__error" = "yes"
3805 then
3806 cat >> confdefs.h <<\EOF
3807 #define HAVE__ERROR 1
3810 wine_cv_libc_reentrant=__error
3812 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
3813 echo "configure:3814: checking "for reentrant libc: ___errno"" >&5
3814 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816 else
3817 if test "$cross_compiling" = yes; then
3818 wine_cv_libc_r___errno=yes
3819 else
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 int myerrno = 0;
3824 char buf[256];
3825 int *___errno(){return &myerrno;}
3826 main(){connect(0,buf,255); exit(!myerrno);}
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3829 then
3830 wine_cv_libc_r___errno=yes
3831 else
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3834 rm -fr conftest*
3835 wine_cv_libc_r___errno=no
3837 rm -fr conftest*
3843 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
3844 if test "$wine_cv_libc_r___errno" = "yes"
3845 then
3846 cat >> confdefs.h <<\EOF
3847 #define HAVE___ERRNO 1
3850 wine_cv_libc_reentrant=___errno
3852 if test "$wine_cv_libc_reentrant" = "no"
3853 then
3854 cat >> confdefs.h <<\EOF
3855 #define NO_REENTRANT_LIBC 1
3861 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
3862 then
3863 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
3864 echo "configure:3865: checking "for reentrant X libraries"" >&5
3865 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3867 else
3868 if test "x$with_reentrant_x" = "xno"
3869 then
3870 wine_cv_x_reentrant=no
3871 else
3872 libX11_check=none
3873 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
3874 if test -r $dir/libX11.so; then
3875 libX11_check="-D $dir/libX11.so"
3876 break 1
3878 if test -r $dir/libX11.a; then
3879 libX11_check="$dir/libX11.a"
3880 break 1
3882 done
3883 if test "$libX11_check" != "none"; then
3884 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
3885 then
3886 wine_cv_x_reentrant=yes
3887 else
3888 wine_cv_x_reentrant=no
3890 else
3891 wine_cv_x_reentrant=unknown
3896 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
3897 else
3898 wine_cv_x_reentrant=no
3900 if test "$wine_cv_x_reentrant" = "no"
3901 then
3902 cat >> confdefs.h <<\EOF
3903 #define NO_REENTRANT_X11 1
3909 for ac_func in \
3910 _lwp_create \
3911 clone \
3912 getpagesize \
3913 memmove \
3914 rfork \
3915 sendmsg \
3916 sigaltstack \
3917 strerror \
3918 stricmp \
3919 tcgetattr \
3920 timegm \
3921 usleep \
3922 vfscanf \
3923 wait4 \
3924 waitpid \
3927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_func" >&5
3929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931 else
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* System header to define __stub macros and hopefully few prototypes,
3936 which can conflict with char $ac_func(); below. */
3937 #include <assert.h>
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3941 char $ac_func();
3943 int main() {
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 choke me
3950 #else
3951 $ac_func();
3952 #endif
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3957 rm -rf conftest*
3958 eval "ac_cv_func_$ac_func=yes"
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 eval "ac_cv_func_$ac_func=no"
3965 rm -f conftest*
3968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3971 cat >> confdefs.h <<EOF
3972 #define $ac_tr_func 1
3975 else
3976 echo "$ac_t""no" 1>&6
3978 done
3982 for ac_hdr in \
3983 arpa/nameser.h \
3984 curses.h \
3985 elf.h \
3986 float.h \
3987 libio.h \
3988 linux/cdrom.h \
3989 linux/ucdrom.h \
3990 ncurses.h \
3991 net/if.h \
3992 netinet/in.h \
3993 resolv.h \
3994 strings.h \
3995 sys/cdio.h \
3996 sys/file.h \
3997 sys/filio.h \
3998 sys/lwp.h \
3999 sys/modem.h \
4000 sys/mount.h \
4001 sys/param.h \
4002 sys/sockio.h \
4003 sys/statfs.h \
4004 sys/strtio.h \
4005 sys/syscall.h \
4006 sys/vfs.h \
4007 syscall.h \
4008 ucontext.h \
4009 unistd.h \
4010 wctype.h \
4013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4015 echo "configure:4016: checking for $ac_hdr" >&5
4016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4018 else
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4022 #include <$ac_hdr>
4024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4025 { (eval echo configure:4026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4026 ac_err=`grep -v '^ *+' conftest.out`
4027 if test -z "$ac_err"; then
4028 rm -rf conftest*
4029 eval "ac_cv_header_$ac_safe=yes"
4030 else
4031 echo "$ac_err" >&5
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4034 rm -rf conftest*
4035 eval "ac_cv_header_$ac_safe=no"
4037 rm -f conftest*
4039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4042 cat >> confdefs.h <<EOF
4043 #define $ac_tr_hdr 1
4046 else
4047 echo "$ac_t""no" 1>&6
4049 done
4051 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4052 echo "configure:4053: checking whether stat file-mode macros are broken" >&5
4053 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4055 else
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4062 #if defined(S_ISBLK) && defined(S_IFDIR)
4063 # if S_ISBLK (S_IFDIR)
4064 You lose.
4065 # endif
4066 #endif
4068 #if defined(S_ISBLK) && defined(S_IFCHR)
4069 # if S_ISBLK (S_IFCHR)
4070 You lose.
4071 # endif
4072 #endif
4074 #if defined(S_ISLNK) && defined(S_IFREG)
4075 # if S_ISLNK (S_IFREG)
4076 You lose.
4077 # endif
4078 #endif
4080 #if defined(S_ISSOCK) && defined(S_IFREG)
4081 # if S_ISSOCK (S_IFREG)
4082 You lose.
4083 # endif
4084 #endif
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 egrep "You lose" >/dev/null 2>&1; then
4089 rm -rf conftest*
4090 ac_cv_header_stat_broken=yes
4091 else
4092 rm -rf conftest*
4093 ac_cv_header_stat_broken=no
4095 rm -f conftest*
4099 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4100 if test $ac_cv_header_stat_broken = yes; then
4101 cat >> confdefs.h <<\EOF
4102 #define STAT_MACROS_BROKEN 1
4109 echo $ac_n "checking for working const""... $ac_c" 1>&6
4110 echo "configure:4111: checking for working const" >&5
4111 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4113 else
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4118 int main() {
4120 /* Ultrix mips cc rejects this. */
4121 typedef int charset[2]; const charset x;
4122 /* SunOS 4.1.1 cc rejects this. */
4123 char const *const *ccp;
4124 char **p;
4125 /* NEC SVR4.0.2 mips cc rejects this. */
4126 struct point {int x, y;};
4127 static struct point const zero = {0,0};
4128 /* AIX XL C 1.02.0.0 rejects this.
4129 It does not let you subtract one const X* pointer from another in an arm
4130 of an if-expression whose if-part is not a constant expression */
4131 const char *g = "string";
4132 ccp = &g + (g ? g-g : 0);
4133 /* HPUX 7.0 cc rejects these. */
4134 ++ccp;
4135 p = (char**) ccp;
4136 ccp = (char const *const *) p;
4137 { /* SCO 3.2v4 cc rejects this. */
4138 char *t;
4139 char const *s = 0 ? (char *) 0 : (char const *) 0;
4141 *t++ = 0;
4143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4144 int x[] = {25, 17};
4145 const int *foo = &x[0];
4146 ++foo;
4148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4149 typedef const int *iptr;
4150 iptr p = 0;
4151 ++p;
4153 { /* AIX XL C 1.02.0.0 rejects this saying
4154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4155 struct s { int j; const int *ap[3]; };
4156 struct s *b; b->j = 5;
4158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4159 const int foo = 10;
4162 ; return 0; }
4164 if { (eval echo configure:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 rm -rf conftest*
4166 ac_cv_c_const=yes
4167 else
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4170 rm -rf conftest*
4171 ac_cv_c_const=no
4173 rm -f conftest*
4176 echo "$ac_t""$ac_cv_c_const" 1>&6
4177 if test $ac_cv_c_const = no; then
4178 cat >> confdefs.h <<\EOF
4179 #define const
4184 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4185 echo "configure:4186: checking for ANSI C header files" >&5
4186 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4188 else
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4192 #include <stdlib.h>
4193 #include <stdarg.h>
4194 #include <string.h>
4195 #include <float.h>
4197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4198 { (eval echo configure:4199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4199 ac_err=`grep -v '^ *+' conftest.out`
4200 if test -z "$ac_err"; then
4201 rm -rf conftest*
4202 ac_cv_header_stdc=yes
4203 else
4204 echo "$ac_err" >&5
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4207 rm -rf conftest*
4208 ac_cv_header_stdc=no
4210 rm -f conftest*
4212 if test $ac_cv_header_stdc = yes; then
4213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 #include <string.h>
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220 egrep "memchr" >/dev/null 2>&1; then
4222 else
4223 rm -rf conftest*
4224 ac_cv_header_stdc=no
4226 rm -f conftest*
4230 if test $ac_cv_header_stdc = yes; then
4231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4235 #include <stdlib.h>
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 egrep "free" >/dev/null 2>&1; then
4240 else
4241 rm -rf conftest*
4242 ac_cv_header_stdc=no
4244 rm -f conftest*
4248 if test $ac_cv_header_stdc = yes; then
4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4250 if test "$cross_compiling" = yes; then
4252 else
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <ctype.h>
4257 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260 int main () { int i; for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4262 exit (0); }
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4266 then
4268 else
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4271 rm -fr conftest*
4272 ac_cv_header_stdc=no
4274 rm -fr conftest*
4280 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4281 if test $ac_cv_header_stdc = yes; then
4282 cat >> confdefs.h <<\EOF
4283 #define STDC_HEADERS 1
4288 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4289 echo "configure:4290: checking for size_t" >&5
4290 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4292 else
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 #include <sys/types.h>
4297 #if STDC_HEADERS
4298 #include <stdlib.h>
4299 #include <stddef.h>
4300 #endif
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4304 rm -rf conftest*
4305 ac_cv_type_size_t=yes
4306 else
4307 rm -rf conftest*
4308 ac_cv_type_size_t=no
4310 rm -f conftest*
4313 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4314 if test $ac_cv_type_size_t = no; then
4315 cat >> confdefs.h <<\EOF
4316 #define size_t unsigned
4321 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4322 echo "configure:4323: checking size of long long" >&5
4323 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4325 else
4326 if test "$cross_compiling" = yes; then
4327 ac_cv_sizeof_long_long=0
4328 else
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <stdio.h>
4333 main()
4335 FILE *f=fopen("conftestval", "w");
4336 if (!f) exit(1);
4337 fprintf(f, "%d\n", sizeof(long long));
4338 exit(0);
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4342 then
4343 ac_cv_sizeof_long_long=`cat conftestval`
4344 else
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 rm -fr conftest*
4348 ac_cv_sizeof_long_long=0
4350 rm -fr conftest*
4354 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4355 cat >> confdefs.h <<EOF
4356 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4362 if test "$ac_cv_header_sys_vfs_h" = "yes"
4363 then
4364 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
4365 echo "configure:4366: checking "whether sys/vfs.h defines statfs"" >&5
4366 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4373 #include <sys/types.h>
4374 #ifdef HAVE_SYS_PARAM_H
4375 # include <sys/param.h>
4376 #endif
4377 #include <sys/vfs.h>
4379 int main() {
4381 struct statfs stfs;
4383 memset(&stfs,0,sizeof(stfs));
4385 ; return 0; }
4387 if { (eval echo configure:4388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 rm -rf conftest*
4389 wine_cv_sys_vfs_has_statfs=yes
4390 else
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 wine_cv_sys_vfs_has_statfs=no
4397 rm -f conftest*
4401 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4402 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4403 then
4404 cat >> confdefs.h <<\EOF
4405 #define STATFS_DEFINED_BY_SYS_VFS 1
4411 if test "$ac_cv_header_sys_statfs_h" = "yes"
4412 then
4413 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
4414 echo "configure:4415: checking "whether sys/statfs.h defines statfs"" >&5
4415 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4417 else
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4422 #include <sys/types.h>
4423 #ifdef HAVE_SYS_PARAM_H
4424 # include <sys/param.h>
4425 #endif
4426 #include <sys/statfs.h>
4428 int main() {
4430 struct statfs stfs;
4432 ; return 0; }
4434 if { (eval echo configure:4435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 rm -rf conftest*
4436 wine_cv_sys_statfs_has_statfs=yes
4437 else
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 rm -rf conftest*
4441 wine_cv_sys_statfs_has_statfs=no
4444 rm -f conftest*
4448 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4449 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4450 then
4451 cat >> confdefs.h <<\EOF
4452 #define STATFS_DEFINED_BY_SYS_STATFS 1
4458 if test "$ac_cv_header_sys_mount_h" = "yes"
4459 then
4460 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
4461 echo "configure:4462: checking "whether sys/mount.h defines statfs"" >&5
4462 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4464 else
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4469 #include <sys/types.h>
4470 #ifdef HAVE_SYS_PARAM_H
4471 # include <sys/param.h>
4472 #endif
4473 #include <sys/mount.h>
4475 int main() {
4477 struct statfs stfs;
4479 ; return 0; }
4481 if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4482 rm -rf conftest*
4483 wine_cv_sys_mount_has_statfs=yes
4484 else
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -rf conftest*
4488 wine_cv_sys_mount_has_statfs=no
4491 rm -f conftest*
4495 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4496 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4497 then
4498 cat >> confdefs.h <<\EOF
4499 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4506 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
4507 echo "configure:4508: checking "for statfs.f_bfree"" >&5
4508 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4510 else
4511 if test "x$statfs_bfree" = "xno"
4512 then
4513 wine_cv_statfs_bfree=no
4514 else
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4519 #include <sys/types.h>
4520 #ifdef HAVE_SYS_PARAM_H
4521 # include <sys/param.h>
4522 #endif
4523 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4524 # include <sys/mount.h>
4525 #else
4526 # ifdef STATFS_DEFINED_BY_SYS_VFS
4527 # include <sys/vfs.h>
4528 # else
4529 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4530 # include <sys/statfs.h>
4531 # endif
4532 # endif
4533 #endif
4535 int main() {
4537 struct statfs stfs;
4539 stfs.f_bfree++;
4541 ; return 0; }
4543 if { (eval echo configure:4544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4544 rm -rf conftest*
4545 wine_cv_statfs_bfree=yes
4546 else
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4549 rm -rf conftest*
4550 wine_cv_statfs_bfree=no
4553 rm -f conftest*
4557 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4558 if test "$wine_cv_statfs_bfree" = "yes"
4559 then
4560 cat >> confdefs.h <<\EOF
4561 #define STATFS_HAS_BFREE 1
4566 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
4567 echo "configure:4568: checking "for statfs.f_bavail"" >&5
4568 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4570 else
4571 if test "x$statfs_bavail" = "xno"
4572 then
4573 wine_cv_statfs_bavail=no
4574 else
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4579 #include <sys/types.h>
4580 #ifdef HAVE_SYS_PARAM_H
4581 # include <sys/param.h>
4582 #endif
4583 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4584 # include <sys/mount.h>
4585 #else
4586 # ifdef STATFS_DEFINED_BY_SYS_VFS
4587 # include <sys/vfs.h>
4588 # else
4589 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4590 # include <sys/statfs.h>
4591 # endif
4592 # endif
4593 #endif
4595 int main() {
4597 struct statfs stfs;
4599 stfs.f_bavail++;
4601 ; return 0; }
4603 if { (eval echo configure:4604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 rm -rf conftest*
4605 wine_cv_statfs_bavail=yes
4606 else
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4609 rm -rf conftest*
4610 wine_cv_statfs_bavail=no
4613 rm -f conftest*
4617 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
4618 if test "$wine_cv_statfs_bavail" = "yes"
4619 then
4620 cat >> confdefs.h <<\EOF
4621 #define STATFS_HAS_BAVAIL 1
4627 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
4628 echo "configure:4629: checking "for working sigaltstack"" >&5
4629 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4631 else
4632 if test "$cross_compiling" = yes; then
4633 ac_cv_c_working_sigaltstack="no"
4635 else
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4640 #include <stdio.h>
4641 #include <time.h> /* <sys/time.h> ? bad magic without end */
4642 #include <sys/types.h>
4643 #include <sys/signal.h>
4644 #ifdef HAVE_SYS_PARAM_H
4645 # include <sys/param.h>
4646 #endif
4647 #ifdef HAVE_SYSCALL_H
4648 # include <syscall.h>
4649 #else
4650 # ifdef HAVE_SYS_SYSCALL_H
4651 # include <sys/syscall.h>
4652 # endif
4653 #endif
4655 unsigned char *xaltstack;
4658 main(int argc,char **argv) {
4659 struct sigaltstack ss;
4661 xaltstack = malloc(16384);
4662 ss.ss_sp = xaltstack;
4663 ss.ss_size = 16384;
4664 ss.ss_flags = 0;
4665 if (sigaltstack(&ss, NULL) < 0) {
4666 /* this catches the glibc case */
4667 perror("sigaltstack");
4668 return (1); /* aka exit(1) aka fail */
4670 /* assume it works. */
4671 return 0; /* OK */
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4676 then
4677 ac_cv_c_working_sigaltstack="yes"
4678 else
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 rm -fr conftest*
4682 ac_cv_c_working_sigaltstack="no"
4684 rm -fr conftest*
4689 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
4691 if test "$ac_cv_c_working_sigaltstack" = "yes"
4692 then
4693 cat >> confdefs.h <<\EOF
4694 #define HAVE_WORKING_SIGALTSTACK 1
4701 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
4702 echo "configure:4703: checking "for msg_accrights in struct msghdr"" >&5
4703 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4705 else
4706 cat > conftest.$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 #include <sys/types.h>
4710 #include <sys/socket.h>
4711 int main() {
4712 struct msghdr hdr; hdr.msg_accrights=0
4713 ; return 0; }
4715 if { (eval echo configure:4716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4716 rm -rf conftest*
4717 ac_cv_c_msg_accrights="yes"
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -rf conftest*
4722 ac_cv_c_msg_accrights="no"
4724 rm -f conftest*
4727 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
4728 if test "$ac_cv_c_msg_accrights" = "yes"
4729 then
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_MSGHDR_ACCRIGHTS 1
4736 GCC_NO_BUILTIN=""
4737 if test "$GCC" = "yes"
4738 then
4739 GCC_NO_BUILTIN="-fno-builtin"
4744 MAKE_RULES=Make.rules
4747 trap '' 1 2 15
4748 cat > confcache <<\EOF
4749 # This file is a shell script that caches the results of configure
4750 # tests run on this system so they can be shared between configure
4751 # scripts and configure runs. It is not useful on other systems.
4752 # If it contains results you don't want to keep, you may remove or edit it.
4754 # By default, configure uses ./config.cache as the cache file,
4755 # creating it if it does not exist already. You can give configure
4756 # the --cache-file=FILE option to use a different cache file; that is
4757 # what configure does when it calls configure scripts in
4758 # subdirectories, so they share the cache.
4759 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4760 # config.status only pays attention to the cache file if you give it the
4761 # --recheck option to rerun configure.
4764 # The following way of writing the cache mishandles newlines in values,
4765 # but we know of no workaround that is simple, portable, and efficient.
4766 # So, don't put newlines in cache variables' values.
4767 # Ultrix sh set writes to stderr and can't be redirected directly,
4768 # and sets the high bit in the cache file unless we assign to the vars.
4769 (set) 2>&1 |
4770 case `(ac_space=' '; set) 2>&1` in
4771 *ac_space=\ *)
4772 # `set' does not quote correctly, so add quotes (double-quote substitution
4773 # turns \\\\ into \\, and sed turns \\ into \).
4774 sed -n \
4775 -e "s/'/'\\\\''/g" \
4776 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4779 # `set' quotes correctly as required by POSIX, so do not add quotes.
4780 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4782 esac >> confcache
4783 if cmp -s $cache_file confcache; then
4785 else
4786 if test -w $cache_file; then
4787 echo "updating cache $cache_file"
4788 cat confcache > $cache_file
4789 else
4790 echo "not updating unwritable cache $cache_file"
4793 rm -f confcache
4795 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4798 # Let make expand exec_prefix.
4799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4801 # Any assignment to VPATH causes Sun make to only execute
4802 # the first set of double-colon rules, so remove it if not needed.
4803 # If there is a colon in the path, we need to keep it.
4804 if test "x$srcdir" = x.; then
4805 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4808 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4810 DEFS=-DHAVE_CONFIG_H
4812 # Without the "./", some shells look in PATH for config.status.
4813 : ${CONFIG_STATUS=./config.status}
4815 echo creating $CONFIG_STATUS
4816 rm -f $CONFIG_STATUS
4817 cat > $CONFIG_STATUS <<EOF
4818 #! /bin/sh
4819 # Generated automatically by configure.
4820 # Run this file to recreate the current configuration.
4821 # This directory was configured as follows,
4822 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4824 # $0 $ac_configure_args
4826 # Compiler output produced by configure, useful for debugging
4827 # configure, is in ./config.log if it exists.
4829 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4830 for ac_option
4832 case "\$ac_option" in
4833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4834 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4835 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4836 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4837 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4838 exit 0 ;;
4839 -help | --help | --hel | --he | --h)
4840 echo "\$ac_cs_usage"; exit 0 ;;
4841 *) echo "\$ac_cs_usage"; exit 1 ;;
4842 esac
4843 done
4845 ac_given_srcdir=$srcdir
4846 ac_given_INSTALL="$INSTALL"
4848 trap 'rm -fr `echo "
4849 Make.rules
4850 Makefile
4851 console/Makefile
4852 controls/Makefile
4853 debugger/Makefile
4854 dlls/Makefile
4855 dlls/advapi32/Makefile
4856 dlls/avifil32/Makefile
4857 dlls/comctl32/Makefile
4858 dlls/commdlg/Makefile
4859 dlls/imagehlp/Makefile
4860 dlls/msacm/Makefile
4861 dlls/msacm32/Makefile
4862 dlls/ntdll/Makefile
4863 dlls/psapi/Makefile
4864 dlls/rasapi32/Makefile
4865 dlls/shell32/Makefile
4866 dlls/tapi32/Makefile
4867 dlls/ver/Makefile
4868 dlls/version/Makefile
4869 dlls/winaspi/Makefile
4870 dlls/wnaspi32/Makefile
4871 documentation/Makefile
4872 files/Makefile
4873 graphics/Makefile
4874 graphics/metafiledrv/Makefile
4875 graphics/psdrv/Makefile
4876 graphics/ttydrv/Makefile
4877 graphics/win16drv/Makefile
4878 graphics/x11drv/Makefile
4879 if1632/Makefile
4880 include/Makefile
4881 ipc/Makefile
4882 library/Makefile
4883 libtest/Makefile
4884 loader/Makefile
4885 loader/ne/Makefile
4886 loader/dos/Makefile
4887 memory/Makefile
4888 misc/Makefile
4889 miscemu/Makefile
4890 msdos/Makefile
4891 multimedia/Makefile
4892 objects/Makefile
4893 ole/Makefile
4894 programs/Makefile
4895 programs/clock/Makefile
4896 programs/cmdlgtst/Makefile
4897 programs/control/Makefile
4898 programs/avitools/Makefile
4899 programs/notepad/Makefile
4900 programs/progman/Makefile
4901 programs/regtest/Makefile
4902 programs/regapi/Makefile
4903 programs/view/Makefile
4904 programs/winhelp/Makefile
4905 programs/winver/Makefile
4906 rc/Makefile
4907 relay32/Makefile
4908 resources/Makefile
4909 scheduler/Makefile
4910 server/Makefile
4911 tools/Makefile
4912 tools/wrc/Makefile
4913 tsx11/Makefile
4914 win32/Makefile
4915 windows/Makefile
4916 windows/ttydrv/Makefile
4917 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4919 cat >> $CONFIG_STATUS <<EOF
4921 # Protect against being on the right side of a sed subst in config.status.
4922 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4923 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4924 $ac_vpsub
4925 $extrasub
4926 s%@CFLAGS@%$CFLAGS%g
4927 s%@CPPFLAGS@%$CPPFLAGS%g
4928 s%@CXXFLAGS@%$CXXFLAGS%g
4929 s%@DEFS@%$DEFS%g
4930 s%@LDFLAGS@%$LDFLAGS%g
4931 s%@LIBS@%$LIBS%g
4932 s%@exec_prefix@%$exec_prefix%g
4933 s%@prefix@%$prefix%g
4934 s%@program_transform_name@%$program_transform_name%g
4935 s%@bindir@%$bindir%g
4936 s%@sbindir@%$sbindir%g
4937 s%@libexecdir@%$libexecdir%g
4938 s%@datadir@%$datadir%g
4939 s%@sysconfdir@%$sysconfdir%g
4940 s%@sharedstatedir@%$sharedstatedir%g
4941 s%@localstatedir@%$localstatedir%g
4942 s%@libdir@%$libdir%g
4943 s%@includedir@%$includedir%g
4944 s%@oldincludedir@%$oldincludedir%g
4945 s%@infodir@%$infodir%g
4946 s%@mandir@%$mandir%g
4947 s%@PROGEXT@%$PROGEXT%g
4948 s%@MAIN_TARGET@%$MAIN_TARGET%g
4949 s%@LIB_TARGET@%$LIB_TARGET%g
4950 s%@ALT_LINK@%$ALT_LINK%g
4951 s%@OPTIONS@%$OPTIONS%g
4952 s%@SET_MAKE@%$SET_MAKE%g
4953 s%@CC@%$CC%g
4954 s%@CPP@%$CPP%g
4955 s%@X_CFLAGS@%$X_CFLAGS%g
4956 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4957 s%@X_LIBS@%$X_LIBS%g
4958 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4959 s%@YACC@%$YACC%g
4960 s%@LEX@%$LEX%g
4961 s%@LEXLIB@%$LEXLIB%g
4962 s%@RANLIB@%$RANLIB%g
4963 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4964 s%@INSTALL_DATA@%$INSTALL_DATA%g
4965 s%@LN_S@%$LN_S%g
4966 s%@C2MAN@%$C2MAN%g
4967 s%@XLIB@%$XLIB%g
4968 s%@DLLFLAGS@%$DLLFLAGS%g
4969 s%@LDSHARED@%$LDSHARED%g
4970 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
4971 /@MAKE_RULES@/r $MAKE_RULES
4972 s%@MAKE_RULES@%%g
4974 CEOF
4977 cat >> $CONFIG_STATUS <<\EOF
4979 # Split the substitutions into bite-sized pieces for seds with
4980 # small command number limits, like on Digital OSF/1 and HP-UX.
4981 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4982 ac_file=1 # Number of current file.
4983 ac_beg=1 # First line for current file.
4984 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4985 ac_more_lines=:
4986 ac_sed_cmds=""
4987 while $ac_more_lines; do
4988 if test $ac_beg -gt 1; then
4989 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4990 else
4991 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4993 if test ! -s conftest.s$ac_file; then
4994 ac_more_lines=false
4995 rm -f conftest.s$ac_file
4996 else
4997 if test -z "$ac_sed_cmds"; then
4998 ac_sed_cmds="sed -f conftest.s$ac_file"
4999 else
5000 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5002 ac_file=`expr $ac_file + 1`
5003 ac_beg=$ac_end
5004 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5006 done
5007 if test -z "$ac_sed_cmds"; then
5008 ac_sed_cmds=cat
5012 cat >> $CONFIG_STATUS <<EOF
5014 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5015 Makefile
5016 console/Makefile
5017 controls/Makefile
5018 debugger/Makefile
5019 dlls/Makefile
5020 dlls/advapi32/Makefile
5021 dlls/avifil32/Makefile
5022 dlls/comctl32/Makefile
5023 dlls/commdlg/Makefile
5024 dlls/imagehlp/Makefile
5025 dlls/msacm/Makefile
5026 dlls/msacm32/Makefile
5027 dlls/ntdll/Makefile
5028 dlls/psapi/Makefile
5029 dlls/rasapi32/Makefile
5030 dlls/shell32/Makefile
5031 dlls/tapi32/Makefile
5032 dlls/ver/Makefile
5033 dlls/version/Makefile
5034 dlls/winaspi/Makefile
5035 dlls/wnaspi32/Makefile
5036 documentation/Makefile
5037 files/Makefile
5038 graphics/Makefile
5039 graphics/metafiledrv/Makefile
5040 graphics/psdrv/Makefile
5041 graphics/ttydrv/Makefile
5042 graphics/win16drv/Makefile
5043 graphics/x11drv/Makefile
5044 if1632/Makefile
5045 include/Makefile
5046 ipc/Makefile
5047 library/Makefile
5048 libtest/Makefile
5049 loader/Makefile
5050 loader/ne/Makefile
5051 loader/dos/Makefile
5052 memory/Makefile
5053 misc/Makefile
5054 miscemu/Makefile
5055 msdos/Makefile
5056 multimedia/Makefile
5057 objects/Makefile
5058 ole/Makefile
5059 programs/Makefile
5060 programs/clock/Makefile
5061 programs/cmdlgtst/Makefile
5062 programs/control/Makefile
5063 programs/avitools/Makefile
5064 programs/notepad/Makefile
5065 programs/progman/Makefile
5066 programs/regtest/Makefile
5067 programs/regapi/Makefile
5068 programs/view/Makefile
5069 programs/winhelp/Makefile
5070 programs/winver/Makefile
5071 rc/Makefile
5072 relay32/Makefile
5073 resources/Makefile
5074 scheduler/Makefile
5075 server/Makefile
5076 tools/Makefile
5077 tools/wrc/Makefile
5078 tsx11/Makefile
5079 win32/Makefile
5080 windows/Makefile
5081 windows/ttydrv/Makefile
5082 windows/x11drv/Makefile "}
5084 cat >> $CONFIG_STATUS <<\EOF
5085 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5087 case "$ac_file" in
5088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5090 *) ac_file_in="${ac_file}.in" ;;
5091 esac
5093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5095 # Remove last slash and all that follows it. Not all systems have dirname.
5096 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5098 # The file is in a subdirectory.
5099 test ! -d "$ac_dir" && mkdir "$ac_dir"
5100 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5101 # A "../" for each directory in $ac_dir_suffix.
5102 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5103 else
5104 ac_dir_suffix= ac_dots=
5107 case "$ac_given_srcdir" in
5108 .) srcdir=.
5109 if test -z "$ac_dots"; then top_srcdir=.
5110 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5111 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5112 *) # Relative path.
5113 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5114 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5115 esac
5117 case "$ac_given_INSTALL" in
5118 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5119 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5120 esac
5122 echo creating "$ac_file"
5123 rm -f "$ac_file"
5124 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5125 case "$ac_file" in
5126 *Makefile*) ac_comsub="1i\\
5127 # $configure_input" ;;
5128 *) ac_comsub= ;;
5129 esac
5131 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5132 sed -e "$ac_comsub
5133 s%@configure_input@%$configure_input%g
5134 s%@srcdir@%$srcdir%g
5135 s%@top_srcdir@%$top_srcdir%g
5136 s%@INSTALL@%$INSTALL%g
5137 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5138 fi; done
5139 rm -f conftest.s*
5141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5144 # ac_d sets the value in "#define NAME VALUE" lines.
5145 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5146 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5147 ac_dC='\3'
5148 ac_dD='%g'
5149 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5150 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5151 ac_uB='\([ ]\)%\1#\2define\3'
5152 ac_uC=' '
5153 ac_uD='\4%g'
5154 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5155 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5156 ac_eB='$%\1#\2define\3'
5157 ac_eC=' '
5158 ac_eD='%g'
5160 if test "${CONFIG_HEADERS+set}" != set; then
5162 cat >> $CONFIG_STATUS <<EOF
5163 CONFIG_HEADERS="include/config.h"
5165 cat >> $CONFIG_STATUS <<\EOF
5167 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5169 case "$ac_file" in
5170 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5171 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5172 *) ac_file_in="${ac_file}.in" ;;
5173 esac
5175 echo creating $ac_file
5177 rm -f conftest.frag conftest.in conftest.out
5178 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5179 cat $ac_file_inputs > conftest.in
5183 # Transform confdefs.h into a sed script conftest.vals that substitutes
5184 # the proper values into config.h.in to produce config.h. And first:
5185 # Protect against being on the right side of a sed subst in config.status.
5186 # Protect against being in an unquoted here document in config.status.
5187 rm -f conftest.vals
5188 cat > conftest.hdr <<\EOF
5189 s/[\\&%]/\\&/g
5190 s%[\\$`]%\\&%g
5191 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5192 s%ac_d%ac_u%gp
5193 s%ac_u%ac_e%gp
5195 sed -n -f conftest.hdr confdefs.h > conftest.vals
5196 rm -f conftest.hdr
5198 # This sed command replaces #undef with comments. This is necessary, for
5199 # example, in the case of _POSIX_SOURCE, which is predefined and required
5200 # on some systems where configure will not decide to define it.
5201 cat >> conftest.vals <<\EOF
5202 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5205 # Break up conftest.vals because some shells have a limit on
5206 # the size of here documents, and old seds have small limits too.
5208 rm -f conftest.tail
5209 while :
5211 ac_lines=`grep -c . conftest.vals`
5212 # grep -c gives empty output for an empty file on some AIX systems.
5213 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5214 # Write a limited-size here document to conftest.frag.
5215 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5216 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5217 echo 'CEOF
5218 sed -f conftest.frag conftest.in > conftest.out
5219 rm -f conftest.in
5220 mv conftest.out conftest.in
5221 ' >> $CONFIG_STATUS
5222 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5223 rm -f conftest.vals
5224 mv conftest.tail conftest.vals
5225 done
5226 rm -f conftest.vals
5228 cat >> $CONFIG_STATUS <<\EOF
5229 rm -f conftest.frag conftest.h
5230 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5231 cat conftest.in >> conftest.h
5232 rm -f conftest.in
5233 if cmp -s $ac_file conftest.h 2>/dev/null; then
5234 echo "$ac_file is unchanged"
5235 rm -f conftest.h
5236 else
5237 # Remove last slash and all that follows it. Not all systems have dirname.
5238 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5240 # The file is in a subdirectory.
5241 test ! -d "$ac_dir" && mkdir "$ac_dir"
5243 rm -f $ac_file
5244 mv conftest.h $ac_file
5246 fi; done
5249 cat >> $CONFIG_STATUS <<EOF
5252 cat >> $CONFIG_STATUS <<\EOF
5254 exit 0
5256 chmod +x $CONFIG_STATUS
5257 rm -fr confdefs* $ac_clean_files
5258 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5261 if test "$have_x" = "no"
5262 then
5263 echo
5264 echo "*** Warning: X development files not found. Wine will be built without"
5265 echo "*** X support, which currently does not work, and would probably not be"
5266 echo "*** what you want anyway. You will need to install devel packages of"
5267 echo "*** Xlib/Xfree86 and Xpm at the very least."
5268 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5269 then
5270 echo
5271 echo "*** Warning: Xpm development files not found. Wine will be built without"
5272 echo "*** Xpm support, which currently does not work. You will need to install"
5273 echo "*** devel packages of Xpm."
5276 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5277 then
5278 echo
5279 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5280 echo "*** terminal resize support. Consider upgrading ncurses."
5283 if test "$wine_cv_libc_reentrant" = "no"
5284 then
5285 echo
5286 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5287 echo "*** thread support. Consider upgrading libc to a more recent"
5288 echo "*** reentrant version of libc."
5291 if test "$wine_cv_mesa_version_OK" = "no"
5292 then
5293 echo
5294 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5295 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5298 echo
5299 echo "Configure finished. Do 'make depend && make' to compile Wine."
5300 echo