2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53 for libfirm 0.3.0.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 if expr a : '\(a\)' >/dev/null 2>&1; then
18 ## --------------------- ##
19 ## M4sh Initialization. ##
20 ## --------------------- ##
22 # Be Bourne compatible
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Support unset when possible.
32 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
38 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
64 # Name of the executable.
65 as_me=`(basename "$0") 2>/dev/null ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
76 # PATH needs CR, and LINENO needs CR and PATH.
77 # Avoid depending upon Character Ranges.
78 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81 as_cr_digits='0123456789'
82 as_cr_alnum=$as_cr_Letters$as_cr_digits
84 # The user is always right.
85 if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
126 case $CONFIG_SHELL in
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
136 if ("$as_dir/$as_base" -c '
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
168 s,^['$as_cr_digits']*\n,,
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
178 # Exit status is that of the last command.
183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Sed expression to map a string onto a valid CPP name.
217 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219 # Sed expression to map a string onto a valid variable name.
220 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
224 # We need space, tab and new line, in precisely that order.
230 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
234 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235 # so uname gets run too.
236 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
243 ac_default_prefix=/usr/local
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Maximum number of lines to put in a shell here document.
251 # This variable seems obsolete. It should probably be removed, and
252 # only ac_max_sed_lines should be used.
253 : ${ac_max_here_lines=38}
255 # Identity of this package.
256 PACKAGE_NAME='libfirm'
257 PACKAGE_TARNAME='libfirm'
258 PACKAGE_VERSION='0.3.0'
259 PACKAGE_STRING='libfirm 0.3.0'
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures libfirm 0.3.0 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
818 if test -n "$ac_init_help"; then
819 case $ac_init_help in
820 short | recursive ) echo "Configuration of libfirm 0.3.0:";;
825 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
826 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
827 --enable-debug enable assertions and additional debugging routines
828 --disable-inlining disable inline C-extension
829 --enable-profile enable profiling
830 --enable-autodoc enable auto documentation
831 --enable-firmjni check for tools necesarry to construct a java native interface for Firm
832 --enable-heapanalysis Compile with heap analysis.
833 --disable-libiberty disable own libiberty parts
834 --enable-statistics enable Firm statistics
835 --disable-effects disable descriptions of external effects in XML
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-includedir=add colon seperated list of directories to include search path
841 --with-libdir=add colon seperated list of directories to linker search path
843 Some influential environment variables:
844 CC C compiler command
845 CFLAGS C compiler flags
846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
847 nonstandard directory <lib dir>
848 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
849 headers in a nonstandard directory <include dir>
852 Use these variables to override the choices made by `configure' or to help
853 it to find libraries and programs with nonstandard names/locations.
858 if test "$ac_init_help" = "recursive"; then
859 # If there are subdirs, report their specific --help.
861 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
862 test -d $ac_dir || continue
865 if test "$ac_dir" != .; then
866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
867 # A "../" for each directory in $ac_dir_suffix.
868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 ac_dir_suffix= ac_top_builddir=
874 .) # No --srcdir option. We are building in place.
876 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 [\\/]* | ?:[\\/]* ) # Absolute path.
882 ac_srcdir=$srcdir$ac_dir_suffix;
883 ac_top_srcdir=$srcdir ;;
885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
891 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
896 # Check for guested configure; otherwise get Cygnus style configure.
897 if test -f $ac_srcdir/configure.gnu; then
899 $SHELL $ac_srcdir/configure.gnu --help=recursive
900 elif test -f $ac_srcdir/configure; then
902 $SHELL $ac_srcdir/configure --help=recursive
903 elif test -f $ac_srcdir/configure.ac ||
904 test -f $ac_srcdir/configure.in; then
908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 test -n "$ac_init_help" && exit 0
915 if $ac_init_version; then
917 libfirm configure 0.3.0
918 generated by GNU Autoconf 2.53
920 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
921 Free Software Foundation, Inc.
922 This configure script is free software; the Free Software Foundation
923 gives unlimited permission to copy, distribute and modify it.
929 This file contains any messages produced by compilers while
930 running configure, to aid debugging if configure makes a mistake.
932 It was created by libfirm $as_me 0.3.0, which was
933 generated by GNU Autoconf 2.53. Invocation command line was
944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
967 test -z "$as_dir" && as_dir=.
983 # Keep a trace of the command line.
984 # Strip out --no-create and --no-recursion so they do not pile up.
985 # Also quote any args containing shell meta-characters.
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n ) continue ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
999 case " $ac_configure_args " in
1000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1001 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1004 # Get rid of the leading space.
1007 # When interrupted or exit'd, cleanup temporary files, and complete
1008 # config.log. We remove comments because anyway the quotes in there
1009 # would cause problems or look ugly.
1010 # WARNING: Be sure not to use single quotes in there, as some shells,
1011 # such as our DU 5.0 friend, will then `close' the trap.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1017 ## ---------------- ##
1018 ## Cache variables. ##
1019 ## ---------------- ##
1022 # The following way of writing the cache mishandles newlines in values,
1025 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 if test -s confdefs.h; then
1045 sed "/^$/d" confdefs.h
1048 test "$ac_signal" != 0 &&
1049 echo "$as_me: caught signal $ac_signal"
1050 echo "$as_me: exit $exit_status"
1052 rm -f core core.* *.core &&
1053 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1056 for ac_signal in 1 2 13 15; do
1057 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1062 rm -rf conftest* confdefs.h
1063 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1066 # Predefined preprocessor variables.
1068 cat >>confdefs.h <<_ACEOF
1069 #define PACKAGE_NAME "$PACKAGE_NAME"
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_STRING "$PACKAGE_STRING"
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1093 # Let the site file select an alternate cache file if it wants to.
1094 # Prefer explicitly selected file to automatically selected ones.
1095 if test -z "$CONFIG_SITE"; then
1096 if test "x$prefix" != xNONE; then
1097 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1099 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1102 for ac_site_file in $CONFIG_SITE; do
1103 if test -r "$ac_site_file"; then
1104 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1105 echo "$as_me: loading site script $ac_site_file" >&6;}
1106 sed 's/^/| /' "$ac_site_file" >&5
1111 if test -r "$cache_file"; then
1112 # Some versions of bash will fail to source /dev/null (special
1113 # files actually), so we avoid doing that.
1114 if test -f "$cache_file"; then
1115 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1116 echo "$as_me: loading cache $cache_file" >&6;}
1118 [\\/]* | ?:[\\/]* ) . $cache_file;;
1119 *) . ./$cache_file;;
1123 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1124 echo "$as_me: creating cache $cache_file" >&6;}
1128 # Check that the precious variables saved in the cache have kept the same
1130 ac_cache_corrupted=false
1131 for ac_var in `(set) 2>&1 |
1132 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1133 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1134 eval ac_new_set=\$ac_env_${ac_var}_set
1135 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1136 eval ac_new_val="\$ac_env_${ac_var}_value"
1137 case $ac_old_set,$ac_new_set in
1139 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1140 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1141 ac_cache_corrupted=: ;;
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1148 if test "x$ac_old_val" != "x$ac_new_val"; then
1149 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1150 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1151 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1152 echo "$as_me: former value: $ac_old_val" >&2;}
1153 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1154 echo "$as_me: current value: $ac_new_val" >&2;}
1155 ac_cache_corrupted=:
1158 # Pass precious variables to config.status.
1159 if test "$ac_new_set" = set; then
1161 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1162 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1163 *) ac_arg=$ac_var=$ac_new_val ;;
1165 case " $ac_configure_args " in
1166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1167 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1171 if $ac_cache_corrupted; then
1172 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1173 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1174 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1175 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1176 { (exit 1); exit 1; }; }
1180 ac_cpp='$CPP $CPPFLAGS'
1181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1211 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
1212 ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
1213 ir/ana/Makefile ir/tr/Makefile ir/ana2/Makefile ir/stat/Makefile \
1214 ir/opt/Makefile ir/external/Makefile ir/config/Makefile \
1215 testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
1218 ac_config_headers="$ac_config_headers config.h"
1221 libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
1224 CONF_DIR_NAME=`dirname $0`
1227 # Check whether --with-includedir or --without-includedir was given.
1228 if test "${with_includedir+set}" = set; then
1229 withval="$with_includedir"
1230 CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`
1236 # Check whether --with-libdir or --without-libdir was given.
1237 if test "${with_libdir+set}" = set; then
1238 withval="$with_libdir"
1239 LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`
1245 # Check whether --enable-debug or --disable-debug was given.
1246 if test "${enable_debug+set}" = set; then
1247 enableval="$enable_debug"
1248 if test "$enableval" = yes; then
1249 cat >>confdefs.h <<\_ACEOF
1250 #define DEBUG_libfirm 1
1254 cat >>confdefs.h <<\_ACEOF
1262 # Check whether --enable-inlining or --disable-inlining was given.
1263 if test "${enable_inlining+set}" = set; then
1264 enableval="$enable_inlining"
1265 if test "$enableval" = yes; then
1266 cat >>confdefs.h <<\_ACEOF
1267 #define USE_INLINING 1
1272 cat >>confdefs.h <<\_ACEOF
1273 #define USE_INLINING 1
1279 # Check whether --enable-profile or --disable-profile was given.
1280 if test "${enable_profile+set}" = set; then
1281 enableval="$enable_profile"
1282 if test "$enableval"=yes; then
1283 enable_profile_libfirm=yes
1286 enable_profile_libfirm=no
1290 # Check whether --enable-autodoc or --disable-autodoc was given.
1291 if test "${enable_autodoc+set}" = set; then
1292 enableval="$enable_autodoc"
1293 if test "$enableval"=yes; then
1294 enable_auto_documentation=yes
1297 enable_auto_documentation=no
1302 # Check whether --enable-firmjni or --disable-firmjni was given.
1303 if test "${enable_firmjni+set}" = set; then
1304 enableval="$enable_firmjni"
1305 if test "$enableval"=yes; then
1313 # Check whether --enable-heapanalysis or --disable-heapanalysis was given.
1314 if test "${enable_heapanalysis+set}" = set; then
1315 enableval="$enable_heapanalysis"
1316 enable_heapanalysis=$enableval
1318 enable_heapanalysis="no"
1320 if test "$enable_heapanalysis" = "no"; then
1321 echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
1322 echo "${ECHO_T}heapanalysis disabled" >&6
1324 cat >>confdefs.h <<\_ACEOF
1325 #define DO_HEAPANALYSIS 1
1328 echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
1329 echo "${ECHO_T}heapanalysis enabled" >&6
1333 # Check whether --enable-libiberty or --disable-libiberty was given.
1334 if test "${enable_libiberty+set}" = set; then
1335 enableval="$enable_libiberty"
1336 if test "$enableval"=yes; then
1337 disable_libiberty_=yes
1340 disable_libiberty=no
1344 # Check whether --enable-statistics or --disable-statistics was given.
1345 if test "${enable_statistics+set}" = set; then
1346 enableval="$enable_statistics"
1347 if test "$enableval"=yes; then
1348 cat >>confdefs.h <<\_ACEOF
1349 #define FIRM_STATISTICS 1
1356 echo "$as_me:$LINENO: checking for using external effects in xml2" >&5
1357 echo $ECHO_N "checking for using external effects in xml2... $ECHO_C" >&6
1358 # Check whether --enable-external-effects or --disable-external-effects was given.
1359 if test "${enable_external_effects+set}" = set; then
1360 enableval="$enable_external_effects"
1361 if test "$enableval"=no; then
1362 enable_external_effects=no
1365 enable_external_effects=yes
1368 if test "$enable_external_effects" == "no"; then
1369 echo "$as_me:$LINENO: result: disabled" >&5
1370 echo "${ECHO_T}disabled" >&6
1372 echo "$as_me:$LINENO: result: enabled" >&5
1373 echo "${ECHO_T}enabled" >&6
1379 ac_cpp='$CPP $CPPFLAGS'
1380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383 if test -n "$ac_tool_prefix"; then
1384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$CC"; then
1392 ac_cv_prog_CC="$CC" # Let the user override the test.
1394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398 test -z "$as_dir" && as_dir=.
1399 for ac_exec_ext in '' $ac_executable_extensions; do
1400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 if test -n "$CC"; then
1412 echo "$as_me:$LINENO: result: $CC" >&5
1413 echo "${ECHO_T}$CC" >&6
1415 echo "$as_me:$LINENO: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1420 if test -z "$ac_cv_prog_CC"; then
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc; ac_word=$2
1424 echo "$as_me:$LINENO: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 if test -n "$ac_ct_CC"; then
1430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 test -z "$as_dir" && as_dir=.
1437 for ac_exec_ext in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439 ac_cv_prog_ac_ct_CC="gcc"
1440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1449 if test -n "$ac_ct_CC"; then
1450 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1451 echo "${ECHO_T}$ac_ct_CC" >&6
1453 echo "$as_me:$LINENO: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1462 if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}cc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}cc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1495 echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1500 if test -z "$ac_cv_prog_CC"; then
1502 # Extract the first word of "cc", so it can be a program name with args.
1503 set dummy cc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="cc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1543 if test -z "$CC"; then
1544 # Extract the first word of "cc", so it can be a program name with args.
1545 set dummy cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1563 ac_prog_rejected=yes
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test $ac_prog_rejected = yes; then
1574 # We found a bogon in the path, so make sure we never use it.
1575 set dummy $ac_cv_prog_CC
1577 if test $# != 0; then
1578 # We chose a different compiler from the bogus one.
1579 # However, it has the same basename, so the bogon will be chosen
1580 # first if we set CC to just the basename; use the full file name.
1582 set dummy "$as_dir/$ac_word" ${1+"$@"}
1590 if test -n "$CC"; then
1591 echo "$as_me:$LINENO: result: $CC" >&5
1592 echo "${ECHO_T}$CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1605 echo "$as_me:$LINENO: checking for $ac_word" >&5
1606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607 if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 if test -n "$CC"; then
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632 echo "${ECHO_T}$CC" >&6
1634 echo "$as_me:$LINENO: result: no" >&5
1635 echo "${ECHO_T}no" >&6
1638 test -n "$CC" && break
1641 if test -z "$CC"; then
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646 set dummy $ac_prog; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1680 test -n "$ac_ct_CC" && break
1689 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1690 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1691 { (exit 1); exit 1; }; }
1693 # Provide some information about the compiler.
1694 echo "$as_me:$LINENO:" \
1695 "checking for C compiler version" >&5
1696 ac_compiler=`set X $ac_compile; echo $2`
1697 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1698 (eval $ac_compiler --version </dev/null >&5) 2>&5
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }
1702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1703 (eval $ac_compiler -v </dev/null >&5) 2>&5
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1708 (eval $ac_compiler -V </dev/null >&5) 2>&5
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1713 cat >conftest.$ac_ext <<_ACEOF
1714 #line $LINENO "configure"
1715 #include "confdefs.h"
1717 #ifdef F77_DUMMY_MAIN
1721 int F77_DUMMY_MAIN() { return 1; }
1731 ac_clean_files_save=$ac_clean_files
1732 ac_clean_files="$ac_clean_files a.out a.exe"
1733 # Try to create an executable without -o first, disregard a.out.
1734 # It will help us diagnose broken compilers, and finding out an intuition
1736 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1737 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1739 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1740 (eval $ac_link_default) 2>&5
1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743 (exit $ac_status); }; then
1744 # Find the output, starting from the most likely. This scheme is
1745 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748 # Be careful to initialize this variable, since it used to be cached.
1749 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1751 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1752 ls a.out conftest 2>/dev/null;
1753 ls a.* conftest.* 2>/dev/null`; do
1755 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1756 a.out ) # We found the default executable, but exeext='' is most
1759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1760 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1767 echo "$as_me: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1770 echo "$as_me: error: C compiler cannot create executables" >&2;}
1771 { (exit 77); exit 77; }; }
1774 ac_exeext=$ac_cv_exeext
1775 echo "$as_me:$LINENO: result: $ac_file" >&5
1776 echo "${ECHO_T}$ac_file" >&6
1778 # Check the compiler produces executables we can run. If not, either
1779 # the compiler is broken, or we cross compile.
1780 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1783 # If not cross compiling, check that we can run a simple program.
1784 if test "$cross_compiling" != yes; then
1785 if { ac_try='./$ac_file'
1786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 if test "$cross_compiling" = maybe; then
1796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1797 If you meant to cross compile, use \`--host'." >&5
1798 echo "$as_me: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'." >&2;}
1800 { (exit 1); exit 1; }; }
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1807 rm -f a.out a.exe conftest$ac_cv_exeext
1808 ac_clean_files=$ac_clean_files_save
1809 # Check the compiler produces executables we can run. If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1812 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1813 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1814 echo "${ECHO_T}$cross_compiling" >&6
1816 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1817 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1819 (eval $ac_link) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1825 # work properly (i.e., refer to `conftest.exe'), while it won't with
1827 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1829 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1837 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1839 { (exit 1); exit 1; }; }
1842 rm -f conftest$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1844 echo "${ECHO_T}$ac_cv_exeext" >&6
1846 rm -f conftest.$ac_ext
1847 EXEEXT=$ac_cv_exeext
1849 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1851 if test "${ac_cv_objext+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1856 #include "confdefs.h"
1858 #ifdef F77_DUMMY_MAIN
1862 int F77_DUMMY_MAIN() { return 1; }
1872 rm -f conftest.o conftest.obj
1873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874 (eval $ac_compile) 2>&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1881 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 echo "$as_me: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1889 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1890 { (exit 1); exit 1; }; }
1893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1895 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1896 echo "${ECHO_T}$ac_cv_objext" >&6
1897 OBJEXT=$ac_cv_objext
1899 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1900 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1901 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 cat >conftest.$ac_ext <<_ACEOF
1905 #line $LINENO "configure"
1906 #include "confdefs.h"
1908 #ifdef F77_DUMMY_MAIN
1912 int F77_DUMMY_MAIN() { return 1; }
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1943 rm -f conftest.$ac_objext conftest.$ac_ext
1944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1947 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1949 GCC=`test $ac_compiler_gnu = yes && echo yes`
1950 ac_test_CFLAGS=${CFLAGS+set}
1951 ac_save_CFLAGS=$CFLAGS
1953 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1954 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1955 if test "${ac_cv_prog_cc_g+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.$ac_ext <<_ACEOF
1959 #line $LINENO "configure"
1960 #include "confdefs.h"
1962 #ifdef F77_DUMMY_MAIN
1966 int F77_DUMMY_MAIN() { return 1; }
1976 rm -f conftest.$ac_objext
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1990 echo "$as_me: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1994 rm -f conftest.$ac_objext conftest.$ac_ext
1996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1998 if test "$ac_test_CFLAGS" = set; then
1999 CFLAGS=$ac_save_CFLAGS
2000 elif test $ac_cv_prog_cc_g = yes; then
2001 if test "$GCC" = yes; then
2007 if test "$GCC" = yes; then
2013 # Some people use a C++ compiler to compile C. Since we use `exit',
2014 # in C++ we need to declare it. In case someone uses the same compiler
2015 # for both compiling C and C++ we need to have the C++ compiler decide
2016 # the declaration of exit, since it's the most demanding environment.
2017 cat >conftest.$ac_ext <<_ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 for ac_declaration in \
2036 '#include <stdlib.h>' \
2037 'extern "C" void std::exit (int) throw (); using std::exit;' \
2038 'extern "C" void std::exit (int); using std::exit;' \
2039 'extern "C" void exit (int) throw ();' \
2040 'extern "C" void exit (int);' \
2043 cat >conftest.$ac_ext <<_ACEOF
2044 #line $LINENO "configure"
2045 #include "confdefs.h"
2048 #ifdef F77_DUMMY_MAIN
2052 int F77_DUMMY_MAIN() { return 1; }
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line $LINENO "configure"
2083 #include "confdefs.h"
2085 #ifdef F77_DUMMY_MAIN
2089 int F77_DUMMY_MAIN() { return 1; }
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 echo "$as_me: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2116 rm -f conftest.$ac_objext conftest.$ac_ext
2119 if test -n "$ac_declaration"; then
2120 echo '#ifdef __cplusplus' >>confdefs.h
2121 echo $ac_declaration >>confdefs.h
2122 echo '#endif' >>confdefs.h
2126 echo "$as_me: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 rm -f conftest.$ac_objext conftest.$ac_ext
2131 ac_cpp='$CPP $CPPFLAGS'
2132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 if test -z "$LD"; then
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}ld; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_LD+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$LD"; then
2148 ac_cv_prog_LD="$LD" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_LD="${ac_tool_prefix}ld"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 if test -n "$LD"; then
2168 echo "$as_me:$LINENO: result: $LD" >&5
2169 echo "${ECHO_T}$LD" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$ac_cv_prog_LD"; then
2178 # Extract the first word of "ld", so it can be a program name with args.
2179 set dummy ld; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$ac_ct_LD"; then
2186 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 ac_cv_prog_ac_ct_LD="ld"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2205 if test -n "$ac_ct_LD"; then
2206 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2207 echo "${ECHO_T}$ac_ct_LD" >&6
2209 echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2220 echo "$as_me:$LINENO: checking whether $LD accepts -r" >&5
2221 echo $ECHO_N "checking whether $LD accepts -r... $ECHO_C" >&6
2222 if test "${libfirm_cv_prog_ld_r+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 libfirm_cv_prog_ld_r=no
2228 cat > conftest.$ac_ext <<EOF
2229 int foo() { return 0; }
2231 if eval $ac_compile && mv conftest.o conftest2.o; then
2232 cat > conftest.$ac_ext <<EOF
2234 int main() { return foo(); }
2236 if eval $ac_compile; then
2237 if $LD -r -o conftest conftest.o conftest2.o; then
2238 libfirm_cv_prog_ld_r=yes
2245 echo "$as_me:$LINENO: result: $libfirm_cv_prog_ld_r" >&5
2246 echo "${ECHO_T}$libfirm_cv_prog_ld_r" >&6
2249 if test "$libfirm_cv_prog_ld_r" != "yes"; then
2250 { { echo "$as_me:$LINENO: error: need a prelinkcapable linker" >&5
2251 echo "$as_me: error: need a prelinkcapable linker" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # Extract the first word of "ar", so it can be a program name with args.
2256 set dummy ar; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_AR+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 if test -n "$AR"; then
2263 ac_cv_prog_AR="$AR" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_AR=""ar""
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""""
2283 if test -n "$AR"; then
2284 echo "$as_me:$LINENO: result: $AR" >&5
2285 echo "${ECHO_T}$AR" >&6
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2291 if test "$AR" != "ar"; then
2292 { { echo "$as_me:$LINENO: error: need ar for creating archives" >&5
2293 echo "$as_me: error: need ar for creating archives" >&2;}
2294 { (exit 1); exit 1; }; }
2297 # Extract the first word of "tar", so it can be a program name with args.
2298 set dummy tar; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_TAR+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$TAR"; then
2305 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_TAR=""tar""
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""""
2325 if test -n "$TAR"; then
2326 echo "$as_me:$LINENO: result: $TAR" >&5
2327 echo "${ECHO_T}$TAR" >&6
2329 echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6
2333 if test "$TAR" != "tar"; then
2334 { { echo "$as_me:$LINENO: error: need tar for creating archives in distribution" >&5
2335 echo "$as_me: error: need tar for creating archives in distribution" >&2;}
2336 { (exit 1); exit 1; }; }
2340 if test -n "$ac_tool_prefix"; then
2341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2343 echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_RANLIB+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$RANLIB"; then
2349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 RANLIB=$ac_cv_prog_RANLIB
2368 if test -n "$RANLIB"; then
2369 echo "$as_me:$LINENO: result: $RANLIB" >&5
2370 echo "${ECHO_T}$RANLIB" >&6
2372 echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6
2377 if test -z "$ac_cv_prog_RANLIB"; then
2378 ac_ct_RANLIB=$RANLIB
2379 # Extract the first word of "ranlib", so it can be a program name with args.
2380 set dummy ranlib; ac_word=$2
2381 echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_RANLIB"; then
2387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396 ac_cv_prog_ac_ct_RANLIB="ranlib"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2407 if test -n "$ac_ct_RANLIB"; then
2408 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2409 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2411 echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2415 RANLIB=$ac_ct_RANLIB
2417 RANLIB="$ac_cv_prog_RANLIB"
2422 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2423 if test -f $ac_dir/install-sh; then
2425 ac_install_sh="$ac_aux_dir/install-sh -c"
2427 elif test -f $ac_dir/install.sh; then
2429 ac_install_sh="$ac_aux_dir/install.sh -c"
2431 elif test -f $ac_dir/shtool; then
2433 ac_install_sh="$ac_aux_dir/shtool install -c"
2437 if test -z "$ac_aux_dir"; then
2438 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2439 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2440 { (exit 1); exit 1; }; }
2442 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2443 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2444 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2446 # Find a good install program. We prefer a C program (faster),
2447 # so one script is as good as another. But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # ./install, which can be erroneously created by make from ./install.sh.
2458 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2459 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2471 ./ | .// | /cC/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2502 if test "${ac_cv_path_install+set}" = set; then
2503 INSTALL=$ac_cv_path_install
2505 # As a last resort, use the slow shell script. We don't cache a
2506 # path for INSTALL within a source directory, because that will
2507 # break other packages using the cache if that directory is
2508 # removed, or if the path is relative.
2509 INSTALL=$ac_install_sh
2512 echo "$as_me:$LINENO: result: $INSTALL" >&5
2513 echo "${ECHO_T}$INSTALL" >&6
2515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2516 # It thinks the first close brace ends the variable substitution.
2517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524 touch tmp-install.a tmp-install.b
2525 if eval "$INSTALL -C tmp-install.a tmp-install.b" ; then
2526 INSTALL="$INSTALL -C"
2528 rm tmp-install.a tmp-install.b
2531 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2534 if test "$LN_S" = "ln -s"; then
2535 echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6
2538 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2539 echo "${ECHO_T}no, using $LN_S" >&6
2543 if test "$enable_auto_documentation" = yes; then
2544 # Extract the first word of "doxygen", so it can be a program name with args.
2545 set dummy doxygen; ac_word=$2
2546 echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2548 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 if test -n "$DOXYGEN"; then
2552 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_DOXYGEN=""doxygen""
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=""""
2571 DOXYGEN=$ac_cv_prog_DOXYGEN
2572 if test -n "$DOXYGEN"; then
2573 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
2574 echo "${ECHO_T}$DOXYGEN" >&6
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2580 if test "$DOXYGEN" != "doxygen"; then
2581 { { echo "$as_me:$LINENO: error: need doxygen for auto documentation" >&5
2582 echo "$as_me: error: need doxygen for auto documentation" >&2;}
2583 { (exit 1); exit 1; }; }
2585 # Extract the first word of "dot", so it can be a program name with args.
2586 set dummy dot; ac_word=$2
2587 echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589 if test "${ac_cv_prog_DOT+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 if test -n "$DOT"; then
2593 ac_cv_prog_DOT="$DOT" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_DOT=""dot""
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT=""""
2613 if test -n "$DOT"; then
2614 echo "$as_me:$LINENO: result: $DOT" >&5
2615 echo "${ECHO_T}$DOT" >&6
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2621 if test "$DOT" != "dot"; then
2622 { { echo "$as_me:$LINENO: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&5
2623 echo "$as_me: error: need dot for doxygen documentation (for class graphs) (IPD: module add Graphviz)" >&2;}
2624 { (exit 1); exit 1; }; }
2628 if test "$enable_firm_jni" = yes; then
2629 # Extract the first word of "javac", so it can be a program name with args.
2630 set dummy javac; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_JAVAC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$JAVAC"; then
2637 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_JAVAC=""javac""
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC=""""
2656 JAVAC=$ac_cv_prog_JAVAC
2657 if test -n "$JAVAC"; then
2658 echo "$as_me:$LINENO: result: $JAVAC" >&5
2659 echo "${ECHO_T}$JAVAC" >&6
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2665 if test "$JAVAC" != "javac"; then
2666 { { echo "$as_me:$LINENO: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&5
2667 echo "$as_me: error: need java compiler javac to generate jni (IPD: module add jdk-1.3.1-sun)" >&2;}
2668 { (exit 1); exit 1; }; }
2670 # Extract the first word of "javah", so it can be a program name with args.
2671 set dummy javah; ac_word=$2
2672 echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_prog_JAVAH+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$JAVAH"; then
2678 ac_cv_prog_JAVAH="$JAVAH" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_JAVAH=""javah""
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 test -z "$ac_cv_prog_JAVAH" && ac_cv_prog_JAVAH=""""
2697 JAVAH=$ac_cv_prog_JAVAH
2698 if test -n "$JAVAH"; then
2699 echo "$as_me:$LINENO: result: $JAVAH" >&5
2700 echo "${ECHO_T}$JAVAH" >&6
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 if test "$JAVAH" != "javah"; then
2707 { { echo "$as_me:$LINENO: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&5
2708 echo "$as_me: error: need javah to generate jni headers (IPD: module add jdk-1.3.1-sun)" >&2;}
2709 { (exit 1); exit 1; }; }
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2722 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2723 # On Suns, sometimes $CPP names a directory.
2724 if test -n "$CPP" && test -d "$CPP"; then
2727 if test -z "$CPP"; then
2728 if test "${ac_cv_prog_CPP+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 # Double quotes because CPP needs to be expanded
2732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2735 for ac_c_preproc_warn_flag in '' yes
2737 # Use a header file that comes with gcc, so configuring glibc
2738 # with a fresh cross-compiler works.
2739 # On the NeXT, cc -E runs the code through the compiler's parser,
2740 # not just through cpp. "Syntax error" is here to catch this case.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2743 #include "confdefs.h"
2747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750 egrep -v '^ *\+' conftest.er1 >conftest.err
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } >/dev/null; then
2755 if test -s conftest.err; then
2756 ac_cpp_err=$ac_c_preproc_warn_flag
2763 if test -z "$ac_cpp_err"; then
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 # Broken: fails on valid input.
2771 rm -f conftest.err conftest.$ac_ext
2773 # OK, works on sane cases. Now check whether non-existent headers
2774 # can be detected and how.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 #include "confdefs.h"
2778 #include <ac_nonexistent.h>
2780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2783 egrep -v '^ *\+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } >/dev/null; then
2788 if test -s conftest.err; then
2789 ac_cpp_err=$ac_c_preproc_warn_flag
2796 if test -z "$ac_cpp_err"; then
2797 # Broken: success on invalid input.
2800 echo "$as_me: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 # Passes both tests.
2806 rm -f conftest.err conftest.$ac_ext
2809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2810 rm -f conftest.err conftest.$ac_ext
2811 if $ac_preproc_ok; then
2823 echo "$as_me:$LINENO: result: $CPP" >&5
2824 echo "${ECHO_T}$CPP" >&6
2826 for ac_c_preproc_warn_flag in '' yes
2828 # Use a header file that comes with gcc, so configuring glibc
2829 # with a fresh cross-compiler works.
2830 # On the NeXT, cc -E runs the code through the compiler's parser,
2831 # not just through cpp. "Syntax error" is here to catch this case.
2832 cat >conftest.$ac_ext <<_ACEOF
2833 #line $LINENO "configure"
2834 #include "confdefs.h"
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 egrep -v '^ *\+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2854 if test -z "$ac_cpp_err"; then
2857 echo "$as_me: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2859 # Broken: fails on valid input.
2862 rm -f conftest.err conftest.$ac_ext
2864 # OK, works on sane cases. Now check whether non-existent headers
2865 # can be detected and how.
2866 cat >conftest.$ac_ext <<_ACEOF
2867 #line $LINENO "configure"
2868 #include "confdefs.h"
2869 #include <ac_nonexistent.h>
2871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2874 egrep -v '^ *\+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } >/dev/null; then
2879 if test -s conftest.err; then
2880 ac_cpp_err=$ac_c_preproc_warn_flag
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2891 echo "$as_me: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2907 { (exit 1); exit 1; }; }
2911 ac_cpp='$CPP $CPPFLAGS'
2912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2918 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2919 if test "${ac_cv_header_stdc+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #line $LINENO "configure"
2924 #include "confdefs.h"
2931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934 egrep -v '^ *\+' conftest.er1 >conftest.err
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null; then
2939 if test -s conftest.err; then
2940 ac_cpp_err=$ac_c_preproc_warn_flag
2947 if test -z "$ac_cpp_err"; then
2948 ac_cv_header_stdc=yes
2950 echo "$as_me: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2952 ac_cv_header_stdc=no
2954 rm -f conftest.err conftest.$ac_ext
2956 if test $ac_cv_header_stdc = yes; then
2957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 #include "confdefs.h"
2964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2965 egrep "memchr" >/dev/null 2>&1; then
2968 ac_cv_header_stdc=no
2974 if test $ac_cv_header_stdc = yes; then
2975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2978 #include "confdefs.h"
2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 egrep "free" >/dev/null 2>&1; then
2986 ac_cv_header_stdc=no
2992 if test $ac_cv_header_stdc = yes; then
2993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2994 if test "$cross_compiling" = yes; then
2997 cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
2999 #include "confdefs.h"
3001 #if ((' ' & 0x0FF) == 0x020)
3002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3005 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3006 || ('j' <= (c) && (c) <= 'r') \
3007 || ('s' <= (c) && (c) <= 'z'))
3008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3016 for (i = 0; i < 256; i++)
3017 if (XOR (islower (i), ISLOWER (i))
3018 || toupper (i) != TOUPPER (i))
3023 rm -f conftest$ac_exeext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025 (eval $ac_link) 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3036 echo "$as_me: program exited with status $ac_status" >&5
3037 echo "$as_me: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 ac_cv_header_stdc=no
3042 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3046 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3047 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3048 if test $ac_cv_header_stdc = yes; then
3050 cat >>confdefs.h <<\_ACEOF
3051 #define STDC_HEADERS 1
3058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3068 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3069 inttypes.h stdint.h unistd.h
3071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3072 echo "$as_me:$LINENO: checking for $ac_header" >&5
3073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 #include "confdefs.h"
3080 $ac_includes_default
3082 #include <$ac_header>
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086 (eval $ac_compile) 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 eval "$as_ac_Header=yes"
3098 echo "$as_me: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3100 eval "$as_ac_Header=no"
3102 rm -f conftest.$ac_objext conftest.$ac_ext
3104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3107 cat >>confdefs.h <<_ACEOF
3108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3117 for ac_header in math.h
3119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3121 echo "$as_me:$LINENO: checking for $ac_header" >&5
3122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3129 # Is the header compilable?
3130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3132 cat >conftest.$ac_ext <<_ACEOF
3133 #line $LINENO "configure"
3134 #include "confdefs.h"
3135 $ac_includes_default
3136 #include <$ac_header>
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -s conftest.$ac_objext'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_header_compiler=yes
3152 echo "$as_me: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 ac_header_compiler=no
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3158 echo "${ECHO_T}$ac_header_compiler" >&6
3160 # Is the header present?
3161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3163 cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 #include "confdefs.h"
3166 #include <$ac_header>
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 egrep -v '^ *\+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_c_preproc_warn_flag
3184 if test -z "$ac_cpp_err"; then
3185 ac_header_preproc=yes
3187 echo "$as_me: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 ac_header_preproc=no
3191 rm -f conftest.err conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3193 echo "${ECHO_T}$ac_header_preproc" >&6
3195 # So? What about this header?
3196 case $ac_header_compiler:$ac_header_preproc in
3198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3210 echo "$as_me:$LINENO: checking for $ac_header" >&5
3211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 eval "$as_ac_Header=$ac_header_preproc"
3217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3222 cat >>confdefs.h <<_ACEOF
3223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3225 ac_math_headers="yes"
3227 ac_math_headers="no"
3232 if test "$ac_math_headers" != yes; then
3233 { { echo "$as_me:$LINENO: error: \"math header file not found\"" >&5
3234 echo "$as_me: error: \"math header file not found\"" >&2;}
3235 { (exit 1); exit 1; }; }
3239 #dnl check for the gnu multiprecission (gmp) header file
3241 #AC_CHECK_HEADERS(gmp.h, ac_gmp_headers="yes", ac_gmp_headers="no")
3242 #if test "$ac_gmp_headers" != yes; then
3243 # dnl gmp header not found.
3244 # AC_MSG_ERROR("GNU multiprecission gmp header file not found")
3251 for ac_header in obstack.h
3253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo "$as_me:$LINENO: checking for $ac_header" >&5
3256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3263 # Is the header compilable?
3264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3267 #line $LINENO "configure"
3268 #include "confdefs.h"
3269 $ac_includes_default
3270 #include <$ac_header>
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 ac_header_compiler=yes
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 ac_header_compiler=no
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3292 echo "${ECHO_T}$ac_header_compiler" >&6
3294 # Is the header present?
3295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 #include "confdefs.h"
3300 #include <$ac_header>
3302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305 egrep -v '^ *\+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev/null; then
3310 if test -s conftest.err; then
3311 ac_cpp_err=$ac_c_preproc_warn_flag
3318 if test -z "$ac_cpp_err"; then
3319 ac_header_preproc=yes
3321 echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 ac_header_preproc=no
3325 rm -f conftest.err conftest.$ac_ext
3326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3327 echo "${ECHO_T}$ac_header_preproc" >&6
3329 # So? What about this header?
3330 case $ac_header_compiler:$ac_header_preproc in
3332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3344 echo "$as_me:$LINENO: checking for $ac_header" >&5
3345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 eval "$as_ac_Header=$ac_header_preproc"
3351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3356 cat >>confdefs.h <<_ACEOF
3357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3359 ac_obstack_headers="yes"
3361 ac_obstack_headers="no"
3366 if test "$ac_obstack_headers" != yes; then
3367 { { echo "$as_me:$LINENO: error: \"obstack.h not found\"" >&5
3368 echo "$as_me: error: \"obstack.h not found\"" >&2;}
3369 { (exit 1); exit 1; }; }
3374 for ac_header in alloca.h
3376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo "$as_me:$LINENO: checking for $ac_header" >&5
3379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3386 # Is the header compilable?
3387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3389 cat >conftest.$ac_ext <<_ACEOF
3390 #line $LINENO "configure"
3391 #include "confdefs.h"
3392 $ac_includes_default
3393 #include <$ac_header>
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_header_compiler=yes
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 ac_header_compiler=no
3413 rm -f conftest.$ac_objext conftest.$ac_ext
3414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3415 echo "${ECHO_T}$ac_header_compiler" >&6
3417 # Is the header present?
3418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <$ac_header>
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 egrep -v '^ *\+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3441 if test -z "$ac_cpp_err"; then
3442 ac_header_preproc=yes
3444 echo "$as_me: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3446 ac_header_preproc=no
3448 rm -f conftest.err conftest.$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3450 echo "${ECHO_T}$ac_header_preproc" >&6
3452 # So? What about this header?
3453 case $ac_header_compiler:$ac_header_preproc in
3455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3467 echo "$as_me:$LINENO: checking for $ac_header" >&5
3468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 eval "$as_ac_Header=$ac_header_preproc"
3474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479 cat >>confdefs.h <<_ACEOF
3480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3482 ac_alloca_headers="yes"
3484 ac_alloca_headers="no"
3489 if test "$ac_alloca_headers" = "yes"; then
3490 cat >>confdefs.h <<\_ACEOF
3491 #define HAVE_ALLOCA_H 1
3495 if test "$ac_cv_header_stdc" = "no"; then
3496 { { echo "$as_me:$LINENO: error: \"alloca.h and stdlib.h not found\"" >&5
3497 echo "$as_me: error: \"alloca.h and stdlib.h not found\"" >&2;}
3498 { (exit 1); exit 1; }; }
3504 if test "$enable_firm_jni" = yes; then
3506 for ac_header in jni.h
3508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510 echo "$as_me:$LINENO: checking for $ac_header" >&5
3511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3518 # Is the header compilable?
3519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3521 cat >conftest.$ac_ext <<_ACEOF
3522 #line $LINENO "configure"
3523 #include "confdefs.h"
3524 $ac_includes_default
3525 #include <$ac_header>
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -s conftest.$ac_objext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_header_compiler=yes
3541 echo "$as_me: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3543 ac_header_compiler=no
3545 rm -f conftest.$ac_objext conftest.$ac_ext
3546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3547 echo "${ECHO_T}$ac_header_compiler" >&6
3549 # Is the header present?
3550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3555 #include <$ac_header>
3557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3560 egrep -v '^ *\+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3573 if test -z "$ac_cpp_err"; then
3574 ac_header_preproc=yes
3576 echo "$as_me: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 ac_header_preproc=no
3580 rm -f conftest.err conftest.$ac_ext
3581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3582 echo "${ECHO_T}$ac_header_preproc" >&6
3584 # So? What about this header?
3585 case $ac_header_compiler:$ac_header_preproc in
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3599 echo "$as_me:$LINENO: checking for $ac_header" >&5
3600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 eval "$as_ac_Header=$ac_header_preproc"
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3614 ac_jni_headers="yes"
3621 if test "$ac_jni_headers" != yes; then
3622 { { echo "$as_me:$LINENO: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&5
3623 echo "$as_me: error: jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags)" >&2;}
3624 { (exit 1); exit 1; }; }
3629 if test "$enable_external_effects" == "yes"; then
3631 for ac_header in libxml/parser.h
3633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3643 # Is the header compilable?
3644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3646 cat >conftest.$ac_ext <<_ACEOF
3647 #line $LINENO "configure"
3648 #include "confdefs.h"
3649 $ac_includes_default
3650 #include <$ac_header>
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_header_compiler=yes
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 ac_header_compiler=no
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3672 echo "${ECHO_T}$ac_header_compiler" >&6
3674 # Is the header present?
3675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3680 #include <$ac_header>
3682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3685 egrep -v '^ *\+' conftest.er1 >conftest.err
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } >/dev/null; then
3690 if test -s conftest.err; then
3691 ac_cpp_err=$ac_c_preproc_warn_flag
3698 if test -z "$ac_cpp_err"; then
3699 ac_header_preproc=yes
3701 echo "$as_me: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 ac_header_preproc=no
3705 rm -f conftest.err conftest.$ac_ext
3706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3707 echo "${ECHO_T}$ac_header_preproc" >&6
3709 # So? What about this header?
3710 case $ac_header_compiler:$ac_header_preproc in
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3724 echo "$as_me:$LINENO: checking for $ac_header" >&5
3725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 eval "$as_ac_Header=$ac_header_preproc"
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3736 cat >>confdefs.h <<_ACEOF
3737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3739 ac_xml_headers="yes"
3746 if test "$ac_xml_headers" != yes; then
3747 { { echo "$as_me:$LINENO: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&5
3748 echo "$as_me: error: xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags)" >&2;}
3749 { (exit 1); exit 1; }; }
3754 #dnl check for the gnu multiprecission (gmp) library
3756 #AC_CHECK_LIB(gmp, main, ac_gmp_library="yes", ac_gmp_library="no")
3757 #if test "$ac_gmp_library" != yes; then
3758 # dnl gmp library not found.
3759 # AC_MSG_ERROR("GNU multiprecission gmp library not found")
3763 echo "$as_me:$LINENO: checking for main in -lm" >&5
3764 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3765 if test "${ac_cv_lib_m_main+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 ac_check_lib_save_LIBS=$LIBS
3770 cat >conftest.$ac_ext <<_ACEOF
3771 #line $LINENO "configure"
3772 #include "confdefs.h"
3775 #ifdef F77_DUMMY_MAIN
3779 int F77_DUMMY_MAIN() { return 1; }
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; }; then
3801 ac_cv_lib_m_main=yes
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3808 LIBS=$ac_check_lib_save_LIBS
3810 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3811 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3812 if test $ac_cv_lib_m_main = yes; then
3818 if test "$ac_m_library" != yes; then
3819 { { echo "$as_me:$LINENO: error: \"standard math library not found\"" >&5
3820 echo "$as_me: error: \"standard math library not found\"" >&2;}
3821 { (exit 1); exit 1; }; }
3825 if test "$enable_external_effects" == "yes"; then
3826 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
3827 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
3828 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 ac_check_lib_save_LIBS=$LIBS
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line $LINENO "configure"
3835 #include "confdefs.h"
3837 /* Override any gcc2 internal prototype to avoid an error. */
3841 /* We use char because int might match the return type of a gcc2
3842 builtin and then its argument prototype would still apply. */
3843 char xmlParseFile ();
3844 #ifdef F77_DUMMY_MAIN
3848 int F77_DUMMY_MAIN() { return 1; }
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -s conftest$ac_exeext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_cv_lib_xml2_xmlParseFile=yes
3872 echo "$as_me: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 ac_cv_lib_xml2_xmlParseFile=no
3876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3877 LIBS=$ac_check_lib_save_LIBS
3879 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
3880 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
3881 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
3882 ac_xml_library="yes"
3887 if test "$ac_m_library" != yes; then
3888 { { echo "$as_me:$LINENO: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&5
3889 echo "$as_me: error: \"xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)\"" >&2;}
3890 { (exit 1); exit 1; }; }
3896 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3897 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3898 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_cv_prog_cc_stdc=no
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 #include "confdefs.h"
3908 #include <sys/types.h>
3909 #include <sys/stat.h>
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3924 s = g (p, va_arg (v,int));
3928 int test (int i, double x);
3929 struct s1 {int (*f) (int a);};
3930 struct s2 {int (*f) (double a);};
3931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3934 #ifdef F77_DUMMY_MAIN
3938 int F77_DUMMY_MAIN() { return 1; }
3943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3948 # Don't try gcc -ansi; that turns off useful extensions and
3949 # breaks some systems' header files.
3950 # AIX -qlanglvl=ansi
3951 # Ultrix and OSF/1 -std1
3952 # HP-UX 10.20 and later -Ae
3953 # HP-UX older versions -Aa -D_HPUX_SOURCE
3954 # SVR4 -Xc -D__EXTENSIONS__
3955 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3957 CC="$ac_save_CC $ac_arg"
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_prog_cc_stdc=$ac_arg
3973 echo "$as_me: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 rm -f conftest.$ac_objext
3978 rm -f conftest.$ac_ext conftest.$ac_objext
3983 case "x$ac_cv_prog_cc_stdc" in
3985 echo "$as_me:$LINENO: result: none needed" >&5
3986 echo "${ECHO_T}none needed" >&6 ;;
3988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3990 CC="$CC $ac_cv_prog_cc_stdc" ;;
3993 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3995 if test "${ac_cv_c_const+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4002 #ifdef F77_DUMMY_MAIN
4006 int F77_DUMMY_MAIN() { return 1; }
4011 /* FIXME: Include the comments suggested by Paul. */
4013 /* Ultrix mips cc rejects this. */
4014 typedef int charset[2];
4016 /* SunOS 4.1.1 cc rejects this. */
4017 char const *const *ccp;
4019 /* NEC SVR4.0.2 mips cc rejects this. */
4020 struct point {int x, y;};
4021 static struct point const zero = {0,0};
4022 /* AIX XL C 1.02.0.0 rejects this.
4023 It does not let you subtract one const X* pointer from another in
4024 an arm of an if-expression whose if-part is not a constant
4026 const char *g = "string";
4027 ccp = &g + (g ? g-g : 0);
4028 /* HPUX 7.0 cc rejects these. */
4031 ccp = (char const *const *) p;
4032 { /* SCO 3.2v4 cc rejects this. */
4034 char const *s = 0 ? (char *) 0 : (char const *) 0;
4038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4040 const int *foo = &x[0];
4043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4044 typedef const int *iptr;
4048 { /* AIX XL C 1.02.0.0 rejects this saying
4049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4050 struct s { int j; const int *ap[3]; };
4051 struct s *b; b->j = 5;
4053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4080 rm -f conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4083 echo "${ECHO_T}$ac_cv_c_const" >&6
4084 if test $ac_cv_c_const = no; then
4086 cat >>confdefs.h <<\_ACEOF
4092 echo "$as_me:$LINENO: checking for working volatile" >&5
4093 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4094 if test "${ac_cv_c_volatile+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 cat >conftest.$ac_ext <<_ACEOF
4098 #line $LINENO "configure"
4099 #include "confdefs.h"
4101 #ifdef F77_DUMMY_MAIN
4105 int F77_DUMMY_MAIN() { return 1; }
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 ac_cv_c_volatile=yes
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4137 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4138 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4139 if test $ac_cv_c_volatile = no; then
4141 cat >>confdefs.h <<\_ACEOF
4147 echo "$as_me:$LINENO: checking for inline" >&5
4148 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4149 if test "${ac_cv_c_inline+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 for ac_kw in inline __inline__ __inline; do
4154 cat >conftest.$ac_ext <<_ACEOF
4155 #line $LINENO "configure"
4156 #include "confdefs.h"
4158 static $ac_kw int static_foo () {return 0; }
4159 $ac_kw int foo () {return 0; }
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_cv_c_inline=$ac_kw; break
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 rm -f conftest.$ac_objext conftest.$ac_ext
4184 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4185 echo "${ECHO_T}$ac_cv_c_inline" >&6
4186 case $ac_cv_c_inline in
4189 cat >>confdefs.h <<\_ACEOF
4193 *) cat >>confdefs.h <<_ACEOF
4194 #define inline $ac_cv_c_inline
4199 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4200 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4201 if test "${ac_cv_c_bigendian+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 # See if sys/param.h defines the BYTE_ORDER macro.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 #include "confdefs.h"
4208 #include <sys/types.h>
4209 #include <sys/param.h>
4211 #ifdef F77_DUMMY_MAIN
4215 int F77_DUMMY_MAIN() { return 1; }
4220 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4228 rm -f conftest.$ac_objext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230 (eval $ac_compile) 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 # It does; now see whether it defined to BIG_ENDIAN or not.
4241 cat >conftest.$ac_ext <<_ACEOF
4242 #line $LINENO "configure"
4243 #include "confdefs.h"
4244 #include <sys/types.h>
4245 #include <sys/param.h>
4247 #ifdef F77_DUMMY_MAIN
4251 int F77_DUMMY_MAIN() { return 1; }
4256 #if BYTE_ORDER != BIG_ENDIAN
4264 rm -f conftest.$ac_objext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4266 (eval $ac_compile) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_c_bigendian=yes
4278 echo "$as_me: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 ac_cv_c_bigendian=no
4282 rm -f conftest.$ac_objext conftest.$ac_ext
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 # It does not; compile a test program.
4287 if test "$cross_compiling" = yes; then
4288 # try to guess the endianess by grep'ing values into an object file
4289 ac_cv_c_bigendian=unknown
4290 cat >conftest.$ac_ext <<_ACEOF
4291 #line $LINENO "configure"
4292 #include "confdefs.h"
4293 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4294 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4295 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4296 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4297 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4298 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4299 #ifdef F77_DUMMY_MAIN
4303 int F77_DUMMY_MAIN() { return 1; }
4308 _ascii (); _ebcdic ();
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -s conftest.$ac_objext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4326 ac_cv_c_bigendian=yes
4328 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4329 if test "$ac_cv_c_bigendian" = unknown; then
4330 ac_cv_c_bigendian=no
4332 # finding both strings is unlikely to happen, but who knows?
4333 ac_cv_c_bigendian=unknown
4337 echo "$as_me: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4340 rm -f conftest.$ac_objext conftest.$ac_ext
4342 cat >conftest.$ac_ext <<_ACEOF
4343 #line $LINENO "configure"
4344 #include "confdefs.h"
4348 /* Are we little or big endian? From Harbison&Steele. */
4352 char c[sizeof (long)];
4355 exit (u.c[sizeof (long) - 1] == 1);
4358 rm -f conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_c_bigendian=no
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 ac_cv_c_bigendian=yes
4377 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4384 case $ac_cv_c_bigendian in
4387 cat >>confdefs.h <<\_ACEOF
4388 #define WORDS_BIGENDIAN 1
4394 { { echo "$as_me:$LINENO: error: unknown endianess
4395 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4396 echo "$as_me: error: unknown endianess
4397 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4398 { (exit 1); exit 1; }; } ;;
4401 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4402 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4403 if test "${ac_cv_c_long_double+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4408 #include "confdefs.h"
4410 long double foo = 0.0;
4411 #ifdef F77_DUMMY_MAIN
4415 int F77_DUMMY_MAIN() { return 1; }
4420 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4421 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4422 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_cv_c_long_double=yes
4443 echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4445 ac_cv_c_long_double=no
4447 rm -f conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4450 echo "${ECHO_T}$ac_cv_c_long_double" >&6
4451 if test $ac_cv_c_long_double = yes; then
4453 cat >>confdefs.h <<\_ACEOF
4454 #define HAVE_LONG_DOUBLE 1
4462 echo "$as_me:$LINENO: checking for strerror" >&5
4463 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4464 if test "${ac_cv_func_strerror+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char strerror (); below. */
4473 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4482 #ifdef F77_DUMMY_MAIN
4486 int F77_DUMMY_MAIN() { return 1; }
4491 /* The GNU C library defines this for functions which it implements
4492 to always fail with ENOSYS. Some functions are actually named
4493 something starting with __ and the normal name is an alias. */
4494 #if defined (__stub_strerror) || defined (__stub___strerror)
4504 rm -f conftest.$ac_objext conftest$ac_exeext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_func_strerror=yes
4518 echo "$as_me: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520 ac_cv_func_strerror=no
4522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
4525 echo "${ECHO_T}$ac_cv_func_strerror" >&6
4526 if test $ac_cv_func_strerror = yes; then
4529 { { echo "$as_me:$LINENO: error: \"need strerror function\"" >&5
4530 echo "$as_me: error: \"need strerror function\"" >&2;}
4531 { (exit 1); exit 1; }; }
4539 ac_config_files="$ac_config_files $ac_output_file"
4540 ac_config_commands="$ac_config_commands default"
4541 cat >confcache <<\_ACEOF
4542 # This file is a shell script that caches the results of configure
4543 # tests run on this system so they can be shared between configure
4544 # scripts and configure runs, see configure's option --config-cache.
4545 # It is not useful on other systems. If it contains results you don't
4546 # want to keep, you may remove or edit it.
4548 # config.status only pays attention to the cache file if you give it
4549 # the --recheck option to rerun configure.
4551 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4557 # The following way of writing the cache mishandles newlines in values,
4558 # but we know of no workaround that is simple, portable, and efficient.
4559 # So, don't put newlines in cache variables' values.
4560 # Ultrix sh set writes to stderr and can't be redirected directly,
4561 # and sets the high bit in the cache file unless we assign to the vars.
4564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4566 # `set' does not quote correctly, so add quotes (double-quote
4567 # substitution turns \\\\ into \\, and sed turns \\ into \).
4570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4573 # `set' quotes correctly as required by POSIX, so do not add quotes.
4575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4586 if cmp -s $cache_file confcache; then :; else
4587 if test -w $cache_file; then
4588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4589 cat confcache >$cache_file
4591 echo "not updating unwritable cache $cache_file"
4596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4597 # Let make expand exec_prefix.
4598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4602 # trailing colons and then remove the whole line if VPATH becomes empty
4603 # (actually we leave an empty line to preserve line numbers).
4604 if test "x$srcdir" = x.; then
4605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4606 s/:*\$(srcdir):*/:/;
4607 s/:*\${srcdir}:*/:/;
4609 s/^\([^=]*=[ ]*\):*/\1/;
4615 DEFS=-DHAVE_CONFIG_H
4618 : ${CONFIG_STATUS=./config.status}
4619 ac_clean_files_save=$ac_clean_files
4620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4623 cat >$CONFIG_STATUS <<_ACEOF
4625 # Generated by $as_me.
4626 # Run this file to recreate the current configuration.
4627 # Compiler output produced by configure, useful for debugging
4628 # configure, is in config.log if it exists.
4631 SHELL=\${CONFIG_SHELL-$SHELL}
4634 cat >>$CONFIG_STATUS <<\_ACEOF
4636 ## --------------------- ##
4637 ## M4sh Initialization. ##
4638 ## --------------------- ##
4640 # Be Bourne compatible
4641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4644 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4649 # Support unset when possible.
4650 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4656 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4657 { $as_unset LANG || test "${LANG+set}" != set; } ||
4658 { LANG=C; export LANG; }
4659 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4660 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4661 { LC_ALL=C; export LC_ALL; }
4662 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4663 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4664 { LC_TIME=C; export LC_TIME; }
4665 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4666 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4667 { LC_CTYPE=C; export LC_CTYPE; }
4668 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4669 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4670 { LANGUAGE=C; export LANGUAGE; }
4671 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4672 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4673 { LC_COLLATE=C; export LC_COLLATE; }
4674 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4675 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4676 { LC_NUMERIC=C; export LC_NUMERIC; }
4677 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4678 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4679 { LC_MESSAGES=C; export LC_MESSAGES; }
4682 # Name of the executable.
4683 as_me=`(basename "$0") 2>/dev/null ||
4684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4685 X"$0" : 'X\(//\)$' \| \
4686 X"$0" : 'X\(/\)$' \| \
4687 . : '\(.\)' 2>/dev/null ||
4689 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4690 /^X\/\(\/\/\)$/{ s//\1/; q; }
4691 /^X\/\(\/\).*/{ s//\1/; q; }
4694 # PATH needs CR, and LINENO needs CR and PATH.
4695 # Avoid depending upon Character Ranges.
4696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4699 as_cr_digits='0123456789'
4700 as_cr_alnum=$as_cr_Letters$as_cr_digits
4702 # The user is always right.
4703 if test "${PATH_SEPARATOR+set}" != set; then
4704 echo "#! /bin/sh" >conftest.sh
4705 echo "exit 0" >>conftest.sh
4706 chmod +x conftest.sh
4707 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4719 test "x$as_lineno_1" != "x$as_lineno_2" &&
4720 test "x$as_lineno_3" = "x$as_lineno_2" || {
4721 # Find who we are. Look in the path if we contain no path at all
4724 *[\\/]* ) as_myself=$0 ;;
4725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 test -z "$as_dir" && as_dir=.
4730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4735 # We did not find ourselves, most probably we were run as `sh COMMAND'
4736 # in which case we are not to be found in the path.
4737 if test "x$as_myself" = x; then
4740 if test ! -f "$as_myself"; then
4741 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4742 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4743 { (exit 1); exit 1; }; }
4745 case $CONFIG_SHELL in
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4751 test -z "$as_dir" && as_dir=.
4752 for as_base in sh bash ksh sh5; do
4755 if ("$as_dir/$as_base" -c '
4758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4759 test "x$as_lineno_1" != "x$as_lineno_2" &&
4760 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4761 CONFIG_SHELL=$as_dir/$as_base
4763 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4771 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4772 # uniformly replaced by the line number. The first 'sed' inserts a
4773 # line-number line before each line; the second 'sed' does the real
4774 # work. The second script uses 'N' to pair each line-number line
4775 # with the numbered line, and appends trailing '-' during
4776 # substitution so that $LINENO is not a special case at line end.
4777 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4778 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4779 sed '=' <$as_myself |
4784 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4787 s,^['$as_cr_digits']*\n,,
4789 chmod +x $as_me.lineno ||
4790 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4791 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4792 { (exit 1); exit 1; }; }
4794 # Don't try to exec as it changes $[0], causing all sort of problems
4795 # (the dirname of $[0] is not the place where we might find the
4796 # original and so on. Autoconf is especially sensible to this).
4798 # Exit status is that of the last command.
4803 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4804 *c*,-n*) ECHO_N= ECHO_C='
4806 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4807 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4810 if expr a : '\(a\)' >/dev/null 2>&1; then
4816 rm -f conf$$ conf$$.exe conf$$.file
4818 if ln -s conf$$.file conf$$ 2>/dev/null; then
4819 # We could just check for DJGPP; but this test a) works b) is more generic
4820 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4821 if test -f conf$$.exe; then
4822 # Don't use ln at all; we don't have any links
4827 elif ln conf$$.file conf$$ 2>/dev/null; then
4832 rm -f conf$$ conf$$.exe conf$$.file
4834 as_executable_p="test -f"
4836 # Sed expression to map a string onto a valid CPP name.
4837 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4839 # Sed expression to map a string onto a valid variable name.
4840 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4844 # We need space, tab and new line, in precisely that order.
4850 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4854 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4855 # report actual input values of CONFIG_FILES etc. instead of their
4856 # values after options handling. Logging --version etc. is OK.
4860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4861 ## Running $as_me. ##
4866 This file was extended by libfirm $as_me 0.3.0, which was
4867 generated by GNU Autoconf 2.53. Invocation command line was
4869 CONFIG_FILES = $CONFIG_FILES
4870 CONFIG_HEADERS = $CONFIG_HEADERS
4871 CONFIG_LINKS = $CONFIG_LINKS
4872 CONFIG_COMMANDS = $CONFIG_COMMANDS
4876 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4880 # Files that config.status was made for.
4881 if test -n "$ac_config_files"; then
4882 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4885 if test -n "$ac_config_headers"; then
4886 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4889 if test -n "$ac_config_links"; then
4890 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4893 if test -n "$ac_config_commands"; then
4894 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4897 cat >>$CONFIG_STATUS <<\_ACEOF
4900 \`$as_me' instantiates files from templates according to the
4901 current configuration.
4903 Usage: $0 [OPTIONS] [FILE]...
4905 -h, --help print this help, then exit
4906 -V, --version print version number, then exit
4907 -d, --debug don't remove temporary files
4908 --recheck update $as_me by reconfiguring in the same conditions
4909 --file=FILE[:TEMPLATE]
4910 instantiate the configuration file FILE
4911 --header=FILE[:TEMPLATE]
4912 instantiate the configuration header FILE
4914 Configuration files:
4917 Configuration headers:
4920 Configuration commands:
4923 Report bugs to <bug-autoconf@gnu.org>."
4926 cat >>$CONFIG_STATUS <<_ACEOF
4928 libfirm config.status 0.3.0
4929 configured by $0, generated by GNU Autoconf 2.53,
4930 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4932 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4933 Free Software Foundation, Inc.
4934 This config.status script is free software; the Free Software Foundation
4935 gives unlimited permission to copy, distribute and modify it."
4940 cat >>$CONFIG_STATUS <<\_ACEOF
4941 # If no file are specified by the user, then we need to provide default
4942 # value. By we need to know if files were specified by the user.
4948 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4949 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4951 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4955 *) # This is not an option, so the user has probably given explicit
4957 ac_need_defaults=false;;
4961 # Handling of the options.
4963 cat >>$CONFIG_STATUS <<_ACEOF
4964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4965 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4966 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4968 cat >>$CONFIG_STATUS <<\_ACEOF
4969 --version | --vers* | -V )
4970 echo "$ac_cs_version"; exit 0 ;;
4972 # Conflict between --help and --header
4973 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4974 Try \`$0 --help' for more information." >&5
4975 echo "$as_me: error: ambiguous option: $1
4976 Try \`$0 --help' for more information." >&2;}
4977 { (exit 1); exit 1; }; };;
4978 --help | --hel | -h )
4979 echo "$ac_cs_usage"; exit 0 ;;
4980 --debug | --d* | -d )
4982 --file | --fil | --fi | --f )
4984 CONFIG_FILES="$CONFIG_FILES $1"
4985 ac_need_defaults=false;;
4986 --header | --heade | --head | --hea )
4988 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4989 ac_need_defaults=false;;
4992 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4993 Try \`$0 --help' for more information." >&5
4994 echo "$as_me: error: unrecognized option: $1
4995 Try \`$0 --help' for more information." >&2;}
4996 { (exit 1); exit 1; }; } ;;
4998 *) ac_config_targets="$ac_config_targets $1" ;;
5010 cat >>$CONFIG_STATUS <<\_ACEOF
5011 for ac_config_target in $ac_config_targets
5013 case "$ac_config_target" in
5014 # Handling of arguments.
5015 "$ac_output_file" ) CONFIG_FILES="$CONFIG_FILES $ac_output_file" ;;
5016 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5017 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5019 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5020 { (exit 1); exit 1; }; };;
5024 # If the user did not use the arguments to specify the items to instantiate,
5025 # then the envvar interface is used. Set only those that are not.
5026 # We use the long form for the default assignment because of an extremely
5027 # bizarre bug on SunOS 4.1.3.
5028 if $ac_need_defaults; then
5029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5034 # Create a temporary directory, and hook for its removal unless debugging.
5037 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5038 trap '{ (exit 1); exit 1; }' 1 2 13 15
5041 # Create a (secure) tmp directory for tmp files.
5044 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5045 test -n "$tmp" && test -d "$tmp"
5048 tmp=$TMPDIR/cs$$-$RANDOM
5049 (umask 077 && mkdir $tmp)
5052 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5053 { (exit 1); exit 1; }
5058 cat >>$CONFIG_STATUS <<_ACEOF
5061 # CONFIG_FILES section.
5064 # No need to generate the scripts if there are no CONFIG_FILES.
5065 # This happens for instance when ./config.status config.h
5066 if test -n "\$CONFIG_FILES"; then
5067 # Protect against being on the right side of a sed subst in config.status.
5068 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5069 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5070 s,@SHELL@,$SHELL,;t t
5071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5077 s,@exec_prefix@,$exec_prefix,;t t
5078 s,@prefix@,$prefix,;t t
5079 s,@program_transform_name@,$program_transform_name,;t t
5080 s,@bindir@,$bindir,;t t
5081 s,@sbindir@,$sbindir,;t t
5082 s,@libexecdir@,$libexecdir,;t t
5083 s,@datadir@,$datadir,;t t
5084 s,@sysconfdir@,$sysconfdir,;t t
5085 s,@sharedstatedir@,$sharedstatedir,;t t
5086 s,@localstatedir@,$localstatedir,;t t
5087 s,@libdir@,$libdir,;t t
5088 s,@includedir@,$includedir,;t t
5089 s,@oldincludedir@,$oldincludedir,;t t
5090 s,@infodir@,$infodir,;t t
5091 s,@mandir@,$mandir,;t t
5092 s,@build_alias@,$build_alias,;t t
5093 s,@host_alias@,$host_alias,;t t
5094 s,@target_alias@,$target_alias,;t t
5096 s,@ECHO_C@,$ECHO_C,;t t
5097 s,@ECHO_N@,$ECHO_N,;t t
5098 s,@ECHO_T@,$ECHO_T,;t t
5100 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
5101 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
5102 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
5103 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
5104 s,@enable_firm_jni@,$enable_firm_jni,;t t
5105 s,@enable_heapanalysis@,$enable_heapanalysis,;t t
5106 s,@disable_libiberty@,$disable_libiberty,;t t
5107 s,@enable_statistics@,$enable_statistics,;t t
5108 s,@enable_external_effects@,$enable_external_effects,;t t
5110 s,@CFLAGS@,$CFLAGS,;t t
5111 s,@LDFLAGS@,$LDFLAGS,;t t
5112 s,@CPPFLAGS@,$CPPFLAGS,;t t
5113 s,@ac_ct_CC@,$ac_ct_CC,;t t
5114 s,@EXEEXT@,$EXEEXT,;t t
5115 s,@OBJEXT@,$OBJEXT,;t t
5117 s,@ac_ct_LD@,$ac_ct_LD,;t t
5118 s,@libfirm_cv_prog_ld_r@,$libfirm_cv_prog_ld_r,;t t
5121 s,@RANLIB@,$RANLIB,;t t
5122 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5123 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5124 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5125 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5127 s,@DOXYGEN@,$DOXYGEN,;t t
5129 s,@JAVAC@,$JAVAC,;t t
5130 s,@JAVAH@,$JAVAH,;t t
5136 cat >>$CONFIG_STATUS <<\_ACEOF
5137 # Split the substitutions into bite-sized pieces for seds with
5138 # small command number limits, like on Digital OSF/1 and HP-UX.
5140 ac_sed_frag=1 # Number of current file.
5141 ac_beg=1 # First line for current file.
5142 ac_end=$ac_max_sed_lines # Line after last line for current file.
5145 while $ac_more_lines; do
5146 if test $ac_beg -gt 1; then
5147 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5149 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5151 if test ! -s $tmp/subs.frag; then
5154 # The purpose of the label and of the branching condition is to
5155 # speed up the sed processing (if there are no `@' at all, there
5156 # is no need to browse any of the substitutions).
5157 # These are the two extra sed commands mentioned above.
5159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5160 if test -z "$ac_sed_cmds"; then
5161 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5163 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5165 ac_sed_frag=`expr $ac_sed_frag + 1`
5167 ac_end=`expr $ac_end + $ac_max_sed_lines`
5170 if test -z "$ac_sed_cmds"; then
5173 fi # test -n "$CONFIG_FILES"
5176 cat >>$CONFIG_STATUS <<\_ACEOF
5177 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5178 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5180 - | *:- | *:-:* ) # input from stdin
5182 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5184 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5186 * ) ac_file_in=$ac_file.in ;;
5189 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5190 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5192 X"$ac_file" : 'X\(//\)[^/]' \| \
5193 X"$ac_file" : 'X\(//\)$' \| \
5194 X"$ac_file" : 'X\(/\)' \| \
5195 . : '\(.\)' 2>/dev/null ||
5197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5199 /^X\(\/\/\)$/{ s//\1/; q; }
5200 /^X\(\/\).*/{ s//\1/; q; }
5203 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5207 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5208 case $as_mkdir_dir in
5209 # Skip DOS drivespec
5210 ?:) as_incr_dir=$as_mkdir_dir ;;
5212 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5213 test -d "$as_incr_dir" ||
5214 mkdir "$as_incr_dir" ||
5215 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5216 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5217 { (exit 1); exit 1; }; }
5224 if test "$ac_dir" != .; then
5225 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5226 # A "../" for each directory in $ac_dir_suffix.
5227 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5229 ac_dir_suffix= ac_top_builddir=
5233 .) # No --srcdir option. We are building in place.
5235 if test -z "$ac_top_builddir"; then
5238 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5240 [\\/]* | ?:[\\/]* ) # Absolute path.
5241 ac_srcdir=$srcdir$ac_dir_suffix;
5242 ac_top_srcdir=$srcdir ;;
5244 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5245 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5247 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5249 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5250 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5251 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5252 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5257 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5260 if test x"$ac_file" != x-; then
5261 { echo "$as_me:$LINENO: creating $ac_file" >&5
5262 echo "$as_me: creating $ac_file" >&6;}
5265 # Let's still pretend it is `configure' which instantiates (i.e., don't
5266 # use $as_me), people would be surprised to read:
5267 # /* config.h. Generated by config.status. */
5268 if test x"$ac_file" = x-; then
5271 configure_input="$ac_file. "
5273 configure_input=$configure_input"Generated from `echo $ac_file_in |
5274 sed 's,.*/,,'` by configure."
5276 # First look for the input files in the build tree, otherwise in the
5278 ac_file_inputs=`IFS=:
5279 for f in $ac_file_in; do
5281 -) echo $tmp/stdin ;;
5283 # Absolute (can't be DOS-style, as IFS=:)
5284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5285 echo "$as_me: error: cannot find input file: $f" >&2;}
5286 { (exit 1); exit 1; }; }
5289 if test -f "$f"; then
5292 elif test -f "$srcdir/$f"; then
5297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5298 echo "$as_me: error: cannot find input file: $f" >&2;}
5299 { (exit 1); exit 1; }; }
5302 done` || { (exit 1); exit 1; }
5304 cat >>$CONFIG_STATUS <<_ACEOF
5308 cat >>$CONFIG_STATUS <<\_ACEOF
5310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5311 s,@configure_input@,$configure_input,;t t
5312 s,@srcdir@,$ac_srcdir,;t t
5313 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5314 s,@top_srcdir@,$ac_top_srcdir,;t t
5315 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5316 s,@builddir@,$ac_builddir,;t t
5317 s,@abs_builddir@,$ac_abs_builddir,;t t
5318 s,@top_builddir@,$ac_top_builddir,;t t
5319 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5320 s,@INSTALL@,$ac_INSTALL,;t t
5321 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5323 if test x"$ac_file" != x-; then
5324 mv $tmp/out $ac_file
5332 cat >>$CONFIG_STATUS <<\_ACEOF
5335 # CONFIG_HEADER section.
5338 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5339 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5341 # ac_d sets the value in "#define NAME VALUE" lines.
5342 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5343 ac_dB='[ ].*$,\1#\2'
5346 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5347 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5348 ac_uB='$,\1#\2define\3'
5352 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5355 - | *:- | *:-:* ) # input from stdin
5357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5361 * ) ac_file_in=$ac_file.in ;;
5364 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5365 echo "$as_me: creating $ac_file" >&6;}
5367 # First look for the input files in the build tree, otherwise in the
5369 ac_file_inputs=`IFS=:
5370 for f in $ac_file_in; do
5372 -) echo $tmp/stdin ;;
5374 # Absolute (can't be DOS-style, as IFS=:)
5375 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5376 echo "$as_me: error: cannot find input file: $f" >&2;}
5377 { (exit 1); exit 1; }; }
5380 if test -f "$f"; then
5383 elif test -f "$srcdir/$f"; then
5388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5389 echo "$as_me: error: cannot find input file: $f" >&2;}
5390 { (exit 1); exit 1; }; }
5393 done` || { (exit 1); exit 1; }
5394 # Remove the trailing spaces.
5395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5400 # `conftest.undefs', that substitutes the proper values into
5401 # config.h.in to produce config.h. The first handles `#define'
5402 # templates, and the second `#undef' templates.
5403 # And first: Protect against being on the right side of a sed subst in
5404 # config.status. Protect against being in an unquoted here document
5406 rm -f conftest.defines conftest.undefs
5407 # Using a here document instead of a string reduces the quoting nightmare.
5408 # Putting comments in sed scripts is not portable.
5410 # `end' is used to avoid that the second main sed command (meant for
5411 # 0-ary CPP macros) applies to n-ary macro definitions.
5412 # See the Autoconf documentation for `clear'.
5413 cat >confdef2sed.sed <<\_ACEOF
5418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5423 # If some macros were called several times there might be several times
5424 # the same #defines, which is useless. Nevertheless, we may not want to
5425 # sort them, since we want the *last* AC-DEFINE to be honored.
5426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5428 rm -f confdef2sed.sed
5430 # This sed command replaces #undef with comments. This is necessary, for
5431 # example, in the case of _POSIX_SOURCE, which is predefined and required
5432 # on some systems where configure will not decide to define it.
5433 cat >>conftest.undefs <<\_ACEOF
5434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5437 # Break up conftest.defines because some shells have a limit on the size
5438 # of here documents, and old seds have small limits too (100 cmds).
5439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5440 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5442 echo ' :' >>$CONFIG_STATUS
5444 while grep . conftest.defines >/dev/null
5446 # Write a limited-size here document to $tmp/defines.sed.
5447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5448 # Speed up: don't consider the non `#define' lines.
5449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5450 # Work around the forget-to-reset-the-flag bug.
5451 echo 't clr' >>$CONFIG_STATUS
5452 echo ': clr' >>$CONFIG_STATUS
5453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5460 rm -f conftest.defines
5461 mv conftest.tail conftest.defines
5463 rm -f conftest.defines
5464 echo ' fi # egrep' >>$CONFIG_STATUS
5465 echo >>$CONFIG_STATUS
5467 # Break up conftest.undefs because some shells have a limit on the size
5468 # of here documents, and old seds have small limits too (100 cmds).
5469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5471 while grep . conftest.undefs >/dev/null
5473 # Write a limited-size here document to $tmp/undefs.sed.
5474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5475 # Speed up: don't consider the non `#undef'
5476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5477 # Work around the forget-to-reset-the-flag bug.
5478 echo 't clr' >>$CONFIG_STATUS
5479 echo ': clr' >>$CONFIG_STATUS
5480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5487 rm -f conftest.undefs
5488 mv conftest.tail conftest.undefs
5490 rm -f conftest.undefs
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 # Let's still pretend it is `configure' which instantiates (i.e., don't
5494 # use $as_me), people would be surprised to read:
5495 # /* config.h. Generated by config.status. */
5496 if test x"$ac_file" = x-; then
5497 echo "/* Generated by configure. */" >$tmp/config.h
5499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5501 cat $tmp/in >>$tmp/config.h
5503 if test x"$ac_file" != x-; then
5504 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5506 echo "$as_me: $ac_file is unchanged" >&6;}
5508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5510 X"$ac_file" : 'X\(//\)[^/]' \| \
5511 X"$ac_file" : 'X\(//\)$' \| \
5512 X"$ac_file" : 'X\(/\)' \| \
5513 . : '\(.\)' 2>/dev/null ||
5515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5517 /^X\(\/\/\)$/{ s//\1/; q; }
5518 /^X\(\/\).*/{ s//\1/; q; }
5521 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5525 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5526 case $as_mkdir_dir in
5527 # Skip DOS drivespec
5528 ?:) as_incr_dir=$as_mkdir_dir ;;
5530 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5531 test -d "$as_incr_dir" ||
5532 mkdir "$as_incr_dir" ||
5533 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5534 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5535 { (exit 1); exit 1; }; }
5541 mv $tmp/config.h $ac_file
5549 cat >>$CONFIG_STATUS <<\_ACEOF
5552 # CONFIG_COMMANDS section.
5554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5555 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5556 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5557 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5558 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5559 X"$ac_dest" : 'X\(//\)[^/]' \| \
5560 X"$ac_dest" : 'X\(//\)$' \| \
5561 X"$ac_dest" : 'X\(/\)' \| \
5562 . : '\(.\)' 2>/dev/null ||
5564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5566 /^X\(\/\/\)$/{ s//\1/; q; }
5567 /^X\(\/\).*/{ s//\1/; q; }
5571 if test "$ac_dir" != .; then
5572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5573 # A "../" for each directory in $ac_dir_suffix.
5574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5576 ac_dir_suffix= ac_top_builddir=
5580 .) # No --srcdir option. We are building in place.
5582 if test -z "$ac_top_builddir"; then
5585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5587 [\\/]* | ?:[\\/]* ) # Absolute path.
5588 ac_srcdir=$srcdir$ac_dir_suffix;
5589 ac_top_srcdir=$srcdir ;;
5591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5594 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5596 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5597 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5598 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5599 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5602 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5603 echo "$as_me: executing $ac_dest commands" >&6;}
5605 default ) touch stamp-h ;;
5610 cat >>$CONFIG_STATUS <<\_ACEOF
5612 { (exit 0); exit 0; }
5614 chmod +x $CONFIG_STATUS
5615 ac_clean_files=$ac_clean_files_save
5618 # configure is writing to config.log, and then calls config.status.
5619 # config.status does its own redirection, appending to config.log.
5620 # Unfortunately, on DOS this fails, as config.log is still kept open
5621 # by configure, so config.status won't be able to write to it; its
5622 # output is simply discarded. So we exec the FD to /dev/null,
5623 # effectively closing config.log, so it can be properly (re)opened and
5624 # appended to by config.status. When coming back to configure, we
5625 # need to make the FD available again.
5626 if test "$no_create" != yes; then
5629 $SHELL $CONFIG_STATUS || ac_cs_success=false
5631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5632 # would make configure fail if this is the last instruction.
5633 $ac_cs_success || { (exit 1); exit 1; }
5637 gawk -f $CONF_DIR_NAME/filter.awk < config.h | sed -f $CONF_DIR_NAME/filter.sed > ir/config/firm_config.h