Release 971221
[wine.git] / configure
blob1032ff2e6ce1abbcbff708cce38de2e8950f7116
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 --enable-ipc use inter-process communication for DDE"
21 ac_help="$ac_help
22 --with-x use the X Window System"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
64 ac_prev=
65 for ac_option
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
71 ac_prev=
72 continue
75 case "$ac_option" in
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 *) ac_optarg= ;;
78 esac
80 # Accept the important Cygnus configure options, so we can diagnose typos.
82 case "$ac_option" in
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 ac_prev=bindir ;;
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
89 -build | --build | --buil | --bui | --bu)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 build="$ac_optarg" ;;
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 ac_prev=cache_file ;;
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 ac_prev=datadir ;;
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 | --da=*)
105 datadir="$ac_optarg" ;;
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 case "$ac_option" in
124 *=*) ;;
125 *) ac_optarg=yes ;;
126 esac
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
140 with_gas=yes ;;
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
145 cat << EOF
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
179 cat << EOF
180 Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
195 exit 0 ;;
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 ac_prev=srcdir ;;
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
335 -target | --target | --targe | --targ | --tar | --ta | --t)
336 ac_prev=target ;;
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 verbose=yes ;;
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.12"
345 exit 0 ;;
347 -with-* | --with-*)
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 case "$ac_option" in
355 *=*) ;;
356 *) ac_optarg=yes ;;
357 esac
358 eval "with_${ac_package}='$ac_optarg'" ;;
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
369 --x)
370 # Obsolete; use --with-x.
371 with_x=yes ;;
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397 nonopt="$ac_option"
400 esac
401 done
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409 # File descriptor usage:
410 # 0 standard input
411 # 1 file creation
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
418 exec 6>/dev/null
419 else
420 exec 6>&1
422 exec 5>./config.log
424 echo "\
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
427 " 1>&5
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
431 ac_configure_args=
432 for ac_arg
434 case "$ac_arg" in
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 esac
443 done
445 # NLS nuisances.
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > confdefs.h
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=controls/edit.c
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
468 ac_prog=$0
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 srcdir=$ac_confdir
472 if test ! -r $srcdir/$ac_unique_file; then
473 srcdir=..
475 else
476 ac_srcdir_defaulted=no
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 else
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
498 . "$ac_site_file"
500 done
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505 else
506 echo "creating cache $cache_file"
507 > $cache_file
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='
521 ' ac_t=' '
522 else
523 ac_n=-n ac_c= ac_t=
525 else
526 ac_n= ac_c='\c' ac_t=
531 ac_aux_dir=
532 for ac_dir in tools $srcdir/tools; do
533 if test -f $ac_dir/install-sh; then
534 ac_aux_dir=$ac_dir
535 ac_install_sh="$ac_aux_dir/install-sh -c"
536 break
537 elif test -f $ac_dir/install.sh; then
538 ac_aux_dir=$ac_dir
539 ac_install_sh="$ac_aux_dir/install.sh -c"
540 break
542 done
543 if test -z "$ac_aux_dir"; then
544 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
546 ac_config_guess=$ac_aux_dir/config.guess
547 ac_config_sub=$ac_aux_dir/config.sub
548 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
551 # We want these before the checks, so the checks can modify their values.
552 test -z "$LDLIBS" && LDLIBS=-lm
553 test -z "$PROGEXT" && PROGEXT=""
556 MAIN_TARGET=emu
557 LIB_TARGET=libwine.a
559 # Check whether --enable-emulator or --disable-emulator was given.
560 if test "${enable_emulator+set}" = set; then
561 enableval="$enable_emulator"
562 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
566 # Check whether --enable-dll or --disable-dll was given.
567 if test "${enable_dll+set}" = set; then
568 enableval="$enable_dll"
569 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
573 # Check whether --with-ipc or --without-ipc was given.
574 if test "${with_ipc+set}" = set; then
575 withval="$with_ipc"
576 if test "$enableval" = "no"; then : ; else OPTIONS="-DCONFIG_IPC"; fi
585 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
586 echo "configure:587: checking whether ${MAKE-make} sets \${MAKE}" >&5
587 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
588 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
589 echo $ac_n "(cached) $ac_c" 1>&6
590 else
591 cat > conftestmake <<\EOF
592 all:
593 @echo 'ac_maketemp="${MAKE}"'
595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
596 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
597 if test -n "$ac_maketemp"; then
598 eval ac_cv_prog_make_${ac_make}_set=yes
599 else
600 eval ac_cv_prog_make_${ac_make}_set=no
602 rm -f conftestmake
604 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
605 echo "$ac_t""yes" 1>&6
606 SET_MAKE=
607 else
608 echo "$ac_t""no" 1>&6
609 SET_MAKE="MAKE=${MAKE-make}"
612 # Extract the first word of "gcc", so it can be a program name with args.
613 set dummy gcc; ac_word=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618 else
619 if test -n "$CC"; then
620 ac_cv_prog_CC="$CC" # Let the user override the test.
621 else
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
623 for ac_dir in $PATH; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
626 ac_cv_prog_CC="gcc"
627 break
629 done
630 IFS="$ac_save_ifs"
633 CC="$ac_cv_prog_CC"
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
636 else
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc; ac_word=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
647 else
648 if test -n "$CC"; then
649 ac_cv_prog_CC="$CC" # Let the user override the test.
650 else
651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
652 ac_prog_rejected=no
653 for ac_dir in $PATH; do
654 test -z "$ac_dir" && ac_dir=.
655 if test -f $ac_dir/$ac_word; then
656 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
657 ac_prog_rejected=yes
658 continue
660 ac_cv_prog_CC="cc"
661 break
663 done
664 IFS="$ac_save_ifs"
665 if test $ac_prog_rejected = yes; then
666 # We found a bogon in the path, so make sure we never use it.
667 set dummy $ac_cv_prog_CC
668 shift
669 if test $# -gt 0; then
670 # We chose a different compiler from the bogus one.
671 # However, it has the same basename, so the bogon will be chosen
672 # first if we set CC to just the basename; use the full file name.
673 shift
674 set dummy "$ac_dir/$ac_word" "$@"
675 shift
676 ac_cv_prog_CC="$@"
681 CC="$ac_cv_prog_CC"
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684 else
685 echo "$ac_t""no" 1>&6
688 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
692 echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
694 ac_ext=c
695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
696 ac_cpp='$CPP $CPPFLAGS'
697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
698 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
699 cross_compiling=$ac_cv_prog_cc_cross
701 cat > conftest.$ac_ext <<EOF
702 #line 703 "configure"
703 #include "confdefs.h"
704 main(){return(0);}
706 if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
707 ac_cv_prog_cc_works=yes
708 # If we can't run a trivial program, we are probably using a cross compiler.
709 if (./conftest; exit) 2>/dev/null; then
710 ac_cv_prog_cc_cross=no
711 else
712 ac_cv_prog_cc_cross=yes
714 else
715 echo "configure: failed program was:" >&5
716 cat conftest.$ac_ext >&5
717 ac_cv_prog_cc_works=no
719 rm -fr conftest*
721 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
722 if test $ac_cv_prog_cc_works = no; then
723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
726 echo "configure:727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
727 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
728 cross_compiling=$ac_cv_prog_cc_cross
730 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
731 echo "configure:732: checking whether we are using GNU C" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
734 else
735 cat > conftest.c <<EOF
736 #ifdef __GNUC__
737 yes;
738 #endif
740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
741 ac_cv_prog_gcc=yes
742 else
743 ac_cv_prog_gcc=no
747 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
749 if test $ac_cv_prog_gcc = yes; then
750 GCC=yes
751 ac_test_CFLAGS="${CFLAGS+set}"
752 ac_save_CFLAGS="$CFLAGS"
753 CFLAGS=
754 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
755 echo "configure:756: checking whether ${CC-cc} accepts -g" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
758 else
759 echo 'void f(){}' > conftest.c
760 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
761 ac_cv_prog_cc_g=yes
762 else
763 ac_cv_prog_cc_g=no
765 rm -f conftest*
769 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
770 if test "$ac_test_CFLAGS" = set; then
771 CFLAGS="$ac_save_CFLAGS"
772 elif test $ac_cv_prog_cc_g = yes; then
773 CFLAGS="-g -O2"
774 else
775 CFLAGS="-O2"
777 else
778 GCC=
779 test "${CFLAGS+set}" = set || CFLAGS="-g"
782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
783 echo "configure:784: checking how to run the C preprocessor" >&5
784 # On Suns, sometimes $CPP names a directory.
785 if test -n "$CPP" && test -d "$CPP"; then
786 CPP=
788 if test -z "$CPP"; then
789 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791 else
792 # This must be in double quotes, not single quotes, because CPP may get
793 # substituted into the Makefile and "${CC-cc}" will confuse make.
794 CPP="${CC-cc} -E"
795 # On the NeXT, cc -E runs the code through the compiler's parser,
796 # not just through cpp.
797 cat > conftest.$ac_ext <<EOF
798 #line 799 "configure"
799 #include "confdefs.h"
800 #include <assert.h>
801 Syntax Error
803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
804 { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
805 ac_err=`grep -v '^ *+' conftest.out`
806 if test -z "$ac_err"; then
808 else
809 echo "$ac_err" >&5
810 echo "configure: failed program was:" >&5
811 cat conftest.$ac_ext >&5
812 rm -rf conftest*
813 CPP="${CC-cc} -E -traditional-cpp"
814 cat > conftest.$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
817 #include <assert.h>
818 Syntax Error
820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
821 { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
822 ac_err=`grep -v '^ *+' conftest.out`
823 if test -z "$ac_err"; then
825 else
826 echo "$ac_err" >&5
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
829 rm -rf conftest*
830 CPP=/lib/cpp
832 rm -f conftest*
834 rm -f conftest*
835 ac_cv_prog_CPP="$CPP"
837 CPP="$ac_cv_prog_CPP"
838 else
839 ac_cv_prog_CPP="$CPP"
841 echo "$ac_t""$CPP" 1>&6
843 # If we find X, set shell vars x_includes and x_libraries to the
844 # paths, otherwise set no_x=yes.
845 # Uses ac_ vars as temps to allow command line to override cache and checks.
846 # --without-x overrides everything else, but does not touch the cache.
847 echo $ac_n "checking for X""... $ac_c" 1>&6
848 echo "configure:849: checking for X" >&5
850 # Check whether --with-x or --without-x was given.
851 if test "${with_x+set}" = set; then
852 withval="$with_x"
856 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
857 if test "x$with_x" = xno; then
858 # The user explicitly disabled X.
859 have_x=disabled
860 else
861 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
862 # Both variables are already set.
863 have_x=yes
864 else
865 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 # One or both of the vars are not set, and there is no cached value.
869 ac_x_includes=NO ac_x_libraries=NO
870 rm -fr conftestdir
871 if mkdir conftestdir; then
872 cd conftestdir
873 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
874 cat > Imakefile <<'EOF'
875 acfindx:
876 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
878 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
880 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
881 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
882 for ac_extension in a so sl; do
883 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
884 test -f $ac_im_libdir/libX11.$ac_extension; then
885 ac_im_usrlibdir=$ac_im_libdir; break
887 done
888 # Screen out bogus values from the imake configuration. They are
889 # bogus both because they are the default anyway, and because
890 # using them would break gcc on systems where it needs fixed includes.
891 case "$ac_im_incroot" in
892 /usr/include) ;;
893 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
894 esac
895 case "$ac_im_usrlibdir" in
896 /usr/lib | /lib) ;;
897 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
898 esac
900 cd ..
901 rm -fr conftestdir
904 if test "$ac_x_includes" = NO; then
905 # Guess where to find include files, by looking for this one X11 .h file.
906 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
908 # First, try using that file with no special directory specified.
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
912 #include <$x_direct_test_include>
914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err=`grep -v '^ *+' conftest.out`
917 if test -z "$ac_err"; then
918 rm -rf conftest*
919 # We can compile using X headers with no special include directory.
920 ac_x_includes=
921 else
922 echo "$ac_err" >&5
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 rm -rf conftest*
926 # Look for the header file in a standard set of common directories.
927 # Check X11 before X11Rn because it is often a symlink to the current release.
928 for ac_dir in \
929 /usr/X11/include \
930 /usr/X11R6/include \
931 /usr/X11R5/include \
932 /usr/X11R4/include \
934 /usr/include/X11 \
935 /usr/include/X11R6 \
936 /usr/include/X11R5 \
937 /usr/include/X11R4 \
939 /usr/local/X11/include \
940 /usr/local/X11R6/include \
941 /usr/local/X11R5/include \
942 /usr/local/X11R4/include \
944 /usr/local/include/X11 \
945 /usr/local/include/X11R6 \
946 /usr/local/include/X11R5 \
947 /usr/local/include/X11R4 \
949 /usr/X386/include \
950 /usr/x386/include \
951 /usr/XFree86/include/X11 \
953 /usr/include \
954 /usr/local/include \
955 /usr/unsupported/include \
956 /usr/athena/include \
957 /usr/local/x11r5/include \
958 /usr/lpp/Xamples/include \
960 /usr/openwin/include \
961 /usr/openwin/share/include \
964 if test -r "$ac_dir/$x_direct_test_include"; then
965 ac_x_includes=$ac_dir
966 break
968 done
970 rm -f conftest*
971 fi # $ac_x_includes = NO
973 if test "$ac_x_libraries" = NO; then
974 # Check for the libraries.
976 test -z "$x_direct_test_library" && x_direct_test_library=Xt
977 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
979 # See if we find them without any special options.
980 # Don't add to $LIBS permanently.
981 ac_save_LIBS="$LIBS"
982 LIBS="-l$x_direct_test_library $LIBS"
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
987 int main() {
988 ${x_direct_test_function}()
989 ; return 0; }
991 if { (eval echo configure:992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
992 rm -rf conftest*
993 LIBS="$ac_save_LIBS"
994 # We can link X programs with no special library path.
995 ac_x_libraries=
996 else
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
999 rm -rf conftest*
1000 LIBS="$ac_save_LIBS"
1001 # First see if replacing the include by lib works.
1002 # Check X11 before X11Rn because it is often a symlink to the current release.
1003 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1004 /usr/X11/lib \
1005 /usr/X11R6/lib \
1006 /usr/X11R5/lib \
1007 /usr/X11R4/lib \
1009 /usr/lib/X11 \
1010 /usr/lib/X11R6 \
1011 /usr/lib/X11R5 \
1012 /usr/lib/X11R4 \
1014 /usr/local/X11/lib \
1015 /usr/local/X11R6/lib \
1016 /usr/local/X11R5/lib \
1017 /usr/local/X11R4/lib \
1019 /usr/local/lib/X11 \
1020 /usr/local/lib/X11R6 \
1021 /usr/local/lib/X11R5 \
1022 /usr/local/lib/X11R4 \
1024 /usr/X386/lib \
1025 /usr/x386/lib \
1026 /usr/XFree86/lib/X11 \
1028 /usr/lib \
1029 /usr/local/lib \
1030 /usr/unsupported/lib \
1031 /usr/athena/lib \
1032 /usr/local/x11r5/lib \
1033 /usr/lpp/Xamples/lib \
1034 /lib/usr/lib/X11 \
1036 /usr/openwin/lib \
1037 /usr/openwin/share/lib \
1040 for ac_extension in a so sl; do
1041 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1042 ac_x_libraries=$ac_dir
1043 break 2
1045 done
1046 done
1048 rm -f conftest*
1049 fi # $ac_x_libraries = NO
1051 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1052 # Didn't find X anywhere. Cache the known absence of X.
1053 ac_cv_have_x="have_x=no"
1054 else
1055 # Record where we found X for the cache.
1056 ac_cv_have_x="have_x=yes \
1057 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1061 eval "$ac_cv_have_x"
1062 fi # $with_x != no
1064 if test "$have_x" != yes; then
1065 echo "$ac_t""$have_x" 1>&6
1066 no_x=yes
1067 else
1068 # If each of the values was on the command line, it overrides each guess.
1069 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1070 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1071 # Update the cache value to reflect the command line values.
1072 ac_cv_have_x="have_x=yes \
1073 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1074 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1077 if test "$no_x" = yes; then
1078 # Not all programs may use this symbol, but it does not hurt to define it.
1079 cat >> confdefs.h <<\EOF
1080 #define X_DISPLAY_MISSING 1
1083 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1084 else
1085 if test -n "$x_includes"; then
1086 X_CFLAGS="$X_CFLAGS -I$x_includes"
1089 # It would also be nice to do this for all -L options, not just this one.
1090 if test -n "$x_libraries"; then
1091 X_LIBS="$X_LIBS -L$x_libraries"
1092 # For Solaris; some versions of Sun CC require a space after -R and
1093 # others require no space. Words are not sufficient . . . .
1094 case "`(uname -sr) 2>/dev/null`" in
1095 "SunOS 5"*)
1096 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether -R must be followed by a space" >&5
1098 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1103 int main() {
1105 ; return 0; }
1107 if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1108 rm -rf conftest*
1109 ac_R_nospace=yes
1110 else
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1113 rm -rf conftest*
1114 ac_R_nospace=no
1116 rm -f conftest*
1117 if test $ac_R_nospace = yes; then
1118 echo "$ac_t""no" 1>&6
1119 X_LIBS="$X_LIBS -R$x_libraries"
1120 else
1121 LIBS="$ac_xsave_LIBS -R $x_libraries"
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1126 int main() {
1128 ; return 0; }
1130 if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1131 rm -rf conftest*
1132 ac_R_space=yes
1133 else
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1136 rm -rf conftest*
1137 ac_R_space=no
1139 rm -f conftest*
1140 if test $ac_R_space = yes; then
1141 echo "$ac_t""yes" 1>&6
1142 X_LIBS="$X_LIBS -R $x_libraries"
1143 else
1144 echo "$ac_t""neither works" 1>&6
1147 LIBS="$ac_xsave_LIBS"
1148 esac
1151 # Check for system-dependent libraries X programs must link with.
1152 # Do this before checking for the system-independent R6 libraries
1153 # (-lICE), since we may need -lsocket or whatever for X linking.
1155 if test "$ISC" = yes; then
1156 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1157 else
1158 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1159 # libraries were built with DECnet support. And karl@cs.umb.edu says
1160 # the Alpha needs dnet_stub (dnet does not exist).
1161 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1162 echo "configure:1163: checking for dnet_ntoa in -ldnet" >&5
1163 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1166 else
1167 ac_save_LIBS="$LIBS"
1168 LIBS="-ldnet $LIBS"
1169 cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1172 /* Override any gcc2 internal prototype to avoid an error. */
1173 /* We use char because int might match the return type of a gcc2
1174 builtin and then its argument prototype would still apply. */
1175 char dnet_ntoa();
1177 int main() {
1178 dnet_ntoa()
1179 ; return 0; }
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1182 rm -rf conftest*
1183 eval "ac_cv_lib_$ac_lib_var=yes"
1184 else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 eval "ac_cv_lib_$ac_lib_var=no"
1190 rm -f conftest*
1191 LIBS="$ac_save_LIBS"
1194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1195 echo "$ac_t""yes" 1>&6
1196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1197 else
1198 echo "$ac_t""no" 1>&6
1201 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1202 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1203 echo "configure:1204: checking for dnet_ntoa in -ldnet_stub" >&5
1204 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208 ac_save_LIBS="$LIBS"
1209 LIBS="-ldnet_stub $LIBS"
1210 cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 /* Override any gcc2 internal prototype to avoid an error. */
1214 /* We use char because int might match the return type of a gcc2
1215 builtin and then its argument prototype would still apply. */
1216 char dnet_ntoa();
1218 int main() {
1219 dnet_ntoa()
1220 ; return 0; }
1222 if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1223 rm -rf conftest*
1224 eval "ac_cv_lib_$ac_lib_var=yes"
1225 else
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1228 rm -rf conftest*
1229 eval "ac_cv_lib_$ac_lib_var=no"
1231 rm -f conftest*
1232 LIBS="$ac_save_LIBS"
1235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1236 echo "$ac_t""yes" 1>&6
1237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1238 else
1239 echo "$ac_t""no" 1>&6
1244 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1245 # to get the SysV transport functions.
1246 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1247 # needs -lnsl.
1248 # The nsl library prevents programs from opening the X display
1249 # on Irix 5.2, according to dickey@clark.net.
1250 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1251 echo "configure:1252: checking for gethostbyname" >&5
1252 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 /* System header to define __stub macros and hopefully few prototypes,
1259 which can conflict with char gethostbyname(); below. */
1260 #include <assert.h>
1261 /* Override any gcc2 internal prototype to avoid an error. */
1262 /* We use char because int might match the return type of a gcc2
1263 builtin and then its argument prototype would still apply. */
1264 char gethostbyname();
1266 int main() {
1268 /* The GNU C library defines this for functions which it implements
1269 to always fail with ENOSYS. Some functions are actually named
1270 something starting with __ and the normal name is an alias. */
1271 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1272 choke me
1273 #else
1274 gethostbyname();
1275 #endif
1277 ; return 0; }
1279 if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1280 rm -rf conftest*
1281 eval "ac_cv_func_gethostbyname=yes"
1282 else
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1285 rm -rf conftest*
1286 eval "ac_cv_func_gethostbyname=no"
1288 rm -f conftest*
1291 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1292 echo "$ac_t""yes" 1>&6
1294 else
1295 echo "$ac_t""no" 1>&6
1298 if test $ac_cv_func_gethostbyname = no; then
1299 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1300 echo "configure:1301: checking for gethostbyname in -lnsl" >&5
1301 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 ac_save_LIBS="$LIBS"
1306 LIBS="-lnsl $LIBS"
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* Override any gcc2 internal prototype to avoid an error. */
1311 /* We use char because int might match the return type of a gcc2
1312 builtin and then its argument prototype would still apply. */
1313 char gethostbyname();
1315 int main() {
1316 gethostbyname()
1317 ; return 0; }
1319 if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=yes"
1322 else
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1325 rm -rf conftest*
1326 eval "ac_cv_lib_$ac_lib_var=no"
1328 rm -f conftest*
1329 LIBS="$ac_save_LIBS"
1332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1335 else
1336 echo "$ac_t""no" 1>&6
1341 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1342 # socket/setsockopt and other routines are undefined under SCO ODT
1343 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1344 # on later versions), says simon@lia.di.epfl.ch: it contains
1345 # gethostby* variants that don't use the nameserver (or something).
1346 # -lsocket must be given before -lnsl if both are needed.
1347 # We assume that if connect needs -lnsl, so does gethostbyname.
1348 echo $ac_n "checking for connect""... $ac_c" 1>&6
1349 echo "configure:1350: checking for connect" >&5
1350 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1352 else
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1356 /* System header to define __stub macros and hopefully few prototypes,
1357 which can conflict with char connect(); below. */
1358 #include <assert.h>
1359 /* Override any gcc2 internal prototype to avoid an error. */
1360 /* We use char because int might match the return type of a gcc2
1361 builtin and then its argument prototype would still apply. */
1362 char connect();
1364 int main() {
1366 /* The GNU C library defines this for functions which it implements
1367 to always fail with ENOSYS. Some functions are actually named
1368 something starting with __ and the normal name is an alias. */
1369 #if defined (__stub_connect) || defined (__stub___connect)
1370 choke me
1371 #else
1372 connect();
1373 #endif
1375 ; return 0; }
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1378 rm -rf conftest*
1379 eval "ac_cv_func_connect=yes"
1380 else
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1383 rm -rf conftest*
1384 eval "ac_cv_func_connect=no"
1386 rm -f conftest*
1389 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1396 if test $ac_cv_func_connect = no; then
1397 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1398 echo "configure:1399: checking for connect in -lsocket" >&5
1399 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 ac_save_LIBS="$LIBS"
1404 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* Override any gcc2 internal prototype to avoid an error. */
1409 /* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1411 char connect();
1413 int main() {
1414 connect()
1415 ; return 0; }
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1418 rm -rf conftest*
1419 eval "ac_cv_lib_$ac_lib_var=yes"
1420 else
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 rm -rf conftest*
1424 eval "ac_cv_lib_$ac_lib_var=no"
1426 rm -f conftest*
1427 LIBS="$ac_save_LIBS"
1430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1432 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1433 else
1434 echo "$ac_t""no" 1>&6
1439 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1440 echo $ac_n "checking for remove""... $ac_c" 1>&6
1441 echo "configure:1442: checking for remove" >&5
1442 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 /* System header to define __stub macros and hopefully few prototypes,
1449 which can conflict with char remove(); below. */
1450 #include <assert.h>
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1454 char remove();
1456 int main() {
1458 /* The GNU C library defines this for functions which it implements
1459 to always fail with ENOSYS. Some functions are actually named
1460 something starting with __ and the normal name is an alias. */
1461 #if defined (__stub_remove) || defined (__stub___remove)
1462 choke me
1463 #else
1464 remove();
1465 #endif
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_func_remove=yes"
1472 else
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 rm -rf conftest*
1476 eval "ac_cv_func_remove=no"
1478 rm -f conftest*
1481 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1484 else
1485 echo "$ac_t""no" 1>&6
1488 if test $ac_cv_func_remove = no; then
1489 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1490 echo "configure:1491: checking for remove in -lposix" >&5
1491 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 ac_save_LIBS="$LIBS"
1496 LIBS="-lposix $LIBS"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* Override any gcc2 internal prototype to avoid an error. */
1501 /* We use char because int might match the return type of a gcc2
1502 builtin and then its argument prototype would still apply. */
1503 char remove();
1505 int main() {
1506 remove()
1507 ; return 0; }
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1510 rm -rf conftest*
1511 eval "ac_cv_lib_$ac_lib_var=yes"
1512 else
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 rm -rf conftest*
1516 eval "ac_cv_lib_$ac_lib_var=no"
1518 rm -f conftest*
1519 LIBS="$ac_save_LIBS"
1522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1525 else
1526 echo "$ac_t""no" 1>&6
1531 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1532 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1533 echo "configure:1534: checking for shmat" >&5
1534 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1536 else
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 /* System header to define __stub macros and hopefully few prototypes,
1541 which can conflict with char shmat(); below. */
1542 #include <assert.h>
1543 /* Override any gcc2 internal prototype to avoid an error. */
1544 /* We use char because int might match the return type of a gcc2
1545 builtin and then its argument prototype would still apply. */
1546 char shmat();
1548 int main() {
1550 /* The GNU C library defines this for functions which it implements
1551 to always fail with ENOSYS. Some functions are actually named
1552 something starting with __ and the normal name is an alias. */
1553 #if defined (__stub_shmat) || defined (__stub___shmat)
1554 choke me
1555 #else
1556 shmat();
1557 #endif
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_func_shmat=yes"
1564 else
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 rm -rf conftest*
1568 eval "ac_cv_func_shmat=no"
1570 rm -f conftest*
1573 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1576 else
1577 echo "$ac_t""no" 1>&6
1580 if test $ac_cv_func_shmat = no; then
1581 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1582 echo "configure:1583: checking for shmat in -lipc" >&5
1583 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 ac_save_LIBS="$LIBS"
1588 LIBS="-lipc $LIBS"
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* Override any gcc2 internal prototype to avoid an error. */
1593 /* We use char because int might match the return type of a gcc2
1594 builtin and then its argument prototype would still apply. */
1595 char shmat();
1597 int main() {
1598 shmat()
1599 ; return 0; }
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1602 rm -rf conftest*
1603 eval "ac_cv_lib_$ac_lib_var=yes"
1604 else
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 rm -rf conftest*
1608 eval "ac_cv_lib_$ac_lib_var=no"
1610 rm -f conftest*
1611 LIBS="$ac_save_LIBS"
1614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1617 else
1618 echo "$ac_t""no" 1>&6
1624 # Check for libraries that X11R6 Xt/Xaw programs need.
1625 ac_save_LDFLAGS="$LDFLAGS"
1626 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1627 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1628 # check for ICE first), but we must link in the order -lSM -lICE or
1629 # we get undefined symbols. So assume we have SM if we have ICE.
1630 # These have to be linked with before -lX11, unlike the other
1631 # libraries we check for below, so use a different variable.
1632 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1633 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1634 echo "configure:1635: checking for IceConnectionNumber in -lICE" >&5
1635 ac_lib_var=`echo ICE'_'IceConnectionNumber | 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="-lICE $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 IceConnectionNumber();
1649 int main() {
1650 IceConnectionNumber()
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_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1669 else
1670 echo "$ac_t""no" 1>&6
1673 LDFLAGS="$ac_save_LDFLAGS"
1677 for ac_prog in 'bison -y' byacc
1679 # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_word" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 if test -n "$YACC"; then
1687 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1688 else
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1690 for ac_dir in $PATH; do
1691 test -z "$ac_dir" && ac_dir=.
1692 if test -f $ac_dir/$ac_word; then
1693 ac_cv_prog_YACC="$ac_prog"
1694 break
1696 done
1697 IFS="$ac_save_ifs"
1700 YACC="$ac_cv_prog_YACC"
1701 if test -n "$YACC"; then
1702 echo "$ac_t""$YACC" 1>&6
1703 else
1704 echo "$ac_t""no" 1>&6
1707 test -n "$YACC" && break
1708 done
1709 test -n "$YACC" || YACC="yacc"
1711 # Extract the first word of "flex", so it can be a program name with args.
1712 set dummy flex; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718 if test -n "$LEX"; then
1719 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1720 else
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1722 for ac_dir in $PATH; do
1723 test -z "$ac_dir" && ac_dir=.
1724 if test -f $ac_dir/$ac_word; then
1725 ac_cv_prog_LEX="flex"
1726 break
1728 done
1729 IFS="$ac_save_ifs"
1730 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1733 LEX="$ac_cv_prog_LEX"
1734 if test -n "$LEX"; then
1735 echo "$ac_t""$LEX" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1740 if test -z "$LEXLIB"
1741 then
1742 case "$LEX" in
1743 flex*) ac_lib=fl ;;
1744 *) ac_lib=l ;;
1745 esac
1746 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1747 echo "configure:1748: checking for yywrap in -l$ac_lib" >&5
1748 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_save_LIBS="$LIBS"
1753 LIBS="-l$ac_lib $LIBS"
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 /* Override any gcc2 internal prototype to avoid an error. */
1758 /* We use char because int might match the return type of a gcc2
1759 builtin and then its argument prototype would still apply. */
1760 char yywrap();
1762 int main() {
1763 yywrap()
1764 ; return 0; }
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1767 rm -rf conftest*
1768 eval "ac_cv_lib_$ac_lib_var=yes"
1769 else
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=no"
1775 rm -f conftest*
1776 LIBS="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 LEXLIB="-l$ac_lib"
1782 else
1783 echo "$ac_t""no" 1>&6
1788 # Extract the first word of "ranlib", so it can be a program name with args.
1789 set dummy ranlib; ac_word=$2
1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_word" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 if test -n "$RANLIB"; then
1796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1797 else
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1799 for ac_dir in $PATH; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f $ac_dir/$ac_word; then
1802 ac_cv_prog_RANLIB="ranlib"
1803 break
1805 done
1806 IFS="$ac_save_ifs"
1807 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1810 RANLIB="$ac_cv_prog_RANLIB"
1811 if test -n "$RANLIB"; then
1812 echo "$ac_t""$RANLIB" 1>&6
1813 else
1814 echo "$ac_t""no" 1>&6
1817 # Find a good install program. We prefer a C program (faster),
1818 # so one script is as good as another. But avoid the broken or
1819 # incompatible versions:
1820 # SysV /etc/install, /usr/sbin/install
1821 # SunOS /usr/etc/install
1822 # IRIX /sbin/install
1823 # AIX /bin/install
1824 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1825 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1826 # ./install, which can be erroneously created by make from ./install.sh.
1827 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1828 echo "configure:1829: checking for a BSD compatible install" >&5
1829 if test -z "$INSTALL"; then
1830 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832 else
1833 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1834 for ac_dir in $PATH; do
1835 # Account for people who put trailing slashes in PATH elements.
1836 case "$ac_dir/" in
1837 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1839 # OSF1 and SCO ODT 3.0 have their own names for install.
1840 for ac_prog in ginstall installbsd scoinst install; do
1841 if test -f $ac_dir/$ac_prog; then
1842 if test $ac_prog = install &&
1843 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1844 # AIX install. It has an incompatible calling convention.
1845 # OSF/1 installbsd also uses dspmsg, but is usable.
1847 else
1848 ac_cv_path_install="$ac_dir/$ac_prog -c"
1849 break 2
1852 done
1854 esac
1855 done
1856 IFS="$ac_save_IFS"
1859 if test "${ac_cv_path_install+set}" = set; then
1860 INSTALL="$ac_cv_path_install"
1861 else
1862 # As a last resort, use the slow shell script. We don't cache a
1863 # path for INSTALL within a source directory, because that will
1864 # break other packages using the cache if that directory is
1865 # removed, or if the path is relative.
1866 INSTALL="$ac_install_sh"
1869 echo "$ac_t""$INSTALL" 1>&6
1871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1872 # It thinks the first close brace ends the variable substitution.
1873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1877 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether ln -s works" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 rm -f conftestdata
1883 if ln -s X conftestdata 2>/dev/null
1884 then
1885 rm -f conftestdata
1886 ac_cv_prog_LN_S="ln -s"
1887 else
1888 ac_cv_prog_LN_S=ln
1891 LN_S="$ac_cv_prog_LN_S"
1892 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1898 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1899 echo "configure:1900: checking for i386_set_ldt in -li386" >&5
1900 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 ac_save_LIBS="$LIBS"
1905 LIBS="-li386 $LIBS"
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 /* Override any gcc2 internal prototype to avoid an error. */
1910 /* We use char because int might match the return type of a gcc2
1911 builtin and then its argument prototype would still apply. */
1912 char i386_set_ldt();
1914 int main() {
1915 i386_set_ldt()
1916 ; return 0; }
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1919 rm -rf conftest*
1920 eval "ac_cv_lib_$ac_lib_var=yes"
1921 else
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1924 rm -rf conftest*
1925 eval "ac_cv_lib_$ac_lib_var=no"
1927 rm -f conftest*
1928 LIBS="$ac_save_LIBS"
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 LDLIBS="$LDLIBS -li386"
1934 else
1935 echo "$ac_t""no" 1>&6
1939 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
1942 if test "x${GCC}" = "xyes"
1943 then
1944 CFLAGS="$CFLAGS -Wall"
1945 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1946 echo "configure:1947: checking "for gcc strength-reduce bug"" >&5
1947 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 if test "$cross_compiling" = yes; then
1951 ac_cv_c_gcc_strength_bug="yes"
1952 else
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1957 int main(void) {
1958 static int Array[3];
1959 unsigned int B = 3;
1960 int i;
1961 for(i=0; i<B; i++) Array[i] = i - 3;
1962 exit( Array[1] != -2 );
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1966 then
1967 ac_cv_c_gcc_strength_bug="no"
1968 else
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 rm -fr conftest*
1972 ac_cv_c_gcc_strength_bug="yes"
1974 rm -fr conftest*
1979 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1980 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1981 then
1982 CFLAGS="$CFLAGS -fno-strength-reduce"
1987 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
1988 echo "configure:1989: checking "whether external symbols need an underscore prefix"" >&5
1989 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991 else
1992 saved_libs=$LIBS
1993 LIBS="conftest_asm.s $LIBS"
1994 cat > conftest_asm.s <<EOF
1995 .globl _ac_test
1996 _ac_test:
1997 .long 0
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 extern int ac_test;
2003 int main() {
2004 if (ac_test) return 1
2005 ; return 0; }
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2008 rm -rf conftest*
2009 ac_cv_c_extern_prefix="yes"
2010 else
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 ac_cv_c_extern_prefix="no"
2016 rm -f conftest*
2017 LIBS=$saved_libs
2020 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2021 if test "$ac_cv_c_extern_prefix" = "yes"
2022 then
2023 cat >> confdefs.h <<\EOF
2024 #define NEED_UNDERSCORE_PREFIX 1
2030 DLLFLAGS=""
2031 if test "$LIB_TARGET" = "libwine.so.1.0"
2032 then
2033 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2034 echo "configure:2035: checking "whether we can build a dll"" >&5
2035 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038 saved_cflags=$CFLAGS
2039 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2044 int main() {
2045 return 1
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 ac_cv_c_dll="yes"
2051 else
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 ac_cv_c_dll="no"
2057 rm -f conftest*
2058 CFLAGS=$saved_cflags
2062 echo "$ac_t""$ac_cv_c_dll" 1>&6
2063 if test "$ac_cv_c_dll" = "yes"
2064 then
2065 DLLFLAGS="-fPIC"
2066 else
2067 LIB_TARGET="libwine.a"
2073 for ac_func in memmove strerror tcgetattr usleep wait4 waitpid
2075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2076 echo "configure:2077: checking for $ac_func" >&5
2077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2079 else
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 /* System header to define __stub macros and hopefully few prototypes,
2084 which can conflict with char $ac_func(); below. */
2085 #include <assert.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 $ac_func();
2091 int main() {
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2097 choke me
2098 #else
2099 $ac_func();
2100 #endif
2102 ; return 0; }
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2105 rm -rf conftest*
2106 eval "ac_cv_func_$ac_func=yes"
2107 else
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 rm -rf conftest*
2111 eval "ac_cv_func_$ac_func=no"
2113 rm -f conftest*
2116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_func 1
2123 else
2124 echo "$ac_t""no" 1>&6
2126 done
2128 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2129 echo "configure:2130: checking whether stat file-mode macros are broken" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 #include <sys/types.h>
2137 #include <sys/stat.h>
2139 #if defined(S_ISBLK) && defined(S_IFDIR)
2140 # if S_ISBLK (S_IFDIR)
2141 You lose.
2142 # endif
2143 #endif
2145 #if defined(S_ISBLK) && defined(S_IFCHR)
2146 # if S_ISBLK (S_IFCHR)
2147 You lose.
2148 # endif
2149 #endif
2151 #if defined(S_ISLNK) && defined(S_IFREG)
2152 # if S_ISLNK (S_IFREG)
2153 You lose.
2154 # endif
2155 #endif
2157 #if defined(S_ISSOCK) && defined(S_IFREG)
2158 # if S_ISSOCK (S_IFREG)
2159 You lose.
2160 # endif
2161 #endif
2164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2165 egrep "You lose" >/dev/null 2>&1; then
2166 rm -rf conftest*
2167 ac_cv_header_stat_broken=yes
2168 else
2169 rm -rf conftest*
2170 ac_cv_header_stat_broken=no
2172 rm -f conftest*
2176 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2177 if test $ac_cv_header_stat_broken = yes; then
2178 cat >> confdefs.h <<\EOF
2179 #define STAT_MACROS_BROKEN 1
2184 echo $ac_n "checking for working const""... $ac_c" 1>&6
2185 echo "configure:2186: checking for working const" >&5
2186 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2193 int main() {
2195 /* Ultrix mips cc rejects this. */
2196 typedef int charset[2]; const charset x;
2197 /* SunOS 4.1.1 cc rejects this. */
2198 char const *const *ccp;
2199 char **p;
2200 /* NEC SVR4.0.2 mips cc rejects this. */
2201 struct point {int x, y;};
2202 static struct point const zero = {0,0};
2203 /* AIX XL C 1.02.0.0 rejects this.
2204 It does not let you subtract one const X* pointer from another in an arm
2205 of an if-expression whose if-part is not a constant expression */
2206 const char *g = "string";
2207 ccp = &g + (g ? g-g : 0);
2208 /* HPUX 7.0 cc rejects these. */
2209 ++ccp;
2210 p = (char**) ccp;
2211 ccp = (char const *const *) p;
2212 { /* SCO 3.2v4 cc rejects this. */
2213 char *t;
2214 char const *s = 0 ? (char *) 0 : (char const *) 0;
2216 *t++ = 0;
2218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2219 int x[] = {25, 17};
2220 const int *foo = &x[0];
2221 ++foo;
2223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2224 typedef const int *iptr;
2225 iptr p = 0;
2226 ++p;
2228 { /* AIX XL C 1.02.0.0 rejects this saying
2229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2230 struct s { int j; const int *ap[3]; };
2231 struct s *b; b->j = 5;
2233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2234 const int foo = 10;
2237 ; return 0; }
2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 rm -rf conftest*
2241 ac_cv_c_const=yes
2242 else
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 rm -rf conftest*
2246 ac_cv_c_const=no
2248 rm -f conftest*
2251 echo "$ac_t""$ac_cv_c_const" 1>&6
2252 if test $ac_cv_c_const = no; then
2253 cat >> confdefs.h <<\EOF
2254 #define const
2259 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2260 echo "configure:2261: checking for ANSI C header files" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2267 #include <stdlib.h>
2268 #include <stdarg.h>
2269 #include <string.h>
2270 #include <float.h>
2272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err=`grep -v '^ *+' conftest.out`
2275 if test -z "$ac_err"; then
2276 rm -rf conftest*
2277 ac_cv_header_stdc=yes
2278 else
2279 echo "$ac_err" >&5
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 rm -rf conftest*
2283 ac_cv_header_stdc=no
2285 rm -f conftest*
2287 if test $ac_cv_header_stdc = yes; then
2288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <string.h>
2294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2295 egrep "memchr" >/dev/null 2>&1; then
2297 else
2298 rm -rf conftest*
2299 ac_cv_header_stdc=no
2301 rm -f conftest*
2305 if test $ac_cv_header_stdc = yes; then
2306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <stdlib.h>
2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313 egrep "free" >/dev/null 2>&1; then
2315 else
2316 rm -rf conftest*
2317 ac_cv_header_stdc=no
2319 rm -f conftest*
2323 if test $ac_cv_header_stdc = yes; then
2324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2325 if test "$cross_compiling" = yes; then
2327 else
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #include <ctype.h>
2332 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2333 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2335 int main () { int i; for (i = 0; i < 256; i++)
2336 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2337 exit (0); }
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2341 then
2343 else
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 rm -fr conftest*
2347 ac_cv_header_stdc=no
2349 rm -fr conftest*
2355 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2356 if test $ac_cv_header_stdc = yes; then
2357 cat >> confdefs.h <<\EOF
2358 #define STDC_HEADERS 1
2363 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2364 echo "configure:2365: checking for size_t" >&5
2365 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <sys/types.h>
2372 #if STDC_HEADERS
2373 #include <stdlib.h>
2374 #include <stddef.h>
2375 #endif
2377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2378 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2379 rm -rf conftest*
2380 ac_cv_type_size_t=yes
2381 else
2382 rm -rf conftest*
2383 ac_cv_type_size_t=no
2385 rm -f conftest*
2388 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2389 if test $ac_cv_type_size_t = no; then
2390 cat >> confdefs.h <<\EOF
2391 #define size_t unsigned
2398 MAKE_RULES=Make.rules
2401 trap '' 1 2 15
2402 cat > confcache <<\EOF
2403 # This file is a shell script that caches the results of configure
2404 # tests run on this system so they can be shared between configure
2405 # scripts and configure runs. It is not useful on other systems.
2406 # If it contains results you don't want to keep, you may remove or edit it.
2408 # By default, configure uses ./config.cache as the cache file,
2409 # creating it if it does not exist already. You can give configure
2410 # the --cache-file=FILE option to use a different cache file; that is
2411 # what configure does when it calls configure scripts in
2412 # subdirectories, so they share the cache.
2413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2414 # config.status only pays attention to the cache file if you give it the
2415 # --recheck option to rerun configure.
2418 # The following way of writing the cache mishandles newlines in values,
2419 # but we know of no workaround that is simple, portable, and efficient.
2420 # So, don't put newlines in cache variables' values.
2421 # Ultrix sh set writes to stderr and can't be redirected directly,
2422 # and sets the high bit in the cache file unless we assign to the vars.
2423 (set) 2>&1 |
2424 case `(ac_space=' '; set) 2>&1` in
2425 *ac_space=\ *)
2426 # `set' does not quote correctly, so add quotes (double-quote substitution
2427 # turns \\\\ into \\, and sed turns \\ into \).
2428 sed -n \
2429 -e "s/'/'\\\\''/g" \
2430 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2433 # `set' quotes correctly as required by POSIX, so do not add quotes.
2434 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2436 esac >> confcache
2437 if cmp -s $cache_file confcache; then
2439 else
2440 if test -w $cache_file; then
2441 echo "updating cache $cache_file"
2442 cat confcache > $cache_file
2443 else
2444 echo "not updating unwritable cache $cache_file"
2447 rm -f confcache
2449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2452 # Let make expand exec_prefix.
2453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2455 # Any assignment to VPATH causes Sun make to only execute
2456 # the first set of double-colon rules, so remove it if not needed.
2457 # If there is a colon in the path, we need to keep it.
2458 if test "x$srcdir" = x.; then
2459 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2464 DEFS=-DHAVE_CONFIG_H
2466 # Without the "./", some shells look in PATH for config.status.
2467 : ${CONFIG_STATUS=./config.status}
2469 echo creating $CONFIG_STATUS
2470 rm -f $CONFIG_STATUS
2471 cat > $CONFIG_STATUS <<EOF
2472 #! /bin/sh
2473 # Generated automatically by configure.
2474 # Run this file to recreate the current configuration.
2475 # This directory was configured as follows,
2476 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2478 # $0 $ac_configure_args
2480 # Compiler output produced by configure, useful for debugging
2481 # configure, is in ./config.log if it exists.
2483 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2484 for ac_option
2486 case "\$ac_option" in
2487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2488 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2489 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2490 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2491 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2492 exit 0 ;;
2493 -help | --help | --hel | --he | --h)
2494 echo "\$ac_cs_usage"; exit 0 ;;
2495 *) echo "\$ac_cs_usage"; exit 1 ;;
2496 esac
2497 done
2499 ac_given_srcdir=$srcdir
2500 ac_given_INSTALL="$INSTALL"
2502 trap 'rm -fr `echo "
2503 Make.rules
2504 Makefile
2505 controls/Makefile
2506 debugger/Makefile
2507 documentation/Makefile
2508 files/Makefile
2509 graphics/Makefile
2510 graphics/metafiledrv/Makefile
2511 graphics/win16drv/Makefile
2512 graphics/x11drv/Makefile
2513 if1632/Makefile
2514 ipc/Makefile
2515 library/Makefile
2516 libtest/Makefile
2517 loader/Makefile
2518 memory/Makefile
2519 misc/Makefile
2520 miscemu/Makefile
2521 msdos/Makefile
2522 multimedia/Makefile
2523 objects/Makefile
2524 ole/Makefile
2525 programs/Makefile
2526 programs/notepad/Makefile
2527 programs/progman/Makefile
2528 programs/winhelp/Makefile
2529 programs/winver/Makefile
2530 rc/Makefile
2531 relay32/Makefile
2532 resources/Makefile
2533 scheduler/Makefile
2534 tools/Makefile
2535 win32/Makefile
2536 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2538 cat >> $CONFIG_STATUS <<EOF
2540 # Protect against being on the right side of a sed subst in config.status.
2541 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2542 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2543 $ac_vpsub
2544 $extrasub
2545 s%@CFLAGS@%$CFLAGS%g
2546 s%@CPPFLAGS@%$CPPFLAGS%g
2547 s%@CXXFLAGS@%$CXXFLAGS%g
2548 s%@DEFS@%$DEFS%g
2549 s%@LDFLAGS@%$LDFLAGS%g
2550 s%@LIBS@%$LIBS%g
2551 s%@exec_prefix@%$exec_prefix%g
2552 s%@prefix@%$prefix%g
2553 s%@program_transform_name@%$program_transform_name%g
2554 s%@bindir@%$bindir%g
2555 s%@sbindir@%$sbindir%g
2556 s%@libexecdir@%$libexecdir%g
2557 s%@datadir@%$datadir%g
2558 s%@sysconfdir@%$sysconfdir%g
2559 s%@sharedstatedir@%$sharedstatedir%g
2560 s%@localstatedir@%$localstatedir%g
2561 s%@libdir@%$libdir%g
2562 s%@includedir@%$includedir%g
2563 s%@oldincludedir@%$oldincludedir%g
2564 s%@infodir@%$infodir%g
2565 s%@mandir@%$mandir%g
2566 s%@LDLIBS@%$LDLIBS%g
2567 s%@PROGEXT@%$PROGEXT%g
2568 s%@MAIN_TARGET@%$MAIN_TARGET%g
2569 s%@LIB_TARGET@%$LIB_TARGET%g
2570 s%@OPTIONS@%$OPTIONS%g
2571 s%@SET_MAKE@%$SET_MAKE%g
2572 s%@CC@%$CC%g
2573 s%@CPP@%$CPP%g
2574 s%@X_CFLAGS@%$X_CFLAGS%g
2575 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2576 s%@X_LIBS@%$X_LIBS%g
2577 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2578 s%@YACC@%$YACC%g
2579 s%@LEX@%$LEX%g
2580 s%@LEXLIB@%$LEXLIB%g
2581 s%@RANLIB@%$RANLIB%g
2582 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2583 s%@INSTALL_DATA@%$INSTALL_DATA%g
2584 s%@LN_S@%$LN_S%g
2585 s%@DLLFLAGS@%$DLLFLAGS%g
2586 /@MAKE_RULES@/r $MAKE_RULES
2587 s%@MAKE_RULES@%%g
2589 CEOF
2592 cat >> $CONFIG_STATUS <<\EOF
2594 # Split the substitutions into bite-sized pieces for seds with
2595 # small command number limits, like on Digital OSF/1 and HP-UX.
2596 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2597 ac_file=1 # Number of current file.
2598 ac_beg=1 # First line for current file.
2599 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2600 ac_more_lines=:
2601 ac_sed_cmds=""
2602 while $ac_more_lines; do
2603 if test $ac_beg -gt 1; then
2604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2605 else
2606 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2608 if test ! -s conftest.s$ac_file; then
2609 ac_more_lines=false
2610 rm -f conftest.s$ac_file
2611 else
2612 if test -z "$ac_sed_cmds"; then
2613 ac_sed_cmds="sed -f conftest.s$ac_file"
2614 else
2615 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2617 ac_file=`expr $ac_file + 1`
2618 ac_beg=$ac_end
2619 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2621 done
2622 if test -z "$ac_sed_cmds"; then
2623 ac_sed_cmds=cat
2627 cat >> $CONFIG_STATUS <<EOF
2629 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2630 Makefile
2631 controls/Makefile
2632 debugger/Makefile
2633 documentation/Makefile
2634 files/Makefile
2635 graphics/Makefile
2636 graphics/metafiledrv/Makefile
2637 graphics/win16drv/Makefile
2638 graphics/x11drv/Makefile
2639 if1632/Makefile
2640 ipc/Makefile
2641 library/Makefile
2642 libtest/Makefile
2643 loader/Makefile
2644 memory/Makefile
2645 misc/Makefile
2646 miscemu/Makefile
2647 msdos/Makefile
2648 multimedia/Makefile
2649 objects/Makefile
2650 ole/Makefile
2651 programs/Makefile
2652 programs/notepad/Makefile
2653 programs/progman/Makefile
2654 programs/winhelp/Makefile
2655 programs/winver/Makefile
2656 rc/Makefile
2657 relay32/Makefile
2658 resources/Makefile
2659 scheduler/Makefile
2660 tools/Makefile
2661 win32/Makefile
2662 windows/Makefile "}
2664 cat >> $CONFIG_STATUS <<\EOF
2665 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2667 case "$ac_file" in
2668 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2669 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2670 *) ac_file_in="${ac_file}.in" ;;
2671 esac
2673 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2675 # Remove last slash and all that follows it. Not all systems have dirname.
2676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2678 # The file is in a subdirectory.
2679 test ! -d "$ac_dir" && mkdir "$ac_dir"
2680 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2681 # A "../" for each directory in $ac_dir_suffix.
2682 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2683 else
2684 ac_dir_suffix= ac_dots=
2687 case "$ac_given_srcdir" in
2688 .) srcdir=.
2689 if test -z "$ac_dots"; then top_srcdir=.
2690 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2691 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2692 *) # Relative path.
2693 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2694 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2695 esac
2697 case "$ac_given_INSTALL" in
2698 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2699 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2700 esac
2702 echo creating "$ac_file"
2703 rm -f "$ac_file"
2704 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2705 case "$ac_file" in
2706 *Makefile*) ac_comsub="1i\\
2707 # $configure_input" ;;
2708 *) ac_comsub= ;;
2709 esac
2711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2712 sed -e "$ac_comsub
2713 s%@configure_input@%$configure_input%g
2714 s%@srcdir@%$srcdir%g
2715 s%@top_srcdir@%$top_srcdir%g
2716 s%@INSTALL@%$INSTALL%g
2717 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2718 fi; done
2719 rm -f conftest.s*
2721 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2722 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2724 # ac_d sets the value in "#define NAME VALUE" lines.
2725 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2726 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2727 ac_dC='\3'
2728 ac_dD='%g'
2729 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2730 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2731 ac_uB='\([ ]\)%\1#\2define\3'
2732 ac_uC=' '
2733 ac_uD='\4%g'
2734 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2735 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2736 ac_eB='$%\1#\2define\3'
2737 ac_eC=' '
2738 ac_eD='%g'
2740 if test "${CONFIG_HEADERS+set}" != set; then
2742 cat >> $CONFIG_STATUS <<EOF
2743 CONFIG_HEADERS="include/config.h"
2745 cat >> $CONFIG_STATUS <<\EOF
2747 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2749 case "$ac_file" in
2750 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2751 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2752 *) ac_file_in="${ac_file}.in" ;;
2753 esac
2755 echo creating $ac_file
2757 rm -f conftest.frag conftest.in conftest.out
2758 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2759 cat $ac_file_inputs > conftest.in
2763 # Transform confdefs.h into a sed script conftest.vals that substitutes
2764 # the proper values into config.h.in to produce config.h. And first:
2765 # Protect against being on the right side of a sed subst in config.status.
2766 # Protect against being in an unquoted here document in config.status.
2767 rm -f conftest.vals
2768 cat > conftest.hdr <<\EOF
2769 s/[\\&%]/\\&/g
2770 s%[\\$`]%\\&%g
2771 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2772 s%ac_d%ac_u%gp
2773 s%ac_u%ac_e%gp
2775 sed -n -f conftest.hdr confdefs.h > conftest.vals
2776 rm -f conftest.hdr
2778 # This sed command replaces #undef with comments. This is necessary, for
2779 # example, in the case of _POSIX_SOURCE, which is predefined and required
2780 # on some systems where configure will not decide to define it.
2781 cat >> conftest.vals <<\EOF
2782 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2785 # Break up conftest.vals because some shells have a limit on
2786 # the size of here documents, and old seds have small limits too.
2788 rm -f conftest.tail
2789 while :
2791 ac_lines=`grep -c . conftest.vals`
2792 # grep -c gives empty output for an empty file on some AIX systems.
2793 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2794 # Write a limited-size here document to conftest.frag.
2795 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2796 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2797 echo 'CEOF
2798 sed -f conftest.frag conftest.in > conftest.out
2799 rm -f conftest.in
2800 mv conftest.out conftest.in
2801 ' >> $CONFIG_STATUS
2802 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2803 rm -f conftest.vals
2804 mv conftest.tail conftest.vals
2805 done
2806 rm -f conftest.vals
2808 cat >> $CONFIG_STATUS <<\EOF
2809 rm -f conftest.frag conftest.h
2810 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2811 cat conftest.in >> conftest.h
2812 rm -f conftest.in
2813 if cmp -s $ac_file conftest.h 2>/dev/null; then
2814 echo "$ac_file is unchanged"
2815 rm -f conftest.h
2816 else
2817 # Remove last slash and all that follows it. Not all systems have dirname.
2818 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2819 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2820 # The file is in a subdirectory.
2821 test ! -d "$ac_dir" && mkdir "$ac_dir"
2823 rm -f $ac_file
2824 mv conftest.h $ac_file
2826 fi; done
2829 cat >> $CONFIG_STATUS <<EOF
2832 cat >> $CONFIG_STATUS <<\EOF
2834 exit 0
2836 chmod +x $CONFIG_STATUS
2837 rm -fr confdefs* $ac_clean_files
2838 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2841 echo
2842 echo "Configure finished. Do 'make depend; make' to compile Wine."
2843 echo