Release 971012
[wine/multimedia.git] / configure
blobd56268675acbeb5e83149d504dd40de655d9840e
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 --with-library build Wine as a library instead of an emulator"
17 ac_help="$ac_help
18 --with-dll build Wine as a DLL instead of an emulator"
19 ac_help="$ac_help
20 --with-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 # Check whether --with-library or --without-library was given.
557 if test "${with_library+set}" = set; then
558 withval="$with_library"
559 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.a"
560 else
561 OPTIONS="" MAIN_TARGET="wine"
565 # Check whether --with-dll or --without-dll was given.
566 if test "${with_dll+set}" = set; then
567 withval="$with_dll"
568 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.so.1.0"
572 # Check whether --with-ipc or --without-ipc was given.
573 if test "${with_ipc+set}" = set; then
574 withval="$with_ipc"
575 OPTIONS="$OPTIONS -DCONFIG_IPC"
583 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
584 echo "configure:585: checking whether ${MAKE-make} sets \${MAKE}" >&5
585 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
586 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
588 else
589 cat > conftestmake <<\EOF
590 all:
591 @echo 'ac_maketemp="${MAKE}"'
593 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
594 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
595 if test -n "$ac_maketemp"; then
596 eval ac_cv_prog_make_${ac_make}_set=yes
597 else
598 eval ac_cv_prog_make_${ac_make}_set=no
600 rm -f conftestmake
602 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
603 echo "$ac_t""yes" 1>&6
604 SET_MAKE=
605 else
606 echo "$ac_t""no" 1>&6
607 SET_MAKE="MAKE=${MAKE-make}"
610 # Extract the first word of "gcc", so it can be a program name with args.
611 set dummy gcc; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
616 else
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
619 else
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
621 for ac_dir in $PATH; do
622 test -z "$ac_dir" && ac_dir=.
623 if test -f $ac_dir/$ac_word; then
624 ac_cv_prog_CC="gcc"
625 break
627 done
628 IFS="$ac_save_ifs"
631 CC="$ac_cv_prog_CC"
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
634 else
635 echo "$ac_t""no" 1>&6
638 if test -z "$CC"; then
639 # Extract the first word of "cc", so it can be a program name with args.
640 set dummy cc; ac_word=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642 echo "configure:643: checking for $ac_word" >&5
643 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644 echo $ac_n "(cached) $ac_c" 1>&6
645 else
646 if test -n "$CC"; then
647 ac_cv_prog_CC="$CC" # Let the user override the test.
648 else
649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
650 ac_prog_rejected=no
651 for ac_dir in $PATH; do
652 test -z "$ac_dir" && ac_dir=.
653 if test -f $ac_dir/$ac_word; then
654 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
655 ac_prog_rejected=yes
656 continue
658 ac_cv_prog_CC="cc"
659 break
661 done
662 IFS="$ac_save_ifs"
663 if test $ac_prog_rejected = yes; then
664 # We found a bogon in the path, so make sure we never use it.
665 set dummy $ac_cv_prog_CC
666 shift
667 if test $# -gt 0; then
668 # We chose a different compiler from the bogus one.
669 # However, it has the same basename, so the bogon will be chosen
670 # first if we set CC to just the basename; use the full file name.
671 shift
672 set dummy "$ac_dir/$ac_word" "$@"
673 shift
674 ac_cv_prog_CC="$@"
679 CC="$ac_cv_prog_CC"
680 if test -n "$CC"; then
681 echo "$ac_t""$CC" 1>&6
682 else
683 echo "$ac_t""no" 1>&6
686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
690 echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
692 ac_ext=c
693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
694 ac_cpp='$CPP $CPPFLAGS'
695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
696 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
697 cross_compiling=$ac_cv_prog_cc_cross
699 cat > conftest.$ac_ext <<EOF
700 #line 701 "configure"
701 #include "confdefs.h"
702 main(){return(0);}
704 if { (eval echo configure:705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
705 ac_cv_prog_cc_works=yes
706 # If we can't run a trivial program, we are probably using a cross compiler.
707 if (./conftest; exit) 2>/dev/null; then
708 ac_cv_prog_cc_cross=no
709 else
710 ac_cv_prog_cc_cross=yes
712 else
713 echo "configure: failed program was:" >&5
714 cat conftest.$ac_ext >&5
715 ac_cv_prog_cc_works=no
717 rm -fr conftest*
719 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
720 if test $ac_cv_prog_cc_works = no; then
721 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
724 echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
725 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
726 cross_compiling=$ac_cv_prog_cc_cross
728 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
729 echo "configure:730: checking whether we are using GNU C" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 cat > conftest.c <<EOF
734 #ifdef __GNUC__
735 yes;
736 #endif
738 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
739 ac_cv_prog_gcc=yes
740 else
741 ac_cv_prog_gcc=no
745 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
747 if test $ac_cv_prog_gcc = yes; then
748 GCC=yes
749 ac_test_CFLAGS="${CFLAGS+set}"
750 ac_save_CFLAGS="$CFLAGS"
751 CFLAGS=
752 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
753 echo "configure:754: checking whether ${CC-cc} accepts -g" >&5
754 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
756 else
757 echo 'void f(){}' > conftest.c
758 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
759 ac_cv_prog_cc_g=yes
760 else
761 ac_cv_prog_cc_g=no
763 rm -f conftest*
767 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
768 if test "$ac_test_CFLAGS" = set; then
769 CFLAGS="$ac_save_CFLAGS"
770 elif test $ac_cv_prog_cc_g = yes; then
771 CFLAGS="-g -O2"
772 else
773 CFLAGS="-O2"
775 else
776 GCC=
777 test "${CFLAGS+set}" = set || CFLAGS="-g"
780 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
781 echo "configure:782: checking how to run the C preprocessor" >&5
782 # On Suns, sometimes $CPP names a directory.
783 if test -n "$CPP" && test -d "$CPP"; then
784 CPP=
786 if test -z "$CPP"; then
787 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
789 else
790 # This must be in double quotes, not single quotes, because CPP may get
791 # substituted into the Makefile and "${CC-cc}" will confuse make.
792 CPP="${CC-cc} -E"
793 # On the NeXT, cc -E runs the code through the compiler's parser,
794 # not just through cpp.
795 cat > conftest.$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
798 #include <assert.h>
799 Syntax Error
801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
802 { (eval echo configure:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
803 ac_err=`grep -v '^ *+' conftest.out`
804 if test -z "$ac_err"; then
806 else
807 echo "$ac_err" >&5
808 echo "configure: failed program was:" >&5
809 cat conftest.$ac_ext >&5
810 rm -rf conftest*
811 CPP="${CC-cc} -E -traditional-cpp"
812 cat > conftest.$ac_ext <<EOF
813 #line 814 "configure"
814 #include "confdefs.h"
815 #include <assert.h>
816 Syntax Error
818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
819 { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
820 ac_err=`grep -v '^ *+' conftest.out`
821 if test -z "$ac_err"; then
823 else
824 echo "$ac_err" >&5
825 echo "configure: failed program was:" >&5
826 cat conftest.$ac_ext >&5
827 rm -rf conftest*
828 CPP=/lib/cpp
830 rm -f conftest*
832 rm -f conftest*
833 ac_cv_prog_CPP="$CPP"
835 CPP="$ac_cv_prog_CPP"
836 else
837 ac_cv_prog_CPP="$CPP"
839 echo "$ac_t""$CPP" 1>&6
841 # If we find X, set shell vars x_includes and x_libraries to the
842 # paths, otherwise set no_x=yes.
843 # Uses ac_ vars as temps to allow command line to override cache and checks.
844 # --without-x overrides everything else, but does not touch the cache.
845 echo $ac_n "checking for X""... $ac_c" 1>&6
846 echo "configure:847: checking for X" >&5
848 # Check whether --with-x or --without-x was given.
849 if test "${with_x+set}" = set; then
850 withval="$with_x"
854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
855 if test "x$with_x" = xno; then
856 # The user explicitly disabled X.
857 have_x=disabled
858 else
859 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
860 # Both variables are already set.
861 have_x=yes
862 else
863 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 # One or both of the vars are not set, and there is no cached value.
867 ac_x_includes=NO ac_x_libraries=NO
868 rm -fr conftestdir
869 if mkdir conftestdir; then
870 cd conftestdir
871 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
872 cat > Imakefile <<'EOF'
873 acfindx:
874 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
876 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
877 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
878 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
879 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
880 for ac_extension in a so sl; do
881 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
882 test -f $ac_im_libdir/libX11.$ac_extension; then
883 ac_im_usrlibdir=$ac_im_libdir; break
885 done
886 # Screen out bogus values from the imake configuration. They are
887 # bogus both because they are the default anyway, and because
888 # using them would break gcc on systems where it needs fixed includes.
889 case "$ac_im_incroot" in
890 /usr/include) ;;
891 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
892 esac
893 case "$ac_im_usrlibdir" in
894 /usr/lib | /lib) ;;
895 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
896 esac
898 cd ..
899 rm -fr conftestdir
902 if test "$ac_x_includes" = NO; then
903 # Guess where to find include files, by looking for this one X11 .h file.
904 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
906 # First, try using that file with no special directory specified.
907 cat > conftest.$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
910 #include <$x_direct_test_include>
912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
913 { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
914 ac_err=`grep -v '^ *+' conftest.out`
915 if test -z "$ac_err"; then
916 rm -rf conftest*
917 # We can compile using X headers with no special include directory.
918 ac_x_includes=
919 else
920 echo "$ac_err" >&5
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 rm -rf conftest*
924 # Look for the header file in a standard set of common directories.
925 # Check X11 before X11Rn because it is often a symlink to the current release.
926 for ac_dir in \
927 /usr/X11/include \
928 /usr/X11R6/include \
929 /usr/X11R5/include \
930 /usr/X11R4/include \
932 /usr/include/X11 \
933 /usr/include/X11R6 \
934 /usr/include/X11R5 \
935 /usr/include/X11R4 \
937 /usr/local/X11/include \
938 /usr/local/X11R6/include \
939 /usr/local/X11R5/include \
940 /usr/local/X11R4/include \
942 /usr/local/include/X11 \
943 /usr/local/include/X11R6 \
944 /usr/local/include/X11R5 \
945 /usr/local/include/X11R4 \
947 /usr/X386/include \
948 /usr/x386/include \
949 /usr/XFree86/include/X11 \
951 /usr/include \
952 /usr/local/include \
953 /usr/unsupported/include \
954 /usr/athena/include \
955 /usr/local/x11r5/include \
956 /usr/lpp/Xamples/include \
958 /usr/openwin/include \
959 /usr/openwin/share/include \
962 if test -r "$ac_dir/$x_direct_test_include"; then
963 ac_x_includes=$ac_dir
964 break
966 done
968 rm -f conftest*
969 fi # $ac_x_includes = NO
971 if test "$ac_x_libraries" = NO; then
972 # Check for the libraries.
974 test -z "$x_direct_test_library" && x_direct_test_library=Xt
975 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
977 # See if we find them without any special options.
978 # Don't add to $LIBS permanently.
979 ac_save_LIBS="$LIBS"
980 LIBS="-l$x_direct_test_library $LIBS"
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
985 int main() {
986 ${x_direct_test_function}()
987 ; return 0; }
989 if { (eval echo configure:990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
990 rm -rf conftest*
991 LIBS="$ac_save_LIBS"
992 # We can link X programs with no special library path.
993 ac_x_libraries=
994 else
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
997 rm -rf conftest*
998 LIBS="$ac_save_LIBS"
999 # First see if replacing the include by lib works.
1000 # Check X11 before X11Rn because it is often a symlink to the current release.
1001 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1002 /usr/X11/lib \
1003 /usr/X11R6/lib \
1004 /usr/X11R5/lib \
1005 /usr/X11R4/lib \
1007 /usr/lib/X11 \
1008 /usr/lib/X11R6 \
1009 /usr/lib/X11R5 \
1010 /usr/lib/X11R4 \
1012 /usr/local/X11/lib \
1013 /usr/local/X11R6/lib \
1014 /usr/local/X11R5/lib \
1015 /usr/local/X11R4/lib \
1017 /usr/local/lib/X11 \
1018 /usr/local/lib/X11R6 \
1019 /usr/local/lib/X11R5 \
1020 /usr/local/lib/X11R4 \
1022 /usr/X386/lib \
1023 /usr/x386/lib \
1024 /usr/XFree86/lib/X11 \
1026 /usr/lib \
1027 /usr/local/lib \
1028 /usr/unsupported/lib \
1029 /usr/athena/lib \
1030 /usr/local/x11r5/lib \
1031 /usr/lpp/Xamples/lib \
1032 /lib/usr/lib/X11 \
1034 /usr/openwin/lib \
1035 /usr/openwin/share/lib \
1038 for ac_extension in a so sl; do
1039 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1040 ac_x_libraries=$ac_dir
1041 break 2
1043 done
1044 done
1046 rm -f conftest*
1047 fi # $ac_x_libraries = NO
1049 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1050 # Didn't find X anywhere. Cache the known absence of X.
1051 ac_cv_have_x="have_x=no"
1052 else
1053 # Record where we found X for the cache.
1054 ac_cv_have_x="have_x=yes \
1055 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1059 eval "$ac_cv_have_x"
1060 fi # $with_x != no
1062 if test "$have_x" != yes; then
1063 echo "$ac_t""$have_x" 1>&6
1064 no_x=yes
1065 else
1066 # If each of the values was on the command line, it overrides each guess.
1067 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1068 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1069 # Update the cache value to reflect the command line values.
1070 ac_cv_have_x="have_x=yes \
1071 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1072 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1075 if test "$no_x" = yes; then
1076 # Not all programs may use this symbol, but it does not hurt to define it.
1077 cat >> confdefs.h <<\EOF
1078 #define X_DISPLAY_MISSING 1
1081 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1082 else
1083 if test -n "$x_includes"; then
1084 X_CFLAGS="$X_CFLAGS -I$x_includes"
1087 # It would also be nice to do this for all -L options, not just this one.
1088 if test -n "$x_libraries"; then
1089 X_LIBS="$X_LIBS -L$x_libraries"
1090 # For Solaris; some versions of Sun CC require a space after -R and
1091 # others require no space. Words are not sufficient . . . .
1092 case "`(uname -sr) 2>/dev/null`" in
1093 "SunOS 5"*)
1094 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether -R must be followed by a space" >&5
1096 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1101 int main() {
1103 ; return 0; }
1105 if { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1106 rm -rf conftest*
1107 ac_R_nospace=yes
1108 else
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1111 rm -rf conftest*
1112 ac_R_nospace=no
1114 rm -f conftest*
1115 if test $ac_R_nospace = yes; then
1116 echo "$ac_t""no" 1>&6
1117 X_LIBS="$X_LIBS -R$x_libraries"
1118 else
1119 LIBS="$ac_xsave_LIBS -R $x_libraries"
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1124 int main() {
1126 ; return 0; }
1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1129 rm -rf conftest*
1130 ac_R_space=yes
1131 else
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1134 rm -rf conftest*
1135 ac_R_space=no
1137 rm -f conftest*
1138 if test $ac_R_space = yes; then
1139 echo "$ac_t""yes" 1>&6
1140 X_LIBS="$X_LIBS -R $x_libraries"
1141 else
1142 echo "$ac_t""neither works" 1>&6
1145 LIBS="$ac_xsave_LIBS"
1146 esac
1149 # Check for system-dependent libraries X programs must link with.
1150 # Do this before checking for the system-independent R6 libraries
1151 # (-lICE), since we may need -lsocket or whatever for X linking.
1153 if test "$ISC" = yes; then
1154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1155 else
1156 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1157 # libraries were built with DECnet support. And karl@cs.umb.edu says
1158 # the Alpha needs dnet_stub (dnet does not exist).
1159 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1160 echo "configure:1161: checking for dnet_ntoa in -ldnet" >&5
1161 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 ac_save_LIBS="$LIBS"
1166 LIBS="-ldnet $LIBS"
1167 cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 /* Override any gcc2 internal prototype to avoid an error. */
1171 /* We use char because int might match the return type of a gcc2
1172 builtin and then its argument prototype would still apply. */
1173 char dnet_ntoa();
1175 int main() {
1176 dnet_ntoa()
1177 ; return 0; }
1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1180 rm -rf conftest*
1181 eval "ac_cv_lib_$ac_lib_var=yes"
1182 else
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1185 rm -rf conftest*
1186 eval "ac_cv_lib_$ac_lib_var=no"
1188 rm -f conftest*
1189 LIBS="$ac_save_LIBS"
1192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1194 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1195 else
1196 echo "$ac_t""no" 1>&6
1199 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1200 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1201 echo "configure:1202: checking for dnet_ntoa in -ldnet_stub" >&5
1202 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 ac_save_LIBS="$LIBS"
1207 LIBS="-ldnet_stub $LIBS"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211 /* Override any gcc2 internal prototype to avoid an error. */
1212 /* We use char because int might match the return type of a gcc2
1213 builtin and then its argument prototype would still apply. */
1214 char dnet_ntoa();
1216 int main() {
1217 dnet_ntoa()
1218 ; return 0; }
1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1221 rm -rf conftest*
1222 eval "ac_cv_lib_$ac_lib_var=yes"
1223 else
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 rm -rf conftest*
1227 eval "ac_cv_lib_$ac_lib_var=no"
1229 rm -f conftest*
1230 LIBS="$ac_save_LIBS"
1233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1234 echo "$ac_t""yes" 1>&6
1235 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1236 else
1237 echo "$ac_t""no" 1>&6
1242 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1243 # to get the SysV transport functions.
1244 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1245 # needs -lnsl.
1246 # The nsl library prevents programs from opening the X display
1247 # on Irix 5.2, according to dickey@clark.net.
1248 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1249 echo "configure:1250: checking for gethostbyname" >&5
1250 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1256 /* System header to define __stub macros and hopefully few prototypes,
1257 which can conflict with char gethostbyname(); below. */
1258 #include <assert.h>
1259 /* Override any gcc2 internal prototype to avoid an error. */
1260 /* We use char because int might match the return type of a gcc2
1261 builtin and then its argument prototype would still apply. */
1262 char gethostbyname();
1264 int main() {
1266 /* The GNU C library defines this for functions which it implements
1267 to always fail with ENOSYS. Some functions are actually named
1268 something starting with __ and the normal name is an alias. */
1269 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1270 choke me
1271 #else
1272 gethostbyname();
1273 #endif
1275 ; return 0; }
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1278 rm -rf conftest*
1279 eval "ac_cv_func_gethostbyname=yes"
1280 else
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1283 rm -rf conftest*
1284 eval "ac_cv_func_gethostbyname=no"
1286 rm -f conftest*
1289 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1290 echo "$ac_t""yes" 1>&6
1292 else
1293 echo "$ac_t""no" 1>&6
1296 if test $ac_cv_func_gethostbyname = no; then
1297 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1298 echo "configure:1299: checking for gethostbyname in -lnsl" >&5
1299 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302 else
1303 ac_save_LIBS="$LIBS"
1304 LIBS="-lnsl $LIBS"
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 /* Override any gcc2 internal prototype to avoid an error. */
1309 /* We use char because int might match the return type of a gcc2
1310 builtin and then its argument prototype would still apply. */
1311 char gethostbyname();
1313 int main() {
1314 gethostbyname()
1315 ; return 0; }
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1318 rm -rf conftest*
1319 eval "ac_cv_lib_$ac_lib_var=yes"
1320 else
1321 echo "configure: failed program was:" >&5
1322 cat conftest.$ac_ext >&5
1323 rm -rf conftest*
1324 eval "ac_cv_lib_$ac_lib_var=no"
1326 rm -f conftest*
1327 LIBS="$ac_save_LIBS"
1330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1333 else
1334 echo "$ac_t""no" 1>&6
1339 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1340 # socket/setsockopt and other routines are undefined under SCO ODT
1341 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1342 # on later versions), says simon@lia.di.epfl.ch: it contains
1343 # gethostby* variants that don't use the nameserver (or something).
1344 # -lsocket must be given before -lnsl if both are needed.
1345 # We assume that if connect needs -lnsl, so does gethostbyname.
1346 echo $ac_n "checking for connect""... $ac_c" 1>&6
1347 echo "configure:1348: checking for connect" >&5
1348 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1350 else
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 /* System header to define __stub macros and hopefully few prototypes,
1355 which can conflict with char connect(); below. */
1356 #include <assert.h>
1357 /* Override any gcc2 internal prototype to avoid an error. */
1358 /* We use char because int might match the return type of a gcc2
1359 builtin and then its argument prototype would still apply. */
1360 char connect();
1362 int main() {
1364 /* The GNU C library defines this for functions which it implements
1365 to always fail with ENOSYS. Some functions are actually named
1366 something starting with __ and the normal name is an alias. */
1367 #if defined (__stub_connect) || defined (__stub___connect)
1368 choke me
1369 #else
1370 connect();
1371 #endif
1373 ; return 0; }
1375 if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1376 rm -rf conftest*
1377 eval "ac_cv_func_connect=yes"
1378 else
1379 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1381 rm -rf conftest*
1382 eval "ac_cv_func_connect=no"
1384 rm -f conftest*
1387 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1388 echo "$ac_t""yes" 1>&6
1390 else
1391 echo "$ac_t""no" 1>&6
1394 if test $ac_cv_func_connect = no; then
1395 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1396 echo "configure:1397: checking for connect in -lsocket" >&5
1397 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401 ac_save_LIBS="$LIBS"
1402 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 /* Override any gcc2 internal prototype to avoid an error. */
1407 /* We use char because int might match the return type of a gcc2
1408 builtin and then its argument prototype would still apply. */
1409 char connect();
1411 int main() {
1412 connect()
1413 ; return 0; }
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1416 rm -rf conftest*
1417 eval "ac_cv_lib_$ac_lib_var=yes"
1418 else
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 rm -rf conftest*
1422 eval "ac_cv_lib_$ac_lib_var=no"
1424 rm -f conftest*
1425 LIBS="$ac_save_LIBS"
1428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1429 echo "$ac_t""yes" 1>&6
1430 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1431 else
1432 echo "$ac_t""no" 1>&6
1437 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1438 echo $ac_n "checking for remove""... $ac_c" 1>&6
1439 echo "configure:1440: checking for remove" >&5
1440 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1446 /* System header to define __stub macros and hopefully few prototypes,
1447 which can conflict with char remove(); below. */
1448 #include <assert.h>
1449 /* Override any gcc2 internal prototype to avoid an error. */
1450 /* We use char because int might match the return type of a gcc2
1451 builtin and then its argument prototype would still apply. */
1452 char remove();
1454 int main() {
1456 /* The GNU C library defines this for functions which it implements
1457 to always fail with ENOSYS. Some functions are actually named
1458 something starting with __ and the normal name is an alias. */
1459 #if defined (__stub_remove) || defined (__stub___remove)
1460 choke me
1461 #else
1462 remove();
1463 #endif
1465 ; return 0; }
1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1468 rm -rf conftest*
1469 eval "ac_cv_func_remove=yes"
1470 else
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1473 rm -rf conftest*
1474 eval "ac_cv_func_remove=no"
1476 rm -f conftest*
1479 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1482 else
1483 echo "$ac_t""no" 1>&6
1486 if test $ac_cv_func_remove = no; then
1487 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1488 echo "configure:1489: checking for remove in -lposix" >&5
1489 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492 else
1493 ac_save_LIBS="$LIBS"
1494 LIBS="-lposix $LIBS"
1495 cat > conftest.$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 /* Override any gcc2 internal prototype to avoid an error. */
1499 /* We use char because int might match the return type of a gcc2
1500 builtin and then its argument prototype would still apply. */
1501 char remove();
1503 int main() {
1504 remove()
1505 ; return 0; }
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1508 rm -rf conftest*
1509 eval "ac_cv_lib_$ac_lib_var=yes"
1510 else
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1513 rm -rf conftest*
1514 eval "ac_cv_lib_$ac_lib_var=no"
1516 rm -f conftest*
1517 LIBS="$ac_save_LIBS"
1520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1521 echo "$ac_t""yes" 1>&6
1522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1523 else
1524 echo "$ac_t""no" 1>&6
1529 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1530 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1531 echo "configure:1532: checking for shmat" >&5
1532 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1534 else
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 /* System header to define __stub macros and hopefully few prototypes,
1539 which can conflict with char shmat(); below. */
1540 #include <assert.h>
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1544 char shmat();
1546 int main() {
1548 /* The GNU C library defines this for functions which it implements
1549 to always fail with ENOSYS. Some functions are actually named
1550 something starting with __ and the normal name is an alias. */
1551 #if defined (__stub_shmat) || defined (__stub___shmat)
1552 choke me
1553 #else
1554 shmat();
1555 #endif
1557 ; return 0; }
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1560 rm -rf conftest*
1561 eval "ac_cv_func_shmat=yes"
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 eval "ac_cv_func_shmat=no"
1568 rm -f conftest*
1571 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1574 else
1575 echo "$ac_t""no" 1>&6
1578 if test $ac_cv_func_shmat = no; then
1579 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1580 echo "configure:1581: checking for shmat in -lipc" >&5
1581 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585 ac_save_LIBS="$LIBS"
1586 LIBS="-lipc $LIBS"
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 /* Override any gcc2 internal prototype to avoid an error. */
1591 /* We use char because int might match the return type of a gcc2
1592 builtin and then its argument prototype would still apply. */
1593 char shmat();
1595 int main() {
1596 shmat()
1597 ; return 0; }
1599 if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1600 rm -rf conftest*
1601 eval "ac_cv_lib_$ac_lib_var=yes"
1602 else
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 rm -rf conftest*
1606 eval "ac_cv_lib_$ac_lib_var=no"
1608 rm -f conftest*
1609 LIBS="$ac_save_LIBS"
1612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1615 else
1616 echo "$ac_t""no" 1>&6
1622 # Check for libraries that X11R6 Xt/Xaw programs need.
1623 ac_save_LDFLAGS="$LDFLAGS"
1624 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1625 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1626 # check for ICE first), but we must link in the order -lSM -lICE or
1627 # we get undefined symbols. So assume we have SM if we have ICE.
1628 # These have to be linked with before -lX11, unlike the other
1629 # libraries we check for below, so use a different variable.
1630 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1631 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1632 echo "configure:1633: checking for IceConnectionNumber in -lICE" >&5
1633 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637 ac_save_LIBS="$LIBS"
1638 LIBS="-lICE $LIBS"
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1645 char IceConnectionNumber();
1647 int main() {
1648 IceConnectionNumber()
1649 ; return 0; }
1651 if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1652 rm -rf conftest*
1653 eval "ac_cv_lib_$ac_lib_var=yes"
1654 else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -rf conftest*
1658 eval "ac_cv_lib_$ac_lib_var=no"
1660 rm -f conftest*
1661 LIBS="$ac_save_LIBS"
1664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1667 else
1668 echo "$ac_t""no" 1>&6
1671 LDFLAGS="$ac_save_LDFLAGS"
1675 for ac_prog in 'bison -y' byacc
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 if test -n "$YACC"; then
1685 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1686 else
1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1688 for ac_dir in $PATH; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1691 ac_cv_prog_YACC="$ac_prog"
1692 break
1694 done
1695 IFS="$ac_save_ifs"
1698 YACC="$ac_cv_prog_YACC"
1699 if test -n "$YACC"; then
1700 echo "$ac_t""$YACC" 1>&6
1701 else
1702 echo "$ac_t""no" 1>&6
1705 test -n "$YACC" && break
1706 done
1707 test -n "$YACC" || YACC="yacc"
1709 # Extract the first word of "flex", so it can be a program name with args.
1710 set dummy flex; ac_word=$2
1711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_word" >&5
1713 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716 if test -n "$LEX"; then
1717 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1718 else
1719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1720 for ac_dir in $PATH; do
1721 test -z "$ac_dir" && ac_dir=.
1722 if test -f $ac_dir/$ac_word; then
1723 ac_cv_prog_LEX="flex"
1724 break
1726 done
1727 IFS="$ac_save_ifs"
1728 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1731 LEX="$ac_cv_prog_LEX"
1732 if test -n "$LEX"; then
1733 echo "$ac_t""$LEX" 1>&6
1734 else
1735 echo "$ac_t""no" 1>&6
1738 if test -z "$LEXLIB"
1739 then
1740 case "$LEX" in
1741 flex*) ac_lib=fl ;;
1742 *) ac_lib=l ;;
1743 esac
1744 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1745 echo "configure:1746: checking for yywrap in -l$ac_lib" >&5
1746 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 ac_save_LIBS="$LIBS"
1751 LIBS="-l$ac_lib $LIBS"
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 /* Override any gcc2 internal prototype to avoid an error. */
1756 /* We use char because int might match the return type of a gcc2
1757 builtin and then its argument prototype would still apply. */
1758 char yywrap();
1760 int main() {
1761 yywrap()
1762 ; return 0; }
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1765 rm -rf conftest*
1766 eval "ac_cv_lib_$ac_lib_var=yes"
1767 else
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 rm -rf conftest*
1771 eval "ac_cv_lib_$ac_lib_var=no"
1773 rm -f conftest*
1774 LIBS="$ac_save_LIBS"
1777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 LEXLIB="-l$ac_lib"
1780 else
1781 echo "$ac_t""no" 1>&6
1786 # Extract the first word of "ranlib", so it can be a program name with args.
1787 set dummy ranlib; ac_word=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1792 else
1793 if test -n "$RANLIB"; then
1794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1795 else
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1797 for ac_dir in $PATH; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_prog_RANLIB="ranlib"
1801 break
1803 done
1804 IFS="$ac_save_ifs"
1805 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1808 RANLIB="$ac_cv_prog_RANLIB"
1809 if test -n "$RANLIB"; then
1810 echo "$ac_t""$RANLIB" 1>&6
1811 else
1812 echo "$ac_t""no" 1>&6
1815 # Find a good install program. We prefer a C program (faster),
1816 # so one script is as good as another. But avoid the broken or
1817 # incompatible versions:
1818 # SysV /etc/install, /usr/sbin/install
1819 # SunOS /usr/etc/install
1820 # IRIX /sbin/install
1821 # AIX /bin/install
1822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1824 # ./install, which can be erroneously created by make from ./install.sh.
1825 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1826 echo "configure:1827: checking for a BSD compatible install" >&5
1827 if test -z "$INSTALL"; then
1828 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1832 for ac_dir in $PATH; do
1833 # Account for people who put trailing slashes in PATH elements.
1834 case "$ac_dir/" in
1835 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1837 # OSF1 and SCO ODT 3.0 have their own names for install.
1838 for ac_prog in ginstall installbsd scoinst install; do
1839 if test -f $ac_dir/$ac_prog; then
1840 if test $ac_prog = install &&
1841 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1842 # AIX install. It has an incompatible calling convention.
1843 # OSF/1 installbsd also uses dspmsg, but is usable.
1845 else
1846 ac_cv_path_install="$ac_dir/$ac_prog -c"
1847 break 2
1850 done
1852 esac
1853 done
1854 IFS="$ac_save_IFS"
1857 if test "${ac_cv_path_install+set}" = set; then
1858 INSTALL="$ac_cv_path_install"
1859 else
1860 # As a last resort, use the slow shell script. We don't cache a
1861 # path for INSTALL within a source directory, because that will
1862 # break other packages using the cache if that directory is
1863 # removed, or if the path is relative.
1864 INSTALL="$ac_install_sh"
1867 echo "$ac_t""$INSTALL" 1>&6
1869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1870 # It thinks the first close brace ends the variable substitution.
1871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1875 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1876 echo "configure:1877: checking whether ln -s works" >&5
1877 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1879 else
1880 rm -f conftestdata
1881 if ln -s X conftestdata 2>/dev/null
1882 then
1883 rm -f conftestdata
1884 ac_cv_prog_LN_S="ln -s"
1885 else
1886 ac_cv_prog_LN_S=ln
1889 LN_S="$ac_cv_prog_LN_S"
1890 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1891 echo "$ac_t""yes" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1896 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1897 echo "configure:1898: checking for i386_set_ldt in -li386" >&5
1898 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 ac_save_LIBS="$LIBS"
1903 LIBS="-li386 $LIBS"
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 /* Override any gcc2 internal prototype to avoid an error. */
1908 /* We use char because int might match the return type of a gcc2
1909 builtin and then its argument prototype would still apply. */
1910 char i386_set_ldt();
1912 int main() {
1913 i386_set_ldt()
1914 ; return 0; }
1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1917 rm -rf conftest*
1918 eval "ac_cv_lib_$ac_lib_var=yes"
1919 else
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 rm -rf conftest*
1923 eval "ac_cv_lib_$ac_lib_var=no"
1925 rm -f conftest*
1926 LIBS="$ac_save_LIBS"
1929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1930 echo "$ac_t""yes" 1>&6
1931 LDLIBS="$LDLIBS -li386"
1932 else
1933 echo "$ac_t""no" 1>&6
1937 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
1940 if test "x${GCC}" = "xyes"
1941 then
1942 CFLAGS="$CFLAGS -Wall"
1943 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1944 echo "configure:1945: checking "for gcc strength-reduce bug"" >&5
1945 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 if test "$cross_compiling" = yes; then
1949 ac_cv_c_gcc_strength_bug="yes"
1950 else
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1955 int main(void) {
1956 static int Array[3];
1957 unsigned int B = 3;
1958 int i;
1959 for(i=0; i<B; i++) Array[i] = i - 3;
1960 exit( Array[1] != -2 );
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1964 then
1965 ac_cv_c_gcc_strength_bug="no"
1966 else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -fr conftest*
1970 ac_cv_c_gcc_strength_bug="yes"
1972 rm -fr conftest*
1977 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1978 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1979 then
1980 CFLAGS="$CFLAGS -fno-strength-reduce"
1985 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
1986 echo "configure:1987: checking "whether external symbols need an underscore prefix"" >&5
1987 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990 saved_libs=$LIBS
1991 LIBS="conftest_asm.s $LIBS"
1992 cat > conftest_asm.s <<EOF
1993 .globl _ac_test
1994 _ac_test:
1995 .long 0
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 extern int ac_test;
2001 int main() {
2002 if (ac_test) return 1
2003 ; return 0; }
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2006 rm -rf conftest*
2007 ac_cv_c_extern_prefix="yes"
2008 else
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 rm -rf conftest*
2012 ac_cv_c_extern_prefix="no"
2014 rm -f conftest*
2015 LIBS=$saved_libs
2018 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2019 if test "$ac_cv_c_extern_prefix" = "yes"
2020 then
2021 cat >> confdefs.h <<\EOF
2022 #define NEED_UNDERSCORE_PREFIX 1
2028 if test "$MAIN_TARGET" = "libwine.so.1.0"
2029 then
2030 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2031 echo "configure:2032: checking "whether we can build a dll"" >&5
2032 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035 saved_cflags=$CFLAGS
2036 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2041 int main() {
2042 return 1
2043 ; return 0; }
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2046 rm -rf conftest*
2047 ac_cv_c_dll="yes"
2048 else
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 rm -rf conftest*
2052 ac_cv_c_dll="no"
2054 rm -f conftest*
2055 CFLAGS=$saved_cflags
2059 echo "$ac_t""$ac_cv_c_dll" 1>&6
2060 if test "$ac_cv_c_dll" = "yes"
2061 then
2062 CFLAGS="$CFLAGS -fPIC"
2063 else
2064 MAIN_TARGET="libwine.a"
2069 for ac_func in memmove tcgetattr usleep wait4 waitpid
2071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_func" >&5
2073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $ac_func(); below. */
2081 #include <assert.h>
2082 /* Override any gcc2 internal prototype to avoid an error. */
2083 /* We use char because int might match the return type of a gcc2
2084 builtin and then its argument prototype would still apply. */
2085 char $ac_func();
2087 int main() {
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2093 choke me
2094 #else
2095 $ac_func();
2096 #endif
2098 ; return 0; }
2100 if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2101 rm -rf conftest*
2102 eval "ac_cv_func_$ac_func=yes"
2103 else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -rf conftest*
2107 eval "ac_cv_func_$ac_func=no"
2109 rm -f conftest*
2112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_func 1
2119 else
2120 echo "$ac_t""no" 1>&6
2122 done
2124 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2125 echo "configure:2126: checking whether stat file-mode macros are broken" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+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 #include <sys/types.h>
2133 #include <sys/stat.h>
2135 #if defined(S_ISBLK) && defined(S_IFDIR)
2136 # if S_ISBLK (S_IFDIR)
2137 You lose.
2138 # endif
2139 #endif
2141 #if defined(S_ISBLK) && defined(S_IFCHR)
2142 # if S_ISBLK (S_IFCHR)
2143 You lose.
2144 # endif
2145 #endif
2147 #if defined(S_ISLNK) && defined(S_IFREG)
2148 # if S_ISLNK (S_IFREG)
2149 You lose.
2150 # endif
2151 #endif
2153 #if defined(S_ISSOCK) && defined(S_IFREG)
2154 # if S_ISSOCK (S_IFREG)
2155 You lose.
2156 # endif
2157 #endif
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "You lose" >/dev/null 2>&1; then
2162 rm -rf conftest*
2163 ac_cv_header_stat_broken=yes
2164 else
2165 rm -rf conftest*
2166 ac_cv_header_stat_broken=no
2168 rm -f conftest*
2172 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2173 if test $ac_cv_header_stat_broken = yes; then
2174 cat >> confdefs.h <<\EOF
2175 #define STAT_MACROS_BROKEN 1
2180 echo $ac_n "checking for working const""... $ac_c" 1>&6
2181 echo "configure:2182: checking for working const" >&5
2182 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2189 int main() {
2191 /* Ultrix mips cc rejects this. */
2192 typedef int charset[2]; const charset x;
2193 /* SunOS 4.1.1 cc rejects this. */
2194 char const *const *ccp;
2195 char **p;
2196 /* NEC SVR4.0.2 mips cc rejects this. */
2197 struct point {int x, y;};
2198 static struct point const zero = {0,0};
2199 /* AIX XL C 1.02.0.0 rejects this.
2200 It does not let you subtract one const X* pointer from another in an arm
2201 of an if-expression whose if-part is not a constant expression */
2202 const char *g = "string";
2203 ccp = &g + (g ? g-g : 0);
2204 /* HPUX 7.0 cc rejects these. */
2205 ++ccp;
2206 p = (char**) ccp;
2207 ccp = (char const *const *) p;
2208 { /* SCO 3.2v4 cc rejects this. */
2209 char *t;
2210 char const *s = 0 ? (char *) 0 : (char const *) 0;
2212 *t++ = 0;
2214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2215 int x[] = {25, 17};
2216 const int *foo = &x[0];
2217 ++foo;
2219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2220 typedef const int *iptr;
2221 iptr p = 0;
2222 ++p;
2224 { /* AIX XL C 1.02.0.0 rejects this saying
2225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2226 struct s { int j; const int *ap[3]; };
2227 struct s *b; b->j = 5;
2229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2230 const int foo = 10;
2233 ; return 0; }
2235 if { (eval echo configure:2236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2236 rm -rf conftest*
2237 ac_cv_c_const=yes
2238 else
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 rm -rf conftest*
2242 ac_cv_c_const=no
2244 rm -f conftest*
2247 echo "$ac_t""$ac_cv_c_const" 1>&6
2248 if test $ac_cv_c_const = no; then
2249 cat >> confdefs.h <<\EOF
2250 #define const
2255 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2256 echo "configure:2257: checking for ANSI C header files" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 #include <stdlib.h>
2264 #include <stdarg.h>
2265 #include <string.h>
2266 #include <float.h>
2268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err=`grep -v '^ *+' conftest.out`
2271 if test -z "$ac_err"; then
2272 rm -rf conftest*
2273 ac_cv_header_stdc=yes
2274 else
2275 echo "$ac_err" >&5
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 rm -rf conftest*
2279 ac_cv_header_stdc=no
2281 rm -f conftest*
2283 if test $ac_cv_header_stdc = yes; then
2284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 #include <string.h>
2290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2291 egrep "memchr" >/dev/null 2>&1; then
2293 else
2294 rm -rf conftest*
2295 ac_cv_header_stdc=no
2297 rm -f conftest*
2301 if test $ac_cv_header_stdc = yes; then
2302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <stdlib.h>
2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 egrep "free" >/dev/null 2>&1; then
2311 else
2312 rm -rf conftest*
2313 ac_cv_header_stdc=no
2315 rm -f conftest*
2319 if test $ac_cv_header_stdc = yes; then
2320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2321 if test "$cross_compiling" = yes; then
2323 else
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #include <ctype.h>
2328 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2329 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2331 int main () { int i; for (i = 0; i < 256; i++)
2332 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2333 exit (0); }
2336 if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2337 then
2339 else
2340 echo "configure: failed program was:" >&5
2341 cat conftest.$ac_ext >&5
2342 rm -fr conftest*
2343 ac_cv_header_stdc=no
2345 rm -fr conftest*
2351 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2352 if test $ac_cv_header_stdc = yes; then
2353 cat >> confdefs.h <<\EOF
2354 #define STDC_HEADERS 1
2359 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2360 echo "configure:2361: checking for size_t" >&5
2361 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363 else
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include <sys/types.h>
2368 #if STDC_HEADERS
2369 #include <stdlib.h>
2370 #include <stddef.h>
2371 #endif
2373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2374 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2375 rm -rf conftest*
2376 ac_cv_type_size_t=yes
2377 else
2378 rm -rf conftest*
2379 ac_cv_type_size_t=no
2381 rm -f conftest*
2384 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2385 if test $ac_cv_type_size_t = no; then
2386 cat >> confdefs.h <<\EOF
2387 #define size_t unsigned
2394 MAKE_RULES=Make.rules
2397 trap '' 1 2 15
2398 cat > confcache <<\EOF
2399 # This file is a shell script that caches the results of configure
2400 # tests run on this system so they can be shared between configure
2401 # scripts and configure runs. It is not useful on other systems.
2402 # If it contains results you don't want to keep, you may remove or edit it.
2404 # By default, configure uses ./config.cache as the cache file,
2405 # creating it if it does not exist already. You can give configure
2406 # the --cache-file=FILE option to use a different cache file; that is
2407 # what configure does when it calls configure scripts in
2408 # subdirectories, so they share the cache.
2409 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2410 # config.status only pays attention to the cache file if you give it the
2411 # --recheck option to rerun configure.
2414 # The following way of writing the cache mishandles newlines in values,
2415 # but we know of no workaround that is simple, portable, and efficient.
2416 # So, don't put newlines in cache variables' values.
2417 # Ultrix sh set writes to stderr and can't be redirected directly,
2418 # and sets the high bit in the cache file unless we assign to the vars.
2419 (set) 2>&1 |
2420 case `(ac_space=' '; set) 2>&1` in
2421 *ac_space=\ *)
2422 # `set' does not quote correctly, so add quotes (double-quote substitution
2423 # turns \\\\ into \\, and sed turns \\ into \).
2424 sed -n \
2425 -e "s/'/'\\\\''/g" \
2426 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2429 # `set' quotes correctly as required by POSIX, so do not add quotes.
2430 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2432 esac >> confcache
2433 if cmp -s $cache_file confcache; then
2435 else
2436 if test -w $cache_file; then
2437 echo "updating cache $cache_file"
2438 cat confcache > $cache_file
2439 else
2440 echo "not updating unwritable cache $cache_file"
2443 rm -f confcache
2445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2448 # Let make expand exec_prefix.
2449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2451 # Any assignment to VPATH causes Sun make to only execute
2452 # the first set of double-colon rules, so remove it if not needed.
2453 # If there is a colon in the path, we need to keep it.
2454 if test "x$srcdir" = x.; then
2455 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2458 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2460 DEFS=-DHAVE_CONFIG_H
2462 # Without the "./", some shells look in PATH for config.status.
2463 : ${CONFIG_STATUS=./config.status}
2465 echo creating $CONFIG_STATUS
2466 rm -f $CONFIG_STATUS
2467 cat > $CONFIG_STATUS <<EOF
2468 #! /bin/sh
2469 # Generated automatically by configure.
2470 # Run this file to recreate the current configuration.
2471 # This directory was configured as follows,
2472 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2474 # $0 $ac_configure_args
2476 # Compiler output produced by configure, useful for debugging
2477 # configure, is in ./config.log if it exists.
2479 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2480 for ac_option
2482 case "\$ac_option" in
2483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2484 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2485 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2486 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2487 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2488 exit 0 ;;
2489 -help | --help | --hel | --he | --h)
2490 echo "\$ac_cs_usage"; exit 0 ;;
2491 *) echo "\$ac_cs_usage"; exit 1 ;;
2492 esac
2493 done
2495 ac_given_srcdir=$srcdir
2496 ac_given_INSTALL="$INSTALL"
2498 trap 'rm -fr `echo "
2499 Make.rules
2500 Makefile
2501 controls/Makefile
2502 debugger/Makefile
2503 documentation/Makefile
2504 files/Makefile
2505 graphics/Makefile
2506 graphics/metafiledrv/Makefile
2507 graphics/win16drv/Makefile
2508 graphics/x11drv/Makefile
2509 if1632/Makefile
2510 ipc/Makefile
2511 library/Makefile
2512 libtest/Makefile
2513 loader/Makefile
2514 memory/Makefile
2515 misc/Makefile
2516 miscemu/Makefile
2517 msdos/Makefile
2518 multimedia/Makefile
2519 objects/Makefile
2520 programs/Makefile
2521 programs/progman/Makefile
2522 programs/winhelp/Makefile
2523 rc/Makefile
2524 resources/Makefile
2525 scheduler/Makefile
2526 tools/Makefile
2527 win32/Makefile
2528 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2530 cat >> $CONFIG_STATUS <<EOF
2532 # Protect against being on the right side of a sed subst in config.status.
2533 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2534 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2535 $ac_vpsub
2536 $extrasub
2537 s%@CFLAGS@%$CFLAGS%g
2538 s%@CPPFLAGS@%$CPPFLAGS%g
2539 s%@CXXFLAGS@%$CXXFLAGS%g
2540 s%@DEFS@%$DEFS%g
2541 s%@LDFLAGS@%$LDFLAGS%g
2542 s%@LIBS@%$LIBS%g
2543 s%@exec_prefix@%$exec_prefix%g
2544 s%@prefix@%$prefix%g
2545 s%@program_transform_name@%$program_transform_name%g
2546 s%@bindir@%$bindir%g
2547 s%@sbindir@%$sbindir%g
2548 s%@libexecdir@%$libexecdir%g
2549 s%@datadir@%$datadir%g
2550 s%@sysconfdir@%$sysconfdir%g
2551 s%@sharedstatedir@%$sharedstatedir%g
2552 s%@localstatedir@%$localstatedir%g
2553 s%@libdir@%$libdir%g
2554 s%@includedir@%$includedir%g
2555 s%@oldincludedir@%$oldincludedir%g
2556 s%@infodir@%$infodir%g
2557 s%@mandir@%$mandir%g
2558 s%@LDLIBS@%$LDLIBS%g
2559 s%@PROGEXT@%$PROGEXT%g
2560 s%@MAIN_TARGET@%$MAIN_TARGET%g
2561 s%@OPTIONS@%$OPTIONS%g
2562 s%@SET_MAKE@%$SET_MAKE%g
2563 s%@CC@%$CC%g
2564 s%@CPP@%$CPP%g
2565 s%@X_CFLAGS@%$X_CFLAGS%g
2566 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2567 s%@X_LIBS@%$X_LIBS%g
2568 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2569 s%@YACC@%$YACC%g
2570 s%@LEX@%$LEX%g
2571 s%@LEXLIB@%$LEXLIB%g
2572 s%@RANLIB@%$RANLIB%g
2573 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2574 s%@INSTALL_DATA@%$INSTALL_DATA%g
2575 s%@LN_S@%$LN_S%g
2576 /@MAKE_RULES@/r $MAKE_RULES
2577 s%@MAKE_RULES@%%g
2579 CEOF
2582 cat >> $CONFIG_STATUS <<\EOF
2584 # Split the substitutions into bite-sized pieces for seds with
2585 # small command number limits, like on Digital OSF/1 and HP-UX.
2586 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2587 ac_file=1 # Number of current file.
2588 ac_beg=1 # First line for current file.
2589 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2590 ac_more_lines=:
2591 ac_sed_cmds=""
2592 while $ac_more_lines; do
2593 if test $ac_beg -gt 1; then
2594 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2595 else
2596 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2598 if test ! -s conftest.s$ac_file; then
2599 ac_more_lines=false
2600 rm -f conftest.s$ac_file
2601 else
2602 if test -z "$ac_sed_cmds"; then
2603 ac_sed_cmds="sed -f conftest.s$ac_file"
2604 else
2605 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2607 ac_file=`expr $ac_file + 1`
2608 ac_beg=$ac_end
2609 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2611 done
2612 if test -z "$ac_sed_cmds"; then
2613 ac_sed_cmds=cat
2617 cat >> $CONFIG_STATUS <<EOF
2619 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2620 Makefile
2621 controls/Makefile
2622 debugger/Makefile
2623 documentation/Makefile
2624 files/Makefile
2625 graphics/Makefile
2626 graphics/metafiledrv/Makefile
2627 graphics/win16drv/Makefile
2628 graphics/x11drv/Makefile
2629 if1632/Makefile
2630 ipc/Makefile
2631 library/Makefile
2632 libtest/Makefile
2633 loader/Makefile
2634 memory/Makefile
2635 misc/Makefile
2636 miscemu/Makefile
2637 msdos/Makefile
2638 multimedia/Makefile
2639 objects/Makefile
2640 programs/Makefile
2641 programs/progman/Makefile
2642 programs/winhelp/Makefile
2643 rc/Makefile
2644 resources/Makefile
2645 scheduler/Makefile
2646 tools/Makefile
2647 win32/Makefile
2648 windows/Makefile "}
2650 cat >> $CONFIG_STATUS <<\EOF
2651 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2652 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2653 case "$ac_file" in
2654 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2655 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2656 *) ac_file_in="${ac_file}.in" ;;
2657 esac
2659 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2661 # Remove last slash and all that follows it. Not all systems have dirname.
2662 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2663 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2664 # The file is in a subdirectory.
2665 test ! -d "$ac_dir" && mkdir "$ac_dir"
2666 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2667 # A "../" for each directory in $ac_dir_suffix.
2668 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2669 else
2670 ac_dir_suffix= ac_dots=
2673 case "$ac_given_srcdir" in
2674 .) srcdir=.
2675 if test -z "$ac_dots"; then top_srcdir=.
2676 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2677 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2678 *) # Relative path.
2679 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2680 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2681 esac
2683 case "$ac_given_INSTALL" in
2684 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2685 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2686 esac
2688 echo creating "$ac_file"
2689 rm -f "$ac_file"
2690 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2691 case "$ac_file" in
2692 *Makefile*) ac_comsub="1i\\
2693 # $configure_input" ;;
2694 *) ac_comsub= ;;
2695 esac
2697 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2698 sed -e "$ac_comsub
2699 s%@configure_input@%$configure_input%g
2700 s%@srcdir@%$srcdir%g
2701 s%@top_srcdir@%$top_srcdir%g
2702 s%@INSTALL@%$INSTALL%g
2703 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2704 fi; done
2705 rm -f conftest.s*
2707 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2708 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2710 # ac_d sets the value in "#define NAME VALUE" lines.
2711 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2712 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2713 ac_dC='\3'
2714 ac_dD='%g'
2715 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2716 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2717 ac_uB='\([ ]\)%\1#\2define\3'
2718 ac_uC=' '
2719 ac_uD='\4%g'
2720 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2721 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2722 ac_eB='$%\1#\2define\3'
2723 ac_eC=' '
2724 ac_eD='%g'
2726 if test "${CONFIG_HEADERS+set}" != set; then
2728 cat >> $CONFIG_STATUS <<EOF
2729 CONFIG_HEADERS="include/config.h"
2731 cat >> $CONFIG_STATUS <<\EOF
2733 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2735 case "$ac_file" in
2736 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2737 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2738 *) ac_file_in="${ac_file}.in" ;;
2739 esac
2741 echo creating $ac_file
2743 rm -f conftest.frag conftest.in conftest.out
2744 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2745 cat $ac_file_inputs > conftest.in
2749 # Transform confdefs.h into a sed script conftest.vals that substitutes
2750 # the proper values into config.h.in to produce config.h. And first:
2751 # Protect against being on the right side of a sed subst in config.status.
2752 # Protect against being in an unquoted here document in config.status.
2753 rm -f conftest.vals
2754 cat > conftest.hdr <<\EOF
2755 s/[\\&%]/\\&/g
2756 s%[\\$`]%\\&%g
2757 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2758 s%ac_d%ac_u%gp
2759 s%ac_u%ac_e%gp
2761 sed -n -f conftest.hdr confdefs.h > conftest.vals
2762 rm -f conftest.hdr
2764 # This sed command replaces #undef with comments. This is necessary, for
2765 # example, in the case of _POSIX_SOURCE, which is predefined and required
2766 # on some systems where configure will not decide to define it.
2767 cat >> conftest.vals <<\EOF
2768 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2771 # Break up conftest.vals because some shells have a limit on
2772 # the size of here documents, and old seds have small limits too.
2774 rm -f conftest.tail
2775 while :
2777 ac_lines=`grep -c . conftest.vals`
2778 # grep -c gives empty output for an empty file on some AIX systems.
2779 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2780 # Write a limited-size here document to conftest.frag.
2781 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2782 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2783 echo 'CEOF
2784 sed -f conftest.frag conftest.in > conftest.out
2785 rm -f conftest.in
2786 mv conftest.out conftest.in
2787 ' >> $CONFIG_STATUS
2788 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2789 rm -f conftest.vals
2790 mv conftest.tail conftest.vals
2791 done
2792 rm -f conftest.vals
2794 cat >> $CONFIG_STATUS <<\EOF
2795 rm -f conftest.frag conftest.h
2796 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2797 cat conftest.in >> conftest.h
2798 rm -f conftest.in
2799 if cmp -s $ac_file conftest.h 2>/dev/null; then
2800 echo "$ac_file is unchanged"
2801 rm -f conftest.h
2802 else
2803 # Remove last slash and all that follows it. Not all systems have dirname.
2804 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2805 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2806 # The file is in a subdirectory.
2807 test ! -d "$ac_dir" && mkdir "$ac_dir"
2809 rm -f $ac_file
2810 mv conftest.h $ac_file
2812 fi; done
2815 cat >> $CONFIG_STATUS <<EOF
2818 cat >> $CONFIG_STATUS <<\EOF
2820 exit 0
2822 chmod +x $CONFIG_STATUS
2823 rm -fr confdefs* $ac_clean_files
2824 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2827 echo
2828 echo "Configure finished. Do 'make depend; make' to compile Wine."
2829 echo