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 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=ir/ir/ircons.c
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
565 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
566 ir/ana/Makefile ir/tr/Makefile ir/st/Makefile testprograms/Makefile"
570 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
575 # Check whether --enable-debug or --disable-debug was given.
576 if test "${enable_debug+set}" = set; then
577 enableval="$enable_debug"
578 if test "$enableval" = yes; then
579 cat >> confdefs.h <<\EOF
580 #define DEBUG_libfirm 1
584 cat >> confdefs.h <<\EOF
594 # Check whether --enable-gcc_inline or --disable-gcc_inline was given.
595 if test "${enable_gcc_inline+set}" = set; then
596 enableval="$enable_gcc_inline"
597 if test "$enableval" = yes; then
598 cat >> confdefs.h <<\EOF
599 #define USE_GCC_INLINE 1
608 # Check whether --enable-profile or --disable-profile was given.
609 if test "${enable_profile+set}" = set; then
610 enableval="$enable_profile"
611 if test "$enableval"=yes; then
612 enable_profile_libfirm=yes
615 enable_profile_libfirm=no
620 # Check whether --enable-autodoc or --disable-autodoc was given.
621 if test "${enable_autodoc+set}" = set; then
622 enableval="$enable_autodoc"
623 if test "$enableval"=yes; then
624 enable_auto_documentation=yes
627 enable_auto_documentation=no
634 # Extract the first word of "gcc", so it can be a program name with args.
635 set dummy gcc; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:638: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
663 if test -z "$CC"; then
664 # Extract the first word of "cc", so it can be a program name with args.
665 set dummy cc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
680 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689 if test $ac_prog_rejected = yes; then
690 # We found a bogon in the path, so make sure we never use it.
691 set dummy $ac_cv_prog_CC
693 if test $# -gt 0; then
694 # We chose a different compiler from the bogus one.
695 # However, it has the same basename, so the bogon will be chosen
696 # first if we set CC to just the basename; use the full file name.
698 set dummy "$ac_dir/$ac_word" "$@"
706 if test -n "$CC"; then
707 echo "$ac_t""$CC" 1>&6
709 echo "$ac_t""no" 1>&6
712 if test -z "$CC"; then
715 # Extract the first word of "cl", so it can be a program name with args.
716 set dummy cl; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 if test -n "$CC"; then
723 ac_cv_prog_CC="$CC" # Let the user override the test.
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
727 for ac_dir in $ac_dummy; do
728 test -z "$ac_dir" && ac_dir=.
729 if test -f $ac_dir/$ac_word; then
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
750 echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp='$CPP $CPPFLAGS'
755 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling=$ac_cv_prog_cc_cross
759 cat > conftest.$ac_ext << EOF
761 #line 762 "configure"
762 #include "confdefs.h"
766 if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
767 ac_cv_prog_cc_works=yes
768 # If we can't run a trivial program, we are probably using a cross compiler.
769 if (./conftest; exit) 2>/dev/null; then
770 ac_cv_prog_cc_cross=no
772 ac_cv_prog_cc_cross=yes
775 echo "configure: failed program was:" >&5
776 cat conftest.$ac_ext >&5
777 ac_cv_prog_cc_works=no
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
788 if test $ac_cv_prog_cc_works = no; then
789 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
793 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
794 cross_compiling=$ac_cv_prog_cc_cross
796 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
797 echo "configure:798: checking whether we are using GNU C" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.c <<EOF
806 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
813 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
815 if test $ac_cv_prog_gcc = yes; then
821 ac_test_CFLAGS="${CFLAGS+set}"
822 ac_save_CFLAGS="$CFLAGS"
824 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
825 echo "configure:826: checking whether ${CC-cc} accepts -g" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 echo 'void f(){}' > conftest.c
830 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
840 if test "$ac_test_CFLAGS" = set; then
841 CFLAGS="$ac_save_CFLAGS"
842 elif test $ac_cv_prog_cc_g = yes; then
843 if test "$GCC" = yes; then
849 if test "$GCC" = yes; then
858 # Make sure we can run config.sub.
859 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
860 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
863 echo $ac_n "checking host system type""... $ac_c" 1>&6
864 echo "configure:865: checking host system type" >&5
867 case "$host_alias" in
871 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
872 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
874 *) host_alias=$nonopt ;;
878 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
879 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882 echo "$ac_t""$host" 1>&6
884 echo $ac_n "checking build system type""... $ac_c" 1>&6
885 echo "configure:886: checking build system type" >&5
888 case "$build_alias" in
891 NONE) build_alias=$host_alias ;;
892 *) build_alias=$nonopt ;;
896 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
897 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
900 echo "$ac_t""$build" 1>&6
902 if test $host != $build; then
903 ac_tool_prefix=${host_alias}-
908 if test -z "$LD" && test "$GCC" = yes; then
909 # Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
910 set dummy ${ac_tool_prefix}gld; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$LD"; then
917 ac_cv_prog_LD="$LD" # Let the user override the test.
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
924 ac_cv_prog_LD="${ac_tool_prefix}gld"
932 if test -n "$LD"; then
933 echo "$ac_t""$LD" 1>&6
935 echo "$ac_t""no" 1>&6
939 if test -z "$ac_cv_prog_LD"; then
940 if test -n "$ac_tool_prefix"; then
941 # Extract the first word of "gld", so it can be a program name with args.
942 set dummy gld; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$LD"; then
949 ac_cv_prog_LD="$LD" # Let the user override the test.
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
961 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD=""""
965 if test -n "$LD"; then
966 echo "$ac_t""$LD" 1>&6
968 echo "$ac_t""no" 1>&6
977 if test -z "$LD"; then
978 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
979 set dummy ${ac_tool_prefix}ld; ac_word=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test -n "$LD"; then
986 ac_cv_prog_LD="$LD" # Let the user override the test.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_prog_LD="${ac_tool_prefix}ld"
998 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1002 if test -n "$LD"; then
1003 echo "$ac_t""$LD" 1>&6
1005 echo "$ac_t""no" 1>&6
1012 echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether $LD accepts -r" >&5
1014 if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1018 libfirm_cv_prog_ld_r=no
1020 cat > conftest.$ac_ext <<EOF
1021 int foo() { return 0; }
1023 if eval $ac_compile && mv conftest.o conftest2.o; then
1024 cat > conftest.$ac_ext <<EOF
1025 int main() { return foo(); }
1027 if eval $ac_compile; then
1028 if $LD -r -o conftest conftest.o conftest2.o; then
1029 libfirm_cv_prog_ld_r=yes
1037 echo "$ac_t""$libfirm_cv_prog_ld_r" 1>&6
1040 if test "$libfirm_cv_prog_ld_r" != "yes"; then
1041 { echo "configure: error: need a prelinkcapable linker" 1>&2; exit 1; }
1044 # Extract the first word of "ar", so it can be a program name with args.
1045 set dummy ar; ac_word=$2
1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1047 echo "configure:1048: checking for $ac_word" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 if test -n "$AR"; then
1052 ac_cv_prog_AR="$AR" # Let the user override the test.
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 for ac_dir in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir=.
1058 if test -f $ac_dir/$ac_word; then
1059 ac_cv_prog_AR=""ar""
1064 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
1068 if test -n "$AR"; then
1069 echo "$ac_t""$AR" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 if test "$AR" != "ar"; then
1075 { echo "configure: error: need ar for creating archives" 1>&2; exit 1; }
1078 # Extract the first word of "tar", so it can be a program name with args.
1079 set dummy tar; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 if test -n "$TAR"; then
1086 ac_cv_prog_TAR="$TAR" # Let the user override the test.
1088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 ac_cv_prog_TAR=""tar""
1098 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
1101 TAR="$ac_cv_prog_TAR"
1102 if test -n "$TAR"; then
1103 echo "$ac_t""$TAR" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 if test "$TAR" != "tar"; then
1109 { echo "configure: error: need tar for creating archives in distribution" 1>&2; exit 1; }
1113 # Extract the first word of "ranlib", so it can be a program name with args.
1114 set dummy ranlib; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$RANLIB"; then
1121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_RANLIB="ranlib"
1133 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1136 RANLIB="$ac_cv_prog_RANLIB"
1137 if test -n "$RANLIB"; then
1138 echo "$ac_t""$RANLIB" 1>&6
1140 echo "$ac_t""no" 1>&6
1144 # Find a good install program. We prefer a C program (faster),
1145 # so one script is as good as another. But avoid the broken or
1146 # incompatible versions:
1147 # SysV /etc/install, /usr/sbin/install
1148 # SunOS /usr/etc/install
1149 # IRIX /sbin/install
1151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1154 # ./install, which can be erroneously created by make from ./install.sh.
1155 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1156 echo "configure:1157: checking for a BSD compatible install" >&5
1157 if test -z "$INSTALL"; then
1158 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1162 for ac_dir in $PATH; do
1163 # Account for people who put trailing slashes in PATH elements.
1165 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1167 # OSF1 and SCO ODT 3.0 have their own names for install.
1168 # Don't use installbsd from OSF since it installs stuff as root
1170 for ac_prog in ginstall scoinst install; do
1171 if test -f $ac_dir/$ac_prog; then
1172 if test $ac_prog = install &&
1173 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1174 # AIX install. It has an incompatible calling convention.
1177 ac_cv_path_install="$ac_dir/$ac_prog -c"
1188 if test "${ac_cv_path_install+set}" = set; then
1189 INSTALL="$ac_cv_path_install"
1191 # As a last resort, use the slow shell script. We don't cache a
1192 # path for INSTALL within a source directory, because that will
1193 # break other packages using the cache if that directory is
1194 # removed, or if the path is relative.
1195 INSTALL="$ac_install_sh"
1198 echo "$ac_t""$INSTALL" 1>&6
1200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1201 # It thinks the first close brace ends the variable substitution.
1202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1209 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether ln -s works" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1215 if ln -s X conftestdata 2>/dev/null
1218 ac_cv_prog_LN_S="ln -s"
1223 LN_S="$ac_cv_prog_LN_S"
1224 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1225 echo "$ac_t""yes" 1>&6
1227 echo "$ac_t""no" 1>&6
1231 if test "$enable_auto_documentation" = yes; then
1232 # Extract the first word of "robodoc", so it can be a program name with args.
1233 set dummy robodoc; ac_word=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 if test -n "$ROBODOC"; then
1240 ac_cv_prog_ROBODOC="$ROBODOC" # Let the user override the test.
1242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1244 for ac_dir in $ac_dummy; do
1245 test -z "$ac_dir" && ac_dir=.
1246 if test -f $ac_dir/$ac_word; then
1247 ac_cv_prog_ROBODOC=""robodoc""
1252 test -z "$ac_cv_prog_ROBODOC" && ac_cv_prog_ROBODOC=""""
1255 ROBODOC="$ac_cv_prog_ROBODOC"
1256 if test -n "$ROBODOC"; then
1257 echo "$ac_t""$ROBODOC" 1>&6
1259 echo "$ac_t""no" 1>&6
1262 if test "$ROBODOC" != "robodoc"; then
1263 { echo "configure: error: need robodoc for auto documentation (IPD: module add robodoc)" 1>&2; exit 1; }
1268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1269 echo "configure:1270: checking how to run the C preprocessor" >&5
1270 # On Suns, sometimes $CPP names a directory.
1271 if test -n "$CPP" && test -d "$CPP"; then
1274 if test -z "$CPP"; then
1275 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 # This must be in double quotes, not single quotes, because CPP may get
1279 # substituted into the Makefile and "${CC-cc}" will confuse make.
1281 # On the NeXT, cc -E runs the code through the compiler's parser,
1282 # not just through cpp.
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1290 { (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1292 if test -z "$ac_err"; then
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1299 CPP="${CC-cc} -E -traditional-cpp"
1300 cat > conftest.$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1307 { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1309 if test -z "$ac_err"; then
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 CPP="${CC-cc} -nologo -E"
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1340 ac_cv_prog_CPP="$CPP"
1342 CPP="$ac_cv_prog_CPP"
1344 ac_cv_prog_CPP="$CPP"
1346 echo "$ac_t""$CPP" 1>&6
1348 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1349 echo "configure:1350: checking for ANSI C header files" >&5
1350 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1362 { (eval echo configure:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1364 if test -z "$ac_err"; then
1366 ac_cv_header_stdc=yes
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 ac_cv_header_stdc=no
1376 if test $ac_cv_header_stdc = yes; then
1377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1384 egrep "memchr" >/dev/null 2>&1; then
1388 ac_cv_header_stdc=no
1394 if test $ac_cv_header_stdc = yes; then
1395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1402 egrep "free" >/dev/null 2>&1; then
1406 ac_cv_header_stdc=no
1412 if test $ac_cv_header_stdc = yes; then
1413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1414 if test "$cross_compiling" = yes; then
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1421 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1422 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1424 int main () { int i; for (i = 0; i < 256; i++)
1425 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 ac_cv_header_stdc=no
1444 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1445 if test $ac_cv_header_stdc = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define STDC_HEADERS 1
1454 for ac_hdr in math.h
1456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_hdr" >&5
1459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1468 { (eval echo configure:1469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1470 if test -z "$ac_err"; then
1472 eval "ac_cv_header_$ac_safe=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_header_$ac_safe=no"
1482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1485 cat >> confdefs.h <<EOF
1486 #define $ac_tr_hdr 1
1488 ac_math_headers="yes"
1490 echo "$ac_t""no" 1>&6
1491 ac_math_headers="no"
1495 if test "$ac_math_headers" != yes; then
1496 { echo "configure: error: "math header file not found"" 1>&2; exit 1; }
1503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_hdr" >&5
1506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1519 eval "ac_cv_header_$ac_safe=yes"
1522 echo "configure: failed program was:" >&5
1523 cat conftest.$ac_ext >&5
1525 eval "ac_cv_header_$ac_safe=no"
1529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1530 echo "$ac_t""yes" 1>&6
1531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1532 cat >> confdefs.h <<EOF
1533 #define $ac_tr_hdr 1
1535 ac_gmp_headers="yes"
1537 echo "$ac_t""no" 1>&6
1542 if test "$ac_gmp_headers" != yes; then
1543 { echo "configure: error: "GNU multiprecission gmp header file not found"" 1>&2; exit 1; }
1548 for ac_hdr in obstack.h
1550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_hdr" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562 { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564 if test -z "$ac_err"; then
1566 eval "ac_cv_header_$ac_safe=yes"
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1572 eval "ac_cv_header_$ac_safe=no"
1576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1577 echo "$ac_t""yes" 1>&6
1578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1579 cat >> confdefs.h <<EOF
1580 #define $ac_tr_hdr 1
1582 ac_obstack_headers="yes"
1584 echo "$ac_t""no" 1>&6
1585 ac_obstack_headers="no"
1589 if test "$ac_obstack_headers" != yes; then
1590 { echo "configure: error: "obstack header file not found"" 1>&2; exit 1; }
1596 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1597 echo "configure:1598: checking for main in -lgmp" >&5
1598 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 ac_save_LIBS="$LIBS"
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 eval "ac_cv_lib_$ac_lib_var=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 eval "ac_cv_lib_$ac_lib_var=no"
1622 LIBS="$ac_save_LIBS"
1625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1627 ac_gmp_library="yes"
1629 echo "$ac_t""no" 1>&6
1633 if test "$ac_gmp_library" != yes; then
1634 { echo "configure: error: "GNU multiprecission gmp library not found"" 1>&2; exit 1; }
1638 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1639 echo "configure:1640: checking for main in -lm" >&5
1640 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 ac_save_LIBS="$LIBS"
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1656 eval "ac_cv_lib_$ac_lib_var=yes"
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1661 eval "ac_cv_lib_$ac_lib_var=no"
1664 LIBS="$ac_save_LIBS"
1667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1671 echo "$ac_t""no" 1>&6
1675 if test "$ac_m_library" != yes; then
1676 { echo "configure: error: "standard math library not found"" 1>&2; exit 1; }
1684 echo $ac_n "checking for strerror""... $ac_c" 1>&6
1685 echo "configure:1686: checking for strerror" >&5
1686 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 /* System header to define __stub macros and hopefully few prototypes,
1693 which can conflict with char strerror(); below. */
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined (__stub_strerror) || defined (__stub___strerror)
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1715 eval "ac_cv_func_strerror=yes"
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 eval "ac_cv_func_strerror=no"
1725 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1729 echo "$ac_t""no" 1>&6
1730 { echo "configure: error: "need strerror function"" 1>&2; exit 1; }
1739 cat > confcache <<\EOF
1740 # This file is a shell script that caches the results of configure
1741 # tests run on this system so they can be shared between configure
1742 # scripts and configure runs. It is not useful on other systems.
1743 # If it contains results you don't want to keep, you may remove or edit it.
1745 # By default, configure uses ./config.cache as the cache file,
1746 # creating it if it does not exist already. You can give configure
1747 # the --cache-file=FILE option to use a different cache file; that is
1748 # what configure does when it calls configure scripts in
1749 # subdirectories, so they share the cache.
1750 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1751 # config.status only pays attention to the cache file if you give it the
1752 # --recheck option to rerun configure.
1755 # The following way of writing the cache mishandles newlines in values,
1756 # but we know of no workaround that is simple, portable, and efficient.
1757 # So, don't put newlines in cache variables' values.
1758 # Ultrix sh set writes to stderr and can't be redirected directly,
1759 # and sets the high bit in the cache file unless we assign to the vars.
1761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1763 # `set' does not quote correctly, so add quotes (double-quote substitution
1764 # turns \\\\ into \\, and sed turns \\ into \).
1766 -e "s/'/'\\\\''/g" \
1767 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1770 # `set' quotes correctly as required by POSIX, so do not add quotes.
1771 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1774 if cmp -s $cache_file confcache; then
1777 if test -w $cache_file; then
1778 echo "updating cache $cache_file"
1779 cat confcache > $cache_file
1781 echo "not updating unwritable cache $cache_file"
1786 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1789 # Let make expand exec_prefix.
1790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1792 # Any assignment to VPATH causes Sun make to only execute
1793 # the first set of double-colon rules, so remove it if not needed.
1794 # If there is a colon in the path, we need to keep it.
1795 if test "x$srcdir" = x.; then
1796 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1799 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1801 DEFS=-DHAVE_CONFIG_H
1803 # Without the "./", some shells look in PATH for config.status.
1804 : ${CONFIG_STATUS=./config.status}
1806 echo creating $CONFIG_STATUS
1807 rm -f $CONFIG_STATUS
1808 cat > $CONFIG_STATUS <<EOF
1810 # Generated automatically by configure.
1811 # Run this file to recreate the current configuration.
1812 # This directory was configured as follows,
1813 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1815 # $0 $ac_configure_args
1817 # Compiler output produced by configure, useful for debugging
1818 # configure, is in ./config.log if it exists.
1820 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1823 case "\$ac_option" in
1824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1825 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1826 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1827 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1828 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1830 -help | --help | --hel | --he | --h)
1831 echo "\$ac_cs_usage"; exit 0 ;;
1832 *) echo "\$ac_cs_usage"; exit 1 ;;
1836 ac_given_srcdir=$srcdir
1837 ac_given_INSTALL="$INSTALL"
1839 trap 'rm -fr `echo "$ac_output_file config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1841 cat >> $CONFIG_STATUS <<EOF
1843 # Protect against being on the right side of a sed subst in config.status.
1844 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1845 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1849 s%@CFLAGS@%$CFLAGS%g
1850 s%@CPPFLAGS@%$CPPFLAGS%g
1851 s%@CXXFLAGS@%$CXXFLAGS%g
1852 s%@FFLAGS@%$FFLAGS%g
1854 s%@LDFLAGS@%$LDFLAGS%g
1856 s%@exec_prefix@%$exec_prefix%g
1857 s%@prefix@%$prefix%g
1858 s%@program_transform_name@%$program_transform_name%g
1859 s%@bindir@%$bindir%g
1860 s%@sbindir@%$sbindir%g
1861 s%@libexecdir@%$libexecdir%g
1862 s%@datadir@%$datadir%g
1863 s%@sysconfdir@%$sysconfdir%g
1864 s%@sharedstatedir@%$sharedstatedir%g
1865 s%@localstatedir@%$localstatedir%g
1866 s%@libdir@%$libdir%g
1867 s%@includedir@%$includedir%g
1868 s%@oldincludedir@%$oldincludedir%g
1869 s%@infodir@%$infodir%g
1870 s%@mandir@%$mandir%g
1871 s%@libfirm_conf_env@%$libfirm_conf_env%g
1872 s%@enable_debug_libfirm@%$enable_debug_libfirm%g
1873 s%@enable_gcc_inline@%$enable_gcc_inline%g
1874 s%@enable_profile_libfirm@%$enable_profile_libfirm%g
1875 s%@enable_auto_documentation@%$enable_auto_documentation%g
1878 s%@host_alias@%$host_alias%g
1879 s%@host_cpu@%$host_cpu%g
1880 s%@host_vendor@%$host_vendor%g
1881 s%@host_os@%$host_os%g
1883 s%@build_alias@%$build_alias%g
1884 s%@build_cpu@%$build_cpu%g
1885 s%@build_vendor@%$build_vendor%g
1886 s%@build_os@%$build_os%g
1888 s%@libfirm_cv_prog_ld_r@%$libfirm_cv_prog_ld_r%g
1891 s%@RANLIB@%$RANLIB%g
1892 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1893 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1894 s%@INSTALL_DATA@%$INSTALL_DATA%g
1896 s%@ROBODOC@%$ROBODOC%g
1902 cat >> $CONFIG_STATUS <<\EOF
1904 # Split the substitutions into bite-sized pieces for seds with
1905 # small command number limits, like on Digital OSF/1 and HP-UX.
1906 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1907 ac_file=1 # Number of current file.
1908 ac_beg=1 # First line for current file.
1909 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1912 while $ac_more_lines; do
1913 if test $ac_beg -gt 1; then
1914 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1916 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1918 if test ! -s conftest.s$ac_file; then
1920 rm -f conftest.s$ac_file
1922 if test -z "$ac_sed_cmds"; then
1923 ac_sed_cmds="sed -f conftest.s$ac_file"
1925 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1927 ac_file=`expr $ac_file + 1`
1929 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1932 if test -z "$ac_sed_cmds"; then
1937 cat >> $CONFIG_STATUS <<EOF
1939 CONFIG_FILES=\${CONFIG_FILES-"$ac_output_file"}
1941 cat >> $CONFIG_STATUS <<\EOF
1942 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1945 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1947 *) ac_file_in="${ac_file}.in" ;;
1950 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1952 # Remove last slash and all that follows it. Not all systems have dirname.
1953 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1954 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1955 # The file is in a subdirectory.
1956 test ! -d "$ac_dir" && mkdir "$ac_dir"
1957 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1958 # A "../" for each directory in $ac_dir_suffix.
1959 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1961 ac_dir_suffix= ac_dots=
1964 case "$ac_given_srcdir" in
1966 if test -z "$ac_dots"; then top_srcdir=.
1967 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1968 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1970 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1971 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1974 case "$ac_given_INSTALL" in
1975 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1976 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1979 echo creating "$ac_file"
1981 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1983 *Makefile*) ac_comsub="1i\\
1984 # $configure_input" ;;
1988 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1990 s%@configure_input@%$configure_input%g
1991 s%@srcdir@%$srcdir%g
1992 s%@top_srcdir@%$top_srcdir%g
1993 s%@INSTALL@%$INSTALL%g
1994 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1998 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1999 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2001 # ac_d sets the value in "#define NAME VALUE" lines.
2002 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2003 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2006 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2007 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2008 ac_uB='\([ ]\)%\1#\2define\3'
2011 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2012 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2013 ac_eB='$%\1#\2define\3'
2017 if test "${CONFIG_HEADERS+set}" != set; then
2019 cat >> $CONFIG_STATUS <<EOF
2020 CONFIG_HEADERS="config.h"
2022 cat >> $CONFIG_STATUS <<\EOF
2024 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2027 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2028 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2029 *) ac_file_in="${ac_file}.in" ;;
2032 echo creating $ac_file
2034 rm -f conftest.frag conftest.in conftest.out
2035 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2036 cat $ac_file_inputs > conftest.in
2040 # Transform confdefs.h into a sed script conftest.vals that substitutes
2041 # the proper values into config.h.in to produce config.h. And first:
2042 # Protect against being on the right side of a sed subst in config.status.
2043 # Protect against being in an unquoted here document in config.status.
2045 cat > conftest.hdr <<\EOF
2048 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2052 sed -n -f conftest.hdr confdefs.h > conftest.vals
2055 # This sed command replaces #undef with comments. This is necessary, for
2056 # example, in the case of _POSIX_SOURCE, which is predefined and required
2057 # on some systems where configure will not decide to define it.
2058 cat >> conftest.vals <<\EOF
2059 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2062 # Break up conftest.vals because some shells have a limit on
2063 # the size of here documents, and old seds have small limits too.
2068 ac_lines=`grep -c . conftest.vals`
2069 # grep -c gives empty output for an empty file on some AIX systems.
2070 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2071 # Write a limited-size here document to conftest.frag.
2072 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2073 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2075 sed -f conftest.frag conftest.in > conftest.out
2077 mv conftest.out conftest.in
2079 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2081 mv conftest.tail conftest.vals
2085 cat >> $CONFIG_STATUS <<\EOF
2086 rm -f conftest.frag conftest.h
2087 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2088 cat conftest.in >> conftest.h
2090 if cmp -s $ac_file conftest.h 2>/dev/null; then
2091 echo "$ac_file is unchanged"
2094 # Remove last slash and all that follows it. Not all systems have dirname.
2095 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2096 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2097 # The file is in a subdirectory.
2098 test ! -d "$ac_dir" && mkdir "$ac_dir"
2101 mv conftest.h $ac_file
2106 cat >> $CONFIG_STATUS <<EOF
2109 cat >> $CONFIG_STATUS <<\EOF
2113 chmod +x $CONFIG_STATUS
2114 rm -fr confdefs* $ac_clean_files
2115 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1