2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
931 ac_env_PPLLIBS_set=${PPLLIBS+set}
932 ac_env_PPLLIBS_value=$PPLLIBS
933 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value=$PPLLIBS
935 ac_env_PPLINC_set=${PPLINC+set}
936 ac_env_PPLINC_value=$PPLINC
937 ac_cv_env_PPLINC_set=${PPLINC+set}
938 ac_cv_env_PPLINC_value=$PPLINC
939 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
943 ac_env_CLOOGINC_set=${CLOOGINC+set}
944 ac_env_CLOOGINC_value=$CLOOGINC
945 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value=$CLOOGINC
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-generated-files-in-srcdir
1028 put copies of generated files in source dir
1029 intended for creating source tarballs for users
1030 without texinfo bison or flex.
1031 --enable-werror-always enable -Werror despite compiler version
1032 --enable-checking=LIST
1033 enable expensive run-time checks. With LIST,
1034 enable only specific categories of checks.
1035 Categories are: yes,no,all,none,release.
1036 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1037 rtlflag,rtl,runtime,tree,valgrind,types.
1038 --enable-coverage=LEVEL
1039 enable compiler's code coverage collection.
1040 Use to measure compiler performance and locate
1041 unused parts of the compiler. With LEVEL, specify
1042 optimization. Values are opt, noopt,
1044 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1045 --enable-multilib enable library support for multiple ABIs
1046 --enable-__cxa_atexit enable __cxa_atexit for C++
1047 --enable-decimal-float={no,yes,bid,dpd}
1048 enable decimal float extension to C. Selecting 'bid'
1049 or 'dpd' choses which decimal floating point format
1051 --enable-fixed-point enable fixed-point arithmetic extension to C
1052 --enable-threads enable thread usage for target GCC
1053 --enable-threads=LIB use LIB thread package for target GCC
1054 --enable-tls enable or disable generation of tls code
1055 overriding the assembler check for tls support
1056 --enable-objc-gc enable the use of Boehm's garbage collector with
1057 the GNU Objective-C runtime
1058 --disable-shared don't provide a shared libgcc
1059 --enable-intermodule build the compiler in one step
1060 --enable-languages=LIST specify which front-ends to build
1061 --disable-rpath do not hardcode runtime library paths
1062 --enable-initfini-array use .init_array/.fini_array sections
1063 --enable-sjlj-exceptions
1064 arrange to use setjmp/longjmp exception handling
1065 --enable-secureplt enable -msecure-plt by default for PowerPC
1066 --enable-cld enable -mcld by default for 32bit x86
1067 --disable-win32-registry
1068 disable lookup of installation paths in the
1069 Registry on Windows hosts
1070 --enable-win32-registry enable registry lookup (default)
1071 --enable-win32-registry=KEY
1072 use KEY instead of GCC version as the last portion
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --enable-linker-build-id
1082 compiler will always pass --build-id to linker
1083 --enable-maintainer-mode
1084 enable make rules and dependencies not useful
1085 (and sometimes confusing) to the casual installer
1086 --enable-version-specific-runtime-libs
1087 specify that runtime libraries should be
1088 installed in a compiler-specific directory
1089 --enable-plugin enable plugin support
1092 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1093 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1094 --with-build-libsubdir=DIR Directory where to find libraries for build system
1095 --with-local-prefix=DIR specifies directory to put local include
1096 --with-gxx-include-dir=DIR
1097 specifies directory to put g++ header files
1098 --with-cpp-install-dir=DIR
1099 install the user visible C preprocessor in DIR
1100 (relative to PREFIX) as well as PREFIX/bin
1101 --with-gnu-ld arrange to work with GNU ld.
1102 --with-ld arrange to use the specified ld (full pathname)
1103 --with-demangler-in-ld try to use demangler in GNU ld.
1104 --with-gnu-as arrange to work with GNU as
1105 --with-as arrange to use the specified as (full pathname)
1106 --with-stabs arrange to use stabs instead of host debug format
1107 --with-dwarf2 force the default debug format to be DWARF 2
1108 --with-build-sysroot=sysroot
1109 use sysroot as the system root during the build
1110 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1111 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1112 --with-bugurl=URL Direct users to URL to report a bug
1113 --with-multilib-list Select multilibs (SH only)
1114 --with-gnu-ld assume the C compiler uses GNU ld default=no
1115 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1116 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1117 --with-system-libunwind use installed libunwind
1118 --with-pic try to use only PIC/non-PIC objects [default=use
1120 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1121 --with-long-double-128 Use 128-bit long double by default.
1122 --with-gc={page,zone} choose the garbage collection mechanism to use
1124 --with-system-zlib use installed libz
1125 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1126 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1127 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1128 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1130 Some influential environment variables:
1131 CC C compiler command
1132 CFLAGS C compiler flags
1133 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1134 nonstandard directory <lib dir>
1135 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1136 headers in a nonstandard directory <include dir>
1138 GMPLIBS How to link GMP
1139 GMPINC How to find GMP include files
1140 PPLLIBS How to link PPL
1141 PPLINC How to find PPL include files
1142 CLOOGLIBS How to link CLOOG
1143 CLOOGINC How to find CLOOG include files
1145 Use these variables to override the choices made by `configure' or to help
1146 it to find libraries and programs with nonstandard names/locations.
1151 if test "$ac_init_help" = "recursive"; then
1152 # If there are subdirs, report their specific --help.
1154 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1155 test -d $ac_dir || continue
1158 if test "$ac_dir" != .; then
1159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1160 # A "../" for each directory in $ac_dir_suffix.
1161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1163 ac_dir_suffix= ac_top_builddir=
1167 .) # No --srcdir option. We are building in place.
1169 if test -z "$ac_top_builddir"; then
1172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1174 [\\/]* | ?:[\\/]* ) # Absolute path.
1175 ac_srcdir=$srcdir$ac_dir_suffix;
1176 ac_top_srcdir=$srcdir ;;
1178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182 # Do not use `cd foo && pwd` to compute absolute paths, because
1183 # the directories may not exist.
1185 .) ac_abs_builddir="$ac_dir";;
1188 .) ac_abs_builddir=`pwd`;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193 case $ac_abs_builddir in
1194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1196 case ${ac_top_builddir}. in
1197 .) ac_abs_top_builddir=$ac_abs_builddir;;
1198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202 case $ac_abs_builddir in
1203 .) ac_abs_srcdir=$ac_srcdir;;
1206 .) ac_abs_srcdir=$ac_abs_builddir;;
1207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211 case $ac_abs_builddir in
1212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1214 case $ac_top_srcdir in
1215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1222 # Check for guested configure; otherwise get Cygnus style configure.
1223 if test -f $ac_srcdir/configure.gnu; then
1225 $SHELL $ac_srcdir/configure.gnu --help=recursive
1226 elif test -f $ac_srcdir/configure; then
1228 $SHELL $ac_srcdir/configure --help=recursive
1229 elif test -f $ac_srcdir/configure.ac ||
1230 test -f $ac_srcdir/configure.in; then
1232 $ac_configure --help
1234 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1240 test -n "$ac_init_help" && exit 0
1241 if $ac_init_version; then
1244 Copyright (C) 2003 Free Software Foundation, Inc.
1245 This configure script is free software; the Free Software Foundation
1246 gives unlimited permission to copy, distribute and modify it.
1252 This file contains any messages produced by compilers while
1253 running configure, to aid debugging if configure makes a mistake.
1255 It was created by $as_me, which was
1256 generated by GNU Autoconf 2.59. Invocation command line was
1267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290 test -z "$as_dir" && as_dir=.
1291 echo "PATH: $as_dir"
1306 # Keep a trace of the command line.
1307 # Strip out --no-create and --no-recursion so they do not pile up.
1308 # Strip out --silent because we don't want to record it for future runs.
1309 # Also quote any args containing shell meta-characters.
1310 # Make two passes to allow for proper duplicate-argument suppression.
1315 ac_must_keep_next=false
1321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1331 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332 if test $ac_must_keep_next = true; then
1333 ac_must_keep_next=false # Got value, back to normal.
1336 *=* | --config-cache | -C | -disable-* | --disable-* \
1337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339 | -with-* | --with-* | -without-* | --without-* | --x)
1340 case "$ac_configure_args0 " in
1341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344 -* ) ac_must_keep_next=true ;;
1347 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348 # Get rid of the leading space.
1354 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1357 # When interrupted or exit'd, cleanup temporary files, and complete
1358 # config.log. We remove comments because anyway the quotes in there
1359 # would cause problems or look ugly.
1360 # WARNING: Be sure not to use single quotes in there, as some shells,
1361 # such as our DU 5.0 friend, will then `close' the trap.
1362 trap 'exit_status=$?
1363 # Save into config.log some information that might help in debugging.
1368 ## ---------------- ##
1369 ## Cache variables. ##
1370 ## ---------------- ##
1373 # The following way of writing the cache mishandles newlines in values,
1376 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1391 ## ----------------- ##
1392 ## Output variables. ##
1393 ## ----------------- ##
1396 for ac_var in $ac_subst_vars
1398 eval ac_val=$`echo $ac_var`
1399 echo "$ac_var='"'"'$ac_val'"'"'"
1403 if test -n "$ac_subst_files"; then
1410 for ac_var in $ac_subst_files
1412 eval ac_val=$`echo $ac_var`
1413 echo "$ac_var='"'"'$ac_val'"'"'"
1418 if test -s confdefs.h; then
1425 sed "/^$/d" confdefs.h | sort
1428 test "$ac_signal" != 0 &&
1429 echo "$as_me: caught signal $ac_signal"
1430 echo "$as_me: exit $exit_status"
1432 rm -f core *.core &&
1433 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436 for ac_signal in 1 2 13 15; do
1437 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1442 rm -rf conftest* confdefs.h
1443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446 # Predefined preprocessor variables.
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_NAME "$PACKAGE_NAME"
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_STRING "$PACKAGE_STRING"
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473 # Let the site file select an alternate cache file if it wants to.
1474 # Prefer explicitly selected file to automatically selected ones.
1475 if test -z "$CONFIG_SITE"; then
1476 if test "x$prefix" != xNONE; then
1477 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1479 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482 for ac_site_file in $CONFIG_SITE; do
1483 if test -r "$ac_site_file"; then
1484 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485 echo "$as_me: loading site script $ac_site_file" >&6;}
1486 sed 's/^/| /' "$ac_site_file" >&5
1491 if test -r "$cache_file"; then
1492 # Some versions of bash will fail to source /dev/null (special
1493 # files actually), so we avoid doing that.
1494 if test -f "$cache_file"; then
1495 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496 echo "$as_me: loading cache $cache_file" >&6;}
1498 [\\/]* | ?:[\\/]* ) . $cache_file;;
1499 *) . ./$cache_file;;
1503 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504 echo "$as_me: creating cache $cache_file" >&6;}
1508 # Check that the precious variables saved in the cache have kept the same
1510 ac_cache_corrupted=false
1511 for ac_var in `(set) 2>&1 |
1512 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514 eval ac_new_set=\$ac_env_${ac_var}_set
1515 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516 eval ac_new_val="\$ac_env_${ac_var}_value"
1517 case $ac_old_set,$ac_new_set in
1519 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521 ac_cache_corrupted=: ;;
1523 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525 ac_cache_corrupted=: ;;
1528 if test "x$ac_old_val" != "x$ac_new_val"; then
1529 # differences in whitespace do not lead to failure.
1530 ac_old_val_w=`echo x $ac_old_val`
1531 ac_new_val_w=`echo x $ac_new_val`
1532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1533 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1534 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1535 ac_cache_corrupted=:
1537 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1538 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1539 eval $ac_var=\$ac_old_val
1541 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1542 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1543 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1544 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1547 # Pass precious variables to config.status.
1548 if test "$ac_new_set" = set; then
1550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 *) ac_arg=$ac_var=$ac_new_val ;;
1554 case " $ac_configure_args " in
1555 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1556 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1560 if $ac_cache_corrupted; then
1561 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1563 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1564 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1565 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1566 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1567 { (exit 1); exit 1; }; }
1571 ac_cpp='$CPP $CPPFLAGS'
1572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1601 gcc_version=`cat $srcdir/BASE-VER`
1603 # Determine the host, build, and target systems
1605 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1606 if test -f $ac_dir/install-sh; then
1608 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 elif test -f $ac_dir/install.sh; then
1612 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 elif test -f $ac_dir/shtool; then
1616 ac_install_sh="$ac_aux_dir/shtool install -c"
1620 if test -z "$ac_aux_dir"; then
1621 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1622 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1623 { (exit 1); exit 1; }; }
1625 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1626 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1627 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629 # Make sure we can run config.sub.
1630 $ac_config_sub sun4 >/dev/null 2>&1 ||
1631 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: checking build system type" >&5
1636 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637 if test "${ac_cv_build+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_build_alias=$build_alias
1641 test -z "$ac_cv_build_alias" &&
1642 ac_cv_build_alias=`$ac_config_guess`
1643 test -z "$ac_cv_build_alias" &&
1644 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646 { (exit 1); exit 1; }; }
1647 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1653 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654 echo "${ECHO_T}$ac_cv_build" >&6
1656 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661 echo "$as_me:$LINENO: checking host system type" >&5
1662 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663 if test "${ac_cv_host+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 ac_cv_host_alias=$host_alias
1667 test -z "$ac_cv_host_alias" &&
1668 ac_cv_host_alias=$ac_cv_build_alias
1669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672 { (exit 1); exit 1; }; }
1675 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676 echo "${ECHO_T}$ac_cv_host" >&6
1678 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$as_me:$LINENO: checking target system type" >&5
1684 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685 if test "${ac_cv_target+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 ac_cv_target_alias=$target_alias
1689 test "x$ac_cv_target_alias" = "x" &&
1690 ac_cv_target_alias=$ac_cv_host_alias
1691 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698 echo "${ECHO_T}$ac_cv_target" >&6
1699 target=$ac_cv_target
1700 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 test -n "$target_alias" &&
1708 test "$program_prefix$program_suffix$program_transform_name" = \
1710 program_prefix=${target_alias}-
1712 # Determine the noncanonical target name, for directory use.
1713 case ${build_alias} in
1714 "") build_noncanonical=${build} ;;
1715 *) build_noncanonical=${build_alias} ;;
1718 case ${host_alias} in
1719 "") host_noncanonical=${build_noncanonical} ;;
1720 *) host_noncanonical=${host_alias} ;;
1723 case ${target_alias} in
1724 "") target_noncanonical=${host_noncanonical} ;;
1725 *) target_noncanonical=${target_alias} ;;
1731 # Determine the target- and build-specific subdirectories
1733 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1734 # have matching libraries, they should use host libraries: Makefile.tpl
1735 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1736 # However, they still use the build modules, because the corresponding
1737 # host modules (e.g. bison) are only built for the host when bootstrap
1739 # - build_subdir is where we find build modules, and never changes.
1740 # - build_libsubdir is where we find build libraries, and can be overridden.
1742 # Prefix 'build-' so this never conflicts with target_subdir.
1743 build_subdir="build-${build_noncanonical}"
1745 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1746 if test "${with_build_libsubdir+set}" = set; then
1747 withval="$with_build_libsubdir"
1748 build_libsubdir="$withval"
1750 build_libsubdir="$build_subdir"
1752 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1753 if ( test $srcdir = . && test -d gcc ) \
1754 || test -d $srcdir/../host-${host_noncanonical}; then
1755 host_subdir="host-${host_noncanonical}"
1760 target_subdir=${target_noncanonical}
1763 # Set program_transform_name
1764 test "$program_prefix" != NONE &&
1765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766 # Use a double $ so make ignores it.
1767 test "$program_suffix" != NONE &&
1768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769 # Double any \ or $. echo might interpret backslashes.
1770 # By default was `s,x,x', remove it if useless.
1771 cat <<\_ACEOF >conftest.sed
1772 s/[\\$]/&&/g;s/;s,x,x,$//
1774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778 # Check for bogus environment variables.
1779 # Test if LIBRARY_PATH contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # LIBRARY_PATH contains the current directory if one of the following
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1787 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1788 case ${LIBRARY_PATH} in
1789 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1790 library_path_setting="contains current directory"
1793 library_path_setting="ok"
1796 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1797 echo "${ECHO_T}$library_path_setting" >&6
1798 if test "$library_path_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** LIBRARY_PATH shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&5
1803 echo "$as_me: error:
1804 *** LIBRARY_PATH shouldn't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807 { (exit 1); exit 1; }; }
1810 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1811 # since this would lead to problems installing/building glibc.
1812 # GCC_EXEC_PREFIX contains the current directory if one of the following
1814 # - one of the terminals (":" and ";") is the first or last sign
1815 # - two terminals occur directly after each other
1816 # - the path contains an element with a dot in it
1817 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1818 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1819 case ${GCC_EXEC_PREFIX} in
1820 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1821 gcc_exec_prefix_setting="contains current directory"
1824 gcc_exec_prefix_setting="ok"
1827 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1828 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1829 if test "$gcc_exec_prefix_setting" != "ok"; then
1830 { { echo "$as_me:$LINENO: error:
1831 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1832 *** building gcc. Please change the environment variable
1833 *** and run configure again." >&5
1834 echo "$as_me: error:
1835 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1836 *** building gcc. Please change the environment variable
1837 *** and run configure again." >&2;}
1838 { (exit 1); exit 1; }; }
1845 # Specify the local prefix
1848 # Check whether --with-local-prefix or --without-local-prefix was given.
1849 if test "${with_local_prefix+set}" = set; then
1850 withval="$with_local_prefix"
1851 case "${withval}" in
1852 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1853 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1854 { (exit 1); exit 1; }; } ;;
1856 *) local_prefix=$with_local_prefix ;;
1860 # Default local prefix if it is empty
1861 if test x$local_prefix = x; then
1862 local_prefix=/usr/local
1865 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1866 # passed in by the toplevel make and thus we'd get different behavior
1867 # depending on where we built the sources.
1868 gcc_gxx_include_dir=
1869 # Specify the g++ header file directory
1871 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1872 if test "${with_gxx_include_dir+set}" = set; then
1873 withval="$with_gxx_include_dir"
1874 case "${withval}" in
1875 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1876 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1877 { (exit 1); exit 1; }; } ;;
1879 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1883 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1884 if test x${gcc_gxx_include_dir} = x; then
1885 if test x${enable_version_specific_runtime_libs} = xyes; then
1886 gcc_gxx_include_dir='${libsubdir}/include/c++'
1888 libstdcxx_incdir='include/c++/$(version)'
1889 if test x$host != x$target; then
1890 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1892 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1897 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1898 if test "${with_cpp_install_dir+set}" = set; then
1899 withval="$with_cpp_install_dir"
1900 if test x$withval = xyes; then
1901 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1902 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1903 { (exit 1); exit 1; }; }
1904 elif test x$withval != xno; then
1905 cpp_install_dir=$withval
1909 # We would like to our source tree to be readonly. However when releases or
1910 # pre-releases are generated, the flex/bison generated files as well as the
1911 # various formats of manuals need to be included along with the rest of the
1912 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1915 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1916 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1917 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1918 if test "${enable_generated_files_in_srcdir+set}" = set; then
1919 enableval="$enable_generated_files_in_srcdir"
1920 generated_files_in_srcdir=$enableval
1922 generated_files_in_srcdir=no
1925 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1926 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1928 if test "$generated_files_in_srcdir" = "yes"; then
1935 # -------------------
1936 # Find default linker
1937 # -------------------
1941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1942 if test "${with_gnu_ld+set}" = set; then
1943 withval="$with_gnu_ld"
1944 gnu_ld_flag="$with_gnu_ld"
1949 # With pre-defined ld
1951 # Check whether --with-ld or --without-ld was given.
1952 if test "${with_ld+set}" = set; then
1954 DEFAULT_LINKER="$with_ld"
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test ! -x "$DEFAULT_LINKER"; then
1958 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1959 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1960 { (exit 1); exit 1; }; }
1961 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1965 cat >>confdefs.h <<_ACEOF
1966 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1971 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1973 cat >>confdefs.h <<_ACEOF
1974 #define HAVE_GNU_LD $gnu_ld
1978 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1979 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1980 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1981 if test x"$gnu_ld_flag" = x"no"; then
1982 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1983 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1985 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1986 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1993 # With demangler in GNU ld
1995 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1996 if test "${with_demangler_in_ld+set}" = set; then
1997 withval="$with_demangler_in_ld"
1998 demangler_in_ld="$with_demangler_in_ld"
2003 # ----------------------
2004 # Find default assembler
2005 # ----------------------
2009 # Check whether --with-gnu-as or --without-gnu-as was given.
2010 if test "${with_gnu_as+set}" = set; then
2011 withval="$with_gnu_as"
2012 gas_flag="$with_gnu_as"
2018 # Check whether --with-as or --without-as was given.
2019 if test "${with_as+set}" = set; then
2021 DEFAULT_ASSEMBLER="$with_as"
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test ! -x "$DEFAULT_ASSEMBLER"; then
2025 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2026 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2027 { (exit 1); exit 1; }; }
2028 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2032 cat >>confdefs.h <<_ACEOF
2033 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2038 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2040 cat >>confdefs.h <<_ACEOF
2041 #define HAVE_GNU_AS $gnu_as
2045 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2046 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2047 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2048 if test x"$gas_flag" = x"no"; then
2049 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2050 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2052 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2053 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2064 # If a non-executable a.out is present (e.g. created by GNU as above even if
2065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2066 # file, even when creating an executable, so an execution test fails.
2067 # Remove possible default executable files to avoid this.
2069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2070 # Autoconf includes it.
2071 rm -f a.out a.exe b.out
2073 # Find the native compiler
2075 ac_cpp='$CPP $CPPFLAGS'
2076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2116 if test -z "$ac_cv_prog_CC"; then
2118 # Extract the first word of "gcc", so it can be a program name with args.
2119 set dummy gcc; ac_word=$2
2120 echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir=.
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_ac_ct_CC="gcc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}cc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="${ac_tool_prefix}cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2196 if test -z "$ac_cv_prog_CC"; then
2198 # Extract the first word of "cc", so it can be a program name with args.
2199 set dummy cc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="cc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2239 if test -z "$CC"; then
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259 ac_prog_rejected=yes
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 if test $ac_prog_rejected = yes; then
2270 # We found a bogon in the path, so make sure we never use it.
2271 set dummy $ac_cv_prog_CC
2273 if test $# != 0; then
2274 # We chose a different compiler from the bogus one.
2275 # However, it has the same basename, so the bogon will be chosen
2276 # first if we set CC to just the basename; use the full file name.
2278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2284 if test -n "$CC"; then
2285 echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 if test -n "$CC"; then
2325 echo "$as_me:$LINENO: result: $CC" >&5
2326 echo "${ECHO_T}$CC" >&6
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 test -n "$CC" && break
2335 if test -z "$CC"; then
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$ac_ct_CC"; then
2347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_ac_ct_CC="$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366 if test -n "$ac_ct_CC"; then
2367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368 echo "${ECHO_T}$ac_ct_CC" >&6
2370 echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2374 test -n "$ac_ct_CC" && break
2383 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }; }
2391 # Provide some information about the compiler.
2392 echo "$as_me:$LINENO:" \
2393 "checking for C compiler version" >&5
2394 ac_compiler=`set X $ac_compile; echo $2`
2395 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2396 (eval $ac_compiler --version </dev/null >&5) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2401 (eval $ac_compiler -v </dev/null >&5) 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2405 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2406 (eval $ac_compiler -V </dev/null >&5) 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2411 cat >conftest.$ac_ext <<_ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2426 ac_clean_files_save=$ac_clean_files
2427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2428 # Try to create an executable without -o first, disregard a.out.
2429 # It will help us diagnose broken compilers, and finding out an intuition
2431 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2435 (eval $ac_link_default) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 # Find the output, starting from the most likely. This scheme is
2440 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2443 # Be careful to initialize this variable, since it used to be cached.
2444 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2446 # b.out is created by i960 compilers.
2447 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2449 test -f "$ac_file" || continue
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2454 # This is the source file.
2457 # We found the default executable, but exeext='' is most
2461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 # FIXME: I believe we export ac_cv_exeext for Libtool,
2463 # but it would be cool to find out if it's true. Does anybody
2464 # maintain Libtool? --akim.
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2476 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&2;}
2481 { (exit 77); exit 77; }; }; }
2484 ac_exeext=$ac_cv_exeext
2485 echo "$as_me:$LINENO: result: $ac_file" >&5
2486 echo "${ECHO_T}$ac_file" >&6
2488 # Check the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2492 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493 # If not cross compiling, check that we can run a simple program.
2494 if test "$cross_compiling" != yes; then
2495 if { ac_try='./$ac_file'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 if test "$cross_compiling" = maybe; then
2506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot run C compiled programs.
2512 If you meant to cross compile, use \`--host'.
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }; }
2518 echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2521 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2522 ac_clean_files=$ac_clean_files_save
2523 # Check the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2527 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528 echo "${ECHO_T}$cross_compiling" >&6
2530 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }; }
2561 rm -f conftest$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2568 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2588 rm -f conftest.o conftest.obj
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }; }
2614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2617 echo "${ECHO_T}$ac_cv_objext" >&6
2618 OBJEXT=$ac_cv_objext
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2676 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2682 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2744 if test "$GCC" = yes; then
2750 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_prog_cc_stdc=no
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2781 s = g (p, va_arg (v,int));
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std1 is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std1. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2809 # Don't try gcc -ansi; that turns off useful extensions and
2810 # breaks some systems' header files.
2811 # AIX -qlanglvl=ansi
2812 # Ultrix and OSF/1 -std1
2813 # HP-UX 10.20 and later -Ae
2814 # HP-UX older versions -Aa -D_HPUX_SOURCE
2815 # SVR4 -Xc -D__EXTENSIONS__
2816 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2818 CC="$ac_save_CC $ac_arg"
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_prog_cc_stdc=$ac_arg
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f conftest.err conftest.$ac_objext
2850 rm -f conftest.$ac_ext conftest.$ac_objext
2855 case "x$ac_cv_prog_cc_stdc" in
2857 echo "$as_me:$LINENO: result: none needed" >&5
2858 echo "${ECHO_T}none needed" >&6 ;;
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862 CC="$CC $ac_cv_prog_cc_stdc" ;;
2865 # Some people use a C++ compiler to compile C. Since we use `exit',
2866 # in C++ we need to declare it. In case someone uses the same compiler
2867 # for both compiling C and C++ we need to have the C++ compiler decide
2868 # the declaration of exit, since it's the most demanding environment.
2869 cat >conftest.$ac_ext <<_ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 for ac_declaration in \
2898 'extern "C" void std::exit (int) throw (); using std::exit;' \
2899 'extern "C" void std::exit (int); using std::exit;' \
2900 'extern "C" void exit (int) throw ();' \
2901 'extern "C" void exit (int);' \
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 cat >conftest.$ac_ext <<_ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 if test -n "$ac_declaration"; then
2997 echo '#ifdef __cplusplus' >>confdefs.h
2998 echo $ac_declaration >>confdefs.h
2999 echo '#endif' >>confdefs.h
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 if test "x$CC" != xcc; then
3015 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3016 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3018 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3019 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3021 set dummy $CC; ac_cc=`echo $2 |
3022 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3023 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 # Make sure it works both with $CC and with simple cc.
3042 # We do the test twice because some compilers refuse to overwrite an
3043 # existing .o file with -o, though they will create one.
3044 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3045 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); };
3056 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3057 if test "x$CC" != xcc; then
3058 # Test first that cc exists at all.
3059 if { ac_try='cc -c conftest.$ac_ext >&5'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3066 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); };
3080 # cc exists but doesn't like -o.
3081 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3086 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3098 cat >>confdefs.h <<\_ACEOF
3099 #define NO_MINUS_C_MINUS_O 1
3104 # expand $ac_aux_dir to an absolute path
3105 am_aux_dir=`cd $ac_aux_dir && pwd`
3107 # FIXME: we rely on the cache variable name because
3108 # there is no other way.
3110 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3111 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3112 # Losing compiler, so override with the script.
3113 # FIXME: It is wrong to rewrite CC.
3114 # But if we don't then we get into trouble of one sort or another.
3115 # A longer-term fix would be to have automake use am__CC in this case,
3116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3117 CC="$am_aux_dir/compile $CC"
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3126 echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 if test -n "$GNATBIND"; then
3132 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 GNATBIND=$ac_cv_prog_GNATBIND
3151 if test -n "$GNATBIND"; then
3152 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3153 echo "${ECHO_T}$GNATBIND" >&6
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3160 if test -z "$ac_cv_prog_GNATBIND"; then
3161 ac_ct_GNATBIND=$GNATBIND
3162 # Extract the first word of "gnatbind", so it can be a program name with args.
3163 set dummy gnatbind; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$ac_ct_GNATBIND"; then
3170 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3189 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3190 if test -n "$ac_ct_GNATBIND"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3192 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 GNATBIND=$ac_ct_GNATBIND
3200 GNATBIND="$ac_cv_prog_GNATBIND"
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$GNATMAKE"; then
3212 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 GNATMAKE=$ac_cv_prog_GNATMAKE
3231 if test -n "$GNATMAKE"; then
3232 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3233 echo "${ECHO_T}$GNATMAKE" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3240 if test -z "$ac_cv_prog_GNATMAKE"; then
3241 ac_ct_GNATMAKE=$GNATMAKE
3242 # Extract the first word of "gnatmake", so it can be a program name with args.
3243 set dummy gnatmake; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$ac_ct_GNATMAKE"; then
3250 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3269 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3270 if test -n "$ac_ct_GNATMAKE"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3272 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 GNATMAKE=$ac_ct_GNATMAKE
3280 GNATMAKE="$ac_cv_prog_GNATMAKE"
3283 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3284 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3285 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.adb <<EOF
3289 procedure conftest is begin null; end conftest;
3291 acx_cv_cc_gcc_supports_ada=no
3292 # There is a bug in old released versions of GCC which causes the
3293 # driver to exit successfully when the appropriate language module
3294 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3295 # Therefore we must check for the error message as well as an
3296 # unsuccessful exit.
3297 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3298 # given a .adb file, but produce no object file. So we must check
3299 # if an object file was really produced to guard against this.
3300 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3301 if test x"$errors" = x && test -f conftest.$ac_objext; then
3302 acx_cv_cc_gcc_supports_ada=yes
3306 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3307 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3309 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3316 # autoconf is lame and doesn't give us any substitution variable for this.
3317 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3318 NO_MINUS_C_MINUS_O=yes
3320 OUTPUT_OPTION='-o $@'
3325 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3326 # optimizations to be activated explicitly by the toplevel.
3328 */prev-gcc/xgcc*) ;;
3329 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3333 # -------------------------
3334 # Check C compiler features
3335 # -------------------------
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3345 # On Suns, sometimes $CPP names a directory.
3346 if test -n "$CPP" && test -d "$CPP"; then
3349 if test -z "$CPP"; then
3350 if test "${ac_cv_prog_CPP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 # Double quotes because CPP needs to be expanded
3354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 for ac_c_preproc_warn_flag in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381 grep -v '^ *+' conftest.er1 >conftest.err
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null; then
3386 if test -s conftest.err; then
3387 ac_cpp_err=$ac_c_preproc_warn_flag
3388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395 if test -z "$ac_cpp_err"; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether non-existent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433 if test -z "$ac_cpp_err"; then
3434 # Broken: success on invalid input.
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 # Passes both tests.
3444 rm -f conftest.err conftest.$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3461 echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6
3464 for ac_c_preproc_warn_flag in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3479 # include <limits.h>
3481 # include <assert.h>
3485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null; then
3493 if test -s conftest.err; then
3494 ac_cpp_err=$ac_c_preproc_warn_flag
3495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3502 if test -z "$ac_cpp_err"; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether non-existent headers
3514 # can be detected and how.
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <ac_nonexistent.h>
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1 >conftest.err
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null; then
3531 if test -s conftest.err; then
3532 ac_cpp_err=$ac_c_preproc_warn_flag
3533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540 if test -z "$ac_cpp_err"; then
3541 # Broken: success on invalid input.
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 # Passes both tests.
3551 rm -f conftest.err conftest.$ac_ext
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then
3559 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }; }
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 echo "$as_me:$LINENO: checking for egrep" >&5
3576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3577 if test "${ac_cv_prog_egrep+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3581 then ac_cv_prog_egrep='grep -E'
3582 else ac_cv_prog_egrep='egrep'
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3586 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3587 EGREP=$ac_cv_prog_egrep
3590 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_cv_header_stdc=yes
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 ac_cv_header_stdc=no
3643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 if test $ac_cv_header_stdc = yes; then
3646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3647 cat >conftest.$ac_ext <<_ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 $EGREP "memchr" >/dev/null 2>&1; then
3660 ac_cv_header_stdc=no
3666 if test $ac_cv_header_stdc = yes; then
3667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678 $EGREP "free" >/dev/null 2>&1; then
3681 ac_cv_header_stdc=no
3687 if test $ac_cv_header_stdc = yes; then
3688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3689 if test "$cross_compiling" = yes; then
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3699 #if ((' ' & 0x0FF) == 0x020)
3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3703 # define ISLOWER(c) \
3704 (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3722 rm -f conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 echo "$as_me: program exited with status $ac_status" >&5
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_header_stdc=no
3742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3748 if test $ac_cv_header_stdc = yes; then
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3766 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3767 inttypes.h stdint.h unistd.h
3769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3783 #include <$ac_header>
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 eval "$as_ac_Header=yes"
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 eval "$as_ac_Header=no"
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819 cat >>confdefs.h <<_ACEOF
3820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3831 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3832 if test "${ac_cv_header_minix_config_h+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3836 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3838 # Is the header compilable?
3839 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3840 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3848 #include <minix/config.h>
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_header_compiler=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_header_compiler=no
3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3881 echo "${ECHO_T}$ac_header_compiler" >&6
3883 # Is the header present?
3884 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3885 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <minix/config.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 ac_header_preproc=yes
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_header_preproc=no
3919 rm -f conftest.err conftest.$ac_ext
3920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3921 echo "${ECHO_T}$ac_header_preproc" >&6
3923 # So? What about this header?
3924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3926 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3927 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3929 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3930 ac_header_preproc=yes
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3934 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3936 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3938 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3940 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3942 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3944 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3947 ## ------------------------------------------ ##
3948 ## Report this to the AC_PACKAGE_NAME lists. ##
3949 ## ------------------------------------------ ##
3952 sed "s/^/$as_me: WARNING: /" >&2
3955 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3956 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3957 if test "${ac_cv_header_minix_config_h+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 ac_cv_header_minix_config_h=$ac_header_preproc
3962 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3966 if test $ac_cv_header_minix_config_h = yes; then
3973 if test "$MINIX" = yes; then
3975 cat >>confdefs.h <<\_ACEOF
3976 #define _POSIX_SOURCE 1
3980 cat >>confdefs.h <<\_ACEOF
3981 #define _POSIX_1_SOURCE 2
3985 cat >>confdefs.h <<\_ACEOF
3993 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3994 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3995 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 # define __EXTENSIONS__ 1
4006 $ac_includes_default
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_cv_safe_to_define___extensions__=yes
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 ac_cv_safe_to_define___extensions__=no
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4047 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4048 test $ac_cv_safe_to_define___extensions__ = yes &&
4049 cat >>confdefs.h <<\_ACEOF
4050 #define __EXTENSIONS__ 1
4053 cat >>confdefs.h <<\_ACEOF
4054 #define _ALL_SOURCE 1
4057 cat >>confdefs.h <<\_ACEOF
4058 #define _GNU_SOURCE 1
4061 cat >>confdefs.h <<\_ACEOF
4062 #define _POSIX_PTHREAD_SEMANTICS 1
4065 cat >>confdefs.h <<\_ACEOF
4066 #define _TANDEM_SOURCE 1
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4077 # On Suns, sometimes $CPP names a directory.
4078 if test -n "$CPP" && test -d "$CPP"; then
4081 if test -z "$CPP"; then
4082 if test "${ac_cv_prog_CPP+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 # Double quotes because CPP needs to be expanded
4086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4089 for ac_c_preproc_warn_flag in '' yes
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat >conftest.$ac_ext <<_ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4104 # include <limits.h>
4106 # include <assert.h>
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null; then
4118 if test -s conftest.err; then
4119 ac_cpp_err=$ac_c_preproc_warn_flag
4120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4127 if test -z "$ac_cpp_err"; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 # Broken: fails on valid input.
4136 rm -f conftest.err conftest.$ac_ext
4138 # OK, works on sane cases. Now check whether non-existent headers
4139 # can be detected and how.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null; then
4156 if test -s conftest.err; then
4157 ac_cpp_err=$ac_c_preproc_warn_flag
4158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165 if test -z "$ac_cpp_err"; then
4166 # Broken: success on invalid input.
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 # Passes both tests.
4176 rm -f conftest.err conftest.$ac_ext
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.$ac_ext
4181 if $ac_preproc_ok; then
4193 echo "$as_me:$LINENO: result: $CPP" >&5
4194 echo "${ECHO_T}$CPP" >&6
4196 for ac_c_preproc_warn_flag in '' yes
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 # include <limits.h>
4213 # include <assert.h>
4217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null; then
4225 if test -s conftest.err; then
4226 ac_cpp_err=$ac_c_preproc_warn_flag
4227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4234 if test -z "$ac_cpp_err"; then
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 # Broken: fails on valid input.
4243 rm -f conftest.err conftest.$ac_ext
4245 # OK, works on sane cases. Now check whether non-existent headers
4246 # can be detected and how.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ac_nonexistent.h>
4255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null; then
4263 if test -s conftest.err; then
4264 ac_cpp_err=$ac_c_preproc_warn_flag
4265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272 if test -z "$ac_cpp_err"; then
4273 # Broken: success on invalid input.
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 # Passes both tests.
4283 rm -f conftest.err conftest.$ac_ext
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.err conftest.$ac_ext
4288 if $ac_preproc_ok; then
4291 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4292 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; }; }
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 echo "$as_me:$LINENO: checking for inline" >&5
4307 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4308 if test "${ac_cv_c_inline+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 for ac_kw in inline __inline__ __inline; do
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4321 static $ac_kw foo_t static_foo () {return 0; }
4322 $ac_kw foo_t foo () {return 0; }
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_c_inline=$ac_kw; break
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4359 echo "${ECHO_T}$ac_cv_c_inline" >&6
4362 case $ac_cv_c_inline in
4365 case $ac_cv_c_inline in
4367 *) ac_val=$ac_cv_c_inline;;
4369 cat >>confdefs.h <<_ACEOF
4371 #define inline $ac_val
4378 # sizeof(char) is 1 by definition.
4379 echo "$as_me:$LINENO: checking for void *" >&5
4380 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4381 if test "${ac_cv_type_void_p+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4396 if (sizeof (void *))
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_type_void_p=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 ac_cv_type_void_p=no
4431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4434 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4436 echo "$as_me:$LINENO: checking size of void *" >&5
4437 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4438 if test "${ac_cv_sizeof_void_p+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test "$ac_cv_type_void_p" = yes; then
4442 # The cast to unsigned long works around a bug in the HP C Compiler
4443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4445 # This bug is HP SR number 8606223364.
4446 if test "$cross_compiling" = yes; then
4447 # Depending upon the size, compute the lo and hi bounds.
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext