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.4
6 # Copyright (C) 1992, 1993, 1994 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-x use the X Window System"
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
22 cache_file
=.
/config.cache
31 program_transform_name
=s
,x
,x
,
40 # Initialize some other variables.
47 # If the previous option needs an argument, assign it.
48 if test -n "$ac_prev"; then
49 eval "$ac_prev=\$ac_option"
55 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
59 # Accept the important Cygnus configure options, so we can diagnose typos.
63 -build |
--build |
--buil |
--bui |
--bu |
--b)
65 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
68 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
69 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
71 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
72 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
73 cache_file
="$ac_optarg" ;;
75 -disable-* |
--disable-*)
76 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
77 # Reject names that are not valid shell variable names.
78 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
79 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
81 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
82 eval "enable_${ac_feature}=no" ;;
84 -enable-* |
--enable-*)
85 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
86 # Reject names that are not valid shell variable names.
87 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
88 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
90 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
95 eval "enable_${ac_feature}='$ac_optarg'" ;;
97 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
98 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
99 |
--exec |
--exe |
--ex)
100 ac_prev
=exec_prefix
;;
101 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
102 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
103 |
--exec=* |
--exe=* |
--ex=*)
104 exec_prefix
="$ac_optarg" ;;
106 -gas |
--gas |
--ga |
--g)
107 # Obsolete; use --with-gas.
110 -help |
--help |
--hel |
--he)
111 # Omit some internal or obsolete options to make the list less imposing.
112 # This message is too long to be a string in the A/UX 3.1 sh.
114 Usage: configure [options] [host]
115 Options: [defaults in brackets after descriptions]
117 --cache-file=FILE cache test results in FILE
118 --help print this message
119 --no-create do not create output files
120 --quiet, --silent do not print \`checking...' messages
121 --version print the version of autoconf that created configure
122 Directory and file names:
123 --prefix=PREFIX install architecture-independent files in PREFIX
125 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
127 --srcdir=DIR find the sources in DIR [configure dir or ..]
128 --program-prefix=PREFIX prepend PREFIX to installed program names
129 --program-suffix=SUFFIX append SUFFIX to installed program names
130 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
132 --build=BUILD configure for building on BUILD [BUILD=HOST]
133 --host=HOST configure for HOST [guessed]
134 --target=TARGET configure for TARGET [TARGET=HOST]
135 Features and packages:
136 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
137 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
138 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
139 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
140 --x-includes=DIR X include files are in DIR
141 --x-libraries=DIR X library files are in DIR
142 --enable and --with options recognized:$ac_help
146 -host |
--host |
--hos |
--ho)
148 -host=* |
--host=* |
--hos=* |
--ho=*)
152 # Obsolete; use --without-fp.
155 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
159 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
160 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
163 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
165 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
166 prefix
="$ac_optarg" ;;
168 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
169 |
--program-pre |
--program-pr |
--program-p)
170 ac_prev
=program_prefix
;;
171 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
172 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
173 program_prefix
="$ac_optarg" ;;
175 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
176 |
--program-suf |
--program-su |
--program-s)
177 ac_prev
=program_suffix
;;
178 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
179 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
180 program_suffix
="$ac_optarg" ;;
182 -program-transform-name |
--program-transform-name \
183 |
--program-transform-nam |
--program-transform-na \
184 |
--program-transform-n |
--program-transform- \
185 |
--program-transform |
--program-transfor \
186 |
--program-transfo |
--program-transf \
187 |
--program-trans |
--program-tran \
188 |
--progr-tra |
--program-tr |
--program-t)
189 ac_prev
=program_transform_name
;;
190 -program-transform-name=* |
--program-transform-name=* \
191 |
--program-transform-nam=* |
--program-transform-na=* \
192 |
--program-transform-n=* |
--program-transform-=* \
193 |
--program-transform=* |
--program-transfor=* \
194 |
--program-transfo=* |
--program-transf=* \
195 |
--program-trans=* |
--program-tran=* \
196 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
197 program_transform_name
="$ac_optarg" ;;
199 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
200 |
-silent |
--silent |
--silen |
--sile |
--sil)
203 -site |
--site |
--sit)
205 -site=* |
--site=* |
--sit=*)
208 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
210 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
211 srcdir
="$ac_optarg" ;;
213 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
215 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
216 target
="$ac_optarg" ;;
218 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
221 -version |
--version |
--versio |
--versi |
--vers)
222 echo "configure generated by autoconf version 2.4"
226 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
231 ac_package
=`echo $ac_package| sed 's/-/_/g'`
236 eval "with_${ac_package}='$ac_optarg'" ;;
238 -without-* |
--without-*)
239 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
244 ac_package
=`echo $ac_package| sed 's/-/_/g'`
245 eval "with_${ac_package}=no" ;;
248 # Obsolete; use --with-x.
251 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
252 |
--x-incl |
--x-inc |
--x-in |
--x-i)
253 ac_prev
=x_includes
;;
254 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
255 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
256 x_includes
="$ac_optarg" ;;
258 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
259 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
260 ac_prev
=x_libraries
;;
261 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
262 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
263 x_libraries
="$ac_optarg" ;;
265 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
269 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
270 echo "configure: warning: $ac_option: invalid host type" 1>&2
272 if test "x$nonopt" != xNONE
; then
273 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
281 if test -n "$ac_prev"; then
282 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
285 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
287 # File descriptor usage:
290 # 2 errors and warnings
291 # 3 some systems may open it to /dev/tty
292 # 4 used on the Kubota Titan
293 # 6 checking for... messages and results
294 # 5 compiler messages saved in config.log
295 if test "$silent" = yes; then
303 This file contains any messages produced by compilers while
304 running configure, to aid debugging if configure makes a mistake.
307 # Strip out --no-create and --no-recursion so they do not pile up.
308 # Also quote any args containing shell metacharacters.
313 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
314 |
--no-cr |
--no-c) ;;
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
317 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
318 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
319 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
324 # Only set LANG and LC_ALL to C if already set.
325 # These must not be set unconditionally because not all systems understand
326 # e.g. LANG=C (notably SCO).
327 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
328 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
331 rm -rf conftest
* confdefs.h
332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
335 # A filename unique to this package, relative to the directory that
336 # configure is in, which we can look for to find out if srcdir is correct.
337 ac_unique_file
=controls
/edit.c
339 # Find the source files, if location was not specified.
340 if test -z "$srcdir"; then
341 ac_srcdir_defaulted
=yes
342 # Try the directory containing this script, then its parent.
344 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
345 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
347 if test ! -r $srcdir/$ac_unique_file; then
351 ac_srcdir_defaulted
=no
353 if test ! -r $srcdir/$ac_unique_file; then
354 if test "$ac_srcdir_defaulted" = yes; then
355 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
357 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
360 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
362 # Prefer explicitly selected file to automatically selected ones.
363 if test -z "$CONFIG_SITE"; then
364 if test "x$prefix" != xNONE
; then
365 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
367 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
370 for ac_site_file
in $CONFIG_SITE; do
371 if test -r "$ac_site_file"; then
372 echo "loading site script $ac_site_file"
377 if test -r "$cache_file"; then
378 echo "loading cache $cache_file"
381 echo "creating cache $cache_file"
386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
387 ac_cpp
='$CPP $CPPFLAGS'
388 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
389 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
391 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
392 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
393 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
400 ac_n
= ac_c
='\c' ac_t
=
406 # We want these before the checks, so the checks can modify their values.
407 test -z "$CFLAGS" && CFLAGS
="-g -O2 -Wall"
408 test -z "$LDFLAGS" && LDFLAGS
=-g
410 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
411 set dummy
${MAKE-make}; ac_make
=$2
412 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
413 echo $ac_n "(cached) $ac_c" 1>&6
415 cat > conftestmake
<<\EOF
417 @
echo 'ac_maketemp="${MAKE}"'
419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
420 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
421 if test -n "$ac_maketemp"; then
422 eval ac_cv_prog_make_
${ac_make}_set
=yes
424 eval ac_cv_prog_make_
${ac_make}_set
=no
428 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
429 echo "$ac_t""yes" 1>&6
432 echo "$ac_t""no" 1>&6
433 SET_MAKE
="MAKE=${MAKE-make}"
436 # Extract the first word of "gcc", so it can be a program name with args.
437 set dummy gcc
; ac_word
=$2
438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
439 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
440 echo $ac_n "(cached) $ac_c" 1>&6
442 if test -n "$CC"; then
443 ac_cv_prog_CC
="$CC" # Let the user override the test.
445 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
446 for ac_dir
in $PATH; do
447 test -z "$ac_dir" && ac_dir
=.
448 if test -f $ac_dir/$ac_word; then
454 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
458 if test -n "$CC"; then
459 echo "$ac_t""$CC" 1>&6
461 echo "$ac_t""no" 1>&6
465 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
466 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
467 echo $ac_n "(cached) $ac_c" 1>&6
469 cat > conftest.c
<<EOF
474 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
480 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
481 if test $ac_cv_prog_gcc = yes; then
483 if test "${CFLAGS+set}" != set; then
484 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
485 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
486 echo $ac_n "(cached) $ac_c" 1>&6
488 echo 'void f(){}' > conftest.c
489 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
497 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
498 if test $ac_cv_prog_gcc_g = yes; then
506 test "${CFLAGS+set}" = set || CFLAGS
="-g"
509 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
510 # On Suns, sometimes $CPP names a directory.
511 if test -n "$CPP" && test -d "$CPP"; then
514 if test -z "$CPP"; then
515 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
516 echo $ac_n "(cached) $ac_c" 1>&6
518 # This must be in double quotes, not single quotes, because CPP may get
519 # substituted into the Makefile and "${CC-cc}" will confuse make.
521 # On the NeXT, cc -E runs the code through the compiler's parser,
522 # not just through cpp.
523 cat > conftest.
$ac_ext <<EOF
524 #line 525 "configure"
525 #include "confdefs.h"
529 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
530 ac_err
=`grep -v '^ *+' conftest.out`
531 if test -z "$ac_err"; then
536 CPP
="${CC-cc} -E -traditional-cpp"
537 cat > conftest.
$ac_ext <<EOF
538 #line 539 "configure"
539 #include "confdefs.h"
543 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
544 ac_err
=`grep -v '^ *+' conftest.out`
545 if test -z "$ac_err"; then
555 ac_cv_prog_CPP
="$CPP"
557 CPP
="$ac_cv_prog_CPP"
559 ac_cv_prog_CPP
="$CPP"
561 echo "$ac_t""$CPP" 1>&6
563 # If we find X, set shell vars x_includes and x_libraries to the
564 # paths, otherwise set no_x=yes.
565 # Uses ac_ vars as temps to allow command line to override cache and checks.
566 # --without-x overrides everything else, but does not touch the cache.
567 echo $ac_n "checking for X""... $ac_c" 1>&6
569 # Check whether --with-x or --without-x was given.
571 if test -n "$withval"; then
575 if test "x$with_x" = xno
; then
578 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
581 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 # One or both of the vars are not set, and there is no cached value.
587 if mkdir conftestdir
; then
589 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
590 cat > Imakefile
<<'EOF'
592 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
594 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
597 eval `make acfindx 2>/dev/null | grep -v make`
598 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
599 for ac_extension
in a so sl
; do
600 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
601 test -f $ac_im_libdir/libX11.
$ac_extension; then
602 ac_im_usrlibdir
=$ac_im_libdir; break
605 # Screen out bogus values from the imake configuration.
606 case "$ac_im_incroot" in
608 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
610 case "$ac_im_usrlibdir" in
612 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
619 if test "$no_x" = yes; then
620 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
621 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
622 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
623 cat > conftest.
$ac_ext <<EOF
624 #line 625 "configure"
625 #include "confdefs.h"
626 #include <$x_direct_test_include>
628 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
629 ac_err
=`grep -v '^ *+' conftest.out`
630 if test -z "$ac_err"; then
645 /usr
/local
/X11R
6/include \
646 /usr
/local
/X11R
5/include \
647 /usr
/local
/X11R
4/include \
649 /usr
/local
/include
/X11R6 \
650 /usr
/local
/include
/X11R5 \
651 /usr
/local
/include
/X11R4 \
655 /usr
/local
/X11
/include \
656 /usr
/local
/include
/X11 \
660 /usr
/XFree86
/include
/X11 \
664 /usr
/unsupported
/include \
665 /usr
/athena
/include \
666 /usr
/local
/x11r
5/include \
667 /usr
/lpp
/Xamples
/include \
669 /usr
/openwin
/include \
670 /usr
/openwin
/share
/include \
673 if test -r "$ac_dir/$x_direct_test_include"; then
674 no_x
= ac_x_includes
=$ac_dir
681 # Check for the libraries.
682 # See if we find them without any special options.
683 # Don't add to $LIBS permanently.
685 LIBS
="-l$x_direct_test_library $LIBS"
686 cat > conftest.
$ac_ext <<EOF
687 #line 688 "configure"
688 #include "confdefs.h"
690 int main() { return 0; }
692 ${x_direct_test_function}()
695 if eval $ac_link; then
697 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
701 # First see if replacing the include by lib works.
702 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
711 /usr
/local
/X11R
6/lib \
712 /usr
/local
/X11R
5/lib \
713 /usr
/local
/X11R
4/lib \
715 /usr
/local
/lib
/X11R6 \
716 /usr
/local
/lib
/X11R5 \
717 /usr
/local
/lib
/X11R4 \
726 /usr
/XFree86
/lib
/X11 \
730 /usr
/unsupported
/lib \
732 /usr
/local
/x11r
5/lib \
733 /usr
/lpp
/Xamples
/lib \
736 /usr
/openwin
/share
/lib \
739 for ac_extension
in a so sl
; do
740 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
741 no_x
= ac_x_libraries
=$ac_dir
750 if test "$no_x" = yes; then
751 ac_cv_path_x
="no_x=yes"
753 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
760 if test "$no_x" = yes; then
761 echo "$ac_t""no" 1>&6
763 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
764 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
765 ac_cv_path_x
="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
766 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
769 for ac_prog
in 'bison -y' byacc
771 # Extract the first word of "$ac_prog", so it can be a program name with args.
772 set dummy
$ac_prog; ac_word
=$2
773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
774 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 if test -n "$YACC"; then
778 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
780 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
781 for ac_dir
in $PATH; do
782 test -z "$ac_dir" && ac_dir
=.
783 if test -f $ac_dir/$ac_word; then
784 ac_cv_prog_YACC
="$ac_prog"
791 YACC
="$ac_cv_prog_YACC"
792 if test -n "$YACC"; then
793 echo "$ac_t""$YACC" 1>&6
795 echo "$ac_t""no" 1>&6
798 test -n "$YACC" && break
800 test -n "$YACC" || YACC
="yacc"
802 # Extract the first word of "flex", so it can be a program name with args.
803 set dummy flex
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 if test -n "$LEX"; then
809 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
811 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
812 for ac_dir
in $PATH; do
813 test -z "$ac_dir" && ac_dir
=.
814 if test -f $ac_dir/$ac_word; then
815 ac_cv_prog_LEX
="flex"
820 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
823 LEX
="$ac_cv_prog_LEX"
824 if test -n "$LEX"; then
825 echo "$ac_t""$LEX" 1>&6
827 echo "$ac_t""no" 1>&6
836 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
841 LIBS
="-l$ac_lib $LIBS"
842 cat > conftest.
$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
846 int main() { return 0; }
851 if eval $ac_link; then
853 eval "ac_cv_lib_$ac_lib=yes"
856 eval "ac_cv_lib_$ac_lib=no"
862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
863 echo "$ac_t""yes" 1>&6
866 echo "$ac_t""no" 1>&6
871 if test -n "$x_includes" ; then
872 x_includes
="-I$x_includes"
874 if test -n "$x_no" ; then
887 for ac_func
in tcgetattr
889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 cat > conftest.
$ac_ext <<EOF
894 #line 895 "configure"
895 #include "confdefs.h"
896 /* System header to define __stub macros and hopefully few prototypes,
897 which can conflict with char $ac_func(); below. */
899 /* Override any gcc2 internal prototype to avoid an error. */
902 int main() { return 0; }
905 /* The GNU C library defines this for functions which it implements
906 to always fail with ENOSYS. Some functions are actually named
907 something starting with __ and the normal name is an alias. */
908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
916 if eval $ac_link; then
918 eval "ac_cv_func_$ac_func=yes"
921 eval "ac_cv_func_$ac_func=no"
926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
927 echo "$ac_t""yes" 1>&6
928 ac_tr_func
=HAVE_
`echo $ac_func | tr '[a-z]' '[A-Z]'`
929 cat >> confdefs.h
<<EOF
930 #define $ac_tr_func 1
934 echo "$ac_t""no" 1>&6
938 for ac_hdr
in stdlib.h
940 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
950 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 ac_err
=`grep -v '^ *+' conftest.out`
952 if test -z "$ac_err"; then
954 eval "ac_cv_header_$ac_safe=yes"
958 eval "ac_cv_header_$ac_safe=no"
962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
963 echo "$ac_t""yes" 1>&6
964 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
965 cat >> confdefs.h
<<EOF
970 echo "$ac_t""no" 1>&6
975 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
977 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
978 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
979 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.
$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
985 #include <sys/types.h>
987 int main() { return 0; }
992 if eval $ac_compile; then
994 eval "ac_cv_header_dirent_$ac_safe=yes"
997 eval "ac_cv_header_dirent_$ac_safe=no"
1002 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1003 echo "$ac_t""yes" 1>&6
1004 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1005 cat >> confdefs.h
<<EOF
1006 #define $ac_tr_hdr 1
1008 ac_header_dirent
=$ac_hdr; break
1010 echo "$ac_t""no" 1>&6
1013 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1014 if test $ac_header_dirent = dirent.h
; then
1015 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1016 if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 ac_save_LIBS
="$LIBS"
1021 cat > conftest.
$ac_ext <<EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1025 int main() { return 0; }
1030 if eval $ac_link; then
1032 eval "ac_cv_lib_dir=yes"
1035 eval "ac_cv_lib_dir=no"
1038 LIBS
="$ac_save_LIBS"
1041 if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
1042 echo "$ac_t""yes" 1>&6
1045 echo "$ac_t""no" 1>&6
1049 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1050 if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 ac_save_LIBS
="$LIBS"
1055 cat > conftest.
$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1059 int main() { return 0; }
1064 if eval $ac_link; then
1066 eval "ac_cv_lib_x=yes"
1069 eval "ac_cv_lib_x=no"
1072 LIBS
="$ac_save_LIBS"
1075 if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
1076 echo "$ac_t""yes" 1>&6
1079 echo "$ac_t""no" 1>&6
1084 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1085 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.
$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1091 #include <sys/types.h>
1092 #include <sys/stat.h>
1094 #if defined(S_ISBLK) && defined(S_IFDIR)
1095 # if S_ISBLK (S_IFDIR)
1100 #if defined(S_ISBLK) && defined(S_IFCHR)
1101 # if S_ISBLK (S_IFCHR)
1106 #if defined(S_ISLNK) && defined(S_IFREG)
1107 # if S_ISLNK (S_IFREG)
1112 #if defined(S_ISSOCK) && defined(S_IFREG)
1113 # if S_ISSOCK (S_IFREG)
1119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1120 egrep "You lose" >/dev
/null
2>&1; then
1122 ac_cv_header_stat_broken
=yes
1125 ac_cv_header_stat_broken
=no
1130 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1131 if test $ac_cv_header_stat_broken = yes; then
1132 cat >> confdefs.h
<<\EOF
1133 #define STAT_MACROS_BROKEN 1
1138 echo $ac_n "checking for working const""... $ac_c" 1>&6
1139 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.
$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1146 int main() { return 0; }
1149 /* Ultrix mips cc rejects this. */
1150 typedef int charset[2]; const charset x;
1151 /* SunOS 4.1.1 cc rejects this. */
1152 char const *const *ccp;
1154 /* NEC SVR4.0.2 mips cc rejects this. */
1155 struct point {int x, y;};
1156 static struct point const zero;
1157 /* AIX XL C 1.02.0.0 rejects this.
1158 It does not let you subtract one const X* pointer from another in an arm
1159 of an if-expression whose if-part is not a constant expression */
1160 const char *g = "string";
1161 ccp = &g + (g ? g-g : 0);
1162 /* HPUX 7.0 cc rejects these. */
1165 ccp = (char const *const *) p;
1166 { /* SCO 3.2v4 cc rejects this. */
1168 char const *s = 0 ? (char *) 0 : (char const *) 0;
1172 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1174 const int *foo = &x[0];
1177 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1178 typedef const int *iptr;
1182 { /* AIX XL C 1.02.0.0 rejects this saying
1183 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1184 struct s { int j; const int *ap[3]; };
1185 struct s *b; b->j = 5;
1187 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1193 if eval $ac_compile; then
1203 echo "$ac_t""$ac_cv_c_const" 1>&6
1204 if test $ac_cv_c_const = no
; then
1205 cat >> confdefs.h
<<\EOF
1211 # If we cannot run a trivial program, we must be cross compiling.
1212 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1213 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test "$cross_compiling" = yes; then
1219 cat > conftest.
$ac_ext <<EOF
1220 #line 1221 "configure"
1221 #include "confdefs.h"
1225 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1233 cross_compiling
=$ac_cv_c_cross
1234 echo "$ac_t""$ac_cv_c_cross" 1>&6
1236 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1237 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.
$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1248 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 ac_err
=`grep -v '^ *+' conftest.out`
1250 if test -z "$ac_err"; then
1252 ac_cv_header_stdc
=yes
1256 ac_cv_header_stdc
=no
1260 if test $ac_cv_header_stdc = yes; then
1261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1268 egrep "memchr" >/dev
/null
2>&1; then
1272 ac_cv_header_stdc
=no
1278 if test $ac_cv_header_stdc = yes; then
1279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1280 cat > conftest.
$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1286 egrep "free" >/dev
/null
2>&1; then
1290 ac_cv_header_stdc
=no
1296 if test $ac_cv_header_stdc = yes; then
1297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1298 if test "$cross_compiling" = yes; then
1299 ac_cv_header_stdc
=no
1301 cat > conftest.
$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1305 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1306 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1308 int main () { int i; for (i = 0; i < 256; i++)
1309 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1314 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1317 ac_cv_header_stdc
=no
1323 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1324 if test $ac_cv_header_stdc = yes; then
1325 cat >> confdefs.h
<<\EOF
1326 #define STDC_HEADERS 1
1331 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1332 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 #include <sys/types.h>
1343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1344 egrep "size_t" >/dev
/null
2>&1; then
1346 ac_cv_type_size_t
=yes
1349 ac_cv_type_size_t
=no
1354 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1355 if test $ac_cv_type_size_t = no
; then
1356 cat >> confdefs.h
<<\EOF
1357 #define size_t unsigned
1363 if test -z "${top_srcdir}"; then
1366 TOP_SRCDIR
="${top_srcdir}"
1368 echo $ac_n "checking for language in autoconf.h""... $ac_c" 1>&6
1369 if test -f ${TOP_SRCDIR}/autoconf.h
; then
1370 LANG
=`tr ' ' '\n' < ${TOP_SRCDIR}/autoconf.h | grep '\-ALANG' | head -1`
1371 if test -n "${LANG}"; then
1372 echo "$ac_t""`echo "${LANG}" | cut -b9-10`" 1>&6
1375 if test -z "${LANG}"; then
1376 echo "$ac_t""no" 1>&6
1380 if test -z "${LANG}"; then
1381 echo $ac_n "checking for language through domainname""... $ac_c" 1>&6
1383 if test `echo "${DNAME}" | grep -c "\.no"` -ne 0; then
1385 echo "$ac_t""No" 1>&6
1387 if test `echo "${DNAME}" | grep -c "\.de"` -ne 0; then
1389 echo "$ac_t""De" 1>&6
1391 if test `echo "${DNAME}" | grep -c "\.uk"` -ne 0; then
1393 echo "$ac_t""En" 1>&6
1395 if test `echo "${DNAME}" | grep -c "\.com"` -ne 0; then
1397 echo "$ac_t""En" 1>&6
1399 if test `echo "${DNAME}" | grep -c "\.edu"` -ne 0; then
1401 echo "$ac_t""En" 1>&6
1403 if test `echo "${DNAME}" | grep -c "\.gov"` -ne 0; then
1405 echo "$ac_t""En" 1>&6
1407 if test -z "${LANG}"; then
1408 echo "$ac_t""no" 1>&6
1412 if test -z "${LANG}"; then
1413 echo $ac_n "checking for linux""... $ac_c" 1>&6
1414 cat > conftest.
$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1423 egrep "yes" >/dev
/null
2>&1; then
1425 echo "$ac_t""yes" 1>&6
1426 echo $ac_n "checking for language by examining keymap""... $ac_c" 1>&6
1427 if test `dumpkeys | grep "keycode *26" | tr ' ' '\n' | grep -c udiaeresis` -ne 0; then
1428 echo "$ac_t""De" 1>&6
1431 echo "$ac_t""no" 1>&6
1437 echo "$ac_t""no" 1>&6
1445 echo $ac_n "checking for wine.ini in autoconf.h""... $ac_c" 1>&6
1446 if test -f ${TOP_SRCDIR}/autoconf.h
; then
1447 if test `grep -c WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h` -ne 0; then
1448 WINE_INI_GLOBAL
=`grep WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h | tr ' ' '\n' | tail -1`
1449 echo "$ac_t""${WINE_INI_GLOBAL}" 1>&6
1452 if test -z "${WINE_INI_GLOBAL}"; then
1453 echo "$ac_t""no" 1>&6
1456 if test -z "${WINE_INI_GLOBAL}"; then
1457 echo $ac_n "checking for /usr/local/etc/wine.conf""... $ac_c" 1>&6
1458 if test -f /usr
/local
/etc
/wine.conf
; then
1459 echo "$ac_t""yes" 1>&6
1460 WINE_INI_GLOBAL
='"/usr/local/etc/wine.conf"'
1462 echo "$ac_t""no" 1>&6
1463 WINE_INI_GLOBAL
="\"${TOP_SRCDIR}/wine.ini\""
1469 test -z "$LDFLAGS" && LDFLAGS
=-g
1473 cat > confcache
<<\EOF
1474 # This file is a shell script that caches the results of configure
1475 # tests run on this system so they can be shared between configure
1476 # scripts and configure runs. It is not useful on other systems.
1477 # If it contains results you don't want to keep, you may remove or edit it.
1479 # By default, configure uses ./config.cache as the cache file,
1480 # creating it if it does not exist already. You can give configure
1481 # the --cache-file=FILE option to use a different cache file; that is
1482 # what configure does when it calls configure scripts in
1483 # subdirectories, so they share the cache.
1484 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1485 # config.status only pays attention to the cache file if you give it the
1486 # --recheck option to rerun configure.
1489 # Ultrix sh set writes to stderr and can't be redirected directly,
1490 # and sets the high bit in the cache file unless we assign to the vars.
1492 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1494 if cmp -s $cache_file confcache
; then
1497 if test -w $cache_file; then
1498 echo "updating cache $cache_file"
1499 cat confcache
> $cache_file
1501 echo "not updating unwritable cache $cache_file"
1506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1508 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1509 # Let make expand exec_prefix.
1510 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1512 # Any assignment to VPATH causes Sun make to only execute
1513 # the first set of double-colon rules, so remove it if not needed.
1514 # If there is a colon in the path, we need to keep it.
1515 if test "x$srcdir" = x.
; then
1516 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1519 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1521 DEFS
=-DHAVE_CONFIG_H
1523 # Without the "./", some shells look in PATH for config.status.
1524 : ${CONFIG_STATUS=./config.status}
1526 echo creating
$CONFIG_STATUS
1527 rm -f $CONFIG_STATUS
1528 cat > $CONFIG_STATUS <<EOF
1530 # Generated automatically by configure.
1531 # Run this file to recreate the current configuration.
1532 # This directory was configured as follows,
1533 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1535 # $0 $ac_configure_args
1537 # Compiler output produced by configure, useful for debugging
1538 # configure, is in ./config.log if it exists.
1540 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1543 case "\$ac_option" in
1544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1545 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1546 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1547 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1548 echo "$CONFIG_STATUS generated by autoconf version 2.4"
1550 -help | --help | --hel | --he | --h)
1551 echo "\$ac_cs_usage"; exit 0 ;;
1552 *) echo "\$ac_cs_usage"; exit 1 ;;
1556 ac_given_srcdir=$srcdir
1558 trap 'rm -fr `echo "controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile Makefile autoconf.h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1560 # Protect against being on the right side of a sed subst in config.status.
1561 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1562 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1565 s%@CFLAGS@%$CFLAGS%g
1566 s%@CPPFLAGS@%$CPPFLAGS%g
1567 s%@CXXFLAGS@%$CXXFLAGS%g
1569 s%@LDFLAGS@%$LDFLAGS%g
1571 s%@exec_prefix@%$exec_prefix%g
1572 s%@prefix@%$prefix%g
1573 s%@program_transform_name@%$program_transform_name%g
1574 s%@SET_MAKE@%$SET_MAKE%g
1579 s%@LEXLIB@%$LEXLIB%g
1580 s%@AXFILES@%$AXFILES%g
1581 s%@x_includes@%$x_includes%g
1582 s%@x_libraries@%$x_libraries%g
1583 s%@LIBOBJS@%$LIBOBJS%g
1585 s%@LDCOMBINEFLAGS@%$LDCOMBINEFLAGS%g
1587 s%@WINE_INI_GLOBAL@%$WINE_INI_GLOBAL%g
1591 cat >> $CONFIG_STATUS <<EOF
1593 CONFIG_FILES=\${CONFIG_FILES-"controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile Makefile autoconf.h"}
1595 cat >> $CONFIG_STATUS <<\EOF
1596 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
1597 # Support "outfile[:infile]", defaulting infile="outfile.in".
1599 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1600 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1601 *) ac_file_in
="${ac_file}.in" ;;
1604 # Adjust relative srcdir, etc. for subdirectories.
1606 # Remove last slash and all that follows it. Not all systems have dirname.
1607 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
1609 # The file is in a subdirectory.
1610 test ! -d "$ac_dir" && mkdir
"$ac_dir"
1611 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
1612 # A "../" for each directory in $ac_dir_suffix.
1613 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1615 ac_dir_suffix
= ac_dots
=
1618 case "$ac_given_srcdir" in
1620 if test -z "$ac_dots"; then top_srcdir
=.
1621 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1622 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
1624 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1625 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
1628 echo creating
"$ac_file"
1630 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1632 *Makefile
*) ac_comsub
="1i\\
1633 # $configure_input" ;;
1637 s%@configure_input@%$configure_input%g
1638 s%@srcdir@%$srcdir%g
1639 s%@top_srcdir@%$top_srcdir%g
1640 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
1644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1647 # ac_d sets the value in "#define NAME VALUE" lines.
1648 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1649 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
1652 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1653 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1654 ac_uB
='\([ ]\)%\1#\2define\3'
1657 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1658 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1659 ac_eB
='$%\1#\2define\3'
1663 CONFIG_HEADERS
=${CONFIG_HEADERS-"include/config.h"}
1664 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
1665 # Support "outfile[:infile]", defaulting infile="outfile.in".
1667 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
1668 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
1669 *) ac_file_in
="${ac_file}.in" ;;
1672 echo creating
$ac_file
1674 rm -f conftest.frag conftest.
in conftest.out
1675 cp $ac_given_srcdir/$ac_file_in conftest.
in
1679 # Transform confdefs.h into a sed script conftest.vals that substitutes
1680 # the proper values into config.h.in to produce config.h. And first:
1681 # Protect against being on the right side of a sed subst in config.status.
1682 # Protect against being in an unquoted here document in config.status.
1684 cat > conftest.hdr
<<\EOF
1687 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1691 sed -n -f conftest.hdr confdefs.h > conftest.vals
1694 # This sed command replaces #undef with comments. This is necessary, for
1695 # example, in the case of _POSIX_SOURCE, which is predefined and required
1696 # on some systems where configure will not decide to define it.
1697 cat >> conftest.vals <<\EOF
1698 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1701 # Break up conftest.vals because some shells have a limit on
1702 # the size of here documents, and old seds have small limits too.
1703 # Maximum number of lines to put in a single here document.
1704 ac_max_here_lines=12
1709 ac_lines=`grep -c . conftest.vals
`
1710 # grep -c gives empty output for an empty file on some AIX systems.
1711 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1712 # Write a limited-size here document to conftest.frag.
1713 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1714 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1716 sed -f conftest.frag conftest.in > conftest.out
1718 mv conftest.out conftest.in
1720 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1722 mv conftest.tail conftest.vals
1726 cat >> $CONFIG_STATUS <<\EOF
1727 rm -f conftest.frag conftest.h
1728 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1729 cat conftest.in >> conftest.h
1731 if cmp -s $ac_file conftest.h 2>/dev/null; then
1732 echo "$ac_file is unchanged"
1736 mv conftest.h $ac_file
1744 chmod +x $CONFIG_STATUS
1745 rm -fr confdefs* $ac_clean_files
1746 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1750 echo "Configure finished. Do 'make depend; make' to compile Wine."