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-profile enable profiling"
31 --enable-autodoc enable auto documentation"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=ir/ir/ircons.c
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='\c' ac_t=
542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543 if test -f $ac_dir/install-sh; then
545 ac_install_sh="$ac_aux_dir/install-sh -c"
547 elif test -f $ac_dir/install.sh; then
549 ac_install_sh="$ac_aux_dir/install.sh -c"
553 if test -z "$ac_aux_dir"; then
554 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556 ac_config_guess=$ac_aux_dir/config.guess
557 ac_config_sub=$ac_aux_dir/config.sub
558 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
563 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
564 ir/ana/Makefile ir/tr/Makefile testprograms/Makefile"
568 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
573 # Check whether --enable-debug or --disable-debug was given.
574 if test "${enable_debug+set}" = set; then
575 enableval="$enable_debug"
576 if test "$enableval" = yes; then
577 cat >> confdefs.h <<\EOF
578 #define DEBUG_libfirm 1
582 cat >> confdefs.h <<\EOF
592 # Check whether --enable-profile or --disable-profile was given.
593 if test "${enable_profile+set}" = set; then
594 enableval="$enable_profile"
595 if test "$enableval"=yes; then
596 enable_profile_libfirm=yes
599 enable_profile_libfirm=no
604 # Check whether --enable-autodoc or --disable-autodoc was given.
605 if test "${enable_autodoc+set}" = set; then
606 enableval="$enable_autodoc"
607 if test "$enableval"=yes; then
608 enable_auto_documentation=yes
611 enable_auto_documentation=no
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
644 echo "$ac_t""no" 1>&6
647 if test -z "$CC"; then
648 # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC="$CC" # Let the user override the test.
658 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
664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
673 if test $ac_prog_rejected = yes; then
674 # We found a bogon in the path, so make sure we never use it.
675 set dummy $ac_cv_prog_CC
677 if test $# -gt 0; then
678 # We chose a different compiler from the bogus one.
679 # However, it has the same basename, so the bogon will be chosen
680 # first if we set CC to just the basename; use the full file name.
682 set dummy "$ac_dir/$ac_word" "$@"
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
699 # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC="$CC" # Let the user override the test.
709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
711 for ac_dir in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
743 cat > conftest.$ac_ext << EOF
745 #line 746 "configure"
746 #include "confdefs.h"
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
751 ac_cv_prog_cc_works=yes
752 # If we can't run a trivial program, we are probably using a cross compiler.
753 if (./conftest; exit) 2>/dev/null; then
754 ac_cv_prog_cc_cross=no
756 ac_cv_prog_cc_cross=yes
759 echo "configure: failed program was:" >&5
760 cat conftest.$ac_ext >&5
761 ac_cv_prog_cc_works=no
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftest.c <<EOF
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825 CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827 if test "$GCC" = yes; then
833 if test "$GCC" = yes; then
842 # Make sure we can run config.sub.
843 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
844 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
847 echo $ac_n "checking host system type""... $ac_c" 1>&6
848 echo "configure:849: checking host system type" >&5
851 case "$host_alias" in
855 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
856 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
858 *) host_alias=$nonopt ;;
862 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
863 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
864 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
865 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
866 echo "$ac_t""$host" 1>&6
868 echo $ac_n "checking build system type""... $ac_c" 1>&6
869 echo "configure:870: checking build system type" >&5
872 case "$build_alias" in
875 NONE) build_alias=$host_alias ;;
876 *) build_alias=$nonopt ;;
880 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
881 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
882 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
883 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
884 echo "$ac_t""$build" 1>&6
886 if test $host != $build; then
887 ac_tool_prefix=${host_alias}-
892 if test -z "$LD" && test "$GCC" = yes; then
893 # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
894 set dummy ${ac_tool_prefix}gld; ac_word=$2
895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896 echo "configure:897: checking for $ac_word" >&5
897 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 if test -n "$LD"; then
901 ac_cv_prog_LD="$LD" # Let the user override the test.
903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
905 for ac_dir in $ac_dummy; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word; then
908 ac_cv_prog_LD="${ac_tool_prefix}gld"
916 if test -n "$LD"; then
917 echo "$ac_t""$LD" 1>&6
919 echo "$ac_t""no" 1>&6
923 if test -z "$ac_cv_prog_LD"; then
924 if test -n "$ac_tool_prefix"; then
925 # Extract the first word of "gld", so it can be a program name with args.
926 set dummy gld; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$LD"; then
933 ac_cv_prog_LD="$LD" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
945 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
949 if test -n "$LD"; then
950 echo "$ac_t""$LD" 1>&6
952 echo "$ac_t""no" 1>&6
961 if test -z "$LD"; then
962 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
963 set dummy ${ac_tool_prefix}ld; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$LD"; then
970 ac_cv_prog_LD="$LD" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_LD="${ac_tool_prefix}ld"
982 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
986 if test -n "$LD"; then
987 echo "$ac_t""$LD" 1>&6
989 echo "$ac_t""no" 1>&6
996 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
997 echo "configure:998: checking whether $LD accepts -r" >&5
998 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1002 libfirm_cv_prog_ld_r=no
1004 cat > conftest.$ac_ext <<EOF
1005 int foo() { return 0; }
1007 if eval $ac_compile && mv conftest.o conftest2.o; then
1008 cat > conftest.$ac_ext <<EOF
1009 int main() { return foo(); }
1011 if eval $ac_compile; then
1012 if $LD -r -o conftest conftest.o conftest2.o; then
1013 libfirm_cv_prog_ld_r=yes
1021 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1024 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1025 { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1028 # Extract the first word of "ar", so it can be a program name with args.
1029 set dummy ar; ac_word=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 if test -n "$AR"; then
1036 ac_cv_prog_AR="$AR" # Let the user override the test.
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_prog_AR=""ar""
1048 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1052 if test -n "$AR"; then
1053 echo "$ac_t""$AR" 1>&6
1055 echo "$ac_t""no" 1>&6
1058 if test "$AR" != "ar"; then
1059 { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1062 # Extract the first word of "tar", so it can be a program name with args.
1063 set dummy tar; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 if test -n "$TAR"; then
1070 ac_cv_prog_TAR="$TAR" # Let the user override the test.
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 for ac_dir in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f $ac_dir/$ac_word; then
1077 ac_cv_prog_TAR=""tar""
1082 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1085 TAR="$ac_cv_prog_TAR"
1086 if test -n "$TAR"; then
1087 echo "$ac_t""$TAR" 1>&6
1089 echo "$ac_t""no" 1>&6
1092 if test "$TAR" != "tar"; then
1093 { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 ac_cv_prog_RANLIB="ranlib"
1117 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1120 RANLIB="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122 echo "$ac_t""$RANLIB" 1>&6
1124 echo "$ac_t""no" 1>&6
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1140 echo "configure:1141: checking for a BSD compatible install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1146 for ac_dir in $PATH; do
1147 # Account for people who put trailing slashes in PATH elements.
1149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1151 # OSF1 and SCO ODT 3.0 have their own names for install.
1152 # Don't use installbsd from OSF since it installs stuff as root
1154 for ac_prog in ginstall scoinst install; do
1155 if test -f $ac_dir/$ac_prog; then
1156 if test $ac_prog = install &&
1157 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158 # AIX install. It has an incompatible calling convention.
1161 ac_cv_path_install="$ac_dir/$ac_prog -c"
1172 if test "${ac_cv_path_install+set}" = set; then
1173 INSTALL="$ac_cv_path_install"
1175 # As a last resort, use the slow shell script. We don't cache a
1176 # path for INSTALL within a source directory, because that will
1177 # break other packages using the cache if that directory is
1178 # removed, or if the path is relative.
1179 INSTALL="$ac_install_sh"
1182 echo "$ac_t""$INSTALL" 1>&6
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1193 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ln -s works" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1199 if ln -s X conftestdata 2>/dev/null
1202 ac_cv_prog_LN_S="ln -s"
1207 LN_S="$ac_cv_prog_LN_S"
1208 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1209 echo "$ac_t""yes" 1>&6
1211 echo "$ac_t""no" 1>&6
1215 if test "$enable_auto_documentation" = yes; then
1216 # Extract the first word of "robodoc", so it can be a program name with args.
1217 set dummy robodoc; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$ROBODOC"; then
1224 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_ROBODOC=""robodoc""
1236 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1239 ROBODOC="$ac_cv_prog_ROBODOC"
1240 if test -n "$ROBODOC"; then
1241 echo "$ac_t""$ROBODOC" 1>&6
1243 echo "$ac_t""no" 1>&6
1246 if test "$ROBODOC" != "robodoc"; then
1247 { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1252 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1253 echo "configure:1254: checking how to run the C preprocessor" >&5
1254 # On Suns, sometimes $CPP names a directory.
1255 if test -n "$CPP" && test -d "$CPP"; then
1258 if test -z "$CPP"; then
1259 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 # This must be in double quotes, not single quotes, because CPP may get
1263 # substituted into the Makefile and "${CC-cc}" will confuse make.
1265 # On the NeXT, cc -E runs the code through the compiler's parser,
1266 # not just through cpp.
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1283 CPP="${CC-cc} -E -traditional-cpp"
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1293 if test -z "$ac_err"; then
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1300 CPP="${CC-cc} -nologo -E"
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1324 ac_cv_prog_CPP="$CPP"
1326 CPP="$ac_cv_prog_CPP"
1328 ac_cv_prog_CPP="$CPP"
1330 echo "$ac_t""$CPP" 1>&6
1332 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1333 echo "configure:1334: checking for ANSI C header files" >&5
1334 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348 if test -z "$ac_err"; then
1350 ac_cv_header_stdc=yes
1353 echo "configure: failed program was:" >&5
1354 cat conftest.$ac_ext >&5
1356 ac_cv_header_stdc=no
1360 if test $ac_cv_header_stdc = yes; then
1361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1368 egrep "memchr" >/dev/null 2>&1; then
1372 ac_cv_header_stdc=no
1378 if test $ac_cv_header_stdc = yes; then
1379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1386 egrep "free" >/dev/null 2>&1; then
1390 ac_cv_header_stdc=no
1396 if test $ac_cv_header_stdc = yes; then
1397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1398 if test "$cross_compiling" = yes; then
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1405 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1406 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1408 int main () { int i; for (i = 0; i < 256; i++)
1409 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1420 ac_cv_header_stdc=no
1428 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1429 if test $ac_cv_header_stdc = yes; then
1430 cat >> confdefs.h <<\EOF
1431 #define STDC_HEADERS 1
1438 for ac_hdr in math.h
1440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_hdr" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452 { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1454 if test -z "$ac_err"; then
1456 eval "ac_cv_header_$ac_safe=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 eval "ac_cv_header_$ac_safe=no"
1466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469 cat >> confdefs.h <<EOF
1470 #define $ac_tr_hdr 1
1472 ac_math_headers="yes"
1474 echo "$ac_t""no" 1>&6
1475 ac_math_headers="no"
1479 if test "$ac_math_headers" != yes; then
1480 { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_hdr" >&5
1490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501 if test -z "$ac_err"; then
1503 eval "ac_cv_header_$ac_safe=yes"
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1509 eval "ac_cv_header_$ac_safe=no"
1513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1514 echo "$ac_t""yes" 1>&6
1515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1516 cat >> confdefs.h <<EOF
1517 #define $ac_tr_hdr 1
1519 ac_gmp_headers="yes"
1521 echo "$ac_t""no" 1>&6
1526 if test "$ac_gmp_headers" != yes; then
1527 { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1532 for ac_hdr in obstack.h
1534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_hdr" >&5
1537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1550 eval "ac_cv_header_$ac_safe=yes"
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1556 eval "ac_cv_header_$ac_safe=no"
1560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1561 echo "$ac_t""yes" 1>&6
1562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1563 cat >> confdefs.h <<EOF
1564 #define $ac_tr_hdr 1
1566 ac_obstack_headers="yes"
1568 echo "$ac_t""no" 1>&6
1569 ac_obstack_headers="no"
1573 if test "$ac_obstack_headers" != yes; then
1574 { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1580 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1581 echo "configure:1582: checking for main in -lgmp" >&5
1582 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 ac_save_LIBS="$LIBS"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1598 eval "ac_cv_lib_$ac_lib_var=yes"
1600 echo "configure: failed program was:" >&5
1601 cat conftest.$ac_ext >&5
1603 eval "ac_cv_lib_$ac_lib_var=no"
1606 LIBS="$ac_save_LIBS"
1609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1611 ac_gmp_library="yes"
1613 echo "$ac_t""no" 1>&6
1617 if test "$ac_gmp_library" != yes; then
1618 { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1622 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1623 echo "configure:1624: checking for main in -lm" >&5
1624 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 ac_save_LIBS="$LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1638 if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1640 eval "ac_cv_lib_$ac_lib_var=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1645 eval "ac_cv_lib_$ac_lib_var=no"
1648 LIBS="$ac_save_LIBS"
1651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1652 echo "$ac_t""yes" 1>&6
1655 echo "$ac_t""no" 1>&6
1659 if test "$ac_m_library" != yes; then
1660 { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1668 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1669 echo "configure:1670: checking for strerror" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677 which can conflict with char strerror(); below. */
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1686 /* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689 #if defined (__stub_strerror) || defined (__stub___strerror)
1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699 eval "ac_cv_func_strerror=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1704 eval "ac_cv_func_strerror=no"
1709 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1713 echo "$ac_t""no" 1>&6
1714 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1723 cat > confcache <<\EOF
1724 # This file is a shell script that caches the results of configure
1725 # tests run on this system so they can be shared between configure
1726 # scripts and configure runs. It is not useful on other systems.
1727 # If it contains results you don't want to keep, you may remove or edit it.
1729 # By default, configure uses ./config.cache as the cache file,
1730 # creating it if it does not exist already. You can give configure
1731 # the --cache-file=FILE option to use a different cache file; that is
1732 # what configure does when it calls configure scripts in
1733 # subdirectories, so they share the cache.
1734 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1735 # config.status only pays attention to the cache file if you give it the
1736 # --recheck option to rerun configure.
1739 # The following way of writing the cache mishandles newlines in values,
1740 # but we know of no workaround that is simple, portable, and efficient.
1741 # So, don't put newlines in cache variables' values.
1742 # Ultrix sh set writes to stderr and can't be redirected directly,
1743 # and sets the high bit in the cache file unless we assign to the vars.
1745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1747 # `set' does not quote correctly, so add quotes (double-quote substitution
1748 # turns \\\\ into \\, and sed turns \\ into \).
1750 -e "s/'/'\\\\''/g" \
1751 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1754 # `set' quotes correctly as required by POSIX, so do not add quotes.
1755 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1758 if cmp -s $cache_file confcache; then
1761 if test -w $cache_file; then
1762 echo "updating cache $cache_file"
1763 cat confcache > $cache_file
1765 echo "not updating unwritable cache $cache_file"
1770 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1773 # Let make expand exec_prefix.
1774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1776 # Any assignment to VPATH causes Sun make to only execute
1777 # the first set of double-colon rules, so remove it if not needed.
1778 # If there is a colon in the path, we need to keep it.
1779 if test "x$srcdir" = x.; then
1780 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1783 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1785 DEFS=-DHAVE_CONFIG_H
1787 # Without the "./", some shells look in PATH for config.status.
1788 : ${CONFIG_STATUS=./config.status}
1790 echo creating $CONFIG_STATUS
1791 rm -f $CONFIG_STATUS
1792 cat > $CONFIG_STATUS <<EOF
1794 # Generated automatically by configure.
1795 # Run this file to recreate the current configuration.
1796 # This directory was configured as follows,
1797 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1799 # $0 $ac_configure_args
1801 # Compiler output produced by configure, useful for debugging
1802 # configure, is in ./config.log if it exists.
1804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1807 case "\$ac_option" in
1808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1809 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1810 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1811 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1812 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1814 -help | --help | --hel | --he | --h)
1815 echo "\$ac_cs_usage"; exit 0 ;;
1816 *) echo "\$ac_cs_usage"; exit 1 ;;
1820 ac_given_srcdir=$srcdir
1821 ac_given_INSTALL="$INSTALL"
1823 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1825 cat >> $CONFIG_STATUS <<EOF
1827 # Protect against being on the right side of a sed subst in config.status.
1828 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1829 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1833 s%@CFLAGS@%$CFLAGS%g
1834 s%@CPPFLAGS@%$CPPFLAGS%g
1835 s%@CXXFLAGS@%$CXXFLAGS%g
1836 s%@FFLAGS@%$FFLAGS%g
1838 s%@LDFLAGS@%$LDFLAGS%g
1840 s%@exec_prefix@%$exec_prefix%g
1841 s%@prefix@%$prefix%g
1842 s%@program_transform_name@%$program_transform_name%g
1843 s%@bindir@%$bindir%g
1844 s%@sbindir@%$sbindir%g
1845 s%@libexecdir@%$libexecdir%g
1846 s%@datadir@%$datadir%g
1847 s%@sysconfdir@%$sysconfdir%g
1848 s%@sharedstatedir@%$sharedstatedir%g
1849 s%@localstatedir@%$localstatedir%g
1850 s%@libdir@%$libdir%g
1851 s%@includedir@%$includedir%g
1852 s%@oldincludedir@%$oldincludedir%g
1853 s%@infodir@%$infodir%g
1854 s%@mandir@%$mandir%g
1855 s%@libfirm_conf_env@%$libfirm_conf_env%g
1856 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
1857 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
1858 s%@enable_auto_documentation@%$enable_auto_documentation%g
1861 s%@host_alias@%$host_alias%g
1862 s%@host_cpu@%$host_cpu%g
1863 s%@host_vendor@%$host_vendor%g
1864 s%@host_os@%$host_os%g
1866 s%@build_alias@%$build_alias%g
1867 s%@build_cpu@%$build_cpu%g
1868 s%@build_vendor@%$build_vendor%g
1869 s%@build_os@%$build_os%g
1871 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
1874 s%@RANLIB@%$RANLIB%g
1875 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1876 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1877 s%@INSTALL_DATA@%$INSTALL_DATA%g
1879 s%@ROBODOC@%$ROBODOC%g
1885 cat >> $CONFIG_STATUS <<\EOF
1887 # Split the substitutions into bite-sized pieces for seds with
1888 # small command number limits, like on Digital OSF/1 and HP-UX.
1889 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1890 ac_file=1 # Number of current file.
1891 ac_beg=1 # First line for current file.
1892 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1895 while $ac_more_lines; do
1896 if test $ac_beg -gt 1; then
1897 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1899 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1901 if test ! -s conftest.s$ac_file; then
1903 rm -f conftest.s$ac_file
1905 if test -z "$ac_sed_cmds"; then
1906 ac_sed_cmds="sed -f conftest.s$ac_file"
1908 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1910 ac_file=`expr $ac_file + 1`
1912 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1915 if test -z "$ac_sed_cmds"; then
1920 cat >> $CONFIG_STATUS <<EOF
1922 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
1924 cat >> $CONFIG_STATUS <<\EOF
1925 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1928 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1929 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1930 *) ac_file_in="${ac_file}.in" ;;
1933 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1935 # Remove last slash and all that follows it. Not all systems have dirname.
1936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1938 # The file is in a subdirectory.
1939 test ! -d "$ac_dir" && mkdir "$ac_dir"
1940 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1941 # A "../" for each directory in $ac_dir_suffix.
1942 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1944 ac_dir_suffix= ac_dots=
1947 case "$ac_given_srcdir" in
1949 if test -z "$ac_dots"; then top_srcdir=.
1950 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1951 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1953 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1954 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1957 case "$ac_given_INSTALL" in
1958 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1959 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1962 echo creating "$ac_file"
1964 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1966 *Makefile*) ac_comsub="1i\\
1967 # $configure_input" ;;
1971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1973 s%@configure_input@%$configure_input%g
1974 s%@srcdir@%$srcdir%g
1975 s%@top_srcdir@%$top_srcdir%g
1976 s%@INSTALL@%$INSTALL%g
1977 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1984 # ac_d sets the value in "#define NAME VALUE" lines.
1985 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1986 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1989 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1990 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1991 ac_uB='\([ ]\)%\1#\2define\3'
1994 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1995 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1996 ac_eB='$%\1#\2define\3'
2000 if test "${CONFIG_HEADERS+set}" != set; then
2002 cat >> $CONFIG_STATUS <<EOF
2003 CONFIG_HEADERS="config.h"
2005 cat >> $CONFIG_STATUS <<\EOF
2007 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2010 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2011 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2012 *) ac_file_in="${ac_file}.in" ;;
2015 echo creating $ac_file
2017 rm -f conftest.frag conftest.in conftest.out
2018 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2019 cat $ac_file_inputs > conftest.in
2023 # Transform confdefs.h into a sed script conftest.vals that substitutes
2024 # the proper values into config.h.in to produce config.h. And first:
2025 # Protect against being on the right side of a sed subst in config.status.
2026 # Protect against being in an unquoted here document in config.status.
2028 cat > conftest.hdr <<\EOF
2031 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2035 sed -n -f conftest.hdr confdefs.h > conftest.vals
2038 # This sed command replaces #undef with comments. This is necessary, for
2039 # example, in the case of _POSIX_SOURCE, which is predefined and required
2040 # on some systems where configure will not decide to define it.
2041 cat >> conftest.vals <<\EOF
2042 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2045 # Break up conftest.vals because some shells have a limit on
2046 # the size of here documents, and old seds have small limits too.
2051 ac_lines=`grep -c . conftest.vals`
2052 # grep -c gives empty output for an empty file on some AIX systems.
2053 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2054 # Write a limited-size here document to conftest.frag.
2055 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2056 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2058 sed -f conftest.frag conftest.in > conftest.out
2060 mv conftest.out conftest.in
2062 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2064 mv conftest.tail conftest.vals
2068 cat >> $CONFIG_STATUS <<\EOF
2069 rm -f conftest.frag conftest.h
2070 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2071 cat conftest.in >> conftest.h
2073 if cmp -s $ac_file conftest.h 2>/dev/null; then
2074 echo "$ac_file is unchanged"
2077 # Remove last slash and all that follows it. Not all systems have dirname.
2078 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2079 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2080 # The file is in a subdirectory.
2081 test ! -d "$ac_dir" && mkdir "$ac_dir"
2084 mv conftest.h $ac_file
2089 cat >> $CONFIG_STATUS <<EOF
2092 cat >> $CONFIG_STATUS <<\EOF
2096 chmod +x $CONFIG_STATUS
2097 rm -fr confdefs* $ac_clean_files
2098 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1