3 # From configure.in Id: configure.in
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
27 --enable-debug enable assertions and additional debugging routines"
29 --enable-gcc_inline enable gcc inline C-extension"
31 --enable-profile enable profiling"
33 --enable-autodoc enable auto documentation"
35 --enable-firmjni check for tools necesarry to construct a java native interface for Firm"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file=./config.cache
50 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host | --host | --hos | --ho)
213 -host=* | --host=* | --hos=* | --ho=*)
216 -includedir | --includedir | --includedi | --included | --include \
217 | --includ | --inclu | --incl | --inc)
218 ac_prev=includedir ;;
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220 | --includ=* | --inclu=* | --incl=* | --inc=*)
221 includedir="$ac_optarg" ;;
223 -infodir | --infodir | --infodi | --infod | --info | --inf)
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226 infodir="$ac_optarg" ;;
228 -libdir | --libdir | --libdi | --libd)
230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
231 libdir="$ac_optarg" ;;
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234 | --libexe | --libex | --libe)
235 ac_prev=libexecdir ;;
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237 | --libexe=* | --libex=* | --libe=*)
238 libexecdir="$ac_optarg" ;;
240 -localstatedir | --localstatedir | --localstatedi | --localstated \
241 | --localstate | --localstat | --localsta | --localst \
242 | --locals | --local | --loca | --loc | --lo)
243 ac_prev=localstatedir ;;
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247 localstatedir="$ac_optarg" ;;
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252 mandir="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268 | --oldin | --oldi | --old | --ol | --o)
269 ac_prev=oldincludedir ;;
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273 oldincludedir="$ac_optarg" ;;
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278 prefix="$ac_optarg" ;;
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
281 | --program-pre | --program-pr | --program-p)
282 ac_prev=program_prefix ;;
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285 program_prefix="$ac_optarg" ;;
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
288 | --program-suf | --program-su | --program-s)
289 ac_prev=program_suffix ;;
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292 program_suffix="$ac_optarg" ;;
294 -program-transform-name | --program-transform-name \
295 | --program-transform-nam | --program-transform-na \
296 | --program-transform-n | --program-transform- \
297 | --program-transform | --program-transfor \
298 | --program-transfo | --program-transf \
299 | --program-trans | --program-tran \
300 | --progr-tra | --program-tr | --program-t)
301 ac_prev=program_transform_name ;;
302 -program-transform-name=* | --program-transform-name=* \
303 | --program-transform-nam=* | --program-transform-na=* \
304 | --program-transform-n=* | --program-transform-=* \
305 | --program-transform=* | --program-transfor=* \
306 | --program-transfo=* | --program-transf=* \
307 | --program-trans=* | --program-tran=* \
308 | --progr-tra=* | --program-tr=* | --program-t=*)
309 program_transform_name="$ac_optarg" ;;
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312 | -silent | --silent | --silen | --sile | --sil)
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319 sbindir="$ac_optarg" ;;
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323 | --sharedst | --shareds | --shared | --share | --shar \
325 ac_prev=sharedstatedir ;;
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330 sharedstatedir="$ac_optarg" ;;
332 -site | --site | --sit)
334 -site=* | --site=* | --sit=*)
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340 srcdir="$ac_optarg" ;;
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343 | --syscon | --sysco | --sysc | --sys | --sy)
344 ac_prev=sysconfdir ;;
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347 sysconfdir="$ac_optarg" ;;
349 -target | --target | --targe | --targ | --tar | --ta | --t)
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352 target="$ac_optarg" ;;
354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 -version | --version | --versio | --versi | --vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* | --without-*)
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388 | --x-incl | --x-inc | --x-in | --x-i)
389 ac_prev=x_includes ;;
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392 x_includes="$ac_optarg" ;;
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396 ac_prev=x_libraries ;;
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399 x_libraries="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c) ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file=ir/ir/ircons.c
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE; then
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp='$CPP $CPPFLAGS'
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
546 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
547 if test -f $ac_dir/install-sh; then
549 ac_install_sh="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh; then
553 ac_install_sh="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess=$ac_aux_dir/config.guess
561 ac_config_sub=$ac_aux_dir/config.sub
562 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
566 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
567 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
568 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile \
569 firmjni/Makefile firmjni/build_firm_jni firmjni/testprograms/Makefile"
573 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
578 # Check whether --enable-debug or --disable-debug was given.
579 if test "${enable_debug+set}" = set; then
580 enableval="$enable_debug"
581 if test "$enableval" = yes; then
582 cat >> confdefs.h <<\EOF
583 #define DEBUG_libfirm 1
587 cat >> confdefs.h <<\EOF
596 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
597 if test "${enable_gcc_inline+set}" = set; then
598 enableval="$enable_gcc_inline"
599 if test "$enableval" = yes; then
600 cat >> confdefs.h <<\EOF
601 #define USE_GCC_INLINE 1
610 # Check whether --enable-profile or --disable-profile was given.
611 if test "${enable_profile+set}" = set; then
612 enableval="$enable_profile"
613 if test "$enableval"=yes; then
614 enable_profile_libfirm=yes
617 enable_profile_libfirm=no
622 # Check whether --enable-autodoc or --disable-autodoc was given.
623 if test "${enable_autodoc+set}" = set; then
624 enableval="$enable_autodoc"
625 if test "$enableval"=yes; then
626 enable_auto_documentation=yes
629 enable_auto_documentation=no
635 # Check whether --enable-firmjni or --disable-firmjni was given.
636 if test "${enable_firmjni+set}" = set; then
637 enableval="$enable_firmjni"
638 if test "$enableval"=yes; then
649 # Extract the first word of "gcc", so it can be a program name with args.
650 set dummy gcc; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 echo "configure:653: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
656 if test -n "$CC"; then
657 ac_cv_prog_CC="$CC" # Let the user override the test.
659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 for ac_dir in $ac_dummy; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 if test -z "$CC"; then
679 # Extract the first word of "cc", so it can be a program name with args.
680 set dummy cc; ac_word=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 if test -n "$CC"; then
687 ac_cv_prog_CC="$CC" # Let the user override the test.
689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
692 for ac_dir in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir=.
694 if test -f $ac_dir/$ac_word; then
695 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
704 if test $ac_prog_rejected = yes; then
705 # We found a bogon in the path, so make sure we never use it.
706 set dummy $ac_cv_prog_CC
708 if test $# -gt 0; then
709 # We chose a different compiler from the bogus one.
710 # However, it has the same basename, so the bogon will be chosen
711 # first if we set CC to just the basename; use the full file name.
713 set dummy "$ac_dir/$ac_word" "$@"
721 if test -n "$CC"; then
722 echo "$ac_t""$CC" 1>&6
724 echo "$ac_t""no" 1>&6
727 if test -z "$CC"; then
730 # Extract the first word of "cl", so it can be a program name with args.
731 set dummy cl; ac_word=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 if test -n "$CC"; then
738 ac_cv_prog_CC="$CC" # Let the user override the test.
740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 for ac_dir in $ac_dummy; do
743 test -z "$ac_dir" && ac_dir=.
744 if test -f $ac_dir/$ac_word; then
753 if test -n "$CC"; then
754 echo "$ac_t""$CC" 1>&6
756 echo "$ac_t""no" 1>&6
761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp='$CPP $CPPFLAGS'
770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling=$ac_cv_prog_cc_cross
774 cat > conftest.$ac_ext << EOF
776 #line 777 "configure"
777 #include "confdefs.h"
781 if { (eval echo configure:782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
782 ac_cv_prog_cc_works=yes
783 # If we can't run a trivial program, we are probably using a cross compiler.
784 if (./conftest; exit) 2>/dev/null; then
785 ac_cv_prog_cc_cross=no
787 ac_cv_prog_cc_cross=yes
790 echo "configure: failed program was:" >&5
791 cat conftest.$ac_ext >&5
792 ac_cv_prog_cc_works=no
796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
797 ac_cpp='$CPP $CPPFLAGS'
798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
800 cross_compiling=$ac_cv_prog_cc_cross
802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
803 if test $ac_cv_prog_cc_works = no; then
804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
807 echo "configure:808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
809 cross_compiling=$ac_cv_prog_cc_cross
811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
812 echo "configure:813: checking whether we are using GNU C" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 cat > conftest.c <<EOF
821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
830 if test $ac_cv_prog_gcc = yes; then
836 ac_test_CFLAGS="${CFLAGS+set}"
837 ac_save_CFLAGS="$CFLAGS"
839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
840 echo "configure:841: checking whether ${CC-cc} accepts -g" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 echo 'void f(){}' > conftest.c
845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
854 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
855 if test "$ac_test_CFLAGS" = set; then
856 CFLAGS="$ac_save_CFLAGS"
857 elif test $ac_cv_prog_cc_g = yes; then
858 if test "$GCC" = yes; then
864 if test "$GCC" = yes; then
873 # Make sure we can run config.sub.
874 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
875 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
878 echo $ac_n "checking host system type""... $ac_c" 1>&6
879 echo "configure:880: checking host system type" >&5
882 case "$host_alias" in
886 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
887 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
889 *) host_alias=$nonopt ;;
893 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
894 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$host" 1>&6
899 echo $ac_n "checking build system type""... $ac_c" 1>&6
900 echo "configure:901: checking build system type" >&5
903 case "$build_alias" in
906 NONE) build_alias=$host_alias ;;
907 *) build_alias=$nonopt ;;
911 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
912 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915 echo "$ac_t""$build" 1>&6
917 if test $host != $build; then
918 ac_tool_prefix=${host_alias}-
923 if test -z "$LD" && test "$GCC" = yes; then
924 # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
925 set dummy ${ac_tool_prefix}gld; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 if test -n "$LD"; then
932 ac_cv_prog_LD="$LD" # Let the user override the test.
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
936 for ac_dir in $ac_dummy; do
937 test -z "$ac_dir" && ac_dir=.
938 if test -f $ac_dir/$ac_word; then
939 ac_cv_prog_LD="${ac_tool_prefix}gld"
947 if test -n "$LD"; then
948 echo "$ac_t""$LD" 1>&6
950 echo "$ac_t""no" 1>&6
954 if test -z "$ac_cv_prog_LD"; then
955 if test -n "$ac_tool_prefix"; then
956 # Extract the first word of "gld", so it can be a program name with args.
957 set dummy gld; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 if test -n "$LD"; then
964 ac_cv_prog_LD="$LD" # Let the user override the test.
966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
968 for ac_dir in $ac_dummy; do
969 test -z "$ac_dir" && ac_dir=.
970 if test -f $ac_dir/$ac_word; then
976 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
980 if test -n "$LD"; then
981 echo "$ac_t""$LD" 1>&6
983 echo "$ac_t""no" 1>&6
992 if test -z "$LD"; then
993 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
994 set dummy ${ac_tool_prefix}ld; ac_word=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 if test -n "$LD"; then
1001 ac_cv_prog_LD="$LD" # Let the user override the test.
1003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1005 for ac_dir in $ac_dummy; do
1006 test -z "$ac_dir" && ac_dir=.
1007 if test -f $ac_dir/$ac_word; then
1008 ac_cv_prog_LD="${ac_tool_prefix}ld"
1013 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1017 if test -n "$LD"; then
1018 echo "$ac_t""$LD" 1>&6
1020 echo "$ac_t""no" 1>&6
1027 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
1028 echo "configure:1029: checking whether $LD accepts -r" >&5
1029 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1033 libfirm_cv_prog_ld_r=no
1035 cat > conftest.$ac_ext <<EOF
1036 int foo() { return 0; }
1038 if eval $ac_compile && mv conftest.o conftest2.o; then
1039 cat > conftest.$ac_ext <<EOF
1040 int main() { return foo(); }
1042 if eval $ac_compile; then
1043 if $LD -r -o conftest conftest.o conftest2.o; then
1044 libfirm_cv_prog_ld_r=yes
1052 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1055 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1056 { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1059 # Extract the first word of "ar", so it can be a program name with args.
1060 set dummy ar; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 if test -n "$AR"; then
1067 ac_cv_prog_AR="$AR" # Let the user override the test.
1069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 if test -f $ac_dir/$ac_word; then
1074 ac_cv_prog_AR=""ar""
1079 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1083 if test -n "$AR"; then
1084 echo "$ac_t""$AR" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test "$AR" != "ar"; then
1090 { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1093 # Extract the first word of "tar", so it can be a program name with args.
1094 set dummy tar; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test -n "$TAR"; then
1101 ac_cv_prog_TAR="$TAR" # Let the user override the test.
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1105 for ac_dir in $ac_dummy; do
1106 test -z "$ac_dir" && ac_dir=.
1107 if test -f $ac_dir/$ac_word; then
1108 ac_cv_prog_TAR=""tar""
1113 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1116 TAR="$ac_cv_prog_TAR"
1117 if test -n "$TAR"; then
1118 echo "$ac_t""$TAR" 1>&6
1120 echo "$ac_t""no" 1>&6
1123 if test "$TAR" != "tar"; then
1124 { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1128 # Extract the first word of "ranlib", so it can be a program name with args.
1129 set dummy ranlib; ac_word=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 if test -n "$RANLIB"; then
1136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1140 for ac_dir in $ac_dummy; do
1141 test -z "$ac_dir" && ac_dir=.
1142 if test -f $ac_dir/$ac_word; then
1143 ac_cv_prog_RANLIB="ranlib"
1148 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1151 RANLIB="$ac_cv_prog_RANLIB"
1152 if test -n "$RANLIB"; then
1153 echo "$ac_t""$RANLIB" 1>&6
1155 echo "$ac_t""no" 1>&6
1159 # Find a good install program. We prefer a C program (faster),
1160 # so one script is as good as another. But avoid the broken or
1161 # incompatible versions:
1162 # SysV /etc/install, /usr/sbin/install
1163 # SunOS /usr/etc/install
1164 # IRIX /sbin/install
1166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1169 # ./install, which can be erroneously created by make from ./install.sh.
1170 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1171 echo "configure:1172: checking for a BSD compatible install" >&5
1172 if test -z "$INSTALL"; then
1173 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1177 for ac_dir in $PATH; do
1178 # Account for people who put trailing slashes in PATH elements.
1180 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1182 # OSF1 and SCO ODT 3.0 have their own names for install.
1183 # Don't use installbsd from OSF since it installs stuff as root
1185 for ac_prog in ginstall scoinst install; do
1186 if test -f $ac_dir/$ac_prog; then
1187 if test $ac_prog = install &&
1188 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1189 # AIX install. It has an incompatible calling convention.
1192 ac_cv_path_install="$ac_dir/$ac_prog -c"
1203 if test "${ac_cv_path_install+set}" = set; then
1204 INSTALL="$ac_cv_path_install"
1206 # As a last resort, use the slow shell script. We don't cache a
1207 # path for INSTALL within a source directory, because that will
1208 # break other packages using the cache if that directory is
1209 # removed, or if the path is relative.
1210 INSTALL="$ac_install_sh"
1213 echo "$ac_t""$INSTALL" 1>&6
1215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1216 # It thinks the first close brace ends the variable substitution.
1217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ln -s works" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1230 if ln -s X conftestdata 2>/dev/null
1233 ac_cv_prog_LN_S="ln -s"
1238 LN_S="$ac_cv_prog_LN_S"
1239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1240 echo "$ac_t""yes" 1>&6
1242 echo "$ac_t""no" 1>&6
1246 if test "$enable_auto_documentation" = yes; then
1247 # Extract the first word of "robodoc", so it can be a program name with args.
1248 set dummy robodoc; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -n "$ROBODOC"; then
1255 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_ROBODOC=""robodoc""
1267 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1270 ROBODOC="$ac_cv_prog_ROBODOC"
1271 if test -n "$ROBODOC"; then
1272 echo "$ac_t""$ROBODOC" 1>&6
1274 echo "$ac_t""no" 1>&6
1277 if test "$ROBODOC" != "robodoc"; then
1278 { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1283 if test "$enable_firm_jni" = yes; then
1284 # Extract the first word of "javac", so it can be a program name with args.
1285 set dummy javac; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 if test -n "$JAVAC"; then
1292 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1296 for ac_dir in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir=.
1298 if test -f $ac_dir/$ac_word; then
1299 ac_cv_prog_JAVAC=""javac""
1304 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
1307 JAVAC="$ac_cv_prog_JAVAC"
1308 if test -n "$JAVAC"; then
1309 echo "$ac_t""$JAVAC" 1>&6
1311 echo "$ac_t""no" 1>&6
1314 if test "$JAVAC" != "javac"; then
1315 { echo "configure: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" 1>&2; exit 1; }
1317 # Extract the first word of "javah", so it can be a program name with args.
1318 set dummy javah; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_JAVAH'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -n "$JAVAH"; then
1325 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
1327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1329 for ac_dir in $ac_dummy; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_JAVAH=""javah""
1337 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
1340 JAVAH="$ac_cv_prog_JAVAH"
1341 if test -n "$JAVAH"; then
1342 echo "$ac_t""$JAVAH" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 if test "$JAVAH" != "javah"; then
1348 { echo "configure: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" 1>&2; exit 1; }
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1378 if test -z "$ac_err"; then
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 CPP="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395 if test -z "$ac_err"; then
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 CPP="${CC-cc} -nologo -E"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1426 ac_cv_prog_CPP="$CPP"
1428 CPP="$ac_cv_prog_CPP"
1430 ac_cv_prog_CPP="$CPP"
1432 echo "$ac_t""$CPP" 1>&6
1434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1435 echo "configure:1436: checking for ANSI C header files" >&5
1436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1452 ac_cv_header_stdc=yes
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1458 ac_cv_header_stdc=no
1462 if test $ac_cv_header_stdc = yes; then
1463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "memchr" >/dev/null 2>&1; then
1474 ac_cv_header_stdc=no
1480 if test $ac_cv_header_stdc = yes; then
1481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488 egrep "free" >/dev/null 2>&1; then
1492 ac_cv_header_stdc=no
1498 if test $ac_cv_header_stdc = yes; then
1499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1500 if test "$cross_compiling" = yes; then
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1510 int main () { int i; for (i = 0; i < 256; i++)
1511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1515 if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 ac_cv_header_stdc=no
1530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1531 if test $ac_cv_header_stdc = yes; then
1532 cat >> confdefs.h <<\EOF
1533 #define STDC_HEADERS 1
1540 for ac_hdr in math.h
1542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1544 echo "configure:1545: checking for $ac_hdr" >&5
1545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1558 eval "ac_cv_header_$ac_safe=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_header_$ac_safe=no"
1568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1569 echo "$ac_t""yes" 1>&6
1570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1571 cat >> confdefs.h <<EOF
1572 #define $ac_tr_hdr 1
1574 ac_math_headers="yes"
1576 echo "$ac_t""no" 1>&6
1577 ac_math_headers="no"
1581 if test "$ac_math_headers" != yes; then
1582 { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h <<EOF
1619 #define $ac_tr_hdr 1
1621 ac_gmp_headers="yes"
1623 echo "$ac_t""no" 1>&6
1628 if test "$ac_gmp_headers" != yes; then
1629 { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1634 for ac_hdr in obstack.h
1636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_hdr" >&5
1639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1648 { (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1650 if test -z "$ac_err"; then
1652 eval "ac_cv_header_$ac_safe=yes"
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1658 eval "ac_cv_header_$ac_safe=no"
1662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1663 echo "$ac_t""yes" 1>&6
1664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1665 cat >> confdefs.h <<EOF
1666 #define $ac_tr_hdr 1
1668 ac_obstack_headers="yes"
1670 echo "$ac_t""no" 1>&6
1671 ac_obstack_headers="no"
1675 if test "$ac_obstack_headers" != yes; then
1676 { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1681 if test "$enable_firm_jni" = yes; then
1684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_hdr" >&5
1687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1698 if test -z "$ac_err"; then
1700 eval "ac_cv_header_$ac_safe=yes"
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 eval "ac_cv_header_$ac_safe=no"
1710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1713 cat >> confdefs.h <<EOF
1714 #define $ac_tr_hdr 1
1716 ac_jni_headers="yes"
1718 echo "$ac_t""no" 1>&6
1723 if test "$ac_jni_headers" != yes; then
1724 { echo "configure: error: jni header file not found. (IPD: add -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS)" 1>&2; exit 1; }
1731 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1732 echo "configure:1733: checking for main in -lgmp" >&5
1733 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_save_LIBS="$LIBS"
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 eval "ac_cv_lib_$ac_lib_var=yes"
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 eval "ac_cv_lib_$ac_lib_var=no"
1757 LIBS="$ac_save_LIBS"
1760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761 echo "$ac_t""yes" 1>&6
1762 ac_gmp_library="yes"
1764 echo "$ac_t""no" 1>&6
1768 if test "$ac_gmp_library" != yes; then
1769 { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1773 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1774 echo "configure:1775: checking for main in -lm" >&5
1775 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 ac_save_LIBS="$LIBS"
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1791 eval "ac_cv_lib_$ac_lib_var=yes"
1793 echo "configure: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1796 eval "ac_cv_lib_$ac_lib_var=no"
1799 LIBS="$ac_save_LIBS"
1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1806 echo "$ac_t""no" 1>&6
1810 if test "$ac_m_library" != yes; then
1811 { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1819 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1820 echo "configure:1821: checking for strerror" >&5
1821 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char strerror(); below. */
1830 /* Override any gcc2 internal prototype to avoid an error. */
1831 /* We use char because int might match the return type of a gcc2
1832 builtin and then its argument prototype would still apply. */
1837 /* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840 #if defined (__stub_strerror) || defined (__stub___strerror)
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 eval "ac_cv_func_strerror=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_func_strerror=no"
1860 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1864 echo "$ac_t""no" 1>&6
1865 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1874 cat > confcache <<\EOF
1875 # This file is a shell script that caches the results of configure
1876 # tests run on this system so they can be shared between configure
1877 # scripts and configure runs. It is not useful on other systems.
1878 # If it contains results you don't want to keep, you may remove or edit it.
1880 # By default, configure uses ./config.cache as the cache file,
1881 # creating it if it does not exist already. You can give configure
1882 # the --cache-file=FILE option to use a different cache file; that is
1883 # what configure does when it calls configure scripts in
1884 # subdirectories, so they share the cache.
1885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1886 # config.status only pays attention to the cache file if you give it the
1887 # --recheck option to rerun configure.
1890 # The following way of writing the cache mishandles newlines in values,
1891 # but we know of no workaround that is simple, portable, and efficient.
1892 # So, don't put newlines in cache variables' values.
1893 # Ultrix sh set writes to stderr and can't be redirected directly,
1894 # and sets the high bit in the cache file unless we assign to the vars.
1896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1898 # `set' does not quote correctly, so add quotes (double-quote substitution
1899 # turns \\\\ into \\, and sed turns \\ into \).
1901 -e "s/'/'\\\\''/g" \
1902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1905 # `set' quotes correctly as required by POSIX, so do not add quotes.
1906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1909 if cmp -s $cache_file confcache; then
1912 if test -w $cache_file; then
1913 echo "updating cache $cache_file"
1914 cat confcache > $cache_file
1916 echo "not updating unwritable cache $cache_file"
1921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1924 # Let make expand exec_prefix.
1925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1927 # Any assignment to VPATH causes Sun make to only execute
1928 # the first set of double-colon rules, so remove it if not needed.
1929 # If there is a colon in the path, we need to keep it.
1930 if test "x$srcdir" = x.; then
1931 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1936 DEFS=-DHAVE_CONFIG_H
1938 # Without the "./", some shells look in PATH for config.status.
1939 : ${CONFIG_STATUS=./config.status}
1941 echo creating $CONFIG_STATUS
1942 rm -f $CONFIG_STATUS
1943 cat > $CONFIG_STATUS <<EOF
1945 # Generated automatically by configure.
1946 # Run this file to recreate the current configuration.
1947 # This directory was configured as follows,
1948 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1950 # $0 $ac_configure_args
1952 # Compiler output produced by configure, useful for debugging
1953 # configure, is in ./config.log if it exists.
1955 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1958 case "\$ac_option" in
1959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1960 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1961 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1962 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1963 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1965 -help | --help | --hel | --he | --h)
1966 echo "\$ac_cs_usage"; exit 0 ;;
1967 *) echo "\$ac_cs_usage"; exit 1 ;;
1971 ac_given_srcdir=$srcdir
1972 ac_given_INSTALL="$INSTALL"
1974 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1976 cat >> $CONFIG_STATUS <<EOF
1978 # Protect against being on the right side of a sed subst in config.status.
1979 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1980 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1984 s%@CFLAGS@%$CFLAGS%g
1985 s%@CPPFLAGS@%$CPPFLAGS%g
1986 s%@CXXFLAGS@%$CXXFLAGS%g
1987 s%@FFLAGS@%$FFLAGS%g
1989 s%@LDFLAGS@%$LDFLAGS%g
1991 s%@exec_prefix@%$exec_prefix%g
1992 s%@prefix@%$prefix%g
1993 s%@program_transform_name@%$program_transform_name%g
1994 s%@bindir@%$bindir%g
1995 s%@sbindir@%$sbindir%g
1996 s%@libexecdir@%$libexecdir%g
1997 s%@datadir@%$datadir%g
1998 s%@sysconfdir@%$sysconfdir%g
1999 s%@sharedstatedir@%$sharedstatedir%g
2000 s%@localstatedir@%$localstatedir%g
2001 s%@libdir@%$libdir%g
2002 s%@includedir@%$includedir%g
2003 s%@oldincludedir@%$oldincludedir%g
2004 s%@infodir@%$infodir%g
2005 s%@mandir@%$mandir%g
2006 s%@libfirm_conf_env@%$libfirm_conf_env%g
2007 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
2008 s%@enable_gcc_inline@%$enable_gcc_inline%g
2009 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
2010 s%@enable_auto_documentation@%$enable_auto_documentation%g
2011 s%@enable_firm_jni@%$enable_firm_jni%g
2014 s%@host_alias@%$host_alias%g
2015 s%@host_cpu@%$host_cpu%g
2016 s%@host_vendor@%$host_vendor%g
2017 s%@host_os@%$host_os%g
2019 s%@build_alias@%$build_alias%g
2020 s%@build_cpu@%$build_cpu%g
2021 s%@build_vendor@%$build_vendor%g
2022 s%@build_os@%$build_os%g
2024 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
2027 s%@RANLIB@%$RANLIB%g
2028 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2029 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2030 s%@INSTALL_DATA@%$INSTALL_DATA%g
2032 s%@ROBODOC@%$ROBODOC%g
2040 cat >> $CONFIG_STATUS <<\EOF
2042 # Split the substitutions into bite-sized pieces for seds with
2043 # small command number limits, like on Digital OSF/1 and HP-UX.
2044 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2045 ac_file=1 # Number of current file.
2046 ac_beg=1 # First line for current file.
2047 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2050 while $ac_more_lines; do
2051 if test $ac_beg -gt 1; then
2052 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2054 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2056 if test ! -s conftest.s$ac_file; then
2058 rm -f conftest.s$ac_file
2060 if test -z "$ac_sed_cmds"; then
2061 ac_sed_cmds="sed -f conftest.s$ac_file"
2063 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2065 ac_file=`expr $ac_file + 1`
2067 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2070 if test -z "$ac_sed_cmds"; then
2075 cat >> $CONFIG_STATUS <<EOF
2077 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
2079 cat >> $CONFIG_STATUS <<\EOF
2080 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2083 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2084 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2085 *) ac_file_in="${ac_file}.in" ;;
2088 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2090 # Remove last slash and all that follows it. Not all systems have dirname.
2091 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2092 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2093 # The file is in a subdirectory.
2094 test ! -d "$ac_dir" && mkdir "$ac_dir"
2095 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2096 # A "../" for each directory in $ac_dir_suffix.
2097 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2099 ac_dir_suffix= ac_dots=
2102 case "$ac_given_srcdir" in
2104 if test -z "$ac_dots"; then top_srcdir=.
2105 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2106 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2108 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2109 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2112 case "$ac_given_INSTALL" in
2113 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2114 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2117 echo creating "$ac_file"
2119 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2121 *Makefile*) ac_comsub="1i\\
2122 # $configure_input" ;;
2126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2128 s%@configure_input@%$configure_input%g
2129 s%@srcdir@%$srcdir%g
2130 s%@top_srcdir@%$top_srcdir%g
2131 s%@INSTALL@%$INSTALL%g
2132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2139 # ac_d sets the value in "#define NAME VALUE" lines.
2140 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2141 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2144 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2145 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2146 ac_uB='\([ ]\)%\1#\2define\3'
2149 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2150 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2151 ac_eB='$%\1#\2define\3'
2155 if test "${CONFIG_HEADERS+set}" != set; then
2157 cat >> $CONFIG_STATUS <<EOF
2158 CONFIG_HEADERS="config.h"
2160 cat >> $CONFIG_STATUS <<\EOF
2162 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2165 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2166 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2167 *) ac_file_in="${ac_file}.in" ;;
2170 echo creating $ac_file
2172 rm -f conftest.frag conftest.in conftest.out
2173 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2174 cat $ac_file_inputs > conftest.in
2178 # Transform confdefs.h into a sed script conftest.vals that substitutes
2179 # the proper values into config.h.in to produce config.h. And first:
2180 # Protect against being on the right side of a sed subst in config.status.
2181 # Protect against being in an unquoted here document in config.status.
2183 cat > conftest.hdr <<\EOF
2186 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2190 sed -n -f conftest.hdr confdefs.h > conftest.vals
2193 # This sed command replaces #undef with comments. This is necessary, for
2194 # example, in the case of _POSIX_SOURCE, which is predefined and required
2195 # on some systems where configure will not decide to define it.
2196 cat >> conftest.vals <<\EOF
2197 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2200 # Break up conftest.vals because some shells have a limit on
2201 # the size of here documents, and old seds have small limits too.
2206 ac_lines=`grep -c . conftest.vals`
2207 # grep -c gives empty output for an empty file on some AIX systems.
2208 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2209 # Write a limited-size here document to conftest.frag.
2210 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2211 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2213 sed -f conftest.frag conftest.in > conftest.out
2215 mv conftest.out conftest.in
2217 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2219 mv conftest.tail conftest.vals
2223 cat >> $CONFIG_STATUS <<\EOF
2224 rm -f conftest.frag conftest.h
2225 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2226 cat conftest.in >> conftest.h
2228 if cmp -s $ac_file conftest.h 2>/dev/null; then
2229 echo "$ac_file is unchanged"
2232 # Remove last slash and all that follows it. Not all systems have dirname.
2233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2235 # The file is in a subdirectory.
2236 test ! -d "$ac_dir" && mkdir "$ac_dir"
2239 mv conftest.h $ac_file
2244 cat >> $CONFIG_STATUS <<EOF
2247 cat >> $CONFIG_STATUS <<\EOF
2251 chmod +x $CONFIG_STATUS
2252 rm -fr confdefs* $ac_clean_files
2253 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1