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.10-patched
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.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --with-library build Wine as a library instead of an emulator"
18 --with-dll build Wine as a DLL instead of an emulator"
20 --with-ipc use inter-process communication for DDE"
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.
28 cache_file
=.
/config.cache
37 program_transform_name
=s
,x
,x
,
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.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
84 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
85 bindir
="$ac_optarg" ;;
87 -build |
--build |
--buil |
--bui |
--bu)
89 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
92 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
93 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
95 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
96 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
97 cache_file
="$ac_optarg" ;;
99 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
101 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
103 datadir
="$ac_optarg" ;;
105 -disable-* |
--disable-*)
106 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* |
--enable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
128 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
129 |
--exec |
--exe |
--ex)
130 ac_prev
=exec_prefix
;;
131 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
132 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
133 |
--exec=* |
--exe=* |
--ex=*)
134 exec_prefix
="$ac_optarg" ;;
136 -gas |
--gas |
--ga |
--g)
137 # Obsolete; use --with-gas.
140 -help |
--help |
--hel |
--he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host |
--host |
--hos |
--ho)
197 -host=* |
--host=* |
--hos=* |
--ho=*)
200 -includedir |
--includedir |
--includedi |
--included |
--include \
201 |
--includ |
--inclu |
--incl |
--inc)
202 ac_prev
=includedir
;;
203 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
204 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
205 includedir
="$ac_optarg" ;;
207 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
209 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
210 infodir
="$ac_optarg" ;;
212 -libdir |
--libdir |
--libdi |
--libd)
214 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
215 libdir
="$ac_optarg" ;;
217 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
218 |
--libexe |
--libex |
--libe)
219 ac_prev
=libexecdir
;;
220 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
221 |
--libexe=* |
--libex=* |
--libe=*)
222 libexecdir
="$ac_optarg" ;;
224 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
225 |
--localstate |
--localstat |
--localsta |
--localst \
226 |
--locals |
--local |
--loca |
--loc |
--lo)
227 ac_prev
=localstatedir
;;
228 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
229 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
230 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
231 localstatedir
="$ac_optarg" ;;
233 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
235 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
236 mandir
="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
246 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
247 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
250 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
251 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
252 |
--oldin |
--oldi |
--old |
--ol |
--o)
253 ac_prev
=oldincludedir
;;
254 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
255 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
256 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
257 oldincludedir
="$ac_optarg" ;;
259 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
261 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
262 prefix
="$ac_optarg" ;;
264 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
265 |
--program-pre |
--program-pr |
--program-p)
266 ac_prev
=program_prefix
;;
267 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
268 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
269 program_prefix
="$ac_optarg" ;;
271 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
272 |
--program-suf |
--program-su |
--program-s)
273 ac_prev
=program_suffix
;;
274 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
275 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
276 program_suffix
="$ac_optarg" ;;
278 -program-transform-name |
--program-transform-name \
279 |
--program-transform-nam |
--program-transform-na \
280 |
--program-transform-n |
--program-transform- \
281 |
--program-transform |
--program-transfor \
282 |
--program-transfo |
--program-transf \
283 |
--program-trans |
--program-tran \
284 |
--progr-tra |
--program-tr |
--program-t)
285 ac_prev
=program_transform_name
;;
286 -program-transform-name=* |
--program-transform-name=* \
287 |
--program-transform-nam=* |
--program-transform-na=* \
288 |
--program-transform-n=* |
--program-transform-=* \
289 |
--program-transform=* |
--program-transfor=* \
290 |
--program-transfo=* |
--program-transf=* \
291 |
--program-trans=* |
--program-tran=* \
292 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
293 program_transform_name
="$ac_optarg" ;;
295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
296 |
-silent |
--silent |
--silen |
--sile |
--sil)
299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
303 sbindir
="$ac_optarg" ;;
305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
309 ac_prev
=sharedstatedir
;;
310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
314 sharedstatedir
="$ac_optarg" ;;
316 -site |
--site |
--sit)
318 -site=* |
--site=* |
--sit=*)
321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
323 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
324 srcdir
="$ac_optarg" ;;
326 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
327 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
328 ac_prev
=sysconfdir
;;
329 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
330 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
331 sysconfdir
="$ac_optarg" ;;
333 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
336 target
="$ac_optarg" ;;
338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
341 -version |
--version |
--versio |
--versi |
--vers)
342 echo "configure generated by autoconf version 2.10-patched"
346 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package
=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* |
--without-*)
359 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
372 |
--x-incl |
--x-inc |
--x-in |
--x-i)
373 ac_prev
=x_includes
;;
374 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
375 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
376 x_includes
="$ac_optarg" ;;
378 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
379 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
380 ac_prev
=x_libraries
;;
381 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
382 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
383 x_libraries
="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE
; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
434 |
--no-cr |
--no-c) ;;
435 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
436 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
437 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
444 # Only set LANG and LC_ALL to C if already set.
445 # These must not be set unconditionally because not all systems understand
446 # e.g. LANG=C (notably SCO).
447 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
448 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest
* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file
=controls
/edit.c
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted
=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted
=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE
; then
485 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file
in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp
='$CPP $CPPFLAGS'
508 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
520 ac_n
= ac_c
='\c' ac_t
=
526 for ac_dir
in tools
$srcdir/tools
; do
527 if test -f $ac_dir/install-sh
; then
529 ac_install_sh
="$ac_aux_dir/install-sh -c"
531 elif test -f $ac_dir/install.sh
; then
533 ac_install_sh
="$ac_aux_dir/install.sh -c"
537 if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
540 ac_config_guess
=$ac_aux_dir/config.guess
541 ac_config_sub
=$ac_aux_dir/config.sub
542 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
545 # We want these before the checks, so the checks can modify their values.
546 test -z "$CFLAGS" && CFLAGS
="-g -O2"
547 test -z "$LDFLAGS" && LDFLAGS
=-g
548 test -z "$LDLIBS" && LDLIBS
=-lm
551 # Check whether --with-library or --without-library was given.
552 if test "${with_library+set}" = set; then
553 withval
="$with_library"
554 OPTIONS
="-DWINELIB" MAIN_TARGET
="libwine.a"
556 OPTIONS
="" MAIN_TARGET
="wine"
560 # Check whether --with-dll or --without-dll was given.
561 if test "${with_dll+set}" = set; then
563 OPTIONS
="-DWINELIB -DWINELIBDLL" MAIN_TARGET
="libwine.so.1.0" CFLAGS
="$CFLAGS -fPIC"
567 # Check whether --with-ipc or --without-ipc was given.
568 if test "${with_ipc+set}" = set; then
570 OPTIONS
="$OPTIONS -DCONFIG_IPC"
578 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
579 set dummy
${MAKE-make}; ac_make
=$2
580 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 cat > conftestmake
<<\EOF
585 @
echo 'ac_maketemp="${MAKE}"'
587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
588 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
589 if test -n "$ac_maketemp"; then
590 eval ac_cv_prog_make_
${ac_make}_set
=yes
592 eval ac_cv_prog_make_
${ac_make}_set
=no
596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
597 echo "$ac_t""yes" 1>&6
600 echo "$ac_t""no" 1>&6
601 SET_MAKE
="MAKE=${MAKE-make}"
604 # Extract the first word of "gcc", so it can be a program name with args.
605 set dummy gcc
; ac_word
=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
610 if test -n "$CC"; then
611 ac_cv_prog_CC
="$CC" # Let the user override the test.
613 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
614 for ac_dir
in $PATH; do
615 test -z "$ac_dir" && ac_dir
=.
616 if test -f $ac_dir/$ac_word; then
625 if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
628 echo "$ac_t""no" 1>&6
631 if test -z "$CC"; then
632 # Extract the first word of "cc", so it can be a program name with args.
633 set dummy cc
; ac_word
=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 if test -n "$CC"; then
639 ac_cv_prog_CC
="$CC" # Let the user override the test.
641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
643 for ac_dir
in $PATH; do
644 test -z "$ac_dir" && ac_dir
=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
655 if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy
$ac_cv_prog_CC
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
664 set dummy
"$ac_dir/$ac_word" "$@"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
681 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
682 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 cat > conftest.c
<<EOF
690 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
697 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
698 if test $ac_cv_prog_gcc = yes; then
700 if test "${CFLAGS+set}" != set; then
701 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
702 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 echo 'void f(){}' > conftest.c
706 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
715 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
716 if test $ac_cv_prog_gcc_g = yes; then
724 test "${CFLAGS+set}" = set || CFLAGS
="-g"
727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
728 # On Suns, sometimes $CPP names a directory.
729 if test -n "$CPP" && test -d "$CPP"; then
732 if test -z "$CPP"; then
733 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 # This must be in double quotes, not single quotes, because CPP may get
737 # substituted into the Makefile and "${CC-cc}" will confuse make.
739 # On the NeXT, cc -E runs the code through the compiler's parser,
740 # not just through cpp.
741 cat > conftest.
$ac_ext <<EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err
=`grep -v '^ *+' conftest.out`
750 if test -z "$ac_err"; then
755 CPP
="${CC-cc} -E -traditional-cpp"
756 cat > conftest.
$ac_ext <<EOF
757 #line 758 "configure"
758 #include "confdefs.h"
762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
763 { (eval echo configure
:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
764 ac_err
=`grep -v '^ *+' conftest.out`
765 if test -z "$ac_err"; then
775 ac_cv_prog_CPP
="$CPP"
777 CPP
="$ac_cv_prog_CPP"
779 ac_cv_prog_CPP
="$CPP"
781 echo "$ac_t""$CPP" 1>&6
783 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784 if test -d /etc
/conf
/kconfig.d
&&
785 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
787 echo "$ac_t""yes" 1>&6
788 ISC
=yes # If later tests want to check for ISC.
789 cat >> confdefs.h
<<\EOF
790 #define _POSIX_SOURCE 1
793 if test "$GCC" = yes; then
799 echo "$ac_t""no" 1>&6
803 # If we find X, set shell vars x_includes and x_libraries to the
804 # paths, otherwise set no_x=yes.
805 # Uses ac_ vars as temps to allow command line to override cache and checks.
806 # --without-x overrides everything else, but does not touch the cache.
807 echo $ac_n "checking for X""... $ac_c" 1>&6
809 # Check whether --with-x or --without-x was given.
810 if test "${with_x+set}" = set; then
815 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
816 if test "x$with_x" = xno
; then
817 # The user explicitly disabled X.
820 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
821 # Both variables are already set.
824 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 # One or both of the vars are not set, and there is no cached value.
828 ac_x_includes
=NO ac_x_libraries
=NO
830 if mkdir conftestdir
; then
832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
833 cat > Imakefile
<<'EOF'
835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
837 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
841 for ac_extension
in a so sl
; do
842 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
843 test -f $ac_im_libdir/libX11.
$ac_extension; then
844 ac_im_usrlibdir
=$ac_im_libdir; break
847 # Screen out bogus values from the imake configuration.
848 case "$ac_im_incroot" in
850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
852 case "$ac_im_usrlibdir" in
854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
861 if test "$ac_x_includes" = NO
; then
862 # Guess where to find include files, by looking for this one X11 .h file.
863 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
865 # First, try using that file with no special directory specified.
866 cat > conftest.
$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <$x_direct_test_include>
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
876 # We can compile using X headers with no special include directory.
881 # Look for the header file in a standard set of common directories.
891 /usr
/local
/X11R
6/include \
892 /usr
/local
/X11R
5/include \
893 /usr
/local
/X11R
4/include \
895 /usr
/local
/include
/X11R6 \
896 /usr
/local
/include
/X11R5 \
897 /usr
/local
/include
/X11R4 \
901 /usr
/local
/X11
/include \
902 /usr
/local
/include
/X11 \
906 /usr
/XFree86
/include
/X11 \
910 /usr
/unsupported
/include \
911 /usr
/athena
/include \
912 /usr
/local
/x11r
5/include \
913 /usr
/lpp
/Xamples
/include \
915 /usr
/openwin
/include \
916 /usr
/openwin
/share
/include \
919 if test -r "$ac_dir/$x_direct_test_include"; then
920 ac_x_includes
=$ac_dir
926 fi # $ac_x_includes = NO
928 if test "$ac_x_libraries" = NO
; then
929 # Check for the libraries.
931 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
932 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
934 # See if we find them without any special options.
935 # Don't add to $LIBS permanently.
937 LIBS
="-l$x_direct_test_library $LIBS"
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
942 int main() { return 0; }
944 ${x_direct_test_function}()
947 if { (eval echo configure
:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
950 # We can link X programs with no special library path.
955 # First see if replacing the include by lib works.
956 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
965 /usr
/local
/X11R
6/lib \
966 /usr
/local
/X11R
5/lib \
967 /usr
/local
/X11R
4/lib \
969 /usr
/local
/lib
/X11R6 \
970 /usr
/local
/lib
/X11R5 \
971 /usr
/local
/lib
/X11R4 \
980 /usr
/XFree86
/lib
/X11 \
984 /usr
/unsupported
/lib \
986 /usr
/local
/x11r
5/lib \
987 /usr
/lpp
/Xamples
/lib \
990 /usr
/openwin
/share
/lib \
993 for ac_extension
in a so sl
; do
994 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
995 ac_x_libraries
=$ac_dir
1003 fi # $ac_x_libraries = NO
1005 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1006 # Didn't find X anywhere. Cache the known absence of X.
1007 ac_cv_have_x
="have_x=no"
1009 # Record where we found X for the cache.
1010 ac_cv_have_x
="have_x=yes \
1011 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1015 eval "$ac_cv_have_x"
1018 if test "$have_x" != yes; then
1019 echo "$ac_t""$have_x" 1>&6
1022 # If each of the values was on the command line, it overrides each guess.
1023 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1024 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1025 # Update the cache value to reflect the command line values.
1026 ac_cv_have_x
="have_x=yes \
1027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1028 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1031 if test "$no_x" = yes; then
1032 # Not all programs may use this symbol, but it does not hurt to define it.
1033 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1035 if test -n "$x_includes"; then
1036 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1039 # It would be nice to have a more robust check for the -R ld option than
1040 # just checking for Solaris.
1041 # It would also be nice to do this for all -L options, not just this one.
1042 if test -n "$x_libraries"; then
1043 X_LIBS
="$X_LIBS -L$x_libraries"
1044 if test "`(uname) 2>/dev/null`" = SunOS
&&
1045 uname
-r |
grep '^5' >/dev
/null
; then
1046 X_LIBS
="$X_LIBS -R $x_libraries"
1050 # Check for libraries that X11R6 Xt/Xaw programs need.
1052 ac_save_LDFLAGS
="$LDFLAGS"
1053 LDFLAGS
="$LDFLAGS -L$x_libraries"
1054 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1055 # check for ICE first), but we must link in the order -lSM -lICE or
1056 # we get undefined symbols. So assume we have SM if we have ICE.
1057 # These have to be linked with before -lX11, unlike the other
1058 # libraries we check for below, so use a different variable.
1059 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1060 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1061 ac_lib_var
=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
1062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 ac_save_LIBS
="$LIBS"
1067 cat > conftest.
$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 /* Override any gcc2 internal prototype to avoid an error. */
1071 /* We use char because int might match the return type of a gcc2
1072 builtin and then its argument prototype would still apply. */
1073 char IceConnectionNumber();
1075 int main() { return 0; }
1077 IceConnectionNumber()
1080 if { (eval echo configure
:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1082 eval "ac_cv_lib_$ac_lib_var=yes"
1085 eval "ac_cv_lib_$ac_lib_var=no"
1088 LIBS
="$ac_save_LIBS"
1091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1092 echo "$ac_t""yes" 1>&6
1093 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1095 echo "$ac_t""no" 1>&6
1098 LDFLAGS
="$ac_save_LDFLAGS"
1100 # Check for system-dependent libraries X programs must link with.
1102 if test "$ISC" = yes; then
1103 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1105 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1106 # libraries were built with DECnet support. And karl@cs.umb.edu says
1107 # the Alpha needs dnet_stub (dnet does not exist).
1108 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1109 ac_lib_var
=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
1110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 ac_save_LIBS
="$LIBS"
1115 cat > conftest.
$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1118 /* Override any gcc2 internal prototype to avoid an error. */
1119 /* We use char because int might match the return type of a gcc2
1120 builtin and then its argument prototype would still apply. */
1123 int main() { return 0; }
1128 if { (eval echo configure
:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1130 eval "ac_cv_lib_$ac_lib_var=yes"
1133 eval "ac_cv_lib_$ac_lib_var=no"
1136 LIBS
="$ac_save_LIBS"
1139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1140 echo "$ac_t""yes" 1>&6
1141 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1143 echo "$ac_t""no" 1>&6
1146 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1147 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1148 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
1149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 ac_save_LIBS
="$LIBS"
1153 LIBS
="-ldnet_stub $LIBS"
1154 cat > conftest.
$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1157 /* Override any gcc2 internal prototype to avoid an error. */
1158 /* We use char because int might match the return type of a gcc2
1159 builtin and then its argument prototype would still apply. */
1162 int main() { return 0; }
1167 if { (eval echo configure
:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1169 eval "ac_cv_lib_$ac_lib_var=yes"
1172 eval "ac_cv_lib_$ac_lib_var=no"
1175 LIBS
="$ac_save_LIBS"
1178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1179 echo "$ac_t""yes" 1>&6
1180 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1182 echo "$ac_t""no" 1>&6
1187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1188 # to get the SysV transport functions.
1189 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1191 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1192 ac_lib_var
=`echo nsl'_'t_accept | tr './+\055' '__p_'`
1193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 ac_save_LIBS
="$LIBS"
1198 cat > conftest.
$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 /* Override any gcc2 internal prototype to avoid an error. */
1202 /* We use char because int might match the return type of a gcc2
1203 builtin and then its argument prototype would still apply. */
1206 int main() { return 0; }
1211 if { (eval echo configure
:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1213 eval "ac_cv_lib_$ac_lib_var=yes"
1216 eval "ac_cv_lib_$ac_lib_var=no"
1219 LIBS
="$ac_save_LIBS"
1222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1224 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1226 echo "$ac_t""no" 1>&6
1230 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1231 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1232 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1233 if test "`(uname) 2>/dev/null`" != IRIX
; then
1234 if test $ac_cv_lib_nsl_t_accept = no
; then
1235 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1236 ac_lib_var
=`echo socket'_'socket | tr './+\055' '__p_'`
1237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 ac_save_LIBS
="$LIBS"
1241 LIBS
="-lsocket $LIBS"
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 /* Override any gcc2 internal prototype to avoid an error. */
1246 /* We use char because int might match the return type of a gcc2
1247 builtin and then its argument prototype would still apply. */
1250 int main() { return 0; }
1255 if { (eval echo configure
:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1257 eval "ac_cv_lib_$ac_lib_var=yes"
1260 eval "ac_cv_lib_$ac_lib_var=no"
1263 LIBS
="$ac_save_LIBS"
1266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267 echo "$ac_t""yes" 1>&6
1268 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1270 echo "$ac_t""no" 1>&6
1274 # If we found -lnsl, use it to check for -lsocket. -- AJ
1275 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1276 ac_lib_var
=`echo socket'_'socket | tr './+\055' '__p_'`
1277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 ac_save_LIBS
="$LIBS"
1281 LIBS
="-lsocket -lnsl $LIBS"
1282 cat > conftest.
$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1285 /* Override any gcc2 internal prototype to avoid an error. */
1286 /* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1290 int main() { return 0; }
1295 if { (eval echo configure
:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1297 eval "ac_cv_lib_$ac_lib_var=yes"
1300 eval "ac_cv_lib_$ac_lib_var=no"
1303 LIBS
="$ac_save_LIBS"
1306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1310 echo "$ac_t""no" 1>&6
1318 for ac_prog
in 'bison -y' byacc
1320 # Extract the first word of "$ac_prog", so it can be a program name with args.
1321 set dummy
$ac_prog; ac_word
=$2
1322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$YACC"; then
1327 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1330 for ac_dir
in $PATH; do
1331 test -z "$ac_dir" && ac_dir
=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_YACC
="$ac_prog"
1340 YACC
="$ac_cv_prog_YACC"
1341 if test -n "$YACC"; then
1342 echo "$ac_t""$YACC" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 test -n "$YACC" && break
1349 test -n "$YACC" || YACC
="yacc"
1351 # Extract the first word of "flex", so it can be a program name with args.
1352 set dummy flex
; ac_word
=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 if test -n "$LEX"; then
1358 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1361 for ac_dir
in $PATH; do
1362 test -z "$ac_dir" && ac_dir
=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_LEX
="flex"
1369 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1372 LEX
="$ac_cv_prog_LEX"
1373 if test -n "$LEX"; then
1374 echo "$ac_t""$LEX" 1>&6
1376 echo "$ac_t""no" 1>&6
1379 if test -z "$LEXLIB"
1385 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
1386 ac_lib_var
=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
1387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 ac_save_LIBS
="$LIBS"
1391 LIBS
="-l$ac_lib $LIBS"
1392 cat > conftest.
$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 /* Override any gcc2 internal prototype to avoid an error. */
1396 /* We use char because int might match the return type of a gcc2
1397 builtin and then its argument prototype would still apply. */
1400 int main() { return 0; }
1405 if { (eval echo configure
:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1407 eval "ac_cv_lib_$ac_lib_var=yes"
1410 eval "ac_cv_lib_$ac_lib_var=no"
1413 LIBS
="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1425 # Extract the first word of "ranlib", so it can be a program name with args.
1426 set dummy ranlib
; ac_word
=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test -n "$RANLIB"; then
1432 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1434 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1435 for ac_dir
in $PATH; do
1436 test -z "$ac_dir" && ac_dir
=.
1437 if test -f $ac_dir/$ac_word; then
1438 ac_cv_prog_RANLIB
="ranlib"
1443 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1446 RANLIB
="$ac_cv_prog_RANLIB"
1447 if test -n "$RANLIB"; then
1448 echo "$ac_t""$RANLIB" 1>&6
1450 echo "$ac_t""no" 1>&6
1453 # Find a good install program. We prefer a C program (faster),
1454 # so one script is as good as another. But avoid the broken or
1455 # incompatible versions:
1456 # SysV /etc/install, /usr/sbin/install
1457 # SunOS /usr/etc/install
1458 # IRIX /sbin/install
1460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462 # ./install, which can be erroneously created by make from ./install.sh.
1463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464 if test -z "$INSTALL"; then
1465 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1469 for ac_dir
in $PATH; do
1470 # Account for people who put trailing slashes in PATH elements.
1472 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1474 # OSF1 and SCO ODT 3.0 have their own names for install.
1475 for ac_prog
in ginstall installbsd scoinst
install; do
1476 if test -f $ac_dir/$ac_prog; then
1477 if test $ac_prog = install &&
1478 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1479 # AIX install. It has an incompatible calling convention.
1480 # OSF/1 installbsd also uses dspmsg, but is usable.
1483 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL
="$ac_cv_path_install"
1497 # As a last resort, use the slow shell script. We don't cache a
1498 # path for INSTALL within a source directory, because that will
1499 # break other packages using the cache if that directory is
1500 # removed, or if the path is relative.
1501 INSTALL
="$ac_install_sh"
1504 echo "$ac_t""$INSTALL" 1>&6
1506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507 # It thinks the first close brace ends the variable substitution.
1508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1510 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1512 echo $ac_n "checking for -li386""... $ac_c" 1>&6
1513 ac_lib_var
=`echo i386'_'i386_set_ldt | tr './+\055' '__p_'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 ac_save_LIBS
="$LIBS"
1519 cat > conftest.
$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error. */
1523 /* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
1525 char i386_set_ldt();
1527 int main() { return 0; }
1532 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1534 eval "ac_cv_lib_$ac_lib_var=yes"
1537 eval "ac_cv_lib_$ac_lib_var=no"
1540 LIBS
="$ac_save_LIBS"
1543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1544 echo "$ac_t""yes" 1>&6
1545 LDLIBS
="$LDLIBS -li386"
1547 echo "$ac_t""no" 1>&6
1552 if test "x${GCC}" = "xyes"
1554 CFLAGS
="$CFLAGS -Wall"
1555 # If we cannot run a trivial program, we must be cross compiling.
1556 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1557 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 if test "$cross_compiling" = yes; then
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1568 { (eval echo configure
:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1569 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1578 echo "$ac_t""$ac_cv_c_cross" 1>&6
1579 cross_compiling
=$ac_cv_c_cross
1581 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
1582 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 if test "$cross_compiling" = yes; then
1586 ac_cv_c_gcc_strength_bug
="yes"
1588 cat > conftest.
$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1593 static int Array[3];
1596 for(i=0; i<B; i++) Array[i] = i - 3;
1597 exit( Array[1] != -2 );
1600 { (eval echo configure
:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1601 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1602 ac_cv_c_gcc_strength_bug
="no"
1604 ac_cv_c_gcc_strength_bug
="yes"
1610 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1611 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1613 CFLAGS
="$CFLAGS -fno-strength-reduce"
1618 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
1619 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1623 LIBS
="conftest_asm.s $LIBS"
1624 cat > conftest_asm.s
<<EOF
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1633 int main() { return 0; }
1635 if (ac_test) return 1
1638 if { (eval echo configure
:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1640 ac_cv_c_extern_prefix
="yes"
1643 ac_cv_c_extern_prefix
="no"
1650 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
1651 if test "$ac_cv_c_extern_prefix" = "yes"
1653 cat >> confdefs.h
<<\EOF
1654 #define NEED_UNDERSCORE_PREFIX 1
1660 for ac_func
in memmove tcgetattr
usleep
1662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 cat > conftest.
$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 /* System header to define __stub macros and hopefully few prototypes,
1670 which can conflict with char $ac_func(); below. */
1672 /* Override any gcc2 internal prototype to avoid an error. */
1673 /* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
1677 int main() { return 0; }
1680 /* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 if { (eval echo configure
:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1693 eval "ac_cv_func_$ac_func=yes"
1696 eval "ac_cv_func_$ac_func=no"
1701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1704 cat >> confdefs.h
<<EOF
1705 #define $ac_tr_func 1
1709 echo "$ac_t""no" 1>&6
1713 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1714 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 cat > conftest.
$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1720 #include <sys/types.h>
1721 #include <sys/stat.h>
1723 #if defined(S_ISBLK) && defined(S_IFDIR)
1724 # if S_ISBLK (S_IFDIR)
1729 #if defined(S_ISBLK) && defined(S_IFCHR)
1730 # if S_ISBLK (S_IFCHR)
1735 #if defined(S_ISLNK) && defined(S_IFREG)
1736 # if S_ISLNK (S_IFREG)
1741 #if defined(S_ISSOCK) && defined(S_IFREG)
1742 # if S_ISSOCK (S_IFREG)
1748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1749 egrep "You lose" >/dev
/null
2>&1; then
1751 ac_cv_header_stat_broken
=yes
1754 ac_cv_header_stat_broken
=no
1760 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1761 if test $ac_cv_header_stat_broken = yes; then
1762 cat >> confdefs.h
<<\EOF
1763 #define STAT_MACROS_BROKEN 1
1768 echo $ac_n "checking for working const""... $ac_c" 1>&6
1769 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1776 int main() { return 0; }
1779 /* Ultrix mips cc rejects this. */
1780 typedef int charset[2]; const charset x;
1781 /* SunOS 4.1.1 cc rejects this. */
1782 char const *const *ccp;
1784 /* NEC SVR4.0.2 mips cc rejects this. */
1785 struct point {int x, y;};
1786 static struct point const zero = {0,0};
1787 /* AIX XL C 1.02.0.0 rejects this.
1788 It does not let you subtract one const X* pointer from another in an arm
1789 of an if-expression whose if-part is not a constant expression */
1790 const char *g = "string";
1791 ccp = &g + (g ? g-g : 0);
1792 /* HPUX 7.0 cc rejects these. */
1795 ccp = (char const *const *) p;
1796 { /* SCO 3.2v4 cc rejects this. */
1798 char const *s = 0 ? (char *) 0 : (char const *) 0;
1802 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1804 const int *foo = &x[0];
1807 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1808 typedef const int *iptr;
1812 { /* AIX XL C 1.02.0.0 rejects this saying
1813 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1814 struct s { int j; const int *ap[3]; };
1815 struct s *b; b->j = 5;
1817 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1823 if { (eval echo configure
:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1834 echo "$ac_t""$ac_cv_c_const" 1>&6
1835 if test $ac_cv_c_const = no
; then
1836 cat >> confdefs.h
<<\EOF
1842 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1843 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure
:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err
=`grep -v '^ *+' conftest.out`
1857 if test -z "$ac_err"; then
1859 ac_cv_header_stdc
=yes
1863 ac_cv_header_stdc
=no
1867 if test $ac_cv_header_stdc = yes; then
1868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1869 cat > conftest.
$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1875 egrep "memchr" >/dev
/null
2>&1; then
1879 ac_cv_header_stdc
=no
1885 if test $ac_cv_header_stdc = yes; then
1886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893 egrep "free" >/dev
/null
2>&1; then
1897 ac_cv_header_stdc
=no
1903 if test $ac_cv_header_stdc = yes; then
1904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1905 if test "$cross_compiling" = yes; then
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1912 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1913 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1915 int main () { int i; for (i = 0; i < 256; i++)
1916 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1920 { (eval echo configure
:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1921 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1924 ac_cv_header_stdc
=no
1931 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1932 if test $ac_cv_header_stdc = yes; then
1933 cat >> confdefs.h
<<\EOF
1934 #define STDC_HEADERS 1
1939 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1940 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.
$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1952 egrep "size_t" >/dev
/null
2>&1; then
1954 ac_cv_type_size_t
=yes
1957 ac_cv_type_size_t
=no
1962 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1963 if test $ac_cv_type_size_t = no
; then
1964 cat >> confdefs.h
<<\EOF
1965 #define size_t unsigned
1972 MAKE_RULES
=Make.rules
1976 cat > confcache
<<\EOF
1977 # This file is a shell script that caches the results of configure
1978 # tests run on this system so they can be shared between configure
1979 # scripts and configure runs. It is not useful on other systems.
1980 # If it contains results you don't want to keep, you may remove or edit it.
1982 # By default, configure uses ./config.cache as the cache file,
1983 # creating it if it does not exist already. You can give configure
1984 # the --cache-file=FILE option to use a different cache file; that is
1985 # what configure does when it calls configure scripts in
1986 # subdirectories, so they share the cache.
1987 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1988 # config.status only pays attention to the cache file if you give it the
1989 # --recheck option to rerun configure.
1992 # Ultrix sh set writes to stderr and can't be redirected directly,
1993 # and sets the high bit in the cache file unless we assign to the vars.
1995 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1997 if cmp -s $cache_file confcache
; then
2000 if test -w $cache_file; then
2001 echo "updating cache $cache_file"
2002 cat confcache
> $cache_file
2004 echo "not updating unwritable cache $cache_file"
2009 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2011 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2012 # Let make expand exec_prefix.
2013 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2015 # Any assignment to VPATH causes Sun make to only execute
2016 # the first set of double-colon rules, so remove it if not needed.
2017 # If there is a colon in the path, we need to keep it.
2018 if test "x$srcdir" = x.
; then
2019 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2022 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2024 DEFS
=-DHAVE_CONFIG_H
2026 # Without the "./", some shells look in PATH for config.status.
2027 : ${CONFIG_STATUS=./config.status}
2029 echo creating
$CONFIG_STATUS
2030 rm -f $CONFIG_STATUS
2031 cat > $CONFIG_STATUS <<EOF
2033 # Generated automatically by configure.
2034 # Run this file to recreate the current configuration.
2035 # This directory was configured as follows,
2036 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2038 # $0 $ac_configure_args
2040 # Compiler output produced by configure, useful for debugging
2041 # configure, is in ./config.log if it exists.
2043 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2046 case "\$ac_option" in
2047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2048 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2049 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2050 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2051 echo "$CONFIG_STATUS generated by autoconf version 2.10-patched"
2053 -help | --help | --hel | --he | --h)
2054 echo "\$ac_cs_usage"; exit 0 ;;
2055 *) echo "\$ac_cs_usage"; exit 1 ;;
2059 ac_given_srcdir=$srcdir
2060 ac_given_INSTALL="$INSTALL"
2062 trap 'rm -fr `echo "
2069 graphics/win16drv/Makefile
2070 graphics/x11drv/Makefile
2082 programs/progman/Makefile
2083 programs/winhelp/Makefile
2088 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2090 cat >> $CONFIG_STATUS <<EOF
2092 # Protect against being on the right side of a sed subst in config.status.
2093 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2094 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2097 s%@CFLAGS@%$CFLAGS%g
2098 s%@CPPFLAGS@%$CPPFLAGS%g
2099 s%@CXXFLAGS@%$CXXFLAGS%g
2101 s%@LDFLAGS@%$LDFLAGS%g
2103 s%@exec_prefix@%$exec_prefix%g
2104 s%@prefix@%$prefix%g
2105 s%@program_transform_name@%$program_transform_name%g
2106 s%@bindir@%$bindir%g
2107 s%@sbindir@%$sbindir%g
2108 s%@libexecdir@%$libexecdir%g
2109 s%@datadir@%$datadir%g
2110 s%@sysconfdir@%$sysconfdir%g
2111 s%@sharedstatedir@%$sharedstatedir%g
2112 s%@localstatedir@%$localstatedir%g
2113 s%@libdir@%$libdir%g
2114 s%@includedir@%$includedir%g
2115 s%@oldincludedir@%$oldincludedir%g
2116 s%@infodir@%$infodir%g
2117 s%@mandir@%$mandir%g
2118 s%@LDLIBS@%$LDLIBS%g
2119 s%@MAIN_TARGET@%$MAIN_TARGET%g
2120 s%@OPTIONS@%$OPTIONS%g
2121 s%@SET_MAKE@%$SET_MAKE%g
2124 s%@X_CFLAGS@%$X_CFLAGS%g
2125 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2126 s%@X_LIBS@%$X_LIBS%g
2127 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2130 s%@LEXLIB@%$LEXLIB%g
2131 s%@RANLIB@%$RANLIB%g
2132 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2133 s%@INSTALL_DATA@%$INSTALL_DATA%g
2134 /@MAKE_RULES@/r $MAKE_RULES
2139 cat >> $CONFIG_STATUS <<EOF
2141 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2147 graphics/win16drv/Makefile
2148 graphics/x11drv/Makefile
2160 programs/progman/Makefile
2161 programs/winhelp/Makefile
2168 cat >> $CONFIG_STATUS <<\EOF
2169 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2170 # Support "outfile[:infile]", defaulting infile="outfile.in".
2172 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2173 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2174 *) ac_file_in
="${ac_file}.in" ;;
2177 # Adjust relative srcdir, etc. for subdirectories.
2179 # Remove last slash and all that follows it. Not all systems have dirname.
2180 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2182 # The file is in a subdirectory.
2183 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2184 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2185 # A "../" for each directory in $ac_dir_suffix.
2186 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2188 ac_dir_suffix
= ac_dots
=
2191 case "$ac_given_srcdir" in
2193 if test -z "$ac_dots"; then top_srcdir
=.
2194 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2195 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2197 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2198 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2201 case "$ac_given_INSTALL" in
2202 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2203 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2205 echo creating
"$ac_file"
2207 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2209 *Makefile
*) ac_comsub
="1i\\
2210 # $configure_input" ;;
2214 s%@configure_input@%$configure_input%g
2215 s%@srcdir@%$srcdir%g
2216 s%@top_srcdir@%$top_srcdir%g
2217 s%@INSTALL@%$INSTALL%g
2218 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2222 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2223 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2225 # ac_d sets the value in "#define NAME VALUE" lines.
2226 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2227 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2230 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2231 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2232 ac_uB
='\([ ]\)%\1#\2define\3'
2235 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2236 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2237 ac_eB
='$%\1#\2define\3'
2241 CONFIG_HEADERS
=${CONFIG_HEADERS-"include/config.h"}
2242 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2243 # Support "outfile[:infile]", defaulting infile="outfile.in".
2245 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2246 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2247 *) ac_file_in
="${ac_file}.in" ;;
2250 echo creating
$ac_file
2252 rm -f conftest.frag conftest.
in conftest.out
2253 cp $ac_given_srcdir/$ac_file_in conftest.
in
2257 # Transform confdefs.h into a sed script conftest.vals that substitutes
2258 # the proper values into config.h.in to produce config.h. And first:
2259 # Protect against being on the right side of a sed subst in config.status.
2260 # Protect against being in an unquoted here document in config.status.
2262 cat > conftest.hdr
<<\EOF
2265 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2269 sed -n -f conftest.hdr confdefs.h > conftest.vals
2272 # This sed command replaces #undef with comments. This is necessary, for
2273 # example, in the case of _POSIX_SOURCE, which is predefined and required
2274 # on some systems where configure will not decide to define it.
2275 cat >> conftest.vals <<\EOF
2276 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2279 # Break up conftest.vals because some shells have a limit on
2280 # the size of here documents, and old seds have small limits too.
2281 # Maximum number of lines to put in a single here document.
2282 ac_max_here_lines=12
2287 ac_lines=`grep -c . conftest.vals
`
2288 # grep -c gives empty output for an empty file on some AIX systems.
2289 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2290 # Write a limited-size here document to conftest.frag.
2291 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2292 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2294 sed -f conftest.frag conftest.in > conftest.out
2296 mv conftest.out conftest.in
2298 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2300 mv conftest.tail conftest.vals
2304 cat >> $CONFIG_STATUS <<\EOF
2305 rm -f conftest.frag conftest.h
2306 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2307 cat conftest.in >> conftest.h
2309 if cmp -s $ac_file conftest.h 2>/dev/null; then
2310 echo "$ac_file is unchanged"
2313 # Remove last slash and all that follows it. Not all systems have dirname.
2314 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2315 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2316 # The file is in a subdirectory.
2317 test ! -d "$ac_dir" && mkdir "$ac_dir"
2320 mv conftest.h $ac_file
2328 chmod +x $CONFIG_STATUS
2329 rm -fr confdefs* $ac_clean_files
2330 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2334 echo "Configure finished. Do 'make depend; make' to compile Wine."