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 TARGET_GETGROUPS_T 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 host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO 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 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 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 c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC 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
933 # Report the --help message.
935 if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
939 \`configure' configures this package to adapt to many kinds of systems.
941 Usage: $0 [OPTION]... [VAR=VALUE]...
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE. See below for descriptions of some of the useful variables.
946 Defaults for the options are specified in brackets.
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
962 Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
973 For better control, use the options below.
975 Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
993 --program-prefix=PREFIX prepend PREFIX to installed program names
994 --program-suffix=SUFFIX append SUFFIX to installed program names
995 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1004 if test -n "$ac_init_help"; then
1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1011 --enable-generated-files-in-srcdir
1012 put copies of generated files in source dir
1013 intended for creating source tarballs for users
1014 without texinfo bison or flex.
1015 --enable-werror-always enable -Werror despite compiler version
1016 --enable-checking=LIST
1017 enable expensive run-time checks. With LIST,
1018 enable only specific categories of checks.
1019 Categories are: yes,no,all,none,release.
1020 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1021 rtlflag,rtl,runtime,tree,valgrind,types.
1022 --enable-coverage=LEVEL
1023 enable compiler's code coverage collection.
1024 Use to measure compiler performance and locate
1025 unused parts of the compiler. With LEVEL, specify
1026 optimization. Values are opt, noopt,
1028 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1029 --enable-multilib enable library support for multiple ABIs
1030 --enable-__cxa_atexit enable __cxa_atexit for C++
1031 --enable-decimal-float={no,yes,bid,dpd}
1032 enable decimal float extension to C. Selecting 'bid'
1033 or 'dpd' choses which decimal floating point format
1035 --enable-fixed-point enable fixed-point arithmetic extension to C
1036 --enable-threads enable thread usage for target GCC
1037 --enable-threads=LIB use LIB thread package for target GCC
1038 --enable-tls enable or disable generation of tls code
1039 overriding the assembler check for tls support
1040 --enable-objc-gc enable the use of Boehm's garbage collector with
1041 the GNU Objective-C runtime
1042 --disable-shared don't provide a shared libgcc
1043 --enable-intermodule build the compiler in one step
1044 --enable-languages=LIST specify which front-ends to build
1045 --disable-rpath do not hardcode runtime library paths
1046 --enable-initfini-array use .init_array/.fini_array sections
1047 --enable-sjlj-exceptions
1048 arrange to use setjmp/longjmp exception handling
1049 --enable-secureplt enable -msecure-plt by default for PowerPC
1050 --enable-cld enable -mcld by default for 32bit x86
1051 --disable-win32-registry
1052 disable lookup of installation paths in the
1053 Registry on Windows hosts
1054 --enable-win32-registry enable registry lookup (default)
1055 --enable-win32-registry=KEY
1056 use KEY instead of GCC version as the last portion
1058 --enable-shared[=PKGS]
1059 build shared libraries [default=yes]
1060 --enable-static[=PKGS]
1061 build static libraries [default=yes]
1062 --enable-fast-install[=PKGS]
1063 optimize for fast installation [default=yes]
1064 --disable-libtool-lock avoid locking (might break parallel builds)
1065 --enable-maintainer-mode
1066 enable make rules and dependencies not useful
1067 (and sometimes confusing) to the casual installer
1068 --enable-version-specific-runtime-libs
1069 specify that runtime libraries should be
1070 installed in a compiler-specific directory
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-build-libsubdir=DIR Directory where to find libraries for build system
1076 --with-local-prefix=DIR specifies directory to put local include
1077 --with-gxx-include-dir=DIR
1078 specifies directory to put g++ header files
1079 --with-cpp-install-dir=DIR
1080 install the user visible C preprocessor in DIR
1081 (relative to PREFIX) as well as PREFIX/bin
1082 --with-gnu-ld arrange to work with GNU ld.
1083 --with-ld arrange to use the specified ld (full pathname)
1084 --with-demangler-in-ld try to use demangler in GNU ld.
1085 --with-gnu-as arrange to work with GNU as
1086 --with-as arrange to use the specified as (full pathname)
1087 --with-stabs arrange to use stabs instead of host debug format
1088 --with-dwarf2 force the default debug format to be DWARF 2
1089 --with-build-sysroot=sysroot
1090 use sysroot as the system root during the build
1091 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1092 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1093 --with-bugurl=URL Direct users to URL to report a bug
1094 --with-gnu-ld assume the C compiler uses GNU ld default=no
1095 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1096 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1097 --with-system-libunwind use installed libunwind
1098 --with-pic try to use only PIC/non-PIC objects [default=use
1100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1101 --with-long-double-128 Use 128-bit long double by default.
1102 --with-gc={page,zone} choose the garbage collection mechanism to use
1104 --with-system-zlib use installed libz
1105 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1106 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1107 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1108 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1110 Some influential environment variables:
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1118 GMPLIBS How to link GMP
1119 GMPINC How to find GMP include files
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1127 if test "$ac_init_help" = "recursive"; then
1128 # If there are subdirs, report their specific --help.
1130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131 test -d $ac_dir || continue
1134 if test "$ac_dir" != .; then
1135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1139 ac_dir_suffix= ac_top_builddir=
1143 .) # No --srcdir option. We are building in place.
1145 if test -z "$ac_top_builddir"; then
1148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1150 [\\/]* | ?:[\\/]* ) # Absolute path.
1151 ac_srcdir=$srcdir$ac_dir_suffix;
1152 ac_top_srcdir=$srcdir ;;
1154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158 # Do not use `cd foo && pwd` to compute absolute paths, because
1159 # the directories may not exist.
1161 .) ac_abs_builddir="$ac_dir";;
1164 .) ac_abs_builddir=`pwd`;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 case ${ac_top_builddir}. in
1173 .) ac_abs_top_builddir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
1182 .) ac_abs_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 case $ac_top_srcdir in
1191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1198 # Check for guested configure; otherwise get Cygnus style configure.
1199 if test -f $ac_srcdir/configure.gnu; then
1201 $SHELL $ac_srcdir/configure.gnu --help=recursive
1202 elif test -f $ac_srcdir/configure; then
1204 $SHELL $ac_srcdir/configure --help=recursive
1205 elif test -f $ac_srcdir/configure.ac ||
1206 test -f $ac_srcdir/configure.in; then
1208 $ac_configure --help
1210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59. Invocation command line was
1243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1252 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1253 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1256 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1257 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1258 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266 test -z "$as_dir" && as_dir=.
1267 echo "PATH: $as_dir"
1282 # Keep a trace of the command line.
1283 # Strip out --no-create and --no-recursion so they do not pile up.
1284 # Strip out --silent because we don't want to record it for future runs.
1285 # Also quote any args containing shell meta-characters.
1286 # Make two passes to allow for proper duplicate-argument suppression.
1291 ac_must_keep_next=false
1297 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1307 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308 if test $ac_must_keep_next = true; then
1309 ac_must_keep_next=false # Got value, back to normal.
1312 *=* | --config-cache | -C | -disable-* | --disable-* \
1313 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315 | -with-* | --with-* | -without-* | --without-* | --x)
1316 case "$ac_configure_args0 " in
1317 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320 -* ) ac_must_keep_next=true ;;
1323 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324 # Get rid of the leading space.
1330 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1333 # When interrupted or exit'd, cleanup temporary files, and complete
1334 # config.log. We remove comments because anyway the quotes in there
1335 # would cause problems or look ugly.
1336 # WARNING: Be sure not to use single quotes in there, as some shells,
1337 # such as our DU 5.0 friend, will then `close' the trap.
1338 trap 'exit_status=$?
1339 # Save into config.log some information that might help in debugging.
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1349 # The following way of writing the cache mishandles newlines in values,
1352 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1372 for ac_var in $ac_subst_vars
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1379 if test -n "$ac_subst_files"; then
1386 for ac_var in $ac_subst_files
1388 eval ac_val=$`echo $ac_var`
1389 echo "$ac_var='"'"'$ac_val'"'"'"
1394 if test -s confdefs.h; then
1401 sed "/^$/d" confdefs.h | sort
1404 test "$ac_signal" != 0 &&
1405 echo "$as_me: caught signal $ac_signal"
1406 echo "$as_me: exit $exit_status"
1408 rm -f core *.core &&
1409 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1412 for ac_signal in 1 2 13 15; do
1413 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422 # Predefined preprocessor variables.
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if test -z "$CONFIG_SITE"; then
1452 if test "x$prefix" != xNONE; then
1453 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1455 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458 for ac_site_file in $CONFIG_SITE; do
1459 if test -r "$ac_site_file"; then
1460 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462 sed 's/^/| /' "$ac_site_file" >&5
1467 if test -r "$cache_file"; then
1468 # Some versions of bash will fail to source /dev/null (special
1469 # files actually), so we avoid doing that.
1470 if test -f "$cache_file"; then
1471 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472 echo "$as_me: loading cache $cache_file" >&6;}
1474 [\\/]* | ?:[\\/]* ) . $cache_file;;
1475 *) . ./$cache_file;;
1479 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1484 # Check that the precious variables saved in the cache have kept the same
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490 eval ac_new_set=\$ac_env_${ac_var}_set
1491 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492 eval ac_new_val="\$ac_env_${ac_var}_value"
1493 case $ac_old_set,$ac_new_set in
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1504 if test "x$ac_old_val" != "x$ac_new_val"; then
1505 # differences in whitespace do not lead to failure.
1506 ac_old_val_w=`echo x $ac_old_val`
1507 ac_new_val_w=`echo x $ac_new_val`
1508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511 ac_cache_corrupted=:
1513 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515 eval $ac_var=\$ac_old_val
1517 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1518 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1519 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1520 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1523 # Pass precious variables to config.status.
1524 if test "$ac_new_set" = set; then
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 *) ac_arg=$ac_var=$ac_new_val ;;
1530 case " $ac_configure_args " in
1531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1532 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1536 if $ac_cache_corrupted; then
1537 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1577 gcc_version=`cat $srcdir/BASE-VER`
1579 # Determine the host, build, and target systems
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1586 elif test -f $ac_dir/install.sh; then
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1590 elif test -f $ac_dir/shtool; then
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 if test -z "$ac_aux_dir"; then
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599 { (exit 1); exit 1; }; }
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1686 program_prefix=${target_alias}-
1688 # Determine the noncanonical target name, for directory use.
1689 case ${build_alias} in
1690 "") build_noncanonical=${build} ;;
1691 *) build_noncanonical=${build_alias} ;;
1694 case ${host_alias} in
1695 "") host_noncanonical=${build_noncanonical} ;;
1696 *) host_noncanonical=${host_alias} ;;
1699 case ${target_alias} in
1700 "") target_noncanonical=${host_noncanonical} ;;
1701 *) target_noncanonical=${target_alias} ;;
1707 # Determine the target- and build-specific subdirectories
1709 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710 # have matching libraries, they should use host libraries: Makefile.tpl
1711 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712 # However, they still use the build modules, because the corresponding
1713 # host modules (e.g. bison) are only built for the host when bootstrap
1715 # - build_subdir is where we find build modules, and never changes.
1716 # - build_libsubdir is where we find build libraries, and can be overridden.
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723 withval="$with_build_libsubdir"
1724 build_libsubdir="$withval"
1726 build_libsubdir="$build_subdir"
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730 || test -d $srcdir/../host-${host_noncanonical}; then
1731 host_subdir="host-${host_noncanonical}"
1736 target_subdir=${target_noncanonical}
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 # Check for bogus environment variables.
1755 # Test if LIBRARY_PATH contains the notation for the current directory
1756 # since this would lead to problems installing/building glibc.
1757 # LIBRARY_PATH contains the current directory if one of the following
1759 # - one of the terminals (":" and ";") is the first or last sign
1760 # - two terminals occur directly after each other
1761 # - the path contains an element with a dot in it
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766 library_path_setting="contains current directory"
1769 library_path_setting="ok"
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again." >&5
1779 echo "$as_me: error:
1780 *** LIBRARY_PATH shouldn't contain the current directory when
1781 *** building gcc. Please change the environment variable
1782 *** and run configure again." >&2;}
1783 { (exit 1); exit 1; }; }
1786 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787 # since this would lead to problems installing/building glibc.
1788 # GCC_EXEC_PREFIX contains the current directory if one of the following
1790 # - one of the terminals (":" and ";") is the first or last sign
1791 # - two terminals occur directly after each other
1792 # - the path contains an element with a dot in it
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797 gcc_exec_prefix_setting="contains current directory"
1800 gcc_exec_prefix_setting="ok"
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
1806 { { echo "$as_me:$LINENO: error:
1807 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808 *** building gcc. Please change the environment variable
1809 *** and run configure again." >&5
1810 echo "$as_me: error:
1811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814 { (exit 1); exit 1; }; }
1821 # Specify the local prefix
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826 withval="$with_local_prefix"
1827 case "${withval}" in
1828 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
1832 *) local_prefix=$with_local_prefix ;;
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838 local_prefix=/usr/local
1841 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1842 # passed in by the toplevel make and thus we'd get different behavior
1843 # depending on where we built the sources.
1844 gcc_gxx_include_dir=
1845 # Specify the g++ header file directory
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849 withval="$with_gxx_include_dir"
1850 case "${withval}" in
1851 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853 { (exit 1); exit 1; }; } ;;
1855 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if test x${gcc_gxx_include_dir} = x; then
1861 if test x${enable_version_specific_runtime_libs} = xyes; then
1862 gcc_gxx_include_dir='${libsubdir}/include/c++'
1864 libstdcxx_incdir='include/c++/$(version)'
1865 if test x$host != x$target; then
1866 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1868 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875 withval="$with_cpp_install_dir"
1876 if test x$withval = xyes; then
1877 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879 { (exit 1); exit 1; }; }
1880 elif test x$withval != xno; then
1881 cpp_install_dir=$withval
1885 # We would like to our source tree to be readonly. However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895 enableval="$enable_generated_files_in_srcdir"
1896 generated_files_in_srcdir=$enableval
1898 generated_files_in_srcdir=no
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1904 if test "$generated_files_in_srcdir" = "yes"; then
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919 withval="$with_gnu_ld"
1920 gnu_ld_flag="$with_gnu_ld"
1925 # With pre-defined ld
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1930 DEFAULT_LINKER="$with_ld"
1932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933 if test ! -x "$DEFAULT_LINKER"; then
1934 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936 { (exit 1); exit 1; }; }
1937 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1941 cat >>confdefs.h <<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1947 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1949 cat >>confdefs.h <<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test x"$gnu_ld_flag" = x"no"; then
1958 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1961 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1969 # With demangler in GNU ld
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973 withval="$with_demangler_in_ld"
1974 demangler_in_ld="$with_demangler_in_ld"
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987 withval="$with_gnu_as"
1988 gas_flag="$with_gnu_as"
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1997 DEFAULT_ASSEMBLER="$with_as"
1999 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000 if test ! -x "$DEFAULT_ASSEMBLER"; then
2001 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003 { (exit 1); exit 1; }; }
2004 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2008 cat >>confdefs.h <<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2014 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2016 cat >>confdefs.h <<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test x"$gas_flag" = x"no"; then
2025 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2028 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2040 # If a non-executable a.out is present (e.g. created by GNU as above even if
2041 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042 # file, even when creating an executable, so an execution test fails.
2043 # Remove possible default executable files to avoid this.
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2049 # Find the native compiler
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$ac_cv_prog_CC"; then
2094 # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_ac_ct_CC="gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2134 if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_CC="${ac_tool_prefix}cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test -n "$CC"; then
2164 echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2172 if test -z "$ac_cv_prog_CC"; then
2174 # Extract the first word of "cc", so it can be a program name with args.
2175 set dummy cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2260 if test -n "$CC"; then
2261 echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$CC" && break
2311 if test -z "$CC"; then
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 test -n "$ac_ct_CC" && break
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 test -f "$ac_file" || continue
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 # This is the source file.
2433 # We found the default executable, but exeext='' is most
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457 { (exit 77); exit 77; }; }; }
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2464 # Check the compiler produces executables we can run. If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471 if { ac_try='./$ac_file'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 if test "$cross_compiling" = maybe; then
2482 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }; }
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498 ac_clean_files=$ac_clean_files_save
2499 # Check the compiler produces executables we can run. If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }; }
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2682 grep -v '^ *+' conftest.er1 >conftest.err
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2720 if test "$GCC" = yes; then
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 ac_cv_prog_cc_stdc=no
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 #include <sys/types.h>
2742 #include <sys/stat.h>
2743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2752 static char *f (char * (*g) (char **, int), char **p, ...)
2757 s = g (p, va_arg (v,int));
2762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2763 function prototypes and stuff, but not '\xHH' hex character constants.
2764 These don't provoke an error unfortunately, instead are silently treated
2765 as 'x'. The following induces an error, until -std1 is added to get
2766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2767 array size at least. It's necessary to write '\x00'==0 to get something
2768 that's true only with -std1. */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX -qlanglvl=ansi
2788 # Ultrix and OSF/1 -std1
2789 # HP-UX 10.20 and later -Ae
2790 # HP-UX older versions -Aa -D_HPUX_SOURCE
2791 # SVR4 -Xc -D__EXTENSIONS__
2792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1 >conftest.err
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_stdc=$ac_arg
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2824 rm -f conftest.err conftest.$ac_objext
2826 rm -f conftest.$ac_ext conftest.$ac_objext
2831 case "x$ac_cv_prog_cc_stdc" in
2833 echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838 CC="$CC $ac_cv_prog_cc_stdc" ;;
2841 # Some people use a C++ compiler to compile C. Since we use `exit',
2842 # in C++ we need to declare it. In case someone uses the same compiler
2843 # for both compiling C and C++ we need to have the C++ compiler decide
2844 # the declaration of exit, since it's the most demanding environment.
2845 cat >conftest.$ac_ext <<_ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag"
2860 || test ! -s conftest.err'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; } &&
2866 { ac_try='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 for ac_declaration in \
2874 'extern "C" void std::exit (int) throw (); using std::exit;' \
2875 'extern "C" void std::exit (int); using std::exit;' \
2876 'extern "C" void exit (int) throw ();' \
2877 'extern "C" void exit (int);' \
2880 cat >conftest.$ac_ext <<_ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 if test -n "$ac_declaration"; then
2973 echo '#ifdef __cplusplus' >>confdefs.h
2974 echo $ac_declaration >>confdefs.h
2975 echo '#endif' >>confdefs.h
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 if test "x$CC" != xcc; then
2991 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2994 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2997 set dummy $CC; ac_cc=`echo $2 |
2998 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 # Make sure it works both with $CC and with simple cc.
3018 # We do the test twice because some compilers refuse to overwrite an
3019 # existing .o file with -o, though they will create one.
3020 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); };
3032 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3033 if test "x$CC" != xcc; then
3034 # Test first that cc exists at all.
3035 if { ac_try='cc -c conftest.$ac_ext >&5'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3056 # cc exists but doesn't like -o.
3057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3074 cat >>confdefs.h <<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir=`cd $ac_aux_dir && pwd`
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3086 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088 # Losing compiler, so override with the script.
3089 # FIXME: It is wrong to rewrite CC.
3090 # But if we don't then we get into trouble of one sort or another.
3091 # A longer-term fix would be to have automake use am__CC in this case,
3092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093 CC="$am_aux_dir/compile $CC"
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 if test -n "$GNATBIND"; then
3108 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 GNATBIND=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3136 if test -z "$ac_cv_prog_GNATBIND"; then
3137 ac_ct_GNATBIND=$GNATBIND
3138 # Extract the first word of "gnatbind", so it can be a program name with args.
3139 set dummy gnatbind; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$ac_ct_GNATBIND"; then
3146 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3165 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 GNATBIND=$ac_ct_GNATBIND
3176 GNATBIND="$ac_cv_prog_GNATBIND"
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$GNATMAKE"; then
3188 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 GNATMAKE=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3216 if test -z "$ac_cv_prog_GNATMAKE"; then
3217 ac_ct_GNATMAKE=$GNATMAKE
3218 # Extract the first word of "gnatmake", so it can be a program name with args.
3219 set dummy gnatmake; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$ac_ct_GNATMAKE"; then
3226 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3245 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 GNATMAKE=$ac_ct_GNATMAKE
3256 GNATMAKE="$ac_cv_prog_GNATMAKE"
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.adb <<EOF
3265 procedure conftest is begin null; end conftest;
3267 acx_cv_cc_gcc_supports_ada=no
3268 # There is a bug in old released versions of GCC which causes the
3269 # driver to exit successfully when the appropriate language module
3270 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3271 # Therefore we must check for the error message as well as an
3272 # unsuccessful exit.
3273 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274 # given a .adb file, but produce no object file. So we must check
3275 # if an object file was really produced to guard against this.
3276 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x"$errors" = x && test -f conftest.$ac_objext; then
3278 acx_cv_cc_gcc_supports_ada=yes
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3285 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294 NO_MINUS_C_MINUS_O=yes
3296 OUTPUT_OPTION='-o $@'
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3304 */prev-gcc/xgcc*) ;;
3305 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3325 if test -z "$CPP"; then
3326 if test "${ac_cv_prog_CPP+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 # Double quotes because CPP needs to be expanded
3330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3333 for ac_c_preproc_warn_flag in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3380 rm -f conftest.err conftest.$ac_ext
3382 # OK, works on sane cases. Now check whether non-existent headers
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <ac_nonexistent.h>
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 if test -z "$ac_cpp_err"; then
3410 # Broken: success on invalid input.
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3420 rm -f conftest.err conftest.$ac_ext
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3440 for ac_c_preproc_warn_flag in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 # include <limits.h>
3457 # include <assert.h>
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478 if test -z "$ac_cpp_err"; then
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3487 rm -f conftest.err conftest.$ac_ext
3489 # OK, works on sane cases. Now check whether non-existent headers
3490 # can be detected and how.
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null; then
3507 if test -s conftest.err; then
3508 ac_cpp_err=$ac_c_preproc_warn_flag
3509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3527 rm -f conftest.err conftest.$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }; }
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557 then ac_cv_prog_egrep='grep -E'
3558 else ac_cv_prog_egrep='egrep'
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP=$ac_cv_prog_egrep
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_header_stdc=yes
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then
3636 ac_cv_header_stdc=no
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then
3657 ac_cv_header_stdc=no
3663 if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3679 # define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3698 rm -f conftest$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3711 echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_header_stdc=no
3718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define STDC_HEADERS 1
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743 inttypes.h stdint.h unistd.h
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3759 #include <$ac_header>
3761 rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>conftest.er1
3765 grep -v '^ *+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 eval "$as_ac_Header=yes"
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 eval "$as_ac_Header=no"
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805 if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 #include <minix/config.h>
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_header_compiler=yes
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_header_compiler=no
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <minix/config.h>
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3887 if test -z "$ac_cpp_err"; then
3888 ac_header_preproc=yes
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_header_preproc=no
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3899 # So? What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc=yes
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists. ##
3925 ## ------------------------------------------ ##
3928 sed "s/^/$as_me: WARNING: /" >&2
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_header_minix_config_h=$ac_header_preproc
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3942 if test $ac_cv_header_minix_config_h = yes; then
3949 if test "$MINIX" = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3961 cat >>confdefs.h <<\_ACEOF
3969 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # define __EXTENSIONS__ 1
3982 $ac_includes_default
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_safe_to_define___extensions__=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_safe_to_define___extensions__=no
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _ALL_SOURCE 1
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _GNU_SOURCE 1
4037 cat >>confdefs.h <<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4041 cat >>confdefs.h <<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4103 if test -z "$ac_cpp_err"; then
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1 >conftest.err
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null; then
4132 if test -s conftest.err; then
4133 ac_cpp_err=$ac_c_preproc_warn_flag
4134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4141 if test -z "$ac_cpp_err"; then
4142 # Broken: success on invalid input.
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 # Passes both tests.
4152 rm -f conftest.err conftest.$ac_ext
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null; then
4201 if test -s conftest.err; then
4202 ac_cpp_err=$ac_c_preproc_warn_flag
4203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4210 if test -z "$ac_cpp_err"; then
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Broken: fails on valid input.
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether non-existent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_c_preproc_warn_flag
4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4248 if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273 { (exit 1); exit 1; }; }; }
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 for ac_kw in inline __inline__ __inline; do
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_c_inline=$ac_kw; break
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4338 case $ac_cv_c_inline in
4341 case $ac_cv_c_inline in
4343 *) ac_val=$ac_cv_c_inline;;
4345 cat >>confdefs.h <<_ACEOF
4347 #define inline $ac_val
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 $ac_includes_default
4372 if (sizeof (void *))
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_type_void_p=yes
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_cv_type_void_p=no
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test "$ac_cv_type_void_p" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 $ac_includes_default
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_hi=$ac_mid; break
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_lo=`expr $ac_mid + 1`
4510 if test $ac_lo -le $ac_mid; then
4514 ac_mid=`expr 2 '*' $ac_mid + 1`
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_lo=$ac_mid; break
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_hi=`expr '(' $ac_mid ')' - 1`
4608 if test $ac_mid -le $ac_hi; then
4612 ac_mid=`expr 2 '*' $ac_mid`
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while test "x$ac_lo" != "x$ac_hi"; do
4627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_lo=`expr '(' $ac_mid ')' + 1`
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; }; } ;;
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694 { (exit 1); exit 1; }; }; }
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4711 FILE *f = fopen ("conftest.val", "w");
4714 if (((long) (sizeof (void *))) < 0)
4716 long i = longval ();
4717 if (i != ((long) (sizeof (void *))))
4719 fprintf (f, "%ld\n", i);
4723 unsigned long i = ulongval ();
4724 if (i != ((long) (sizeof (void *))))
4726 fprintf (f, "%lu\n", i);
4728 exit (ferror (f) || fclose (f) != 0);
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_sizeof_void_p=`cat conftest.val`
4747 echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }; }
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765 ac_cv_sizeof_void_p=0
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_includes_default
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_c_werror_flag"
4808 || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_type_short=yes
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test "$ac_cv_type_short" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4885 cat >conftest.$ac_ext <<_ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi=$ac_mid; break
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_lo=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4934 ac_mid=`expr 2 '*' $ac_mid + 1`
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_lo=$ac_mid; break
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5032 ac_mid=`expr 2 '*' $ac_mid`
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.$ac_ext <<_ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 ?*) ac_cv_sizeof_short=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }; } ;;
5107 if test "$cross_compiling" = yes; then
5108 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }; }
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5131 FILE *f = fopen ("conftest.val", "w");
5134 if (((long) (sizeof (short))) < 0)
5136 long i = longval ();
5137 if (i != ((long) (sizeof (short))))
5139 fprintf (f, "%ld\n", i);
5143 unsigned long i = ulongval ();
5144 if (i != ((long) (sizeof (short))))
5146 fprintf (f, "%lu\n", i);
5148 exit (ferror (f) || fclose (f) != 0);
5154 rm -f conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_sizeof_short=`cat conftest.val`
5167 echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }; }
5180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185 ac_cv_sizeof_short=0
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h <<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5222 grep -v '^ *+' conftest.er1 >conftest.err
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 if test "$ac_cv_type_int" = yes; then
5258 # The cast to unsigned long works around a bug in the HP C Compiler
5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261 # This bug is HP SR number 8606223364.
5262 if test "$cross_compiling" = yes; then
5263 # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.$ac_ext <<_ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1 >conftest.err
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_hi=$ac_mid; break
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_lo=`expr $ac_mid + 1`
5350 if test $ac_lo -le $ac_mid; then
5354 ac_mid=`expr 2 '*' $ac_mid + 1`
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_lo=$ac_mid; break
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_hi=`expr '(' $ac_mid ')' - 1`
5448 if test $ac_mid -le $ac_hi; then
5452 ac_mid=`expr 2 '*' $ac_mid`
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while test "x$ac_lo" != "x$ac_hi"; do
5467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468 cat >conftest.$ac_ext <<_ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_lo=`expr '(' $ac_mid ')' + 1`
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ?*) ac_cv_sizeof_int=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524 { (exit 1); exit 1; }; }; } ;;
5527 if test "$cross_compiling" = yes; then
5528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534 { (exit 1); exit 1; }; }; }
5536 cat >conftest.$ac_ext <<_ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5551 FILE *f = fopen ("conftest.val", "w");
5554 if (((long) (sizeof (int))) < 0)
5556 long i = longval ();
5557 if (i != ((long) (sizeof (int))))
5559 fprintf (f, "%ld\n", i);
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (int))))
5566 fprintf (f, "%lu\n", i);
5568 exit (ferror (f) || fclose (f) != 0);
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_int=`cat conftest.val`
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598 { (exit 1); exit 1; }; }; }
5600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5642 grep -v '^ *+' conftest.er1 >conftest.err
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 if test "$ac_cv_type_long" = yes; then
5678 # The cast to unsigned long works around a bug in the HP C Compiler
5679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681 # This bug is HP SR number 8606223364.
5682 if test "$cross_compiling" = yes; then
5683 # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5742 rm -f conftest.$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
5746 grep -v '^ *+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_hi=$ac_mid; break
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_lo=`expr $ac_mid + 1`
5770 if test $ac_lo -le $ac_mid; then
5774 ac_mid=`expr 2 '*' $ac_mid + 1`
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_lo=$ac_mid; break
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5872 ac_mid=`expr 2 '*' $ac_mid`
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_lo=`expr '(' $ac_mid ')' + 1`
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5937 ?*) ac_cv_sizeof_long=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944 { (exit 1); exit 1; }; }; } ;;
5947 if test "$cross_compiling" = yes; then
5948 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; }; }
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5971 FILE *f = fopen ("conftest.val", "w");
5974 if (((long) (sizeof (long))) < 0)
5976 long i = longval ();
5977 if (i != ((long) (sizeof (long))))
5979 fprintf (f, "%ld\n", i);
5983 unsigned long i = ulongval ();
5984 if (i != ((long) (sizeof (long))))
5986 fprintf (f, "%lu\n", i);
5988 exit (ferror (f) || fclose (f) != 0);
5994 rm -f conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_long=`cat conftest.val`
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; }; }
6020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6050 if ((long long *) 0)
6052 if (sizeof (long long))
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_type_long_long=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_type_long_long=no
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6112 if ((long long *) 0)
6114 if (sizeof (long long))
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_type_long_long=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_type_long_long=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 if test "$ac_cv_type_long_long" = yes; then
6160 # The cast to unsigned long works around a bug in the HP C Compiler
6161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163 # This bug is HP SR number 8606223364.
6164 if test "$cross_compiling" = yes; then
6165 # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1 >conftest.err
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest.$ac_objext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_hi=$ac_mid; break
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_lo=`expr $ac_mid + 1`
6252 if test $ac_lo -le $ac_mid; then
6256 ac_mid=`expr 2 '*' $ac_mid + 1`
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_lo=$ac_mid; break
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_hi=`expr '(' $ac_mid ')' - 1`
6350 if test $ac_mid -le $ac_hi; then
6354 ac_mid=`expr 2 '*' $ac_mid`
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while test "x$ac_lo" != "x$ac_hi"; do
6369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_lo=`expr '(' $ac_mid ')' + 1`
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426 { (exit 1); exit 1; }; }; } ;;
6429 if test "$cross_compiling" = yes; then
6430 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436 { (exit 1); exit 1; }; }; }
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6453 FILE *f = fopen ("conftest.val", "w");
6456 if (((long) (sizeof (long long))) < 0)
6458 long i = longval ();
6459 if (i != ((long) (sizeof (long long))))
6461 fprintf (f, "%ld\n", i);
6465 unsigned long i = ulongval ();
6466 if (i != ((long) (sizeof (long long))))
6468 fprintf (f, "%lu\n", i);
6470 exit (ferror (f) || fclose (f) != 0);
6476 rm -f conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sizeof_long_long=`cat conftest.val`
6489 echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500 { (exit 1); exit 1; }; }; }
6502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6507 ac_cv_sizeof_long_long=0
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6536 if (sizeof (__int64))
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_type___int64=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_type___int64=no
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE___INT64 1
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6598 if (sizeof (__int64))
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type___int64=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type___int64=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if test "$ac_cv_type___int64" = yes; then
6644 # The cast to unsigned long works around a bug in the HP C Compiler
6645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647 # This bug is HP SR number 8606223364.
6648 if test "$cross_compiling" = yes; then
6649 # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6712 grep -v '^ *+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_hi=$ac_mid; break
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_lo=`expr $ac_mid + 1`
6736 if test $ac_lo -le $ac_mid; then
6740 ac_mid=`expr 2 '*' $ac_mid + 1`
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_lo=$ac_mid; break
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6838 ac_mid=`expr 2 '*' $ac_mid`
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6875 grep -v '^ *+' conftest.er1 >conftest.err
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_lo=`expr '(' $ac_mid ')' + 1`
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 ?*) ac_cv_sizeof___int64=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910 { (exit 1); exit 1; }; }; } ;;
6913 if test "$cross_compiling" = yes; then
6914 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920 { (exit 1); exit 1; }; }; }
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6937 FILE *f = fopen ("conftest.val", "w");
6940 if (((long) (sizeof (__int64))) < 0)
6942 long i = longval ();
6943 if (i != ((long) (sizeof (__int64))))
6945 fprintf (f, "%ld\n", i);
6949 unsigned long i = ulongval ();
6950 if (i != ((long) (sizeof (__int64))))
6952 fprintf (f, "%lu\n", i);
6954 exit (ferror (f) || fclose (f) != 0);
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_sizeof___int64=`cat conftest.val`
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984 { (exit 1); exit 1; }; }; }
6986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6991 ac_cv_sizeof___int64=0
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h <<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
7008 # Check $CC warning features (if it's GCC).
7009 # We want to use -pedantic, but we don't want warnings about
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7016 save_CFLAGS="$CFLAGS"
7017 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
7018 -Wmissing-prototypes -Wcast-qual; do
7019 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7021 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7022 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7023 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_acx_Woption=yes"
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 eval "$as_acx_Woption=no"
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7076 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7077 loose_warn="$loose_warn${loose_warn:+ }$option"
7081 CFLAGS="$save_CFLAGS"
7084 save_CFLAGS="$CFLAGS"
7085 for option in -Wold-style-definition -Wc++-compat \
7086 -Wmissing-format-attribute; do
7087 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7089 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7090 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7091 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 eval "$as_acx_Woption=yes"
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 eval "$as_acx_Woption=no"
7139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7144 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7145 strict_warn="$strict_warn${strict_warn:+ }$option"
7149 CFLAGS="$save_CFLAGS"
7151 if test "$GCC" = yes; then
7152 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7153 -Wno-overlength-strings" >&5
7154 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7155 -Wno-overlength-strings... $ECHO_C" >&6
7156 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 save_CFLAGS="$CFLAGS"
7160 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7161 -Wno-overlength-strings"
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207 CFLAGS="$save_CFLAGS"
7209 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7210 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7211 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7212 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7213 -Wno-overlength-strings"
7220 # Check whether --enable-werror-always or --disable-werror-always was given.
7221 if test "${enable_werror_always+set}" = set; then
7222 enableval="$enable_werror_always"
7225 enable_werror_always=no
7227 if test $enable_werror_always = yes; then
7228 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7234 # The above macros do nothing if the compiler is not GCC. However, the
7235 # Makefile has more goo to add other flags, so this variabl is used to
7236 # enables warnings only for GCC.
7238 if test "x$GCC" = "xyes"; then
7239 warn_cflags='$(GCC_WARN_CFLAGS)'
7243 # Enable expensive internal checks
7245 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7249 # Check whether --enable-checking or --disable-checking was given.
7250 if test "${enable_checking+set}" = set; then
7251 enableval="$enable_checking"
7252 ac_checking_flags="${enableval}"
7255 # Determine the default checks.
7256 if test x$is_release = x ; then
7257 ac_checking_flags=yes
7259 ac_checking_flags=release
7262 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7263 for check in release $ac_checking_flags
7266 # these set all the flags to specific states
7267 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7268 ac_fold_checking= ; ac_gc_checking=1 ;
7269 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7270 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7271 ac_tree_checking=1 ; ac_valgrind_checking= ;
7272 ac_types_checking=1 ;;
7273 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7274 ac_fold_checking= ; ac_gc_checking= ;
7275 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7276 ac_rtlflag_checking= ; ac_runtime_checking= ;
7277 ac_tree_checking= ; ac_valgrind_checking= ;
7278 ac_types_checking= ;;
7279 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7280 ac_fold_checking=1 ; ac_gc_checking=1 ;
7281 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7282 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7283 ac_tree_checking=1 ; ac_valgrind_checking= ;
7284 ac_types_checking=1 ;;
7285 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7286 ac_fold_checking= ; ac_gc_checking= ;
7287 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7288 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7289 ac_tree_checking= ; ac_valgrind_checking= ;
7290 ac_types_checking= ;;
7291 # these enable particular checks
7292 assert) ac_assert_checking=1 ;;
7293 df) ac_df_checking=1 ;;
7294 fold) ac_fold_checking=1 ;;
7295 gc) ac_gc_checking=1 ;;
7296 gcac) ac_gc_always_collect=1 ;;
7297 gimple) ac_gimple_checking=1 ;;
7298 misc) ac_checking=1 ;;
7299 rtl) ac_rtl_checking=1 ;;
7300 rtlflag) ac_rtlflag_checking=1 ;;
7301 runtime) ac_runtime_checking=1 ;;
7302 tree) ac_tree_checking=1 ;;
7303 types) ac_types_checking=1 ;;
7304 valgrind) ac_valgrind_checking=1 ;;
7305 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7306 echo "$as_me: error: unknown check category $check" >&2;}
7307 { (exit 1); exit 1; }; } ;;
7313 if test x$ac_checking != x ; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define ENABLE_CHECKING 1
7319 nocommon_flag=-fno-common
7322 if test x$ac_df_checking != x ; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define ENABLE_DF_CHECKING 1
7329 if test x$ac_assert_checking != x ; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define ENABLE_ASSERT_CHECKING 1
7336 if test x$ac_gimple_checking != x ; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define ENABLE_GIMPLE_CHECKING 1
7344 if test x$ac_runtime_checking != x ; then
7346 cat >>confdefs.h <<\_ACEOF
7347 #define ENABLE_RUNTIME_CHECKING 1
7351 if test x$ac_tree_checking != x ; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define ENABLE_TREE_CHECKING 1
7357 TREEBROWSER=tree-browser.o
7359 if test x$ac_types_checking != x ; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define ENABLE_TYPES_CHECKING 1
7367 if test x$ac_rtl_checking != x ; then
7369 cat >>confdefs.h <<\_ACEOF
7370 #define ENABLE_RTL_CHECKING 1
7374 if test x$ac_rtlflag_checking != x ; then
7376 cat >>confdefs.h <<\_ACEOF
7377 #define ENABLE_RTL_FLAG_CHECKING 1
7381 if test x$ac_gc_checking != x ; then
7383 cat >>confdefs.h <<\_ACEOF
7384 #define ENABLE_GC_CHECKING 1
7388 if test x$ac_gc_always_collect != x ; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define ENABLE_GC_ALWAYS_COLLECT 1
7395 if test x$ac_fold_checking != x ; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define ENABLE_FOLD_CHECKING 1
7402 valgrind_path_defines=
7405 if test "${ac_cv_header_valgrind_h+set}" = set; then
7406 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7407 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7408 if test "${ac_cv_header_valgrind_h+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7412 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7414 # Is the header compilable?
7415 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7416 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7424 #include <valgrind.h>
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest.$ac_objext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_header_compiler=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_header_compiler=no
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7461 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <valgrind.h>
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } >/dev/null; then
7478 if test -s conftest.err; then
7479 ac_cpp_err=$ac_c_preproc_warn_flag
7480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7487 if test -z "$ac_cpp_err"; then
7488 ac_header_preproc=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_header_preproc=no
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7499 # So? What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7502 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7506 ac_header_preproc=yes
7509 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7523 ## ------------------------------------------ ##
7524 ## Report this to the AC_PACKAGE_NAME lists. ##
7525 ## ------------------------------------------ ##
7528 sed "s/^/$as_me: WARNING: /" >&2
7531 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7532 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7533 if test "${ac_cv_header_valgrind_h+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 ac_cv_header_valgrind_h=$ac_header_preproc
7538 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7539 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7542 if test $ac_cv_header_valgrind_h = yes; then
7550 if test x$ac_valgrind_checking != x ; then
7551 # It is certainly possible that there's valgrind but no valgrind.h.
7552 # GCC relies on making annotations so we must have both.
7553 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7554 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7555 cat >conftest.$ac_ext <<_ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 #include <valgrind/memcheck.h>
7562 #ifndef VALGRIND_DISCARD
7563 #error VALGRIND_DISCARD not defined
7566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } >/dev/null; then
7574 if test -s conftest.err; then
7575 ac_cpp_err=$ac_c_preproc_warn_flag
7576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7583 if test -z "$ac_cpp_err"; then
7584 gcc_cv_header_valgrind_memcheck_h=yes
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 gcc_cv_header_valgrind_memcheck_h=no
7591 rm -f conftest.err conftest.$ac_ext
7592 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7593 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7594 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7595 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <memcheck.h>
7603 #ifndef VALGRIND_DISCARD
7604 #error VALGRIND_DISCARD not defined
7607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } >/dev/null; then
7615 if test -s conftest.err; then
7616 ac_cpp_err=$ac_c_preproc_warn_flag
7617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7624 if test -z "$ac_cpp_err"; then
7625 gcc_cv_header_memcheck_h=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 gcc_cv_header_memcheck_h=no
7632 rm -f conftest.err conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7634 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7636 # Prepare PATH_SEPARATOR.
7637 # The user is always right.
7638 if test "${PATH_SEPARATOR+set}" != set; then
7639 echo "#! /bin/sh" >conf$$.sh
7640 echo "exit 0" >>conf$$.sh
7642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7650 # Find out how to test for executable files. Don't use a zero-byte file,
7651 # as systems may use methods other than mode bits to determine executability.
7652 cat >conf$$.file <<_ASEOF
7656 chmod +x conf$$.file
7657 if test -x conf$$.file >/dev/null 2>&1; then
7658 ac_executable_p="test -x"
7660 ac_executable_p="test -f"
7664 # Extract the first word of "valgrind", so it can be a program name with args.
7665 set dummy valgrind; ac_word=$2
7666 echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7668 if test "${ac_cv_path_valgrind_path+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 case "$valgrind_path" in
7673 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7676 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7677 for ac_dir in $PATH; do
7679 test -z "$ac_dir" && ac_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7682 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7683 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7693 valgrind_path="$ac_cv_path_valgrind_path"
7694 if test -n "$valgrind_path"; then
7695 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7696 echo "${ECHO_T}$valgrind_path" >&6
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7702 if test "x$valgrind_path" = "x" \
7703 || (test $have_valgrind_h = no \
7704 && test $gcc_cv_header_memcheck_h = no \
7705 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7706 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7707 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7708 { (exit 1); exit 1; }; }
7710 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7711 valgrind_command="$valgrind_path -q"
7713 cat >>confdefs.h <<\_ACEOF
7714 #define ENABLE_VALGRIND_CHECKING 1
7717 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_VALGRIND_MEMCHECK_H 1
7724 if test $gcc_cv_header_memcheck_h = yes; then
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_MEMCHECK_H 1
7735 # Enable code coverage collection
7736 # Check whether --enable-coverage or --disable-coverage was given.
7737 if test "${enable_coverage+set}" = set; then
7738 enableval="$enable_coverage"
7739 case "${enableval}" in
7741 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7744 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7747 # a.k.a. --disable-coverage
7751 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7752 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7753 { (exit 1); exit 1; }; }
7761 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7762 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7763 enableval="$enable_gather_detailed_mem_stats"
7766 enable_gather_detailed_mem_stats=no
7768 if test x$enable_gather_detailed_mem_stats = xyes ; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define GATHER_STATISTICS 1
7776 # -------------------------------
7777 # Miscenalleous configure options
7778 # -------------------------------
7782 # Check whether --with-stabs or --without-stabs was given.
7783 if test "${with_stabs+set}" = set; then
7784 withval="$with_stabs"
7790 # Determine whether or not multilibs are enabled.
7791 # Check whether --enable-multilib or --disable-multilib was given.
7792 if test "${enable_multilib+set}" = set; then
7793 enableval="$enable_multilib"
7800 # Enable __cxa_atexit for C++.
7801 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7802 if test "${enable___cxa_atexit+set}" = set; then
7803 enableval="$enable___cxa_atexit"
7807 # Enable C extension for decimal float if target supports it.
7808 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7809 if test "${enable_decimal_float+set}" = set; then
7810 enableval="$enable_decimal_float"
7812 case $enable_decimal_float in
7813 yes | no | bid | dpd) ;;
7814 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7815 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7816 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7817 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7818 { (exit 1); exit 1; }; } ;;
7824 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7825 enable_decimal_float=yes
7828 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7829 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7830 enable_decimal_float=no
7836 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7838 cat >>confdefs.h <<_ACEOF
7839 #define ENABLE_DECIMAL_FLOAT $dfp
7843 # x86's use BID format instead of DPD
7844 case x$enable_decimal_float in
7847 i?86*-*-linux* | x86_64*-*-linux*)
7848 enable_decimal_float=bid
7851 enable_decimal_float=dpd
7856 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7857 # dependency on libdecnumber.
7858 enable_decimal_float=dpd
7863 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7865 cat >>confdefs.h <<_ACEOF
7866 #define ENABLE_DECIMAL_BID_FORMAT $bid
7870 # Enable C extension for fixed-point arithmetic.
7871 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7872 if test "${enable_fixed_point+set}" = set; then
7873 enableval="$enable_fixed_point"
7882 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7883 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7884 enable_fixed_point=no
7887 enable_fixed_point=yes
7892 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7893 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7894 enable_fixed_point=no
7901 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7903 cat >>confdefs.h <<_ACEOF
7904 #define ENABLE_FIXED_POINT $fixedpoint
7909 # Pass with no value to take the default
7910 # Pass with a value to specify a thread package
7911 # Check whether --enable-threads or --disable-threads was given.
7912 if test "${enable_threads+set}" = set; then
7913 enableval="$enable_threads"
7919 # Check whether --enable-tls or --disable-tls was given.
7920 if test "${enable_tls+set}" = set; then
7921 enableval="$enable_tls"
7925 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7926 Valid choices are 'yes' and 'no'." >&5
7927 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7928 Valid choices are 'yes' and 'no'." >&2;}
7929 { (exit 1); exit 1; }; } ;;
7936 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7937 if test "${enable_objc_gc+set}" = set; then
7938 enableval="$enable_objc_gc"
7939 if test x$enable_objc_gc = xno; then
7949 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7950 if test "${with_dwarf2+set}" = set; then
7951 withval="$with_dwarf2"
7952 dwarf2="$with_dwarf2"
7957 # Check whether --enable-shared or --disable-shared was given.
7958 if test "${enable_shared+set}" = set; then
7959 enableval="$enable_shared"
7961 case $enable_shared in
7965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7966 for pkg in $enableval; do
7967 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7981 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7982 if test "${with_build_sysroot+set}" = set; then
7983 withval="$with_build_sysroot"
7988 # Check whether --with-sysroot or --without-sysroot was given.
7989 if test "${with_sysroot+set}" = set; then
7990 withval="$with_sysroot"
7992 case ${with_sysroot} in
7993 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7994 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7997 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7998 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8000 if test "x$prefix" = xNONE; then
8001 test_prefix=/usr/local
8005 if test "x$exec_prefix" = xNONE; then
8006 test_exec_prefix=$test_prefix
8008 test_exec_prefix=$exec_prefix
8010 case ${TARGET_SYSTEM_ROOT} in
8011 "${test_prefix}"|"${test_prefix}/"*|\
8012 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8013 '${prefix}'|'${prefix}/'*|\
8014 '${exec_prefix}'|'${exec_prefix}/'*)
8015 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8016 TARGET_SYSTEM_ROOT_DEFINE="$t"
8023 TARGET_SYSTEM_ROOT_DEFINE=
8024 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8031 # Build with intermodule optimisations
8032 # Check whether --enable-intermodule or --disable-intermodule was given.
8033 if test "${enable_intermodule+set}" = set; then
8034 enableval="$enable_intermodule"
8035 case ${enable_intermodule} in
8036 yes) onestep="-onestep";;
8046 # Check whether --with-pkgversion or --without-pkgversion was given.
8047 if test "${with_pkgversion+set}" = set; then
8048 withval="$with_pkgversion"
8050 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8051 echo "$as_me: error: package version not specified" >&2;}
8052 { (exit 1); exit 1; }; } ;;
8054 *) PKGVERSION="($withval) " ;;
8064 # Check whether --with-bugurl or --without-bugurl was given.
8065 if test "${with_bugurl+set}" = set; then
8066 withval="$with_bugurl"
8068 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8069 echo "$as_me: error: bug URL not specified" >&2;}
8070 { (exit 1); exit 1; }; } ;;
8073 *) BUGURL="$withval"
8077 BUGURL="http://gcc.gnu.org/bugs.html"
8086 REPORT_BUGS_TO="<$BUGURL>"
8087 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8094 # Sanity check enable_languages in case someone does not run the toplevel
8095 # configure # script.
8096 # Check whether --enable-languages or --disable-languages was given.
8097 if test "${enable_languages+set}" = set; then
8098 enableval="$enable_languages"
8099 case ,${enable_languages}, in
8101 # go safe -- we cannot be much sure without the toplevel
8103 # analysis of which target libs are present and usable
8107 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8108 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8109 { (exit 1); exit 1; }; }
8114 enable_languages=c,${enable_languages}
8121 # Used by documentation targets
8126 # -------------------------
8127 # Checks for other programs
8128 # -------------------------
8130 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8131 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8132 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8133 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.make <<\_ACEOF
8138 @echo 'ac_maketemp="$(MAKE)"'
8140 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8141 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8142 if test -n "$ac_maketemp"; then
8143 eval ac_cv_prog_make_${ac_make}_set=yes
8145 eval ac_cv_prog_make_${ac_make}_set=no
8149 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151 echo "${ECHO_T}yes" >&6
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156 SET_MAKE="MAKE=${MAKE-make}"
8160 # Find some useful tools
8161 for ac_prog in gawk mawk nawk awk
8163 # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy $ac_prog; ac_word=$2
8165 echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8167 if test "${ac_cv_prog_AWK+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 if test -n "$AWK"; then
8171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_AWK="$ac_prog"
8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 if test -n "$AWK"; then
8191 echo "$as_me:$LINENO: result: $AWK" >&5
8192 echo "${ECHO_T}$AWK" >&6
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8198 test -n "$AWK" && break
8201 # We need awk to create options.c and options.h.
8202 # Bail out if it's missing.
8204 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8205 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8206 { (exit 1); exit 1; }; } ;;
8209 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8211 if test "${gcc_cv_prog_LN_S+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 rm -f conftestdata_t
8215 echo >conftestdata_f
8216 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8218 gcc_cv_prog_LN_S="ln -s"
8220 if ln conftestdata_f conftestdata_t 2>/dev/null
8224 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8226 gcc_cv_prog_LN_S="cp -p"
8232 rm -f conftestdata_f conftestdata_t
8235 LN_S="$gcc_cv_prog_LN_S"
8236 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238 echo "${ECHO_T}yes" >&6
8240 if test "$gcc_cv_prog_LN_S" = "ln"; then
8241 echo "$as_me:$LINENO: result: no, using ln" >&5
8242 echo "${ECHO_T}no, using ln" >&6
8244 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8245 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8249 echo "$as_me:$LINENO: checking whether ln works" >&5
8250 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8251 if test "${acx_cv_prog_LN+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 rm -f conftestdata_t
8255 echo >conftestdata_f
8256 if ln conftestdata_f conftestdata_t 2>/dev/null
8262 rm -f conftestdata_f conftestdata_t
8265 if test $acx_cv_prog_LN = no; then
8267 echo "$as_me:$LINENO: result: no, using $LN" >&5
8268 echo "${ECHO_T}no, using $LN" >&6
8270 LN="$acx_cv_prog_LN"
8271 echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6
8275 if test -n "$ac_tool_prefix"; then
8276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_RANLIB+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 if test -n "$RANLIB"; then
8284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 RANLIB=$ac_cv_prog_RANLIB
8303 if test -n "$RANLIB"; then
8304 echo "$as_me:$LINENO: result: $RANLIB" >&5
8305 echo "${ECHO_T}$RANLIB" >&6
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8312 if test -z "$ac_cv_prog_RANLIB"; then
8313 ac_ct_RANLIB=$RANLIB
8314 # Extract the first word of "ranlib", so it can be a program name with args.
8315 set dummy ranlib; ac_word=$2
8316 echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 if test -n "$ac_ct_RANLIB"; then
8322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_ac_ct_RANLIB="ranlib"
8332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8342 if test -n "$ac_ct_RANLIB"; then
8343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8344 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8346 echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8350 RANLIB=$ac_ct_RANLIB
8352 RANLIB="$ac_cv_prog_RANLIB"
8357 # By default, the Darwin ranlib will not treat common symbols as
8358 # definitions when building the archive table of contents. Other
8359 # ranlibs do that; pass an option to the Darwin ranlib that makes
8360 # it behave similarly.
8368 # Find a good install program. We prefer a C program (faster),
8369 # so one script is as good as another. But avoid the broken or
8370 # incompatible versions:
8371 # SysV /etc/install, /usr/sbin/install
8372 # SunOS /usr/etc/install
8373 # IRIX /sbin/install
8375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8377 # ./install, which can be erroneously created by make from ./install.sh.
8378 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8379 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8380 if test -z "$INSTALL"; then
8381 if test "${ac_cv_path_install+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8385 for ac_dir in $PATH; do
8386 # Account for people who put trailing slashes in PATH elements.
8388 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8390 # OSF1 and SCO ODT 3.0 have their own names for install.
8391 for ac_prog in ginstall scoinst install; do
8392 if test -f $ac_dir/$ac_prog; then
8393 if test $ac_prog = install &&
8394 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8395 # AIX install. It has an incompatible calling convention.
8396 # OSF/1 installbsd also uses dspmsg, but is usable.
8399 ac_cv_path_install="$ac_dir/$ac_prog -c"
8410 if test "${ac_cv_path_install+set}" = set; then
8411 INSTALL="$ac_cv_path_install"
8413 # As a last resort, use the slow shell script. We don't cache a
8414 # path for INSTALL within a source directory, because that will
8415 # break other packages using the cache if that directory is
8416 # removed, or if the path is relative.
8417 INSTALL="$ac_install_sh"
8420 echo "$as_me:$LINENO: result: $INSTALL" >&5
8421 echo "${ECHO_T}$INSTALL" >&6
8423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8424 # It thinks the first close brace ends the variable substitution.
8425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8430 # See if cmp has --ignore-initial.
8431 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8432 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8433 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 gcc_cv_prog_cmp_skip=slowcompare
8439 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8440 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8443 gcc_cv_prog_cmp_skip=gnucompare
8446 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8447 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8448 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8451 gcc_cv_prog_cmp_skip=fastcompare
8458 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8459 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8460 make_compare_target=$gcc_cv_prog_cmp_skip
8464 # See if we have the mktemp command.
8465 # Extract the first word of "mktemp", so it can be a program name with args.
8466 set dummy mktemp; ac_word=$2
8467 echo "$as_me:$LINENO: checking for $ac_word" >&5
8468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8469 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 if test -n "$have_mktemp_command"; then
8473 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_have_mktemp_command="yes"
8483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8492 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8493 if test -n "$have_mktemp_command"; then
8494 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8495 echo "${ECHO_T}$have_mktemp_command" >&6
8497 echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8502 # See if makeinfo has been installed and is modern enough
8503 # that we can use it.
8505 # Extract the first word of "makeinfo", so it can be a program name with args.
8506 set dummy makeinfo; ac_word=$2
8507 echo "$as_me:$LINENO: checking for $ac_word" >&5
8508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8509 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 if test -n "$MAKEINFO"; then
8513 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 test -z "$as_dir" && as_dir=.
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522 ac_cv_prog_MAKEINFO="makeinfo"
8523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 MAKEINFO=$ac_cv_prog_MAKEINFO
8532 if test -n "$MAKEINFO"; then
8533 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8534 echo "${ECHO_T}$MAKEINFO" >&6
8536 echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6
8540 if test -n "$MAKEINFO"; then
8541 # Found it, now check the version.
8542 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8543 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8544 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8548 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8550 case $ac_prog_version in
8551 '') gcc_cv_prog_makeinfo_modern=no;;
8552 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8553 *) gcc_cv_prog_makeinfo_modern=no;;
8557 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8558 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8560 gcc_cv_prog_makeinfo_modern=no
8562 if test $gcc_cv_prog_makeinfo_modern = no; then
8563 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8566 if test $gcc_cv_prog_makeinfo_modern = no; then
8567 { echo "$as_me:$LINENO: WARNING:
8568 *** Makeinfo is missing or too old.
8569 *** Info documentation will not be built." >&5
8570 echo "$as_me: WARNING:
8571 *** Makeinfo is missing or too old.
8572 *** Info documentation will not be built." >&2;}
8579 # Is pod2man recent enough to regenerate manpages?
8580 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8581 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8582 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8583 echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6
8585 GENERATED_MANPAGES=generated-manpages
8587 echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8593 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8598 # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8602 if test "${ac_cv_prog_FLEX+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 if test -n "$FLEX"; then
8606 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_FLEX="$ac_prog"
8616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 FLEX=$ac_cv_prog_FLEX
8625 if test -n "$FLEX"; then
8626 echo "$as_me:$LINENO: result: $FLEX" >&5
8627 echo "${ECHO_T}$FLEX" >&6
8629 echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6
8633 test -n "$FLEX" && break
8635 test -n "$FLEX" || FLEX="$MISSING flex"
8639 for ac_prog in bison
8641 # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645 if test "${ac_cv_prog_BISON+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 if test -n "$BISON"; then
8649 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658 ac_cv_prog_BISON="$ac_prog"
8659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 BISON=$ac_cv_prog_BISON
8668 if test -n "$BISON"; then
8669 echo "$as_me:$LINENO: result: $BISON" >&5
8670 echo "${ECHO_T}$BISON" >&6
8672 echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8676 test -n "$BISON" && break
8678 test -n "$BISON" || BISON="$MISSING bison"
8681 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8682 # check for build == host before using them.
8685 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8686 && test -d ../binutils ; then
8687 NM='$(objdir)/../binutils/nm-new'
8689 # Extract the first word of "nm", so it can be a program name with args.
8690 set dummy nm; ac_word=$2
8691 echo "$as_me:$LINENO: checking for $ac_word" >&5
8692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693 if test "${ac_cv_prog_NM+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 if test -n "$NM"; then
8697 ac_cv_prog_NM="$NM" # Let the user override the test.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8717 if test -n "$NM"; then
8718 echo "$as_me:$LINENO: result: $NM" >&5
8719 echo "${ECHO_T}$NM" >&6
8721 echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6
8728 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8729 && test -d ../binutils ; then
8730 AR='$(objdir)/../binutils/ar'
8732 # Extract the first word of "ar", so it can be a program name with args.
8733 set dummy ar; ac_word=$2
8734 echo "$as_me:$LINENO: checking for $ac_word" >&5
8735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736 if test "${ac_cv_prog_AR+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 if test -n "$AR"; then
8740 ac_cv_prog_AR="$AR" # Let the user override the test.
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8760 if test -n "$AR"; then
8761 echo "$as_me:$LINENO: result: $AR" >&5
8762 echo "${ECHO_T}$AR" >&6
8764 echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8771 # --------------------
8772 # Checks for C headers
8773 # --------------------
8775 # Need to reject headers which give warnings, so that the -Werror bootstrap
8776 # works later. *sigh* This needs to come before all header checks.
8778 ac_c_preproc_warn_flag=yes
8780 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8782 if test "${ac_cv_header_stdc+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806 (eval $ac_compile) 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest.$ac_objext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_header_stdc=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_header_stdc=no
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8835 if test $ac_cv_header_stdc = yes; then
8836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847 $EGREP "memchr" >/dev/null 2>&1; then
8850 ac_cv_header_stdc=no
8856 if test $ac_cv_header_stdc = yes; then
8857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8868 $EGREP "free" >/dev/null 2>&1; then
8871 ac_cv_header_stdc=no
8877 if test $ac_cv_header_stdc = yes; then
8878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8879 if test "$cross_compiling" = yes; then
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 #if ((' ' & 0x0FF) == 0x020)
8890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8893 # define ISLOWER(c) \
8894 (('a' <= (c) && (c) <= 'i') \
8895 || ('j' <= (c) && (c) <= 'r') \
8896 || ('s' <= (c) && (c) <= 'z'))
8897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8905 for (i = 0; i < 256; i++)
8906 if (XOR (islower (i), ISLOWER (i))
8907 || toupper (i) != TOUPPER (i))
8912 rm -f conftest$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914 (eval $ac_link) 2>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8925 echo "$as_me: program exited with status $ac_status" >&5
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8930 ac_cv_header_stdc=no
8932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8938 if test $ac_cv_header_stdc = yes; then
8940 cat >>confdefs.h <<\_ACEOF
8941 #define STDC_HEADERS 1
8946 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8947 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8948 if test "${ac_cv_header_time+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <sys/types.h>
8958 #include <sys/time.h>
8964 if ((struct tm *) 0)
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag"
8980 || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_header_time=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_cv_header_time=no
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9002 echo "${ECHO_T}$ac_cv_header_time" >&6
9003 if test $ac_cv_header_time = yes; then
9005 cat >>confdefs.h <<\_ACEOF
9006 #define TIME_WITH_SYS_TIME 1
9011 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9012 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9013 if test "${gcc_cv_header_string+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 #include <strings.h>
9032 rm -f conftest.$ac_objext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 (eval $ac_compile) 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest.$ac_objext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 gcc_cv_header_string=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 gcc_cv_header_string=no
9061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9063 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9064 echo "${ECHO_T}$gcc_cv_header_string" >&6
9065 if test $gcc_cv_header_string = yes; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define STRING_WITH_STRINGS 1
9073 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9074 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #include <sys/types.h>
9085 #include <sys/wait.h>
9087 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9098 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9103 rm -f conftest.$ac_objext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9105 (eval $ac_compile) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try='test -s conftest.$ac_objext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_header_sys_wait_h=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_header_sys_wait_h=no
9132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9135 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9136 if test $ac_cv_header_sys_wait_h = yes; then
9138 cat >>confdefs.h <<\_ACEOF
9139 #define HAVE_SYS_WAIT_H 1
9166 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9167 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9168 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9169 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9172 echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 #include <$ac_header>
9185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9188 grep -v '^ *+' conftest.er1 >conftest.err
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } >/dev/null; then
9193 if test -s conftest.err; then
9194 ac_cpp_err=$ac_c_preproc_warn_flag
9195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9202 if test -z "$ac_cpp_err"; then
9203 eval "$as_ac_Header=yes"
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 eval "$as_ac_Header=no"
9210 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9223 # Check for thread headers.
9224 echo "$as_me:$LINENO: checking for thread.h" >&5
9225 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9226 if test "${ac_cv_header_thread_h+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } >/dev/null; then
9245 if test -s conftest.err; then
9246 ac_cpp_err=$ac_c_preproc_warn_flag
9247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9254 if test -z "$ac_cpp_err"; then
9255 ac_cv_header_thread_h=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9260 ac_cv_header_thread_h=no
9262 rm -f conftest.err conftest.$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9265 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9266 if test $ac_cv_header_thread_h = yes; then
9272 echo "$as_me:$LINENO: checking for pthread.h" >&5
9273 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9274 if test "${ac_cv_header_pthread_h+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 cat >conftest.$ac_ext <<_ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9283 #include <pthread.h>
9285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } >/dev/null; then
9293 if test -s conftest.err; then
9294 ac_cpp_err=$ac_c_preproc_warn_flag
9295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9302 if test -z "$ac_cpp_err"; then
9303 ac_cv_header_pthread_h=yes
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 ac_cv_header_pthread_h=no
9310 rm -f conftest.err conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9313 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9314 if test $ac_cv_header_pthread_h = yes; then
9321 # These tests can't be done till we know if we have limits.h.
9322 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9323 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9324 if test "${gcc_cv_decl_char_bit+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 #ifdef HAVE_LIMITS_H
9340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9341 $EGREP "found" >/dev/null 2>&1; then
9342 gcc_cv_decl_char_bit=yes
9344 gcc_cv_decl_char_bit=no
9350 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9351 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9352 if test $gcc_cv_decl_char_bit = no; then
9353 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9354 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9355 if test "${gcc_cv_c_nbby+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 while test $i -lt 65; do
9361 cat >conftest.$ac_ext <<_ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9372 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9373 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 gcc_cv_c_nbby=$i; break
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9410 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9413 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9414 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9415 if test $gcc_cv_c_nbby = failed; then
9416 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9417 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9418 { (exit 1); exit 1; }; }
9421 cat >>confdefs.h <<_ACEOF
9422 #define CHAR_BIT $gcc_cv_c_nbby
9427 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9428 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9429 if test "${ac_cv_c_bigendian+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 # See if sys/param.h defines the BYTE_ORDER macro.
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <sys/types.h>
9440 #include <sys/param.h>
9445 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455 (eval $ac_compile) 2>conftest.er1
9457 grep -v '^ *+' conftest.er1 >conftest.err
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } &&
9462 { ac_try='test -z "$ac_c_werror_flag"
9463 || test ! -s conftest.err'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; } &&
9469 { ac_try='test -s conftest.$ac_objext'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 # It does; now see whether it defined to BIG_ENDIAN or not.
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <sys/types.h>
9483 #include <sys/param.h>
9488 #if BYTE_ORDER != BIG_ENDIAN
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_c_bigendian=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_c_bigendian=no
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 # It does not; compile a test program.
9531 if test "$cross_compiling" = yes; then
9532 # try to guess the endianness by grepping values into an object file
9533 ac_cv_c_bigendian=unknown
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9541 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9542 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9543 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9544 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9545 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9549 _ascii (); _ebcdic ();
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556 (eval $ac_compile) 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9577 ac_cv_c_bigendian=yes
9579 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9580 if test "$ac_cv_c_bigendian" = unknown; then
9581 ac_cv_c_bigendian=no
9583 # finding both strings is unlikely to happen, but who knows?
9584 ac_cv_c_bigendian=unknown
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9603 /* Are we little or big endian? From Harbison&Steele. */
9607 char c[sizeof (long)];
9610 exit (u.c[sizeof (long) - 1] == 1);
9613 rm -f conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_c_bigendian=no
9626 echo "$as_me: program exited with status $ac_status" >&5
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_cv_c_bigendian=yes
9633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9640 case $ac_cv_c_bigendian in
9643 cat >>confdefs.h <<\_ACEOF
9644 #define WORDS_BIGENDIAN 1
9650 { { echo "$as_me:$LINENO: error: unknown endianness
9651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9652 echo "$as_me: error: unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9654 { (exit 1); exit 1; }; } ;;
9663 # These libraries may be used by collect2.
9664 # We may need a special search path to get them linked.
9665 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9666 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9667 if test "${gcc_cv_collect2_libs+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 for libs in '' -lld -lmld \
9672 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9673 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9683 /* Override any gcc2 internal prototype to avoid an error. */
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 gcc_cv_collect2_libs="$libs"; break
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9730 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9732 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9733 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9734 case $gcc_cv_collect2_libs in
9736 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9740 # When building Ada code on Alpha, we need exc_resume which is usually in
9741 # -lexc. So test for it.
9744 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9745 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9746 if test "${ac_cv_search_exc_resume+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_func_search_save_LIBS=$LIBS
9750 ac_cv_search_exc_resume=no
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_search_exc_resume="none required"
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9801 rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 if test "$ac_cv_search_exc_resume" = no; then
9804 for ac_lib in exc; do
9805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9813 /* Override any gcc2 internal prototype to avoid an error. */
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag"
9838 || test ! -s conftest.err'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_search_exc_resume="-l$ac_lib"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9857 rm -f conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_func_search_save_LIBS
9863 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9864 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9865 if test "$ac_cv_search_exc_resume" != no; then
9866 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9874 # Some systems put ldexp and frexp in libm instead of libc; assume
9875 # they're both in the same place. jcf-dump needs them.
9878 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9879 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9880 if test "${ac_cv_search_ldexp+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 ac_func_search_save_LIBS=$LIBS
9884 ac_cv_search_ldexp=no
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9892 /* Override any gcc2 internal prototype to avoid an error. */
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_search_ldexp="none required"
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9935 rm -f conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937 if test "$ac_cv_search_ldexp" = no; then
9939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_search_ldexp="-l$ac_lib"
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9991 rm -f conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_func_search_save_LIBS
9997 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9998 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9999 if test "$ac_cv_search_ldexp" != no; then
10000 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10008 # Use <inttypes.h> only if it exists,
10009 # doesn't clash with <sys/types.h>, and declares intmax_t.
10010 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10011 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10012 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 #include <sys/types.h>
10022 #include <inttypes.h>
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 gcc_cv_header_inttypes_h=yes
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 gcc_cv_header_inttypes_h=no
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10063 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10064 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10065 if test $gcc_cv_header_inttypes_h = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_INTTYPES_H 1
10108 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10109 sysconf strsignal getrusage nl_langinfo \
10110 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10111 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10114 echo "$as_me:$LINENO: checking for $ac_func" >&5
10115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_var+set}\" = set"; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define $ac_func innocuous_$ac_func
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char $ac_func (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10135 # include <limits.h>
10137 # include <assert.h>
10142 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10150 /* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10156 char (*f) () = $ac_func;
10165 return f != $ac_func;
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 eval "$as_ac_var=yes"
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 eval "$as_ac_var=no"
10199 rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10204 if test `eval echo '${'$as_ac_var'}'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10213 if test x$ac_cv_func_mbstowcs = xyes; then
10214 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10215 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10216 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 if test "$cross_compiling" = yes; then
10220 gcc_cv_func_mbstowcs_works=yes
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 #include <stdlib.h>
10231 mbstowcs(0, "", 0);
10235 rm -f conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237 (eval $ac_link) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 gcc_cv_func_mbstowcs_works=yes
10248 echo "$as_me: program exited with status $ac_status" >&5
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ( exit $ac_status )
10253 gcc_cv_func_mbstowcs_works=no
10255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10258 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10259 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10260 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_WORKING_MBSTOWCS 1
10269 echo "$as_me:$LINENO: checking for ssize_t" >&5
10270 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10271 if test "${ac_cv_type_ssize_t+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10286 if (sizeof (ssize_t))
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_cv_type_ssize_t=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_cv_type_ssize_t=no
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10324 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10325 if test $ac_cv_type_ssize_t = yes; then
10329 cat >>confdefs.h <<_ACEOF
10330 #define ssize_t int
10335 echo "$as_me:$LINENO: checking for caddr_t" >&5
10336 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10337 if test "${ac_cv_type_caddr_t+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346 $ac_includes_default
10352 if (sizeof (caddr_t))
10358 rm -f conftest.$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag"
10368 || test ! -s conftest.err'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest.$ac_objext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_type_caddr_t=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_type_caddr_t=no
10387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10389 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10390 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10391 if test $ac_cv_type_caddr_t = yes; then
10395 cat >>confdefs.h <<_ACEOF
10396 #define caddr_t char *
10402 # Try to determine the array type of the second argument of getgroups
10403 # for the target system (int or gid_t).
10404 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10405 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10406 if test "${ac_cv_type_uid_t+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415 #include <sys/types.h>
10418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10419 $EGREP "uid_t" >/dev/null 2>&1; then
10420 ac_cv_type_uid_t=yes
10422 ac_cv_type_uid_t=no
10427 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10428 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10429 if test $ac_cv_type_uid_t = no; then
10431 cat >>confdefs.h <<\_ACEOF
10436 cat >>confdefs.h <<\_ACEOF
10442 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10443 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10444 if test "${ac_cv_type_getgroups+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 if test "$cross_compiling" = yes; then
10448 ac_cv_type_getgroups=cross
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 /* Thanks to Mike Rendell for this test. */
10457 #include <sys/types.h>
10460 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10465 gid_t gidset[NGID];
10467 union { gid_t gval; long lval; } val;
10470 for (i = 0; i < NGID; i++)
10471 gidset[i] = val.gval;
10472 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10474 /* Exit non-zero if getgroups seems to require an array of ints. This
10475 happens when gid_t is short but getgroups modifies an array of ints. */
10476 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10479 rm -f conftest$ac_exeext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481 (eval $ac_link) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_type_getgroups=gid_t
10492 echo "$as_me: program exited with status $ac_status" >&5
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 ( exit $ac_status )
10497 ac_cv_type_getgroups=int
10499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10501 if test $ac_cv_type_getgroups = cross; then
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <unistd.h>
10511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10512 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10513 ac_cv_type_getgroups=gid_t
10515 ac_cv_type_getgroups=int
10521 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10522 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10524 cat >>confdefs.h <<_ACEOF
10525 #define GETGROUPS_T $ac_cv_type_getgroups
10529 if test "${target}" = "${build}"; then
10530 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10532 case "${target}" in
10533 # This condition may need some tweaking. It should include all
10534 # targets where the array type of the second argument of getgroups
10535 # is int and the type of gid_t is not equivalent to int.
10536 *-*-sunos* | *-*-ultrix*)
10537 TARGET_GETGROUPS_T=int
10540 TARGET_GETGROUPS_T=gid_t
10547 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10548 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10549 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 #include <sys/mman.h>
10560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } >/dev/null; then
10568 if test -s conftest.err; then
10569 ac_cpp_err=$ac_c_preproc_warn_flag
10570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10577 if test -z "$ac_cpp_err"; then
10578 ac_cv_header_sys_mman_h=yes
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ac_cv_header_sys_mman_h=no
10585 rm -f conftest.err conftest.$ac_ext
10587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10588 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10589 if test $ac_cv_header_sys_mman_h = yes; then
10590 gcc_header_sys_mman_h=yes
10592 gcc_header_sys_mman_h=no
10595 echo "$as_me:$LINENO: checking for mmap" >&5
10596 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10597 if test "${ac_cv_func_mmap+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608 #define mmap innocuous_mmap
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char mmap (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10616 # include <limits.h>
10618 # include <assert.h>
10623 /* Override any gcc2 internal prototype to avoid an error. */
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10631 /* The GNU C library defines this for functions which it implements
10632 to always fail with ENOSYS. Some functions are actually named
10633 something starting with __ and the normal name is an alias. */
10634 #if defined (__stub_mmap) || defined (__stub___mmap)
10637 char (*f) () = mmap;
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_func_mmap=yes
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10680 rm -f conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10684 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10685 if test $ac_cv_func_mmap = yes; then
10691 if test "$gcc_header_sys_mman_h" != yes \
10692 || test "$gcc_func_mmap" != yes; then
10693 gcc_cv_func_mmap_file=no
10694 gcc_cv_func_mmap_dev_zero=no
10695 gcc_cv_func_mmap_anon=no
10697 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10698 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10699 if test "${gcc_cv_func_mmap_file+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 # Add a system to this blacklist if
10703 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10704 # memory area containing the same data that you'd get if you applied
10705 # read() to the same fd. The only system known to have a problem here
10706 # is VMS, where text files have record structure.
10709 gcc_cv_func_mmap_file=no ;;
10711 gcc_cv_func_mmap_file=yes;;
10714 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10715 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10716 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10717 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10718 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 # Add a system to this blacklist if it has mmap() but /dev/zero
10722 # does not exist, or if mmapping /dev/zero does not give anonymous
10723 # zeroed pages with both the following properties:
10724 # 1. If you map N consecutive pages in with one call, and then
10725 # unmap any subset of those pages, the pages that were not
10726 # explicitly unmapped remain accessible.
10727 # 2. If you map two adjacent blocks of memory and then unmap them
10728 # both at once, they must both go away.
10729 # Systems known to be in this category are Windows (all variants),
10732 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10733 gcc_cv_func_mmap_dev_zero=no ;;
10735 gcc_cv_func_mmap_dev_zero=yes;;
10738 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10739 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10741 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10742 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10743 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10744 if test "${gcc_cv_decl_map_anon+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <sys/types.h>
10754 #include <sys/mman.h>
10755 #include <unistd.h>
10757 #ifndef MAP_ANONYMOUS
10758 #define MAP_ANONYMOUS MAP_ANON
10764 int n = MAP_ANONYMOUS;
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771 (eval $ac_compile) 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -z "$ac_c_werror_flag"
10779 || test ! -s conftest.err'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest.$ac_objext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 gcc_cv_decl_map_anon=yes
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10796 gcc_cv_decl_map_anon=no
10798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10801 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10803 if test $gcc_cv_decl_map_anon = no; then
10804 gcc_cv_func_mmap_anon=no
10806 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10807 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10808 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10812 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10813 # doesn't give anonymous zeroed pages with the same properties listed
10814 # above for use of /dev/zero.
10815 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10817 vms* | cygwin* | pe | mingw* | sco* | udk* )
10818 gcc_cv_func_mmap_anon=no ;;
10820 gcc_cv_func_mmap_anon=yes;;
10823 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10824 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10828 if test $gcc_cv_func_mmap_file = yes; then
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_MMAP_FILE 1
10835 if test $gcc_cv_func_mmap_dev_zero = yes; then
10837 cat >>confdefs.h <<\_ACEOF
10838 #define HAVE_MMAP_DEV_ZERO 1
10842 if test $gcc_cv_func_mmap_anon = yes; then
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_MMAP_ANON 1
10853 # Under VMS, vfork works very differently than on Unix. The standard test
10854 # won't work, and it isn't easily adaptable. It makes more sense to
10856 ac_cv_func_vfork_works=yes
10859 echo "$as_me:$LINENO: checking for pid_t" >&5
10860 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10861 if test "${ac_cv_type_pid_t+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10876 if (sizeof (pid_t))
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -z "$ac_c_werror_flag"
10892 || test ! -s conftest.err'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_type_pid_t=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_cv_type_pid_t=no
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10913 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10915 if test $ac_cv_type_pid_t = yes; then
10919 cat >>confdefs.h <<_ACEOF
10927 for ac_header in unistd.h vfork.h
10929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_header" >&5
10931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 cat >conftest.$ac_ext <<_ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10941 #include <$ac_header>
10943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } >/dev/null; then
10951 if test -s conftest.err; then
10952 ac_cpp_err=$ac_c_preproc_warn_flag
10953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10960 if test -z "$ac_cpp_err"; then
10961 eval "$as_ac_Header=yes"
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 eval "$as_ac_Header=no"
10968 rm -f conftest.err conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10982 for ac_func in fork vfork
10984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10985 echo "$as_me:$LINENO: checking for $ac_func" >&5
10986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10987 if eval "test \"\${$as_ac_var+set}\" = set"; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10998 #define $ac_func innocuous_$ac_func
11000 /* System header to define __stub macros and hopefully few prototypes,
11001 which can conflict with char $ac_func (); below.
11002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11003 <limits.h> exists even on freestanding compilers. */
11006 # include <limits.h>
11008 # include <assert.h>
11013 /* Override any gcc2 internal prototype to avoid an error. */
11018 /* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11027 char (*f) () = $ac_func;
11036 return f != $ac_func;
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest$ac_exeext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 eval "$as_ac_var=yes"
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 eval "$as_ac_var=no"
11070 rm -f conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11075 if test `eval echo '${'$as_ac_var'}'` = yes; then
11076 cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11083 if test "x$ac_cv_func_fork" = xyes; then
11084 echo "$as_me:$LINENO: checking for working fork" >&5
11085 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11086 if test "${ac_cv_func_fork_works+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 if test "$cross_compiling" = yes; then
11090 ac_cv_func_fork_works=cross
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* By Ruediger Kuhlmann. */
11094 #include <sys/types.h>
11096 # include <unistd.h>
11098 /* Some systems only have a dummy stub for fork() */
11106 rm -f conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_func_fork_works=yes
11119 echo "$as_me: program exited with status $ac_status" >&5
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ( exit $ac_status )
11124 ac_cv_func_fork_works=no
11126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11129 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11130 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11133 ac_cv_func_fork_works=$ac_cv_func_fork
11135 if test "x$ac_cv_func_fork_works" = xcross; then
11137 *-*-amigaos* | *-*-msdosdjgpp*)
11138 # Override, as these systems have only a dummy fork() stub
11139 ac_cv_func_fork_works=no
11142 ac_cv_func_fork_works=yes
11145 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11146 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11148 ac_cv_func_vfork_works=$ac_cv_func_vfork
11149 if test "x$ac_cv_func_vfork" = xyes; then
11150 echo "$as_me:$LINENO: checking for working vfork" >&5
11151 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11152 if test "${ac_cv_func_vfork_works+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 if test "$cross_compiling" = yes; then
11156 ac_cv_func_vfork_works=cross
11158 cat >conftest.$ac_ext <<_ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 /* Thanks to Paul Eggert for this test. */
11166 #include <stdlib.h>
11167 #include <sys/types.h>
11168 #include <sys/stat.h>
11169 #include <sys/wait.h>
11171 # include <unistd.h>
11174 # include <vfork.h>
11176 /* On some sparc systems, changes by the child to local and incoming
11177 argument registers are propagated back to the parent. The compiler
11178 is told about this with #include <vfork.h>, but some compilers
11179 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11180 static variable whose address is put into a register that is
11181 clobbered by the vfork. */
11184 sparc_address_test (int arg)
11186 sparc_address_test (arg) int arg;
11189 static pid_t child;
11207 pid_t parent = getpid ();
11210 sparc_address_test (0);
11215 /* Here is another test for sparc vfork register problems. This
11216 test uses lots of local variables, at least as many local
11217 variables as main has allocated so far including compiler
11218 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11219 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11220 reuse the register of parent for one of the local variables,
11221 since it will think that parent can't possibly be used any more
11222 in this routine. Assigning to the local variable will thus
11223 munge parent in the parent process. */
11225 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11226 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11227 /* Convince the compiler that p..p7 are live; otherwise, it might
11228 use the same hardware register for all 8 local variables. */
11229 if (p != p1 || p != p2 || p != p3 || p != p4
11230 || p != p5 || p != p6 || p != p7)
11233 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11234 from child file descriptors. If the child closes a descriptor
11235 before it execs or exits, this munges the parent's descriptor
11236 as well. Test for this by closing stdout in the child. */
11237 _exit(close(fileno(stdout)) != 0);
11242 while (wait(&status) != child)
11245 /* Was there some problem with vforking? */
11248 /* Did the child fail? (This shouldn't happen.) */
11251 /* Did the vfork/compiler bug occur? */
11252 || parent != getpid()
11254 /* Did the file descriptor bug occur? */
11255 || fstat(fileno(stdout), &st) != 0
11260 rm -f conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_func_vfork_works=yes
11273 echo "$as_me: program exited with status $ac_status" >&5
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ( exit $ac_status )
11278 ac_cv_func_vfork_works=no
11280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11283 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11284 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11287 if test "x$ac_cv_func_fork_works" = xcross; then
11288 ac_cv_func_vfork_works=$ac_cv_func_vfork
11289 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11290 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11293 if test "x$ac_cv_func_vfork_works" = xyes; then
11295 cat >>confdefs.h <<\_ACEOF
11296 #define HAVE_WORKING_VFORK 1
11301 cat >>confdefs.h <<\_ACEOF
11306 if test "x$ac_cv_func_fork_works" = xyes; then
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_WORKING_FORK 1
11316 if test "X$prefix" = "XNONE"; then
11317 acl_final_prefix="$ac_default_prefix"
11319 acl_final_prefix="$prefix"
11321 if test "X$exec_prefix" = "XNONE"; then
11322 acl_final_exec_prefix='${prefix}'
11324 acl_final_exec_prefix="$exec_prefix"
11326 acl_save_prefix="$prefix"
11327 prefix="$acl_final_prefix"
11328 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11329 prefix="$acl_save_prefix"
11332 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11333 if test "${with_gnu_ld+set}" = set; then
11334 withval="$with_gnu_ld"
11335 test "$withval" = no || with_gnu_ld=yes
11339 # Prepare PATH_SEPARATOR.
11340 # The user is always right.
11341 if test "${PATH_SEPARATOR+set}" != set; then
11342 echo "#! /bin/sh" >conf$$.sh
11343 echo "exit 0" >>conf$$.sh
11345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11353 if test "$GCC" = yes; then
11354 # Check if gcc -print-prog-name=ld gives a path.
11355 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11356 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11359 # gcc leaves a trailing carriage return which upsets mingw
11360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11365 # Accept absolute paths.
11366 [\\/]* | [A-Za-z]:[\\/]*)
11367 re_direlt='/[^/][^/]*/\.\./'
11368 # Canonicalize the path of ld
11369 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11370 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11371 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11373 test -z "$LD" && LD="$ac_prog"
11376 # If it fails, then pretend we aren't using GCC.
11380 # If it is relative, then search for the first ld in PATH.
11381 with_gnu_ld=unknown
11384 elif test "$with_gnu_ld" = yes; then
11385 echo "$as_me:$LINENO: checking for GNU ld" >&5
11386 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11388 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11389 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11391 if test "${acl_cv_path_LD+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 if test -z "$LD"; then
11395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11396 for ac_dir in $PATH; do
11397 test -z "$ac_dir" && ac_dir=.
11398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11399 acl_cv_path_LD="$ac_dir/$ac_prog"
11400 # Check to see if the program is GNU ld. I'd rather use --version,
11401 # but apparently some GNU ld's only accept -v.
11402 # Break only if it was the GNU/non-GNU ld that we prefer.
11403 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11404 test "$with_gnu_ld" != no && break
11406 test "$with_gnu_ld" != yes && break
11412 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11416 LD="$acl_cv_path_LD"
11417 if test -n "$LD"; then
11418 echo "$as_me:$LINENO: result: $LD" >&5
11419 echo "${ECHO_T}$LD" >&6
11421 echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6
11424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11426 { (exit 1); exit 1; }; }
11427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11429 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11433 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11434 acl_cv_prog_gnu_ld=yes
11436 acl_cv_prog_gnu_ld=no
11439 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11440 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11441 with_gnu_ld=$acl_cv_prog_gnu_ld
11445 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11446 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11447 if test "${acl_cv_rpath+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11452 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11454 rm -f ./conftest.sh
11458 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11459 echo "${ECHO_T}$acl_cv_rpath" >&6
11461 libext="$acl_cv_libext"
11462 shlibext="$acl_cv_shlibext"
11463 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11464 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11465 hardcode_direct="$acl_cv_hardcode_direct"
11466 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11467 # Check whether --enable-rpath or --disable-rpath was given.
11468 if test "${enable_rpath+set}" = set; then
11469 enableval="$enable_rpath"
11483 acl_save_prefix="$prefix"
11484 prefix="$acl_final_prefix"
11485 acl_save_exec_prefix="$exec_prefix"
11486 exec_prefix="$acl_final_exec_prefix"
11488 eval additional_includedir=\"$includedir\"
11489 eval additional_libdir=\"$libdir\"
11491 exec_prefix="$acl_save_exec_prefix"
11492 prefix="$acl_save_prefix"
11495 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11496 if test "${with_libiconv_prefix+set}" = set; then
11497 withval="$with_libiconv_prefix"
11499 if test "X$withval" = "Xno"; then
11502 if test "X$withval" = "X"; then
11504 acl_save_prefix="$prefix"
11505 prefix="$acl_final_prefix"
11506 acl_save_exec_prefix="$exec_prefix"
11507 exec_prefix="$acl_final_exec_prefix"
11509 eval additional_includedir=\"$includedir\"
11510 eval additional_libdir=\"$libdir\"
11512 exec_prefix="$acl_save_exec_prefix"
11513 prefix="$acl_save_prefix"
11516 additional_includedir="$withval/include"
11517 additional_libdir="$withval/lib"
11527 names_already_handled=
11528 names_next_round='iconv '
11529 while test -n "$names_next_round"; do
11530 names_this_round="$names_next_round"
11532 for name in $names_this_round; do
11534 for n in $names_already_handled; do
11535 if test "$n" = "$name"; then
11536 already_handled=yes
11540 if test -z "$already_handled"; then
11541 names_already_handled="$names_already_handled $name"
11542 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11543 eval value=\"\$HAVE_LIB$uppername\"
11544 if test -n "$value"; then
11545 if test "$value" = yes; then
11546 eval value=\"\$LIB$uppername\"
11547 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11548 eval value=\"\$LTLIB$uppername\"
11549 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11558 if test $use_additional = yes; then
11559 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11560 found_dir="$additional_libdir"
11561 found_so="$additional_libdir/lib$name.$shlibext"
11562 if test -f "$additional_libdir/lib$name.la"; then
11563 found_la="$additional_libdir/lib$name.la"
11566 if test -f "$additional_libdir/lib$name.$libext"; then
11567 found_dir="$additional_libdir"
11568 found_a="$additional_libdir/lib$name.$libext"
11569 if test -f "$additional_libdir/lib$name.la"; then
11570 found_la="$additional_libdir/lib$name.la"
11575 if test "X$found_dir" = "X"; then
11576 for x in $LDFLAGS $LTLIBICONV; do
11578 acl_save_prefix="$prefix"
11579 prefix="$acl_final_prefix"
11580 acl_save_exec_prefix="$exec_prefix"
11581 exec_prefix="$acl_final_exec_prefix"
11583 exec_prefix="$acl_save_exec_prefix"
11584 prefix="$acl_save_prefix"
11588 dir=`echo "X$x" | sed -e 's/^X-L//'`
11589 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11591 found_so="$dir/lib$name.$shlibext"
11592 if test -f "$dir/lib$name.la"; then
11593 found_la="$dir/lib$name.la"
11596 if test -f "$dir/lib$name.$libext"; then
11598 found_a="$dir/lib$name.$libext"
11599 if test -f "$dir/lib$name.la"; then
11600 found_la="$dir/lib$name.la"
11606 if test "X$found_dir" != "X"; then
11611 if test "X$found_dir" != "X"; then
11612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11613 if test "X$found_so" != "X"; then
11614 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11615 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11618 for x in $ltrpathdirs; do
11619 if test "X$x" = "X$found_dir"; then
11624 if test -z "$haveit"; then
11625 ltrpathdirs="$ltrpathdirs $found_dir"
11627 if test "$hardcode_direct" = yes; then
11628 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11630 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11631 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11633 for x in $rpathdirs; do
11634 if test "X$x" = "X$found_dir"; then
11639 if test -z "$haveit"; then
11640 rpathdirs="$rpathdirs $found_dir"
11644 for x in $LDFLAGS $LIBICONV; do
11646 acl_save_prefix="$prefix"
11647 prefix="$acl_final_prefix"
11648 acl_save_exec_prefix="$exec_prefix"
11649 exec_prefix="$acl_final_exec_prefix"
11651 exec_prefix="$acl_save_exec_prefix"
11652 prefix="$acl_save_prefix"
11654 if test "X$x" = "X-L$found_dir"; then
11659 if test -z "$haveit"; then
11660 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11662 if test "$hardcode_minus_L" != no; then
11663 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11665 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11671 if test "X$found_a" != "X"; then
11672 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11674 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11677 additional_includedir=
11678 case "$found_dir" in
11680 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11681 additional_includedir="$basedir/include"
11684 if test "X$additional_includedir" != "X"; then
11685 if test "X$additional_includedir" != "X/usr/include"; then
11687 if test "X$additional_includedir" = "X/usr/local/include"; then
11688 if test -n "$GCC"; then
11690 linux*) haveit=yes;;
11694 if test -z "$haveit"; then
11695 for x in $CPPFLAGS $INCICONV; do
11697 acl_save_prefix="$prefix"
11698 prefix="$acl_final_prefix"
11699 acl_save_exec_prefix="$exec_prefix"
11700 exec_prefix="$acl_final_exec_prefix"
11702 exec_prefix="$acl_save_exec_prefix"
11703 prefix="$acl_save_prefix"
11705 if test "X$x" = "X-I$additional_includedir"; then
11710 if test -z "$haveit"; then
11711 if test -d "$additional_includedir"; then
11712 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11718 if test -n "$found_la"; then
11719 save_libdir="$libdir"
11720 case "$found_la" in
11721 */* | *\\*) . "$found_la" ;;
11722 *) . "./$found_la" ;;
11724 libdir="$save_libdir"
11725 for dep in $dependency_libs; do
11728 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11729 if test "X$additional_libdir" != "X/usr/lib"; then
11731 if test "X$additional_libdir" = "X/usr/local/lib"; then
11732 if test -n "$GCC"; then
11734 linux*) haveit=yes;;
11738 if test -z "$haveit"; then
11740 for x in $LDFLAGS $LIBICONV; do
11742 acl_save_prefix="$prefix"
11743 prefix="$acl_final_prefix"
11744 acl_save_exec_prefix="$exec_prefix"
11745 exec_prefix="$acl_final_exec_prefix"
11747 exec_prefix="$acl_save_exec_prefix"
11748 prefix="$acl_save_prefix"
11750 if test "X$x" = "X-L$additional_libdir"; then
11755 if test -z "$haveit"; then
11756 if test -d "$additional_libdir"; then
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11761 for x in $LDFLAGS $LTLIBICONV; do
11763 acl_save_prefix="$prefix"
11764 prefix="$acl_final_prefix"
11765 acl_save_exec_prefix="$exec_prefix"
11766 exec_prefix="$acl_final_exec_prefix"
11768 exec_prefix="$acl_save_exec_prefix"
11769 prefix="$acl_save_prefix"
11771 if test "X$x" = "X-L$additional_libdir"; then
11776 if test -z "$haveit"; then
11777 if test -d "$additional_libdir"; then
11778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11785 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11786 if test "$enable_rpath" != no; then
11788 for x in $rpathdirs; do
11789 if test "X$x" = "X$dir"; then
11794 if test -z "$haveit"; then
11795 rpathdirs="$rpathdirs $dir"
11798 for x in $ltrpathdirs; do
11799 if test "X$x" = "X$dir"; then
11804 if test -z "$haveit"; then
11805 ltrpathdirs="$ltrpathdirs $dir"
11810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11813 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11816 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11830 if test "X$rpathdirs" != "X"; then
11831 if test -n "$hardcode_libdir_separator"; then
11833 for found_dir in $rpathdirs; do
11834 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11836 acl_save_libdir="$libdir"
11838 eval flag=\"$hardcode_libdir_flag_spec\"
11839 libdir="$acl_save_libdir"
11840 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11842 for found_dir in $rpathdirs; do
11843 acl_save_libdir="$libdir"
11844 libdir="$found_dir"
11845 eval flag=\"$hardcode_libdir_flag_spec\"
11846 libdir="$acl_save_libdir"
11847 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11851 if test "X$ltrpathdirs" != "X"; then
11852 for found_dir in $ltrpathdirs; do
11853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11863 am_save_CPPFLAGS="$CPPFLAGS"
11865 for element in $INCICONV; do
11867 for x in $CPPFLAGS; do
11869 acl_save_prefix="$prefix"
11870 prefix="$acl_final_prefix"
11871 acl_save_exec_prefix="$exec_prefix"
11872 exec_prefix="$acl_final_exec_prefix"
11874 exec_prefix="$acl_save_exec_prefix"
11875 prefix="$acl_save_prefix"
11877 if test "X$x" = "X$element"; then
11882 if test -z "$haveit"; then
11883 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11888 echo "$as_me:$LINENO: checking for iconv" >&5
11889 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11890 if test "${am_cv_func_iconv+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 am_cv_func_iconv="no, consider installing GNU libiconv"
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <stdlib.h>
11907 iconv_t cd = iconv_open("","");
11908 iconv(cd,NULL,NULL,NULL,NULL);
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_c_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 am_cv_func_iconv=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11942 rm -f conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11944 if test "$am_cv_func_iconv" != yes; then
11945 am_save_LIBS="$LIBS"
11946 LIBS="$LIBS $LIBICONV"
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 #include <stdlib.h>
11958 iconv_t cd = iconv_open("","");
11959 iconv(cd,NULL,NULL,NULL,NULL);
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967 (eval $ac_link) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 am_cv_lib_iconv=yes
11988 am_cv_func_iconv=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11994 rm -f conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS="$am_save_LIBS"
12000 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12001 echo "${ECHO_T}$am_cv_func_iconv" >&6
12002 if test "$am_cv_func_iconv" = yes; then
12004 cat >>confdefs.h <<\_ACEOF
12005 #define HAVE_ICONV 1
12009 if test "$am_cv_lib_iconv" = yes; then
12010 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12011 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12012 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12013 echo "${ECHO_T}$LIBICONV" >&6
12015 CPPFLAGS="$am_save_CPPFLAGS"
12022 if test "$am_cv_func_iconv" = yes; then
12023 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12024 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12025 if test "${am_cv_proto_iconv+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 #include <stdlib.h>
12042 #if defined(__STDC__) || defined(__cplusplus)
12043 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag"
12066 || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 am_cv_proto_iconv_arg1=""
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 am_cv_proto_iconv_arg1="const"
12085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12086 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12089 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12090 echo "$as_me:$LINENO: result: ${ac_t:-
12091 }$am_cv_proto_iconv" >&5
12092 echo "${ECHO_T}${ac_t:-
12093 }$am_cv_proto_iconv" >&6
12095 cat >>confdefs.h <<_ACEOF
12096 #define ICONV_CONST $am_cv_proto_iconv_arg1
12101 # Until we have in-tree GNU iconv:
12106 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12107 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12108 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <locale.h>
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 am_cv_val_LC_MESSAGES=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 am_cv_val_LC_MESSAGES=no
12155 rm -f conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12159 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12160 if test $am_cv_val_LC_MESSAGES = yes; then
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_LC_MESSAGES 1
12170 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12171 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12172 if test "${am_cv_langinfo_codeset+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include <langinfo.h>
12185 char* cs = nl_langinfo(CODESET);
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 am_cv_langinfo_codeset=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 am_cv_langinfo_codeset=no
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12223 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12224 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12225 if test $am_cv_langinfo_codeset = yes; then
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_LANGINFO_CODESET 1
12234 # We will need to find libiberty.h and ansidecl.h
12235 saved_CFLAGS="$CFLAGS"
12236 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12276 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12277 strsignal strstr strverscmp \
12278 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12279 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
12281 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12282 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12283 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12284 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12294 #define $ac_tr_decl 1
12296 #include "ansidecl.h"
12297 #include "system.h"
12303 char *(*pfn) = (char *(*)) $ac_func ;
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 eval "gcc_cv_have_decl_$ac_func=yes"
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 eval "gcc_cv_have_decl_$ac_func=no"
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12342 echo "$as_me:$LINENO: result: yes" >&5
12343 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12344 #define $ac_tr_decl 1
12348 echo "$as_me:$LINENO: result: no" >&5
12349 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12350 #define $ac_tr_decl 0
12361 for ac_func in getrlimit setrlimit getrusage
12363 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 #define $ac_tr_decl 1
12378 #include "ansidecl.h"
12379 #include "system.h"
12380 #ifdef HAVE_SYS_RESOURCE_H
12381 #include <sys/resource.h>
12389 char *(*pfn) = (char *(*)) $ac_func ;
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
12399 grep -v '^ *+' conftest.er1 >conftest.err
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "gcc_cv_have_decl_$ac_func=yes"
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 eval "gcc_cv_have_decl_$ac_func=no"
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12427 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12428 echo "$as_me:$LINENO: result: yes" >&5
12429 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12430 #define $ac_tr_decl 1
12434 echo "$as_me:$LINENO: result: no" >&5
12435 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12436 #define $ac_tr_decl 0
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 #include "ansidecl.h"
12452 #include "system.h"
12453 #ifdef HAVE_SYS_RESOURCE_H
12454 #include <sys/resource.h>
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag"
12475 || test ! -s conftest.err'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12493 cat >>confdefs.h <<\_ACEOF
12494 #define rlim_t long
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12500 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12501 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12502 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12503 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12505 for ac_func in ldgetname
12507 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12508 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12509 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12510 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 #define $ac_tr_decl 1
12522 #include "ansidecl.h"
12523 #include "system.h"
12524 #ifdef HAVE_LDFCN_H
12535 char *(*pfn) = (char *(*)) $ac_func ;
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 eval "gcc_cv_have_decl_$ac_func=yes"
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 eval "gcc_cv_have_decl_$ac_func=no"
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12574 echo "$as_me:$LINENO: result: yes" >&5
12575 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12576 #define $ac_tr_decl 1
12580 echo "$as_me:$LINENO: result: no" >&5
12581 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12582 #define $ac_tr_decl 0
12591 for ac_func in times
12593 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12594 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12595 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12596 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 #define $ac_tr_decl 1
12608 #include "ansidecl.h"
12609 #include "system.h"
12610 #ifdef HAVE_SYS_TIMES_H
12611 #include <sys/times.h>
12619 char *(*pfn) = (char *(*)) $ac_func ;
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "gcc_cv_have_decl_$ac_func=yes"
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 eval "gcc_cv_have_decl_$ac_func=no"
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12658 echo "$as_me:$LINENO: result: yes" >&5
12659 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12660 #define $ac_tr_decl 1
12664 echo "$as_me:$LINENO: result: no" >&5
12665 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12666 #define $ac_tr_decl 0
12675 for ac_func in sigaltstack
12677 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12678 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12679 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12680 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12690 #define $ac_tr_decl 1
12692 #include "ansidecl.h"
12693 #include "system.h"
12694 #include <signal.h>
12701 char *(*pfn) = (char *(*)) $ac_func ;
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 eval "gcc_cv_have_decl_$ac_func=yes"
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 eval "gcc_cv_have_decl_$ac_func=no"
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12740 echo "$as_me:$LINENO: result: yes" >&5
12741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12742 #define $ac_tr_decl 1
12746 echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12748 #define $ac_tr_decl 0
12756 # More time-related stuff.
12757 echo "$as_me:$LINENO: checking for struct tms" >&5
12758 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12759 if test "${ac_cv_struct_tms+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 #include "ansidecl.h"
12771 #include "system.h"
12772 #ifdef HAVE_SYS_TIMES_H
12773 #include <sys/times.h>
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_struct_tms=yes
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 ac_cv_struct_tms=no
12813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12815 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12816 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12817 if test $ac_cv_struct_tms = yes; then
12819 cat >>confdefs.h <<\_ACEOF
12820 #define HAVE_STRUCT_TMS 1
12825 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12826 # revisit after autoconf 2.50.
12827 echo "$as_me:$LINENO: checking for clock_t" >&5
12828 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12829 if test "${gcc_cv_type_clock_t+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12840 #include "ansidecl.h"
12841 #include "system.h"
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853 (eval $ac_compile) 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 gcc_cv_type_clock_t=yes
12875 echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 gcc_cv_type_clock_t=no
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12883 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12884 if test $gcc_cv_type_clock_t = yes; then
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_CLOCK_T 1
12892 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12893 CFLAGS="$saved_CFLAGS"
12895 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12896 if test "${enable_initfini_array+set}" = set; then
12897 enableval="$enable_initfini_array"
12901 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12902 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12903 if test "${gcc_cv_initfini_array+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 if test "$cross_compiling" = yes; then
12907 gcc_cv_initfini_array=no
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12917 int main (void) { return x; }
12918 int foo (void) { x = 0; }
12919 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12921 rm -f conftest$ac_exeext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923 (eval $ac_link) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 gcc_cv_initfini_array=yes
12934 echo "$as_me: program exited with status $ac_status" >&5
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ( exit $ac_status )
12939 gcc_cv_initfini_array=no
12941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12945 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12946 enable_initfini_array=$gcc_cv_initfini_array
12949 if test $enable_initfini_array = yes; then
12951 cat >>confdefs.h <<\_ACEOF
12952 #define HAVE_INITFINI_ARRAY 1
12957 # mkdir takes a single argument on some systems.
12958 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12959 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12960 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cat >conftest.$ac_ext <<_ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12970 #include <sys/types.h>
12971 #ifdef HAVE_SYS_STAT_H
12972 # include <sys/stat.h>
12974 #ifdef HAVE_UNISTD_H
12975 # include <unistd.h>
12977 #ifdef HAVE_DIRECT_H
12978 # include <direct.h>
12988 rm -f conftest.$ac_objext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990 (eval $ac_compile) 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag"
12998 || test ! -s conftest.err'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 gcc_cv_mkdir_takes_one_arg=no
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 gcc_cv_mkdir_takes_one_arg=yes
13017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13020 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13021 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13023 cat >>confdefs.h <<\_ACEOF
13024 #define MKDIR_TAKES_ONE_ARG 1
13036 # With Setjmp/Longjmp based exception handling.
13037 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13038 if test "${enable_sjlj_exceptions+set}" = set; then
13039 enableval="$enable_sjlj_exceptions"
13042 if test $enableval != yes; then
13043 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13044 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13049 force_sjlj_exceptions=yes
13053 force_sjlj_exceptions=yes
13057 force_sjlj_exceptions=no
13061 if test $force_sjlj_exceptions = yes; then
13062 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13064 cat >>confdefs.h <<_ACEOF
13065 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13070 # For platforms with the unwind ABI which includes an unwind library,
13071 # libunwind, we can choose to use the system libunwind.
13073 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13074 if test "${with_system_libunwind+set}" = set; then
13075 withval="$with_system_libunwind"
13079 # config.gcc also contains tests of with_system_libunwind.
13080 if test x$with_system_libunwind = xyes; then
13082 cat >>confdefs.h <<\_ACEOF
13083 #define HAVE_GETIPINFO 1
13088 # --------------------------------------------------------
13089 # Build, host, and target specific configuration fragments
13090 # --------------------------------------------------------
13092 # Collect build-machine-specific information.
13093 . ${srcdir}/config.build
13095 # Collect host-machine-specific information.
13096 . ${srcdir}/config.host
13100 # Collect target-machine-specific information.
13101 . ${srcdir}/config.gcc
13103 extra_objs="${host_extra_objs} ${extra_objs}"
13104 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13106 # Default the target-machine variables that were not explicitly set.
13107 if test x"$tm_file" = x
13108 then tm_file=$cpu_type/$cpu_type.h; fi
13110 if test x"$extra_headers" = x
13111 then extra_headers=; fi
13113 if test x$md_file = x
13114 then md_file=$cpu_type/$cpu_type.md; fi
13116 if test x$out_file = x
13117 then out_file=$cpu_type/$cpu_type.c; fi
13119 if test x"$tmake_file" = x
13120 then tmake_file=$cpu_type/t-$cpu_type
13123 if test x"$dwarf2" = xyes
13124 then tm_file="$tm_file tm-dwarf2.h"
13127 # Say what files are being used for the output code and MD file.
13128 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13129 echo "Using \`$srcdir/config/$md_file' as machine description file."
13131 # If any of the xm_file variables contain nonexistent files, warn
13132 # about them and drop them.
13135 for x in $build_xm_file; do
13136 if test -f $srcdir/config/$x
13138 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13139 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13142 build_xm_file="$bx"
13145 for x in $host_xm_file; do
13146 if test -f $srcdir/config/$x
13148 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13149 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13155 for x in $xm_file; do
13156 if test -f $srcdir/config/$x
13158 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13159 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13165 for f in $tm_file; do
13168 if test $count = ax; then
13169 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13171 echo "Using the following target machine macro files:"
13172 for f in $tm_file; do
13173 echo " $srcdir/config/$f"
13177 if test x$need_64bit_hwint = xyes; then
13179 cat >>confdefs.h <<\_ACEOF
13180 #define NEED_64BIT_HOST_WIDE_INT 1
13185 if test x$use_long_long_for_widest_fast_int = xyes; then
13187 cat >>confdefs.h <<\_ACEOF
13188 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13194 for f in $host_xm_file; do
13197 if test $count = a; then
13199 elif test $count = ax; then
13200 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13202 echo "Using the following host machine macro files:"
13203 for f in $host_xm_file; do
13204 echo " $srcdir/config/$f"
13207 echo "Using ${out_host_hook_obj} for host machine hooks."
13209 if test "$host_xm_file" != "$build_xm_file"; then
13211 for f in $build_xm_file; do
13214 if test $count = a; then
13216 elif test $count = ax; then
13217 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13219 echo "Using the following build machine macro files:"
13220 for f in $build_xm_file; do
13221 echo " $srcdir/config/$f"
13227 powerpc*-*-darwin*)
13228 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13229 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13230 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13235 #include <sys/cdefs.h>
13236 #include <sys/signal.h>
13237 #include <ucontext.h>
13238 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13245 grep -v '^ *+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 gcc_cv_mcontext_underscores=no
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 gcc_cv_mcontext_underscores=yes
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13273 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13274 if test $gcc_cv_mcontext_underscores = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAS_MCONTEXT_T_UNDERSCORES
13288 # Check if a valid thread package
13289 case ${enable_threads} in
13292 target_thread_file='single'
13296 target_thread_file='single'
13298 aix | dce | gnat | irix | posix | posix95 | rtems | \
13299 single | solaris | vxworks | win32 | mipssde)
13300 target_thread_file=${enable_threads}
13303 echo "${enable_threads} is an unknown thread package" 1>&2
13308 if test x${thread_file} = x; then
13309 # No thread file set by target-specific clauses in config.gcc,
13310 # so use file chosen by default logic above
13311 thread_file=${target_thread_file}
13314 # Make gthr-default.h if we have a thread file.
13316 if test $thread_file != single; then
13317 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13318 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13319 rm -f gthr-default.h-t
13321 mv -f gthr-default.h-t gthr-default.h
13323 gthread_flags=-DHAVE_GTHR_DEFAULT
13332 if test x$enable___cxa_atexit = xyes || \
13333 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13334 if test x$host = x$target; then
13336 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13337 # keyed to flag_use_cxa_atexit
13342 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13343 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13344 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13355 #define __cxa_atexit innocuous___cxa_atexit
13357 /* System header to define __stub macros and hopefully few prototypes,
13358 which can conflict with char __cxa_atexit (); below.
13359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13360 <limits.h> exists even on freestanding compilers. */
13363 # include <limits.h>
13365 # include <assert.h>
13368 #undef __cxa_atexit
13370 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13377 char __cxa_atexit ();
13378 /* The GNU C library defines this for functions which it implements
13379 to always fail with ENOSYS. Some functions are actually named
13380 something starting with __ and the normal name is an alias. */
13381 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13384 char (*f) () = __cxa_atexit;
13393 return f != __cxa_atexit;
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_func___cxa_atexit=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_cv_func___cxa_atexit=no
13427 rm -f conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13430 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13431 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13432 if test $ac_cv_func___cxa_atexit = yes; then
13435 echo "__cxa_atexit can't be enabled on this target"
13441 # We can't check for __cxa_atexit when building a cross, so assume
13445 if test x$use_cxa_atexit = xyes; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define DEFAULT_USE_CXA_ATEXIT 2
13455 if test x$with_system_libunwind = xyes; then
13456 if test x$host = x$target; then
13457 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13458 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13459 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_func_search_save_LIBS=$LIBS
13463 ac_cv_search__Unwind_GetIPInfo=no
13464 cat >conftest.$ac_ext <<_ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13471 /* Override any gcc2 internal prototype to avoid an error. */
13475 /* We use char because int might match the return type of a gcc2
13476 builtin and then its argument prototype would still apply. */
13477 char _Unwind_GetIPInfo ();
13481 _Unwind_GetIPInfo ();
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488 (eval $ac_link) 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -z "$ac_c_werror_flag"
13496 || test ! -s conftest.err'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest$ac_exeext'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_search__Unwind_GetIPInfo="none required"
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13514 rm -f conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13517 for ac_lib in unwind; do
13518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13526 /* Override any gcc2 internal prototype to avoid an error. */
13530 /* We use char because int might match the return type of a gcc2
13531 builtin and then its argument prototype would still apply. */
13532 char _Unwind_GetIPInfo ();
13536 _Unwind_GetIPInfo ();
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest$ac_exeext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13570 rm -f conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13574 LIBS=$ac_func_search_save_LIBS
13576 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13577 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13578 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13579 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13588 if test x$use_getipinfo = xyes; then
13590 cat >>confdefs.h <<\_ACEOF
13591 #define HAVE_GETIPINFO 1
13595 echo "The system unwind library does not support _Unwind_GetIPInfo."
13598 # Look for a file containing extra machine modes.
13599 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13600 extra_modes_file='$(srcdir)'/config/${extra_modes}
13603 cat >>confdefs.h <<_ACEOF
13604 #define EXTRA_MODES_FILE "config/$extra_modes"
13609 # Convert extra_options into a form suitable for Makefile use.
13611 for f in $extra_options; do
13612 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13616 # auto-host.h is the file containing items generated by autoconf and is
13617 # the first file included by config.h.
13618 # If host=build, it is correct to have bconfig include auto-host.h
13619 # as well. If host!=build, we are in error and need to do more
13620 # work to find out the build config parameters.
13621 if test x$host = x$build
13623 build_auto=auto-host.h
13625 # We create a subdir, then run autoconf in the subdir.
13626 # To prevent recursion we set host and build for the new
13627 # invocation of configure to the build for this invocation
13634 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13635 *) realsrcdir=../${srcdir};;
13637 saved_CFLAGS="${CFLAGS}"
13638 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13639 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13640 ${realsrcdir}/configure \
13641 --enable-languages=${enable_languages-all} \
13642 --target=$target_alias --host=$build_alias --build=$build_alias
13643 CFLAGS="${saved_CFLAGS}"
13645 # We just finished tests for the build machine, so rename
13646 # the file auto-build.h in the gcc directory.
13647 mv auto-host.h ../auto-build.h
13650 build_auto=auto-build.h
13654 tm_file="${tm_file} defaults.h"
13655 tm_p_file="${tm_p_file} tm-preds.h"
13656 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13657 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13658 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13659 # put this back in temporarily.
13660 xm_file="auto-host.h ansidecl.h ${xm_file}"
13666 # Compile in configure arguments.
13667 if test -f configargs.h ; then
13668 # Being re-configured.
13669 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13670 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13672 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13675 # Double all backslashes and backslash all quotes to turn
13676 # gcc_config_arguments into a C string.
13677 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13678 $gcc_config_arguments
13680 gcc_config_arguments_str=`cat conftest.out`
13683 cat > configargs.h <<EOF
13684 /* Generated automatically. */
13685 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13686 static const char thread_model[] = "$thread_file";
13688 static const struct {
13689 const char *name, *value;
13690 } configure_default_options[] = $configure_default_options;
13693 # Internationalization
13694 # If we haven't got the data from the intl directory,
13695 # assume NLS is disabled.
13704 if test -f ../intl/config.intl; then
13705 . ../intl/config.intl
13707 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13708 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13709 if test x"$USE_NLS" != xyes; then
13710 echo "$as_me:$LINENO: result: no" >&5
13711 echo "${ECHO_T}no" >&6
13713 echo "$as_me:$LINENO: result: yes" >&5
13714 echo "${ECHO_T}yes" >&6
13716 cat >>confdefs.h <<\_ACEOF
13717 #define ENABLE_NLS 1
13721 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13722 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13723 # Look for .po and .gmo files in the source directory.
13726 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13727 # If there aren't any .gmo files the shell will give us the
13728 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13730 case "$cat" in *\**)
13733 # The quadruple backslash is collapsed to a double backslash
13734 # by the backticks, then collapsed again by the double quotes,
13735 # leaving us with one backslash in the sed expression (right
13736 # before the dot that mustn't act as a wildcard).
13737 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13738 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13739 # The user is allowed to set LINGUAS to a list of languages to
13740 # install catalogs for. If it's empty that means "all of them."
13741 if test "x$LINGUAS" = x; then
13742 CATALOGS="$CATALOGS $cat"
13743 XLINGUAS="$XLINGUAS $lang"
13745 case "$LINGUAS" in *$lang*)
13746 CATALOGS="$CATALOGS $cat"
13747 XLINGUAS="$XLINGUAS $lang"
13752 LINGUAS="$XLINGUAS"
13753 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13754 echo "${ECHO_T}$LINGUAS" >&6
13767 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13768 # -liconv on the link line twice.
13769 case "$LIBINTL" in *$LIBICONV*)
13773 # Check whether --enable-secureplt or --disable-secureplt was given.
13774 if test "${enable_secureplt+set}" = set; then
13775 enableval="$enable_secureplt"
13779 # Check whether --enable-cld or --disable-cld was given.
13780 if test "${enable_cld+set}" = set; then
13781 enableval="$enable_cld"
13787 # Windows32 Registry support for specifying GCC installation paths.
13788 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13789 if test "${enable_win32_registry+set}" = set; then
13790 enableval="$enable_win32_registry"
13795 win32 | pe | cygwin* | mingw32* | uwin*)
13796 if test "x$enable_win32_registry" != xno; then
13797 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13798 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13799 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_func_search_save_LIBS=$LIBS
13803 ac_cv_search_RegOpenKeyExA=no
13804 cat >conftest.$ac_ext <<_ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13811 /* Override any gcc2 internal prototype to avoid an error. */
13815 /* We use char because int might match the return type of a gcc2
13816 builtin and then its argument prototype would still apply. */
13817 char RegOpenKeyExA ();
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828 (eval $ac_link) 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag"
13836 || test ! -s conftest.err'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; } &&
13842 { ac_try='test -s conftest$ac_exeext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_search_RegOpenKeyExA="none required"
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13857 for ac_lib in advapi32; do
13858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13859 cat >conftest.$ac_ext <<_ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13866 /* Override any gcc2 internal prototype to avoid an error. */
13870 /* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13872 char RegOpenKeyExA ();
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883 (eval $ac_link) 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag"
13891 || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13910 rm -f conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13914 LIBS=$ac_func_search_save_LIBS
13916 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13917 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13918 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13919 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13922 enable_win32_registry=no
13927 if test "x$enable_win32_registry" != xno; then
13929 cat >>confdefs.h <<\_ACEOF
13930 #define ENABLE_WIN32_REGISTRY 1
13934 if test "x$enable_win32_registry" != xyes \
13935 && test "x$enable_win32_registry" != x; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13946 # Get an absolute path to the GCC top-level source directory
13947 holddir=`${PWDCMD-pwd}`
13949 topdir=`${PWDCMD-pwd}`
13952 # Conditionalize the makefile for this host machine.
13954 for f in ${host_xmake_file}
13956 if test -f ${srcdir}/config/$f
13958 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13962 # Conditionalize the makefile for this target machine.
13964 for f in ${tmake_file}
13966 if test -f ${srcdir}/config/$f
13968 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13971 tmake_file="${tmake_file_}"
13973 # This is a terrible hack which will go away some day.
13974 host_cc_for_libada=${CC}
13977 out_object_file=`basename $out_file .c`.o
13979 tm_file_list="options.h"
13980 tm_include_list="options.h"
13981 for f in $tm_file; do
13984 f=`echo $f | sed 's/^..//'`
13985 tm_file_list="${tm_file_list} $f"
13986 tm_include_list="${tm_include_list} $f"
13989 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13990 tm_include_list="${tm_include_list} $f"
13993 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13994 tm_include_list="${tm_include_list} config/$f"
14001 for f in $tm_p_file; do
14004 tm_p_file_list="${tm_p_file_list} $f"
14005 tm_p_include_list="${tm_p_include_list} $f"
14008 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14009 tm_p_include_list="${tm_p_include_list} config/$f"
14015 for f in $xm_file; do
14018 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14019 xm_include_list="${xm_include_list} $f"
14022 xm_file_list="${xm_file_list} $f"
14023 xm_include_list="${xm_include_list} $f"
14026 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14027 xm_include_list="${xm_include_list} config/$f"
14033 host_xm_include_list=
14034 for f in $host_xm_file; do
14037 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14038 host_xm_include_list="${host_xm_include_list} $f"
14041 host_xm_file_list="${host_xm_file_list} $f"
14042 host_xm_include_list="${host_xm_include_list} $f"
14045 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14046 host_xm_include_list="${host_xm_include_list} config/$f"
14051 build_xm_file_list=
14052 for f in $build_xm_file; do
14055 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14056 build_xm_include_list="${build_xm_include_list} $f"
14058 auto-build.h | auto-host.h )
14059 build_xm_file_list="${build_xm_file_list} $f"
14060 build_xm_include_list="${build_xm_include_list} $f"
14063 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14064 build_xm_include_list="${build_xm_include_list} config/$f"
14069 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14070 # cross-compiler which does not use the native headers and libraries.
14071 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14074 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14076 if test "x$with_build_sysroot" != x; then
14077 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14079 # This value is used, even on a native system, because
14080 # CROSS_SYSTEM_HEADER_DIR is just
14081 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14082 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14085 if test x$host != x$target
14087 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14089 SYSTEM_HEADER_DIR=$build_system_header_dir
14090 case "$host","$target" in
14091 # Darwin crosses can use the host system's libraries and headers,
14092 # because of the fat library support. Of course, it must be the
14093 # same version of Darwin on both sides. Allow the user to
14094 # just say --target=foo-darwin without a version number to mean
14095 # "the version on this system".
14096 *-*-darwin*,*-*-darwin*)
14097 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14098 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14099 if test $hostos = $targetos -o $targetos = darwin ; then
14101 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14106 i?86-*-*,x86_64-*-* \
14107 | powerpc*-*-*,powerpc64*-*-*)
14108 CROSS="$CROSS -DNATIVE_CROSS" ;;
14110 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14111 SYSTEM_HEADER_DIR=$build_system_header_dir
14114 # If this is a cross-compiler that does not
14115 # have its own set of headers then define
14118 # If this is using newlib, without having the headers available now,
14119 # then define inhibit_libc in LIBGCC2_CFLAGS.
14120 # This prevents libgcc2 from containing any code which requires libc
14122 : ${inhibit_libc=false}
14123 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14124 test x$with_newlib = xyes ; } &&
14125 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14130 # When building gcc with a cross-compiler, we need to adjust things so
14131 # that the generator programs are still built with the native compiler.
14132 # Also, we cannot run fixincludes or fix-header.
14134 # These are the normal (build=host) settings:
14135 CC_FOR_BUILD='$(CC)'
14136 BUILD_CFLAGS='$(ALL_CFLAGS)'
14137 BUILD_LDFLAGS='$(LDFLAGS)'
14138 STMP_FIXINC=stmp-fixinc
14140 # Possibly disable fixproto, on a per-target basis.
14141 case ${use_fixproto} in
14146 STMP_FIXPROTO=stmp-fixproto
14151 # And these apply if build != host, or we are generating coverage data
14152 if test x$build != x$host || test "x$coverage_flags" != x
14154 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14155 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14157 if test "x$TARGET_SYSTEM_ROOT" = x; then
14158 if test "x$STMP_FIXPROTO" != x; then
14159 STMP_FIXPROTO=stmp-install-fixproto
14164 # Expand extra_headers to include complete path.
14165 # This substitutes for lots of t-* files.
14166 extra_headers_list=
14167 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14168 for file in ${extra_headers} ; do
14169 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14172 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14173 if test x"$use_gcc_tgmath" = xyes
14174 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14177 # Define collect2 in Makefile.
14178 case $host_can_use_collect2 in
14180 *) collect2='collect2$(exeext)' ;;
14184 # Add a definition of USE_COLLECT2 if system wants one.
14185 case $use_collect2 in
14186 no) use_collect2= ;;
14189 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14190 xm_defines="${xm_defines} USE_COLLECT2"
14191 case $host_can_use_collect2 in
14193 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14194 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14195 { (exit 1); exit 1; }; }
14201 # ---------------------------
14202 # Assembler & linker features
14203 # ---------------------------
14205 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14206 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14207 # However when ld-new is first executed from the build tree, libtool will
14208 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14209 # to the build tree. While doing this we need to use the previous-stage
14210 # linker, or we have an infinite loop. The presence of a shell script as
14211 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14212 # the gcc/collect-ld script. So we need to know how libtool works, or
14213 # exec-tool will fail.
14218 macro_version='2.1a'
14219 macro_revision='1.2435'
14232 ltmain="$ac_aux_dir/ltmain.sh"
14239 enable_win32_dll=no
14242 # Check whether --enable-shared or --disable-shared was given.
14243 if test "${enable_shared+set}" = set; then
14244 enableval="$enable_shared"
14245 p=${PACKAGE-default}
14247 yes) enable_shared=yes ;;
14248 no) enable_shared=no ;;
14251 # Look at the argument we got. We use all the common list separators.
14252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14253 for pkg in $enableval; do
14255 if test "X$pkg" = "X$p"; then
14273 # Check whether --enable-static or --disable-static was given.
14274 if test "${enable_static+set}" = set; then
14275 enableval="$enable_static"
14276 p=${PACKAGE-default}
14278 yes) enable_static=yes ;;
14279 no) enable_static=no ;;
14282 # Look at the argument we got. We use all the common list separators.
14283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14284 for pkg in $enableval; do
14286 if test "X$pkg" = "X$p"; then
14305 # Check whether --with-pic or --without-pic was given.
14306 if test "${with_pic+set}" = set; then
14307 withval="$with_pic"
14308 pic_mode="$withval"
14313 test -z "$pic_mode" && pic_mode=default
14321 # Check whether --enable-fast-install or --disable-fast-install was given.
14322 if test "${enable_fast_install+set}" = set; then
14323 enableval="$enable_fast_install"
14324 p=${PACKAGE-default}
14326 yes) enable_fast_install=yes ;;
14327 no) enable_fast_install=no ;;
14329 enable_fast_install=no
14330 # Look at the argument we got. We use all the common list separators.
14331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14332 for pkg in $enableval; do
14334 if test "X$pkg" = "X$p"; then
14335 enable_fast_install=yes
14342 enable_fast_install=yes
14352 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14353 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14354 if test "${lt_cv_path_SED+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 # Loop through the user's path and test for sed and gsed.
14358 # Then use that list of sed's as ones to test for truncation.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for lt_ac_prog in sed gsed; do
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14367 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14375 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14376 # along with /bin/sed that truncates output.
14377 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14378 test ! -f $lt_ac_sed && continue
14379 cat /dev/null > conftest.in
14381 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14382 # Check for GNU sed and select it if it is found.
14383 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14384 lt_cv_path_SED=$lt_ac_sed
14388 cat conftest.in conftest.in >conftest.tmp
14389 mv conftest.tmp conftest.in
14390 cp conftest.in conftest.nl
14392 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14393 cmp -s conftest.out conftest.nl || break
14394 # 10000 chars as input seems more than enough
14395 test $lt_ac_count -gt 10 && break
14396 lt_ac_count=`expr $lt_ac_count + 1`
14397 if test $lt_ac_count -gt $lt_ac_max; then
14398 lt_ac_max=$lt_ac_count
14399 lt_cv_path_SED=$lt_ac_sed
14406 SED=$lt_cv_path_SED
14408 echo "$as_me:$LINENO: result: $SED" >&5
14409 echo "${ECHO_T}$SED" >&6
14411 test -z "$SED" && SED=sed
14412 Xsed="$SED -e 1s/^X//"
14424 echo "$as_me:$LINENO: checking for fgrep" >&5
14425 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14426 if test "${ac_cv_prog_fgrep+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14430 then ac_cv_prog_fgrep='grep -F'
14431 else ac_cv_prog_fgrep='fgrep'
14434 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14435 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14436 FGREP=$ac_cv_prog_fgrep
14439 test -z "$GREP" && GREP=grep
14459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14460 if test "${with_gnu_ld+set}" = set; then
14461 withval="$with_gnu_ld"
14462 test "$withval" = no || with_gnu_ld=yes
14467 if test "$GCC" = yes; then
14468 # Check if gcc -print-prog-name=ld gives a path.
14469 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14473 # gcc leaves a trailing carriage return which upsets mingw
14474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14479 # Accept absolute paths.
14481 re_direlt='/[^/][^/]*/\.\./'
14482 # Canonicalize the pathname of ld
14483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14487 test -z "$LD" && LD="$ac_prog"
14490 # If it fails, then pretend we aren't using GCC.
14494 # If it is relative, then search for the first ld in PATH.
14495 with_gnu_ld=unknown
14498 elif test "$with_gnu_ld" = yes; then
14499 echo "$as_me:$LINENO: checking for GNU ld" >&5
14500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14502 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14505 if test "${lt_cv_path_LD+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 if test -z "$LD"; then
14509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14510 for ac_dir in $PATH; do
14512 test -z "$ac_dir" && ac_dir=.
14513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14514 lt_cv_path_LD="$ac_dir/$ac_prog"
14515 # Check to see if the program is GNU ld. I'd rather use --version,
14516 # but apparently some variants of GNU ld only accept -v.
14517 # Break only if it was the GNU/non-GNU ld that we prefer.
14518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14519 *GNU* | *'with BFD'*)
14520 test "$with_gnu_ld" != no && break
14523 test "$with_gnu_ld" != yes && break
14530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14534 LD="$lt_cv_path_LD"
14535 if test -n "$LD"; then
14536 echo "$as_me:$LINENO: result: $LD" >&5
14537 echo "${ECHO_T}$LD" >&6
14539 echo "$as_me:$LINENO: result: no" >&5
14540 echo "${ECHO_T}no" >&6
14542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14544 { (exit 1); exit 1; }; }
14545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14551 case `$LD -v 2>&1 </dev/null` in
14552 *GNU* | *'with BFD'*)
14553 lt_cv_prog_gnu_ld=yes
14556 lt_cv_prog_gnu_ld=no
14560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14562 with_gnu_ld=$lt_cv_prog_gnu_ld
14573 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14574 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14575 if test "${lt_cv_path_NM+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 if test -n "$NM"; then
14579 # Let the user override the test.
14580 lt_cv_path_NM="$NM"
14582 lt_nm_to_check="${ac_tool_prefix}nm"
14583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14584 lt_nm_to_check="$lt_nm_to_check nm"
14586 for lt_tmp_nm in $lt_nm_to_check; do
14587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14590 test -z "$ac_dir" && ac_dir=.
14591 tmp_nm="$ac_dir/$lt_tmp_nm"
14592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14593 # Check to see if the nm accepts a BSD-compat flag.
14594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14595 # nm: unknown option "B" ignored
14596 # Tru64's nm complains that /dev/null is an invalid object file
14597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14598 */dev/null* | *'Invalid file or object type'*)
14599 lt_cv_path_NM="$tmp_nm -B"
14603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14605 lt_cv_path_NM="$tmp_nm -p"
14609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14610 continue # so that we can try to find one that supports BSD flags
14619 : ${lt_cv_path_NM=no}
14622 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14623 echo "${ECHO_T}$lt_cv_path_NM" >&6
14624 if test "$lt_cv_path_NM" != "no"; then
14625 NM="$lt_cv_path_NM"
14627 # Didn't find any BSD compatible name lister, look for dumpbin.
14628 if test -n "$ac_tool_prefix"; then
14629 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14633 echo "$as_me:$LINENO: checking for $ac_word" >&5
14634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14635 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 if test -n "$DUMPBIN"; then
14639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 DUMPBIN=$ac_cv_prog_DUMPBIN
14658 if test -n "$DUMPBIN"; then
14659 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14660 echo "${ECHO_T}$DUMPBIN" >&6
14662 echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14666 test -n "$DUMPBIN" && break
14669 if test -z "$DUMPBIN"; then
14670 ac_ct_DUMPBIN=$DUMPBIN
14671 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14673 # Extract the first word of "$ac_prog", so it can be a program name with args.
14674 set dummy $ac_prog; ac_word=$2
14675 echo "$as_me:$LINENO: checking for $ac_word" >&5
14676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14677 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 if test -n "$ac_ct_DUMPBIN"; then
14681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14687 test -z "$as_dir" && as_dir=.
14688 for ac_exec_ext in '' $ac_executable_extensions; do
14689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14700 if test -n "$ac_ct_DUMPBIN"; then
14701 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14702 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14704 echo "$as_me:$LINENO: result: no" >&5
14705 echo "${ECHO_T}no" >&6
14708 test -n "$ac_ct_DUMPBIN" && break
14710 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14712 DUMPBIN=$ac_ct_DUMPBIN
14716 if test "$DUMPBIN" != ":"; then
14720 test -z "$NM" && NM=nm
14727 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14728 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14729 if test "${lt_cv_nm_interface+set}" = set; then
14730 echo $ECHO_N "(cached) $ECHO_C" >&6
14732 lt_cv_nm_interface="BSD nm"
14733 echo "int some_variable = 0;" > conftest.$ac_ext
14734 (eval echo "\"\$as_me:14734: $ac_compile\"" >&5)
14735 (eval "$ac_compile" 2>conftest.err)
14736 cat conftest.err >&5
14737 (eval echo "\"\$as_me:14737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14739 cat conftest.err >&5
14740 (eval echo "\"\$as_me:14740: output\"" >&5)
14741 cat conftest.out >&5
14742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14743 lt_cv_nm_interface="MS dumpbin"
14747 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14748 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14750 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14753 if test "$LN_S" = "ln -s"; then
14754 echo "$as_me:$LINENO: result: yes" >&5
14755 echo "${ECHO_T}yes" >&6
14757 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14758 echo "${ECHO_T}no, using $LN_S" >&6
14761 # find the maximum length of command line arguments
14762 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14763 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14764 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 # On DJGPP, this test can blow up pretty badly due to problems in libc
14773 # (any single argument exceeding 2000 bytes causes a buffer overrun
14774 # during glob expansion). Even if it were fixed, the result of this
14775 # check would be larger than it should be.
14776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14780 # Under GNU Hurd, this test is not required because there is
14781 # no limit to the length of command line arguments.
14782 # Libtool will interpret -1 as no limit whatsoever
14783 lt_cv_sys_max_cmd_len=-1;
14787 # On Win9x/ME, this test blows up -- it succeeds, but takes
14788 # about 5 minutes as the teststring grows exponentially.
14789 # Worse, since 9x/ME are not pre-emptively multitasking,
14790 # you end up with a "frozen" computer, even though with patience
14791 # the test eventually succeeds (with a max line length of 256k).
14792 # Instead, let's just punt: use the minimum linelength reported by
14793 # all of the supported platforms: 8192 (on NT/2K/XP).
14794 lt_cv_sys_max_cmd_len=8192;
14798 # On AmigaOS with pdksh, this test takes hours, literally.
14799 # So we just punt and use a minimum line length of 8192.
14800 lt_cv_sys_max_cmd_len=8192;
14803 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14804 # This has been around since 386BSD, at least. Likely further.
14805 if test -x /sbin/sysctl; then
14806 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14807 elif test -x /usr/sbin/sysctl; then
14808 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14810 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14812 # And add a safety zone
14813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14818 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14819 lt_cv_sys_max_cmd_len=196608
14823 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14824 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14825 # nice to cause kernel panics so lets avoid the loop below.
14826 # First set a reasonable default.
14827 lt_cv_sys_max_cmd_len=16384
14829 if test -x /sbin/sysconfig; then
14830 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14831 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14836 lt_cv_sys_max_cmd_len=102400
14838 sysv5* | sco5v6* | sysv4.2uw2*)
14839 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14840 if test -n "$kargmax"; then
14841 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14843 lt_cv_sys_max_cmd_len=32768
14847 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14848 if test -n $lt_cv_sys_max_cmd_len; then
14849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14852 # Make teststring a little bigger before we do anything with it.
14853 # a 1K string should be a reasonable start.
14854 for i in 1 2 3 4 5 6 7 8 ; do
14855 teststring=$teststring$teststring
14857 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14858 # If test is not a shell built-in, we'll probably end up computing a
14859 # maximum length that is only half of the actual maximum length, but
14861 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14862 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14863 test $i != 17 # 1/2 MB should be enough
14866 teststring=$teststring$teststring
14868 # Only check the string length outside the loop.
14869 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14871 # Add a significant safety factor because C++ compilers can tack on
14872 # massive amounts of additional arguments before passing them to the
14873 # linker. It appears as though 1/2 is a usable value.
14874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14881 if test -n $lt_cv_sys_max_cmd_len ; then
14882 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14885 echo "$as_me:$LINENO: result: none" >&5
14886 echo "${ECHO_T}none" >&6
14888 max_cmd_len=$lt_cv_sys_max_cmd_len
14900 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14901 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14902 # Try some XSI features
14904 ( _lt_dummy="a/b/c"
14905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14906 = c,a/b,, ) >/dev/null 2>&1 \
14908 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14909 echo "${ECHO_T}$xsi_shell" >&6
14912 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14913 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14917 && lt_shell_append=yes
14918 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14919 echo "${ECHO_T}$lt_shell_append" >&6
14922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14932 # test EBCDIC or ASCII
14933 case `echo X|tr X '\101'` in
14934 A) # ASCII based system
14935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14936 lt_SP2NL='tr \040 \012'
14937 lt_NL2SP='tr \015\012 \040\040'
14939 *) # EBCDIC based system
14940 lt_SP2NL='tr \100 \n'
14941 lt_NL2SP='tr \r\n \100\100'
14953 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14954 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14955 if test "${lt_cv_ld_reload_flag+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 lt_cv_ld_reload_flag='-r'
14960 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14961 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14962 reload_flag=$lt_cv_ld_reload_flag
14963 case $reload_flag in
14965 *) reload_flag=" $reload_flag" ;;
14967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14970 if test "$GCC" = yes; then
14971 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14987 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14988 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14989 if test "${lt_cv_deplibs_check_method+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 lt_cv_file_magic_cmd='$MAGIC_CMD'
14993 lt_cv_file_magic_test_file=
14994 lt_cv_deplibs_check_method='unknown'
14995 # Need to set the preceding variable on all platforms that support
14996 # interlibrary dependencies.
14997 # 'none' -- dependencies not supported.
14998 # `unknown' -- same as none, but documents that we really don't know.
14999 # 'pass_all' -- all dependencies passed with no checks.
15000 # 'test_compile' -- check by making test program.
15001 # 'file_magic [[regex]]' -- check by looking for files in library path
15002 # which responds to the $file_magic_cmd with a given extended regex.
15003 # If you have `file' or equivalent on your system and you're not sure
15004 # whether `pass_all' will *always* work, you probably want this one.
15008 lt_cv_deplibs_check_method=pass_all
15012 lt_cv_deplibs_check_method=pass_all
15016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15017 lt_cv_file_magic_cmd='/usr/bin/file -L'
15018 lt_cv_file_magic_test_file=/shlib/libc.so
15022 # func_win32_libid is a shell function defined in ltmain.sh
15023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15024 lt_cv_file_magic_cmd='func_win32_libid'
15028 # Base MSYS/MinGW do not provide the 'file' command needed by
15029 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15030 # unless we find 'file', for example because we are cross-compiling.
15031 if ( file / ) >/dev/null 2>&1; then
15032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15033 lt_cv_file_magic_cmd='func_win32_libid'
15035 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15036 lt_cv_file_magic_cmd='$OBJDUMP -f'
15040 darwin* | rhapsody*)
15041 lt_cv_deplibs_check_method=pass_all
15044 freebsd* | dragonfly*)
15045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15048 # Not sure whether the presence of OpenBSD here was a mistake.
15049 # Let's accept both of them until this is cleared up.
15050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15051 lt_cv_file_magic_cmd=/usr/bin/file
15052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15056 lt_cv_deplibs_check_method=pass_all
15061 lt_cv_deplibs_check_method=pass_all
15064 hpux10.20* | hpux11*)
15065 lt_cv_file_magic_cmd=/usr/bin/file
15068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
15073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15087 irix5* | irix6* | nonstopux*)
15089 *-32|*"-32 ") libmagic=32-bit;;
15090 *-n32|*"-n32 ") libmagic=N32;;
15091 *-64|*"-64 ") libmagic=64-bit;;
15092 *) libmagic=never-match;;
15094 lt_cv_deplibs_check_method=pass_all
15097 # This must be Linux ELF.
15098 linux* | k*bsd*-gnu)
15099 lt_cv_deplibs_check_method=pass_all
15103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15112 lt_cv_file_magic_cmd=/usr/bin/file
15113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15117 lt_cv_deplibs_check_method=pass_all
15121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15128 osf3* | osf4* | osf5*)
15129 lt_cv_deplibs_check_method=pass_all
15133 lt_cv_deplibs_check_method=pass_all
15137 lt_cv_deplibs_check_method=pass_all
15140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15141 lt_cv_deplibs_check_method=pass_all
15145 case $host_vendor in
15147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
15148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15151 lt_cv_deplibs_check_method=pass_all
15154 lt_cv_file_magic_cmd='/bin/file'
15155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15158 lt_cv_file_magic_cmd='/bin/file'
15159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15160 lt_cv_file_magic_test_file=/lib/libc.so
15163 lt_cv_deplibs_check_method=pass_all
15166 lt_cv_deplibs_check_method=pass_all
15172 lt_cv_deplibs_check_method=pass_all
15177 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15178 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15179 file_magic_cmd=$lt_cv_file_magic_cmd
15180 deplibs_check_method=$lt_cv_deplibs_check_method
15181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15194 if test -n "$ac_tool_prefix"; then
15195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15196 set dummy ${ac_tool_prefix}ar; ac_word=$2
15197 echo "$as_me:$LINENO: checking for $ac_word" >&5
15198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15199 if test "${ac_cv_prog_AR+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 if test -n "$AR"; then
15203 ac_cv_prog_AR="$AR" # Let the user override the test.
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 for as_dir in $PATH
15209 test -z "$as_dir" && as_dir=.
15210 for ac_exec_ext in '' $ac_executable_extensions; do
15211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15212 ac_cv_prog_AR="${ac_tool_prefix}ar"
15213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15222 if test -n "$AR"; then
15223 echo "$as_me:$LINENO: result: $AR" >&5
15224 echo "${ECHO_T}$AR" >&6
15226 echo "$as_me:$LINENO: result: no" >&5
15227 echo "${ECHO_T}no" >&6
15231 if test -z "$ac_cv_prog_AR"; then
15233 # Extract the first word of "ar", so it can be a program name with args.
15234 set dummy ar; ac_word=$2
15235 echo "$as_me:$LINENO: checking for $ac_word" >&5
15236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 if test -n "$ac_ct_AR"; then
15241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244 for as_dir in $PATH
15247 test -z "$as_dir" && as_dir=.
15248 for ac_exec_ext in '' $ac_executable_extensions; do
15249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15250 ac_cv_prog_ac_ct_AR="ar"
15251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15261 if test -n "$ac_ct_AR"; then
15262 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15263 echo "${ECHO_T}$ac_ct_AR" >&6
15265 echo "$as_me:$LINENO: result: no" >&5
15266 echo "${ECHO_T}no" >&6
15271 AR="$ac_cv_prog_AR"
15274 test -z "$AR" && AR=ar
15275 test -z "$AR_FLAGS" && AR_FLAGS=cru
15287 if test -n "$ac_tool_prefix"; then
15288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15289 set dummy ${ac_tool_prefix}strip; ac_word=$2
15290 echo "$as_me:$LINENO: checking for $ac_word" >&5
15291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15292 if test "${ac_cv_prog_STRIP+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 if test -n "$STRIP"; then
15296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15299 for as_dir in $PATH
15302 test -z "$as_dir" && as_dir=.
15303 for ac_exec_ext in '' $ac_executable_extensions; do
15304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15314 STRIP=$ac_cv_prog_STRIP
15315 if test -n "$STRIP"; then
15316 echo "$as_me:$LINENO: result: $STRIP" >&5
15317 echo "${ECHO_T}$STRIP" >&6
15319 echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6
15324 if test -z "$ac_cv_prog_STRIP"; then
15326 # Extract the first word of "strip", so it can be a program name with args.
15327 set dummy strip; ac_word=$2
15328 echo "$as_me:$LINENO: checking for $ac_word" >&5
15329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15330 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 if test -n "$ac_ct_STRIP"; then
15334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337 for as_dir in $PATH
15340 test -z "$as_dir" && as_dir=.
15341 for ac_exec_ext in '' $ac_executable_extensions; do
15342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15343 ac_cv_prog_ac_ct_STRIP="strip"
15344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15350 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15354 if test -n "$ac_ct_STRIP"; then
15355 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15356 echo "${ECHO_T}$ac_ct_STRIP" >&6
15358 echo "$as_me:$LINENO: result: no" >&5
15359 echo "${ECHO_T}no" >&6
15364 STRIP="$ac_cv_prog_STRIP"
15367 test -z "$STRIP" && STRIP=:
15374 if test -n "$ac_tool_prefix"; then
15375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15377 echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15379 if test "${ac_cv_prog_RANLIB+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 if test -n "$RANLIB"; then
15383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15389 test -z "$as_dir" && as_dir=.
15390 for ac_exec_ext in '' $ac_executable_extensions; do
15391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15401 RANLIB=$ac_cv_prog_RANLIB
15402 if test -n "$RANLIB"; then
15403 echo "$as_me:$LINENO: result: $RANLIB" >&5
15404 echo "${ECHO_T}$RANLIB" >&6
15406 echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15411 if test -z "$ac_cv_prog_RANLIB"; then
15412 ac_ct_RANLIB=$RANLIB
15413 # Extract the first word of "ranlib", so it can be a program name with args.
15414 set dummy ranlib; ac_word=$2
15415 echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 if test -n "$ac_ct_RANLIB"; then
15421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15427 test -z "$as_dir" && as_dir=.
15428 for ac_exec_ext in '' $ac_executable_extensions; do
15429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15430 ac_cv_prog_ac_ct_RANLIB="ranlib"
15431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15437 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15441 if test -n "$ac_ct_RANLIB"; then
15442 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15445 echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15449 RANLIB=$ac_ct_RANLIB
15451 RANLIB="$ac_cv_prog_RANLIB"
15454 test -z "$RANLIB" && RANLIB=:
15461 # Determine commands to create old-style static archives.
15462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15463 old_postinstall_cmds='chmod 644 $oldlib'
15464 old_postuninstall_cmds=
15466 if test -n "$RANLIB"; then
15469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15475 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15511 # If no C compiler was specified, use CC.
15514 # If no C compiler flags were specified, use CFLAGS.
15515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15517 # Allow CC to be a program name with arguments.
15521 # Check for command to grab the raw symbol name followed by C symbol from nm.
15522 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 # These are sane defaults that work on at least a few old systems.
15529 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15531 # Character class describing NM global symbol codes.
15532 symcode='[BCDEGRST]'
15534 # Regexp to match symbols that can be accessed directly from C.
15535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15537 # Define system-specific variables.
15542 cygwin* | mingw* | pw32*)
15543 symcode='[ABCDGISTW]'
15546 if test "$host_cpu" = ia64; then
15547 symcode='[ABCDEGRST]'
15550 irix* | nonstopux*)
15551 symcode='[BCDEGRST]'
15554 symcode='[BCDEGQRST]'
15565 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15573 # If we're using GNU nm, then use its standard symbol codes.
15574 case `$NM -V 2>&1` in
15575 *GNU* | *'with BFD'*)
15576 symcode='[ABCDGIRSTW]' ;;
15579 # Transform an extracted symbol line into a proper C declaration.
15580 # Some systems (esp. on ia64) link data and code symbols differently,
15581 # so use this general approach.
15582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15584 # Transform an extracted symbol line into symbol name and symbol address
15585 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15587 # Handle CRLF in mingw tool chain
15591 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15595 # Try without a prefix underscore, then with it.
15596 for ac_symprfx in "" "_"; do
15598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15599 symxfrm="\\1 $ac_symprfx\\2 \\2"
15601 # Write the raw and C identifiers.
15602 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15603 # Fake it for dumpbin and say T for any non-static function
15604 # and D for any global variable.
15605 # Also find C++ and __fastcall symbols from MSVC++,
15606 # which start with @ or ?.
15607 lt_cv_sys_global_symbol_pipe="$AWK '"\
15608 " {last_section=section; section=\$ 3};"\
15609 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15610 " \$ 0!~/External *\|/{next};"\
15611 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15612 " {if(hide[section]) next};"\
15613 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15614 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15615 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15616 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15617 " ' prfx=^$ac_symprfx"
15619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15622 # Check to see that the pipe works correctly.
15626 cat > conftest.$ac_ext <<_LT_EOF
15631 void nm_test_func(void);
15632 void nm_test_func(void){}
15636 int main(){nm_test_var='a';nm_test_func();return(0);}
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; then
15644 # Now try to grab the symbols.
15646 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15647 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && test -s "$nlist"; then
15651 # Try sorting and uniquifying the output.
15652 if sort "$nlist" | uniq > "$nlist"T; then
15653 mv -f "$nlist"T "$nlist"
15658 # Make sure that we snagged all the symbols we need.
15659 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15660 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15661 cat <<_LT_EOF > conftest.$ac_ext
15667 # Now generate the symbol file.
15668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15670 cat <<_LT_EOF >> conftest.$ac_ext
15672 /* The mapping between symbol names and symbols. */
15677 lt__PROGRAM__LTX_preloaded_symbols[] =
15679 { "@PROGRAM@", (void *) 0 },
15681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15682 cat <<\_LT_EOF >> conftest.$ac_ext
15686 /* This works around a problem in FreeBSD linker */
15687 #ifdef FREEBSD_WORKAROUND
15688 static const void *lt_preloaded_setup() {
15689 return lt__PROGRAM__LTX_preloaded_symbols;
15697 # Now try linking the two files.
15698 mv conftest.$ac_objext conftstm.$ac_objext
15699 lt_save_LIBS="$LIBS"
15700 lt_save_CFLAGS="$CFLAGS"
15701 LIBS="conftstm.$ac_objext"
15702 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15710 LIBS="$lt_save_LIBS"
15711 CFLAGS="$lt_save_CFLAGS"
15713 echo "cannot find nm_test_func in $nlist" >&5
15716 echo "cannot find nm_test_var in $nlist" >&5
15719 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15722 echo "$progname: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15725 rm -f conftest* conftst*
15727 # Do not use the global_symbol_pipe unless it works.
15728 if test "$pipe_works" = yes; then
15731 lt_cv_sys_global_symbol_pipe=
15737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15738 lt_cv_sys_global_symbol_to_cdecl=
15740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15741 echo "$as_me:$LINENO: result: failed" >&5
15742 echo "${ECHO_T}failed" >&6
15744 echo "$as_me:$LINENO: result: ok" >&5
15745 echo "${ECHO_T}ok" >&6
15764 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15765 if test "${enable_libtool_lock+set}" = set; then
15766 enableval="$enable_libtool_lock"
15769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15771 # Some flags need to be propagated to the compiler or linker for good
15775 # Find out which ABI we are using.
15776 echo 'int i;' > conftest.$ac_ext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; then
15782 case `/usr/bin/file conftest.$ac_objext` in
15784 HPUX_IA64_MODE="32"
15787 HPUX_IA64_MODE="64"
15794 # Find out which ABI we are using.
15795 echo '#line 15795 "configure"' > conftest.$ac_ext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; then
15801 if test "$lt_cv_prog_gnu_ld" = yes; then
15802 case `/usr/bin/file conftest.$ac_objext` in
15804 LD="${LD-ld} -melf32bsmip"
15807 LD="${LD-ld} -melf32bmipn32"
15810 LD="${LD-ld} -melf64bmip"
15814 case `/usr/bin/file conftest.$ac_objext` in
15830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15831 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15832 # Find out which ABI we are using.
15833 echo 'int i;' > conftest.$ac_ext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; then
15839 case `/usr/bin/file conftest.o` in
15842 x86_64-*kfreebsd*-gnu)
15843 LD="${LD-ld} -m elf_i386_fbsd"
15846 LD="${LD-ld} -m elf_i386"
15848 ppc64-*linux*|powerpc64-*linux*)
15849 LD="${LD-ld} -m elf32ppclinux"
15852 LD="${LD-ld} -m elf_s390"
15855 LD="${LD-ld} -m elf32_sparc"
15861 x86_64-*kfreebsd*-gnu)
15862 LD="${LD-ld} -m elf_x86_64_fbsd"
15865 LD="${LD-ld} -m elf_x86_64"
15867 ppc*-*linux*|powerpc*-*linux*)
15868 LD="${LD-ld} -m elf64ppc"
15870 s390*-*linux*|s390*-*tpf*)
15871 LD="${LD-ld} -m elf64_s390"
15874 LD="${LD-ld} -m elf64_sparc"
15884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15885 SAVE_CFLAGS="$CFLAGS"
15886 CFLAGS="$CFLAGS -belf"
15887 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15888 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15889 if test "${lt_cv_cc_needs_belf+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 ac_cpp='$CPP $CPPFLAGS'
15894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest$ac_exeext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 lt_cv_cc_needs_belf=yes
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 lt_cv_cc_needs_belf=no
15942 rm -f conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15945 ac_cpp='$CPP $CPPFLAGS'
15946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15951 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15952 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15955 CFLAGS="$SAVE_CFLAGS"
15959 # Find out which ABI we are using.
15960 echo 'int i;' > conftest.$ac_ext
15961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15962 (eval $ac_compile) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; then
15966 case `/usr/bin/file conftest.o` in
15968 case $lt_cv_prog_gnu_ld in
15969 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15970 *) LD="${LD-ld} -64" ;;
15979 need_locks="$enable_libtool_lock"
15982 for ac_header in dlfcn.h
15984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15985 echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 #include <$ac_header>
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16015 if test -z "$ac_cpp_err"; then
16016 eval "$as_ac_Header=yes"
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 eval "$as_ac_Header=no"
16023 rm -f conftest.err conftest.$ac_ext
16025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16037 # This can be used to rebuild libtool when needed
16038 LIBTOOL_DEPS="$ltmain"
16040 # Always use our own libtool.
16041 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16067 test -z "$LN_S" && LN_S="ln -s"
16082 if test -n "${ZSH_VERSION+set}" ; then
16083 setopt NO_GLOB_SUBST
16086 echo "$as_me:$LINENO: checking for objdir" >&5
16087 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16088 if test "${lt_cv_objdir+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 rm -f .libs 2>/dev/null
16092 mkdir .libs 2>/dev/null
16093 if test -d .libs; then
16096 # MS-DOS does not allow filenames that begin with a dot.
16099 rmdir .libs 2>/dev/null
16101 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16102 echo "${ECHO_T}$lt_cv_objdir" >&6
16103 objdir=$lt_cv_objdir
16109 cat >>confdefs.h <<_ACEOF
16110 #define LT_OBJDIR "$lt_cv_objdir/"
16131 # AIX sometimes has problems with the GCC collect2 program. For some
16132 # reason, if we set the COLLECT_NAMES environment variable, the problems
16133 # vanish in a puff of smoke.
16134 if test "X${COLLECT_NAMES+set}" != Xset; then
16136 export COLLECT_NAMES
16141 # Sed substitution that helps us do robust quoting. It backslashifies
16142 # metacharacters that are still active within double-quoted strings.
16143 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16145 # Same as above, but do not quote variable references.
16146 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16148 # Sed substitution to delay expansion of an escaped shell variable in a
16149 # double_quote_subst'ed string.
16150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16152 # Sed substitution to delay expansion of an escaped single quote.
16153 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16155 # Sed substitution to avoid accidental globbing in evaled expressions
16156 no_glob_subst='s/\*/\\\*/g'
16158 # Global variables:
16160 can_build_shared=yes
16162 # All known linkers require a `.a' archive for static linking (except MSVC,
16163 # which needs '.lib').
16166 with_gnu_ld="$lt_cv_prog_gnu_ld"
16169 old_CFLAGS="$CFLAGS"
16171 # Set sane defaults for various variables
16172 test -z "$CC" && CC=cc
16173 test -z "$LTCC" && LTCC=$CC
16174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16175 test -z "$LD" && LD=ld
16176 test -z "$ac_objext" && ac_objext=o
16178 for cc_temp in $compiler""; do
16180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16186 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16189 # Only perform the check for file, if the check method requires it
16190 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16191 case $deplibs_check_method in
16193 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16194 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16195 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16196 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16204 lt_save_MAGIC_CMD="$MAGIC_CMD"
16205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16207 for ac_dir in $ac_dummy; do
16209 test -z "$ac_dir" && ac_dir=.
16210 if test -f $ac_dir/${ac_tool_prefix}file; then
16211 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16212 if test -n "$file_magic_test_file"; then
16213 case $deplibs_check_method in
16215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16218 $EGREP "$file_magic_regex" > /dev/null; then
16223 *** Warning: the command libtool uses to detect shared libraries,
16224 *** $file_magic_cmd, produces output that libtool cannot recognize.
16225 *** The result is that libtool may fail to recognize shared libraries
16226 *** as such. This will affect the creation of libtool libraries that
16227 *** depend on shared libraries, but programs linked with such libtool
16228 *** libraries will work regardless of this problem. Nevertheless, you
16229 *** may want to report the problem to your system manager and/or to
16230 *** bug-libtool@gnu.org
16240 MAGIC_CMD="$lt_save_MAGIC_CMD"
16245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16246 if test -n "$MAGIC_CMD"; then
16247 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16248 echo "${ECHO_T}$MAGIC_CMD" >&6
16250 echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6
16258 if test -z "$lt_cv_path_MAGIC_CMD"; then
16259 if test -n "$ac_tool_prefix"; then
16260 echo "$as_me:$LINENO: checking for file" >&5
16261 echo $ECHO_N "checking for file... $ECHO_C" >&6
16262 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16270 lt_save_MAGIC_CMD="$MAGIC_CMD"
16271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16272 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16273 for ac_dir in $ac_dummy; do
16275 test -z "$ac_dir" && ac_dir=.
16276 if test -f $ac_dir/file; then
16277 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16278 if test -n "$file_magic_test_file"; then
16279 case $deplibs_check_method in
16281 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16283 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16284 $EGREP "$file_magic_regex" > /dev/null; then
16289 *** Warning: the command libtool uses to detect shared libraries,
16290 *** $file_magic_cmd, produces output that libtool cannot recognize.
16291 *** The result is that libtool may fail to recognize shared libraries
16292 *** as such. This will affect the creation of libtool libraries that
16293 *** depend on shared libraries, but programs linked with such libtool
16294 *** libraries will work regardless of this problem. Nevertheless, you
16295 *** may want to report the problem to your system manager and/or to
16296 *** bug-libtool@gnu.org
16306 MAGIC_CMD="$lt_save_MAGIC_CMD"
16311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16312 if test -n "$MAGIC_CMD"; then
16313 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16314 echo "${ECHO_T}$MAGIC_CMD" >&6
16316 echo "$as_me:$LINENO: result: no" >&5
16317 echo "${ECHO_T}no" >&6
16330 # Use C for the default configuration in the libtool script
16334 ac_cpp='$CPP $CPPFLAGS'
16335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16340 # Source file extension for C test sources.
16343 # Object file extension for compiled C test sources.
16347 # Code to be used in simple compile tests
16348 lt_simple_compile_test_code="int some_variable = 0;"
16350 # Code to be used in simple link tests
16351 lt_simple_link_test_code='int main(){return(0);}'
16359 # If no C compiler was specified, use CC.
16362 # If no C compiler flags were specified, use CFLAGS.
16363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16365 # Allow CC to be a program name with arguments.
16368 # Save the default compiler, since it gets overwritten when the other
16369 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16370 compiler_DEFAULT=$CC
16372 # save warnings/boilerplate of simple test code
16373 ac_outfile=conftest.$ac_objext
16374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16376 _lt_compiler_boilerplate=`cat conftest.err`
16379 ac_outfile=conftest.$ac_objext
16380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16382 _lt_linker_boilerplate=`cat conftest.err`
16387 ## There is no encapsulation within the following macros, do not change
16388 ## the running order or otherwise move them around unless you know exactly
16389 ## what you are doing...
16390 if test -n "$compiler"; then
16392 lt_prog_compiler_no_builtin_flag=
16394 if test "$GCC" = yes; then
16395 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16397 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16398 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16399 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 lt_cv_prog_compiler_rtti_exceptions=no
16403 ac_outfile=conftest.$ac_objext
16404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16405 lt_compiler_flag="-fno-rtti -fno-exceptions"
16406 # Insert the option either (1) after the last *FLAGS variable, or
16407 # (2) before a word containing "conftest.", or (3) at the end.
16408 # Note that $ac_compile itself does not contain backslashes and begins
16409 # with a dollar sign (not a hyphen), so the echo should work correctly.
16410 # The option is referenced via a variable to avoid confusing sed.
16411 lt_compile=`echo "$ac_compile" | $SED \
16412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414 -e 's:$: $lt_compiler_flag:'`
16415 (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
16416 (eval "$lt_compile" 2>conftest.err)
16418 cat conftest.err >&5
16419 echo "$as_me:16419: \$? = $ac_status" >&5
16420 if (exit $ac_status) && test -s "$ac_outfile"; then
16421 # The compiler can only warn and ignore the option if not recognized
16422 # So say no if there are warnings other than the usual output.
16423 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16426 lt_cv_prog_compiler_rtti_exceptions=yes
16432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16433 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16435 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16436 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16448 lt_prog_compiler_wl=
16449 lt_prog_compiler_pic=
16450 lt_prog_compiler_static=
16452 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16455 if test "$GCC" = yes; then
16456 lt_prog_compiler_wl='-Wl,'
16457 lt_prog_compiler_static='-static'
16461 # All AIX code is PIC.
16462 if test "$host_cpu" = ia64; then
16463 # AIX 5 now supports IA64 processor
16464 lt_prog_compiler_static='-Bstatic'
16469 if test "$host_cpu" = m68k; then
16470 # FIXME: we need at least 68020 code to build shared libraries, but
16471 # adding the `-m68020' flag to GCC prevents building anything better,
16473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478 # PIC is the default for these OSes.
16481 mingw* | cygwin* | pw32* | os2*)
16482 # This hack is so that the source file can tell whether it is being
16483 # built for inclusion in a dll (and should export symbols for example).
16484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16485 # (--disable-auto-import) libraries
16486 lt_prog_compiler_pic='-DDLL_EXPORT'
16489 darwin* | rhapsody*)
16490 # PIC is the default on this platform
16491 # Common symbols not allowed in MH_DYLIB files
16492 lt_prog_compiler_pic='-fno-common'
16496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16497 # not for PA HP-UX.
16503 lt_prog_compiler_pic='-fPIC'
16509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16510 # Instead, we relocate shared libraries at runtime.
16514 # Just because we use GCC doesn't mean we suddenly get shared libraries
16515 # on systems that don't support them.
16516 lt_prog_compiler_can_build_shared=no
16521 # QNX uses GNU C++, but need to define -shared option too, otherwise
16522 # it will coredump.
16523 lt_prog_compiler_pic='-fPIC -shared'
16527 if test -d /usr/nec; then
16528 lt_prog_compiler_pic=-Kconform_pic
16533 lt_prog_compiler_pic='-fPIC'
16537 # PORTME Check for flag to pass linker flags through the system compiler.
16540 lt_prog_compiler_wl='-Wl,'
16541 if test "$host_cpu" = ia64; then
16542 # AIX 5 now supports IA64 processor
16543 lt_prog_compiler_static='-Bstatic'
16545 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16549 # PIC is the default on this platform
16550 # Common symbols not allowed in MH_DYLIB files
16551 case $cc_basename in
16553 lt_prog_compiler_pic='-qnocommon'
16554 lt_prog_compiler_wl='-Wl,'
16559 mingw* | cygwin* | pw32* | os2*)
16560 # This hack is so that the source file can tell whether it is being
16561 # built for inclusion in a dll (and should export symbols for example).
16562 lt_prog_compiler_pic='-DDLL_EXPORT'
16565 hpux9* | hpux10* | hpux11*)
16566 lt_prog_compiler_wl='-Wl,'
16567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16568 # not for PA HP-UX.
16574 lt_prog_compiler_pic='+Z'
16577 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16578 lt_prog_compiler_static='${wl}-a ${wl}archive'
16581 irix5* | irix6* | nonstopux*)
16582 lt_prog_compiler_wl='-Wl,'
16583 # PIC (with -KPIC) is the default.
16584 lt_prog_compiler_static='-non_shared'
16587 linux* | k*bsd*-gnu)
16588 case $cc_basename in
16590 lt_prog_compiler_wl='-Wl,'
16591 lt_prog_compiler_pic='-KPIC'
16592 lt_prog_compiler_static='-static'
16594 pgcc* | pgf77* | pgf90* | pgf95*)
16595 # Portland Group compilers (*not* the Pentium gcc compiler,
16596 # which looks to be a dead project)
16597 lt_prog_compiler_wl='-Wl,'
16598 lt_prog_compiler_pic='-fpic'
16599 lt_prog_compiler_static='-Bstatic'
16602 lt_prog_compiler_wl='-Wl,'
16603 # All Alpha code is PIC.
16604 lt_prog_compiler_static='-non_shared'
16607 case `$CC -V 2>&1 | sed 5q` in
16610 lt_prog_compiler_pic='-KPIC'
16611 lt_prog_compiler_static='-Bstatic'
16612 lt_prog_compiler_wl='-Wl,'
16615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16616 lt_prog_compiler_pic='-KPIC'
16617 lt_prog_compiler_static='-Bstatic'
16618 lt_prog_compiler_wl=''
16626 lt_prog_compiler_pic='-KPIC'
16627 lt_prog_compiler_static='-Bstatic'
16631 # QNX uses GNU C++, but need to define -shared option too, otherwise
16632 # it will coredump.
16633 lt_prog_compiler_pic='-fPIC -shared'
16636 osf3* | osf4* | osf5*)
16637 lt_prog_compiler_wl='-Wl,'
16638 # All OSF/1 code is PIC.
16639 lt_prog_compiler_static='-non_shared'
16643 lt_prog_compiler_static='-non_shared'
16647 lt_prog_compiler_pic='-KPIC'
16648 lt_prog_compiler_static='-Bstatic'
16649 case $cc_basename in
16650 f77* | f90* | f95*)
16651 lt_prog_compiler_wl='-Qoption ld ';;
16653 lt_prog_compiler_wl='-Wl,';;
16658 lt_prog_compiler_wl='-Qoption ld '
16659 lt_prog_compiler_pic='-PIC'
16660 lt_prog_compiler_static='-Bstatic'
16663 sysv4 | sysv4.2uw2* | sysv4.3*)
16664 lt_prog_compiler_wl='-Wl,'
16665 lt_prog_compiler_pic='-KPIC'
16666 lt_prog_compiler_static='-Bstatic'
16670 if test -d /usr/nec ;then
16671 lt_prog_compiler_pic='-Kconform_pic'
16672 lt_prog_compiler_static='-Bstatic'
16676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16677 lt_prog_compiler_wl='-Wl,'
16678 lt_prog_compiler_pic='-KPIC'
16679 lt_prog_compiler_static='-Bstatic'
16683 lt_prog_compiler_wl='-Wl,'
16684 lt_prog_compiler_can_build_shared=no
16688 lt_prog_compiler_pic='-pic'
16689 lt_prog_compiler_static='-Bstatic'
16693 lt_prog_compiler_can_build_shared=no
16699 # For platforms which do not support PIC, -DPIC is meaningless:
16701 lt_prog_compiler_pic=
16704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16707 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16716 # Check to make sure the PIC flag actually works.
16718 if test -n "$lt_prog_compiler_pic"; then
16719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16721 if test "${lt_prog_compiler_pic_works+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 lt_prog_compiler_pic_works=no
16725 ac_outfile=conftest.$ac_objext
16726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16728 # Insert the option either (1) after the last *FLAGS variable, or
16729 # (2) before a word containing "conftest.", or (3) at the end.
16730 # Note that $ac_compile itself does not contain backslashes and begins
16731 # with a dollar sign (not a hyphen), so the echo should work correctly.
16732 # The option is referenced via a variable to avoid confusing sed.
16733 lt_compile=`echo "$ac_compile" | $SED \
16734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16736 -e 's:$: $lt_compiler_flag:'`
16737 (eval echo "\"\$as_me:16737: $lt_compile\"" >&5)
16738 (eval "$lt_compile" 2>conftest.err)
16740 cat conftest.err >&5
16741 echo "$as_me:16741: \$? = $ac_status" >&5
16742 if (exit $ac_status) && test -s "$ac_outfile"; then
16743 # The compiler can only warn and ignore the option if not recognized
16744 # So say no if there are warnings other than the usual output.
16745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16748 lt_prog_compiler_pic_works=yes
16754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16757 if test x"$lt_prog_compiler_pic_works" = xyes; then
16758 case $lt_prog_compiler_pic in
16760 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16763 lt_prog_compiler_pic=
16764 lt_prog_compiler_can_build_shared=no
16775 # Check to make sure the static flag actually works.
16777 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16778 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16780 if test "${lt_prog_compiler_static_works+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 lt_prog_compiler_static_works=no
16784 save_LDFLAGS="$LDFLAGS"
16785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16788 # The linker can only warn and ignore the option if not recognized
16789 # So say no if there are warnings
16790 if test -s conftest.err; then
16791 # Append any errors to the config.log.
16792 cat conftest.err 1>&5
16793 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16795 if diff conftest.exp conftest.er2 >/dev/null; then
16796 lt_prog_compiler_static_works=yes
16799 lt_prog_compiler_static_works=yes
16803 LDFLAGS="$save_LDFLAGS"
16806 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16807 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16809 if test x"$lt_prog_compiler_static_works" = xyes; then
16812 lt_prog_compiler_static=
16821 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16823 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 lt_cv_prog_compiler_c_o=no
16827 $RM -r conftest 2>/dev/null
16831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="-o out/conftest2.$ac_objext"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 lt_compile=`echo "$ac_compile" | $SED \
16839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16841 -e 's:$: $lt_compiler_flag:'`
16842 (eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
16843 (eval "$lt_compile" 2>out/conftest.err)
16845 cat out/conftest.err >&5
16846 echo "$as_me:16846: \$? = $ac_status" >&5
16847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings
16851 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_c_o=yes
16859 # SGI C++ compiler will create directory out/ii_files/ for
16860 # template instantiation
16861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16862 $RM out/* && rmdir out
16868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16876 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 lt_cv_prog_compiler_c_o=no
16882 $RM -r conftest 2>/dev/null
16886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16888 lt_compiler_flag="-o out/conftest2.$ac_objext"
16889 # Insert the option either (1) after the last *FLAGS variable, or
16890 # (2) before a word containing "conftest.", or (3) at the end.
16891 # Note that $ac_compile itself does not contain backslashes and begins
16892 # with a dollar sign (not a hyphen), so the echo should work correctly.
16893 lt_compile=`echo "$ac_compile" | $SED \
16894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16896 -e 's:$: $lt_compiler_flag:'`
16897 (eval echo "\"\$as_me:16897: $lt_compile\"" >&5)
16898 (eval "$lt_compile" 2>out/conftest.err)
16900 cat out/conftest.err >&5
16901 echo "$as_me:16901: \$? = $ac_status" >&5
16902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16904 # The compiler can only warn and ignore the option if not recognized
16905 # So say no if there are warnings
16906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16909 lt_cv_prog_compiler_c_o=yes
16914 # SGI C++ compiler will create directory out/ii_files/ for
16915 # template instantiation
16916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16917 $RM out/* && rmdir out
16923 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16924 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16929 hard_links="nottested"
16930 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16931 # do not overwrite the value of need_locks provided by the user
16932 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16938 ln conftest.a conftest.b 2>&5 || hard_links=no
16939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16940 echo "$as_me:$LINENO: result: $hard_links" >&5
16941 echo "${ECHO_T}$hard_links" >&6
16942 if test "$hard_links" = no; then
16943 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16956 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16957 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16960 allow_undefined_flag=
16961 always_export_symbols=no
16963 archive_expsym_cmds=
16964 compiler_needs_object=no
16965 enable_shared_with_static_runtimes=no
16966 export_dynamic_flag_spec=
16967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16968 hardcode_automatic=no
16970 hardcode_direct_absolute=no
16971 hardcode_libdir_flag_spec=
16972 hardcode_libdir_flag_spec_ld=
16973 hardcode_libdir_separator=
16974 hardcode_minus_L=no
16975 hardcode_shlibpath_var=unsupported
16977 link_all_deplibs=unknown
16979 module_expsym_cmds=
16980 old_archive_from_new_cmds=
16981 old_archive_from_expsyms_cmds=
16982 thread_safe_flag_spec=
16983 whole_archive_flag_spec=
16984 # include_expsyms should be a list of space-separated symbols to be *always*
16985 # included in the symbol list
16987 # exclude_expsyms can be an extended regexp of symbols to exclude
16988 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16989 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16990 # as well as any symbol that contains `d'.
16991 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16993 # platforms (ab)use it in PIC code, but their linkers get confused if
16994 # the symbol is explicitly referenced. Since portable code cannot
16995 # rely on this symbol name, it's probably fine to never include it in
16996 # preloaded symbol tables.
16997 extract_expsyms_cmds=
17000 cygwin* | mingw* | pw32*)
17001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17002 # When not using gcc, we currently assume that we are using
17003 # Microsoft Visual C++.
17004 if test "$GCC" != yes; then
17009 # we just hope/assume this is gcc and not c89 (= MSVC++)
17018 if test "$with_gnu_ld" = yes; then
17019 # If archive_cmds runs LD, not CC, wlarc should be empty
17022 # Set some defaults for GNU ld with shared library support. These
17023 # are reset later if shared libraries are not supported. Putting them
17024 # here allows them to be overridden if necessary.
17025 runpath_var=LD_RUN_PATH
17026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17027 export_dynamic_flag_spec='${wl}--export-dynamic'
17028 # ancient GNU ld didn't support --whole-archive et. al.
17029 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17030 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17032 whole_archive_flag_spec=
17034 supports_anon_versioning=no
17035 case `$LD -v 2>&1` in
17036 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17039 *\ 2.11.*) ;; # other 2.11 versions
17040 *) supports_anon_versioning=yes ;;
17043 # See if GNU ld supports shared libraries.
17046 # On AIX/PPC, the GNU linker is very broken
17047 if test "$host_cpu" != ia64; then
17051 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17052 *** to be unable to reliably create shared libraries on AIX.
17053 *** Therefore, libtool is disabling shared libraries support. If you
17054 *** really care for shared libraries, you may want to modify your PATH
17055 *** so that a non-GNU linker is found, and then restart.
17062 if test "$host_cpu" = m68k; then
17063 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17064 hardcode_libdir_flag_spec='-L$libdir'
17065 hardcode_minus_L=yes
17068 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17069 # that the semantics of dynamic libraries on AmigaOS, at least up
17070 # to version 4, is to share data among multiple programs linked
17071 # with the same dynamic library. Since this doesn't match the
17072 # behavior of shared libraries on other platforms, we can't use
17078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17079 allow_undefined_flag=unsupported
17080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17081 # support --undefined. This deserves some investigation. FIXME
17082 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17088 cygwin* | mingw* | pw32*)
17089 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17090 # as there is no search path for DLLs.
17091 hardcode_libdir_flag_spec='-L$libdir'
17092 allow_undefined_flag=unsupported
17093 always_export_symbols=no
17094 enable_shared_with_static_runtimes=yes
17095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17099 # If the export-symbols file already is a .def file (1st line
17100 # is EXPORTS), use it as is; otherwise, prepend...
17101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17102 cp $export_symbols $output_objdir/$soname.def;
17104 echo EXPORTS > $output_objdir/$soname.def;
17105 cat $export_symbols >> $output_objdir/$soname.def;
17107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17115 hardcode_shlibpath_var=no
17116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17117 export_dynamic_flag_spec='${wl}-E'
17118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17119 # Instead, shared libraries are loaded at an image base (0x10000000 by
17120 # default) and relocated if they conflict, which is a slow very memory
17121 # consuming and fragmenting process. To avoid this, we pick a random,
17122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17125 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17128 gnu* | linux* | tpf* | k*bsd*-gnu)
17130 if test "$host_os" = linux-dietlibc; then
17131 case $cc_basename in
17132 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17135 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17136 && test "$tmp_diet" = no
17139 case $cc_basename,$host_cpu in
17140 pgcc*) # Portland Group C compiler
17141 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17142 tmp_addflag=' $pic_flag'
17144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17145 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17146 tmp_addflag=' $pic_flag -Mnomain' ;;
17147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17148 tmp_addflag=' -i_dynamic' ;;
17149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17150 tmp_addflag=' -i_dynamic -nofor_main' ;;
17151 ifc* | ifort*) # Intel Fortran compiler
17152 tmp_addflag=' -nofor_main' ;;
17154 case `$CC -V 2>&1 | sed 5q` in
17155 *Sun\ C*) # Sun C 5.9
17156 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17157 compiler_needs_object=yes
17158 tmp_sharedflag='-G' ;;
17159 *Sun\ F*) # Sun Fortran 8.3
17160 tmp_sharedflag='-G' ;;
17162 tmp_sharedflag='-shared' ;;
17164 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 if test "x$supports_anon_versioning" = xyes; then
17167 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17169 echo "local: *; };" >> $output_objdir/$libname.ver~
17170 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17179 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17188 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17193 *** create shared libraries on Solaris systems. Therefore, libtool
17194 *** is disabling shared libraries support. We urge you to upgrade GNU
17195 *** binutils to release 2.9.1 or newer. Another option is to modify
17196 *** your PATH or compiler configuration so that the native linker is
17197 *** used, and then restart.
17200 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17209 case `$LD -v 2>&1` in
17210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17215 *** reliably create shared libraries on SCO systems. Therefore, libtool
17216 *** is disabling shared libraries support. We urge you to upgrade GNU
17217 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17218 *** your PATH or compiler configuration so that the native linker is
17219 *** used, and then restart.
17224 # For security reasons, it is highly recommended that you always
17225 # use absolute paths for naming shared libraries, and exclude the
17226 # DT_RUNPATH tag from executables and libraries. But doing so
17227 # requires that you compile everything twice, which is a pain.
17228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17240 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17242 hardcode_direct=yes
17243 hardcode_shlibpath_var=no
17247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17256 if test "$ld_shlibs" = no; then
17258 hardcode_libdir_flag_spec=
17259 export_dynamic_flag_spec=
17260 whole_archive_flag_spec=
17263 # PORTME fill in a description of your system's linker (not GNU ld)
17266 allow_undefined_flag=unsupported
17267 always_export_symbols=yes
17268 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17269 # Note: this linker hardcodes the directories in LIBPATH if there
17270 # are no directories specified by -L.
17271 hardcode_minus_L=yes
17272 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17273 # Neither direct hardcoding nor static linking is supported with a
17275 hardcode_direct=unsupported
17280 if test "$host_cpu" = ia64; then
17281 # On IA64, the linker does run time linking by default, so we don't
17282 # have to do anything special.
17283 aix_use_runtimelinking=no
17284 exp_sym_flag='-Bexport'
17287 # If we're using GNU nm, then we don't want the "-C" option.
17288 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17289 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17290 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17292 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17294 aix_use_runtimelinking=no
17296 # Test if we are trying to use run time linking or normal
17297 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17298 # need to do runtime linking.
17299 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17300 for ld_flag in $LDFLAGS; do
17301 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17302 aix_use_runtimelinking=yes
17309 exp_sym_flag='-bexport'
17310 no_entry_flag='-bnoentry'
17313 # When large executables or shared objects are built, AIX ld can
17314 # have problems creating the table of contents. If linking a library
17315 # or program results in "error TOC overflow" add -mminimal-toc to
17316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17320 hardcode_direct=yes
17321 hardcode_direct_absolute=yes
17322 hardcode_libdir_separator=':'
17323 link_all_deplibs=yes
17324 file_list_spec='${wl}-f,'
17326 if test "$GCC" = yes; then
17327 case $host_os in aix4.[012]|aix4.[012].*)
17328 # We only want to do this on AIX 4.2 and lower, the check
17329 # below for broken collect2 doesn't work under 4.3+
17330 collect2name=`${CC} -print-prog-name=collect2`
17331 if test -f "$collect2name" &&
17332 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17334 # We have reworked collect2
17337 # We have old collect2
17338 hardcode_direct=unsupported
17339 # It fails to find uninstalled libraries when the uninstalled
17340 # path is not listed in the libpath. Setting hardcode_minus_L
17341 # to unsupported forces relinking
17342 hardcode_minus_L=yes
17343 hardcode_libdir_flag_spec='-L$libdir'
17344 hardcode_libdir_separator=
17348 shared_flag='-shared'
17349 if test "$aix_use_runtimelinking" = yes; then
17350 shared_flag="$shared_flag "'${wl}-G'
17354 if test "$host_cpu" = ia64; then
17355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17356 # chokes on -Wl,-G. The following line is correct:
17359 if test "$aix_use_runtimelinking" = yes; then
17360 shared_flag='${wl}-G'
17362 shared_flag='${wl}-bM:SRE'
17367 # It seems that -bexpall does not export symbols beginning with
17368 # underscore (_), so it is better to generate a list of symbols to export.
17369 always_export_symbols=yes
17370 if test "$aix_use_runtimelinking" = yes; then
17371 # Warning - without using the other runtime loading flags (-brtl),
17372 # -berok will link without error, but may produce a broken library.
17373 allow_undefined_flag='-berok'
17374 # Determine the default libpath from the value encoded in an
17375 # empty executable.
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17414 lt_aix_libpath_sed='
17415 /Import File Strings/,/^$/ {
17421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$aix_libpath"; then
17424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17431 rm -f conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17436 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17438 if test "$host_cpu" = ia64; then
17439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17440 allow_undefined_flag="-z nodefs"
17441 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17443 # Determine the default libpath from the value encoded in an
17444 # empty executable.
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17483 lt_aix_libpath_sed='
17484 /Import File Strings/,/^$/ {
17490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17491 # Check for a 64-bit object if we didn't find anything.
17492 if test -z "$aix_libpath"; then
17493 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17500 rm -f conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17505 # Warning - without using the other run time loading flags,
17506 # -berok will link without error, but may produce a broken library.
17507 no_undefined_flag=' ${wl}-bernotok'
17508 allow_undefined_flag=' ${wl}-berok'
17509 # Exported symbols can be pulled into shared objects from archives
17510 whole_archive_flag_spec='$convenience'
17511 archive_cmds_need_lc=yes
17512 # This is similar to how AIX traditionally builds its shared libraries.
17513 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17519 if test "$host_cpu" = m68k; then
17520 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17521 hardcode_libdir_flag_spec='-L$libdir'
17522 hardcode_minus_L=yes
17524 # see comment about different semantics on the GNU ld section
17529 export_dynamic_flag_spec=-rdynamic
17532 cygwin* | mingw* | pw32*)
17533 # When not using gcc, we currently assume that we are using
17534 # Microsoft Visual C++.
17535 # hardcode_libdir_flag_spec is actually meaningless, as there is
17536 # no search path for DLLs.
17537 hardcode_libdir_flag_spec=' '
17538 allow_undefined_flag=unsupported
17539 # Tell ltmain to make .lib files, not .a files.
17541 # Tell ltmain to make .dll files, not .so files.
17543 # FIXME: Setting linknames here is a bad hack.
17544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17545 # The linker will automatically build a .lib file if we build a DLL.
17546 old_archive_from_new_cmds='true'
17547 # FIXME: Should let the user specify the lib program.
17548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17549 fix_srcfile_path='`cygpath -w "$srcfile"`'
17550 enable_shared_with_static_runtimes=yes
17553 darwin* | rhapsody*)
17555 rhapsody* | darwin1.[012])
17556 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17559 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17561 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17564 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17569 archive_cmds_need_lc=no
17571 hardcode_automatic=yes
17572 hardcode_shlibpath_var=unsupported
17573 whole_archive_flag_spec=''
17574 link_all_deplibs=yes
17575 if test "$GCC" = yes ; then
17576 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 lt_cv_apple_cc_single_mod=no
17580 if test -z "${LT_MULTI_MODULE}"; then
17581 # By default we will add the -single_module flag. You can override
17582 # by either setting the environment variable LT_MULTI_MODULE
17583 # non-empty at configure time, or by adding -multi-module to the
17585 echo "int foo(void){return 1;}" > conftest.c
17586 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17587 -dynamiclib ${wl}-single_module conftest.c
17588 if test -f libconftest.dylib; then
17589 lt_cv_apple_cc_single_mod=yes
17590 rm libconftest.dylib
17592 rm conftest.$ac_ext
17596 output_verbose_link_cmd=echo
17597 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17598 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17599 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17601 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17602 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17604 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17605 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17607 case $cc_basename in
17609 output_verbose_link_cmd=echo
17610 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17611 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17613 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17614 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625 hardcode_libdir_flag_spec='-L$libdir'
17626 hardcode_shlibpath_var=no
17633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17634 # support. Future versions do this automatically, but an explicit c++rt0.o
17635 # does not break anything, and helps significantly (at the cost of a little
17638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17639 hardcode_libdir_flag_spec='-R$libdir'
17640 hardcode_direct=yes
17641 hardcode_shlibpath_var=no
17644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17647 hardcode_direct=yes
17648 hardcode_minus_L=yes
17649 hardcode_shlibpath_var=no
17652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17653 freebsd* | dragonfly*)
17654 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17655 hardcode_libdir_flag_spec='-R$libdir'
17656 hardcode_direct=yes
17657 hardcode_shlibpath_var=no
17661 if test "$GCC" = yes; then
17662 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17664 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17667 hardcode_libdir_separator=:
17668 hardcode_direct=yes
17670 # hardcode_minus_L: Not really in the search PATH,
17671 # but as the default location of the library.
17672 hardcode_minus_L=yes
17673 export_dynamic_flag_spec='${wl}-E'
17677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17682 if test "$with_gnu_ld" = no; then
17683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17684 hardcode_libdir_flag_spec_ld='+b $libdir'
17685 hardcode_libdir_separator=:
17686 hardcode_direct=yes
17687 hardcode_direct_absolute=yes
17688 export_dynamic_flag_spec='${wl}-E'
17689 # hardcode_minus_L: Not really in the search PATH,
17690 # but as the default location of the library.
17691 hardcode_minus_L=yes
17696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17699 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17702 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17721 if test "$with_gnu_ld" = no; then
17722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17723 hardcode_libdir_separator=:
17728 hardcode_shlibpath_var=no
17731 hardcode_direct=yes
17732 hardcode_direct_absolute=yes
17733 export_dynamic_flag_spec='${wl}-E'
17735 # hardcode_minus_L: Not really in the search PATH,
17736 # but as the default location of the library.
17737 hardcode_minus_L=yes
17743 irix5* | irix6* | nonstopux*)
17744 if test "$GCC" = yes; then
17745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17746 # Try to use the -exported_symbol ld option, if it does not
17747 # work, assume that -exports_file does not work either and
17748 # implicitly export all symbols.
17749 save_LDFLAGS="$LDFLAGS"
17750 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17751 cat >conftest.$ac_ext <<_ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LDFLAGS="$save_LDFLAGS"
17787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17790 archive_cmds_need_lc='no'
17791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17792 hardcode_libdir_separator=:
17794 link_all_deplibs=yes
17798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17803 hardcode_libdir_flag_spec='-R$libdir'
17804 hardcode_direct=yes
17805 hardcode_shlibpath_var=no
17809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810 hardcode_direct=yes
17811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17812 hardcode_libdir_separator=:
17813 hardcode_shlibpath_var=no
17820 hardcode_direct=yes
17821 hardcode_shlibpath_var=no
17822 hardcode_direct_absolute=yes
17823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17827 export_dynamic_flag_spec='${wl}-E'
17830 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17832 hardcode_libdir_flag_spec='-R$libdir'
17835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17843 hardcode_libdir_flag_spec='-L$libdir'
17844 hardcode_minus_L=yes
17845 allow_undefined_flag=unsupported
17846 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17851 if test "$GCC" = yes; then
17852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17853 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17855 allow_undefined_flag=' -expect_unresolved \*'
17856 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17858 archive_cmds_need_lc='no'
17859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17860 hardcode_libdir_separator=:
17863 osf4* | osf5*) # as osf3* with the addition of -msym flag
17864 if test "$GCC" = yes; then
17865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17869 allow_undefined_flag=' -expect_unresolved \*'
17870 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17871 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17872 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
17874 # Both c and cxx compiler support -rpath directly
17875 hardcode_libdir_flag_spec='-rpath $libdir'
17877 archive_cmds_need_lc='no'
17878 hardcode_libdir_separator=:
17882 no_undefined_flag=' -z defs'
17883 if test "$GCC" = yes; then
17885 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17887 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17889 case `$CC -V 2>&1` in
17892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17904 hardcode_libdir_flag_spec='-R$libdir'
17905 hardcode_shlibpath_var=no
17907 solaris2.[0-5] | solaris2.[0-5].*) ;;
17909 # The compiler driver will combine and reorder linker options,
17910 # but understands `-z linker_flag'. GCC discards it without `$wl',
17911 # but is careful enough not to reorder.
17912 # Supported since Solaris 2.6 (maybe 2.5.1?)
17913 if test "$GCC" = yes; then
17914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17920 link_all_deplibs=yes
17924 if test "x$host_vendor" = xsequent; then
17925 # Use $CC to link under sequent, because it throws in some extra .o
17926 # files that make .init and .fini sections work.
17927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_libdir_flag_spec='-L$libdir'
17932 hardcode_direct=yes
17933 hardcode_minus_L=yes
17934 hardcode_shlibpath_var=no
17938 case $host_vendor in
17940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_direct=yes # is this really true???
17944 ## LD is ld it makes a PLAMLIB
17945 ## CC just makes a GrossModule.
17946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17947 reload_cmds='$CC -r -o $output$reload_objs'
17951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17955 runpath_var='LD_RUN_PATH'
17956 hardcode_shlibpath_var=no
17960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_shlibpath_var=no
17962 export_dynamic_flag_spec='-Bexport'
17966 if test -d /usr/nec; then
17967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17968 hardcode_shlibpath_var=no
17969 runpath_var=LD_RUN_PATH
17970 hardcode_runpath_var=yes
17975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17976 no_undefined_flag='${wl}-z,text'
17977 archive_cmds_need_lc=no
17978 hardcode_shlibpath_var=no
17979 runpath_var='LD_RUN_PATH'
17981 if test "$GCC" = yes; then
17982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17990 sysv5* | sco3.2v5* | sco5v6*)
17991 # Note: We can NOT use -z defs as we might desire, because we do not
17992 # link with -lc, and that would cause any symbols used from libc to
17993 # always be unresolved, which means just about no library would
17994 # ever link correctly. If we're not using GNU ld we use -z text
17995 # though, which does catch some bad symbols but isn't as heavy-handed
17997 no_undefined_flag='${wl}-z,text'
17998 allow_undefined_flag='${wl}-z,nodefs'
17999 archive_cmds_need_lc=no
18000 hardcode_shlibpath_var=no
18001 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18002 hardcode_libdir_separator=':'
18003 link_all_deplibs=yes
18004 export_dynamic_flag_spec='${wl}-Bexport'
18005 runpath_var='LD_RUN_PATH'
18007 if test "$GCC" = yes; then
18008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_libdir_flag_spec='-L$libdir'
18019 hardcode_shlibpath_var=no
18027 if test x$host_vendor = xsni; then
18029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18030 export_dynamic_flag_spec='${wl}-Blargedynsym'
18036 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18037 echo "${ECHO_T}$ld_shlibs" >&6
18038 test "$ld_shlibs" = no && can_build_shared=no
18040 with_gnu_ld=$with_gnu_ld
18057 # Do we need to explicitly link libc?
18059 case "x$archive_cmds_need_lc" in
18061 # Assume -lc should be added
18062 archive_cmds_need_lc=yes
18064 if test "$enable_shared" = yes && test "$GCC" = yes; then
18065 case $archive_cmds in
18067 # FIXME: we may have to deal with multi-command sequences.
18070 # Test whether the compiler implicitly links with -lc since on some
18071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18072 # to ld, don't add -lc before -lgcc.
18073 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18074 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18079 (eval $ac_compile) 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } 2>conftest.err; then
18085 libobjs=conftest.$ac_objext
18087 wl=$lt_prog_compiler_wl
18088 pic_flag=$lt_prog_compiler_pic
18094 lt_save_allow_undefined_flag=$allow_undefined_flag
18095 allow_undefined_flag=
18096 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }
18102 archive_cmds_need_lc=no
18104 archive_cmds_need_lc=yes
18106 allow_undefined_flag=$lt_save_allow_undefined_flag
18108 cat conftest.err 1>&5
18111 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18112 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18275 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18278 if test "$withGCC" = yes; then
18280 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18281 *) lt_awk_arg="/^libraries:/" ;;
18283 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18284 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18285 # if the path contains ";" then we assume it to be the separator
18286 # otherwise default to the standard path separator (i.e. ":") - it is
18287 # assumed that no part of a normal pathname contains ";" but that should
18288 # okay in the real world where ";" in dirpaths is itself problematic.
18289 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18293 # Ok, now we have the path, separated by spaces, we can step through it
18294 # and add multilib dir if necessary.
18295 lt_tmp_lt_search_path_spec=
18296 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18297 for lt_sys_path in $lt_search_path_spec; do
18298 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18301 test -d "$lt_sys_path" && \
18302 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18305 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18306 BEGIN {RS=" "; FS="/|\n";} {
18309 for (lt_i = NF; lt_i > 0; lt_i--) {
18310 if ($lt_i != "" && $lt_i != ".") {
18311 if ($lt_i == "..") {
18314 if (lt_count == 0) {
18315 lt_foo="/" $lt_i lt_foo;
18322 if (lt_foo != "") { lt_freq[lt_foo]++; }
18323 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18325 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18329 library_names_spec=
18330 libname_spec='lib$name'
18334 postuninstall_cmds=
18338 shlibpath_overrides_runpath=unknown
18340 dynamic_linker="$host_os ld.so"
18341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18342 need_lib_prefix=unknown
18343 hardcode_into_libs=no
18345 # when you set need_version to no, make sure it does not cause -set_version
18346 # flags to be left without arguments
18347 need_version=unknown
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18353 shlibpath_var=LIBPATH
18355 # AIX 3 has no versioning support, so we append a major version to the name.
18356 soname_spec='${libname}${release}${shared_ext}$major'
18363 hardcode_into_libs=yes
18364 if test "$host_cpu" = ia64; then
18365 # AIX 5 supports IA64
18366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18367 shlibpath_var=LD_LIBRARY_PATH
18369 # With GCC up to 2.95.x, collect2 would create an import file
18370 # for dependence libraries. The import file would start with
18371 # the line `#! .'. This would cause the generated library to
18372 # depend on `.', always an invalid library. This was fixed in
18373 # development snapshots of GCC prior to 3.0.
18375 aix4 | aix4.[01] | aix4.[01].*)
18376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18378 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18381 can_build_shared=no
18385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18386 # soname into executable. Probably we can add versioning support to
18387 # collect2, so additional links can be useful in future.
18388 if test "$aix_use_runtimelinking" = yes; then
18389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18390 # instead of lib<name>.a to let people know that these are not
18391 # typical AIX shared libraries.
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 # We preserve .a as extension for shared libraries through AIX4.2
18395 # and later when we are not doing run time linking.
18396 library_names_spec='${libname}${release}.a $libname.a'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18399 shlibpath_var=LIBPATH
18404 if test "$host_cpu" = m68k; then
18405 library_names_spec='$libname.ixlibrary $libname.a'
18406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18407 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18414 library_names_spec='${libname}${shared_ext}'
18415 dynamic_linker="$host_os ld.so"
18416 shlibpath_var=LIBRARY_PATH
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18428 # the default ld.so.conf also contains /usr/contrib/lib and
18429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18430 # libtool to hard-code these into programs
18433 cygwin* | mingw* | pw32*)
18434 version_type=windows
18439 case $withGCC,$host_os in
18440 yes,cygwin* | yes,mingw* | yes,pw32*)
18441 library_names_spec='$libname.dll.a'
18442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18443 postinstall_cmds='base_file=`basename \${file}`~
18444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18445 dldir=$destdir/`dirname \$dlpath`~
18446 test -d \$dldir || mkdir -p \$dldir~
18447 $install_prog $dir/$dlname \$dldir/$dlname~
18448 chmod a+x \$dldir/$dlname~
18449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18453 dlpath=$dir/\$dldll~
18455 shlibpath_overrides_runpath=yes
18459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18464 # MinGW DLLs use traditional 'lib' prefix
18465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18467 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18468 # It is most probably a Windows format PATH printed by
18469 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18470 # path with ; separators, and with drive letters. We can handle the
18471 # drive letters (cygwin fileutils understands them), so leave them,
18472 # especially as we might pass files found there to a mingw objdump,
18473 # which wouldn't understand a cygwinified path. Ahh.
18474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18480 # pw32 DLLs use 'pw' prefix rather than 'lib'
18481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18490 dynamic_linker='Win32 ld.exe'
18491 # FIXME: first we should search . and the directory the executable is in
18495 darwin* | rhapsody*)
18496 dynamic_linker="$host_os dyld"
18497 version_type=darwin
18500 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18501 soname_spec='${libname}${release}${major}$shared_ext'
18502 shlibpath_overrides_runpath=yes
18503 shlibpath_var=DYLD_LIBRARY_PATH
18504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18506 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18515 soname_spec='${libname}${release}${shared_ext}$major'
18516 shlibpath_var=LD_LIBRARY_PATH
18523 freebsd* | dragonfly*)
18524 # DragonFly does not have aout. When/if they implement a new
18525 # versioning mechanism, adjust this.
18526 if test -x /usr/bin/objformat; then
18527 objformat=`/usr/bin/objformat`
18530 freebsd[123]*) objformat=aout ;;
18531 *) objformat=elf ;;
18534 version_type=freebsd-$objformat
18535 case $version_type in
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18546 shlibpath_var=LD_LIBRARY_PATH
18549 shlibpath_overrides_runpath=yes
18551 freebsd3.[01]* | freebsdelf3.[01]*)
18552 shlibpath_overrides_runpath=yes
18553 hardcode_into_libs=yes
18555 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18556 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18557 shlibpath_overrides_runpath=no
18558 hardcode_into_libs=yes
18560 *) # from 4.6 on, and DragonFly
18561 shlibpath_overrides_runpath=yes
18562 hardcode_into_libs=yes
18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 hardcode_into_libs=yes
18577 hpux9* | hpux10* | hpux11*)
18578 # Give a soname corresponding to the major version so that dld.sl refuses to
18579 # link against other versions.
18586 hardcode_into_libs=yes
18587 dynamic_linker="$host_os dld.so"
18588 shlibpath_var=LD_LIBRARY_PATH
18589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 if test "X$HPUX_IA64_MODE" = X32; then
18593 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18601 hardcode_into_libs=yes
18602 dynamic_linker="$host_os dld.sl"
18603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606 soname_spec='${libname}${release}${shared_ext}$major'
18607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18612 dynamic_linker="$host_os dld.sl"
18613 shlibpath_var=SHLIB_PATH
18614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 soname_spec='${libname}${release}${shared_ext}$major'
18619 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18620 postinstall_cmds='chmod 555 $lib'
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18628 soname_spec='${libname}${release}${shared_ext}$major'
18629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 shlibpath_overrides_runpath=no
18632 hardcode_into_libs=yes
18635 irix5* | irix6* | nonstopux*)
18637 nonstopux*) version_type=nonstopux ;;
18639 if test "$lt_cv_prog_gnu_ld" = yes; then
18647 soname_spec='${libname}${release}${shared_ext}$major'
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18650 irix5* | nonstopux*)
18651 libsuff= shlibsuff=
18654 case $LD in # libtool.m4 will add one of these switches to LD
18655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18656 libsuff= shlibsuff= libmagic=32-bit;;
18657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18658 libsuff=32 shlibsuff=N32 libmagic=N32;;
18659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18661 *) libsuff= shlibsuff= libmagic=never-match;;
18665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18666 shlibpath_overrides_runpath=no
18667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18669 hardcode_into_libs=yes
18672 # No shared lib support for Linux oldld, aout, or coff.
18673 linux*oldld* | linux*aout* | linux*coff*)
18677 # This must be Linux ELF.
18678 linux* | k*bsd*-gnu)
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683 soname_spec='${libname}${release}${shared_ext}$major'
18684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 shlibpath_overrides_runpath=no
18687 # Some binutils ld are patched to set DT_RUNPATH
18688 save_LDFLAGS=$LDFLAGS
18689 save_libdir=$libdir
18690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag"
18717 || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest$ac_exeext'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18729 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18730 shlibpath_overrides_runpath=yes
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18738 rm -f conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
18740 LDFLAGS=$save_LDFLAGS
18741 libdir=$save_libdir
18743 # This implies no fast_install, which is unacceptable.
18744 # Some rework will be needed to allow for fast_install
18745 # before this can be enabled.
18746 hardcode_into_libs=yes
18748 # Append ld.so.conf contents to the search path
18749 if test -f /etc/ld.so.conf; then
18750 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18754 # We used to test for /lib/ld.so.1 and disable shared libraries on
18755 # powerpc, because MkLinux only supported shared libraries with the
18756 # GNU dynamic linker. Since this was broken with cross compilers,
18757 # most powerpc-linux boxes support dynamic linking these days and
18758 # people can always --disable-shared, the test was removed, and we
18759 # assume the GNU/Linux dynamic linker is in use.
18760 dynamic_linker='GNU/Linux ld.so'
18767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18770 dynamic_linker='NetBSD (a.out) ld.so'
18772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 dynamic_linker='NetBSD ld.elf_so'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 shlibpath_overrides_runpath=yes
18778 hardcode_into_libs=yes
18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=yes
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 shlibpath_overrides_runpath=no
18796 hardcode_into_libs=yes
18797 dynamic_linker='ldqnx.so'
18802 sys_lib_dlsearch_path_spec="/usr/lib"
18804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18807 *) need_version=no ;;
18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18811 shlibpath_var=LD_LIBRARY_PATH
18812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18814 openbsd2.[89] | openbsd2.[89].*)
18815 shlibpath_overrides_runpath=no
18818 shlibpath_overrides_runpath=yes
18822 shlibpath_overrides_runpath=yes
18827 libname_spec='$name'
18830 library_names_spec='$libname${shared_ext} $libname.a'
18831 dynamic_linker='OS/2 ld.exe'
18832 shlibpath_var=LIBPATH
18835 osf3* | osf4* | osf5*)
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841 shlibpath_var=LD_LIBRARY_PATH
18842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855 soname_spec='${libname}${release}${shared_ext}$major'
18856 shlibpath_var=LD_LIBRARY_PATH
18857 shlibpath_overrides_runpath=yes
18858 hardcode_into_libs=yes
18859 # ldd complains unless libraries are executable
18860 postinstall_cmds='chmod +x $lib'
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18867 shlibpath_var=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath=yes
18869 if test "$with_gnu_ld" = yes; then
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878 soname_spec='${libname}${release}${shared_ext}$major'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 case $host_vendor in
18882 shlibpath_overrides_runpath=no
18884 runpath_var=LD_RUN_PATH
18892 shlibpath_overrides_runpath=no
18893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18899 if test -d /usr/nec ;then
18901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18902 soname_spec='$libname${shared_ext}.$major'
18903 shlibpath_var=LD_LIBRARY_PATH
18907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18908 version_type=freebsd-elf
18911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 shlibpath_var=LD_LIBRARY_PATH
18914 shlibpath_overrides_runpath=yes
18915 hardcode_into_libs=yes
18916 if test "$with_gnu_ld" = yes; then
18917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18926 sys_lib_dlsearch_path_spec='/usr/lib'
18930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18934 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18935 shlibpath_var=LD_LIBRARY_PATH
18936 shlibpath_overrides_runpath=no
18937 hardcode_into_libs=yes
18942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943 soname_spec='${libname}${release}${shared_ext}$major'
18944 shlibpath_var=LD_LIBRARY_PATH
18951 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18952 echo "${ECHO_T}$dynamic_linker" >&6
18953 test "$dynamic_linker" = no && can_build_shared=no
18955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18956 if test "$GCC" = yes; then
18957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19046 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19047 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19049 if test -n "$hardcode_libdir_flag_spec" ||
19050 test -n "$runpath_var" ||
19051 test "X$hardcode_automatic" = "Xyes" ; then
19053 # We can hardcode non-existent directories.
19054 if test "$hardcode_direct" != no &&
19055 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19056 # have to relink, otherwise we might link with an installed library
19057 # when we should be linking with a yet-to-be-installed one
19058 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19059 test "$hardcode_minus_L" != no; then
19060 # Linking always hardcodes the temporary library directory.
19061 hardcode_action=relink
19063 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19064 hardcode_action=immediate
19067 # We cannot hardcode anything, or else we can only hardcode existing
19069 hardcode_action=unsupported
19071 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19072 echo "${ECHO_T}$hardcode_action" >&6
19074 if test "$hardcode_action" = relink ||
19075 test "$inherit_rpath" = yes; then
19076 # Fast installation is not supported
19077 enable_fast_install=no
19078 elif test "$shlibpath_overrides_runpath" = yes ||
19079 test "$enable_shared" = no; then
19080 # Fast installation is not necessary
19081 enable_fast_install=needless
19089 if test "x$enable_dlopen" != xyes; then
19090 enable_dlopen=unknown
19091 enable_dlopen_self=unknown
19092 enable_dlopen_self_static=unknown
19099 lt_cv_dlopen="load_add_on"
19101 lt_cv_dlopen_self=yes
19105 lt_cv_dlopen="LoadLibrary"
19110 lt_cv_dlopen="dlopen"
19115 # if libdl is installed we need to link against it
19116 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19117 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 ac_check_lib_save_LIBS=$LIBS
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19130 /* Override any gcc2 internal prototype to avoid an error. */
19134 /* We use char because int might match the return type of a gcc2
19135 builtin and then its argument prototype would still apply. */
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try='test -s conftest$ac_exeext'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_lib_dl_dlopen=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_lib_dl_dlopen=no
19174 rm -f conftest.err conftest.$ac_objext \
19175 conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19180 if test $ac_cv_lib_dl_dlopen = yes; then
19181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19184 lt_cv_dlopen="dyld"
19186 lt_cv_dlopen_self=yes
19193 echo "$as_me:$LINENO: checking for shl_load" >&5
19194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19195 if test "${ac_cv_func_shl_load+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 cat >conftest.$ac_ext <<_ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19206 #define shl_load innocuous_shl_load
19208 /* System header to define __stub macros and hopefully few prototypes,
19209 which can conflict with char shl_load (); below.
19210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19211 <limits.h> exists even on freestanding compilers. */
19214 # include <limits.h>
19216 # include <assert.h>
19221 /* Override any gcc2 internal prototype to avoid an error. */
19226 /* We use char because int might match the return type of a gcc2
19227 builtin and then its argument prototype would still apply. */
19229 /* The GNU C library defines this for functions which it implements
19230 to always fail with ENOSYS. Some functions are actually named
19231 something starting with __ and the normal name is an alias. */
19232 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19235 char (*f) () = shl_load;
19244 return f != shl_load;
19249 rm -f conftest.$ac_objext conftest$ac_exeext
19250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19251 (eval $ac_link) 2>conftest.er1
19253 grep -v '^ *+' conftest.er1 >conftest.err
19255 cat conftest.err >&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -z "$ac_c_werror_flag"
19259 || test ! -s conftest.err'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest$ac_exeext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_func_shl_load=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_func_shl_load=no
19278 rm -f conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19281 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19282 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19283 if test $ac_cv_func_shl_load = yes; then
19284 lt_cv_dlopen="shl_load"
19286 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19287 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19288 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 ac_check_lib_save_LIBS=$LIBS
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19300 /* Override any gcc2 internal prototype to avoid an error. */
19304 /* We use char because int might match the return type of a gcc2
19305 builtin and then its argument prototype would still apply. */
19315 rm -f conftest.$ac_objext conftest$ac_exeext
19316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19317 (eval $ac_link) 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag"
19325 || test ! -s conftest.err'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest$ac_exeext'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_cv_lib_dld_shl_load=yes
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_lib_dld_shl_load=no
19344 rm -f conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19346 LIBS=$ac_check_lib_save_LIBS
19348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19349 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19350 if test $ac_cv_lib_dld_shl_load = yes; then
19351 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19353 echo "$as_me:$LINENO: checking for dlopen" >&5
19354 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19355 if test "${ac_cv_func_dlopen+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define dlopen innocuous_dlopen
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char dlopen (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19374 # include <limits.h>
19376 # include <assert.h>
19381 /* Override any gcc2 internal prototype to avoid an error. */
19386 /* We use char because int might match the return type of a gcc2
19387 builtin and then its argument prototype would still apply. */
19389 /* The GNU C library defines this for functions which it implements
19390 to always fail with ENOSYS. Some functions are actually named
19391 something starting with __ and the normal name is an alias. */
19392 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19395 char (*f) () = dlopen;
19404 return f != dlopen;
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag"
19419 || test ! -s conftest.err'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest$ac_exeext'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 ac_cv_func_dlopen=yes
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_cv_func_dlopen=no
19438 rm -f conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19442 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19443 if test $ac_cv_func_dlopen = yes; then
19444 lt_cv_dlopen="dlopen"
19446 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 ac_check_lib_save_LIBS=$LIBS
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any gcc2 internal prototype to avoid an error. */
19464 /* We use char because int might match the return type of a gcc2
19465 builtin and then its argument prototype would still apply. */
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19477 (eval $ac_link) 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag"
19485 || test ! -s conftest.err'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest$ac_exeext'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19497 ac_cv_lib_dl_dlopen=yes
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_lib_dl_dlopen=no
19504 rm -f conftest.err conftest.$ac_objext \
19505 conftest$ac_exeext conftest.$ac_ext
19506 LIBS=$ac_check_lib_save_LIBS
19508 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19510 if test $ac_cv_lib_dl_dlopen = yes; then
19511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19513 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lsvld $LIBS"
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19527 /* Override any gcc2 internal prototype to avoid an error. */
19531 /* We use char because int might match the return type of a gcc2
19532 builtin and then its argument prototype would still apply. */
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544 (eval $ac_link) 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_lib_svld_dlopen=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_lib_svld_dlopen=no
19571 rm -f conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19575 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19577 if test $ac_cv_lib_svld_dlopen = yes; then
19578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19580 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 ac_check_lib_save_LIBS=$LIBS
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 /* Override any gcc2 internal prototype to avoid an error. */
19598 /* We use char because int might match the return type of a gcc2
19599 builtin and then its argument prototype would still apply. */
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19611 (eval $ac_link) 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_c_werror_flag"
19619 || test ! -s conftest.err'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest$ac_exeext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_lib_dld_dld_link=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_lib_dld_dld_link=no
19638 rm -f conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19644 if test $ac_cv_lib_dld_dld_link = yes; then
19645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19666 if test "x$lt_cv_dlopen" != xno; then
19672 case $lt_cv_dlopen in
19674 save_CPPFLAGS="$CPPFLAGS"
19675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19677 save_LDFLAGS="$LDFLAGS"
19678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19681 LIBS="$lt_cv_dlopen_libs $LIBS"
19683 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19685 if test "${lt_cv_dlopen_self+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 if test "$cross_compiling" = yes; then :
19689 lt_cv_dlopen_self=cross
19691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19692 lt_status=$lt_dlunknown
19693 cat > conftest.$ac_ext <<_LT_EOF
19694 #line 19694 "configure"
19695 #include "confdefs.h"
19704 # define LT_DLGLOBAL RTLD_GLOBAL
19707 # define LT_DLGLOBAL DL_GLOBAL
19709 # define LT_DLGLOBAL 0
19713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19714 find out it does not work in some platform. */
19715 #ifndef LT_DLLAZY_OR_NOW
19717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19720 # define LT_DLLAZY_OR_NOW DL_LAZY
19723 # define LT_DLLAZY_OR_NOW RTLD_NOW
19726 # define LT_DLLAZY_OR_NOW DL_NOW
19728 # define LT_DLLAZY_OR_NOW 0
19736 extern "C" void exit (int);
19739 void fnord() { int i=42;}
19742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19743 int status = $lt_dlunknown;
19747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19749 /* dlclose (self); */
19757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758 (eval $ac_link) 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19762 (./conftest; exit; ) >&5 2>/dev/null
19764 case x$lt_status in
19765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19770 # compilation failed
19771 lt_cv_dlopen_self=no
19778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19781 if test "x$lt_cv_dlopen_self" = xyes; then
19782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19783 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19785 if test "${lt_cv_dlopen_self_static+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 if test "$cross_compiling" = yes; then :
19789 lt_cv_dlopen_self_static=cross
19791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19792 lt_status=$lt_dlunknown
19793 cat > conftest.$ac_ext <<_LT_EOF
19794 #line 19794 "configure"
19795 #include "confdefs.h"
19804 # define LT_DLGLOBAL RTLD_GLOBAL
19807 # define LT_DLGLOBAL DL_GLOBAL
19809 # define LT_DLGLOBAL 0
19813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19814 find out it does not work in some platform. */
19815 #ifndef LT_DLLAZY_OR_NOW
19817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19820 # define LT_DLLAZY_OR_NOW DL_LAZY
19823 # define LT_DLLAZY_OR_NOW RTLD_NOW
19826 # define LT_DLLAZY_OR_NOW DL_NOW
19828 # define LT_DLLAZY_OR_NOW 0
19836 extern "C" void exit (int);
19839 void fnord() { int i=42;}
19842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19843 int status = $lt_dlunknown;
19847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19849 /* dlclose (self); */
19857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19858 (eval $ac_link) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19862 (./conftest; exit; ) >&5 2>/dev/null
19864 case x$lt_status in
19865 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19866 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19867 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19870 # compilation failed
19871 lt_cv_dlopen_self_static=no
19878 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19879 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19882 CPPFLAGS="$save_CPPFLAGS"
19883 LDFLAGS="$save_LDFLAGS"
19888 case $lt_cv_dlopen_self in
19889 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19890 *) enable_dlopen_self=unknown ;;
19893 case $lt_cv_dlopen_self_static in
19894 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19895 *) enable_dlopen_self_static=unknown ;;
19917 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19918 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19919 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19920 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19921 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19922 echo "$as_me:$LINENO: result: yes" >&5
19923 echo "${ECHO_T}yes" >&6
19925 # FIXME - insert some real tests, host_os isn't really good enough
19928 if test -n "$STRIP" ; then
19929 striplib="$STRIP -x"
19930 old_striplib="$STRIP -S"
19931 echo "$as_me:$LINENO: result: yes" >&5
19932 echo "${ECHO_T}yes" >&6
19934 echo "$as_me:$LINENO: result: no" >&5
19935 echo "${ECHO_T}no" >&6
19939 echo "$as_me:$LINENO: result: no" >&5
19940 echo "${ECHO_T}no" >&6
19956 # Report which library types will actually be built
19957 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19959 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19960 echo "${ECHO_T}$can_build_shared" >&6
19962 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19964 test "$can_build_shared" = "no" && enable_shared=no
19966 # On AIX, shared libraries and static libraries use the same namespace, and
19967 # are all built from PIC.
19970 test "$enable_shared" = yes && enable_static=no
19971 if test -n "$RANLIB"; then
19972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19973 postinstall_cmds='$RANLIB $lib'
19978 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19979 test "$enable_shared" = yes && enable_static=no
19983 echo "$as_me:$LINENO: result: $enable_shared" >&5
19984 echo "${ECHO_T}$enable_shared" >&6
19986 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19987 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19988 # Make sure either enable_shared or enable_static is yes.
19989 test "$enable_shared" = yes || enable_static=yes
19990 echo "$as_me:$LINENO: result: $enable_static" >&5
19991 echo "${ECHO_T}$enable_static" >&6
19998 ac_cpp='$CPP $CPPFLAGS'
19999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20020 # Only expand once:
20026 # Identify the assembler which will work hand-in-glove with the newly
20027 # built GCC, so that we can examine its features. This is the assembler
20028 # which will be driven by the driver program.
20030 # If build != host, and we aren't building gas in-tree, we identify a
20031 # build->target assembler and hope that it will have the same features
20032 # as the host->target assembler we'll be using.
20033 gcc_cv_gas_major_version=
20034 gcc_cv_gas_minor_version=
20035 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20037 if test "${gcc_cv_as+set}" = set; then
20041 if test -x "$DEFAULT_ASSEMBLER"; then
20042 gcc_cv_as="$DEFAULT_ASSEMBLER"
20043 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20044 && test -f ../gas/Makefile \
20045 && test x$build = x$host; then
20046 gcc_cv_as=../gas/as-new$build_exeext
20047 elif test -x as$build_exeext; then
20048 # Build using assembler in the current directory.
20049 gcc_cv_as=./as$build_exeext
20050 elif test -x $AS_FOR_TARGET; then
20051 gcc_cv_as="$AS_FOR_TARGET"
20053 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20054 set dummy $AS_FOR_TARGET; ac_word=$2
20055 echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20057 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20069 test -z "$as_dir" && as_dir=.
20070 for ac_exec_ext in '' $ac_executable_extensions; do
20071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20072 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20082 gcc_cv_as=$ac_cv_path_gcc_cv_as
20084 if test -n "$gcc_cv_as"; then
20085 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20086 echo "${ECHO_T}$gcc_cv_as" >&6
20088 echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6
20096 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20098 case "$ORIGINAL_AS_FOR_TARGET" in
20099 ./as | ./as$build_exeext) ;;
20100 *) ac_config_files="$ac_config_files as:exec-tool.in"
20104 echo "$as_me:$LINENO: checking what assembler to use" >&5
20105 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20106 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20107 # Single tree build which includes gas. We want to prefer it
20108 # over whatever linker top-level may have detected, since
20109 # we'll use what we're building after installation anyway.
20110 echo "$as_me:$LINENO: result: newly built gas" >&5
20111 echo "${ECHO_T}newly built gas" >&6
20113 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20114 for f in $gcc_cv_as_bfd_srcdir/configure \
20115 $gcc_cv_as_gas_srcdir/configure \
20116 $gcc_cv_as_gas_srcdir/configure.in \
20117 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20118 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20119 if test x$gcc_cv_gas_version != x; then
20123 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20124 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20125 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20126 case $gcc_cv_gas_patch_version in
20127 "") gcc_cv_gas_patch_version="0" ;;
20129 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20130 + $gcc_cv_gas_minor_version \) \* 1000 \
20131 + $gcc_cv_gas_patch_version`
20133 in_tree_gas_is_elf=no
20134 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20135 || (grep 'obj_format = multi' ../gas/Makefile \
20136 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20138 in_tree_gas_is_elf=yes
20141 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20142 echo "${ECHO_T}$gcc_cv_as" >&6
20146 # Identify the linker which will work hand-in-glove with the newly
20147 # built GCC, so that we can examine its features. This is the linker
20148 # which will be driven by the driver program.
20150 # If build != host, and we aren't building gas in-tree, we identify a
20151 # build->target linker and hope that it will have the same features
20152 # as the host->target linker we'll be using.
20153 gcc_cv_gld_major_version=
20154 gcc_cv_gld_minor_version=
20155 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20156 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20158 if test "${gcc_cv_ld+set}" = set; then
20162 if test -x "$DEFAULT_LINKER"; then
20163 gcc_cv_ld="$DEFAULT_LINKER"
20164 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20165 && test -f ../ld/Makefile \
20166 && test x$build = x$host; then
20167 gcc_cv_ld=../ld/ld-new$build_exeext
20168 elif test -x collect-ld$build_exeext; then
20169 # Build using linker in the current directory.
20170 gcc_cv_ld=./collect-ld$build_exeext
20171 elif test -x $LD_FOR_TARGET; then
20172 gcc_cv_ld="$LD_FOR_TARGET"
20174 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20175 set dummy $LD_FOR_TARGET; ac_word=$2
20176 echo "$as_me:$LINENO: checking for $ac_word" >&5
20177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20178 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20187 for as_dir in $PATH
20190 test -z "$as_dir" && as_dir=.
20191 for ac_exec_ext in '' $ac_executable_extensions; do
20192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20193 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20203 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20205 if test -n "$gcc_cv_ld"; then
20206 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20207 echo "${ECHO_T}$gcc_cv_ld" >&6
20209 echo "$as_me:$LINENO: result: no" >&5
20210 echo "${ECHO_T}no" >&6
20217 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20219 case "$ORIGINAL_LD_FOR_TARGET" in
20220 ./collect-ld | ./collect-ld$build_exeext) ;;
20221 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20225 echo "$as_me:$LINENO: checking what linker to use" >&5
20226 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20227 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20228 # Single tree build which includes ld. We want to prefer it
20229 # over whatever linker top-level may have detected, since
20230 # we'll use what we're building after installation anyway.
20231 echo "$as_me:$LINENO: result: newly built ld" >&5
20232 echo "${ECHO_T}newly built ld" >&6
20234 in_tree_ld_is_elf=no
20235 if (grep 'EMUL = .*elf' ../ld/Makefile \
20236 || grep 'EMUL = .*linux' ../ld/Makefile \
20237 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20238 in_tree_ld_is_elf=yes
20240 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
20242 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20243 if test x$gcc_cv_gld_version != x; then
20247 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20248 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20250 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20251 echo "${ECHO_T}$gcc_cv_ld" >&6
20255 # Figure out what nm we will be using.
20256 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20257 if test "${gcc_cv_nm+set}" = set; then
20261 if test -f $gcc_cv_binutils_srcdir/configure.in \
20262 && test -f ../binutils/Makefile \
20263 && test x$build = x$host; then
20264 gcc_cv_nm=../binutils/nm-new$build_exeext
20265 elif test -x nm$build_exeext; then
20266 gcc_cv_nm=./nm$build_exeext
20267 elif test -x $NM_FOR_TARGET; then
20268 gcc_cv_nm="$NM_FOR_TARGET"
20270 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20271 set dummy $NM_FOR_TARGET; ac_word=$2
20272 echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20274 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20286 test -z "$as_dir" && as_dir=.
20287 for ac_exec_ext in '' $ac_executable_extensions; do
20288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20289 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20299 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20301 if test -n "$gcc_cv_nm"; then
20302 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20303 echo "${ECHO_T}$gcc_cv_nm" >&6
20305 echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6
20313 echo "$as_me:$LINENO: checking what nm to use" >&5
20314 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20315 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20316 # Single tree build which includes binutils.
20317 echo "$as_me:$LINENO: result: newly built nm" >&5
20318 echo "${ECHO_T}newly built nm" >&6
20321 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20322 echo "${ECHO_T}$gcc_cv_nm" >&6
20326 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20328 case "$ORIGINAL_NM_FOR_TARGET" in
20329 ./nm | ./nm$build_exeext) ;;
20330 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20335 # Figure out what objdump we will be using.
20336 if test "${gcc_cv_objdump+set}" = set; then
20340 if test -f $gcc_cv_binutils_srcdir/configure.in \
20341 && test -f ../binutils/Makefile \
20342 && test x$build = x$host; then
20343 # Single tree build which includes binutils.
20344 gcc_cv_objdump=../binutils/objdump$build_exeext
20345 elif test -x objdump$build_exeext; then
20346 gcc_cv_objdump=./objdump$build_exeext
20347 elif test -x $OBJDUMP_FOR_TARGET; then
20348 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20350 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20351 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20352 echo "$as_me:$LINENO: checking for $ac_word" >&5
20353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20354 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 case $gcc_cv_objdump in
20359 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20363 for as_dir in $PATH
20366 test -z "$as_dir" && as_dir=.
20367 for ac_exec_ext in '' $ac_executable_extensions; do
20368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20369 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20379 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20381 if test -n "$gcc_cv_objdump"; then
20382 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20383 echo "${ECHO_T}$gcc_cv_objdump" >&6
20385 echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20393 echo "$as_me:$LINENO: checking what objdump to use" >&5
20394 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20395 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20396 # Single tree build which includes binutils.
20397 echo "$as_me:$LINENO: result: newly built objdump" >&5
20398 echo "${ECHO_T}newly built objdump" >&6
20399 elif test x$gcc_cv_objdump = x; then
20400 echo "$as_me:$LINENO: result: not found" >&5
20401 echo "${ECHO_T}not found" >&6
20403 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20404 echo "${ECHO_T}$gcc_cv_objdump" >&6
20407 # Figure out what assembler alignment features are present.
20408 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20409 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20410 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 gcc_cv_as_balign_and_p2align=no
20414 if test $in_tree_gas = yes; then
20415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20416 then gcc_cv_as_balign_and_p2align=yes
20418 elif test x$gcc_cv_as != x; then
20420 .p2align 2' > conftest.s
20421 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }
20428 gcc_cv_as_balign_and_p2align=yes
20430 echo "configure: failed program was" >&5
20433 rm -f conftest.o conftest.s
20436 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20437 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20438 if test $gcc_cv_as_balign_and_p2align = yes; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20446 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20447 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20448 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 gcc_cv_as_max_skip_p2align=no
20452 if test $in_tree_gas = yes; then
20453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20454 then gcc_cv_as_max_skip_p2align=yes
20456 elif test x$gcc_cv_as != x; then
20457 echo '.p2align 4,,7' > conftest.s
20458 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }
20465 gcc_cv_as_max_skip_p2align=yes
20467 echo "configure: failed program was" >&5
20470 rm -f conftest.o conftest.s
20473 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20474 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20475 if test $gcc_cv_as_max_skip_p2align = yes; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20483 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20484 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20485 if test "${gcc_cv_as_literal16+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 gcc_cv_as_literal16=no
20489 if test $in_tree_gas = yes; then
20490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20491 then gcc_cv_as_literal16=yes
20493 elif test x$gcc_cv_as != x; then
20494 echo '.literal16' > conftest.s
20495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }
20502 gcc_cv_as_literal16=yes
20504 echo "configure: failed program was" >&5
20507 rm -f conftest.o conftest.s
20510 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20511 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20512 if test $gcc_cv_as_literal16 = yes; then
20514 cat >>confdefs.h <<\_ACEOF
20515 #define HAVE_GAS_LITERAL16 1
20520 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20521 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20522 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 gcc_cv_as_subsection_m1=no
20526 if test $in_tree_gas = yes; then
20527 if test $in_tree_gas_is_elf = yes \
20528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20529 then gcc_cv_as_subsection_m1=yes
20531 elif test x$gcc_cv_as != x; then
20532 echo 'conftest_label1: .word 0
20534 conftest_label2: .word 0
20535 .previous' > conftest.s
20536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }
20543 if test x$gcc_cv_nm != x; then
20544 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20545 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20546 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20548 else gcc_cv_as_subsection_m1=yes
20550 rm -f conftest.nm1 conftest.nm2
20553 echo "configure: failed program was" >&5
20556 rm -f conftest.o conftest.s
20559 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20560 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20561 if test $gcc_cv_as_subsection_m1 = yes; then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_GAS_SUBSECTION_ORDERING 1
20569 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20570 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20571 if test "${gcc_cv_as_weak+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 if test $in_tree_gas = yes; then
20576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20577 then gcc_cv_as_weak=yes
20579 elif test x$gcc_cv_as != x; then
20580 echo ' .weak foobar' > conftest.s
20581 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }
20590 echo "configure: failed program was" >&5
20593 rm -f conftest.o conftest.s
20596 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20597 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20598 if test $gcc_cv_as_weak = yes; then
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_GAS_WEAK 1
20606 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20607 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20608 if test "${gcc_cv_as_weakref+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 gcc_cv_as_weakref=no
20612 if test $in_tree_gas = yes; then
20613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20614 then gcc_cv_as_weakref=yes
20616 elif test x$gcc_cv_as != x; then
20617 echo ' .weakref foobar, barfnot' > conftest.s
20618 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }
20625 gcc_cv_as_weakref=yes
20627 echo "configure: failed program was" >&5
20630 rm -f conftest.o conftest.s
20633 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20634 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20635 if test $gcc_cv_as_weakref = yes; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_GAS_WEAKREF 1
20643 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20644 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20645 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 gcc_cv_as_nsubspa_comdat=no
20649 if test $in_tree_gas = yes; then
20650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20651 then gcc_cv_as_nsubspa_comdat=yes
20653 elif test x$gcc_cv_as != x; then
20654 echo ' .SPACE $TEXT$
20655 .NSUBSPA $CODE$,COMDAT' > conftest.s
20656 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }
20663 gcc_cv_as_nsubspa_comdat=yes
20665 echo "configure: failed program was" >&5
20668 rm -f conftest.o conftest.s
20671 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20672 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20673 if test $gcc_cv_as_nsubspa_comdat = yes; then
20675 cat >>confdefs.h <<\_ACEOF
20676 #define HAVE_GAS_NSUBSPA_COMDAT 1
20681 # .hidden needs to be supported in both the assembler and the linker,
20682 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20683 # This is irritatingly difficult to feature test for; we have to check the
20684 # date string after the version number. If we've got an in-tree
20685 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20687 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20688 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20689 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20690 if test "${gcc_cv_as_hidden+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 gcc_cv_as_hidden=no
20694 if test $in_tree_gas = yes; then
20695 if test $in_tree_gas_is_elf = yes \
20696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20697 then gcc_cv_as_hidden=yes
20699 elif test x$gcc_cv_as != x; then
20700 echo ' .hidden foobar
20701 foobar:' > conftest.s
20702 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }
20709 gcc_cv_as_hidden=yes
20711 echo "configure: failed program was" >&5
20714 rm -f conftest.o conftest.s
20717 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20718 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20721 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20722 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20723 if test "${gcc_cv_ld_hidden+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 if test $in_tree_ld = yes ; then
20727 gcc_cv_ld_hidden=no
20728 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
20729 && test $in_tree_ld_is_elf = yes; then
20730 gcc_cv_ld_hidden=yes
20733 gcc_cv_ld_hidden=yes
20734 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20735 if echo "$ld_ver" | grep GNU > /dev/null; then
20736 ld_vers=`echo $ld_ver | sed -n \
20737 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20738 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
20739 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20740 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20741 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20742 if test 0"$ld_date" -lt 20020404; then
20743 if test -n "$ld_date"; then
20744 # If there was date string, but was earlier than 2002-04-04, fail
20745 gcc_cv_ld_hidden=no
20746 elif test -z "$ld_vers"; then
20747 # If there was no date string nor ld version number, something is wrong
20748 gcc_cv_ld_hidden=no
20750 test -z "$ld_vers_patch" && ld_vers_patch=0
20751 if test "$ld_vers_major" -lt 2; then
20752 gcc_cv_ld_hidden=no
20753 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20754 gcc_cv_ld_hidden="no"
20755 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20756 gcc_cv_ld_hidden=no
20761 case "${target}" in
20762 hppa64*-*-hpux* | ia64*-*-hpux*)
20763 gcc_cv_ld_hidden=yes
20766 gcc_cv_ld_hidden=no
20772 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20773 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20774 libgcc_visibility=no
20777 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20778 libgcc_visibility=yes
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_GAS_HIDDEN 1
20786 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20787 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20788 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20789 if test "${gcc_cv_as_leb128+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 gcc_cv_as_leb128=no
20793 if test $in_tree_gas = yes; then
20794 if test $in_tree_gas_is_elf = yes \
20795 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20796 then gcc_cv_as_leb128=yes
20798 elif test x$gcc_cv_as != x; then
20805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }
20812 # GAS versions before 2.11 do not support uleb128,
20813 # despite appearing to.
20814 # ??? There exists an elf-specific test that will crash
20815 # the assembler. Perhaps it's better to figure out whether
20816 # arbitrary sections are supported and try the test.
20817 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20818 if echo "$as_ver" | grep GNU > /dev/null; then
20819 as_vers=`echo $as_ver | sed -n \
20820 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20821 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20822 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20823 if test $as_major -eq 2 && test $as_minor -lt 11
20825 else gcc_cv_as_leb128=yes
20829 echo "configure: failed program was" >&5
20832 rm -f conftest.o conftest.s
20835 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20836 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20837 if test $gcc_cv_as_leb128 = yes; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_AS_LEB128 1
20845 # GAS versions up to and including 2.11.0 may mis-optimize
20847 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20848 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20849 if test "${gcc_cv_as_eh_frame+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 gcc_cv_as_eh_frame=no
20853 if test $in_tree_gas = yes; then
20854 if test $in_tree_gas_is_elf = yes \
20855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20856 then gcc_cv_as_eh_frame=yes
20858 elif test x$gcc_cv_as != x; then
20865 .section .eh_frame,"aw",@progbits
20867 .4byte .LECIE1-.LSCIE1
20881 .4byte .LEFDE1-.LASFDE1
20883 .4byte .LASFDE1-__FRAME_BEGIN__
20890 .LEFDE1:' > conftest.s
20891 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }
20898 cat > conftest.lit <<EOF
20899 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20900 0010 01000000 12000000 18000000 00000000 ................
20901 0020 08000000 04080000 0044 .........D
20903 cat > conftest.big <<EOF
20904 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20905 0010 00000001 00000012 00000018 00000000 ................
20906 0020 00000008 04000000 0844 .........D
20908 # If the assembler didn't choke, and we can objdump,
20909 # and we got the correct data, then succeed.
20910 # The text in the here-document typically retains its unix-style line
20911 # endings, while the output of objdump will use host line endings.
20912 # Therefore, use diff -b for the comparisons.
20913 if test x$gcc_cv_objdump != x \
20914 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20915 | tail -3 > conftest.got \
20916 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20917 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20919 gcc_cv_as_eh_frame=yes
20920 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20926 gcc_cv_as_eh_frame=buggy
20928 # Uh oh, what do we do now?
20929 gcc_cv_as_eh_frame=no
20932 echo "configure: failed program was" >&5
20935 rm -f conftest.o conftest.s
20938 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20939 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20942 if test $gcc_cv_as_eh_frame = buggy; then
20944 cat >>confdefs.h <<\_ACEOF
20945 #define USE_AS_TRADITIONAL_FORMAT 1
20950 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20951 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20952 if test "${gcc_cv_as_shf_merge+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 gcc_cv_as_shf_merge=no
20956 if test $in_tree_gas = yes; then
20957 if test $in_tree_gas_is_elf = yes \
20958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20959 then gcc_cv_as_shf_merge=yes
20961 elif test x$gcc_cv_as != x; then
20962 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20963 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }
20970 gcc_cv_as_shf_merge=yes
20972 echo "configure: failed program was" >&5
20975 rm -f conftest.o conftest.s
20978 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20979 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20981 if test $gcc_cv_as_shf_merge = no; then
20982 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20983 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20984 if test "${gcc_cv_as_shf_merge+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 gcc_cv_as_shf_merge=no
20988 if test $in_tree_gas = yes; then
20989 if test $in_tree_gas_is_elf = yes \
20990 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20991 then gcc_cv_as_shf_merge=yes
20993 elif test x$gcc_cv_as != x; then
20994 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20995 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }
21002 gcc_cv_as_shf_merge=yes
21004 echo "configure: failed program was" >&5
21007 rm -f conftest.o conftest.s
21010 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21011 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21020 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21021 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21022 if test "${gcc_cv_as_comdat_group+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 gcc_cv_as_comdat_group=no
21026 if test $in_tree_gas = yes; then
21027 if test $in_tree_gas_is_elf = yes \
21028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21029 then gcc_cv_as_comdat_group=yes
21031 elif test x$gcc_cv_as != x; then
21032 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21033 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }
21040 gcc_cv_as_comdat_group=yes
21042 echo "configure: failed program was" >&5
21045 rm -f conftest.o conftest.s
21048 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21049 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21051 if test $gcc_cv_as_comdat_group = yes; then
21052 gcc_cv_as_comdat_group_percent=no
21054 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21055 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21056 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 gcc_cv_as_comdat_group_percent=no
21060 if test $in_tree_gas = yes; then
21061 if test $in_tree_gas_is_elf = yes \
21062 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21063 then gcc_cv_as_comdat_group_percent=yes
21065 elif test x$gcc_cv_as != x; then
21066 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21067 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }
21074 gcc_cv_as_comdat_group_percent=yes
21076 echo "configure: failed program was" >&5
21079 rm -f conftest.o conftest.s
21082 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21083 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21086 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21088 if test 0"$ld_date" -lt 20050308; then
21089 if test -n "$ld_date"; then
21090 # If there was date string, but was earlier than 2005-03-08, fail
21092 elif test "$ld_vers_major" -lt 2; then
21094 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21099 # assume linkers other than GNU ld don't support COMDAT group
21102 if test $comdat_group = no; then
21103 gcc_cv_as_comdat_group=no
21104 gcc_cv_as_comdat_group_percent=no
21107 cat >>confdefs.h <<_ACEOF
21108 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21112 # Thread-local storage - the check is heavily parametrized.
21120 .section ".tdata","awT",@progbits
21123 ldq $27,__tls_get_addr($29) !literal!1
21124 lda $16,foo($29) !tlsgd!1
21125 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21126 ldq $27,__tls_get_addr($29) !literal!2
21127 lda $16,foo($29) !tlsldm!2
21128 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21129 ldq $1,foo($29) !gotdtprel
21130 ldah $2,foo($29) !dtprelhi
21131 lda $3,foo($2) !dtprello
21132 lda $4,foo($29) !dtprel
21133 ldq $1,foo($29) !gottprel
21134 ldah $2,foo($29) !tprelhi
21135 lda $3,foo($2) !tprello
21136 lda $4,foo($29) !tprel'
21139 tls_as_opt=--fatal-warnings
21143 .section ".tdata","awT",@progbits
21146 call #gettlsoff(x)'
21155 .section ".tdata","awT",@progbits
21159 addil LT%foo-$tls_gdidx$,gp
21160 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21163 addil LT%foo-$tls_ldidx$,gp
21165 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21166 addil LR%foo-$tls_dtpoff$,%ret0
21167 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21169 addil LT%foo-$tls_ieoff$,gp
21170 ldw RT%foo-$tls_ieoff$(%r1),%t2
21173 addil LR%foo-$tls_leoff$,%t1
21174 ldo RR%foo-$tls_leoff$(%r1),%t2'
21177 tls_as_opt=--fatal-warnings
21181 .section ".tdata","awT",%progbits
21184 .word foo(gottpoff)
21194 .section ".tdata","awT",@progbits
21198 leal foo@TLSGD(,%ebx,1), %eax
21199 leal foo@TLSLDM(%ebx), %eax
21200 leal foo@DTPOFF(%eax), %edx
21201 movl foo@GOTTPOFF(%ebx), %eax
21202 subl foo@GOTTPOFF(%ebx), %eax
21203 addl foo@GOTNTPOFF(%ebx), %eax
21204 movl foo@INDNTPOFF, %eax
21205 movl $foo@TPOFF, %eax
21206 subl $foo@TPOFF, %eax
21207 leal foo@NTPOFF(%ecx), %eax'
21210 tls_as_opt=--fatal-warnings
21214 .section ".tdata","awT",@progbits
21218 leaq foo@TLSGD(%rip), %rdi
21219 leaq foo@TLSLD(%rip), %rdi
21220 leaq foo@DTPOFF(%rax), %rdx
21221 movq foo@GOTTPOFF(%rip), %rax
21222 movq $foo@TPOFF, %rax'
21225 tls_as_opt=--fatal-warnings
21229 .section ".tdata","awT",@progbits
21232 addl r16 = @ltoff(@dtpmod(foo#)), gp
21233 addl r17 = @ltoff(@dtprel(foo#)), gp
21234 addl r18 = @ltoff(@tprel(foo#)), gp
21235 addl r19 = @dtprel(foo#), gp
21236 adds r21 = @dtprel(foo#), r13
21237 movl r23 = @dtprel(foo#)
21238 addl r20 = @tprel(foo#), gp
21239 adds r22 = @tprel(foo#), r13
21240 movl r24 = @tprel(foo#)'
21243 tls_as_opt=--fatal-warnings
21247 .section .tdata,"awT",@progbits
21251 addiu $4, $28, %tlsgd(x)
21252 addiu $4, $28, %tlsldm(x)
21253 lui $4, %dtprel_hi(x)
21254 addiu $4, $4, %dtprel_lo(x)
21255 lw $4, %gottprel(x)($28)
21256 lui $4, %tprel_hi(x)
21257 addiu $4, $4, %tprel_lo(x)'
21260 tls_as_opt='-32 --fatal-warnings'
21264 .section ".tdata","awT",@progbits
21272 addi 3,31,ld0@got@tlsgd
21274 addi 3,31,x1@got@tlsld
21277 addis 9,3,x2@dtprel@ha
21278 addi 9,9,x2@dtprel@l
21279 lwz 9,x3@got@tprel(31)
21282 addis 9,2,x2@tprel@ha
21283 addi 9,9,x2@tprel@l'
21286 tls_as_opt="-a32 --fatal-warnings"
21290 .section ".tdata","awT",@progbits
21298 addi 3,2,ld0@got@tlsgd
21304 addi 3,2,x1@got@tlsld
21310 addis 9,3,x2@dtprel@ha
21311 addi 9,9,x2@dtprel@l
21314 ld 9,x3@got@dtprel(2)
21320 tls_as_opt="-a64 --fatal-warnings"
21324 .section ".tdata","awT",@progbits
21331 .long foo@GOTNTPOFF
21332 .long foo@INDNTPOFF
21333 l %r1,foo@GOTNTPOFF(%r12)
21334 l %r1,0(%r1):tls_load:foo
21335 bas %r14,0(%r1,%r13):tls_gdcall:foo
21336 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21339 tls_as_opt="-m31 --fatal-warnings"
21343 .section ".tdata","awT",@progbits
21350 .quad foo@GOTNTPOFF
21351 lg %r1,foo@GOTNTPOFF(%r12)
21352 larl %r1,foo@INDNTPOFF
21353 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21354 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21357 tls_as_opt="-m64 -Aesame --fatal-warnings"
21359 sh-*-* | sh[34]-*-*)
21361 .section ".tdata","awT",@progbits
21371 tls_as_opt=--fatal-warnings
21375 sparc*-sun-solaris2.[56789]*)
21376 # TLS was introduced in the Solaris 9 4/04 release but
21377 # we do not enable it by default on Solaris 9 either.
21378 if test "x$enable_tls" = xyes ; then
21384 sparc*-sun-solaris2.*)
21391 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21393 .section ".tdata",#alloc,#write,#tls
21396 sethi %tgd_hi22(foo), %o0
21397 add %o0, %tgd_lo10(foo), %o1
21398 add %l7, %o1, %o0, %tgd_add(foo)
21399 call __tls_get_addr, %tgd_call(foo)
21400 sethi %tldm_hi22(foo), %l1
21401 add %l1, %tldm_lo10(foo), %l2
21402 add %l7, %l2, %o0, %tldm_add(foo)
21403 call __tls_get_addr, %tldm_call(foo)
21404 sethi %tldo_hix22(foo), %l3
21405 xor %l3, %tldo_lox10(foo), %l4
21406 add %o0, %l4, %l5, %tldo_add(foo)
21407 sethi %tie_hi22(foo), %o3
21408 add %o3, %tie_lo10(foo), %o3
21409 ld [%l7 + %o3], %o2, %tie_ld(foo)
21410 add %g7, %o2, %o4, %tie_add(foo)
21411 sethi %tle_hix22(foo), %l1
21412 xor %l1, %tle_lox10(foo), %o5
21413 ld [%g7 + %o5], %o1'
21418 .section ".tdata","awT",@progbits
21421 sethi %tgd_hi22(foo), %o0
21422 add %o0, %tgd_lo10(foo), %o1
21423 add %l7, %o1, %o0, %tgd_add(foo)
21424 call __tls_get_addr, %tgd_call(foo)
21425 sethi %tldm_hi22(foo), %l1
21426 add %l1, %tldm_lo10(foo), %l2
21427 add %l7, %l2, %o0, %tldm_add(foo)
21428 call __tls_get_addr, %tldm_call(foo)
21429 sethi %tldo_hix22(foo), %l3
21430 xor %l3, %tldo_lox10(foo), %l4
21431 add %o0, %l4, %l5, %tldo_add(foo)
21432 sethi %tie_hi22(foo), %o3
21433 add %o3, %tie_lo10(foo), %o3
21434 ld [%l7 + %o3], %o2, %tie_ld(foo)
21435 add %g7, %o2, %o4, %tie_add(foo)
21436 sethi %tle_hix22(foo), %l1
21437 xor %l1, %tle_lox10(foo), %o5
21438 ld [%g7 + %o5], %o1'
21441 tls_as_opt="-32 --fatal-warnings"
21446 if test "x$enable_tls" = xno ; then
21447 : # TLS explicitly disabled.
21448 elif test "x$enable_tls" = xyes ; then
21449 set_have_as_tls=yes # TLS explicitly enabled.
21450 elif test -z "$tls_first_major"; then
21451 : # If we don't have a check, assume no support.
21453 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21454 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21455 if test "${gcc_cv_as_tls+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 if test $in_tree_gas = yes; then
21460 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21461 then gcc_cv_as_tls=yes
21463 elif test x$gcc_cv_as != x; then
21464 echo "$conftest_s" > conftest.s
21465 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }
21474 echo "configure: failed program was" >&5
21477 rm -f conftest.o conftest.s
21480 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21481 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21482 if test $gcc_cv_as_tls = yes; then
21483 set_have_as_tls=yes
21486 if test $set_have_as_tls = yes ; then
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_AS_TLS 1
21494 # Target-specific assembler checks.
21496 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21497 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21498 gcc_cv_ld_static_dynamic=no
21499 if test $in_tree_ld = yes ; then
21500 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21501 gcc_cv_ld_static_dynamic=yes
21503 elif test x$gcc_cv_ld != x; then
21504 # Check if linker supports -Bstatic/-Bdynamic option
21505 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21506 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21507 gcc_cv_ld_static_dynamic=yes
21510 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21512 cat >>confdefs.h <<\_ACEOF
21513 #define HAVE_LD_STATIC_DYNAMIC 1
21517 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21518 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21520 if test x"$demangler_in_ld" = xyes; then
21521 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21522 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21523 gcc_cv_ld_demangle=no
21524 if test $in_tree_ld = yes; then
21525 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
21526 gcc_cv_ld_demangle=yes
21528 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21529 # Check if the GNU linker supports --demangle option
21530 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21531 gcc_cv_ld_demangle=yes
21534 if test x"$gcc_cv_ld_demangle" = xyes; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_LD_DEMANGLE 1
21541 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21542 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21546 # All TARGET_ABI_OSF targets.
21547 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21548 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21549 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21550 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 gcc_cv_as_alpha_explicit_relocs=no
21554 if test $in_tree_gas = yes; then
21555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21556 then gcc_cv_as_alpha_explicit_relocs=yes
21558 elif test x$gcc_cv_as != x; then
21559 echo ' .set nomacro
21561 extbl $3, $2, $3 !lituse_bytoff!1
21562 ldq $2, a($29) !literal!1
21563 ldq $4, b($29) !literal!2
21564 ldq_u $3, 0($2) !lituse_base!1
21565 ldq $27, f($29) !literal!5
21566 jsr $26, ($27), f !lituse_jsr!5
21567 ldah $29, 0($26) !gpdisp!3
21568 lda $0, c($29) !gprel
21569 ldah $1, d($29) !gprelhigh
21570 lda $1, d($1) !gprellow
21571 lda $29, 0($29) !gpdisp!3' > conftest.s
21572 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; }
21579 gcc_cv_as_alpha_explicit_relocs=yes
21581 echo "configure: failed program was" >&5
21584 rm -f conftest.o conftest.s
21587 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21588 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21589 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_AS_EXPLICIT_RELOCS 1
21596 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21597 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21598 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 gcc_cv_as_alpha_jsrdirect_relocs=no
21602 if test $in_tree_gas = yes; then
21603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21604 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21606 elif test x$gcc_cv_as != x; then
21607 echo ' .set nomacro
21609 ldq $27, a($29) !literal!1
21610 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21611 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613 (eval $ac_try) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }
21618 gcc_cv_as_alpha_jsrdirect_relocs=yes
21620 echo "configure: failed program was" >&5
21623 rm -f conftest.o conftest.s
21626 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21627 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21628 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21630 cat >>confdefs.h <<\_ACEOF
21631 #define HAVE_AS_JSRDIRECT_RELOCS 1
21638 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21639 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21640 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 gcc_cv_as_cris_no_mul_bug=no
21644 if test $in_tree_gas = yes; then
21645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21646 then gcc_cv_as_cris_no_mul_bug=yes
21648 elif test x$gcc_cv_as != x; then
21649 echo '.text' > conftest.s
21650 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }
21657 gcc_cv_as_cris_no_mul_bug=yes
21659 echo "configure: failed program was" >&5
21662 rm -f conftest.o conftest.s
21665 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21666 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21667 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21677 echo "$as_me:$LINENO: checking assembler for .register" >&5
21678 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21679 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 gcc_cv_as_sparc_register_op=no
21683 if test x$gcc_cv_as != x; then
21684 echo '.register %g2, #scratch' > conftest.s
21685 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }
21692 gcc_cv_as_sparc_register_op=yes
21694 echo "configure: failed program was" >&5
21697 rm -f conftest.o conftest.s
21700 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21701 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21702 if test $gcc_cv_as_sparc_register_op = yes; then
21704 cat >>confdefs.h <<\_ACEOF
21705 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21710 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21711 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21712 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 gcc_cv_as_sparc_relax=no
21716 if test x$gcc_cv_as != x; then
21717 echo '.text' > conftest.s
21718 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }
21725 gcc_cv_as_sparc_relax=yes
21727 echo "configure: failed program was" >&5
21730 rm -f conftest.o conftest.s
21733 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21734 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21735 if test $gcc_cv_as_sparc_relax = yes; then
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_AS_RELAX_OPTION 1
21743 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21744 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21745 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 gcc_cv_as_sparc_ua_pcrel=no
21749 if test x$gcc_cv_as != x; then
21756 .uaword %r_disp32(foo)' > conftest.s
21757 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }
21764 if test x$gcc_cv_ld != x \
21765 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21766 gcc_cv_as_sparc_ua_pcrel=yes
21770 echo "configure: failed program was" >&5
21773 rm -f conftest.o conftest.s
21776 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21777 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21778 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21780 cat >>confdefs.h <<\_ACEOF
21781 #define HAVE_AS_SPARC_UA_PCREL 1
21785 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21786 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21787 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 gcc_cv_as_sparc_ua_pcrel_hidden=no
21791 if test x$gcc_cv_as != x; then
21795 .uaword %r_disp32(foo)
21796 .byte 0x32, 0x33, 0x34
21800 .skip 4' > conftest.s
21801 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }
21808 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21809 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21810 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21811 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21812 if $gcc_cv_objdump -R conftest 2> /dev/null \
21813 | grep 'DISP32' > /dev/null 2>&1; then
21816 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21821 echo "configure: failed program was" >&5
21824 rm -f conftest.o conftest.s
21827 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21828 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21829 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21831 cat >>confdefs.h <<\_ACEOF
21832 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21837 fi # unaligned pcrel relocs
21839 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21840 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21841 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 gcc_cv_as_sparc_offsetable_lo10=no
21845 if test x$gcc_cv_as != x; then
21847 or %g1, %lo(ab) + 12, %g1
21848 or %g1, %lo(ab + 12), %g1' > conftest.s
21849 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851 (eval $ac_try) 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }
21856 if test x$gcc_cv_objdump != x \
21857 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21858 | grep ' 82106000 82106000' > /dev/null 2>&1; then
21859 gcc_cv_as_sparc_offsetable_lo10=yes
21862 echo "configure: failed program was" >&5
21865 rm -f conftest.o conftest.s
21868 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21869 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21870 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_AS_OFFSETABLE_LO10 1
21879 i[34567]86-*-* | x86_64-*-*)
21881 cygwin* | pe | mingw32*)
21882 # Used for DWARF 2 in PE
21883 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21884 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21885 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 gcc_cv_as_ix86_pe_secrel32=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21891 then gcc_cv_as_ix86_pe_secrel32=yes
21893 elif test x$gcc_cv_as != x; then
21897 .secrel32 foo' > conftest.s
21898 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }
21905 if test x$gcc_cv_ld != x \
21906 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21907 gcc_cv_as_ix86_pe_secrel32=yes
21911 echo "configure: failed program was" >&5
21914 rm -f conftest.o conftest.s
21917 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21918 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21919 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_GAS_PE_SECREL32_RELOC 1
21929 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21930 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21931 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 gcc_cv_as_ix86_filds_fists=no
21935 if test $in_tree_gas = yes; then
21936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21937 then gcc_cv_as_ix86_filds_fists=yes
21939 elif test x$gcc_cv_as != x; then
21940 echo 'filds mem; fists mem' > conftest.s
21941 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }
21948 gcc_cv_as_ix86_filds_fists=yes
21950 echo "configure: failed program was" >&5
21953 rm -f conftest.o conftest.s
21956 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21957 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21958 if test $gcc_cv_as_ix86_filds_fists = yes; then
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_GAS_FILDS_FISTS 1
21966 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21967 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21968 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 gcc_cv_as_ix86_cmov_sun_syntax=no
21972 if test x$gcc_cv_as != x; then
21973 echo 'cmovl.l %edx, %eax' > conftest.s
21974 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }
21981 gcc_cv_as_ix86_cmov_sun_syntax=yes
21983 echo "configure: failed program was" >&5
21986 rm -f conftest.o conftest.s
21989 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21990 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21991 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21999 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22000 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22001 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 gcc_cv_as_ix86_ffreep=no
22005 if test x$gcc_cv_as != x; then
22006 echo 'ffreep %st(1)' > conftest.s
22007 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }
22014 gcc_cv_as_ix86_ffreep=yes
22016 echo "configure: failed program was" >&5
22019 rm -f conftest.o conftest.s
22022 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22023 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22024 if test $gcc_cv_as_ix86_ffreep = yes; then
22026 cat >>confdefs.h <<\_ACEOF
22027 #define HAVE_AS_IX86_FFREEP 1
22032 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22033 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22034 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 gcc_cv_as_ix86_sahf=no
22038 if test x$gcc_cv_as != x; then
22039 echo 'sahf' > conftest.s
22040 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; }
22047 gcc_cv_as_ix86_sahf=yes
22049 echo "configure: failed program was" >&5
22052 rm -f conftest.o conftest.s
22055 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22056 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22057 if test $gcc_cv_as_ix86_sahf = yes; then
22059 cat >>confdefs.h <<\_ACEOF
22060 #define HAVE_AS_IX86_SAHF 1
22065 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22066 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22067 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 gcc_cv_as_ix86_diff_sect_delta=no
22071 if test x$gcc_cv_as != x; then
22072 echo '.section .rodata
22078 .L2: nop' > conftest.s
22079 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }
22086 gcc_cv_as_ix86_diff_sect_delta=yes
22088 echo "configure: failed program was" >&5
22091 rm -f conftest.o conftest.s
22094 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22095 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22096 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22098 cat >>confdefs.h <<\_ACEOF
22099 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22104 # This one is used unconditionally by i386.[ch]; it is to be defined
22105 # to 1 if the feature is present, 0 otherwise.
22106 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22107 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22108 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 gcc_cv_as_ix86_gotoff_in_data=no
22112 if test $in_tree_gas = yes; then
22113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22114 then gcc_cv_as_ix86_gotoff_in_data=yes
22116 elif test x$gcc_cv_as != x; then
22121 .long .L0@GOTOFF' > conftest.s
22122 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }
22129 gcc_cv_as_ix86_gotoff_in_data=yes
22131 echo "configure: failed program was" >&5
22134 rm -f conftest.o conftest.s
22137 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22138 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22148 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22149 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22150 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22154 if test $in_tree_gas = yes; then
22155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22156 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22158 elif test x$gcc_cv_as != x; then
22160 addl r15 = @ltoffx(x#), gp
22162 ld8.mov r16 = [r15], x#' > conftest.s
22163 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }
22170 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22172 echo "configure: failed program was" >&5
22175 rm -f conftest.o conftest.s
22178 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22179 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22180 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22182 cat >>confdefs.h <<\_ACEOF
22183 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22192 *-*-aix*) conftest_s=' .machine "pwr5"
22196 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22197 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22198 if test "${gcc_cv_as_machine_directive+set}" = set; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 gcc_cv_as_machine_directive=no
22202 if test x$gcc_cv_as != x; then
22203 echo ' .machine ppc7400' > conftest.s
22204 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }
22211 gcc_cv_as_machine_directive=yes
22213 echo "configure: failed program was" >&5
22216 rm -f conftest.o conftest.s
22219 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22220 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22222 if test x$gcc_cv_as_machine_directive != xyes; then
22223 echo "*** This target requires an assembler supporting \".machine\"" >&2
22224 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22225 test x$build = x$target && exit 1
22229 *) conftest_s=' .machine power4
22234 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22235 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22236 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 gcc_cv_as_powerpc_mfcrf=no
22240 if test $in_tree_gas = yes; then
22241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22242 then gcc_cv_as_powerpc_mfcrf=yes
22244 elif test x$gcc_cv_as != x; then
22245 echo "$conftest_s" > conftest.s
22246 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }
22253 gcc_cv_as_powerpc_mfcrf=yes
22255 echo "configure: failed program was" >&5
22258 rm -f conftest.o conftest.s
22261 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22262 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22263 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_AS_MFCRF 1
22272 *-*-aix*) conftest_s=' .machine "pwr5"
22275 *) conftest_s=' .machine power5
22280 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22281 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22282 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22285 gcc_cv_as_powerpc_popcntb=no
22286 if test $in_tree_gas = yes; then
22287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22288 then gcc_cv_as_powerpc_popcntb=yes
22290 elif test x$gcc_cv_as != x; then
22291 echo "$conftest_s" > conftest.s
22292 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294 (eval $ac_try) 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; }
22299 gcc_cv_as_powerpc_popcntb=yes
22301 echo "configure: failed program was" >&5
22304 rm -f conftest.o conftest.s
22307 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22308 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22309 if test $gcc_cv_as_powerpc_popcntb = yes; then
22311 cat >>confdefs.h <<\_ACEOF
22312 #define HAVE_AS_POPCNTB 1
22318 *-*-aix*) conftest_s=' .machine "pwr5x"
22321 *) conftest_s=' .machine power5
22326 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22327 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22328 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22331 gcc_cv_as_powerpc_fprnd=no
22332 if test $in_tree_gas = yes; then
22333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22334 then gcc_cv_as_powerpc_fprnd=yes
22336 elif test x$gcc_cv_as != x; then
22337 echo "$conftest_s" > conftest.s
22338 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); }; }
22345 gcc_cv_as_powerpc_fprnd=yes
22347 echo "configure: failed program was" >&5
22350 rm -f conftest.o conftest.s
22353 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22354 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22355 if test $gcc_cv_as_powerpc_fprnd = yes; then
22357 cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_AS_FPRND 1
22364 *-*-aix*) conftest_s=' .machine "pwr6"
22367 *) conftest_s=' .machine power6
22372 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22373 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22374 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 gcc_cv_as_powerpc_mfpgpr=no
22378 if test $in_tree_gas = yes; then
22379 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22380 then gcc_cv_as_powerpc_mfpgpr=yes
22382 elif test x$gcc_cv_as != x; then
22383 echo "$conftest_s" > conftest.s
22384 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }
22391 gcc_cv_as_powerpc_mfpgpr=yes
22393 echo "configure: failed program was" >&5
22396 rm -f conftest.o conftest.s
22399 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22400 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22401 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AS_MFPGPR 1
22410 *-*-aix*) conftest_s=' .csect .text[PR]
22412 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22416 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22417 *) conftest_s=' .text
22419 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22422 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22423 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22424 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 gcc_cv_as_powerpc_rel16=no
22428 if test $in_tree_gas = yes; then
22429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22430 then gcc_cv_as_powerpc_rel16=yes
22432 elif test x$gcc_cv_as != x; then
22433 echo "$conftest_s" > conftest.s
22434 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }
22441 gcc_cv_as_powerpc_rel16=yes
22443 echo "configure: failed program was" >&5
22446 rm -f conftest.o conftest.s
22449 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22450 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22451 if test $gcc_cv_as_powerpc_rel16 = yes; then
22453 cat >>confdefs.h <<\_ACEOF
22454 #define HAVE_AS_REL16 1
22460 *-*-aix*) conftest_s=' .machine "pwr6"
22463 *) conftest_s=' .machine power6
22468 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22469 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22470 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 gcc_cv_as_powerpc_cmpb=no
22474 if test $in_tree_gas = yes; then
22475 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22476 then gcc_cv_as_powerpc_cmpb=yes
22478 elif test x$gcc_cv_as != x; then
22479 echo "$conftest_s" > conftest.s
22480 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }
22487 gcc_cv_as_powerpc_cmpb=yes
22489 echo "configure: failed program was" >&5
22492 rm -f conftest.o conftest.s
22495 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22496 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22497 if test $gcc_cv_as_powerpc_cmpb = yes; then
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_AS_CMPB 1
22506 *-*-aix*) conftest_s=' .machine "pwr6"
22509 *) conftest_s=' .machine power6
22514 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22515 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22516 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 gcc_cv_as_powerpc_dfp=no
22520 if test $in_tree_gas = yes; then
22521 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22522 then gcc_cv_as_powerpc_dfp=yes
22524 elif test x$gcc_cv_as != x; then
22525 echo "$conftest_s" > conftest.s
22526 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; }
22533 gcc_cv_as_powerpc_dfp=yes
22535 echo "configure: failed program was" >&5
22538 rm -f conftest.o conftest.s
22541 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22542 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22543 if test $gcc_cv_as_powerpc_dfp = yes; then
22545 cat >>confdefs.h <<\_ACEOF
22546 #define HAVE_AS_DFP 1
22551 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22552 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22553 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22554 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 gcc_cv_as_powerpc_gnu_attribute=no
22557 if test $in_tree_gas = yes; then
22558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22559 then gcc_cv_as_powerpc_gnu_attribute=yes
22561 elif test x$gcc_cv_as != x; then
22562 echo '.gnu_attribute 4,1' > conftest.s
22563 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }
22570 gcc_cv_as_powerpc_gnu_attribute=yes
22572 echo "configure: failed program was" >&5
22575 rm -f conftest.o conftest.s
22578 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22579 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22580 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22582 cat >>confdefs.h <<\_ACEOF
22583 #define HAVE_AS_GNU_ATTRIBUTE 1
22590 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22591 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22592 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 gcc_cv_as_mips_explicit_relocs=no
22596 if test $in_tree_gas = yes; then
22597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22598 then gcc_cv_as_mips_explicit_relocs=yes
22600 elif test x$gcc_cv_as != x; then
22601 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }
22609 gcc_cv_as_mips_explicit_relocs=yes
22611 echo "configure: failed program was" >&5
22614 rm -f conftest.o conftest.s
22617 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22618 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22619 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22620 if test x$target_cpu_default = x
22621 then target_cpu_default=MASK_EXPLICIT_RELOCS
22622 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22625 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22626 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22627 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 gcc_cv_as_mips_no_shared=no
22631 if test $in_tree_gas = yes; then
22632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22633 then gcc_cv_as_mips_no_shared=yes
22635 elif test x$gcc_cv_as != x; then
22636 echo 'nop' > conftest.s
22637 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }
22644 gcc_cv_as_mips_no_shared=yes
22646 echo "configure: failed program was" >&5
22649 rm -f conftest.o conftest.s
22652 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22653 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22654 if test $gcc_cv_as_mips_no_shared = yes; then
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_AS_NO_SHARED 1
22662 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22663 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22664 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 gcc_cv_as_mips_gnu_attribute=no
22668 if test $in_tree_gas = yes; then
22669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22670 then gcc_cv_as_mips_gnu_attribute=yes
22672 elif test x$gcc_cv_as != x; then
22673 echo '.gnu_attribute 4,1' > conftest.s
22674 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 (eval $ac_try) 2>&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; }
22681 gcc_cv_as_mips_gnu_attribute=yes
22683 echo "configure: failed program was" >&5
22686 rm -f conftest.o conftest.s
22689 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22690 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22691 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_AS_GNU_ATTRIBUTE 1
22699 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22700 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22701 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 gcc_cv_as_mips_dtprelword=no
22705 if test $in_tree_gas = yes; then
22706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22707 then gcc_cv_as_mips_dtprelword=yes
22709 elif test x$gcc_cv_as != x; then
22710 echo '.section .tdata,"awT",@progbits
22714 .dtprelword x+0x8000' > conftest.s
22715 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }
22722 gcc_cv_as_mips_dtprelword=yes
22724 echo "configure: failed program was" >&5
22727 rm -f conftest.o conftest.s
22730 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22731 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22732 if test $gcc_cv_as_mips_dtprelword = yes; then
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_AS_DTPRELWORD 1
22742 # Mips and HP-UX need the GNU assembler.
22743 # Linux on IA64 might be able to use the Intel assembler.
22746 mips*-*-* | *-*-hpux* )
22747 if test x$gas_flag = xyes \
22748 || test x"$host" != x"$build" \
22749 || test ! -x "$gcc_cv_as" \
22750 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22753 echo "*** This configuration requires the GNU assembler" >&2
22759 # ??? Not all targets support dwarf2 debug_line, even within a version
22760 # of gas. Moreover, we need to emit a valid instruction to trigger any
22761 # info to the output file. So, as supported targets are added to gas 2.11,
22762 # add some instruction here to (also) show we expect this might work.
22763 # ??? Once 2.11 is released, probably need to add first known working
22764 # version to the per-target configury.
22766 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22767 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22768 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22769 | spu-*-* | fido*-*-*)
22772 ia64*-*-* | s390*-*-*)
22779 if test x"$insn" != x; then
22781 .file 1 \"conftest.s\"
22784 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22785 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22786 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 gcc_cv_as_dwarf2_debug_line=no
22790 if test $in_tree_gas = yes; then
22791 if test $in_tree_gas_is_elf = yes \
22792 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22793 then gcc_cv_as_dwarf2_debug_line=yes
22795 elif test x$gcc_cv_as != x; then
22796 echo "$conftest_s" > conftest.s
22797 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }
22804 if test x$gcc_cv_objdump != x \
22805 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22806 | grep debug_line > /dev/null 2>&1; then
22807 gcc_cv_as_dwarf2_debug_line=yes
22810 echo "configure: failed program was" >&5
22813 rm -f conftest.o conftest.s
22816 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22817 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22820 # The .debug_line file table must be in the exact order that
22821 # we specified the files, since these indices are also used
22822 # by DW_AT_decl_file. Approximate this test by testing if
22823 # the assembler bitches if the same index is assigned twice.
22824 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22825 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22826 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 gcc_cv_as_dwarf2_file_buggy=no
22830 if test x$gcc_cv_as != x; then
22831 echo ' .file 1 "foo.s"
22832 .file 1 "bar.s"' > conftest.s
22833 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; }
22840 gcc_cv_as_dwarf2_file_buggy=yes
22842 echo "configure: failed program was" >&5
22845 rm -f conftest.o conftest.s
22848 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22849 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22852 if test $gcc_cv_as_dwarf2_debug_line = yes \
22853 && test $gcc_cv_as_dwarf2_file_buggy = no; then
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22861 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22862 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22863 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 gcc_cv_as_gdwarf2_flag=no
22867 if test $in_tree_gas = yes; then
22868 if test $in_tree_gas_is_elf = yes \
22869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22870 then gcc_cv_as_gdwarf2_flag=yes
22872 elif test x$gcc_cv_as != x; then
22873 echo "$insn" > conftest.s
22874 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }
22881 gcc_cv_as_gdwarf2_flag=yes
22883 echo "configure: failed program was" >&5
22886 rm -f conftest.o conftest.s
22889 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22890 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22891 if test $gcc_cv_as_gdwarf2_flag = yes; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22899 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22900 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22901 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22904 gcc_cv_as_gstabs_flag=no
22905 if test $in_tree_gas = yes; then
22906 if test $in_tree_gas_is_elf = yes \
22907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22908 then gcc_cv_as_gstabs_flag=yes
22910 elif test x$gcc_cv_as != x; then
22911 echo "$insn" > conftest.s
22912 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }
22919 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22920 # and warns about it, but still exits successfully. So check for
22922 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; }
22929 else gcc_cv_as_gstabs_flag=yes
22932 echo "configure: failed program was" >&5
22935 rm -f conftest.o conftest.s
22938 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22939 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22940 if test $gcc_cv_as_gstabs_flag = yes; then
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22948 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22949 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22950 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 gcc_cv_as_debug_prefix_map_flag=no
22954 if test $in_tree_gas = yes; then
22955 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22956 then gcc_cv_as_debug_prefix_map_flag=yes
22958 elif test x$gcc_cv_as != x; then
22959 echo "$insn" > conftest.s
22960 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }
22967 gcc_cv_as_debug_prefix_map_flag=yes
22969 echo "configure: failed program was" >&5
22972 rm -f conftest.o conftest.s
22975 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22976 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22977 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22979 cat >>confdefs.h <<\_ACEOF
22980 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22986 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22987 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22988 if test "${gcc_cv_as_line_zero+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 gcc_cv_as_line_zero=no
22992 if test $in_tree_gas = yes; then
22993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22994 then gcc_cv_as_line_zero=yes
22996 elif test "x$gcc_cv_as" != x; then
22997 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22998 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } &&
23004 test "x`cat conftest.out`" = x
23006 gcc_cv_as_line_zero=yes
23008 echo "configure: failed program was" >&5
23010 echo "configure: error output was" >&5
23011 cat conftest.out >&5
23013 rm -f conftest.o conftest.s conftest.out
23016 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23017 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23018 if test "x$gcc_cv_as_line_zero" = xyes; then
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_AS_LINE_ZERO 1
23026 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23027 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23028 gcc_cv_ld_ro_rw_mix=unknown
23029 if test $in_tree_ld = yes ; then
23030 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
23031 && test $in_tree_ld_is_elf = yes; then
23032 gcc_cv_ld_ro_rw_mix=read-write
23034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23035 echo '.section myfoosect, "a"' > conftest1.s
23036 echo '.section myfoosect, "aw"' > conftest2.s
23037 echo '.byte 1' >> conftest2.s
23038 echo '.section myfoosect, "a"' > conftest3.s
23039 echo '.byte 0' >> conftest3.s
23040 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23041 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23042 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23043 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23044 conftest2.o conftest3.o > /dev/null 2>&1; then
23045 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23046 | sed -e '/myfoosect/!d' -e N`
23047 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23048 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23049 gcc_cv_ld_ro_rw_mix=read-only
23051 gcc_cv_ld_ro_rw_mix=read-write
23055 rm -f conftest.* conftest[123].*
23057 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23059 cat >>confdefs.h <<\_ACEOF
23060 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23064 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23065 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23067 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23068 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23069 gcc_cv_ld_eh_frame_hdr=no
23070 if test $in_tree_ld = yes ; then
23071 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
23072 && test $in_tree_ld_is_elf = yes; then
23073 gcc_cv_ld_eh_frame_hdr=yes
23075 elif test x$gcc_cv_ld != x; then
23076 # Check if linker supports --eh-frame-hdr option
23077 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23078 gcc_cv_ld_eh_frame_hdr=yes
23082 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_LD_EH_FRAME_HDR 1
23089 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23090 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23092 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23093 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23095 if test $in_tree_ld = yes ; then
23096 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
23097 && test $in_tree_ld_is_elf = yes; then
23100 elif test x$gcc_cv_ld != x; then
23101 # Check if linker supports -pie option
23102 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23106 if test x"$gcc_cv_ld_pie" = xyes; then
23108 cat >>confdefs.h <<\_ACEOF
23109 #define HAVE_LD_PIE 1
23113 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23114 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23116 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23117 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23118 gcc_cv_ld_eh_gc_sections=no
23119 if test $in_tree_ld = yes ; then
23120 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
23121 && test $in_tree_ld_is_elf = yes; then
23122 gcc_cv_ld_eh_gc_sections=yes
23124 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23125 cat > conftest.s <<EOF
23128 .type _start, @function
23131 .size _start, .-_start
23132 .section .text.foo,"ax",@progbits
23133 .type foo, @function
23137 .section .gcc_except_table.foo,"a",@progbits
23140 .section .eh_frame,"a",@progbits
23143 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23144 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23145 | grep "gc-sections option ignored" > /dev/null; then
23146 gcc_cv_ld_eh_gc_sections=no
23147 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23148 gcc_cv_ld_eh_gc_sections=yes
23149 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23150 if test x$gcc_cv_as_comdat_group != xyes; then
23151 gcc_cv_ld_eh_gc_sections=no
23152 cat > conftest.s <<EOF
23155 .type _start, @function
23158 .size _start, .-_start
23159 .section .gnu.linkonce.t.foo,"ax",@progbits
23160 .type foo, @function
23164 .section .gcc_except_table.foo,"a",@progbits
23167 .section .eh_frame,"a",@progbits
23170 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23171 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23172 | grep "gc-sections option ignored" > /dev/null; then
23173 gcc_cv_ld_eh_gc_sections=no
23174 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23175 gcc_cv_ld_eh_gc_sections=yes
23181 rm -f conftest.s conftest.o conftest
23185 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23186 gcc_cv_ld_eh_gc_sections=no
23189 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_LD_EH_GC_SECTIONS 1
23196 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23197 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23203 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23204 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23205 if test "${gcc_cv_ld_as_needed+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 gcc_cv_ld_as_needed=no
23209 if test $in_tree_ld = yes ; then
23210 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23211 && test $in_tree_ld_is_elf = yes; then
23212 gcc_cv_ld_as_needed=yes
23214 elif test x$gcc_cv_ld != x; then
23215 # Check if linker supports --as-needed and --no-as-needed options
23216 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23217 gcc_cv_ld_as_needed=yes
23222 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23223 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23224 if test x"$gcc_cv_ld_as_needed" = xyes; then
23226 cat >>confdefs.h <<\_ACEOF
23227 #define HAVE_LD_AS_NEEDED 1
23232 case "$target:$tm_file" in
23233 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23234 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23235 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23236 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 gcc_cv_ld_no_dot_syms=no
23240 if test $in_tree_ld = yes ; then
23241 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
23242 gcc_cv_ld_no_dot_syms=yes
23244 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23245 cat > conftest1.s <<EOF
23249 cat > conftest2.s <<EOF
23250 .section ".opd","aw"
23253 .type foo,@function
23255 .quad .LEfoo,.TOC.@tocbase,0
23261 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23262 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23263 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23264 gcc_cv_ld_no_dot_syms=yes
23266 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23270 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23271 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23272 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23274 cat >>confdefs.h <<\_ACEOF
23275 #define HAVE_LD_NO_DOT_SYMS 1
23282 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23283 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23284 if test "${gcc_cv_ld_sysroot+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23287 gcc_cv_ld_sysroot=no
23288 if test $in_tree_ld = yes ; then
23289 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
23290 gcc_cv_ld_sysroot=yes
23292 elif test x$gcc_cv_ld != x; then
23293 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23294 gcc_cv_ld_sysroot=yes
23298 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23299 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23300 if test x"$gcc_cv_ld_sysroot" = xyes; then
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_LD_SYSROOT 1
23308 if test x$with_sysroot = x && test x$host = x$target \
23309 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23310 && test "$prefix" != "NONE"; then
23312 cat >>confdefs.h <<_ACEOF
23313 #define PREFIX_INCLUDE_DIR "$prefix/include"
23318 # Test for stack protector support in target C library.
23319 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23320 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23321 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23324 gcc_cv_libc_provides_ssp=no
23327 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23328 if test "x$with_sysroot" = x; then
23329 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23330 elif test "x$with_build_sysroot" != "x"; then
23331 glibc_header_dir="${with_build_sysroot}/usr/include"
23332 elif test "x$with_sysroot" = xyes; then
23333 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23335 glibc_header_dir="${with_sysroot}/usr/include"
23338 glibc_header_dir=/usr/include
23340 # glibc 2.4 and later provides __stack_chk_fail and
23341 # either __stack_chk_guard, or TLS access to stack guard canary.
23342 if test -f $glibc_header_dir/features.h \
23343 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23344 $glibc_header_dir/features.h > /dev/null; then
23345 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23346 $glibc_header_dir/features.h > /dev/null; then
23347 gcc_cv_libc_provides_ssp=yes
23348 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23349 $glibc_header_dir/features.h > /dev/null \
23350 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23351 $glibc_header_dir/features.h > /dev/null; then
23352 gcc_cv_libc_provides_ssp=yes
23353 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23354 $glibc_header_dir/features.h > /dev/null && \
23355 test -f $glibc_header_dir/bits/uClibc_config.h && \
23356 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23357 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23358 gcc_cv_libc_provides_ssp=yes
23363 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23364 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23365 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23368 cat >conftest.$ac_ext <<_ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23374 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23376 #define __stack_chk_fail innocuous___stack_chk_fail
23378 /* System header to define __stub macros and hopefully few prototypes,
23379 which can conflict with char __stack_chk_fail (); below.
23380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23381 <limits.h> exists even on freestanding compilers. */
23384 # include <limits.h>
23386 # include <assert.h>
23389 #undef __stack_chk_fail
23391 /* Override any gcc2 internal prototype to avoid an error. */
23396 /* We use char because int might match the return type of a gcc2
23397 builtin and then its argument prototype would still apply. */
23398 char __stack_chk_fail ();
23399 /* The GNU C library defines this for functions which it implements
23400 to always fail with ENOSYS. Some functions are actually named
23401 something starting with __ and the normal name is an alias. */
23402 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23405 char (*f) () = __stack_chk_fail;
23414 return f != __stack_chk_fail;
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421 (eval $ac_link) 2>conftest.er1
23423 grep -v '^ *+' conftest.er1 >conftest.err
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_c_werror_flag"
23429 || test ! -s conftest.err'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; } &&
23435 { ac_try='test -s conftest$ac_exeext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 ac_cv_func___stack_chk_fail=yes
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_cv_func___stack_chk_fail=no
23448 rm -f conftest.err conftest.$ac_objext \
23449 conftest$ac_exeext conftest.$ac_ext
23451 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23452 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23453 if test $ac_cv_func___stack_chk_fail = yes; then
23454 gcc_cv_libc_provides_ssp=yes
23456 echo "no __stack_chk_fail on this target"
23460 *) gcc_cv_libc_provides_ssp=no ;;
23463 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23464 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23466 if test x$gcc_cv_libc_provides_ssp = xyes; then
23468 cat >>confdefs.h <<\_ACEOF
23469 #define TARGET_LIBC_PROVIDES_SSP 1
23474 # Check if TFmode long double should be used by default or not.
23475 # Some glibc targets used DFmode long double, but with glibc 2.4
23476 # and later they can use TFmode.
23478 powerpc*-*-linux* | \
23479 powerpc*-*-gnu* | \
23480 sparc*-*-linux* | \
23484 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23485 if test "${with_long_double_128+set}" = set; then
23486 withval="$with_long_double_128"
23487 gcc_cv_target_ldbl128="$with_long_double_128"
23489 gcc_cv_target_ldbl128=no
23490 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23491 if test "x$with_sysroot" = x; then
23492 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23493 elif test "x$with_build_sysroot" != "x"; then
23494 glibc_header_dir="${with_build_sysroot}/usr/include"
23495 elif test "x$with_sysroot" = xyes; then
23496 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23498 glibc_header_dir="${with_sysroot}/usr/include"
23501 glibc_header_dir=/usr/include
23503 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23504 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23505 && gcc_cv_target_ldbl128=yes
23510 if test x$gcc_cv_target_ldbl128 = xyes; then
23512 cat >>confdefs.h <<\_ACEOF
23513 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23518 # Find out what GC implementation we want, or may, use.
23520 # Check whether --with-gc or --without-gc was given.
23521 if test "${with_gc+set}" = set; then
23530 cat >>confdefs.h <<\_ACEOF
23536 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23537 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23538 { (exit 1); exit 1; }; }
23545 echo "Using $GGC for garbage collection."
23547 # Use the system's zlib library.
23549 zlibinc="-I\$(srcdir)/../zlib"
23551 # Check whether --with-system-zlib or --without-system-zlib was given.
23552 if test "${with_system_zlib+set}" = set; then
23553 withval="$with_system_zlib"
23562 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23563 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23564 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23565 if test "${enable_maintainer_mode+set}" = set; then
23566 enableval="$enable_maintainer_mode"
23567 maintainer_mode=$enableval
23572 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23573 echo "${ECHO_T}$maintainer_mode" >&6
23575 if test "$maintainer_mode" = "yes"; then
23585 # Make empty files to contain the specs and options for each language.
23586 # Then add #include lines to for a compiler that has specs and/or options.
23592 # These (without "all_") are set in each config-lang.in.
23593 # `language' must be a single word so is spelled singularly.
23596 all_outputs='Makefile gccbug libada-mk'
23597 # List of language makefile fragments.
23598 all_lang_makefrags=
23599 # List of language subdirectory makefiles. Deprecated.
23600 all_lang_makefiles=
23601 # Additional files for gengtype
23602 all_gtfiles="$target_gtfiles"
23604 # These are the languages that are set in --enable-languages,
23605 # and are available in the GCC tree.
23606 all_selected_languages=
23608 # Add the language fragments.
23609 # Languages are added via two mechanisms. Some information must be
23610 # recorded in makefile variables, these are defined in config-lang.in.
23611 # We accumulate them and plug them into the main Makefile.
23612 # The other mechanism is a set of hooks for each of the main targets
23613 # like `clean', `install', etc.
23615 language_hooks="Make-hooks"
23617 for lang in ${srcdir}/*/config-lang.in
23619 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23621 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23622 if test "x$lang_alias" = x
23624 echo "$lang doesn't set \$language." 1>&2
23627 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23628 subdirs="$subdirs $subdir"
23630 # $gcc_subdir is where the gcc integration files are to be found
23631 # for a language, both for internal compiler purposes (compiler
23632 # sources implementing front-end to GCC tree converters), and for
23633 # build infrastructure purposes (Make-lang.in, etc.)
23635 # This will be <subdir> (relative to $srcdir) if a line like
23636 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23637 # is found in <langdir>/config-lang.in, and will remain <langdir>
23640 # Except for the language alias (fetched above), the regular
23641 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23642 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23643 # only this and the language alias.
23645 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23646 if [ "$gcc_subdir" = "" ]; then
23647 gcc_subdir="$subdir"
23650 case ",$enable_languages," in
23652 all_selected_languages="$all_selected_languages $lang_alias"
23653 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23654 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23665 . ${srcdir}/$gcc_subdir/config-lang.in
23666 if test "x$language" = x
23668 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23673 case ",$enable_languages," in
23674 *,$lang_alias,*) ;;
23676 for i in $subdir_requires; do
23677 test -f "${srcdir}/$i/config-lang.in" && continue
23685 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23686 if test -f $srcdir/$gcc_subdir/lang.opt; then
23687 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23689 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23690 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23692 if test -f ${srcdir}/$gcc_subdir/Makefile.in
23693 then all_lang_makefiles="$gcc_subdir/Makefile"
23695 all_languages="$all_languages $language"
23696 all_compilers="$all_compilers $compilers"
23697 all_outputs="$all_outputs $outputs"
23698 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23701 # Pick up gtfiles for c
23703 . ${srcdir}/c-config-lang.in
23704 all_gtfiles="$all_gtfiles [c] $gtfiles"
23707 for language in $all_selected_languages
23709 check_languages="$check_languages check-$language"
23712 # We link each language in with a set of hooks, reached indirectly via
23713 # lang.${target}. Only do so for selected languages.
23717 target_list="all.cross start.encap rest.encap tags \
23718 install-common install-man install-info install-pdf dvi pdf \
23719 html uninstall info man srcextra srcman srcinfo \
23720 mostlyclean clean distclean maintainer-clean"
23722 for t in $target_list
23725 for lang in $all_selected_languages
23729 echo "lang.$t: $x" >> Make-hooks
23738 echo "dir ." > .gdbinit
23739 echo "dir ${srcdir}" >> .gdbinit
23740 if test x$gdb_needs_out_file_path = xyes
23742 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23744 if test "x$subdirs" != x; then
23747 echo "dir ${srcdir}/$s" >> .gdbinit
23750 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23752 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23756 # Find a directory in which to install a shared libgcc.
23758 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23759 if test "${enable_version_specific_runtime_libs+set}" = set; then
23760 enableval="$enable_version_specific_runtime_libs"
23765 # Check whether --with-slibdir or --without-slibdir was given.
23766 if test "${with_slibdir+set}" = set; then
23767 withval="$with_slibdir"
23768 slibdir="$with_slibdir"
23770 if test "${enable_version_specific_runtime_libs+set}" = set; then
23771 slibdir='$(libsubdir)'
23772 elif test "$host" != "$target"; then
23773 slibdir='$(build_tooldir)/lib'
23775 slibdir='$(libdir)'
23781 # Check whether --with-datarootdir or --without-datarootdir was given.
23782 if test "${with_datarootdir+set}" = set; then
23783 withval="$with_datarootdir"
23784 datarootdir="\${prefix}/$with_datarootdir"
23786 datarootdir='$(prefix)/share'
23791 # Check whether --with-docdir or --without-docdir was given.
23792 if test "${with_docdir+set}" = set; then
23793 withval="$with_docdir"
23794 docdir="\${prefix}/$with_docdir"
23796 docdir='$(datarootdir)'
23801 # Check whether --with-htmldir or --without-htmldir was given.
23802 if test "${with_htmldir+set}" = set; then
23803 withval="$with_htmldir"
23804 htmldir="\${prefix}/$with_htmldir"
23806 htmldir='$(docdir)'
23810 # Substitute configuration variables
23869 if test x${build} = x${host} ; then
23870 if test x${host} = x${target} ; then
23871 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23873 echo "Links are now set up to build a cross-compiler" 1>&2
23874 echo " from ${host} to ${target}." 1>&2
23877 if test x${host} = x${target} ; then
23878 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23879 echo " for ${target}." 1>&2
23881 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23882 echo " from ${host} to ${target}." 1>&2
23889 # Configure the subdirectories
23890 # AC_CONFIG_SUBDIRS($subdirs)
23892 # Create the Makefile
23893 # and configure language subdirectories
23894 ac_config_files="$ac_config_files $all_outputs"
23897 ac_config_commands="$ac_config_commands default"
23899 cat >confcache <<\_ACEOF
23900 # This file is a shell script that caches the results of configure
23901 # tests run on this system so they can be shared between configure
23902 # scripts and configure runs, see configure's option --config-cache.
23903 # It is not useful on other systems. If it contains results you don't
23904 # want to keep, you may remove or edit it.
23906 # config.status only pays attention to the cache file if you give it
23907 # the --recheck option to rerun configure.
23909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23911 # following values.
23915 # The following way of writing the cache mishandles newlines in values,
23916 # but we know of no workaround that is simple, portable, and efficient.
23917 # So, don't put newlines in cache variables' values.
23918 # Ultrix sh set writes to stderr and can't be redirected directly,
23919 # and sets the high bit in the cache file unless we assign to the vars.
23922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23924 # `set' does not quote correctly, so add quotes (double-quote
23925 # substitution turns \\\\ into \\, and sed turns \\ into \).
23928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23931 # `set' quotes correctly as required by POSIX, so do not add quotes.
23933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23945 if test -w $cache_file; then
23946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23947 cat confcache >$cache_file
23949 echo "not updating unwritable cache $cache_file"
23954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23955 # Let make expand exec_prefix.
23956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23960 # trailing colons and then remove the whole line if VPATH becomes empty
23961 # (actually we leave an empty line to preserve line numbers).
23962 if test "x$srcdir" = x.; then
23963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23964 s/:*\$(srcdir):*/:/;
23965 s/:*\${srcdir}:*/:/;
23967 s/^\([^=]*=[ ]*\):*/\1/;
23973 DEFS=-DHAVE_CONFIG_H
23977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23978 # 1. Remove the extension, and $U if already installed.
23979 ac_i=`echo "$ac_i" |
23980 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23982 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23983 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23985 LIBOBJS=$ac_libobjs
23987 LTLIBOBJS=$ac_ltlibobjs
23991 : ${CONFIG_STATUS=./config.status}
23992 ac_clean_files_save=$ac_clean_files
23993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23996 cat >$CONFIG_STATUS <<_ACEOF
23998 # Generated by $as_me.
23999 # Run this file to recreate the current configuration.
24000 # Compiler output produced by configure, useful for debugging
24001 # configure, is in config.log if it exists.
24004 ac_cs_recheck=false
24006 SHELL=\${CONFIG_SHELL-$SHELL}
24009 cat >>$CONFIG_STATUS <<\_ACEOF
24010 ## --------------------- ##
24011 ## M4sh Initialization. ##
24012 ## --------------------- ##
24014 # Be Bourne compatible
24015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24019 # is contrary to our usage. Disable this feature.
24020 alias -g '${1+"$@"}'='"$@"'
24021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24024 DUALCASE=1; export DUALCASE # for MKS sh
24026 # Support unset when possible.
24027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24034 # Work around bugs in pre-3.0 UWIN ksh.
24035 $as_unset ENV MAIL MAILPATH
24042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24044 LC_TELEPHONE LC_TIME
24046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24047 eval $as_var=C; export $as_var
24053 # Required to use basename.
24054 if expr a : '\(a\)' >/dev/null 2>&1; then
24060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24061 as_basename=basename
24067 # Name of the executable.
24068 as_me=`$as_basename "$0" ||
24069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24070 X"$0" : 'X\(//\)$' \| \
24071 X"$0" : 'X\(/\)$' \| \
24072 . : '\(.\)' 2>/dev/null ||
24074 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24075 /^X\/\(\/\/\)$/{ s//\1/; q; }
24076 /^X\/\(\/\).*/{ s//\1/; q; }
24080 # PATH needs CR, and LINENO needs CR and PATH.
24081 # Avoid depending upon Character Ranges.
24082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24085 as_cr_digits='0123456789'
24086 as_cr_alnum=$as_cr_Letters$as_cr_digits
24088 # The user is always right.
24089 if test "${PATH_SEPARATOR+set}" != set; then
24090 echo "#! /bin/sh" >conf$$.sh
24091 echo "exit 0" >>conf$$.sh
24093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24102 as_lineno_1=$LINENO
24103 as_lineno_2=$LINENO
24104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24105 test "x$as_lineno_1" != "x$as_lineno_2" &&
24106 test "x$as_lineno_3" = "x$as_lineno_2" || {
24107 # Find who we are. Look in the path if we contain no path at all
24110 *[\\/]* ) as_myself=$0 ;;
24111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24112 for as_dir in $PATH
24115 test -z "$as_dir" && as_dir=.
24116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24121 # We did not find ourselves, most probably we were run as `sh COMMAND'
24122 # in which case we are not to be found in the path.
24123 if test "x$as_myself" = x; then
24126 if test ! -f "$as_myself"; then
24127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24129 { (exit 1); exit 1; }; }
24131 case $CONFIG_SHELL in
24133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24137 test -z "$as_dir" && as_dir=.
24138 for as_base in sh bash ksh sh5; do
24141 if ("$as_dir/$as_base" -c '
24142 as_lineno_1=$LINENO
24143 as_lineno_2=$LINENO
24144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24145 test "x$as_lineno_1" != "x$as_lineno_2" &&
24146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24149 CONFIG_SHELL=$as_dir/$as_base
24150 export CONFIG_SHELL
24151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24160 # uniformly replaced by the line number. The first 'sed' inserts a
24161 # line-number line before each line; the second 'sed' does the real
24162 # work. The second script uses 'N' to pair each line-number line
24163 # with the numbered line, and appends trailing '-' during
24164 # substitution so that $LINENO is not a special case at line end.
24165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24167 sed '=' <$as_myself |
24172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24175 s,^['$as_cr_digits']*\n,,
24176 ' >$as_me.lineno &&
24177 chmod +x $as_me.lineno ||
24178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24180 { (exit 1); exit 1; }; }
24182 # Don't try to exec as it changes $[0], causing all sort of problems
24183 # (the dirname of $[0] is not the place where we might find the
24184 # original and so on. Autoconf is especially sensible to this).
24186 # Exit status is that of the last command.
24191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24192 *c*,-n*) ECHO_N= ECHO_C='
24194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24198 if expr a : '\(a\)' >/dev/null 2>&1; then
24204 rm -f conf$$ conf$$.exe conf$$.file
24206 if ln -s conf$$.file conf$$ 2>/dev/null; then
24207 # We could just check for DJGPP; but this test a) works b) is more generic
24208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24209 if test -f conf$$.exe; then
24210 # Don't use ln at all; we don't have any links
24215 elif ln conf$$.file conf$$ 2>/dev/null; then
24220 rm -f conf$$ conf$$.exe conf$$.file
24222 if mkdir -p . 2>/dev/null; then
24225 test -d ./-p && rmdir ./-p
24229 as_executable_p="test -f"
24231 # Sed expression to map a string onto a valid CPP name.
24232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24234 # Sed expression to map a string onto a valid variable name.
24235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24239 # We need space, tab and new line, in precisely that order.
24249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24250 # report actual input values of CONFIG_FILES etc. instead of their
24251 # values after options handling. Logging --version etc. is OK.
24255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24256 ## Running $as_me. ##
24261 This file was extended by $as_me, which was
24262 generated by GNU Autoconf 2.59. Invocation command line was
24264 CONFIG_FILES = $CONFIG_FILES
24265 CONFIG_HEADERS = $CONFIG_HEADERS
24266 CONFIG_LINKS = $CONFIG_LINKS
24267 CONFIG_COMMANDS = $CONFIG_COMMANDS
24271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24275 # Files that config.status was made for.
24276 if test -n "$ac_config_files"; then
24277 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24280 if test -n "$ac_config_headers"; then
24281 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24284 if test -n "$ac_config_links"; then
24285 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24288 if test -n "$ac_config_commands"; then
24289 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24292 cat >>$CONFIG_STATUS <<\_ACEOF
24295 \`$as_me' instantiates files from templates according to the
24296 current configuration.
24298 Usage: $0 [OPTIONS] [FILE]...
24300 -h, --help print this help, then exit
24301 -V, --version print version number, then exit
24302 -q, --quiet do not print progress messages
24303 -d, --debug don't remove temporary files
24304 --recheck update $as_me by reconfiguring in the same conditions
24305 --file=FILE[:TEMPLATE]
24306 instantiate the configuration file FILE
24307 --header=FILE[:TEMPLATE]
24308 instantiate the configuration header FILE
24310 Configuration files:
24313 Configuration headers:
24316 Configuration commands:
24319 Report bugs to <bug-autoconf@gnu.org>."
24322 cat >>$CONFIG_STATUS <<_ACEOF
24325 configured by $0, generated by GNU Autoconf 2.59,
24326 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24328 Copyright (C) 2003 Free Software Foundation, Inc.
24329 This config.status script is free software; the Free Software Foundation
24330 gives unlimited permission to copy, distribute and modify it."
24334 cat >>$CONFIG_STATUS <<\_ACEOF
24335 # If no file are specified by the user, then we need to provide default
24336 # value. By we need to know if files were specified by the user.
24342 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24343 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24351 *) # This is not an option, so the user has probably given explicit
24354 ac_need_defaults=false;;
24358 # Handling of the options.
24360 cat >>$CONFIG_STATUS <<\_ACEOF
24361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24363 --version | --vers* | -V )
24364 echo "$ac_cs_version"; exit 0 ;;
24366 # Conflict between --help and --header
24367 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24368 Try \`$0 --help' for more information." >&5
24369 echo "$as_me: error: ambiguous option: $1
24370 Try \`$0 --help' for more information." >&2;}
24371 { (exit 1); exit 1; }; };;
24372 --help | --hel | -h )
24373 echo "$ac_cs_usage"; exit 0 ;;
24374 --debug | --d* | -d )
24376 --file | --fil | --fi | --f )
24378 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24379 ac_need_defaults=false;;
24380 --header | --heade | --head | --hea )
24382 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24383 ac_need_defaults=false;;
24384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24388 # This is an error.
24389 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24390 Try \`$0 --help' for more information." >&5
24391 echo "$as_me: error: unrecognized option: $1
24392 Try \`$0 --help' for more information." >&2;}
24393 { (exit 1); exit 1; }; } ;;
24395 *) ac_config_targets="$ac_config_targets $1" ;;
24401 ac_configure_extra_args=
24403 if $ac_cs_silent; then
24405 ac_configure_extra_args="$ac_configure_extra_args --silent"
24409 cat >>$CONFIG_STATUS <<_ACEOF
24410 if \$ac_cs_recheck; then
24411 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24412 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24417 cat >>$CONFIG_STATUS <<_ACEOF
24419 # INIT-COMMANDS section.
24428 cat >>$CONFIG_STATUS <<\_ACEOF
24429 for ac_config_target in $ac_config_targets
24431 case "$ac_config_target" in
24432 # Handling of arguments.
24433 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24434 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24435 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24436 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24437 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24438 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24439 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24440 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24441 { (exit 1); exit 1; }; };;
24445 # If the user did not use the arguments to specify the items to instantiate,
24446 # then the envvar interface is used. Set only those that are not.
24447 # We use the long form for the default assignment because of an extremely
24448 # bizarre bug on SunOS 4.1.3.
24449 if $ac_need_defaults; then
24450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24455 # Have a temporary directory for convenience. Make it in the build tree
24456 # simply because there is no reason to put it here, and in addition,
24457 # creating and moving files from /tmp can sometimes cause problems.
24458 # Create a temporary directory, and hook for its removal unless debugging.
24461 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24462 trap '{ (exit 1); exit 1; }' 1 2 13 15
24465 # Create a (secure) tmp directory for tmp files.
24468 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24469 test -n "$tmp" && test -d "$tmp"
24472 tmp=./confstat$$-$RANDOM
24473 (umask 077 && mkdir $tmp)
24476 echo "$me: cannot create a temporary directory in ." >&2
24477 { (exit 1); exit 1; }
24482 cat >>$CONFIG_STATUS <<_ACEOF
24485 # CONFIG_FILES section.
24488 # No need to generate the scripts if there are no CONFIG_FILES.
24489 # This happens for instance when ./config.status config.h
24490 if test -n "\$CONFIG_FILES"; then
24491 # Protect against being on the right side of a sed subst in config.status.
24492 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24493 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24494 s,@SHELL@,$SHELL,;t t
24495 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24496 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24497 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24498 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24499 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24500 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24501 s,@exec_prefix@,$exec_prefix,;t t
24502 s,@prefix@,$prefix,;t t
24503 s,@program_transform_name@,$program_transform_name,;t t
24504 s,@bindir@,$bindir,;t t
24505 s,@sbindir@,$sbindir,;t t
24506 s,@libexecdir@,$libexecdir,;t t
24507 s,@datadir@,$datadir,;t t
24508 s,@sysconfdir@,$sysconfdir,;t t
24509 s,@sharedstatedir@,$sharedstatedir,;t t
24510 s,@localstatedir@,$localstatedir,;t t
24511 s,@libdir@,$libdir,;t t
24512 s,@includedir@,$includedir,;t t
24513 s,@oldincludedir@,$oldincludedir,;t t
24514 s,@infodir@,$infodir,;t t
24515 s,@mandir@,$mandir,;t t
24516 s,@build_alias@,$build_alias,;t t
24517 s,@host_alias@,$host_alias,;t t
24518 s,@target_alias@,$target_alias,;t t
24519 s,@DEFS@,$DEFS,;t t
24520 s,@ECHO_C@,$ECHO_C,;t t
24521 s,@ECHO_N@,$ECHO_N,;t t
24522 s,@ECHO_T@,$ECHO_T,;t t
24523 s,@LIBS@,$LIBS,;t t
24524 s,@build@,$build,;t t
24525 s,@build_cpu@,$build_cpu,;t t
24526 s,@build_vendor@,$build_vendor,;t t
24527 s,@build_os@,$build_os,;t t
24528 s,@host@,$host,;t t
24529 s,@host_cpu@,$host_cpu,;t t
24530 s,@host_vendor@,$host_vendor,;t t
24531 s,@host_os@,$host_os,;t t
24532 s,@target@,$target,;t t
24533 s,@target_cpu@,$target_cpu,;t t
24534 s,@target_vendor@,$target_vendor,;t t
24535 s,@target_os@,$target_os,;t t
24536 s,@target_noncanonical@,$target_noncanonical,;t t
24537 s,@build_libsubdir@,$build_libsubdir,;t t
24538 s,@build_subdir@,$build_subdir,;t t
24539 s,@host_subdir@,$host_subdir,;t t
24540 s,@target_subdir@,$target_subdir,;t t
24541 s,@GENINSRC@,$GENINSRC,;t t
24543 s,@CFLAGS@,$CFLAGS,;t t
24544 s,@LDFLAGS@,$LDFLAGS,;t t
24545 s,@CPPFLAGS@,$CPPFLAGS,;t t
24546 s,@ac_ct_CC@,$ac_ct_CC,;t t
24547 s,@EXEEXT@,$EXEEXT,;t t
24548 s,@OBJEXT@,$OBJEXT,;t t
24549 s,@GNATBIND@,$GNATBIND,;t t
24550 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24551 s,@GNATMAKE@,$GNATMAKE,;t t
24552 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24553 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24554 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24556 s,@EGREP@,$EGREP,;t t
24557 s,@loose_warn@,$loose_warn,;t t
24558 s,@strict_warn@,$strict_warn,;t t
24559 s,@warn_cflags@,$warn_cflags,;t t
24560 s,@nocommon_flag@,$nocommon_flag,;t t
24561 s,@TREEBROWSER@,$TREEBROWSER,;t t
24562 s,@valgrind_path@,$valgrind_path,;t t
24563 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24564 s,@valgrind_command@,$valgrind_command,;t t
24565 s,@coverage_flags@,$coverage_flags,;t t
24566 s,@enable_multilib@,$enable_multilib,;t t
24567 s,@enable_decimal_float@,$enable_decimal_float,;t t
24568 s,@enable_fixed_point@,$enable_fixed_point,;t t
24569 s,@enable_shared@,$enable_shared,;t t
24570 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24571 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24572 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24573 s,@onestep@,$onestep,;t t
24574 s,@PKGVERSION@,$PKGVERSION,;t t
24575 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24576 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24577 s,@datarootdir@,$datarootdir,;t t
24578 s,@docdir@,$docdir,;t t
24579 s,@htmldir@,$htmldir,;t t
24580 s,@SET_MAKE@,$SET_MAKE,;t t
24582 s,@LN_S@,$LN_S,;t t
24584 s,@RANLIB@,$RANLIB,;t t
24585 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24586 s,@ranlib_flags@,$ranlib_flags,;t t
24587 s,@INSTALL@,$INSTALL,;t t
24588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24589 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24590 s,@make_compare_target@,$make_compare_target,;t t
24591 s,@have_mktemp_command@,$have_mktemp_command,;t t
24592 s,@MAKEINFO@,$MAKEINFO,;t t
24593 s,@BUILD_INFO@,$BUILD_INFO,;t t
24594 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24595 s,@FLEX@,$FLEX,;t t
24596 s,@BISON@,$BISON,;t t
24599 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24600 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24601 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24602 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24603 s,@LIBICONV@,$LIBICONV,;t t
24604 s,@LTLIBICONV@,$LTLIBICONV,;t t
24605 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24606 s,@manext@,$manext,;t t
24607 s,@objext@,$objext,;t t
24608 s,@gthread_flags@,$gthread_flags,;t t
24609 s,@extra_modes_file@,$extra_modes_file,;t t
24610 s,@extra_opt_files@,$extra_opt_files,;t t
24611 s,@USE_NLS@,$USE_NLS,;t t
24612 s,@LIBINTL@,$LIBINTL,;t t
24613 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24614 s,@INCINTL@,$INCINTL,;t t
24615 s,@XGETTEXT@,$XGETTEXT,;t t
24616 s,@GMSGFMT@,$GMSGFMT,;t t
24617 s,@POSUB@,$POSUB,;t t
24618 s,@CATALOGS@,$CATALOGS,;t t
24619 s,@DATADIRNAME@,$DATADIRNAME,;t t
24620 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24621 s,@GENCAT@,$GENCAT,;t t
24622 s,@CATOBJEXT@,$CATOBJEXT,;t t
24623 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24624 s,@CROSS@,$CROSS,;t t
24626 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24627 s,@inhibit_libc@,$inhibit_libc,;t t
24628 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24629 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24630 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24631 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24632 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24633 s,@collect2@,$collect2,;t t
24634 s,@LIBTOOL@,$LIBTOOL,;t t
24636 s,@FGREP@,$FGREP,;t t
24637 s,@GREP@,$GREP,;t t
24639 s,@DUMPBIN@,$DUMPBIN,;t t
24640 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24641 s,@ac_ct_AR@,$ac_ct_AR,;t t
24642 s,@STRIP@,$STRIP,;t t
24643 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24644 s,@lt_ECHO@,$lt_ECHO,;t t
24645 s,@objdir@,$objdir,;t t
24646 s,@enable_fast_install@,$enable_fast_install,;t t
24647 s,@gcc_cv_as@,$gcc_cv_as,;t t
24648 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24649 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24650 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24651 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24652 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24653 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24654 s,@libgcc_visibility@,$libgcc_visibility,;t t
24656 s,@zlibdir@,$zlibdir,;t t
24657 s,@zlibinc@,$zlibinc,;t t
24658 s,@MAINT@,$MAINT,;t t
24659 s,@gcc_tooldir@,$gcc_tooldir,;t t
24660 s,@dollar@,$dollar,;t t
24661 s,@slibdir@,$slibdir,;t t
24662 s,@subdirs@,$subdirs,;t t
24663 s,@srcdir@,$srcdir,;t t
24664 s,@all_compilers@,$all_compilers,;t t
24665 s,@all_gtfiles@,$all_gtfiles,;t t
24666 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24667 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24668 s,@all_languages@,$all_languages,;t t
24669 s,@all_selected_languages@,$all_selected_languages,;t t
24670 s,@build_exeext@,$build_exeext,;t t
24671 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24672 s,@build_xm_file_list@,$build_xm_file_list,;t t
24673 s,@build_xm_include_list@,$build_xm_include_list,;t t
24674 s,@build_xm_defines@,$build_xm_defines,;t t
24675 s,@build_file_translate@,$build_file_translate,;t t
24676 s,@check_languages@,$check_languages,;t t
24677 s,@cpp_install_dir@,$cpp_install_dir,;t t
24678 s,@xmake_file@,$xmake_file,;t t
24679 s,@tmake_file@,$tmake_file,;t t
24680 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24681 s,@extra_headers_list@,$extra_headers_list,;t t
24682 s,@extra_objs@,$extra_objs,;t t
24683 s,@extra_parts@,$extra_parts,;t t
24684 s,@extra_passes@,$extra_passes,;t t
24685 s,@extra_programs@,$extra_programs,;t t
24686 s,@float_h_file@,$float_h_file,;t t
24687 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24688 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24689 s,@host_exeext@,$host_exeext,;t t
24690 s,@host_xm_file_list@,$host_xm_file_list,;t t
24691 s,@host_xm_include_list@,$host_xm_include_list,;t t
24692 s,@host_xm_defines@,$host_xm_defines,;t t
24693 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24694 s,@install@,$install,;t t
24695 s,@lang_opt_files@,$lang_opt_files,;t t
24696 s,@lang_specs_files@,$lang_specs_files,;t t
24697 s,@lang_tree_files@,$lang_tree_files,;t t
24698 s,@local_prefix@,$local_prefix,;t t
24699 s,@md_file@,$md_file,;t t
24700 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24701 s,@out_file@,$out_file,;t t
24702 s,@out_object_file@,$out_object_file,;t t
24703 s,@thread_file@,$thread_file,;t t
24704 s,@tm_file_list@,$tm_file_list,;t t
24705 s,@tm_include_list@,$tm_include_list,;t t
24706 s,@tm_defines@,$tm_defines,;t t
24707 s,@tm_p_file_list@,$tm_p_file_list,;t t
24708 s,@tm_p_include_list@,$tm_p_include_list,;t t
24709 s,@xm_file_list@,$xm_file_list,;t t
24710 s,@xm_include_list@,$xm_include_list,;t t
24711 s,@xm_defines@,$xm_defines,;t t
24712 s,@c_target_objs@,$c_target_objs,;t t
24713 s,@cxx_target_objs@,$cxx_target_objs,;t t
24714 s,@fortran_target_objs@,$fortran_target_objs,;t t
24715 s,@target_cpu_default@,$target_cpu_default,;t t
24716 s,@GMPLIBS@,$GMPLIBS,;t t
24717 s,@GMPINC@,$GMPINC,;t t
24718 s,@LIBOBJS@,$LIBOBJS,;t t
24719 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24720 /@language_hooks@/r $language_hooks
24721 s,@language_hooks@,,;t t
24726 cat >>$CONFIG_STATUS <<\_ACEOF
24727 # Split the substitutions into bite-sized pieces for seds with
24728 # small command number limits, like on Digital OSF/1 and HP-UX.
24729 ac_max_sed_lines=48
24730 ac_sed_frag=1 # Number of current file.
24731 ac_beg=1 # First line for current file.
24732 ac_end=$ac_max_sed_lines # Line after last line for current file.
24735 while $ac_more_lines; do
24736 if test $ac_beg -gt 1; then
24737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24739 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24741 if test ! -s $tmp/subs.frag; then
24742 ac_more_lines=false
24744 # The purpose of the label and of the branching condition is to
24745 # speed up the sed processing (if there are no `@' at all, there
24746 # is no need to browse any of the substitutions).
24747 # These are the two extra sed commands mentioned above.
24749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24750 if test -z "$ac_sed_cmds"; then
24751 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24753 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24755 ac_sed_frag=`expr $ac_sed_frag + 1`
24757 ac_end=`expr $ac_end + $ac_max_sed_lines`
24760 if test -z "$ac_sed_cmds"; then
24763 fi # test -n "$CONFIG_FILES"
24766 cat >>$CONFIG_STATUS <<\_ACEOF
24767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24770 - | *:- | *:-:* ) # input from stdin
24772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24776 * ) ac_file_in=$ac_file.in ;;
24779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782 X"$ac_file" : 'X\(//\)[^/]' \| \
24783 X"$ac_file" : 'X\(//\)$' \| \
24784 X"$ac_file" : 'X\(/\)' \| \
24785 . : '\(.\)' 2>/dev/null ||
24787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24789 /^X\(\/\/\)$/{ s//\1/; q; }
24790 /^X\(\/\).*/{ s//\1/; q; }
24792 { if $as_mkdir_p; then
24797 while test ! -d "$as_dir"; do
24798 as_dirs="$as_dir $as_dirs"
24799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24801 X"$as_dir" : 'X\(//\)[^/]' \| \
24802 X"$as_dir" : 'X\(//\)$' \| \
24803 X"$as_dir" : 'X\(/\)' \| \
24804 . : '\(.\)' 2>/dev/null ||
24806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24808 /^X\(\/\/\)$/{ s//\1/; q; }
24809 /^X\(\/\).*/{ s//\1/; q; }
24812 test ! -n "$as_dirs" || mkdir $as_dirs
24813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24815 { (exit 1); exit 1; }; }; }
24819 if test "$ac_dir" != .; then
24820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24821 # A "../" for each directory in $ac_dir_suffix.
24822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24824 ac_dir_suffix= ac_top_builddir=
24828 .) # No --srcdir option. We are building in place.
24830 if test -z "$ac_top_builddir"; then
24833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24835 [\\/]* | ?:[\\/]* ) # Absolute path.
24836 ac_srcdir=$srcdir$ac_dir_suffix;
24837 ac_top_srcdir=$srcdir ;;
24838 *) # Relative path.
24839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24843 # Do not use `cd foo && pwd` to compute absolute paths, because
24844 # the directories may not exist.
24846 .) ac_abs_builddir="$ac_dir";;
24849 .) ac_abs_builddir=`pwd`;;
24850 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24851 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24854 case $ac_abs_builddir in
24855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24857 case ${ac_top_builddir}. in
24858 .) ac_abs_top_builddir=$ac_abs_builddir;;
24859 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24860 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24863 case $ac_abs_builddir in
24864 .) ac_abs_srcdir=$ac_srcdir;;
24867 .) ac_abs_srcdir=$ac_abs_builddir;;
24868 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24869 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24872 case $ac_abs_builddir in
24873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24875 case $ac_top_srcdir in
24876 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24877 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24878 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24884 if test x"$ac_file" != x-; then
24885 { echo "$as_me:$LINENO: creating $ac_file" >&5
24886 echo "$as_me: creating $ac_file" >&6;}
24889 # Let's still pretend it is `configure' which instantiates (i.e., don't
24890 # use $as_me), people would be surprised to read:
24891 # /* config.h. Generated by config.status. */
24892 if test x"$ac_file" = x-; then
24895 configure_input="$ac_file. "
24897 configure_input=$configure_input"Generated from `echo $ac_file_in |
24898 sed 's,.*/,,'` by configure."
24900 # First look for the input files in the build tree, otherwise in the
24902 ac_file_inputs=`IFS=:
24903 for f in $ac_file_in; do
24905 -) echo $tmp/stdin ;;
24907 # Absolute (can't be DOS-style, as IFS=:)
24908 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24909 echo "$as_me: error: cannot find input file: $f" >&2;}
24910 { (exit 1); exit 1; }; }
24913 if test -f "$f"; then
24916 elif test -f "$srcdir/$f"; then
24921 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24922 echo "$as_me: error: cannot find input file: $f" >&2;}
24923 { (exit 1); exit 1; }; }
24926 done` || { (exit 1); exit 1; }
24928 cat >>$CONFIG_STATUS <<_ACEOF
24932 cat >>$CONFIG_STATUS <<\_ACEOF
24934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24935 s,@configure_input@,$configure_input,;t t
24936 s,@srcdir@,$ac_srcdir,;t t
24937 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24938 s,@top_srcdir@,$ac_top_srcdir,;t t
24939 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24940 s,@builddir@,$ac_builddir,;t t
24941 s,@abs_builddir@,$ac_abs_builddir,;t t
24942 s,@top_builddir@,$ac_top_builddir,;t t
24943 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24944 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24946 if test x"$ac_file" != x-; then
24947 mv $tmp/out $ac_file
24953 # Run the commands associated with the file.
24955 as ) chmod +x as ;;
24956 collect-ld ) chmod +x collect-ld ;;
24957 nm ) chmod +x nm ;;
24961 cat >>$CONFIG_STATUS <<\_ACEOF
24964 # CONFIG_HEADER section.
24967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24970 # ac_d sets the value in "#define NAME VALUE" lines.
24971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24972 ac_dB='[ ].*$,\1#\2'
24975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24977 ac_uB='$,\1#\2define\3'
24981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24984 - | *:- | *:-:* ) # input from stdin
24986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24990 * ) ac_file_in=$ac_file.in ;;
24993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24994 echo "$as_me: creating $ac_file" >&6;}
24996 # First look for the input files in the build tree, otherwise in the
24998 ac_file_inputs=`IFS=:
24999 for f in $ac_file_in; do
25001 -) echo $tmp/stdin ;;
25003 # Absolute (can't be DOS-style, as IFS=:)
25004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25005 echo "$as_me: error: cannot find input file: $f" >&2;}
25006 { (exit 1); exit 1; }; }
25007 # Do quote $f, to prevent DOS paths from being IFS'd.
25010 if test -f "$f"; then
25013 elif test -f "$srcdir/$f"; then
25018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25019 echo "$as_me: error: cannot find input file: $f" >&2;}
25020 { (exit 1); exit 1; }; }
25023 done` || { (exit 1); exit 1; }
25024 # Remove the trailing spaces.
25025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25030 # `conftest.undefs', that substitutes the proper values into
25031 # config.h.in to produce config.h. The first handles `#define'
25032 # templates, and the second `#undef' templates.
25033 # And first: Protect against being on the right side of a sed subst in
25034 # config.status. Protect against being in an unquoted here document
25035 # in config.status.
25036 rm -f conftest.defines conftest.undefs
25037 # Using a here document instead of a string reduces the quoting nightmare.
25038 # Putting comments in sed scripts is not portable.
25040 # `end' is used to avoid that the second main sed command (meant for
25041 # 0-ary CPP macros) applies to n-ary macro definitions.
25042 # See the Autoconf documentation for `clear'.
25043 cat >confdef2sed.sed <<\_ACEOF
25048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25053 # If some macros were called several times there might be several times
25054 # the same #defines, which is useless. Nevertheless, we may not want to
25055 # sort them, since we want the *last* AC-DEFINE to be honored.
25056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25058 rm -f confdef2sed.sed
25060 # This sed command replaces #undef with comments. This is necessary, for
25061 # example, in the case of _POSIX_SOURCE, which is predefined and required
25062 # on some systems where configure will not decide to define it.
25063 cat >>conftest.undefs <<\_ACEOF
25064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25067 # Break up conftest.defines because some shells have a limit on the size
25068 # of here documents, and old seds have small limits too (100 cmds).
25069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25072 echo ' :' >>$CONFIG_STATUS
25073 rm -f conftest.tail
25074 while grep . conftest.defines >/dev/null
25076 # Write a limited-size here document to $tmp/defines.sed.
25077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25078 # Speed up: don't consider the non `#define' lines.
25079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25080 # Work around the forget-to-reset-the-flag bug.
25081 echo 't clr' >>$CONFIG_STATUS
25082 echo ': clr' >>$CONFIG_STATUS
25083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25087 mv $tmp/out $tmp/in
25089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25090 rm -f conftest.defines
25091 mv conftest.tail conftest.defines
25093 rm -f conftest.defines
25094 echo ' fi # grep' >>$CONFIG_STATUS
25095 echo >>$CONFIG_STATUS
25097 # Break up conftest.undefs because some shells have a limit on the size
25098 # of here documents, and old seds have small limits too (100 cmds).
25099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25100 rm -f conftest.tail
25101 while grep . conftest.undefs >/dev/null
25103 # Write a limited-size here document to $tmp/undefs.sed.
25104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25105 # Speed up: don't consider the non `#undef'
25106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25107 # Work around the forget-to-reset-the-flag bug.
25108 echo 't clr' >>$CONFIG_STATUS
25109 echo ': clr' >>$CONFIG_STATUS
25110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25114 mv $tmp/out $tmp/in
25116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25117 rm -f conftest.undefs
25118 mv conftest.tail conftest.undefs
25120 rm -f conftest.undefs
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25123 # Let's still pretend it is `configure' which instantiates (i.e., don't
25124 # use $as_me), people would be surprised to read:
25125 # /* config.h. Generated by config.status. */
25126 if test x"$ac_file" = x-; then
25127 echo "/* Generated by configure. */" >$tmp/config.h
25129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25131 cat $tmp/in >>$tmp/config.h
25133 if test x"$ac_file" != x-; then
25134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25136 echo "$as_me: $ac_file is unchanged" >&6;}
25138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25140 X"$ac_file" : 'X\(//\)[^/]' \| \
25141 X"$ac_file" : 'X\(//\)$' \| \
25142 X"$ac_file" : 'X\(/\)' \| \
25143 . : '\(.\)' 2>/dev/null ||
25145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25147 /^X\(\/\/\)$/{ s//\1/; q; }
25148 /^X\(\/\).*/{ s//\1/; q; }
25150 { if $as_mkdir_p; then
25155 while test ! -d "$as_dir"; do
25156 as_dirs="$as_dir $as_dirs"
25157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25159 X"$as_dir" : 'X\(//\)[^/]' \| \
25160 X"$as_dir" : 'X\(//\)$' \| \
25161 X"$as_dir" : 'X\(/\)' \| \
25162 . : '\(.\)' 2>/dev/null ||
25164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25166 /^X\(\/\/\)$/{ s//\1/; q; }
25167 /^X\(\/\).*/{ s//\1/; q; }
25170 test ! -n "$as_dirs" || mkdir $as_dirs
25171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25173 { (exit 1); exit 1; }; }; }
25176 mv $tmp/config.h $ac_file
25180 rm -f $tmp/config.h
25184 cat >>$CONFIG_STATUS <<\_ACEOF
25187 # CONFIG_COMMANDS section.
25189 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25190 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25191 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25192 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25193 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194 X"$ac_dest" : 'X\(//\)[^/]' \| \
25195 X"$ac_dest" : 'X\(//\)$' \| \
25196 X"$ac_dest" : 'X\(/\)' \| \
25197 . : '\(.\)' 2>/dev/null ||
25199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201 /^X\(\/\/\)$/{ s//\1/; q; }
25202 /^X\(\/\).*/{ s//\1/; q; }
25204 { if $as_mkdir_p; then
25209 while test ! -d "$as_dir"; do
25210 as_dirs="$as_dir $as_dirs"
25211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25213 X"$as_dir" : 'X\(//\)[^/]' \| \
25214 X"$as_dir" : 'X\(//\)$' \| \
25215 X"$as_dir" : 'X\(/\)' \| \
25216 . : '\(.\)' 2>/dev/null ||
25218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25220 /^X\(\/\/\)$/{ s//\1/; q; }
25221 /^X\(\/\).*/{ s//\1/; q; }
25224 test ! -n "$as_dirs" || mkdir $as_dirs
25225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25227 { (exit 1); exit 1; }; }; }
25231 if test "$ac_dir" != .; then
25232 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25233 # A "../" for each directory in $ac_dir_suffix.
25234 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25236 ac_dir_suffix= ac_top_builddir=
25240 .) # No --srcdir option. We are building in place.
25242 if test -z "$ac_top_builddir"; then
25245 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25247 [\\/]* | ?:[\\/]* ) # Absolute path.
25248 ac_srcdir=$srcdir$ac_dir_suffix;
25249 ac_top_srcdir=$srcdir ;;
25250 *) # Relative path.
25251 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25252 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25255 # Do not use `cd foo && pwd` to compute absolute paths, because
25256 # the directories may not exist.
25258 .) ac_abs_builddir="$ac_dir";;
25261 .) ac_abs_builddir=`pwd`;;
25262 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25263 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25266 case $ac_abs_builddir in
25267 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25269 case ${ac_top_builddir}. in
25270 .) ac_abs_top_builddir=$ac_abs_builddir;;
25271 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25272 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25275 case $ac_abs_builddir in
25276 .) ac_abs_srcdir=$ac_srcdir;;
25279 .) ac_abs_srcdir=$ac_abs_builddir;;
25280 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25281 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25284 case $ac_abs_builddir in
25285 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25287 case $ac_top_srcdir in
25288 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25289 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25290 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25296 echo "$as_me: executing $ac_dest commands" >&6;}
25299 case ${CONFIG_HEADERS} in
25300 *auto-host.h:config.in*)
25303 # Make sure all the subdirs exist.
25304 for d in $subdirs doc build
25306 test -d $d || mkdir $d
25313 cat >>$CONFIG_STATUS <<\_ACEOF
25315 { (exit 0); exit 0; }
25317 chmod +x $CONFIG_STATUS
25318 ac_clean_files=$ac_clean_files_save
25321 # configure is writing to config.log, and then calls config.status.
25322 # config.status does its own redirection, appending to config.log.
25323 # Unfortunately, on DOS this fails, as config.log is still kept open
25324 # by configure, so config.status won't be able to write to it; its
25325 # output is simply discarded. So we exec the FD to /dev/null,
25326 # effectively closing config.log, so it can be properly (re)opened and
25327 # appended to by config.status. When coming back to configure, we
25328 # need to make the FD available again.
25329 if test "$no_create" != yes; then
25331 ac_config_status_args=
25332 test "$silent" = yes &&
25333 ac_config_status_args="$ac_config_status_args --quiet"
25335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25338 # would make configure fail if this is the last instruction.
25339 $ac_cs_success || { (exit 1); exit 1; }