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 NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_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 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 target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
464 # Initialize some variables set by options.
466 ac_init_version
=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name
=s
,x
,x
,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir
='${exec_prefix}/bin'
490 sbindir
='${exec_prefix}/sbin'
491 libexecdir
='${exec_prefix}/libexec'
492 datadir
='${prefix}/share'
493 sysconfdir
='${prefix}/etc'
494 sharedstatedir
='${prefix}/com'
495 localstatedir
='${prefix}/var'
496 libdir
='${exec_prefix}/lib'
497 includedir
='${prefix}/include'
498 oldincludedir
='/usr/include'
499 infodir
='${prefix}/info'
500 mandir
='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
520 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
523 -build |
--build |
--buil |
--bui |
--bu)
524 ac_prev
=build_alias
;;
525 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
526 build_alias
=$ac_optarg ;;
528 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
529 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
530 ac_prev
=cache_file
;;
531 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
532 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
533 cache_file
=$ac_optarg ;;
536 cache_file
=config.cache
;;
538 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
540 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
542 datadir
=$ac_optarg ;;
544 -disable-* |
--disable-*)
545 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* |
--enable-*)
554 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
567 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
568 |
--exec |
--exe |
--ex)
569 ac_prev
=exec_prefix
;;
570 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
571 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
572 |
--exec=* |
--exe=* |
--ex=*)
573 exec_prefix
=$ac_optarg ;;
575 -gas |
--gas |
--ga |
--g)
576 # Obsolete; use --with-gas.
579 -help |
--help |
--hel |
--he |
-h)
581 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
582 ac_init_help
=recursive
;;
583 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
584 ac_init_help
=short
;;
586 -host |
--host |
--hos |
--ho)
587 ac_prev
=host_alias
;;
588 -host=* |
--host=* |
--hos=* |
--ho=*)
589 host_alias
=$ac_optarg ;;
591 -includedir |
--includedir |
--includedi |
--included |
--include \
592 |
--includ |
--inclu |
--incl |
--inc)
593 ac_prev
=includedir
;;
594 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
595 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
596 includedir
=$ac_optarg ;;
598 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
600 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
601 infodir
=$ac_optarg ;;
603 -libdir |
--libdir |
--libdi |
--libd)
605 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
608 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
609 |
--libexe |
--libex |
--libe)
610 ac_prev
=libexecdir
;;
611 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
612 |
--libexe=* |
--libex=* |
--libe=*)
613 libexecdir
=$ac_optarg ;;
615 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
616 |
--localstate |
--localstat |
--localsta |
--localst \
617 |
--locals |
--local |
--loca |
--loc |
--lo)
618 ac_prev
=localstatedir
;;
619 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
620 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
621 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
622 localstatedir
=$ac_optarg ;;
624 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
626 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
630 # Obsolete; use --without-fp.
633 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
634 |
--no-cr |
--no-c |
-n)
637 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
638 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
641 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
642 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
643 |
--oldin |
--oldi |
--old |
--ol |
--o)
644 ac_prev
=oldincludedir
;;
645 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
646 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
647 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
648 oldincludedir
=$ac_optarg ;;
650 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
652 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
655 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
656 |
--program-pre |
--program-pr |
--program-p)
657 ac_prev
=program_prefix
;;
658 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
659 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
660 program_prefix
=$ac_optarg ;;
662 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
663 |
--program-suf |
--program-su |
--program-s)
664 ac_prev
=program_suffix
;;
665 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
666 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
667 program_suffix
=$ac_optarg ;;
669 -program-transform-name |
--program-transform-name \
670 |
--program-transform-nam |
--program-transform-na \
671 |
--program-transform-n |
--program-transform- \
672 |
--program-transform |
--program-transfor \
673 |
--program-transfo |
--program-transf \
674 |
--program-trans |
--program-tran \
675 |
--progr-tra |
--program-tr |
--program-t)
676 ac_prev
=program_transform_name
;;
677 -program-transform-name=* |
--program-transform-name=* \
678 |
--program-transform-nam=* |
--program-transform-na=* \
679 |
--program-transform-n=* |
--program-transform-=* \
680 |
--program-transform=* |
--program-transfor=* \
681 |
--program-transfo=* |
--program-transf=* \
682 |
--program-trans=* |
--program-tran=* \
683 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
684 program_transform_name
=$ac_optarg ;;
686 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
687 |
-silent |
--silent |
--silen |
--sile |
--sil)
690 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
692 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
694 sbindir
=$ac_optarg ;;
696 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
697 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
698 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
700 ac_prev
=sharedstatedir
;;
701 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
702 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
703 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
705 sharedstatedir
=$ac_optarg ;;
707 -site |
--site |
--sit)
709 -site=* |
--site=* |
--sit=*)
712 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
714 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
717 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
718 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
719 ac_prev
=sysconfdir
;;
720 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
721 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
722 sysconfdir
=$ac_optarg ;;
724 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
725 ac_prev
=target_alias
;;
726 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
727 target_alias
=$ac_optarg ;;
729 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
732 -version |
--version |
--versio |
--versi |
--vers |
-V)
736 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package
=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* |
--without-*)
749 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package
=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
762 |
--x-incl |
--x-inc |
--x-in |
--x-i)
763 ac_prev
=x_includes
;;
764 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
765 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
766 x_includes
=$ac_optarg ;;
768 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
769 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
770 ac_prev
=x_libraries
;;
771 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
772 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
773 x_libraries
=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var
in exec_prefix prefix
810 eval ac_val
=$
`echo $ac_var`
812 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val
=$
`echo $ac_var`
824 [\\/$
]* | ?
:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x
; then
839 if test "x$build_alias" = x
; then
840 cross_compiling
=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
851 test "$silent" = yes && exec 6>/dev
/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted
=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir
=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted
=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set
=${build_alias+set}
891 ac_env_build_alias_value
=$build_alias
892 ac_cv_env_build_alias_set
=${build_alias+set}
893 ac_cv_env_build_alias_value
=$build_alias
894 ac_env_host_alias_set
=${host_alias+set}
895 ac_env_host_alias_value
=$host_alias
896 ac_cv_env_host_alias_set
=${host_alias+set}
897 ac_cv_env_host_alias_value
=$host_alias
898 ac_env_target_alias_set
=${target_alias+set}
899 ac_env_target_alias_value
=$target_alias
900 ac_cv_env_target_alias_set
=${target_alias+set}
901 ac_cv_env_target_alias_value
=$target_alias
902 ac_env_CC_set
=${CC+set}
904 ac_cv_env_CC_set
=${CC+set}
905 ac_cv_env_CC_value
=$CC
906 ac_env_CFLAGS_set
=${CFLAGS+set}
907 ac_env_CFLAGS_value
=$CFLAGS
908 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value
=$CFLAGS
910 ac_env_LDFLAGS_set
=${LDFLAGS+set}
911 ac_env_LDFLAGS_value
=$LDFLAGS
912 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value
=$LDFLAGS
914 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value
=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
918 ac_env_CPP_set
=${CPP+set}
919 ac_env_CPP_value
=$CPP
920 ac_cv_env_CPP_set
=${CPP+set}
921 ac_cv_env_CPP_value
=$CPP
922 ac_env_GMPLIBS_set
=${GMPLIBS+set}
923 ac_env_GMPLIBS_value
=$GMPLIBS
924 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
925 ac_cv_env_GMPLIBS_value
=$GMPLIBS
926 ac_env_GMPINC_set
=${GMPINC+set}
927 ac_env_GMPINC_value
=$GMPINC
928 ac_cv_env_GMPINC_set
=${GMPINC+set}
929 ac_cv_env_GMPINC_value
=$GMPINC
932 # Report the --help message.
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # This message is too long to be a string in the A/UX 3.1 sh.
938 \`configure' configures this package to adapt to many kinds of systems.
940 Usage: $0 [OPTION]... [VAR=VALUE]...
942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
943 VAR=VALUE. See below for descriptions of some of the useful variables.
945 Defaults for the options are specified in brackets.
948 -h, --help display this help and exit
949 --help=short display options specific to this package
950 --help=recursive display the short help of all the included packages
951 -V, --version display version information and exit
952 -q, --quiet, --silent do not print \`checking...' messages
953 --cache-file=FILE cache test results in FILE [disabled]
954 -C, --config-cache alias for \`--cache-file=config.cache'
955 -n, --no-create do not create output files
956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
961 Installation directories:
962 --prefix=PREFIX install architecture-independent files in PREFIX
964 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
967 By default, \`make install' will install all the files in
968 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
969 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970 for instance \`--prefix=\$HOME'.
972 For better control, use the options below.
974 Fine tuning of the installation directories:
975 --bindir=DIR user executables [EPREFIX/bin]
976 --sbindir=DIR system admin executables [EPREFIX/sbin]
977 --libexecdir=DIR program executables [EPREFIX/libexec]
978 --datadir=DIR read-only architecture-independent data [PREFIX/share]
979 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
980 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
981 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
982 --libdir=DIR object code libraries [EPREFIX/lib]
983 --includedir=DIR C header files [PREFIX/include]
984 --oldincludedir=DIR C header files for non-gcc [/usr/include]
985 --infodir=DIR info documentation [PREFIX/info]
986 --mandir=DIR man documentation [PREFIX/man]
992 --program-prefix=PREFIX prepend PREFIX to installed program names
993 --program-suffix=SUFFIX append SUFFIX to installed program names
994 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
997 --build=BUILD configure
for building on BUILD
[guessed
]
998 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
999 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1003 if test -n "$ac_init_help"; then
1008 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1009 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1010 --enable-generated-files-in-srcdir
1011 put copies of generated files
in source dir
1012 intended
for creating
source tarballs
for users
1013 without texinfo bison or flex.
1014 --enable-werror-always enable -Werror despite compiler version
1015 --enable-checking=LIST
1016 enable expensive run-time checks. With LIST
,
1017 enable only specific categories of checks.
1018 Categories are
: yes,no
,all
,none
,release.
1019 Flags are
: assert
,df
,fold,gc
,gcac
,misc
,
1020 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1021 --enable-mapped-location location_t is fileline integer cookie
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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1506 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1507 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1508 echo "$as_me: former value: $ac_old_val" >&2;}
1509 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1510 echo "$as_me: current value: $ac_new_val" >&2;}
1511 ac_cache_corrupted=:
1514 # Pass precious variables to config.status.
1515 if test "$ac_new_set" = set; then
1517 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1518 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1519 *) ac_arg=$ac_var=$ac_new_val ;;
1521 case " $ac_configure_args " in
1522 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1523 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527 if $ac_cache_corrupted; then
1528 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1529 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1530 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1531 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1532 { (exit 1); exit 1; }; }
1536 ac_cpp='$CPP $CPPFLAGS'
1537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1538 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1563 gcc_version=`cat $srcdir/BASE-VER`
1565 # Determine the host, build, and target systems
1567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1568 if test -f $ac_dir/install-sh; then
1570 ac_install_sh="$ac_aux_dir/install-sh -c"
1572 elif test -f $ac_dir/install.sh; then
1574 ac_install_sh="$ac_aux_dir/install.sh -c"
1576 elif test -f $ac_dir/shtool; then
1578 ac_install_sh="$ac_aux_dir/shtool install -c"
1582 if test -z "$ac_aux_dir"; then
1583 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1584 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1585 { (exit 1); exit 1; }; }
1587 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1591 # Make sure we can run config.sub.
1592 $ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1597 echo "$as_me:$LINENO: checking build system type" >&5
1598 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599 if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 ac_cv_build_alias=$build_alias
1603 test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605 test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616 echo "${ECHO_T}$ac_cv_build" >&6
1618 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1619 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1620 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1623 echo "$as_me:$LINENO: checking host system type" >&5
1624 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625 if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_host_alias=$host_alias
1629 test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638 echo "${ECHO_T}$ac_cv_host" >&6
1640 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1641 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1642 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1645 echo "$as_me:$LINENO: checking target system type" >&5
1646 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647 if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 ac_cv_target_alias=$target_alias
1651 test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660 echo "${ECHO_T}$ac_cv_target" >&6
1661 target=$ac_cv_target
1662 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1663 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1664 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1667 # The aliases save the names the user supplied, while $host etc.
1668 # will get canonicalized.
1669 test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1672 program_prefix=${target_alias}-
1674 # Determine the noncanonical target name, for directory use.
1675 case ${build_alias} in
1676 "") build_noncanonical=${build} ;;
1677 *) build_noncanonical=${build_alias} ;;
1680 case ${host_alias} in
1681 "") host_noncanonical=${build_noncanonical} ;;
1682 *) host_noncanonical=${host_alias} ;;
1685 case ${target_alias} in
1686 "") target_noncanonical=${host_noncanonical} ;;
1687 *) target_noncanonical=${target_alias} ;;
1693 # Determine the target- and build-specific subdirectories
1695 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1696 # have matching libraries, they should use host libraries: Makefile.tpl
1697 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1698 # However, they still use the build modules, because the corresponding
1699 # host modules (e.g. bison) are only built for the host when bootstrap
1701 # - build_subdir is where we find build modules, and never changes.
1702 # - build_libsubdir is where we find build libraries, and can be overridden.
1704 # Prefix 'build-
' so this never conflicts with target_subdir.
1705 build_subdir="build-${build_noncanonical}"
1707 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1708 if test "${with_build_libsubdir+set}" = set; then
1709 withval="$with_build_libsubdir"
1710 build_libsubdir="$withval"
1712 build_libsubdir="$build_subdir"
1714 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1715 if ( test $srcdir = . && test -d gcc ) \
1716 || test -d $srcdir/../host-${host_noncanonical}; then
1717 host_subdir="host-${host_noncanonical}"
1722 target_subdir=${target_noncanonical}
1725 # Set program_transform_name
1726 test "$program_prefix" != NONE &&
1727 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $. echo might interpret backslashes.
1732 # By default was `s,x,x', remove it
if useless.
1733 cat <<\_ACEOF
>conftest.
sed
1734 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1736 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1740 # Check for bogus environment variables.
1741 # Test if LIBRARY_PATH contains the notation for the current directory
1742 # since this would lead to problems installing/building glibc.
1743 # LIBRARY_PATH contains the current directory if one of the following
1745 # - one of the terminals (":" and ";") is the first or last sign
1746 # - two terminals occur directly after each other
1747 # - the path contains an element with a dot in it
1748 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1749 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1750 case ${LIBRARY_PATH} in
1751 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1752 library_path_setting
="contains current directory"
1755 library_path_setting
="ok"
1758 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1759 echo "${ECHO_T}$library_path_setting" >&6
1760 if test "$library_path_setting" != "ok"; then
1761 { { echo "$as_me:$LINENO: error:
1762 *** LIBRARY_PATH shouldn't contain the current directory when
1763 *** building gcc. Please change the environment variable
1764 *** and run configure again." >&5
1765 echo "$as_me: error:
1766 *** LIBRARY_PATH shouldn't contain the current directory when
1767 *** building gcc. Please change the environment variable
1768 *** and run configure again." >&2;}
1769 { (exit 1); exit 1; }; }
1772 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1773 # since this would lead to problems installing/building glibc.
1774 # GCC_EXEC_PREFIX contains the current directory if one of the following
1776 # - one of the terminals (":" and ";") is the first or last sign
1777 # - two terminals occur directly after each other
1778 # - the path contains an element with a dot in it
1779 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1780 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1781 case ${GCC_EXEC_PREFIX} in
1782 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1783 gcc_exec_prefix_setting
="contains current directory"
1786 gcc_exec_prefix_setting
="ok"
1789 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1790 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1791 if test "$gcc_exec_prefix_setting" != "ok"; then
1792 { { echo "$as_me:$LINENO: error:
1793 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1794 *** building gcc. Please change the environment variable
1795 *** and run configure again." >&5
1796 echo "$as_me: error:
1797 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1798 *** building gcc. Please change the environment variable
1799 *** and run configure again." >&2;}
1800 { (exit 1); exit 1; }; }
1807 # Specify the local prefix
1810 # Check whether --with-local-prefix or --without-local-prefix was given.
1811 if test "${with_local_prefix+set}" = set; then
1812 withval
="$with_local_prefix"
1813 case "${withval}" in
1814 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1815 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1816 { (exit 1); exit 1; }; } ;;
1818 *) local_prefix
=$with_local_prefix ;;
1822 # Default local prefix if it is empty
1823 if test x
$local_prefix = x
; then
1824 local_prefix
=/usr
/local
1827 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1828 # passed in by the toplevel make and thus we'd get different behavior
1829 # depending on where we built the sources.
1830 gcc_gxx_include_dir
=
1831 # Specify the g++ header file directory
1833 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1834 if test "${with_gxx_include_dir+set}" = set; then
1835 withval
="$with_gxx_include_dir"
1836 case "${withval}" in
1837 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1838 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1839 { (exit 1); exit 1; }; } ;;
1841 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1845 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1846 if test x
${gcc_gxx_include_dir} = x
; then
1847 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1848 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1850 libstdcxx_incdir
='include/c++/$(version)'
1851 if test x
$host != x
$target; then
1852 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1854 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1859 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1860 if test "${with_cpp_install_dir+set}" = set; then
1861 withval
="$with_cpp_install_dir"
1862 if test x
$withval = xyes
; then
1863 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1864 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1865 { (exit 1); exit 1; }; }
1866 elif test x
$withval != xno
; then
1867 cpp_install_dir
=$withval
1871 # We would like to our source tree to be readonly. However when releases or
1872 # pre-releases are generated, the flex/bison generated files as well as the
1873 # various formats of manuals need to be included along with the rest of the
1874 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1877 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1878 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1879 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1880 if test "${enable_generated_files_in_srcdir+set}" = set; then
1881 enableval
="$enable_generated_files_in_srcdir"
1882 generated_files_in_srcdir
=$enableval
1884 generated_files_in_srcdir
=no
1887 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1888 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1890 if test "$generated_files_in_srcdir" = "yes"; then
1897 # -------------------
1898 # Find default linker
1899 # -------------------
1903 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1904 if test "${with_gnu_ld+set}" = set; then
1905 withval
="$with_gnu_ld"
1906 gnu_ld_flag
="$with_gnu_ld"
1911 # With pre-defined ld
1913 # Check whether --with-ld or --without-ld was given.
1914 if test "${with_ld+set}" = set; then
1916 DEFAULT_LINKER
="$with_ld"
1918 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1919 if test ! -x "$DEFAULT_LINKER"; then
1920 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1921 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1922 { (exit 1); exit 1; }; }
1923 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1927 cat >>confdefs.h
<<_ACEOF
1928 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1933 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1935 cat >>confdefs.h
<<_ACEOF
1936 #define HAVE_GNU_LD $gnu_ld
1940 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1941 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1942 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1943 if test x
"$gnu_ld_flag" = x
"no"; then
1944 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1945 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1947 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1948 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1955 # With demangler in GNU ld
1957 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1958 if test "${with_demangler_in_ld+set}" = set; then
1959 withval
="$with_demangler_in_ld"
1960 demangler_in_ld
="$with_demangler_in_ld"
1965 # ----------------------
1966 # Find default assembler
1967 # ----------------------
1971 # Check whether --with-gnu-as or --without-gnu-as was given.
1972 if test "${with_gnu_as+set}" = set; then
1973 withval
="$with_gnu_as"
1974 gas_flag
="$with_gnu_as"
1980 # Check whether --with-as or --without-as was given.
1981 if test "${with_as+set}" = set; then
1983 DEFAULT_ASSEMBLER
="$with_as"
1985 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1986 if test ! -x "$DEFAULT_ASSEMBLER"; then
1987 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1988 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1989 { (exit 1); exit 1; }; }
1990 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1994 cat >>confdefs.h
<<_ACEOF
1995 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2000 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2002 cat >>confdefs.h
<<_ACEOF
2003 #define HAVE_GNU_AS $gnu_as
2007 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2008 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2009 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2010 if test x
"$gas_flag" = x
"no"; then
2011 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2012 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2014 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2015 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2026 # If a non-executable a.out is present (e.g. created by GNU as above even if
2027 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2028 # file, even when creating an executable, so an execution test fails.
2029 # Remove possible default executable files to avoid this.
2031 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2032 # Autoconf includes it.
2033 rm -f a.out a.exe b.out
2035 # Find the native compiler
2037 ac_cpp
='$CPP $CPPFLAGS'
2038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2041 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2043 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC
="$CC" # Let the user override the test.
2052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir
=.
2057 for ac_exec_ext
in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 if test -n "$CC"; then
2070 echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2073 echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2078 if test -z "$ac_cv_prog_CC"; then
2080 # Extract the first word of "gcc", so it can be a program name with args.
2081 set dummy gcc
; ac_word
=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$ac_ct_CC"; then
2088 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir
=.
2095 for ac_exec_ext
in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_ac_ct_CC
="gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2107 if test -n "$ac_ct_CC"; then
2108 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2109 echo "${ECHO_T}$ac_ct_CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2120 if test -z "$CC"; then
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2123 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC
="$CC" # Let the user override the test.
2132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir
=.
2137 for ac_exec_ext
in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2158 if test -z "$ac_cv_prog_CC"; then
2160 # Extract the first word of "cc", so it can be a program name with args.
2161 set dummy cc
; ac_word
=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir
=.
2175 for ac_exec_ext
in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_ac_ct_CC
="cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2187 if test -n "$ac_ct_CC"; then
2188 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2189 echo "${ECHO_T}$ac_ct_CC" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2201 if test -z "$CC"; then
2202 # Extract the first word of "cc", so it can be a program name with args.
2203 set dummy cc
; ac_word
=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC
="$CC" # Let the user override the test.
2213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir
=.
2218 for ac_exec_ext
in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2221 ac_prog_rejected
=yes
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 if test $ac_prog_rejected = yes; then
2232 # We found a bogon in the path, so make sure we never use it.
2233 set dummy
$ac_cv_prog_CC
2235 if test $# != 0; then
2236 # We chose a different compiler from the bogus one.
2237 # However, it has the same basename, so the bogon will be chosen
2238 # first if we set CC to just the basename; use the full file name.
2240 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2246 if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2255 if test -z "$CC"; then
2256 if test -n "$ac_tool_prefix"; then
2259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2260 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC
="$CC" # Let the user override the test.
2269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir
=.
2274 for ac_exec_ext
in '' $ac_executable_extensions; do
2275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 if test -n "$CC"; then
2287 echo "$as_me:$LINENO: result: $CC" >&5
2288 echo "${ECHO_T}$CC" >&6
2290 echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2294 test -n "$CC" && break
2297 if test -z "$CC"; then
2301 # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy
$ac_prog; ac_word
=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$ac_ct_CC"; then
2309 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir
=.
2316 for ac_exec_ext
in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 ac_cv_prog_ac_ct_CC
="$ac_prog"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2328 if test -n "$ac_ct_CC"; then
2329 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2330 echo "${ECHO_T}$ac_ct_CC" >&6
2332 echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2336 test -n "$ac_ct_CC" && break
2345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: no acceptable C compiler found in \$PATH
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2351 # Provide some information about the compiler.
2352 echo "$as_me:$LINENO:" \
2353 "checking for C compiler version" >&5
2354 ac_compiler
=`set X $ac_compile; echo $2`
2355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2356 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2361 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2366 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }
2371 cat >conftest.
$ac_ext <<_ACEOF
2374 cat confdefs.h
>>conftest.
$ac_ext
2375 cat >>conftest.
$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2386 ac_clean_files_save
=$ac_clean_files
2387 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2393 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2406 # b.out is created by i960 compilers.
2407 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2409 test -f "$ac_file" ||
continue
2411 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2414 # This is the source file.
2417 # We found the default executable, but exeext='' is most
2421 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # FIXME: I believe we export ac_cv_exeext for Libtool,
2423 # but it would be cool to find out if it's true. Does anybody
2424 # maintain Libtool? --akim.
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.
$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439 { (exit 77); exit 77; }; }
2442 ac_exeext
=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453 if { ac_try
='./$ac_file'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2461 if test "$cross_compiling" = maybe
; then
2464 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2478 ac_clean_files
=$ac_clean_files_save
2479 # Check the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2497 for ac_file
in conftest.exe conftest conftest.
*; do
2498 test -f "$ac_file" ||
continue
2500 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2501 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2515 rm -f conftest
$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2519 rm -f conftest.
$ac_ext
2520 EXEEXT
=$ac_cv_exeext
2522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524 if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 cat >conftest.
$ac_ext <<_ACEOF
2530 cat confdefs.h
>>conftest.
$ac_ext
2531 cat >>conftest.
$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.o conftest.obj
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; then
2548 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2551 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.
$ac_ext >&5
2559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }
2566 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2569 echo "${ECHO_T}$ac_cv_objext" >&6
2570 OBJEXT
=$ac_cv_objext
2572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 cat >conftest.
$ac_ext <<_ACEOF
2580 cat confdefs.h
>>conftest.
$ac_ext
2581 cat >>conftest.
$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2595 rm -f conftest.
$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1
>conftest.err
2601 cat conftest.err
>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try
='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try
='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.
$ac_ext >&5
2624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2625 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2630 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2631 ac_test_CFLAGS
=${CFLAGS+set}
2632 ac_save_CFLAGS
=$CFLAGS
2634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 cat >conftest.
$ac_ext <<_ACEOF
2642 cat confdefs.h
>>conftest.
$ac_ext
2643 cat >>conftest.
$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.
$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1
>conftest.err
2660 cat conftest.err
>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try
='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try
='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.
$ac_ext >&5
2683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2687 if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS
=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2696 if test "$GCC" = yes; then
2702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_prog_cc_stdc
=no
2709 cat >conftest.
$ac_ext <<_ACEOF
2712 cat confdefs.h
>>conftest.
$ac_ext
2713 cat >>conftest.
$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2733 s = g (p, va_arg (v,int));
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
2741 as 'x'. The following induces an error, until -std1 is added to get
2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
2744 that's true only with -std1. */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747 int test (int i, double x);
2748 struct s1 {int (*f) (int a);};
2749 struct s2 {int (*f) (double a);};
2750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2761 # Don't try gcc -ansi; that turns off useful extensions and
2762 # breaks some systems' header files.
2763 # AIX -qlanglvl=ansi
2764 # Ultrix and OSF/1 -std1
2765 # HP-UX 10.20 and later -Ae
2766 # HP-UX older versions -Aa -D_HPUX_SOURCE
2767 # SVR4 -Xc -D__EXTENSIONS__
2768 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 CC
="$ac_save_CC $ac_arg"
2771 rm -f conftest.
$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1
>conftest.err
2777 cat conftest.err
>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try
='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try
='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_prog_cc_stdc
=$ac_arg
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.
$ac_ext >&5
2800 rm -f conftest.err conftest.
$ac_objext
2802 rm -f conftest.
$ac_ext conftest.
$ac_objext
2807 case "x$ac_cv_prog_cc_stdc" in
2809 echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6 ;;
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2814 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2817 # Some people use a C++ compiler to compile C. Since we use `exit',
2818 # in C++ we need to declare it. In case someone uses the same compiler
2819 # for both compiling C and C++ we need to have the C++ compiler decide
2820 # the declaration of exit, since it's the most demanding environment.
2821 cat >conftest.
$ac_ext <<_ACEOF
2826 rm -f conftest.
$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1
>conftest.err
2832 cat conftest.err
>&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try
='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try
='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 for ac_declaration
in \
2850 'extern "C" void std::exit (int) throw (); using std::exit;' \
2851 'extern "C" void std::exit (int); using std::exit;' \
2852 'extern "C" void exit (int) throw ();' \
2853 'extern "C" void exit (int);' \
2856 cat >conftest.
$ac_ext <<_ACEOF
2859 cat confdefs.h
>>conftest.
$ac_ext
2860 cat >>conftest.
$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2872 rm -f conftest.
$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1
>conftest.err
2878 cat conftest.err
>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try
='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try
='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.
$ac_ext >&5
2901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.
$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1
>conftest.err
2923 cat conftest.err
>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try
='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try
='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.
$ac_ext >&5
2945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2948 if test -n "$ac_declaration"; then
2949 echo '#ifdef __cplusplus' >>confdefs.h
2950 echo $ac_declaration >>confdefs.h
2951 echo '#endif' >>confdefs.h
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.
$ac_ext >&5
2959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2961 ac_cpp
='$CPP $CPPFLAGS'
2962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2966 if test "x$CC" != xcc
; then
2967 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2968 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2970 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2971 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2973 set dummy
$CC; ac_cc
=`echo $2 |
2974 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2975 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 cat >conftest.
$ac_ext <<_ACEOF
2981 cat confdefs.h
>>conftest.
$ac_ext
2982 cat >>conftest.
$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2993 # Make sure it works both with $CC and with simple cc.
2994 # We do the test twice because some compilers refuse to overwrite an
2995 # existing .o file with -o, though they will create one.
2996 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2997 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); };
3008 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3009 if test "x$CC" != xcc
; then
3010 # Test first that cc exists at all.
3011 if { ac_try
='cc -c conftest.$ac_ext >&5'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3018 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } &&
3023 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); };
3032 # cc exists but doesn't like -o.
3033 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3038 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3043 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3044 echo "$as_me:$LINENO: result: yes" >&5
3045 echo "${ECHO_T}yes" >&6
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3050 cat >>confdefs.h
<<\_ACEOF
3051 #define NO_MINUS_C_MINUS_O 1
3056 # expand $ac_aux_dir to an absolute path
3057 am_aux_dir
=`cd $ac_aux_dir && pwd`
3059 # FIXME: we rely on the cache variable name because
3060 # there is no other way.
3062 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3063 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3064 # Losing compiler, so override with the script.
3065 # FIXME: It is wrong to rewrite CC.
3066 # But if we don't then we get into trouble of one sort or another.
3067 # A longer-term fix would be to have automake use am__CC in this case,
3068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3069 CC
="$am_aux_dir/compile $CC"
3072 # autoconf is lame and doesn't give us any substitution variable for this.
3073 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3074 NO_MINUS_C_MINUS_O
=yes
3076 OUTPUT_OPTION
='-o $@'
3081 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3082 # optimizations to be activated explicitly by the toplevel.
3084 */prev-gcc
/xgcc
*) ;;
3085 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3089 # -------------------------
3090 # Check C compiler features
3091 # -------------------------
3094 ac_cpp
='$CPP $CPPFLAGS'
3095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3100 # On Suns, sometimes $CPP names a directory.
3101 if test -n "$CPP" && test -d "$CPP"; then
3104 if test -z "$CPP"; then
3105 if test "${ac_cv_prog_CPP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 # Double quotes because CPP needs to be expanded
3109 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112 for ac_c_preproc_warn_flag
in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1
>conftest.err
3138 cat conftest.err
>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev
/null
; then
3141 if test -s conftest.err
; then
3142 ac_cpp_err
=$ac_c_preproc_warn_flag
3143 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3150 if test -z "$ac_cpp_err"; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.
$ac_ext >&5
3156 # Broken: fails on valid input.
3159 rm -f conftest.err conftest.
$ac_ext
3161 # OK, works on sane cases. Now check whether non-existent headers
3162 # can be detected and how.
3163 cat >conftest.
$ac_ext <<_ACEOF
3166 cat confdefs.h
>>conftest.
$ac_ext
3167 cat >>conftest.
$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev
/null
; then
3179 if test -s conftest.err
; then
3180 ac_cpp_err
=$ac_c_preproc_warn_flag
3181 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3188 if test -z "$ac_cpp_err"; then
3189 # Broken: success on invalid input.
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.
$ac_ext >&5
3195 # Passes both tests.
3199 rm -f conftest.err conftest.
$ac_ext
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.err conftest.
$ac_ext
3204 if $ac_preproc_ok; then
3216 echo "$as_me:$LINENO: result: $CPP" >&5
3217 echo "${ECHO_T}$CPP" >&6
3219 for ac_c_preproc_warn_flag
in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3243 grep -v '^ *+' conftest.er1
>conftest.err
3245 cat conftest.err
>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev
/null
; then
3248 if test -s conftest.err
; then
3249 ac_cpp_err
=$ac_c_preproc_warn_flag
3250 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.
$ac_ext >&5
3263 # Broken: fails on valid input.
3266 rm -f conftest.err conftest.
$ac_ext
3268 # OK, works on sane cases. Now check whether non-existent headers
3269 # can be detected and how.
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <ac_nonexistent.h>
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev
/null
; then
3286 if test -s conftest.err
; then
3287 ac_cpp_err
=$ac_c_preproc_warn_flag
3288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3295 if test -z "$ac_cpp_err"; then
3296 # Broken: success on invalid input.
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.
$ac_ext >&5
3302 # Passes both tests.
3306 rm -f conftest.err conftest.
$ac_ext
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.
$ac_ext
3311 if $ac_preproc_ok; then
3314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3322 ac_cpp
='$CPP $CPPFLAGS'
3323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3328 echo "$as_me:$LINENO: checking for inline" >&5
3329 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3330 if test "${ac_cv_c_inline+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 for ac_kw
in inline __inline__ __inline
; do
3335 cat >conftest.
$ac_ext <<_ACEOF
3338 cat confdefs.h
>>conftest.
$ac_ext
3339 cat >>conftest.
$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3343 static $ac_kw foo_t static_foo () {return 0; }
3344 $ac_kw foo_t foo () {return 0; }
3348 rm -f conftest.
$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3352 grep -v '^ *+' conftest.er1
>conftest.err
3354 cat conftest.err
>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try
='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try
='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_c_inline
=$ac_kw; break
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.
$ac_ext >&5
3376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3380 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3381 echo "${ECHO_T}$ac_cv_c_inline" >&6
3384 case $ac_cv_c_inline in
3387 case $ac_cv_c_inline in
3389 *) ac_val
=$ac_cv_c_inline;;
3391 cat >>confdefs.h
<<_ACEOF
3393 #define inline $ac_val
3400 # sizeof(char) is 1 by definition.
3402 echo "$as_me:$LINENO: checking for egrep" >&5
3403 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3404 if test "${ac_cv_prog_egrep+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3408 then ac_cv_prog_egrep
='grep -E'
3409 else ac_cv_prog_egrep
='egrep'
3412 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3413 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3414 EGREP
=$ac_cv_prog_egrep
3417 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3418 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3419 if test "${ac_cv_header_stdc+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 cat >conftest.
$ac_ext <<_ACEOF
3425 cat confdefs.h
>>conftest.
$ac_ext
3426 cat >>conftest.
$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3441 rm -f conftest.
$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1
>conftest.err
3447 cat conftest.err
>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try
='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try
='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_header_stdc
=yes
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3468 ac_cv_header_stdc
=no
3470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3472 if test $ac_cv_header_stdc = yes; then
3473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3474 cat >conftest.
$ac_ext <<_ACEOF
3477 cat confdefs.h
>>conftest.
$ac_ext
3478 cat >>conftest.
$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 $EGREP "memchr" >/dev
/null
2>&1; then
3487 ac_cv_header_stdc
=no
3493 if test $ac_cv_header_stdc = yes; then
3494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3495 cat >conftest.
$ac_ext <<_ACEOF
3498 cat confdefs.h
>>conftest.
$ac_ext
3499 cat >>conftest.
$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 $EGREP "free" >/dev
/null
2>&1; then
3508 ac_cv_header_stdc
=no
3514 if test $ac_cv_header_stdc = yes; then
3515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3516 if test "$cross_compiling" = yes; then
3519 cat >conftest.
$ac_ext <<_ACEOF
3522 cat confdefs.h
>>conftest.
$ac_ext
3523 cat >>conftest.
$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3526 #if ((' ' & 0x0FF) == 0x020)
3527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3530 # define ISLOWER(c) \
3531 (('a' <= (c) && (c) <= 'i') \
3532 || ('j' <= (c) && (c) <= 'r') \
3533 || ('s' <= (c) && (c) <= 'z'))
3534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3542 for (i = 0; i < 256; i++)
3543 if (XOR (islower (i), ISLOWER (i))
3544 || toupper (i) != TOUPPER (i))
3549 rm -f conftest
$ac_exeext
3550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3551 (eval $ac_link) 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3562 echo "$as_me: program exited with status $ac_status" >&5
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.
$ac_ext >&5
3567 ac_cv_header_stdc
=no
3569 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3573 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3574 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3575 if test $ac_cv_header_stdc = yes; then
3577 cat >>confdefs.h
<<\_ACEOF
3578 #define STDC_HEADERS 1
3583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3593 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3594 inttypes.h stdint.h unistd.h
3596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3597 echo "$as_me:$LINENO: checking for $ac_header" >&5
3598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 cat >conftest.
$ac_ext <<_ACEOF
3605 cat confdefs.h
>>conftest.
$ac_ext
3606 cat >>conftest.
$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 $ac_includes_default
3610 #include <$ac_header>
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try
='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try
='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 eval "$as_ac_Header=yes"
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 eval "$as_ac_Header=no"
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3646 cat >>confdefs.h
<<_ACEOF
3647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3655 echo "$as_me:$LINENO: checking for void *" >&5
3656 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3657 if test "${ac_cv_type_void_p+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 cat >conftest.
$ac_ext <<_ACEOF
3663 cat confdefs.h
>>conftest.
$ac_ext
3664 cat >>conftest.
$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 $ac_includes_default
3672 if (sizeof (void *))
3678 rm -f conftest.
$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try
='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try
='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_type_void_p
=yes
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.
$ac_ext >&5
3705 ac_cv_type_void_p
=no
3707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3709 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3710 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3712 echo "$as_me:$LINENO: checking size of void *" >&5
3713 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3714 if test "${ac_cv_sizeof_void_p+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test "$ac_cv_type_void_p" = yes; then
3718 # The cast to unsigned long works around a bug in the HP C Compiler
3719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3721 # This bug is HP SR number 8606223364.
3722 if test "$cross_compiling" = yes; then
3723 # Depending upon the size, compute the lo and hi bounds.
3724 cat >conftest.
$ac_ext <<_ACEOF
3727 cat confdefs.h
>>conftest.
$ac_ext
3728 cat >>conftest.
$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 $ac_includes_default
3734 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3741 rm -f conftest.
$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1
>conftest.err
3747 cat conftest.err
>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try
='test -z "$ac_c_werror_flag"
3751 || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } &&
3757 { ac_try
='test -s conftest.$ac_objext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 cat >conftest.
$ac_ext <<_ACEOF
3768 cat confdefs.h
>>conftest.
$ac_ext
3769 cat >>conftest.
$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 $ac_includes_default
3775 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3782 rm -f conftest.
$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try
='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try
='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_hi
=$ac_mid; break
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.
$ac_ext >&5
3809 ac_lo
=`expr $ac_mid + 1`
3810 if test $ac_lo -le $ac_mid; then
3814 ac_mid
=`expr 2 '*' $ac_mid + 1`
3816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.
$ac_ext >&5
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3832 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3839 rm -f conftest.
$ac_objext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>conftest.er1
3843 grep -v '^ *+' conftest.er1
>conftest.err
3845 cat conftest.err
>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try
='test -z "$ac_c_werror_flag"
3849 || test ! -s conftest.err'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try
='test -s conftest.$ac_objext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3863 cat >conftest.
$ac_ext <<_ACEOF
3866 cat confdefs.h
>>conftest.
$ac_ext
3867 cat >>conftest.
$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 $ac_includes_default
3873 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3880 rm -f conftest.
$ac_objext
3881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
3884 grep -v '^ *+' conftest.er1
>conftest.err
3886 cat conftest.err
>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
3889 { ac_try
='test -z "$ac_c_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try
='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_lo
=$ac_mid; break
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.
$ac_ext >&5
3907 ac_hi
=`expr '(' $ac_mid ')' - 1`
3908 if test $ac_mid -le $ac_hi; then
3912 ac_mid
=`expr 2 '*' $ac_mid`
3914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.
$ac_ext >&5
3922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3925 # Binary search between lo and hi bounds.
3926 while test "x$ac_lo" != "x$ac_hi"; do
3927 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 $ac_includes_default
3938 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3945 rm -f conftest.
$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1
>conftest.err
3951 cat conftest.err
>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try
='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try
='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.
$ac_ext >&5
3972 ac_lo
=`expr '(' $ac_mid ')' + 1`
3974 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3977 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: cannot compute sizeof (void *), 77
3981 See \`config.log' for more details." >&2;}
3982 { (exit 1); exit 1; }; } ;;
3985 if test "$cross_compiling" = yes; then
3986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3987 See \`config.log' for more details." >&5
3988 echo "$as_me: error: cannot run test program while cross compiling
3989 See \`config.log' for more details." >&2;}
3990 { (exit 1); exit 1; }; }
3992 cat >conftest.
$ac_ext <<_ACEOF
3995 cat confdefs.h
>>conftest.
$ac_ext
3996 cat >>conftest.
$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 $ac_includes_default
3999 long longval () { return (long) (sizeof (void *)); }
4000 unsigned long ulongval () { return (long) (sizeof (void *)); }
4007 FILE *f = fopen ("conftest.val", "w");
4010 if (((long) (sizeof (void *))) < 0)
4012 long i = longval ();
4013 if (i != ((long) (sizeof (void *))))
4015 fprintf (f, "%ld\n", i);
4019 unsigned long i = ulongval ();
4020 if (i != ((long) (sizeof (void *))))
4022 fprintf (f, "%lu\n", i);
4024 exit (ferror (f) || fclose (f) != 0);
4030 rm -f conftest
$ac_exeext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032 (eval $ac_link) 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_sizeof_void_p
=`cat conftest.val`
4043 echo "$as_me: program exited with status $ac_status" >&5
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.
$ac_ext >&5
4048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: cannot compute sizeof (void *), 77
4051 See \`config.log' for more details." >&2;}
4052 { (exit 1); exit 1; }; }
4054 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4059 ac_cv_sizeof_void_p
=0
4062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4063 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4064 cat >>confdefs.h
<<_ACEOF
4065 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4069 echo "$as_me:$LINENO: checking for short" >&5
4070 echo $ECHO_N "checking for short... $ECHO_C" >&6
4071 if test "${ac_cv_type_short+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 cat >conftest.
$ac_ext <<_ACEOF
4077 cat confdefs.h
>>conftest.
$ac_ext
4078 cat >>conftest.
$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 $ac_includes_default
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>conftest.er1
4096 grep -v '^ *+' conftest.er1
>conftest.err
4098 cat conftest.err
>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try
='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_cv_type_short
=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.
$ac_ext >&5
4121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4123 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4124 echo "${ECHO_T}$ac_cv_type_short" >&6
4126 echo "$as_me:$LINENO: checking size of short" >&5
4127 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4128 if test "${ac_cv_sizeof_short+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if test "$ac_cv_type_short" = yes; then
4132 # The cast to unsigned long works around a bug in the HP C Compiler
4133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4135 # This bug is HP SR number 8606223364.
4136 if test "$cross_compiling" = yes; then
4137 # Depending upon the size, compute the lo and hi bounds.
4138 cat >conftest.
$ac_ext <<_ACEOF
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 $ac_includes_default
4148 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4155 rm -f conftest.
$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1
>conftest.err
4161 cat conftest.err
>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try
='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try
='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 $ac_includes_default
4189 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4196 rm -f conftest.
$ac_objext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198 (eval $ac_compile) 2>conftest.er1
4200 grep -v '^ *+' conftest.er1
>conftest.err
4202 cat conftest.err
>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } &&
4205 { ac_try
='test -z "$ac_c_werror_flag"
4206 || test ! -s conftest.err'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; } &&
4212 { ac_try
='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_hi
=$ac_mid; break
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.
$ac_ext >&5
4223 ac_lo
=`expr $ac_mid + 1`
4224 if test $ac_lo -le $ac_mid; then
4228 ac_mid
=`expr 2 '*' $ac_mid + 1`
4230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 cat >conftest.
$ac_ext <<_ACEOF
4239 cat confdefs.h
>>conftest.
$ac_ext
4240 cat >>conftest.
$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4246 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4253 rm -f conftest.
$ac_objext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>conftest.er1
4257 grep -v '^ *+' conftest.er1
>conftest.err
4259 cat conftest.err
>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try
='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try
='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4277 cat >conftest.
$ac_ext <<_ACEOF
4280 cat confdefs.h
>>conftest.
$ac_ext
4281 cat >>conftest.
$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 $ac_includes_default
4287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4294 rm -f conftest.
$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296 (eval $ac_compile) 2>conftest.er1
4298 grep -v '^ *+' conftest.er1
>conftest.err
4300 cat conftest.err
>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try
='test -z "$ac_c_werror_flag"
4304 || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try
='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_lo
=$ac_mid; break
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.
$ac_ext >&5
4321 ac_hi
=`expr '(' $ac_mid ')' - 1`
4322 if test $ac_mid -le $ac_hi; then
4326 ac_mid
=`expr 2 '*' $ac_mid`
4328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.
$ac_ext >&5
4336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4339 # Binary search between lo and hi bounds.
4340 while test "x$ac_lo" != "x$ac_hi"; do
4341 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4342 cat >conftest.
$ac_ext <<_ACEOF
4345 cat confdefs.h
>>conftest.
$ac_ext
4346 cat >>conftest.
$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4352 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4359 rm -f conftest.
$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try
='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.
$ac_ext >&5
4386 ac_lo
=`expr '(' $ac_mid ')' + 1`
4388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: cannot compute sizeof (short), 77
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; } ;;
4399 if test "$cross_compiling" = yes; then
4400 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4401 See \`config.log' for more details." >&5
4402 echo "$as_me: error: cannot run test program while cross compiling
4403 See \`config.log' for more details." >&2;}
4404 { (exit 1); exit 1; }; }
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 long longval () { return (long) (sizeof (short)); }
4414 unsigned long ulongval () { return (long) (sizeof (short)); }
4421 FILE *f = fopen ("conftest.val", "w");
4424 if (((long) (sizeof (short))) < 0)
4426 long i = longval ();
4427 if (i != ((long) (sizeof (short))))
4429 fprintf (f, "%ld\n", i);
4433 unsigned long i = ulongval ();
4434 if (i != ((long) (sizeof (short))))
4436 fprintf (f, "%lu\n", i);
4438 exit (ferror (f) || fclose (f) != 0);
4444 rm -f conftest
$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446 (eval $ac_link) 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; }; then
4455 ac_cv_sizeof_short
=`cat conftest.val`
4457 echo "$as_me: program exited with status $ac_status" >&5
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.
$ac_ext >&5
4462 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4463 See \`config.log' for more details." >&5
4464 echo "$as_me: error: cannot compute sizeof (short), 77
4465 See \`config.log' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4468 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4473 ac_cv_sizeof_short
=0
4476 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4477 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4478 cat >>confdefs.h
<<_ACEOF
4479 #define SIZEOF_SHORT $ac_cv_sizeof_short
4483 echo "$as_me:$LINENO: checking for int" >&5
4484 echo $ECHO_N "checking for int... $ECHO_C" >&6
4485 if test "${ac_cv_type_int+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 cat >conftest.
$ac_ext <<_ACEOF
4491 cat confdefs.h
>>conftest.
$ac_ext
4492 cat >>conftest.
$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4506 rm -f conftest.
$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1
>conftest.err
4512 cat conftest.err
>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try
='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4537 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4538 echo "${ECHO_T}$ac_cv_type_int" >&6
4540 echo "$as_me:$LINENO: checking size of int" >&5
4541 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4542 if test "${ac_cv_sizeof_int+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test "$ac_cv_type_int" = yes; then
4546 # The cast to unsigned long works around a bug in the HP C Compiler
4547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4549 # This bug is HP SR number 8606223364.
4550 if test "$cross_compiling" = yes; then
4551 # Depending upon the size, compute the lo and hi bounds.
4552 cat >conftest.
$ac_ext <<_ACEOF
4555 cat confdefs.h
>>conftest.
$ac_ext
4556 cat >>conftest.
$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 $ac_includes_default
4562 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4569 rm -f conftest.
$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4573 grep -v '^ *+' conftest.er1
>conftest.err
4575 cat conftest.err
>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try
='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try
='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4593 cat >conftest.
$ac_ext <<_ACEOF
4596 cat confdefs.h
>>conftest.
$ac_ext
4597 cat >>conftest.
$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4610 rm -f conftest.
$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1
>conftest.err
4616 cat conftest.err
>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -z "$ac_c_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try
='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4632 ac_hi
=$ac_mid; break
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.
$ac_ext >&5
4637 ac_lo
=`expr $ac_mid + 1`
4638 if test $ac_lo -le $ac_mid; then
4642 ac_mid
=`expr 2 '*' $ac_mid + 1`
4644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 cat >conftest.
$ac_ext <<_ACEOF
4653 cat confdefs.h
>>conftest.
$ac_ext
4654 cat >>conftest.
$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4660 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4667 rm -f conftest.
$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1
>conftest.err
4673 cat conftest.err
>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try
='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4691 cat >conftest.
$ac_ext <<_ACEOF
4694 cat confdefs.h
>>conftest.
$ac_ext
4695 cat >>conftest.
$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 $ac_includes_default
4701 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4708 rm -f conftest.
$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4712 grep -v '^ *+' conftest.er1
>conftest.err
4714 cat conftest.err
>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try
='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try
='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_lo
=$ac_mid; break
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.
$ac_ext >&5
4735 ac_hi
=`expr '(' $ac_mid ')' - 1`
4736 if test $ac_mid -le $ac_hi; then
4740 ac_mid
=`expr 2 '*' $ac_mid`
4742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 # Binary search between lo and hi bounds.
4754 while test "x$ac_lo" != "x$ac_hi"; do
4755 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4766 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4773 rm -f conftest.
$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1
>conftest.err
4779 cat conftest.err
>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try
='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try
='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.
$ac_ext >&5
4800 ac_lo
=`expr '(' $ac_mid ')' + 1`
4802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4805 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4806 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4807 See \`config.log' for more details." >&5
4808 echo "$as_me: error: cannot compute sizeof (int), 77
4809 See \`config.log' for more details." >&2;}
4810 { (exit 1); exit 1; }; } ;;
4813 if test "$cross_compiling" = yes; then
4814 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4815 See \`config.log' for more details." >&5
4816 echo "$as_me: error: cannot run test program while cross compiling
4817 See \`config.log' for more details." >&2;}
4818 { (exit 1); exit 1; }; }
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 long longval () { return (long) (sizeof (int)); }
4828 unsigned long ulongval () { return (long) (sizeof (int)); }
4835 FILE *f = fopen ("conftest.val", "w");
4838 if (((long) (sizeof (int))) < 0)
4840 long i = longval ();
4841 if (i != ((long) (sizeof (int))))
4843 fprintf (f, "%ld\n", i);
4847 unsigned long i = ulongval ();
4848 if (i != ((long) (sizeof (int))))
4850 fprintf (f, "%lu\n", i);
4852 exit (ferror (f) || fclose (f) != 0);
4858 rm -f conftest
$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860 (eval $ac_link) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_sizeof_int
=`cat conftest.val`
4871 echo "$as_me: program exited with status $ac_status" >&5
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4877 See \`config.log' for more details." >&5
4878 echo "$as_me: error: cannot compute sizeof (int), 77
4879 See \`config.log' for more details." >&2;}
4880 { (exit 1); exit 1; }; }
4882 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4890 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4891 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4892 cat >>confdefs.h
<<_ACEOF
4893 #define SIZEOF_INT $ac_cv_sizeof_int
4897 echo "$as_me:$LINENO: checking for long" >&5
4898 echo $ECHO_N "checking for long... $ECHO_C" >&6
4899 if test "${ac_cv_type_long+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cat >conftest.
$ac_ext <<_ACEOF
4905 cat confdefs.h
>>conftest.
$ac_ext
4906 cat >>conftest.
$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 $ac_includes_default
4920 rm -f conftest.
$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4924 grep -v '^ *+' conftest.er1
>conftest.err
4926 cat conftest.err
>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try
='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try
='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.
$ac_ext >&5
4949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4952 echo "${ECHO_T}$ac_cv_type_long" >&6
4954 echo "$as_me:$LINENO: checking size of long" >&5
4955 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4956 if test "${ac_cv_sizeof_long+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 if test "$ac_cv_type_long" = yes; then
4960 # The cast to unsigned long works around a bug in the HP C Compiler
4961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4963 # This bug is HP SR number 8606223364.
4964 if test "$cross_compiling" = yes; then
4965 # Depending upon the size, compute the lo and hi bounds.
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4976 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4983 rm -f conftest.
$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try
='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try
='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5007 cat >conftest.
$ac_ext <<_ACEOF
5010 cat confdefs.h
>>conftest.
$ac_ext
5011 cat >>conftest.
$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5017 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5024 rm -f conftest.
$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1
>conftest.err
5030 cat conftest.err
>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try
='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try
='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_hi
=$ac_mid; break
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.
$ac_ext >&5
5051 ac_lo
=`expr $ac_mid + 1`
5052 if test $ac_lo -le $ac_mid; then
5056 ac_mid
=`expr 2 '*' $ac_mid + 1`
5058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5064 cat >conftest.
$ac_ext <<_ACEOF
5067 cat confdefs.h
>>conftest.
$ac_ext
5068 cat >>conftest.
$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5074 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5081 rm -f conftest.
$ac_objext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083 (eval $ac_compile) 2>conftest.er1
5085 grep -v '^ *+' conftest.er1
>conftest.err
5087 cat conftest.err
>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try
='test -z "$ac_c_werror_flag"
5091 || test ! -s conftest.err'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; } &&
5097 { ac_try
='test -s conftest.$ac_objext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5105 cat >conftest.
$ac_ext <<_ACEOF
5108 cat confdefs.h
>>conftest.
$ac_ext
5109 cat >>conftest.
$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5115 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5122 rm -f conftest.
$ac_objext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>conftest.er1
5126 grep -v '^ *+' conftest.er1
>conftest.err
5128 cat conftest.err
>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try
='test -z "$ac_c_werror_flag"
5132 || test ! -s conftest.err'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try
='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_lo
=$ac_mid; break
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.
$ac_ext >&5
5149 ac_hi
=`expr '(' $ac_mid ')' - 1`
5150 if test $ac_mid -le $ac_hi; then
5154 ac_mid
=`expr 2 '*' $ac_mid`
5156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.
$ac_ext >&5
5164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5167 # Binary search between lo and hi bounds.
5168 while test "x$ac_lo" != "x$ac_hi"; do
5169 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5180 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5187 rm -f conftest.
$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>conftest.er1
5191 grep -v '^ *+' conftest.er1
>conftest.err
5193 cat conftest.err
>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try
='test -z "$ac_c_werror_flag"
5197 || test ! -s conftest.err'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; } &&
5203 { ac_try
='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.
$ac_ext >&5
5214 ac_lo
=`expr '(' $ac_mid ')' + 1`
5216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5220 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5221 See \`config.log' for more details." >&5
5222 echo "$as_me: error: cannot compute sizeof (long), 77
5223 See \`config.log' for more details." >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 if test "$cross_compiling" = yes; then
5228 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5229 See \`config.log' for more details." >&5
5230 echo "$as_me: error: cannot run test program while cross compiling
5231 See \`config.log' for more details." >&2;}
5232 { (exit 1); exit 1; }; }
5234 cat >conftest.
$ac_ext <<_ACEOF
5237 cat confdefs.h
>>conftest.
$ac_ext
5238 cat >>conftest.
$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5241 long longval () { return (long) (sizeof (long)); }
5242 unsigned long ulongval () { return (long) (sizeof (long)); }
5249 FILE *f = fopen ("conftest.val", "w");
5252 if (((long) (sizeof (long))) < 0)
5254 long i = longval ();
5255 if (i != ((long) (sizeof (long))))
5257 fprintf (f, "%ld\n", i);
5261 unsigned long i = ulongval ();
5262 if (i != ((long) (sizeof (long))))
5264 fprintf (f, "%lu\n", i);
5266 exit (ferror (f) || fclose (f) != 0);
5272 rm -f conftest
$ac_exeext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5274 (eval $ac_link) 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_sizeof_long
=`cat conftest.val`
5285 echo "$as_me: program exited with status $ac_status" >&5
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.
$ac_ext >&5
5290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5291 See \`config.log' for more details." >&5
5292 echo "$as_me: error: cannot compute sizeof (long), 77
5293 See \`config.log' for more details." >&2;}
5294 { (exit 1); exit 1; }; }
5296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5304 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5305 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5306 cat >>confdefs.h
<<_ACEOF
5307 #define SIZEOF_LONG $ac_cv_sizeof_long
5311 echo "$as_me:$LINENO: checking for long long" >&5
5312 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5313 if test "${ac_cv_type_long_long+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.
$ac_ext <<_ACEOF
5319 cat confdefs.h
>>conftest.
$ac_ext
5320 cat >>conftest.
$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5326 if ((long long *) 0)
5328 if (sizeof (long long))
5334 rm -f conftest.
$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>conftest.er1
5338 grep -v '^ *+' conftest.er1
>conftest.err
5340 cat conftest.err
>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try
='test -z "$ac_c_werror_flag"
5344 || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try
='test -s conftest.$ac_objext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_type_long_long
=yes
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.
$ac_ext >&5
5361 ac_cv_type_long_long
=no
5363 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5365 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5366 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5367 if test $ac_cv_type_long_long = yes; then
5369 cat >>confdefs.h
<<_ACEOF
5370 #define HAVE_LONG_LONG 1
5373 echo "$as_me:$LINENO: checking for long long" >&5
5374 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5375 if test "${ac_cv_type_long_long+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5381 cat confdefs.h
>>conftest.
$ac_ext
5382 cat >>conftest.
$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5388 if ((long long *) 0)
5390 if (sizeof (long long))
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1
>conftest.err
5402 cat conftest.err
>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try
='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_type_long_long
=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.
$ac_ext >&5
5423 ac_cv_type_long_long
=no
5425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5427 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5428 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5430 echo "$as_me:$LINENO: checking size of long long" >&5
5431 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5432 if test "${ac_cv_sizeof_long_long+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 if test "$ac_cv_type_long_long" = yes; then
5436 # The cast to unsigned long works around a bug in the HP C Compiler
5437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5439 # This bug is HP SR number 8606223364.
5440 if test "$cross_compiling" = yes; then
5441 # Depending upon the size, compute the lo and hi bounds.
5442 cat >conftest.
$ac_ext <<_ACEOF
5445 cat confdefs.h
>>conftest.
$ac_ext
5446 cat >>conftest.
$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 $ac_includes_default
5452 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5459 rm -f conftest.
$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>conftest.er1
5463 grep -v '^ *+' conftest.er1
>conftest.err
5465 cat conftest.err
>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } &&
5468 { ac_try
='test -z "$ac_c_werror_flag"
5469 || test ! -s conftest.err'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; } &&
5475 { ac_try
='test -s conftest.$ac_objext'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; }; then
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5493 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5500 rm -f conftest.
$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5504 grep -v '^ *+' conftest.er1
>conftest.err
5506 cat conftest.err
>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try
='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try
='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 ac_hi
=$ac_mid; break
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.
$ac_ext >&5
5527 ac_lo
=`expr $ac_mid + 1`
5528 if test $ac_lo -le $ac_mid; then
5532 ac_mid
=`expr 2 '*' $ac_mid + 1`
5534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5540 cat >conftest.
$ac_ext <<_ACEOF
5543 cat confdefs.h
>>conftest.
$ac_ext
5544 cat >>conftest.
$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5550 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5557 rm -f conftest.
$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5561 grep -v '^ *+' conftest.er1
>conftest.err
5563 cat conftest.err
>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try
='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try
='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 cat confdefs.h
>>conftest.
$ac_ext
5585 cat >>conftest.
$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 $ac_includes_default
5591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5598 rm -f conftest.
$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1
>conftest.err
5604 cat conftest.err
>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try
='test -z "$ac_c_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try
='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 ac_lo
=$ac_mid; break
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.
$ac_ext >&5
5625 ac_hi
=`expr '(' $ac_mid ')' - 1`
5626 if test $ac_mid -le $ac_hi; then
5630 ac_mid
=`expr 2 '*' $ac_mid`
5632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5643 # Binary search between lo and hi bounds.
5644 while test "x$ac_lo" != "x$ac_hi"; do
5645 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5656 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5663 rm -f conftest.
$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5667 grep -v '^ *+' conftest.er1
>conftest.err
5669 cat conftest.err
>&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try
='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try
='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.
$ac_ext >&5
5690 ac_lo
=`expr '(' $ac_mid ')' + 1`
5692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5697 See \`config.log' for more details." >&5
5698 echo "$as_me: error: cannot compute sizeof (long long), 77
5699 See \`config.log' for more details." >&2;}
5700 { (exit 1); exit 1; }; } ;;
5703 if test "$cross_compiling" = yes; then
5704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5705 See \`config.log' for more details." >&5
5706 echo "$as_me: error: cannot run test program while cross compiling
5707 See \`config.log' for more details." >&2;}
5708 { (exit 1); exit 1; }; }
5710 cat >conftest.
$ac_ext <<_ACEOF
5713 cat confdefs.h
>>conftest.
$ac_ext
5714 cat >>conftest.
$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5717 long longval () { return (long) (sizeof (long long)); }
5718 unsigned long ulongval () { return (long) (sizeof (long long)); }
5725 FILE *f = fopen ("conftest.val", "w");
5728 if (((long) (sizeof (long long))) < 0)
5730 long i = longval ();
5731 if (i != ((long) (sizeof (long long))))
5733 fprintf (f, "%ld\n", i);
5737 unsigned long i = ulongval ();
5738 if (i != ((long) (sizeof (long long))))
5740 fprintf (f, "%lu\n", i);
5742 exit (ferror (f) || fclose (f) != 0);
5748 rm -f conftest
$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_sizeof_long_long
=`cat conftest.val`
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.
$ac_ext >&5
5766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5767 See \`config.log' for more details." >&5
5768 echo "$as_me: error: cannot compute sizeof (long long), 77
5769 See \`config.log' for more details." >&2;}
5770 { (exit 1); exit 1; }; }
5772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5777 ac_cv_sizeof_long_long
=0
5780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5781 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5782 cat >>confdefs.h
<<_ACEOF
5783 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5789 echo "$as_me:$LINENO: checking for __int64" >&5
5790 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5791 if test "${ac_cv_type___int64+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.
$ac_ext <<_ACEOF
5797 cat confdefs.h
>>conftest.
$ac_ext
5798 cat >>conftest.
$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5806 if (sizeof (__int64))
5812 rm -f conftest.
$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try
='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 ac_cv_type___int64
=yes
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.
$ac_ext >&5
5839 ac_cv_type___int64
=no
5841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5844 echo "${ECHO_T}$ac_cv_type___int64" >&6
5845 if test $ac_cv_type___int64 = yes; then
5847 cat >>confdefs.h
<<_ACEOF
5848 #define HAVE___INT64 1
5851 echo "$as_me:$LINENO: checking for __int64" >&5
5852 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5853 if test "${ac_cv_type___int64+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 $ac_includes_default
5868 if (sizeof (__int64))
5874 rm -f conftest.
$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try
='test -z "$ac_c_werror_flag"
5884 || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try
='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_cv_type___int64
=yes
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5901 ac_cv_type___int64
=no
5903 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5906 echo "${ECHO_T}$ac_cv_type___int64" >&6
5908 echo "$as_me:$LINENO: checking size of __int64" >&5
5909 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5910 if test "${ac_cv_sizeof___int64+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test "$ac_cv_type___int64" = yes; then
5914 # The cast to unsigned long works around a bug in the HP C Compiler
5915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5917 # This bug is HP SR number 8606223364.
5918 if test "$cross_compiling" = yes; then
5919 # Depending upon the size, compute the lo and hi bounds.
5920 cat >conftest.
$ac_ext <<_ACEOF
5923 cat confdefs.h
>>conftest.
$ac_ext
5924 cat >>conftest.
$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5930 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5937 rm -f conftest.
$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5941 grep -v '^ *+' conftest.er1
>conftest.err
5943 cat conftest.err
>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try
='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try
='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5978 rm -f conftest.
$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5982 grep -v '^ *+' conftest.er1
>conftest.err
5984 cat conftest.err
>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try
='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try
='test -s conftest.$ac_objext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_hi
=$ac_mid; break
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.
$ac_ext >&5
6005 ac_lo
=`expr $ac_mid + 1`
6006 if test $ac_lo -le $ac_mid; then
6010 ac_mid
=`expr 2 '*' $ac_mid + 1`
6012 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6028 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6035 rm -f conftest.
$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6039 grep -v '^ *+' conftest.er1
>conftest.err
6041 cat conftest.err
>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try
='test -z "$ac_c_werror_flag"
6045 || test ! -s conftest.err'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; } &&
6051 { ac_try
='test -s conftest.$ac_objext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6059 cat >conftest.
$ac_ext <<_ACEOF
6062 cat confdefs.h
>>conftest.
$ac_ext
6063 cat >>conftest.
$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 $ac_includes_default
6069 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6076 rm -f conftest.
$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try
='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try
='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_lo
=$ac_mid; break
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 ac_hi
=`expr '(' $ac_mid ')' - 1`
6104 if test $ac_mid -le $ac_hi; then
6108 ac_mid
=`expr 2 '*' $ac_mid`
6110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.
$ac_ext >&5
6118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 # Binary search between lo and hi bounds.
6122 while test "x$ac_lo" != "x$ac_hi"; do
6123 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6134 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1
>conftest.err
6147 cat conftest.err
>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try
='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try
='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6168 ac_lo
=`expr '(' $ac_mid ')' + 1`
6170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6174 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: cannot compute sizeof (__int64), 77
6177 See \`config.log' for more details." >&2;}
6178 { (exit 1); exit 1; }; } ;;
6181 if test "$cross_compiling" = yes; then
6182 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6183 See \`config.log' for more details." >&5
6184 echo "$as_me: error: cannot run test program while cross compiling
6185 See \`config.log' for more details." >&2;}
6186 { (exit 1); exit 1; }; }
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 long longval () { return (long) (sizeof (__int64)); }
6196 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6203 FILE *f = fopen ("conftest.val", "w");
6206 if (((long) (sizeof (__int64))) < 0)
6208 long i = longval ();
6209 if (i != ((long) (sizeof (__int64))))
6211 fprintf (f, "%ld\n", i);
6215 unsigned long i = ulongval ();
6216 if (i != ((long) (sizeof (__int64))))
6218 fprintf (f, "%lu\n", i);
6220 exit (ferror (f) || fclose (f) != 0);
6226 rm -f conftest
$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_cv_sizeof___int64
=`cat conftest.val`
6239 echo "$as_me: program exited with status $ac_status" >&5
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6244 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6245 See \`config.log' for more details." >&5
6246 echo "$as_me: error: cannot compute sizeof (__int64), 77
6247 See \`config.log' for more details." >&2;}
6248 { (exit 1); exit 1; }; }
6250 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6255 ac_cv_sizeof___int64
=0
6258 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6259 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6260 cat >>confdefs.h
<<_ACEOF
6261 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6268 # ---------------------
6269 # Warnings and checking
6270 # ---------------------
6272 # Check $CC warning features (if it's GCC).
6273 # We want to use -pedantic, but we don't want warnings about
6276 # * overlong strings
6277 # So, we only use -pedantic if we can disable those warnings.
6280 save_CFLAGS
="$CFLAGS"
6281 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6282 -Wmissing-prototypes; do
6283 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6285 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6286 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6287 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 cat >conftest.
$ac_ext <<_ACEOF
6294 cat confdefs.h
>>conftest.
$ac_ext
6295 cat >>conftest.
$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6306 rm -f conftest.
$ac_objext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1
>conftest.err
6312 cat conftest.err
>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try
='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try
='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 eval "$as_acx_Woption=yes"
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.
$ac_ext >&5
6333 eval "$as_acx_Woption=no"
6335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6339 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6340 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6341 loose_warn
="$loose_warn${loose_warn:+ }$option"
6345 CFLAGS
="$save_CFLAGS"
6348 save_CFLAGS
="$CFLAGS"
6349 for option
in -Wc++-compat; do
6350 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6352 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6353 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6354 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 cat >conftest.
$ac_ext <<_ACEOF
6361 cat confdefs.h
>>conftest.
$ac_ext
6362 cat >>conftest.
$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6373 rm -f conftest.
$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1
>conftest.err
6379 cat conftest.err
>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try
='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try
='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 eval "$as_acx_Woption=yes"
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.
$ac_ext >&5
6400 eval "$as_acx_Woption=no"
6402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6405 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6406 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6407 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6408 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6412 CFLAGS
="$save_CFLAGS"
6415 save_CFLAGS
="$CFLAGS"
6416 for option
in -Wold-style-definition \
6417 -Wmissing-format-attribute; do
6418 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6420 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6421 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6422 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 cat >conftest.
$ac_ext <<_ACEOF
6429 cat confdefs.h
>>conftest.
$ac_ext
6430 cat >>conftest.
$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6441 rm -f conftest.
$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1
>conftest.err
6447 cat conftest.err
>&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try
='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try
='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 eval "$as_acx_Woption=yes"
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 eval "$as_acx_Woption=no"
6470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6474 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6475 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6476 strict_warn
="$strict_warn${strict_warn:+ }$option"
6480 CFLAGS
="$save_CFLAGS"
6482 if test "$GCC" = yes; then
6483 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6484 -Wno-overlength-strings" >&5
6485 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6486 -Wno-overlength-strings... $ECHO_C" >&6
6487 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 save_CFLAGS
="$CFLAGS"
6491 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
6492 -Wno-overlength-strings"
6493 cat >conftest.
$ac_ext <<_ACEOF
6496 cat confdefs.h
>>conftest.
$ac_ext
6497 cat >>conftest.
$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6508 rm -f conftest.
$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1
>conftest.err
6514 cat conftest.err
>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try
='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try
='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.
$ac_ext >&5
6535 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
6537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6538 CFLAGS
="$save_CFLAGS"
6540 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6541 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6542 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6543 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6544 -Wno-overlength-strings"
6551 # Check whether --enable-werror-always or --disable-werror-always was given.
6552 if test "${enable_werror_always+set}" = set; then
6553 enableval
="$enable_werror_always"
6556 enable_werror_always
=no
6558 if test $enable_werror_always = yes; then
6559 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6565 # The above macros do nothing if the compiler is not GCC. However, the
6566 # Makefile has more goo to add other flags, so this variabl is used to
6567 # enables warnings only for GCC.
6569 if test "x$GCC" = "xyes"; then
6570 warn_cflags
='$(GCC_WARN_CFLAGS)'
6574 # Enable expensive internal checks
6576 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6580 # Check whether --enable-checking or --disable-checking was given.
6581 if test "${enable_checking+set}" = set; then
6582 enableval
="$enable_checking"
6583 ac_checking_flags
="${enableval}"
6586 # Determine the default checks.
6587 if test x
$is_release = x
; then
6588 ac_checking_flags
=yes
6590 ac_checking_flags
=release
6593 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6594 for check
in release
$ac_checking_flags
6597 # these set all the flags to specific states
6598 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6599 ac_fold_checking
= ; ac_gc_checking
=1 ;
6600 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6601 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6602 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6603 ac_types_checking
= ;;
6604 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6605 ac_fold_checking
= ; ac_gc_checking
= ;
6606 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6607 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6608 ac_tree_checking
= ; ac_valgrind_checking
= ;
6609 ac_types_checking
= ;;
6610 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6611 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6612 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6613 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6614 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6615 ac_types_checking
=1 ;;
6616 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6617 ac_fold_checking
= ; ac_gc_checking
= ;
6618 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6619 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6620 ac_tree_checking
= ; ac_valgrind_checking
= ;
6621 ac_types_checking
= ;;
6622 # these enable particular checks
6623 assert
) ac_assert_checking
=1 ;;
6624 df
) ac_df_checking
=1 ;;
6625 fold) ac_fold_checking
=1 ;;
6626 gc
) ac_gc_checking
=1 ;;
6627 gcac
) ac_gc_always_collect
=1 ;;
6628 misc
) ac_checking
=1 ;;
6629 rtl
) ac_rtl_checking
=1 ;;
6630 rtlflag
) ac_rtlflag_checking
=1 ;;
6631 runtime
) ac_runtime_checking
=1 ;;
6632 tree
) ac_tree_checking
=1 ;;
6633 types
) ac_types_checking
=1 ;;
6634 valgrind
) ac_valgrind_checking
=1 ;;
6635 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6636 echo "$as_me: error: unknown check category $check" >&2;}
6637 { (exit 1); exit 1; }; } ;;
6643 if test x
$ac_checking != x
; then
6645 cat >>confdefs.h
<<\_ACEOF
6646 #define ENABLE_CHECKING 1
6649 nocommon_flag
=-fno-common
6652 if test x
$ac_df_checking != x
; then
6654 cat >>confdefs.h
<<\_ACEOF
6655 #define ENABLE_DF_CHECKING 1
6659 if test x
$ac_assert_checking != x
; then
6661 cat >>confdefs.h
<<\_ACEOF
6662 #define ENABLE_ASSERT_CHECKING 1
6667 if test x
$ac_runtime_checking != x
; then
6669 cat >>confdefs.h
<<\_ACEOF
6670 #define ENABLE_RUNTIME_CHECKING 1
6674 if test x
$ac_tree_checking != x
; then
6676 cat >>confdefs.h
<<\_ACEOF
6677 #define ENABLE_TREE_CHECKING 1
6680 TREEBROWSER
=tree-browser.o
6682 if test x
$ac_types_checking != x
; then
6684 cat >>confdefs.h
<<\_ACEOF
6685 #define ENABLE_TYPES_CHECKING 1
6690 if test x
$ac_rtl_checking != x
; then
6692 cat >>confdefs.h
<<\_ACEOF
6693 #define ENABLE_RTL_CHECKING 1
6697 if test x
$ac_rtlflag_checking != x
; then
6699 cat >>confdefs.h
<<\_ACEOF
6700 #define ENABLE_RTL_FLAG_CHECKING 1
6704 if test x
$ac_gc_checking != x
; then
6706 cat >>confdefs.h
<<\_ACEOF
6707 #define ENABLE_GC_CHECKING 1
6711 if test x
$ac_gc_always_collect != x
; then
6713 cat >>confdefs.h
<<\_ACEOF
6714 #define ENABLE_GC_ALWAYS_COLLECT 1
6718 if test x
$ac_fold_checking != x
; then
6720 cat >>confdefs.h
<<\_ACEOF
6721 #define ENABLE_FOLD_CHECKING 1
6725 valgrind_path_defines
=
6728 if test "${ac_cv_header_valgrind_h+set}" = set; then
6729 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6730 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6731 if test "${ac_cv_header_valgrind_h+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6735 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6737 # Is the header compilable?
6738 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6739 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6740 cat >conftest.
$ac_ext <<_ACEOF
6743 cat confdefs.h
>>conftest.
$ac_ext
6744 cat >>conftest.
$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6747 #include <valgrind.h>
6749 rm -f conftest.
$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1
>conftest.err
6755 cat conftest.err
>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try
='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_header_compiler
=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.
$ac_ext >&5
6776 ac_header_compiler
=no
6778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6780 echo "${ECHO_T}$ac_header_compiler" >&6
6782 # Is the header present?
6783 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6784 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6785 cat >conftest.
$ac_ext <<_ACEOF
6788 cat confdefs.h
>>conftest.
$ac_ext
6789 cat >>conftest.
$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <valgrind.h>
6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6796 grep -v '^ *+' conftest.er1
>conftest.err
6798 cat conftest.err
>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } >/dev
/null
; then
6801 if test -s conftest.err
; then
6802 ac_cpp_err
=$ac_c_preproc_warn_flag
6803 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6810 if test -z "$ac_cpp_err"; then
6811 ac_header_preproc
=yes
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.
$ac_ext >&5
6816 ac_header_preproc
=no
6818 rm -f conftest.err conftest.
$ac_ext
6819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6820 echo "${ECHO_T}$ac_header_preproc" >&6
6822 # So? What about this header?
6823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6825 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6826 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6827 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6828 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6829 ac_header_preproc
=yes
6832 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6833 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6835 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6837 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6839 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6841 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6843 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6846 ## ------------------------------------------ ##
6847 ## Report this to the AC_PACKAGE_NAME lists. ##
6848 ## ------------------------------------------ ##
6851 sed "s/^/$as_me: WARNING: /" >&2
6854 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6855 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6856 if test "${ac_cv_header_valgrind_h+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_cv_header_valgrind_h
=$ac_header_preproc
6861 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6862 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6865 if test $ac_cv_header_valgrind_h = yes; then
6873 if test x
$ac_valgrind_checking != x
; then
6874 # It is certainly possible that there's valgrind but no valgrind.h.
6875 # GCC relies on making annotations so we must have both.
6876 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6877 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <valgrind/memcheck.h>
6885 #ifndef VALGRIND_DISCARD
6886 #error VALGRIND_DISCARD not defined
6889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6890 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev
/null
; then
6897 if test -s conftest.err
; then
6898 ac_cpp_err
=$ac_c_preproc_warn_flag
6899 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6906 if test -z "$ac_cpp_err"; then
6907 gcc_cv_header_valgrind_memcheck_h
=yes
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.
$ac_ext >&5
6912 gcc_cv_header_valgrind_memcheck_h
=no
6914 rm -f conftest.err conftest.
$ac_ext
6915 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6916 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6917 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6918 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6922 cat confdefs.h
>>conftest.
$ac_ext
6923 cat >>conftest.
$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <memcheck.h>
6926 #ifndef VALGRIND_DISCARD
6927 #error VALGRIND_DISCARD not defined
6930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6933 grep -v '^ *+' conftest.er1
>conftest.err
6935 cat conftest.err
>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev
/null
; then
6938 if test -s conftest.err
; then
6939 ac_cpp_err
=$ac_c_preproc_warn_flag
6940 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6947 if test -z "$ac_cpp_err"; then
6948 gcc_cv_header_memcheck_h
=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.
$ac_ext >&5
6953 gcc_cv_header_memcheck_h
=no
6955 rm -f conftest.err conftest.
$ac_ext
6956 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6957 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6959 # Prepare PATH_SEPARATOR.
6960 # The user is always right.
6961 if test "${PATH_SEPARATOR+set}" != set; then
6962 echo "#! /bin/sh" >conf$$.sh
6963 echo "exit 0" >>conf$$.sh
6965 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6973 # Find out how to test for executable files. Don't use a zero-byte file,
6974 # as systems may use methods other than mode bits to determine executability.
6975 cat >conf$$.
file <<_ASEOF
6979 chmod +x conf$$.
file
6980 if test -x conf$$.
file >/dev
/null
2>&1; then
6981 ac_executable_p
="test -x"
6983 ac_executable_p
="test -f"
6987 # Extract the first word of "valgrind", so it can be a program name with args.
6988 set dummy valgrind
; ac_word
=$2
6989 echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6991 if test "${ac_cv_path_valgrind_path+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 case "$valgrind_path" in
6996 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6999 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7000 for ac_dir
in $PATH; do
7002 test -z "$ac_dir" && ac_dir
=.
7003 for ac_exec_ext
in '' $ac_executable_extensions; do
7004 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7005 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7006 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7016 valgrind_path
="$ac_cv_path_valgrind_path"
7017 if test -n "$valgrind_path"; then
7018 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7019 echo "${ECHO_T}$valgrind_path" >&6
7021 echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6
7025 if test "x$valgrind_path" = "x" \
7026 ||
(test $have_valgrind_h = no \
7027 && test $gcc_cv_header_memcheck_h = no \
7028 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7029 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7030 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7031 { (exit 1); exit 1; }; }
7033 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7034 valgrind_command
="$valgrind_path -q"
7036 cat >>confdefs.h
<<\_ACEOF
7037 #define ENABLE_VALGRIND_CHECKING 1
7040 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7042 cat >>confdefs.h
<<\_ACEOF
7043 #define HAVE_VALGRIND_MEMCHECK_H 1
7047 if test $gcc_cv_header_memcheck_h = yes; then
7049 cat >>confdefs.h
<<\_ACEOF
7050 #define HAVE_MEMCHECK_H 1
7058 # Check whether --enable-mapped-location or --disable-mapped-location was given.
7059 if test "${enable_mapped_location+set}" = set; then
7060 enableval
="$enable_mapped_location"
7063 enable_mapped_location
=yes
7066 if test "$enable_mapped_location" = yes ; then
7068 cat >>confdefs.h
<<\_ACEOF
7069 #define USE_MAPPED_LOCATION 1
7074 # Enable code coverage collection
7075 # Check whether --enable-coverage or --disable-coverage was given.
7076 if test "${enable_coverage+set}" = set; then
7077 enableval
="$enable_coverage"
7078 case "${enableval}" in
7080 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7083 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7086 # a.k.a. --disable-coverage
7090 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7091 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7092 { (exit 1); exit 1; }; }
7100 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7101 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7102 enableval
="$enable_gather_detailed_mem_stats"
7105 enable_gather_detailed_mem_stats
=no
7107 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7109 cat >>confdefs.h
<<\_ACEOF
7110 #define GATHER_STATISTICS 1
7115 # -------------------------------
7116 # Miscenalleous configure options
7117 # -------------------------------
7121 # Check whether --with-stabs or --without-stabs was given.
7122 if test "${with_stabs+set}" = set; then
7123 withval
="$with_stabs"
7129 # Determine whether or not multilibs are enabled.
7130 # Check whether --enable-multilib or --disable-multilib was given.
7131 if test "${enable_multilib+set}" = set; then
7132 enableval
="$enable_multilib"
7139 # Enable __cxa_atexit for C++.
7140 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7141 if test "${enable___cxa_atexit+set}" = set; then
7142 enableval
="$enable___cxa_atexit"
7146 # Enable C extension for decimal float if target supports it.
7147 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7148 if test "${enable_decimal_float+set}" = set; then
7149 enableval
="$enable_decimal_float"
7151 case $enable_decimal_float in
7152 yes | no | bid | dpd
) ;;
7153 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7154 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7155 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7156 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7157 { (exit 1); exit 1; }; } ;;
7163 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7164 enable_decimal_float
=yes
7167 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7168 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7169 enable_decimal_float
=no
7175 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7177 cat >>confdefs.h
<<_ACEOF
7178 #define ENABLE_DECIMAL_FLOAT $dfp
7182 # x86's use BID format instead of DPD
7183 case x
$enable_decimal_float in
7186 i?
86*-*-linux* | x86_64
*-*-linux*)
7187 enable_decimal_float
=bid
7190 enable_decimal_float
=dpd
7195 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7196 # dependency on libdecnumber.
7197 enable_decimal_float
=dpd
7202 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7204 cat >>confdefs.h
<<_ACEOF
7205 #define ENABLE_DECIMAL_BID_FORMAT $bid
7209 # Enable C extension for fixed-point arithmetic.
7210 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7211 if test "${enable_fixed_point+set}" = set; then
7212 enableval
="$enable_fixed_point"
7221 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7222 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7223 enable_fixed_point
=no
7226 enable_fixed_point
=yes
7231 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7232 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7233 enable_fixed_point
=no
7240 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7242 cat >>confdefs.h
<<_ACEOF
7243 #define ENABLE_FIXED_POINT $fixedpoint
7248 # Pass with no value to take the default
7249 # Pass with a value to specify a thread package
7250 # Check whether --enable-threads or --disable-threads was given.
7251 if test "${enable_threads+set}" = set; then
7252 enableval
="$enable_threads"
7258 # Check whether --enable-tls or --disable-tls was given.
7259 if test "${enable_tls+set}" = set; then
7260 enableval
="$enable_tls"
7264 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7265 Valid choices are 'yes' and 'no'." >&5
7266 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7267 Valid choices are 'yes' and 'no'." >&2;}
7268 { (exit 1); exit 1; }; } ;;
7275 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7276 if test "${enable_objc_gc+set}" = set; then
7277 enableval
="$enable_objc_gc"
7278 if test x
$enable_objc_gc = xno
; then
7288 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7289 if test "${with_dwarf2+set}" = set; then
7290 withval
="$with_dwarf2"
7291 dwarf2
="$with_dwarf2"
7296 # Check whether --enable-shared or --disable-shared was given.
7297 if test "${enable_shared+set}" = set; then
7298 enableval
="$enable_shared"
7300 case $enable_shared in
7304 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7305 for pkg
in $enableval; do
7306 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7320 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7321 if test "${with_build_sysroot+set}" = set; then
7322 withval
="$with_build_sysroot"
7327 # Check whether --with-sysroot or --without-sysroot was given.
7328 if test "${with_sysroot+set}" = set; then
7329 withval
="$with_sysroot"
7331 case ${with_sysroot} in
7332 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7333 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7336 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7337 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7339 if test "x$prefix" = xNONE
; then
7340 test_prefix
=/usr
/local
7344 if test "x$exec_prefix" = xNONE
; then
7345 test_exec_prefix
=$test_prefix
7347 test_exec_prefix
=$exec_prefix
7349 case ${TARGET_SYSTEM_ROOT} in
7350 "${test_prefix}"|
"${test_prefix}/"*|\
7351 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7352 '${prefix}'|
'${prefix}/'*|\
7353 '${exec_prefix}'|
'${exec_prefix}/'*)
7354 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7355 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7362 TARGET_SYSTEM_ROOT_DEFINE
=
7363 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7370 # Build with intermodule optimisations
7371 # Check whether --enable-intermodule or --disable-intermodule was given.
7372 if test "${enable_intermodule+set}" = set; then
7373 enableval
="$enable_intermodule"
7374 case ${enable_intermodule} in
7375 yes) onestep
="-onestep";;
7385 # Check whether --with-pkgversion or --without-pkgversion was given.
7386 if test "${with_pkgversion+set}" = set; then
7387 withval
="$with_pkgversion"
7389 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7390 echo "$as_me: error: package version not specified" >&2;}
7391 { (exit 1); exit 1; }; } ;;
7393 *) PKGVERSION
="($withval) " ;;
7403 # Check whether --with-bugurl or --without-bugurl was given.
7404 if test "${with_bugurl+set}" = set; then
7405 withval
="$with_bugurl"
7407 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7408 echo "$as_me: error: bug URL not specified" >&2;}
7409 { (exit 1); exit 1; }; } ;;
7412 *) BUGURL
="$withval"
7416 BUGURL
="http://gcc.gnu.org/bugs.html"
7425 REPORT_BUGS_TO
="<$BUGURL>"
7426 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7433 # Sanity check enable_languages in case someone does not run the toplevel
7434 # configure # script.
7435 # Check whether --enable-languages or --disable-languages was given.
7436 if test "${enable_languages+set}" = set; then
7437 enableval
="$enable_languages"
7438 case ,${enable_languages}, in
7440 # go safe -- we cannot be much sure without the toplevel
7442 # analysis of which target libs are present and usable
7446 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7447 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7448 { (exit 1); exit 1; }; }
7453 enable_languages
=c
,${enable_languages}
7460 # Used by documentation targets
7465 # -------------------------
7466 # Checks for other programs
7467 # -------------------------
7469 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7470 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7471 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7472 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cat >conftest.
make <<\_ACEOF
7477 @
echo 'ac_maketemp="$(MAKE)"'
7479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7480 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7481 if test -n "$ac_maketemp"; then
7482 eval ac_cv_prog_make_
${ac_make}_set
=yes
7484 eval ac_cv_prog_make_
${ac_make}_set
=no
7488 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7489 echo "$as_me:$LINENO: result: yes" >&5
7490 echo "${ECHO_T}yes" >&6
7493 echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7495 SET_MAKE
="MAKE=${MAKE-make}"
7499 # Find some useful tools
7500 for ac_prog
in gawk mawk nawk
awk
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy
$ac_prog; ac_word
=$2
7504 echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7506 if test "${ac_cv_prog_AWK+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 if test -n "$AWK"; then
7510 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir
=.
7517 for ac_exec_ext
in '' $ac_executable_extensions; do
7518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_AWK
="$ac_prog"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 if test -n "$AWK"; then
7530 echo "$as_me:$LINENO: result: $AWK" >&5
7531 echo "${ECHO_T}$AWK" >&6
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7537 test -n "$AWK" && break
7540 # We need awk to create options.c and options.h.
7541 # Bail out if it's missing.
7543 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7544 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7545 { (exit 1); exit 1; }; } ;;
7548 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7550 if test "${gcc_cv_prog_LN_S+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 rm -f conftestdata_t
7554 echo >conftestdata_f
7555 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7557 gcc_cv_prog_LN_S
="ln -s"
7559 if ln conftestdata_f conftestdata_t
2>/dev
/null
7563 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7565 gcc_cv_prog_LN_S
="cp -p"
7571 rm -f conftestdata_f conftestdata_t
7574 LN_S
="$gcc_cv_prog_LN_S"
7575 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577 echo "${ECHO_T}yes" >&6
7579 if test "$gcc_cv_prog_LN_S" = "ln"; then
7580 echo "$as_me:$LINENO: result: no, using ln" >&5
7581 echo "${ECHO_T}no, using ln" >&6
7583 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7584 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7588 echo "$as_me:$LINENO: checking whether ln works" >&5
7589 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7590 if test "${acx_cv_prog_LN+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 rm -f conftestdata_t
7594 echo >conftestdata_f
7595 if ln conftestdata_f conftestdata_t
2>/dev
/null
7601 rm -f conftestdata_f conftestdata_t
7604 if test $acx_cv_prog_LN = no
; then
7606 echo "$as_me:$LINENO: result: no, using $LN" >&5
7607 echo "${ECHO_T}no, using $LN" >&6
7609 LN
="$acx_cv_prog_LN"
7610 echo "$as_me:$LINENO: result: yes" >&5
7611 echo "${ECHO_T}yes" >&6
7614 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7616 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7617 echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619 if test "${ac_cv_prog_RANLIB+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 if test -n "$RANLIB"; then
7623 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir
=.
7630 for ac_exec_ext
in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 RANLIB
=$ac_cv_prog_RANLIB
7642 if test -n "$RANLIB"; then
7643 echo "$as_me:$LINENO: result: $RANLIB" >&5
7644 echo "${ECHO_T}$RANLIB" >&6
7646 echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB
=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib
; ac_word
=$2
7655 echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test -n "$ac_ct_RANLIB"; then
7661 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir
=.
7668 for ac_exec_ext
in '' $ac_executable_extensions; do
7669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7680 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7683 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7685 echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7689 RANLIB
=$ac_ct_RANLIB
7691 RANLIB
="$ac_cv_prog_RANLIB"
7696 # By default, the Darwin ranlib will not treat common symbols as
7697 # definitions when building the archive table of contents. Other
7698 # ranlibs do that; pass an option to the Darwin ranlib that makes
7699 # it behave similarly.
7707 # Find a good install program. We prefer a C program (faster),
7708 # so one script is as good as another. But avoid the broken or
7709 # incompatible versions:
7710 # SysV /etc/install, /usr/sbin/install
7711 # SunOS /usr/etc/install
7712 # IRIX /sbin/install
7714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716 # ./install, which can be erroneously created by make from ./install.sh.
7717 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7718 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7719 if test -z "$INSTALL"; then
7720 if test "${ac_cv_path_install+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7724 for ac_dir
in $PATH; do
7725 # Account for people who put trailing slashes in PATH elements.
7727 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7729 # OSF1 and SCO ODT 3.0 have their own names for install.
7730 for ac_prog
in ginstall scoinst
install; do
7731 if test -f $ac_dir/$ac_prog; then
7732 if test $ac_prog = install &&
7733 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7734 # AIX install. It has an incompatible calling convention.
7735 # OSF/1 installbsd also uses dspmsg, but is usable.
7738 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7749 if test "${ac_cv_path_install+set}" = set; then
7750 INSTALL
="$ac_cv_path_install"
7752 # As a last resort, use the slow shell script. We don't cache a
7753 # path for INSTALL within a source directory, because that will
7754 # break other packages using the cache if that directory is
7755 # removed, or if the path is relative.
7756 INSTALL
="$ac_install_sh"
7759 echo "$as_me:$LINENO: result: $INSTALL" >&5
7760 echo "${ECHO_T}$INSTALL" >&6
7762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7763 # It thinks the first close brace ends the variable substitution.
7764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7766 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7769 # See if cmp has --ignore-initial.
7770 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7771 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7772 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 gcc_cv_prog_cmp_skip
=slowcompare
7778 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7779 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7782 gcc_cv_prog_cmp_skip
=gnucompare
7785 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7786 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7787 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7790 gcc_cv_prog_cmp_skip
=fastcompare
7797 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7798 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7799 make_compare_target
=$gcc_cv_prog_cmp_skip
7803 # See if we have the mktemp command.
7804 # Extract the first word of "mktemp", so it can be a program name with args.
7805 set dummy mktemp
; ac_word
=$2
7806 echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7808 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 if test -n "$have_mktemp_command"; then
7812 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_have_mktemp_command
="yes"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7831 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7832 if test -n "$have_mktemp_command"; then
7833 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7834 echo "${ECHO_T}$have_mktemp_command" >&6
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7841 # See if makeinfo has been installed and is modern enough
7842 # that we can use it.
7844 # Extract the first word of "makeinfo", so it can be a program name with args.
7845 set dummy makeinfo
; ac_word
=$2
7846 echo "$as_me:$LINENO: checking for $ac_word" >&5
7847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7848 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 if test -n "$MAKEINFO"; then
7852 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir
=.
7859 for ac_exec_ext
in '' $ac_executable_extensions; do
7860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_MAKEINFO
="makeinfo"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 MAKEINFO
=$ac_cv_prog_MAKEINFO
7871 if test -n "$MAKEINFO"; then
7872 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7873 echo "${ECHO_T}$MAKEINFO" >&6
7875 echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7879 if test -n "$MAKEINFO"; then
7880 # Found it, now check the version.
7881 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7882 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7883 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7887 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7889 case $ac_prog_version in
7890 '') gcc_cv_prog_makeinfo_modern
=no
;;
7891 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7892 *) gcc_cv_prog_makeinfo_modern
=no
;;
7896 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7897 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7899 gcc_cv_prog_makeinfo_modern
=no
7901 if test $gcc_cv_prog_makeinfo_modern = no
; then
7902 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7905 if test $gcc_cv_prog_makeinfo_modern = no
; then
7906 { echo "$as_me:$LINENO: WARNING:
7907 *** Makeinfo is missing or too old.
7908 *** Info documentation will not be built." >&5
7909 echo "$as_me: WARNING:
7910 *** Makeinfo is missing or too old.
7911 *** Info documentation will not be built." >&2;}
7918 # Is pod2man recent enough to regenerate manpages?
7919 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7920 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7921 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7922 echo "$as_me:$LINENO: result: yes" >&5
7923 echo "${ECHO_T}yes" >&6
7924 GENERATED_MANPAGES
=generated-manpages
7926 echo "$as_me:$LINENO: result: no" >&5
7927 echo "${ECHO_T}no" >&6
7932 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy
$ac_prog; ac_word
=$2
7939 echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941 if test "${ac_cv_prog_FLEX+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 if test -n "$FLEX"; then
7945 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir
=.
7952 for ac_exec_ext
in '' $ac_executable_extensions; do
7953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_FLEX
="$ac_prog"
7955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 FLEX
=$ac_cv_prog_FLEX
7964 if test -n "$FLEX"; then
7965 echo "$as_me:$LINENO: result: $FLEX" >&5
7966 echo "${ECHO_T}$FLEX" >&6
7968 echo "$as_me:$LINENO: result: no" >&5
7969 echo "${ECHO_T}no" >&6
7972 test -n "$FLEX" && break
7974 test -n "$FLEX" || FLEX
="$MISSING flex"
7978 for ac_prog
in bison
7980 # Extract the first word of "$ac_prog", so it can be a program name with args.
7981 set dummy
$ac_prog; ac_word
=$2
7982 echo "$as_me:$LINENO: checking for $ac_word" >&5
7983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984 if test "${ac_cv_prog_BISON+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 if test -n "$BISON"; then
7988 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir
=.
7995 for ac_exec_ext
in '' $ac_executable_extensions; do
7996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_BISON
="$ac_prog"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 BISON
=$ac_cv_prog_BISON
8007 if test -n "$BISON"; then
8008 echo "$as_me:$LINENO: result: $BISON" >&5
8009 echo "${ECHO_T}$BISON" >&6
8011 echo "$as_me:$LINENO: result: no" >&5
8012 echo "${ECHO_T}no" >&6
8015 test -n "$BISON" && break
8017 test -n "$BISON" || BISON
="$MISSING bison"
8020 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8021 # check for build == host before using them.
8024 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8025 && test -d ..
/binutils
; then
8026 NM
='$(objdir)/../binutils/nm-new'
8028 # Extract the first word of "nm", so it can be a program name with args.
8029 set dummy nm
; ac_word
=$2
8030 echo "$as_me:$LINENO: checking for $ac_word" >&5
8031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8032 if test "${ac_cv_prog_NM+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 if test -n "$NM"; then
8036 ac_cv_prog_NM
="$NM" # Let the user override the test.
8038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir
=.
8043 for ac_exec_ext
in '' $ac_executable_extensions; do
8044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8056 if test -n "$NM"; then
8057 echo "$as_me:$LINENO: result: $NM" >&5
8058 echo "${ECHO_T}$NM" >&6
8060 echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6
8067 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8068 && test -d ..
/binutils
; then
8069 AR
='$(objdir)/../binutils/ar'
8071 # Extract the first word of "ar", so it can be a program name with args.
8072 set dummy
ar; ac_word
=$2
8073 echo "$as_me:$LINENO: checking for $ac_word" >&5
8074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075 if test "${ac_cv_prog_AR+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 if test -n "$AR"; then
8079 ac_cv_prog_AR
="$AR" # Let the user override the test.
8081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir
=.
8086 for ac_exec_ext
in '' $ac_executable_extensions; do
8087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8099 if test -n "$AR"; then
8100 echo "$as_me:$LINENO: result: $AR" >&5
8101 echo "${ECHO_T}$AR" >&6
8103 echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6
8110 # --------------------
8111 # Checks for C headers
8112 # --------------------
8114 echo "$as_me:$LINENO: checking for GNU C library" >&5
8115 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
8116 if test "${gcc_cv_glibc+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <features.h>
8130 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
8131 #error Not a GNU C library system
8137 rm -f conftest.
$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try
='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try
='test -s conftest.$ac_objext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8169 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
8170 echo "${ECHO_T}$gcc_cv_glibc" >&6
8171 if test $gcc_cv_glibc = yes; then
8173 cat >>confdefs.h
<<\_ACEOF
8174 #define _GNU_SOURCE 1
8179 # Need to reject headers which give warnings, so that the -Werror bootstrap
8180 # works later. *sigh* This needs to come before all header checks.
8182 ac_c_preproc_warn_flag
=yes
8184 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8185 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8186 if test "${ac_cv_header_stdc+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8208 rm -f conftest.
$ac_objext
8209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210 (eval $ac_compile) 2>conftest.er1
8212 grep -v '^ *+' conftest.er1
>conftest.err
8214 cat conftest.err
>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try
='test -z "$ac_c_werror_flag"
8218 || test ! -s conftest.err'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try
='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_header_stdc
=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.
$ac_ext >&5
8235 ac_cv_header_stdc
=no
8237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8239 if test $ac_cv_header_stdc = yes; then
8240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8241 cat >conftest.
$ac_ext <<_ACEOF
8244 cat confdefs.h
>>conftest.
$ac_ext
8245 cat >>conftest.
$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251 $EGREP "memchr" >/dev
/null
2>&1; then
8254 ac_cv_header_stdc
=no
8260 if test $ac_cv_header_stdc = yes; then
8261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "free" >/dev
/null
2>&1; then
8275 ac_cv_header_stdc
=no
8281 if test $ac_cv_header_stdc = yes; then
8282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8283 if test "$cross_compiling" = yes; then
8286 cat >conftest.
$ac_ext <<_ACEOF
8289 cat confdefs.h
>>conftest.
$ac_ext
8290 cat >>conftest.
$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8293 #if ((' ' & 0x0FF) == 0x020)
8294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8297 # define ISLOWER(c) \
8298 (('a' <= (c) && (c) <= 'i') \
8299 || ('j' <= (c) && (c) <= 'r') \
8300 || ('s' <= (c) && (c) <= 'z'))
8301 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8309 for (i = 0; i < 256; i++)
8310 if (XOR (islower (i), ISLOWER (i))
8311 || toupper (i) != TOUPPER (i))
8316 rm -f conftest
$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8329 echo "$as_me: program exited with status $ac_status" >&5
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_cv_header_stdc
=no
8336 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8341 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8342 if test $ac_cv_header_stdc = yes; then
8344 cat >>confdefs.h
<<\_ACEOF
8345 #define STDC_HEADERS 1
8350 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8351 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8352 if test "${ac_cv_header_time+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 #include <sys/types.h>
8362 #include <sys/time.h>
8368 if ((struct tm *) 0)
8374 rm -f conftest.
$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376 (eval $ac_compile) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1
>conftest.err
8380 cat conftest.err
>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try
='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try
='test -s conftest.$ac_objext'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_header_time
=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.
$ac_ext >&5
8401 ac_cv_header_time
=no
8403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8406 echo "${ECHO_T}$ac_cv_header_time" >&6
8407 if test $ac_cv_header_time = yes; then
8409 cat >>confdefs.h
<<\_ACEOF
8410 #define TIME_WITH_SYS_TIME 1
8415 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8416 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8417 if test "${gcc_cv_header_string+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.
$ac_ext <<_ACEOF
8423 cat confdefs.h
>>conftest.
$ac_ext
8424 cat >>conftest.
$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8427 #include <strings.h>
8436 rm -f conftest.
$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>conftest.er1
8440 grep -v '^ *+' conftest.er1
>conftest.err
8442 cat conftest.err
>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try
='test -z "$ac_c_werror_flag"
8446 || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try
='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 gcc_cv_header_string
=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.
$ac_ext >&5
8463 gcc_cv_header_string
=no
8465 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8467 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8468 echo "${ECHO_T}$gcc_cv_header_string" >&6
8469 if test $gcc_cv_header_string = yes; then
8471 cat >>confdefs.h
<<\_ACEOF
8472 #define STRING_WITH_STRINGS 1
8477 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8478 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8479 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 cat >conftest.
$ac_ext <<_ACEOF
8485 cat confdefs.h
>>conftest.
$ac_ext
8486 cat >>conftest.
$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 #include <sys/types.h>
8489 #include <sys/wait.h>
8491 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8494 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8502 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8507 rm -f conftest.
$ac_objext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509 (eval $ac_compile) 2>conftest.er1
8511 grep -v '^ *+' conftest.er1
>conftest.err
8513 cat conftest.err
>&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } &&
8516 { ac_try
='test -z "$ac_c_werror_flag"
8517 || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try
='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_header_sys_wait_h
=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.
$ac_ext >&5
8534 ac_cv_header_sys_wait_h
=no
8536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8539 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8540 if test $ac_cv_header_sys_wait_h = yes; then
8542 cat >>confdefs.h
<<\_ACEOF
8543 #define HAVE_SYS_WAIT_H 1
8570 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8571 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8572 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8573 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8575 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8576 echo "$as_me:$LINENO: checking for $ac_header" >&5
8577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 cat >conftest.
$ac_ext <<_ACEOF
8584 cat confdefs.h
>>conftest.
$ac_ext
8585 cat >>conftest.
$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 #include <$ac_header>
8589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1
>conftest.err
8594 cat conftest.err
>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } >/dev
/null
; then
8597 if test -s conftest.err
; then
8598 ac_cpp_err
=$ac_c_preproc_warn_flag
8599 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8606 if test -z "$ac_cpp_err"; then
8607 eval "$as_ac_Header=yes"
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.
$ac_ext >&5
8612 eval "$as_ac_Header=no"
8614 rm -f conftest.err conftest.
$ac_ext
8616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h
<<_ACEOF
8620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627 # Check for thread headers.
8628 echo "$as_me:$LINENO: checking for thread.h" >&5
8629 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8630 if test "${ac_cv_header_thread_h+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8642 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } >/dev
/null
; then
8649 if test -s conftest.err
; then
8650 ac_cpp_err
=$ac_c_preproc_warn_flag
8651 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8658 if test -z "$ac_cpp_err"; then
8659 ac_cv_header_thread_h
=yes
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.
$ac_ext >&5
8664 ac_cv_header_thread_h
=no
8666 rm -f conftest.err conftest.
$ac_ext
8668 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8669 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8670 if test $ac_cv_header_thread_h = yes; then
8676 echo "$as_me:$LINENO: checking for pthread.h" >&5
8677 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_pthread_h+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8684 cat confdefs.h
>>conftest.
$ac_ext
8685 cat >>conftest.
$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 #include <pthread.h>
8689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } >/dev
/null
; then
8697 if test -s conftest.err
; then
8698 ac_cpp_err
=$ac_c_preproc_warn_flag
8699 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8706 if test -z "$ac_cpp_err"; then
8707 ac_cv_header_pthread_h
=yes
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.
$ac_ext >&5
8712 ac_cv_header_pthread_h
=no
8714 rm -f conftest.err conftest.
$ac_ext
8716 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8717 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8718 if test $ac_cv_header_pthread_h = yes; then
8725 # These tests can't be done till we know if we have limits.h.
8726 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8727 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8728 if test "${gcc_cv_decl_char_bit+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 cat >conftest.
$ac_ext <<_ACEOF
8734 cat confdefs.h
>>conftest.
$ac_ext
8735 cat >>conftest.
$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 #ifdef HAVE_LIMITS_H
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "found" >/dev
/null
2>&1; then
8746 gcc_cv_decl_char_bit
=yes
8748 gcc_cv_decl_char_bit
=no
8754 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8755 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8756 if test $gcc_cv_decl_char_bit = no
; then
8757 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8758 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8759 if test "${gcc_cv_c_nbby+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 while test $i -lt 65; do
8765 cat >conftest.
$ac_ext <<_ACEOF
8768 cat confdefs.h
>>conftest.
$ac_ext
8769 cat >>conftest.
$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8776 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8777 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8783 rm -f conftest.
$ac_objext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1
>conftest.err
8789 cat conftest.err
>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try
='test -z "$ac_c_werror_flag"
8793 || test ! -s conftest.err'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try
='test -s conftest.$ac_objext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 gcc_cv_c_nbby
=$i; break
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.
$ac_ext >&5
8811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8814 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8817 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8818 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8819 if test $gcc_cv_c_nbby = failed
; then
8820 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8821 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8822 { (exit 1); exit 1; }; }
8825 cat >>confdefs.h
<<_ACEOF
8826 #define CHAR_BIT $gcc_cv_c_nbby
8831 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8832 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8833 if test "${ac_cv_c_bigendian+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 # See if sys/param.h defines the BYTE_ORDER macro.
8837 cat >conftest.
$ac_ext <<_ACEOF
8840 cat confdefs.h
>>conftest.
$ac_ext
8841 cat >>conftest.
$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <sys/types.h>
8844 #include <sys/param.h>
8849 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8857 rm -f conftest.
$ac_objext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8859 (eval $ac_compile) 2>conftest.er1
8861 grep -v '^ *+' conftest.er1
>conftest.err
8863 cat conftest.err
>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try
='test -z "$ac_c_werror_flag"
8867 || test ! -s conftest.err'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try
='test -s conftest.$ac_objext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 # It does; now see whether it defined to BIG_ENDIAN or not.
8880 cat >conftest.
$ac_ext <<_ACEOF
8883 cat confdefs.h
>>conftest.
$ac_ext
8884 cat >>conftest.
$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #include <sys/param.h>
8892 #if BYTE_ORDER != BIG_ENDIAN
8900 rm -f conftest.
$ac_objext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8904 grep -v '^ *+' conftest.er1
>conftest.err
8906 cat conftest.err
>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try
='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try
='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_c_bigendian
=yes
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.
$ac_ext >&5
8927 ac_cv_c_bigendian
=no
8929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8934 # It does not; compile a test program.
8935 if test "$cross_compiling" = yes; then
8936 # try to guess the endianness by grepping values into an object file
8937 ac_cv_c_bigendian
=unknown
8938 cat >conftest.
$ac_ext <<_ACEOF
8941 cat confdefs.h
>>conftest.
$ac_ext
8942 cat >>conftest.
$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8945 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8946 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8947 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8948 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8949 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8953 _ascii (); _ebcdic ();
8958 rm -f conftest.
$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1
>conftest.err
8964 cat conftest.err
>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try
='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try
='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8981 ac_cv_c_bigendian
=yes
8983 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8984 if test "$ac_cv_c_bigendian" = unknown
; then
8985 ac_cv_c_bigendian
=no
8987 # finding both strings is unlikely to happen, but who knows?
8988 ac_cv_c_bigendian
=unknown
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.
$ac_ext >&5
8996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8998 cat >conftest.
$ac_ext <<_ACEOF
9001 cat confdefs.h
>>conftest.
$ac_ext
9002 cat >>conftest.
$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9007 /* Are we little or big endian? From Harbison&Steele. */
9011 char c[sizeof (long)];
9014 exit (u.c[sizeof (long) - 1] == 1);
9017 rm -f conftest
$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_c_bigendian
=no
9030 echo "$as_me: program exited with status $ac_status" >&5
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.
$ac_ext >&5
9035 ac_cv_c_bigendian
=yes
9037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9042 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9043 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9044 case $ac_cv_c_bigendian in
9047 cat >>confdefs.h
<<\_ACEOF
9048 #define WORDS_BIGENDIAN 1
9054 { { echo "$as_me:$LINENO: error: unknown endianness
9055 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9056 echo "$as_me: error: unknown endianness
9057 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9058 { (exit 1); exit 1; }; } ;;
9067 # These libraries may be used by collect2.
9068 # We may need a special search path to get them linked.
9069 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9070 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9071 if test "${gcc_cv_collect2_libs+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 for libs
in '' -lld -lmld \
9076 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9077 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9080 cat >conftest.
$ac_ext <<_ACEOF
9083 cat confdefs.h
>>conftest.
$ac_ext
9084 cat >>conftest.
$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try
='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 gcc_cv_collect2_libs
="$libs"; break
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.
$ac_ext >&5
9130 rm -f conftest.err conftest.
$ac_objext \
9131 conftest
$ac_exeext conftest.
$ac_ext
9134 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9136 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9137 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9138 case $gcc_cv_collect2_libs in
9140 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9144 # When building Ada code on Alpha, we need exc_resume which is usually in
9145 # -lexc. So test for it.
9148 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9149 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9150 if test "${ac_cv_search_exc_resume+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_func_search_save_LIBS
=$LIBS
9154 ac_cv_search_exc_resume
=no
9155 cat >conftest.
$ac_ext <<_ACEOF
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 /* Override any gcc2 internal prototype to avoid an error. */
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9177 rm -f conftest.
$ac_objext conftest
$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try
='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 ac_cv_search_exc_resume
="none required"
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9205 rm -f conftest.err conftest.
$ac_objext \
9206 conftest
$ac_exeext conftest.
$ac_ext
9207 if test "$ac_cv_search_exc_resume" = no
; then
9208 for ac_lib
in exc
; do
9209 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9210 cat >conftest.
$ac_ext <<_ACEOF
9213 cat confdefs.h
>>conftest.
$ac_ext
9214 cat >>conftest.
$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9217 /* Override any gcc2 internal prototype to avoid an error. */
9221 /* We use char because int might match the return type of a gcc2
9222 builtin and then its argument prototype would still apply. */
9232 rm -f conftest.
$ac_objext conftest
$ac_exeext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1
>conftest.err
9238 cat conftest.err
>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try
='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try
='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_search_exc_resume
="-l$ac_lib"
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.
$ac_ext >&5
9261 rm -f conftest.err conftest.
$ac_objext \
9262 conftest
$ac_exeext conftest.
$ac_ext
9265 LIBS
=$ac_func_search_save_LIBS
9267 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9268 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9269 if test "$ac_cv_search_exc_resume" != no
; then
9270 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9278 # Some systems put ldexp and frexp in libm instead of libc; assume
9279 # they're both in the same place. jcf-dump needs them.
9282 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9283 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9284 if test "${ac_cv_search_ldexp+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 ac_func_search_save_LIBS
=$LIBS
9288 ac_cv_search_ldexp
=no
9289 cat >conftest.
$ac_ext <<_ACEOF
9292 cat confdefs.h
>>conftest.
$ac_ext
9293 cat >>conftest.
$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9311 rm -f conftest.
$ac_objext conftest
$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1
>conftest.err
9317 cat conftest.err
>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try
='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try
='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_search_ldexp
="none required"
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.
$ac_ext >&5
9339 rm -f conftest.err conftest.
$ac_objext \
9340 conftest
$ac_exeext conftest.
$ac_ext
9341 if test "$ac_cv_search_ldexp" = no
; then
9343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9366 rm -f conftest.
$ac_objext conftest
$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9370 grep -v '^ *+' conftest.er1
>conftest.err
9372 cat conftest.err
>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try
='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try
='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_search_ldexp
="-l$ac_lib"
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.
$ac_ext >&5
9395 rm -f conftest.err conftest.
$ac_objext \
9396 conftest
$ac_exeext conftest.
$ac_ext
9399 LIBS
=$ac_func_search_save_LIBS
9401 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9402 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9403 if test "$ac_cv_search_ldexp" != no
; then
9404 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9412 # Use <inttypes.h> only if it exists,
9413 # doesn't clash with <sys/types.h>, and declares intmax_t.
9414 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9415 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9416 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.
$ac_ext <<_ACEOF
9422 cat confdefs.h
>>conftest.
$ac_ext
9423 cat >>conftest.
$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #include <sys/types.h>
9426 #include <inttypes.h>
9435 rm -f conftest.
$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1
>conftest.err
9441 cat conftest.err
>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try
='test -z "$ac_c_werror_flag"
9445 || test ! -s conftest.err'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; } &&
9451 { ac_try
='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 gcc_cv_header_inttypes_h
=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.
$ac_ext >&5
9462 gcc_cv_header_inttypes_h
=no
9464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9467 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9468 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9469 if test $gcc_cv_header_inttypes_h = yes; then
9471 cat >>confdefs.h
<<\_ACEOF
9472 #define HAVE_INTTYPES_H 1
9514 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9515 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9516 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9517 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
9519 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9520 echo "$as_me:$LINENO: checking for $ac_func" >&5
9521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9522 if eval "test \"\${$as_ac_var+set}\" = set"; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9533 #define $ac_func innocuous_$ac_func
9535 /* System header to define __stub macros and hopefully few prototypes,
9536 which can conflict with char $ac_func (); below.
9537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9538 <limits.h> exists even on freestanding compilers. */
9541 # include <limits.h>
9543 # include <assert.h>
9548 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9562 char (*f) () = $ac_func;
9571 return f != $ac_func;
9576 rm -f conftest.
$ac_objext conftest
$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>conftest.er1
9580 grep -v '^ *+' conftest.er1
>conftest.err
9582 cat conftest.err
>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try
='test -z "$ac_c_werror_flag"
9586 || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try
='test -s conftest$ac_exeext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 eval "$as_ac_var=yes"
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.
$ac_ext >&5
9603 eval "$as_ac_var=no"
9605 rm -f conftest.err conftest.
$ac_objext \
9606 conftest
$ac_exeext conftest.
$ac_ext
9608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9610 if test `eval echo '${'$as_ac_var'}'` = yes; then
9611 cat >>confdefs.h
<<_ACEOF
9612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9619 if test x
$ac_cv_func_mbstowcs = xyes
; then
9620 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9621 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9622 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 if test "$cross_compiling" = yes; then
9626 gcc_cv_func_mbstowcs_works
=yes
9628 cat >conftest.
$ac_ext <<_ACEOF
9631 cat confdefs.h
>>conftest.
$ac_ext
9632 cat >>conftest.
$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9641 rm -f conftest
$ac_exeext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9643 (eval $ac_link) 2>&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 gcc_cv_func_mbstowcs_works
=yes
9654 echo "$as_me: program exited with status $ac_status" >&5
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.
$ac_ext >&5
9659 gcc_cv_func_mbstowcs_works
=no
9661 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9664 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9665 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9666 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9668 cat >>confdefs.h
<<\_ACEOF
9669 #define HAVE_WORKING_MBSTOWCS 1
9675 echo "$as_me:$LINENO: checking for ssize_t" >&5
9676 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9677 if test "${ac_cv_type_ssize_t+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 cat >conftest.
$ac_ext <<_ACEOF
9683 cat confdefs.h
>>conftest.
$ac_ext
9684 cat >>conftest.
$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 $ac_includes_default
9692 if (sizeof (ssize_t))
9698 rm -f conftest.
$ac_objext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9700 (eval $ac_compile) 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_objext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_type_ssize_t
=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9725 ac_cv_type_ssize_t
=no
9727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9729 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9730 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9731 if test $ac_cv_type_ssize_t = yes; then
9735 cat >>confdefs.h
<<_ACEOF
9742 # Try to determine the array type of the second argument of getgroups
9743 # for the target system (int or gid_t).
9744 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9745 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9746 if test "${ac_cv_type_uid_t+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 cat >conftest.
$ac_ext <<_ACEOF
9752 cat confdefs.h
>>conftest.
$ac_ext
9753 cat >>conftest.
$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 #include <sys/types.h>
9758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9759 $EGREP "uid_t" >/dev
/null
2>&1; then
9760 ac_cv_type_uid_t
=yes
9767 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9768 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9769 if test $ac_cv_type_uid_t = no
; then
9771 cat >>confdefs.h
<<\_ACEOF
9776 cat >>confdefs.h
<<\_ACEOF
9782 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9783 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9784 if test "${ac_cv_type_getgroups+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 if test "$cross_compiling" = yes; then
9788 ac_cv_type_getgroups
=cross
9790 cat >conftest.
$ac_ext <<_ACEOF
9793 cat confdefs.h
>>conftest.
$ac_ext
9794 cat >>conftest.
$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 /* Thanks to Mike Rendell for this test. */
9797 #include <sys/types.h>
9800 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9807 union { gid_t gval; long lval; } val;
9810 for (i = 0; i < NGID; i++)
9811 gidset[i] = val.gval;
9812 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9814 /* Exit non-zero if getgroups seems to require an array of ints. This
9815 happens when gid_t is short but getgroups modifies an array of ints. */
9816 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9819 rm -f conftest
$ac_exeext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 ac_cv_type_getgroups
=gid_t
9832 echo "$as_me: program exited with status $ac_status" >&5
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.
$ac_ext >&5
9837 ac_cv_type_getgroups
=int
9839 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9841 if test $ac_cv_type_getgroups = cross
; then
9842 cat >conftest.
$ac_ext <<_ACEOF
9845 cat confdefs.h
>>conftest.
$ac_ext
9846 cat >>conftest.
$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9852 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9853 ac_cv_type_getgroups
=gid_t
9855 ac_cv_type_getgroups
=int
9861 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9862 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9864 cat >>confdefs.h
<<_ACEOF
9865 #define GETGROUPS_T $ac_cv_type_getgroups
9869 if test "${target}" = "${build}"; then
9870 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9873 # This condition may need some tweaking. It should include all
9874 # targets where the array type of the second argument of getgroups
9875 # is int and the type of gid_t is not equivalent to int.
9876 *-*-sunos* |
*-*-ultrix*)
9877 TARGET_GETGROUPS_T
=int
9880 TARGET_GETGROUPS_T
=gid_t
9887 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9888 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9889 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 cat >conftest.
$ac_ext <<_ACEOF
9895 cat confdefs.h
>>conftest.
$ac_ext
9896 cat >>conftest.
$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <sys/mman.h>
9900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1
>conftest.err
9905 cat conftest.err
>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } >/dev
/null
; then
9908 if test -s conftest.err
; then
9909 ac_cpp_err
=$ac_c_preproc_warn_flag
9910 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9917 if test -z "$ac_cpp_err"; then
9918 ac_cv_header_sys_mman_h
=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.
$ac_ext >&5
9923 ac_cv_header_sys_mman_h
=no
9925 rm -f conftest.err conftest.
$ac_ext
9927 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9928 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9929 if test $ac_cv_header_sys_mman_h = yes; then
9930 gcc_header_sys_mman_h
=yes
9932 gcc_header_sys_mman_h
=no
9935 echo "$as_me:$LINENO: checking for mmap" >&5
9936 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9937 if test "${ac_cv_func_mmap+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 cat >conftest.
$ac_ext <<_ACEOF
9943 cat confdefs.h
>>conftest.
$ac_ext
9944 cat >>conftest.
$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9948 #define mmap innocuous_mmap
9950 /* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char mmap (); below.
9952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9953 <limits.h> exists even on freestanding compilers. */
9956 # include <limits.h>
9958 # include <assert.h>
9963 /* Override any gcc2 internal prototype to avoid an error. */
9968 /* We use char because int might match the return type of a gcc2
9969 builtin and then its argument prototype would still apply. */
9971 /* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974 #if defined (__stub_mmap) || defined (__stub___mmap)
9977 char (*f) () = mmap;
9991 rm -f conftest.
$ac_objext conftest
$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>conftest.er1
9995 grep -v '^ *+' conftest.er1
>conftest.err
9997 cat conftest.err
>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try
='test -z "$ac_c_werror_flag"
10001 || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try
='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_func_mmap
=yes
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.
$ac_ext >&5
10020 rm -f conftest.err conftest.
$ac_objext \
10021 conftest
$ac_exeext conftest.
$ac_ext
10023 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10024 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10025 if test $ac_cv_func_mmap = yes; then
10031 if test "$gcc_header_sys_mman_h" != yes \
10032 ||
test "$gcc_func_mmap" != yes; then
10033 gcc_cv_func_mmap_file
=no
10034 gcc_cv_func_mmap_dev_zero
=no
10035 gcc_cv_func_mmap_anon
=no
10037 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10038 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10039 if test "${gcc_cv_func_mmap_file+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 # Add a system to this blacklist if
10043 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10044 # memory area containing the same data that you'd get if you applied
10045 # read() to the same fd. The only system known to have a problem here
10046 # is VMS, where text files have record structure.
10049 gcc_cv_func_mmap_file
=no
;;
10051 gcc_cv_func_mmap_file
=yes;;
10054 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10055 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10056 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10057 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10058 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 # Add a system to this blacklist if it has mmap() but /dev/zero
10062 # does not exist, or if mmapping /dev/zero does not give anonymous
10063 # zeroed pages with both the following properties:
10064 # 1. If you map N consecutive pages in with one call, and then
10065 # unmap any subset of those pages, the pages that were not
10066 # explicitly unmapped remain accessible.
10067 # 2. If you map two adjacent blocks of memory and then unmap them
10068 # both at once, they must both go away.
10069 # Systems known to be in this category are Windows (all variants),
10072 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10073 gcc_cv_func_mmap_dev_zero
=no
;;
10075 gcc_cv_func_mmap_dev_zero
=yes;;
10078 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10079 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10081 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10082 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10083 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10084 if test "${gcc_cv_decl_map_anon+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10090 cat confdefs.h
>>conftest.
$ac_ext
10091 cat >>conftest.
$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 #include <sys/types.h>
10094 #include <sys/mman.h>
10095 #include <unistd.h>
10097 #ifndef MAP_ANONYMOUS
10098 #define MAP_ANONYMOUS MAP_ANON
10104 int n = MAP_ANONYMOUS;
10109 rm -f conftest.
$ac_objext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111 (eval $ac_compile) 2>conftest.er1
10113 grep -v '^ *+' conftest.er1
>conftest.err
10115 cat conftest.err
>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try
='test -z "$ac_c_werror_flag"
10119 || test ! -s conftest.err'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; } &&
10125 { ac_try
='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 gcc_cv_decl_map_anon
=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.
$ac_ext >&5
10136 gcc_cv_decl_map_anon
=no
10138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10140 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10141 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10143 if test $gcc_cv_decl_map_anon = no
; then
10144 gcc_cv_func_mmap_anon
=no
10146 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10147 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10148 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10152 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10153 # doesn't give anonymous zeroed pages with the same properties listed
10154 # above for use of /dev/zero.
10155 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10157 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10158 gcc_cv_func_mmap_anon
=no
;;
10160 gcc_cv_func_mmap_anon
=yes;;
10163 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10164 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10168 if test $gcc_cv_func_mmap_file = yes; then
10170 cat >>confdefs.h
<<\_ACEOF
10171 #define HAVE_MMAP_FILE 1
10175 if test $gcc_cv_func_mmap_dev_zero = yes; then
10177 cat >>confdefs.h
<<\_ACEOF
10178 #define HAVE_MMAP_DEV_ZERO 1
10182 if test $gcc_cv_func_mmap_anon = yes; then
10184 cat >>confdefs.h
<<\_ACEOF
10185 #define HAVE_MMAP_ANON 1
10193 # Under VMS, vfork works very differently than on Unix. The standard test
10194 # won't work, and it isn't easily adaptable. It makes more sense to
10196 ac_cv_func_vfork_works
=yes
10199 echo "$as_me:$LINENO: checking for pid_t" >&5
10200 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10201 if test "${ac_cv_type_pid_t+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 cat >conftest.
$ac_ext <<_ACEOF
10207 cat confdefs.h
>>conftest.
$ac_ext
10208 cat >>conftest.
$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10210 $ac_includes_default
10216 if (sizeof (pid_t))
10222 rm -f conftest.
$ac_objext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>conftest.er1
10226 grep -v '^ *+' conftest.er1
>conftest.err
10228 cat conftest.err
>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try
='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try
='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_type_pid_t
=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.
$ac_ext >&5
10249 ac_cv_type_pid_t
=no
10251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10254 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10255 if test $ac_cv_type_pid_t = yes; then
10259 cat >>confdefs.h
<<_ACEOF
10267 for ac_header
in unistd.h vfork.h
10269 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10270 echo "$as_me:$LINENO: checking for $ac_header" >&5
10271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 cat >conftest.
$ac_ext <<_ACEOF
10278 cat confdefs.h
>>conftest.
$ac_ext
10279 cat >>conftest.
$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10286 grep -v '^ *+' conftest.er1
>conftest.err
10288 cat conftest.err
>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } >/dev
/null
; then
10291 if test -s conftest.err
; then
10292 ac_cpp_err
=$ac_c_preproc_warn_flag
10293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10300 if test -z "$ac_cpp_err"; then
10301 eval "$as_ac_Header=yes"
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.
$ac_ext >&5
10306 eval "$as_ac_Header=no"
10308 rm -f conftest.err conftest.
$ac_ext
10310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10313 cat >>confdefs.h
<<_ACEOF
10314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10322 for ac_func
in fork vfork
10324 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10325 echo "$as_me:$LINENO: checking for $ac_func" >&5
10326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_var+set}\" = set"; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.
$ac_ext <<_ACEOF
10333 cat confdefs.h
>>conftest.
$ac_ext
10334 cat >>conftest.
$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10338 #define $ac_func innocuous_$ac_func
10340 /* System header to define __stub macros and hopefully few prototypes,
10341 which can conflict with char $ac_func (); below.
10342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10343 <limits.h> exists even on freestanding compilers. */
10346 # include <limits.h>
10348 # include <assert.h>
10353 /* Override any gcc2 internal prototype to avoid an error. */
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10367 char (*f) () = $ac_func;
10376 return f != $ac_func;
10381 rm -f conftest.
$ac_objext conftest
$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>conftest.er1
10385 grep -v '^ *+' conftest.er1
>conftest.err
10387 cat conftest.err
>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try
='test -z "$ac_c_werror_flag"
10391 || test ! -s conftest.err'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try
='test -s conftest$ac_exeext'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 eval "$as_ac_var=yes"
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 eval "$as_ac_var=no"
10410 rm -f conftest.err conftest.
$ac_objext \
10411 conftest
$ac_exeext conftest.
$ac_ext
10413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10415 if test `eval echo '${'$as_ac_var'}'` = yes; then
10416 cat >>confdefs.h
<<_ACEOF
10417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 if test "x$ac_cv_func_fork" = xyes
; then
10424 echo "$as_me:$LINENO: checking for working fork" >&5
10425 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10426 if test "${ac_cv_func_fork_works+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 if test "$cross_compiling" = yes; then
10430 ac_cv_func_fork_works
=cross
10432 cat >conftest.
$ac_ext <<_ACEOF
10433 /* By Ruediger Kuhlmann. */
10434 #include <sys/types.h>
10436 # include <unistd.h>
10438 /* Some systems only have a dummy stub for fork() */
10446 rm -f conftest
$ac_exeext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448 (eval $ac_link) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_func_fork_works
=yes
10459 echo "$as_me: program exited with status $ac_status" >&5
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.
$ac_ext >&5
10463 ( exit $ac_status )
10464 ac_cv_func_fork_works
=no
10466 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10469 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10470 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10473 ac_cv_func_fork_works
=$ac_cv_func_fork
10475 if test "x$ac_cv_func_fork_works" = xcross
; then
10477 *-*-amigaos* |
*-*-msdosdjgpp*)
10478 # Override, as these systems have only a dummy fork() stub
10479 ac_cv_func_fork_works
=no
10482 ac_cv_func_fork_works
=yes
10485 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10486 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10488 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10489 if test "x$ac_cv_func_vfork" = xyes
; then
10490 echo "$as_me:$LINENO: checking for working vfork" >&5
10491 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10492 if test "${ac_cv_func_vfork_works+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 if test "$cross_compiling" = yes; then
10496 ac_cv_func_vfork_works
=cross
10498 cat >conftest.
$ac_ext <<_ACEOF
10501 cat confdefs.h
>>conftest.
$ac_ext
10502 cat >>conftest.
$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 /* Thanks to Paul Eggert for this test. */
10506 #include <stdlib.h>
10507 #include <sys/types.h>
10508 #include <sys/stat.h>
10509 #include <sys/wait.h>
10511 # include <unistd.h>
10514 # include <vfork.h>
10516 /* On some sparc systems, changes by the child to local and incoming
10517 argument registers are propagated back to the parent. The compiler
10518 is told about this with #include <vfork.h>, but some compilers
10519 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10520 static variable whose address is put into a register that is
10521 clobbered by the vfork. */
10524 sparc_address_test (int arg)
10526 sparc_address_test (arg) int arg;
10529 static pid_t child;
10547 pid_t parent = getpid ();
10550 sparc_address_test (0);
10555 /* Here is another test for sparc vfork register problems. This
10556 test uses lots of local variables, at least as many local
10557 variables as main has allocated so far including compiler
10558 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10559 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10560 reuse the register of parent for one of the local variables,
10561 since it will think that parent can't possibly be used any more
10562 in this routine. Assigning to the local variable will thus
10563 munge parent in the parent process. */
10565 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10566 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10567 /* Convince the compiler that p..p7 are live; otherwise, it might
10568 use the same hardware register for all 8 local variables. */
10569 if (p != p1 || p != p2 || p != p3 || p != p4
10570 || p != p5 || p != p6 || p != p7)
10573 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10574 from child file descriptors. If the child closes a descriptor
10575 before it execs or exits, this munges the parent's descriptor
10576 as well. Test for this by closing stdout in the child. */
10577 _exit(close(fileno(stdout)) != 0);
10582 while (wait(&status) != child)
10585 /* Was there some problem with vforking? */
10588 /* Did the child fail? (This shouldn't happen.) */
10591 /* Did the vfork/compiler bug occur? */
10592 || parent != getpid()
10594 /* Did the file descriptor bug occur? */
10595 || fstat(fileno(stdout), &st) != 0
10600 rm -f conftest
$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_func_vfork_works
=yes
10613 echo "$as_me: program exited with status $ac_status" >&5
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.
$ac_ext >&5
10617 ( exit $ac_status )
10618 ac_cv_func_vfork_works
=no
10620 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10623 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10624 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10627 if test "x$ac_cv_func_fork_works" = xcross
; then
10628 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10629 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10630 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10633 if test "x$ac_cv_func_vfork_works" = xyes
; then
10635 cat >>confdefs.h
<<\_ACEOF
10636 #define HAVE_WORKING_VFORK 1
10641 cat >>confdefs.h
<<\_ACEOF
10646 if test "x$ac_cv_func_fork_works" = xyes
; then
10648 cat >>confdefs.h
<<\_ACEOF
10649 #define HAVE_WORKING_FORK 1
10656 if test "X$prefix" = "XNONE"; then
10657 acl_final_prefix
="$ac_default_prefix"
10659 acl_final_prefix
="$prefix"
10661 if test "X$exec_prefix" = "XNONE"; then
10662 acl_final_exec_prefix
='${prefix}'
10664 acl_final_exec_prefix
="$exec_prefix"
10666 acl_save_prefix
="$prefix"
10667 prefix
="$acl_final_prefix"
10668 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10669 prefix
="$acl_save_prefix"
10672 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10673 if test "${with_gnu_ld+set}" = set; then
10674 withval
="$with_gnu_ld"
10675 test "$withval" = no || with_gnu_ld
=yes
10679 # Prepare PATH_SEPARATOR.
10680 # The user is always right.
10681 if test "${PATH_SEPARATOR+set}" != set; then
10682 echo "#! /bin/sh" >conf$$.sh
10683 echo "exit 0" >>conf$$.sh
10685 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10693 if test "$GCC" = yes; then
10694 # Check if gcc -print-prog-name=ld gives a path.
10695 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10696 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10699 # gcc leaves a trailing carriage return which upsets mingw
10700 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10702 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10705 # Accept absolute paths.
10706 [\\/]* |
[A-Za-z
]:[\\/]*)
10707 re_direlt
='/[^/][^/]*/\.\./'
10708 # Canonicalize the path of ld
10709 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10710 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10711 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10713 test -z "$LD" && LD
="$ac_prog"
10716 # If it fails, then pretend we aren't using GCC.
10720 # If it is relative, then search for the first ld in PATH.
10721 with_gnu_ld
=unknown
10724 elif test "$with_gnu_ld" = yes; then
10725 echo "$as_me:$LINENO: checking for GNU ld" >&5
10726 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10728 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10729 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10731 if test "${acl_cv_path_LD+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 if test -z "$LD"; then
10735 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10736 for ac_dir
in $PATH; do
10737 test -z "$ac_dir" && ac_dir
=.
10738 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10739 acl_cv_path_LD
="$ac_dir/$ac_prog"
10740 # Check to see if the program is GNU ld. I'd rather use --version,
10741 # but apparently some GNU ld's only accept -v.
10742 # Break only if it was the GNU/non-GNU ld that we prefer.
10743 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10744 test "$with_gnu_ld" != no
&& break
10746 test "$with_gnu_ld" != yes && break
10752 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10756 LD
="$acl_cv_path_LD"
10757 if test -n "$LD"; then
10758 echo "$as_me:$LINENO: result: $LD" >&5
10759 echo "${ECHO_T}$LD" >&6
10761 echo "$as_me:$LINENO: result: no" >&5
10762 echo "${ECHO_T}no" >&6
10764 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10765 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10766 { (exit 1); exit 1; }; }
10767 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10768 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10769 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10773 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10774 acl_cv_prog_gnu_ld
=yes
10776 acl_cv_prog_gnu_ld
=no
10779 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10780 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10781 with_gnu_ld
=$acl_cv_prog_gnu_ld
10785 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10786 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10787 if test "${acl_cv_rpath+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10792 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10794 rm -f .
/conftest.sh
10798 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10799 echo "${ECHO_T}$acl_cv_rpath" >&6
10801 libext
="$acl_cv_libext"
10802 shlibext
="$acl_cv_shlibext"
10803 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10804 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10805 hardcode_direct
="$acl_cv_hardcode_direct"
10806 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10807 # Check whether --enable-rpath or --disable-rpath was given.
10808 if test "${enable_rpath+set}" = set; then
10809 enableval
="$enable_rpath"
10823 acl_save_prefix
="$prefix"
10824 prefix
="$acl_final_prefix"
10825 acl_save_exec_prefix
="$exec_prefix"
10826 exec_prefix
="$acl_final_exec_prefix"
10828 eval additional_includedir
=\"$includedir\"
10829 eval additional_libdir
=\"$libdir\"
10831 exec_prefix
="$acl_save_exec_prefix"
10832 prefix
="$acl_save_prefix"
10835 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10836 if test "${with_libiconv_prefix+set}" = set; then
10837 withval
="$with_libiconv_prefix"
10839 if test "X$withval" = "Xno"; then
10842 if test "X$withval" = "X"; then
10844 acl_save_prefix
="$prefix"
10845 prefix
="$acl_final_prefix"
10846 acl_save_exec_prefix
="$exec_prefix"
10847 exec_prefix
="$acl_final_exec_prefix"
10849 eval additional_includedir
=\"$includedir\"
10850 eval additional_libdir
=\"$libdir\"
10852 exec_prefix
="$acl_save_exec_prefix"
10853 prefix
="$acl_save_prefix"
10856 additional_includedir
="$withval/include"
10857 additional_libdir
="$withval/lib"
10867 names_already_handled
=
10868 names_next_round
='iconv '
10869 while test -n "$names_next_round"; do
10870 names_this_round
="$names_next_round"
10872 for name
in $names_this_round; do
10874 for n
in $names_already_handled; do
10875 if test "$n" = "$name"; then
10876 already_handled
=yes
10880 if test -z "$already_handled"; then
10881 names_already_handled
="$names_already_handled $name"
10882 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10883 eval value
=\"\
$HAVE_LIB$uppername\"
10884 if test -n "$value"; then
10885 if test "$value" = yes; then
10886 eval value
=\"\
$LIB$uppername\"
10887 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10888 eval value
=\"\
$LTLIB$uppername\"
10889 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10898 if test $use_additional = yes; then
10899 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10900 found_dir
="$additional_libdir"
10901 found_so
="$additional_libdir/lib$name.$shlibext"
10902 if test -f "$additional_libdir/lib$name.la"; then
10903 found_la
="$additional_libdir/lib$name.la"
10906 if test -f "$additional_libdir/lib$name.$libext"; then
10907 found_dir
="$additional_libdir"
10908 found_a
="$additional_libdir/lib$name.$libext"
10909 if test -f "$additional_libdir/lib$name.la"; then
10910 found_la
="$additional_libdir/lib$name.la"
10915 if test "X$found_dir" = "X"; then
10916 for x
in $LDFLAGS $LTLIBICONV; do
10918 acl_save_prefix
="$prefix"
10919 prefix
="$acl_final_prefix"
10920 acl_save_exec_prefix
="$exec_prefix"
10921 exec_prefix
="$acl_final_exec_prefix"
10923 exec_prefix
="$acl_save_exec_prefix"
10924 prefix
="$acl_save_prefix"
10928 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10929 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10931 found_so
="$dir/lib$name.$shlibext"
10932 if test -f "$dir/lib$name.la"; then
10933 found_la
="$dir/lib$name.la"
10936 if test -f "$dir/lib$name.$libext"; then
10938 found_a
="$dir/lib$name.$libext"
10939 if test -f "$dir/lib$name.la"; then
10940 found_la
="$dir/lib$name.la"
10946 if test "X$found_dir" != "X"; then
10951 if test "X$found_dir" != "X"; then
10952 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10953 if test "X$found_so" != "X"; then
10954 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10955 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10958 for x
in $ltrpathdirs; do
10959 if test "X$x" = "X$found_dir"; then
10964 if test -z "$haveit"; then
10965 ltrpathdirs
="$ltrpathdirs $found_dir"
10967 if test "$hardcode_direct" = yes; then
10968 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10970 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10971 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10973 for x
in $rpathdirs; do
10974 if test "X$x" = "X$found_dir"; then
10979 if test -z "$haveit"; then
10980 rpathdirs
="$rpathdirs $found_dir"
10984 for x
in $LDFLAGS $LIBICONV; do
10986 acl_save_prefix
="$prefix"
10987 prefix
="$acl_final_prefix"
10988 acl_save_exec_prefix
="$exec_prefix"
10989 exec_prefix
="$acl_final_exec_prefix"
10991 exec_prefix
="$acl_save_exec_prefix"
10992 prefix
="$acl_save_prefix"
10994 if test "X$x" = "X-L$found_dir"; then
10999 if test -z "$haveit"; then
11000 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11002 if test "$hardcode_minus_L" != no
; then
11003 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11005 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11011 if test "X$found_a" != "X"; then
11012 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11014 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11017 additional_includedir
=
11018 case "$found_dir" in
11020 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11021 additional_includedir
="$basedir/include"
11024 if test "X$additional_includedir" != "X"; then
11025 if test "X$additional_includedir" != "X/usr/include"; then
11027 if test "X$additional_includedir" = "X/usr/local/include"; then
11028 if test -n "$GCC"; then
11030 linux
*) haveit
=yes;;
11034 if test -z "$haveit"; then
11035 for x
in $CPPFLAGS $INCICONV; do
11037 acl_save_prefix
="$prefix"
11038 prefix
="$acl_final_prefix"
11039 acl_save_exec_prefix
="$exec_prefix"
11040 exec_prefix
="$acl_final_exec_prefix"
11042 exec_prefix
="$acl_save_exec_prefix"
11043 prefix
="$acl_save_prefix"
11045 if test "X$x" = "X-I$additional_includedir"; then
11050 if test -z "$haveit"; then
11051 if test -d "$additional_includedir"; then
11052 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11058 if test -n "$found_la"; then
11059 save_libdir
="$libdir"
11060 case "$found_la" in
11061 */* |
*\\*) .
"$found_la" ;;
11062 *) .
"./$found_la" ;;
11064 libdir
="$save_libdir"
11065 for dep
in $dependency_libs; do
11068 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11069 if test "X$additional_libdir" != "X/usr/lib"; then
11071 if test "X$additional_libdir" = "X/usr/local/lib"; then
11072 if test -n "$GCC"; then
11074 linux
*) haveit
=yes;;
11078 if test -z "$haveit"; then
11080 for x
in $LDFLAGS $LIBICONV; do
11082 acl_save_prefix
="$prefix"
11083 prefix
="$acl_final_prefix"
11084 acl_save_exec_prefix
="$exec_prefix"
11085 exec_prefix
="$acl_final_exec_prefix"
11087 exec_prefix
="$acl_save_exec_prefix"
11088 prefix
="$acl_save_prefix"
11090 if test "X$x" = "X-L$additional_libdir"; then
11095 if test -z "$haveit"; then
11096 if test -d "$additional_libdir"; then
11097 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11101 for x
in $LDFLAGS $LTLIBICONV; do
11103 acl_save_prefix
="$prefix"
11104 prefix
="$acl_final_prefix"
11105 acl_save_exec_prefix
="$exec_prefix"
11106 exec_prefix
="$acl_final_exec_prefix"
11108 exec_prefix
="$acl_save_exec_prefix"
11109 prefix
="$acl_save_prefix"
11111 if test "X$x" = "X-L$additional_libdir"; then
11116 if test -z "$haveit"; then
11117 if test -d "$additional_libdir"; then
11118 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11125 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11126 if test "$enable_rpath" != no
; then
11128 for x
in $rpathdirs; do
11129 if test "X$x" = "X$dir"; then
11134 if test -z "$haveit"; then
11135 rpathdirs
="$rpathdirs $dir"
11138 for x
in $ltrpathdirs; do
11139 if test "X$x" = "X$dir"; then
11144 if test -z "$haveit"; then
11145 ltrpathdirs
="$ltrpathdirs $dir"
11150 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11153 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11156 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11157 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11163 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11164 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11170 if test "X$rpathdirs" != "X"; then
11171 if test -n "$hardcode_libdir_separator"; then
11173 for found_dir
in $rpathdirs; do
11174 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11176 acl_save_libdir
="$libdir"
11178 eval flag
=\"$hardcode_libdir_flag_spec\"
11179 libdir
="$acl_save_libdir"
11180 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11182 for found_dir
in $rpathdirs; do
11183 acl_save_libdir
="$libdir"
11184 libdir
="$found_dir"
11185 eval flag
=\"$hardcode_libdir_flag_spec\"
11186 libdir
="$acl_save_libdir"
11187 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11191 if test "X$ltrpathdirs" != "X"; then
11192 for found_dir
in $ltrpathdirs; do
11193 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11203 am_save_CPPFLAGS
="$CPPFLAGS"
11205 for element
in $INCICONV; do
11207 for x
in $CPPFLAGS; do
11209 acl_save_prefix
="$prefix"
11210 prefix
="$acl_final_prefix"
11211 acl_save_exec_prefix
="$exec_prefix"
11212 exec_prefix
="$acl_final_exec_prefix"
11214 exec_prefix
="$acl_save_exec_prefix"
11215 prefix
="$acl_save_prefix"
11217 if test "X$x" = "X$element"; then
11222 if test -z "$haveit"; then
11223 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11228 echo "$as_me:$LINENO: checking for iconv" >&5
11229 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11230 if test "${am_cv_func_iconv+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 am_cv_func_iconv
="no, consider installing GNU libiconv"
11236 cat >conftest.
$ac_ext <<_ACEOF
11239 cat confdefs.h
>>conftest.
$ac_ext
11240 cat >>conftest.
$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <stdlib.h>
11247 iconv_t cd = iconv_open("","");
11248 iconv(cd,NULL,NULL,NULL,NULL);
11254 rm -f conftest.
$ac_objext conftest
$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11258 grep -v '^ *+' conftest.er1
>conftest.err
11260 cat conftest.err
>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try
='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try
='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 am_cv_func_iconv
=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.
$ac_ext >&5
11282 rm -f conftest.err conftest.
$ac_objext \
11283 conftest
$ac_exeext conftest.
$ac_ext
11284 if test "$am_cv_func_iconv" != yes; then
11285 am_save_LIBS
="$LIBS"
11286 LIBS
="$LIBS $LIBICONV"
11287 cat >conftest.
$ac_ext <<_ACEOF
11290 cat confdefs.h
>>conftest.
$ac_ext
11291 cat >>conftest.
$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <stdlib.h>
11298 iconv_t cd = iconv_open("","");
11299 iconv(cd,NULL,NULL,NULL,NULL);
11305 rm -f conftest.
$ac_objext conftest
$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>conftest.er1
11309 grep -v '^ *+' conftest.er1
>conftest.err
11311 cat conftest.err
>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try
='test -z "$ac_c_werror_flag"
11315 || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try
='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 am_cv_lib_iconv
=yes
11328 am_cv_func_iconv
=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11334 rm -f conftest.err conftest.
$ac_objext \
11335 conftest
$ac_exeext conftest.
$ac_ext
11336 LIBS
="$am_save_LIBS"
11340 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11341 echo "${ECHO_T}$am_cv_func_iconv" >&6
11342 if test "$am_cv_func_iconv" = yes; then
11344 cat >>confdefs.h
<<\_ACEOF
11345 #define HAVE_ICONV 1
11349 if test "$am_cv_lib_iconv" = yes; then
11350 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11351 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11352 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11353 echo "${ECHO_T}$LIBICONV" >&6
11355 CPPFLAGS
="$am_save_CPPFLAGS"
11362 if test "$am_cv_func_iconv" = yes; then
11363 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11364 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11365 if test "${am_cv_proto_iconv+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 #include <stdlib.h>
11382 #if defined(__STDC__) || defined(__cplusplus)
11383 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11396 rm -f conftest.
$ac_objext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11398 (eval $ac_compile) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try
='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try
='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 am_cv_proto_iconv_arg1
=""
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.
$ac_ext >&5
11423 am_cv_proto_iconv_arg1
="const"
11425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11426 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);"
11429 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11430 echo "$as_me:$LINENO: result: ${ac_t:-
11431 }$am_cv_proto_iconv" >&5
11432 echo "${ECHO_T}${ac_t:-
11433 }$am_cv_proto_iconv" >&6
11435 cat >>confdefs.h
<<_ACEOF
11436 #define ICONV_CONST $am_cv_proto_iconv_arg1
11441 # Until we have in-tree GNU iconv:
11446 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11447 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11448 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.
$ac_ext <<_ACEOF
11454 cat confdefs.h
>>conftest.
$ac_ext
11455 cat >>conftest.
$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #include <locale.h>
11466 rm -f conftest.
$ac_objext conftest
$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>conftest.er1
11470 grep -v '^ *+' conftest.er1
>conftest.err
11472 cat conftest.err
>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try
='test -z "$ac_c_werror_flag"
11476 || test ! -s conftest.err'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try
='test -s conftest$ac_exeext'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 am_cv_val_LC_MESSAGES
=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.
$ac_ext >&5
11493 am_cv_val_LC_MESSAGES
=no
11495 rm -f conftest.err conftest.
$ac_objext \
11496 conftest
$ac_exeext conftest.
$ac_ext
11498 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11499 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11500 if test $am_cv_val_LC_MESSAGES = yes; then
11502 cat >>confdefs.h
<<\_ACEOF
11503 #define HAVE_LC_MESSAGES 1
11510 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11511 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11512 if test "${am_cv_langinfo_codeset+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 #include <langinfo.h>
11525 char* cs = nl_langinfo(CODESET);
11530 rm -f conftest.
$ac_objext conftest
$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>conftest.er1
11534 grep -v '^ *+' conftest.er1
>conftest.err
11536 cat conftest.err
>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try
='test -z "$ac_c_werror_flag"
11540 || test ! -s conftest.err'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; } &&
11546 { ac_try
='test -s conftest$ac_exeext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 am_cv_langinfo_codeset
=yes
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.
$ac_ext >&5
11557 am_cv_langinfo_codeset
=no
11559 rm -f conftest.err conftest.
$ac_objext \
11560 conftest
$ac_exeext conftest.
$ac_ext
11563 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11564 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11565 if test $am_cv_langinfo_codeset = yes; then
11567 cat >>confdefs.h
<<\_ACEOF
11568 #define HAVE_LANGINFO_CODESET 1
11574 # We will need to find libiberty.h and ansidecl.h
11575 saved_CFLAGS
="$CFLAGS"
11576 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11616 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11617 strsignal strstr strverscmp \
11618 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11619 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
11621 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11622 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11623 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11624 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 cat >conftest.
$ac_ext <<_ACEOF
11630 cat confdefs.h
>>conftest.
$ac_ext
11631 cat >>conftest.
$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11634 #define $ac_tr_decl 1
11636 #include "ansidecl.h"
11637 #include "system.h"
11643 char *(*pfn) = (char *(*)) $ac_func ;
11649 rm -f conftest.
$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>conftest.er1
11653 grep -v '^ *+' conftest.er1
>conftest.err
11655 cat conftest.err
>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try
='test -z "$ac_c_werror_flag"
11659 || test ! -s conftest.err'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try
='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "gcc_cv_have_decl_$ac_func=yes"
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.
$ac_ext >&5
11676 eval "gcc_cv_have_decl_$ac_func=no"
11678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11681 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11682 echo "$as_me:$LINENO: result: yes" >&5
11683 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11684 #define $ac_tr_decl 1
11688 echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11690 #define $ac_tr_decl 0
11701 for ac_func
in getrlimit setrlimit getrusage
11703 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11704 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11705 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11706 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 cat >conftest.
$ac_ext <<_ACEOF
11712 cat confdefs.h
>>conftest.
$ac_ext
11713 cat >>conftest.
$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11716 #define $ac_tr_decl 1
11718 #include "ansidecl.h"
11719 #include "system.h"
11720 #ifdef HAVE_SYS_RESOURCE_H
11721 #include <sys/resource.h>
11729 char *(*pfn) = (char *(*)) $ac_func ;
11735 rm -f conftest.
$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1
>conftest.err
11741 cat conftest.err
>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try
='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try
='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 eval "gcc_cv_have_decl_$ac_func=yes"
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.
$ac_ext >&5
11762 eval "gcc_cv_have_decl_$ac_func=no"
11764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11767 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11768 echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11770 #define $ac_tr_decl 1
11774 echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11776 #define $ac_tr_decl 0
11784 cat >conftest.
$ac_ext <<_ACEOF
11787 cat confdefs.h
>>conftest.
$ac_ext
11788 cat >>conftest.
$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11791 #include "ansidecl.h"
11792 #include "system.h"
11793 #ifdef HAVE_SYS_RESOURCE_H
11794 #include <sys/resource.h>
11805 rm -f conftest.
$ac_objext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>conftest.er1
11809 grep -v '^ *+' conftest.er1
>conftest.err
11811 cat conftest.err
>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try
='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try
='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11833 cat >>confdefs.h
<<\_ACEOF
11834 #define rlim_t long
11838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11840 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11841 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11842 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11843 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11845 for ac_func
in ldgetname
11847 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11848 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11849 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11850 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.
$ac_ext <<_ACEOF
11856 cat confdefs.h
>>conftest.
$ac_ext
11857 cat >>conftest.
$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11860 #define $ac_tr_decl 1
11862 #include "ansidecl.h"
11863 #include "system.h"
11864 #ifdef HAVE_LDFCN_H
11875 char *(*pfn) = (char *(*)) $ac_func ;
11881 rm -f conftest.
$ac_objext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>conftest.er1
11885 grep -v '^ *+' conftest.er1
>conftest.err
11887 cat conftest.err
>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try
='test -z "$ac_c_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try
='test -s conftest.$ac_objext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "gcc_cv_have_decl_$ac_func=yes"
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.
$ac_ext >&5
11908 eval "gcc_cv_have_decl_$ac_func=no"
11910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11913 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11914 echo "$as_me:$LINENO: result: yes" >&5
11915 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11916 #define $ac_tr_decl 1
11920 echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11922 #define $ac_tr_decl 0
11931 for ac_func
in times
11933 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11934 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11935 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11936 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 cat >conftest.
$ac_ext <<_ACEOF
11942 cat confdefs.h
>>conftest.
$ac_ext
11943 cat >>conftest.
$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 #define $ac_tr_decl 1
11948 #include "ansidecl.h"
11949 #include "system.h"
11950 #ifdef HAVE_SYS_TIMES_H
11951 #include <sys/times.h>
11959 char *(*pfn) = (char *(*)) $ac_func ;
11965 rm -f conftest.
$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 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_objext'
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 eval "gcc_cv_have_decl_$ac_func=yes"
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.
$ac_ext >&5
11992 eval "gcc_cv_have_decl_$ac_func=no"
11994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11997 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11998 echo "$as_me:$LINENO: result: yes" >&5
11999 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12000 #define $ac_tr_decl 1
12004 echo "$as_me:$LINENO: result: no" >&5
12005 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12006 #define $ac_tr_decl 0
12015 for ac_func
in sigaltstack
12017 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12018 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12019 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12020 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >conftest.
$ac_ext <<_ACEOF
12026 cat confdefs.h
>>conftest.
$ac_ext
12027 cat >>conftest.
$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 #define $ac_tr_decl 1
12032 #include "ansidecl.h"
12033 #include "system.h"
12034 #include <signal.h>
12041 char *(*pfn) = (char *(*)) $ac_func ;
12047 rm -f conftest.
$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12051 grep -v '^ *+' conftest.er1
>conftest.err
12053 cat conftest.err
>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try
='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try
='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 eval "gcc_cv_have_decl_$ac_func=yes"
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.
$ac_ext >&5
12074 eval "gcc_cv_have_decl_$ac_func=no"
12076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12079 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12080 echo "$as_me:$LINENO: result: yes" >&5
12081 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12082 #define $ac_tr_decl 1
12086 echo "$as_me:$LINENO: result: no" >&5
12087 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12088 #define $ac_tr_decl 0
12096 # More time-related stuff.
12097 echo "$as_me:$LINENO: checking for struct tms" >&5
12098 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12099 if test "${ac_cv_struct_tms+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.
$ac_ext <<_ACEOF
12106 cat confdefs.h
>>conftest.
$ac_ext
12107 cat >>conftest.
$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12110 #include "ansidecl.h"
12111 #include "system.h"
12112 #ifdef HAVE_SYS_TIMES_H
12113 #include <sys/times.h>
12124 rm -f conftest.
$ac_objext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>conftest.er1
12128 grep -v '^ *+' conftest.er1
>conftest.err
12130 cat conftest.err
>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try
='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try
='test -s conftest.$ac_objext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_struct_tms
=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.
$ac_ext >&5
12151 ac_cv_struct_tms
=no
12153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12155 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12156 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12157 if test $ac_cv_struct_tms = yes; then
12159 cat >>confdefs.h
<<\_ACEOF
12160 #define HAVE_STRUCT_TMS 1
12165 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12166 # revisit after autoconf 2.50.
12167 echo "$as_me:$LINENO: checking for clock_t" >&5
12168 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12169 if test "${gcc_cv_type_clock_t+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 #include "ansidecl.h"
12181 #include "system.h"
12191 rm -f conftest.
$ac_objext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12193 (eval $ac_compile) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1
>conftest.err
12197 cat conftest.err
>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try
='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try
='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 gcc_cv_type_clock_t
=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.
$ac_ext >&5
12218 gcc_cv_type_clock_t
=no
12220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12222 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12223 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12224 if test $gcc_cv_type_clock_t = yes; then
12226 cat >>confdefs.h
<<\_ACEOF
12227 #define HAVE_CLOCK_T 1
12232 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12233 CFLAGS
="$saved_CFLAGS"
12235 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12236 if test "${enable_initfini_array+set}" = set; then
12237 enableval
="$enable_initfini_array"
12241 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12242 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12243 if test "${gcc_cv_initfini_array+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 if test "$cross_compiling" = yes; then
12247 gcc_cv_initfini_array
=no
12249 cat >conftest.
$ac_ext <<_ACEOF
12252 cat confdefs.h
>>conftest.
$ac_ext
12253 cat >>conftest.
$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12257 int main (void) { return x; }
12258 int foo (void) { x = 0; }
12259 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12261 rm -f conftest
$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 gcc_cv_initfini_array
=yes
12274 echo "$as_me: program exited with status $ac_status" >&5
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 ( exit $ac_status )
12279 gcc_cv_initfini_array
=no
12281 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12284 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12285 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12286 enable_initfini_array
=$gcc_cv_initfini_array
12289 if test $enable_initfini_array = yes; then
12291 cat >>confdefs.h
<<\_ACEOF
12292 #define HAVE_INITFINI_ARRAY 1
12297 # mkdir takes a single argument on some systems.
12298 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12299 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12300 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 cat >conftest.
$ac_ext <<_ACEOF
12306 cat confdefs.h
>>conftest.
$ac_ext
12307 cat >>conftest.
$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12310 #include <sys/types.h>
12311 #ifdef HAVE_SYS_STAT_H
12312 # include <sys/stat.h>
12314 #ifdef HAVE_UNISTD_H
12315 # include <unistd.h>
12317 #ifdef HAVE_DIRECT_H
12318 # include <direct.h>
12328 rm -f conftest.
$ac_objext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330 (eval $ac_compile) 2>conftest.er1
12332 grep -v '^ *+' conftest.er1
>conftest.err
12334 cat conftest.err
>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try
='test -z "$ac_c_werror_flag"
12338 || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try
='test -s conftest.$ac_objext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 gcc_cv_mkdir_takes_one_arg
=no
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.
$ac_ext >&5
12355 gcc_cv_mkdir_takes_one_arg
=yes
12357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12359 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12360 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12361 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12363 cat >>confdefs.h
<<\_ACEOF
12364 #define MKDIR_TAKES_ONE_ARG 1
12376 # With Setjmp/Longjmp based exception handling.
12377 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12378 if test "${enable_sjlj_exceptions+set}" = set; then
12379 enableval
="$enable_sjlj_exceptions"
12382 if test $enableval != yes; then
12383 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12384 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12389 force_sjlj_exceptions
=yes
12393 force_sjlj_exceptions
=yes
12397 force_sjlj_exceptions
=no
12401 if test $force_sjlj_exceptions = yes; then
12402 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12404 cat >>confdefs.h
<<_ACEOF
12405 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12410 # For platforms with the unwind ABI which includes an unwind library,
12411 # libunwind, we can choose to use the system libunwind.
12413 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12414 if test "${with_system_libunwind+set}" = set; then
12415 withval
="$with_system_libunwind"
12419 # config.gcc also contains tests of with_system_libunwind.
12420 if test x
$with_system_libunwind = xyes
; then
12422 cat >>confdefs.h
<<\_ACEOF
12423 #define HAVE_GETIPINFO 1
12428 # --------------------------------------------------------
12429 # Build, host, and target specific configuration fragments
12430 # --------------------------------------------------------
12432 # Collect build-machine-specific information.
12433 .
${srcdir}/config.build
12435 # Collect host-machine-specific information.
12436 .
${srcdir}/config.
host
12440 # Collect target-machine-specific information.
12441 .
${srcdir}/config.gcc
12443 extra_objs
="${host_extra_objs} ${extra_objs}"
12444 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12446 # Default the target-machine variables that were not explicitly set.
12447 if test x
"$tm_file" = x
12448 then tm_file
=$cpu_type/$cpu_type.h
; fi
12450 if test x
"$extra_headers" = x
12451 then extra_headers
=; fi
12453 if test x
$md_file = x
12454 then md_file
=$cpu_type/$cpu_type.md
; fi
12456 if test x
$out_file = x
12457 then out_file
=$cpu_type/$cpu_type.c
; fi
12459 if test x
"$tmake_file" = x
12460 then tmake_file
=$cpu_type/t-
$cpu_type
12463 if test x
"$dwarf2" = xyes
12464 then tm_file
="$tm_file tm-dwarf2.h"
12467 # Say what files are being used for the output code and MD file.
12468 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12469 echo "Using \`$srcdir/config/$md_file' as machine description file."
12471 # If any of the xm_file variables contain nonexistent files, warn
12472 # about them and drop them.
12475 for x
in $build_xm_file; do
12476 if test -f $srcdir/config
/$x
12478 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12479 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12482 build_xm_file
="$bx"
12485 for x
in $host_xm_file; do
12486 if test -f $srcdir/config
/$x
12488 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12489 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12495 for x
in $xm_file; do
12496 if test -f $srcdir/config
/$x
12498 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12499 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12505 for f
in $tm_file; do
12508 if test $count = ax
; then
12509 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12511 echo "Using the following target machine macro files:"
12512 for f
in $tm_file; do
12513 echo " $srcdir/config/$f"
12517 if test x
$need_64bit_hwint = xyes
; then
12519 cat >>confdefs.h
<<\_ACEOF
12520 #define NEED_64BIT_HOST_WIDE_INT 1
12525 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12527 cat >>confdefs.h
<<\_ACEOF
12528 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12534 for f
in $host_xm_file; do
12537 if test $count = a
; then
12539 elif test $count = ax
; then
12540 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12542 echo "Using the following host machine macro files:"
12543 for f
in $host_xm_file; do
12544 echo " $srcdir/config/$f"
12547 echo "Using ${out_host_hook_obj} for host machine hooks."
12549 if test "$host_xm_file" != "$build_xm_file"; then
12551 for f
in $build_xm_file; do
12554 if test $count = a
; then
12556 elif test $count = ax
; then
12557 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12559 echo "Using the following build machine macro files:"
12560 for f
in $build_xm_file; do
12561 echo " $srcdir/config/$f"
12567 powerpc
*-*-darwin*)
12568 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12569 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12570 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 cat >conftest.
$ac_ext <<_ACEOF
12575 #include <sys/cdefs.h>
12576 #include <sys/signal.h>
12577 #include <ucontext.h>
12578 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12581 rm -f conftest.
$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>conftest.er1
12585 grep -v '^ *+' conftest.er1
>conftest.err
12587 cat conftest.err
>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try
='test -z "$ac_c_werror_flag"
12591 || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try
='test -s conftest.$ac_objext'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 gcc_cv_mcontext_underscores
=no
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.
$ac_ext >&5
12608 gcc_cv_mcontext_underscores
=yes
12610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12612 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12613 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12614 if test $gcc_cv_mcontext_underscores = yes; then
12616 cat >>confdefs.h
<<\_ACEOF
12617 #define HAS_MCONTEXT_T_UNDERSCORES
12628 # Check if a valid thread package
12629 case ${enable_threads} in
12632 target_thread_file
='single'
12636 target_thread_file
='single'
12638 aix | dce | gnat | irix | posix | posix95 | rtems | \
12639 single | solaris | vxworks | win32 | mipssde
)
12640 target_thread_file
=${enable_threads}
12643 echo "${enable_threads} is an unknown thread package" 1>&2
12648 if test x
${thread_file} = x
; then
12649 # No thread file set by target-specific clauses in config.gcc,
12650 # so use file chosen by default logic above
12651 thread_file
=${target_thread_file}
12654 # Make gthr-default.h if we have a thread file.
12656 if test $thread_file != single
; then
12657 rm -f gthr-default.h
12658 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12659 gthread_flags
=-DHAVE_GTHR_DEFAULT
12668 if test x
$enable___cxa_atexit = xyes || \
12669 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12670 if test x
$host = x
$target; then
12672 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12673 # keyed to flag_use_cxa_atexit
12678 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12679 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12680 if test "${ac_cv_func___cxa_atexit+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. */
12689 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12691 #define __cxa_atexit innocuous___cxa_atexit
12693 /* System header to define __stub macros and hopefully few prototypes,
12694 which can conflict with char __cxa_atexit (); below.
12695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696 <limits.h> exists even on freestanding compilers. */
12699 # include <limits.h>
12701 # include <assert.h>
12704 #undef __cxa_atexit
12706 /* Override any gcc2 internal prototype to avoid an error. */
12711 /* We use char because int might match the return type of a gcc2
12712 builtin and then its argument prototype would still apply. */
12713 char __cxa_atexit ();
12714 /* The GNU C library defines this for functions which it implements
12715 to always fail with ENOSYS. Some functions are actually named
12716 something starting with __ and the normal name is an alias. */
12717 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12720 char (*f) () = __cxa_atexit;
12729 return f != __cxa_atexit;
12734 rm -f conftest.
$ac_objext conftest
$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736 (eval $ac_link) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try
='test -z "$ac_c_werror_flag"
12744 || test ! -s conftest.err'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try
='test -s conftest$ac_exeext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_func___cxa_atexit
=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.
$ac_ext >&5
12761 ac_cv_func___cxa_atexit
=no
12763 rm -f conftest.err conftest.
$ac_objext \
12764 conftest
$ac_exeext conftest.
$ac_ext
12766 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12767 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12768 if test $ac_cv_func___cxa_atexit = yes; then
12771 echo "__cxa_atexit can't be enabled on this target"
12777 # We can't check for __cxa_atexit when building a cross, so assume
12781 if test x
$use_cxa_atexit = xyes
; then
12783 cat >>confdefs.h
<<\_ACEOF
12784 #define DEFAULT_USE_CXA_ATEXIT 2
12791 if test x
$with_system_libunwind = xyes
; then
12792 if test x
$host = x
$target; then
12793 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12794 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12795 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 ac_func_search_save_LIBS
=$LIBS
12799 ac_cv_search__Unwind_GetIPInfo
=no
12800 cat >conftest.
$ac_ext <<_ACEOF
12803 cat confdefs.h
>>conftest.
$ac_ext
12804 cat >>conftest.
$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12807 /* Override any gcc2 internal prototype to avoid an error. */
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12813 char _Unwind_GetIPInfo ();
12817 _Unwind_GetIPInfo ();
12822 rm -f conftest.
$ac_objext conftest
$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12826 grep -v '^ *+' conftest.er1
>conftest.err
12828 cat conftest.err
>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try
='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try
='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 ac_cv_search__Unwind_GetIPInfo
="none required"
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.
$ac_ext >&5
12850 rm -f conftest.err conftest.
$ac_objext \
12851 conftest
$ac_exeext conftest.
$ac_ext
12852 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12853 for ac_lib
in unwind
; do
12854 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12855 cat >conftest.
$ac_ext <<_ACEOF
12858 cat confdefs.h
>>conftest.
$ac_ext
12859 cat >>conftest.
$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12862 /* Override any gcc2 internal prototype to avoid an error. */
12866 /* We use char because int might match the return type of a gcc2
12867 builtin and then its argument prototype would still apply. */
12868 char _Unwind_GetIPInfo ();
12872 _Unwind_GetIPInfo ();
12877 rm -f conftest.
$ac_objext conftest
$ac_exeext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12881 grep -v '^ *+' conftest.er1
>conftest.err
12883 cat conftest.err
>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try
='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.
$ac_ext >&5
12906 rm -f conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12910 LIBS
=$ac_func_search_save_LIBS
12912 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12913 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12914 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12915 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12924 if test x
$use_getipinfo = xyes
; then
12926 cat >>confdefs.h
<<\_ACEOF
12927 #define HAVE_GETIPINFO 1
12931 echo "The system unwind library does not support _Unwind_GetIPInfo."
12934 # Look for a file containing extra machine modes.
12935 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12936 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12939 cat >>confdefs.h
<<_ACEOF
12940 #define EXTRA_MODES_FILE "config/$extra_modes"
12945 # Convert extra_options into a form suitable for Makefile use.
12947 for f
in $extra_options; do
12948 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12952 # auto-host.h is the file containing items generated by autoconf and is
12953 # the first file included by config.h.
12954 # If host=build, it is correct to have bconfig include auto-host.h
12955 # as well. If host!=build, we are in error and need to do more
12956 # work to find out the build config parameters.
12957 if test x
$host = x
$build
12959 build_auto
=auto-host.h
12961 # We create a subdir, then run autoconf in the subdir.
12962 # To prevent recursion we set host and build for the new
12963 # invocation of configure to the build for this invocation
12970 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12971 *) realsrcdir
=..
/${srcdir};;
12973 saved_CFLAGS
="${CFLAGS}"
12974 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12975 ${realsrcdir}/configure \
12976 --enable-languages=${enable_languages-all} \
12977 --target=$target_alias --host=$build_alias --build=$build_alias
12978 CFLAGS
="${saved_CFLAGS}"
12980 # We just finished tests for the build machine, so rename
12981 # the file auto-build.h in the gcc directory.
12982 mv auto-host.h ..
/auto-build.h
12985 build_auto
=auto-build.h
12989 tm_file
="${tm_file} defaults.h"
12990 tm_p_file
="${tm_p_file} tm-preds.h"
12991 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12992 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12993 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12994 # put this back in temporarily.
12995 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13001 # Compile in configure arguments.
13002 if test -f configargs.h
; then
13003 # Being re-configured.
13004 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13005 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13007 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13010 # Double all backslashes and backslash all quotes to turn
13011 # gcc_config_arguments into a C string.
13012 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13013 $gcc_config_arguments
13015 gcc_config_arguments_str
=`cat conftest.out`
13018 cat > configargs.h
<<EOF
13019 /* Generated automatically. */
13020 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13021 static const char thread_model[] = "$thread_file";
13023 static const struct {
13024 const char *name, *value;
13025 } configure_default_options[] = $configure_default_options;
13028 # Internationalization
13029 # If we haven't got the data from the intl directory,
13030 # assume NLS is disabled.
13039 if test -f ..
/intl
/config.intl
; then
13040 . ..
/intl
/config.intl
13042 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13043 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13044 if test x
"$USE_NLS" != xyes
; then
13045 echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6
13048 echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6
13051 cat >>confdefs.h
<<\_ACEOF
13052 #define ENABLE_NLS 1
13056 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13057 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13058 # Look for .po and .gmo files in the source directory.
13061 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13062 # If there aren't any .gmo files the shell will give us the
13063 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13065 case "$cat" in *\
**)
13068 # The quadruple backslash is collapsed to a double backslash
13069 # by the backticks, then collapsed again by the double quotes,
13070 # leaving us with one backslash in the sed expression (right
13071 # before the dot that mustn't act as a wildcard).
13072 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13073 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13074 # The user is allowed to set LINGUAS to a list of languages to
13075 # install catalogs for. If it's empty that means "all of them."
13076 if test "x$LINGUAS" = x
; then
13077 CATALOGS
="$CATALOGS $cat"
13078 XLINGUAS
="$XLINGUAS $lang"
13080 case "$LINGUAS" in *$lang*)
13081 CATALOGS
="$CATALOGS $cat"
13082 XLINGUAS
="$XLINGUAS $lang"
13087 LINGUAS
="$XLINGUAS"
13088 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13089 echo "${ECHO_T}$LINGUAS" >&6
13102 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13103 # -liconv on the link line twice.
13104 case "$LIBINTL" in *$LIBICONV*)
13108 # Check whether --enable-secureplt or --disable-secureplt was given.
13109 if test "${enable_secureplt+set}" = set; then
13110 enableval
="$enable_secureplt"
13114 # Check whether --enable-cld or --disable-cld was given.
13115 if test "${enable_cld+set}" = set; then
13116 enableval
="$enable_cld"
13122 # Windows32 Registry support for specifying GCC installation paths.
13123 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13124 if test "${enable_win32_registry+set}" = set; then
13125 enableval
="$enable_win32_registry"
13130 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13131 if test "x$enable_win32_registry" != xno
; then
13132 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13133 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13134 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_func_search_save_LIBS
=$LIBS
13138 ac_cv_search_RegOpenKeyExA
=no
13139 cat >conftest.
$ac_ext <<_ACEOF
13142 cat confdefs.h
>>conftest.
$ac_ext
13143 cat >>conftest.
$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char RegOpenKeyExA ();
13161 rm -f conftest.
$ac_objext conftest
$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>conftest.er1
13165 grep -v '^ *+' conftest.er1
>conftest.err
13167 cat conftest.err
>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try
='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try
='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_search_RegOpenKeyExA
="none required"
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.
$ac_ext >&5
13189 rm -f conftest.err conftest.
$ac_objext \
13190 conftest
$ac_exeext conftest.
$ac_ext
13191 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13192 for ac_lib
in advapi32
; do
13193 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13194 cat >conftest.
$ac_ext <<_ACEOF
13197 cat confdefs.h
>>conftest.
$ac_ext
13198 cat >>conftest.
$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any gcc2 internal prototype to avoid an error. */
13205 /* We use char because int might match the return type of a gcc2
13206 builtin and then its argument prototype would still apply. */
13207 char RegOpenKeyExA ();
13216 rm -f conftest.
$ac_objext conftest
$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1
>conftest.err
13222 cat conftest.err
>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try
='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try
='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.
$ac_ext >&5
13245 rm -f conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13249 LIBS
=$ac_func_search_save_LIBS
13251 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13252 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13253 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13254 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13257 enable_win32_registry
=no
13262 if test "x$enable_win32_registry" != xno
; then
13264 cat >>confdefs.h
<<\_ACEOF
13265 #define ENABLE_WIN32_REGISTRY 1
13269 if test "x$enable_win32_registry" != xyes \
13270 && test "x$enable_win32_registry" != x
; then
13272 cat >>confdefs.h
<<_ACEOF
13273 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13281 # Get an absolute path to the GCC top-level source directory
13282 holddir
=`${PWDCMD-pwd}`
13284 topdir
=`${PWDCMD-pwd}`
13287 # Conditionalize the makefile for this host machine.
13289 for f
in ${host_xmake_file}
13291 if test -f ${srcdir}/config
/$f
13293 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13297 # Conditionalize the makefile for this target machine.
13299 for f
in ${tmake_file}
13301 if test -f ${srcdir}/config
/$f
13303 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13306 tmake_file
="${tmake_file_}"
13308 # This is a terrible hack which will go away some day.
13309 host_cc_for_libada
=${CC}
13312 out_object_file
=`basename $out_file .c`.o
13314 tm_file_list
="options.h"
13315 tm_include_list
="options.h"
13316 for f
in $tm_file; do
13319 f
=`echo $f | sed 's/^..//'`
13320 tm_file_list
="${tm_file_list} $f"
13321 tm_include_list
="${tm_include_list} $f"
13324 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13325 tm_include_list
="${tm_include_list} $f"
13328 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13329 tm_include_list
="${tm_include_list} config/$f"
13336 for f
in $tm_p_file; do
13339 tm_p_file_list
="${tm_p_file_list} $f"
13340 tm_p_include_list
="${tm_p_include_list} $f"
13343 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13344 tm_p_include_list
="${tm_p_include_list} config/$f"
13350 for f
in $xm_file; do
13353 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13354 xm_include_list
="${xm_include_list} $f"
13357 xm_file_list
="${xm_file_list} $f"
13358 xm_include_list
="${xm_include_list} $f"
13361 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13362 xm_include_list
="${xm_include_list} config/$f"
13368 host_xm_include_list
=
13369 for f
in $host_xm_file; do
13372 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13373 host_xm_include_list
="${host_xm_include_list} $f"
13376 host_xm_file_list
="${host_xm_file_list} $f"
13377 host_xm_include_list
="${host_xm_include_list} $f"
13380 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13381 host_xm_include_list
="${host_xm_include_list} config/$f"
13386 build_xm_file_list
=
13387 for f
in $build_xm_file; do
13390 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13391 build_xm_include_list
="${build_xm_include_list} $f"
13393 auto-build.h | auto-host.h
)
13394 build_xm_file_list
="${build_xm_file_list} $f"
13395 build_xm_include_list
="${build_xm_include_list} $f"
13398 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13399 build_xm_include_list
="${build_xm_include_list} config/$f"
13404 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13405 # cross-compiler which does not use the native headers and libraries.
13406 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13409 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13411 if test "x$with_build_sysroot" != x
; then
13412 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13414 # This value is used, even on a native system, because
13415 # CROSS_SYSTEM_HEADER_DIR is just
13416 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13417 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13420 if test x
$host != x
$target
13422 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13424 SYSTEM_HEADER_DIR
=$build_system_header_dir
13425 case "$host","$target" in
13426 # Darwin crosses can use the host system's libraries and headers,
13427 # because of the fat library support. Of course, it must be the
13428 # same version of Darwin on both sides. Allow the user to
13429 # just say --target=foo-darwin without a version number to mean
13430 # "the version on this system".
13431 *-*-darwin*,*-*-darwin*)
13432 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13433 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13434 if test $hostos = $targetos -o $targetos = darwin
; then
13436 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13441 i?
86-*-*,x86_64-
*-* \
13442 | powerpc
*-*-*,powerpc64
*-*-*)
13443 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13445 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13446 SYSTEM_HEADER_DIR
=$build_system_header_dir
13449 # If this is a cross-compiler that does not
13450 # have its own set of headers then define
13453 # If this is using newlib, without having the headers available now,
13454 # then define inhibit_libc in LIBGCC2_CFLAGS.
13455 # This prevents libgcc2 from containing any code which requires libc
13458 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13459 test x
$with_newlib = xyes
; } &&
13460 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13465 # When building gcc with a cross-compiler, we need to adjust things so
13466 # that the generator programs are still built with the native compiler.
13467 # Also, we cannot run fixincludes or fix-header.
13469 # These are the normal (build=host) settings:
13470 CC_FOR_BUILD
='$(CC)'
13471 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13472 STMP_FIXINC
=stmp-fixinc
13474 # Possibly disable fixproto, on a per-target basis.
13475 case ${use_fixproto} in
13480 STMP_FIXPROTO
=stmp-fixproto
13485 # And these apply if build != host, or we are generating coverage data
13486 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13488 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13490 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13491 if test "x$STMP_FIXPROTO" != x
; then
13492 STMP_FIXPROTO
=stmp-install-fixproto
13497 # Expand extra_headers to include complete path.
13498 # This substitutes for lots of t-* files.
13499 extra_headers_list
=
13500 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13501 for file in ${extra_headers} ; do
13502 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13505 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13506 if test x
"$use_gcc_tgmath" = xyes
13507 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13510 # Define collect2 in Makefile.
13511 case $host_can_use_collect2 in
13513 *) collect2
='collect2$(exeext)' ;;
13517 # Add a definition of USE_COLLECT2 if system wants one.
13518 case $use_collect2 in
13519 no
) use_collect2
= ;;
13522 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13523 xm_defines
="${xm_defines} USE_COLLECT2"
13524 case $host_can_use_collect2 in
13526 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13527 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13528 { (exit 1); exit 1; }; }
13534 # ---------------------------
13535 # Assembler & linker features
13536 # ---------------------------
13538 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13539 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13540 # However when ld-new is first executed from the build tree, libtool will
13541 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13542 # to the build tree. While doing this we need to use the previous-stage
13543 # linker, or we have an infinite loop. The presence of a shell script as
13544 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13545 # the gcc/collect-ld script. So we need to know how libtool works, or
13546 # exec-tool will fail.
13551 macro_version
='2.1a'
13552 macro_revision
='1.2435'
13565 ltmain
="$ac_aux_dir/ltmain.sh"
13572 enable_win32_dll
=no
13575 # Check whether --enable-shared or --disable-shared was given.
13576 if test "${enable_shared+set}" = set; then
13577 enableval
="$enable_shared"
13578 p
=${PACKAGE-default}
13580 yes) enable_shared
=yes ;;
13581 no
) enable_shared
=no
;;
13584 # Look at the argument we got. We use all the common list separators.
13585 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
13586 for pkg
in $enableval; do
13588 if test "X$pkg" = "X$p"; then
13606 # Check whether --enable-static or --disable-static was given.
13607 if test "${enable_static+set}" = set; then
13608 enableval
="$enable_static"
13609 p
=${PACKAGE-default}
13611 yes) enable_static
=yes ;;
13612 no
) enable_static
=no
;;
13615 # Look at the argument we got. We use all the common list separators.
13616 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
13617 for pkg
in $enableval; do
13619 if test "X$pkg" = "X$p"; then
13638 # Check whether --with-pic or --without-pic was given.
13639 if test "${with_pic+set}" = set; then
13640 withval
="$with_pic"
13641 pic_mode
="$withval"
13646 test -z "$pic_mode" && pic_mode
=default
13654 # Check whether --enable-fast-install or --disable-fast-install was given.
13655 if test "${enable_fast_install+set}" = set; then
13656 enableval
="$enable_fast_install"
13657 p
=${PACKAGE-default}
13659 yes) enable_fast_install
=yes ;;
13660 no
) enable_fast_install
=no
;;
13662 enable_fast_install
=no
13663 # Look at the argument we got. We use all the common list separators.
13664 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
13665 for pkg
in $enableval; do
13667 if test "X$pkg" = "X$p"; then
13668 enable_fast_install
=yes
13675 enable_fast_install
=yes
13685 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13686 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13687 if test "${lt_cv_path_SED+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 # Loop through the user's path and test for sed and gsed.
13691 # Then use that list of sed's as ones to test for truncation.
13692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13693 for as_dir
in $PATH
13696 test -z "$as_dir" && as_dir
=.
13697 for lt_ac_prog
in sed gsed
; do
13698 for ac_exec_ext
in '' $ac_executable_extensions; do
13699 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13700 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13708 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13709 # along with /bin/sed that truncates output.
13710 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
13711 test ! -f $lt_ac_sed && continue
13712 cat /dev
/null
> conftest.
in
13714 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
13715 # Check for GNU sed and select it if it is found.
13716 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
13717 lt_cv_path_SED
=$lt_ac_sed
13721 cat conftest.
in conftest.
in >conftest.tmp
13722 mv conftest.tmp conftest.
in
13723 cp conftest.
in conftest.
nl
13725 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
13726 cmp -s conftest.out conftest.
nl ||
break
13727 # 10000 chars as input seems more than enough
13728 test $lt_ac_count -gt 10 && break
13729 lt_ac_count
=`expr $lt_ac_count + 1`
13730 if test $lt_ac_count -gt $lt_ac_max; then
13731 lt_ac_max
=$lt_ac_count
13732 lt_cv_path_SED
=$lt_ac_sed
13739 SED
=$lt_cv_path_SED
13741 echo "$as_me:$LINENO: result: $SED" >&5
13742 echo "${ECHO_T}$SED" >&6
13744 test -z "$SED" && SED
=sed
13745 Xsed
="$SED -e 1s/^X//"
13757 echo "$as_me:$LINENO: checking for fgrep" >&5
13758 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
13759 if test "${ac_cv_prog_fgrep+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
13763 then ac_cv_prog_fgrep
='grep -F'
13764 else ac_cv_prog_fgrep
='fgrep'
13767 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
13768 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
13769 FGREP
=$ac_cv_prog_fgrep
13772 test -z "$GREP" && GREP
=grep
13792 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13793 if test "${with_gnu_ld+set}" = set; then
13794 withval
="$with_gnu_ld"
13795 test "$withval" = no || with_gnu_ld
=yes
13800 if test "$GCC" = yes; then
13801 # Check if gcc -print-prog-name=ld gives a path.
13802 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13803 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13806 # gcc leaves a trailing carriage return which upsets mingw
13807 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13809 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13812 # Accept absolute paths.
13814 re_direlt
='/[^/][^/]*/\.\./'
13815 # Canonicalize the pathname of ld
13816 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13817 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13818 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13820 test -z "$LD" && LD
="$ac_prog"
13823 # If it fails, then pretend we aren't using GCC.
13827 # If it is relative, then search for the first ld in PATH.
13828 with_gnu_ld
=unknown
13831 elif test "$with_gnu_ld" = yes; then
13832 echo "$as_me:$LINENO: checking for GNU ld" >&5
13833 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13835 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13836 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13838 if test "${lt_cv_path_LD+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 if test -z "$LD"; then
13842 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13843 for ac_dir
in $PATH; do
13845 test -z "$ac_dir" && ac_dir
=.
13846 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13847 lt_cv_path_LD
="$ac_dir/$ac_prog"
13848 # Check to see if the program is GNU ld. I'd rather use --version,
13849 # but apparently some variants of GNU ld only accept -v.
13850 # Break only if it was the GNU/non-GNU ld that we prefer.
13851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13852 *GNU
* |
*'with BFD'*)
13853 test "$with_gnu_ld" != no
&& break
13856 test "$with_gnu_ld" != yes && break
13863 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13867 LD
="$lt_cv_path_LD"
13868 if test -n "$LD"; then
13869 echo "$as_me:$LINENO: result: $LD" >&5
13870 echo "${ECHO_T}$LD" >&6
13872 echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6
13875 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13876 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13877 { (exit 1); exit 1; }; }
13878 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13879 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13880 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13884 case `$LD -v 2>&1 </dev/null` in
13885 *GNU
* |
*'with BFD'*)
13886 lt_cv_prog_gnu_ld
=yes
13889 lt_cv_prog_gnu_ld
=no
13893 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13894 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13895 with_gnu_ld
=$lt_cv_prog_gnu_ld
13906 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
13907 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
13908 if test "${lt_cv_path_NM+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 if test -n "$NM"; then
13912 # Let the user override the test.
13913 lt_cv_path_NM
="$NM"
13915 lt_nm_to_check
="${ac_tool_prefix}nm"
13916 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13917 lt_nm_to_check
="$lt_nm_to_check nm"
13919 for lt_tmp_nm
in $lt_nm_to_check; do
13920 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13921 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13923 test -z "$ac_dir" && ac_dir
=.
13924 tmp_nm
="$ac_dir/$lt_tmp_nm"
13925 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13926 # Check to see if the nm accepts a BSD-compat flag.
13927 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13928 # nm: unknown option "B" ignored
13929 # Tru64's nm complains that /dev/null is an invalid object file
13930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13931 */dev
/null
* |
*'Invalid file or object type'*)
13932 lt_cv_path_NM
="$tmp_nm -B"
13936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13938 lt_cv_path_NM
="$tmp_nm -p"
13942 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13943 continue # so that we can try to find one that supports BSD flags
13952 : ${lt_cv_path_NM=no}
13955 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13956 echo "${ECHO_T}$lt_cv_path_NM" >&6
13957 if test "$lt_cv_path_NM" != "no"; then
13958 NM
="$lt_cv_path_NM"
13960 # Didn't find any BSD compatible name lister, look for dumpbin.
13961 if test -n "$ac_tool_prefix"; then
13962 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
13964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13965 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13966 echo "$as_me:$LINENO: checking for $ac_word" >&5
13967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13968 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 if test -n "$DUMPBIN"; then
13972 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13975 for as_dir
in $PATH
13978 test -z "$as_dir" && as_dir
=.
13979 for ac_exec_ext
in '' $ac_executable_extensions; do
13980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 DUMPBIN
=$ac_cv_prog_DUMPBIN
13991 if test -n "$DUMPBIN"; then
13992 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
13993 echo "${ECHO_T}$DUMPBIN" >&6
13995 echo "$as_me:$LINENO: result: no" >&5
13996 echo "${ECHO_T}no" >&6
13999 test -n "$DUMPBIN" && break
14002 if test -z "$DUMPBIN"; then
14003 ac_ct_DUMPBIN
=$DUMPBIN
14004 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14006 # Extract the first word of "$ac_prog", so it can be a program name with args.
14007 set dummy
$ac_prog; ac_word
=$2
14008 echo "$as_me:$LINENO: checking for $ac_word" >&5
14009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14010 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 if test -n "$ac_ct_DUMPBIN"; then
14014 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14017 for as_dir
in $PATH
14020 test -z "$as_dir" && as_dir
=.
14021 for ac_exec_ext
in '' $ac_executable_extensions; do
14022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14023 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14033 if test -n "$ac_ct_DUMPBIN"; then
14034 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14035 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14037 echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6
14041 test -n "$ac_ct_DUMPBIN" && break
14043 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14045 DUMPBIN
=$ac_ct_DUMPBIN
14049 if test "$DUMPBIN" != ":"; then
14053 test -z "$NM" && NM
=nm
14060 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14061 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14062 if test "${lt_cv_nm_interface+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 lt_cv_nm_interface
="BSD nm"
14066 echo "int some_variable = 0;" > conftest.
$ac_ext
14067 (eval echo "\"\$as_me:14067: $ac_compile\"" >&5)
14068 (eval "$ac_compile" 2>conftest.err
)
14069 cat conftest.err
>&5
14070 (eval echo "\"\$as_me:14070: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14071 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14072 cat conftest.err
>&5
14073 (eval echo "\"\$as_me:14073: output\"" >&5)
14074 cat conftest.out
>&5
14075 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14076 lt_cv_nm_interface
="MS dumpbin"
14080 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14081 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14083 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14084 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14086 if test "$LN_S" = "ln -s"; then
14087 echo "$as_me:$LINENO: result: yes" >&5
14088 echo "${ECHO_T}yes" >&6
14090 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14091 echo "${ECHO_T}no, using $LN_S" >&6
14094 # find the maximum length of command line arguments
14095 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14096 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14097 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 # On DJGPP, this test can blow up pretty badly due to problems in libc
14106 # (any single argument exceeding 2000 bytes causes a buffer overrun
14107 # during glob expansion). Even if it were fixed, the result of this
14108 # check would be larger than it should be.
14109 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14113 # Under GNU Hurd, this test is not required because there is
14114 # no limit to the length of command line arguments.
14115 # Libtool will interpret -1 as no limit whatsoever
14116 lt_cv_sys_max_cmd_len
=-1;
14120 # On Win9x/ME, this test blows up -- it succeeds, but takes
14121 # about 5 minutes as the teststring grows exponentially.
14122 # Worse, since 9x/ME are not pre-emptively multitasking,
14123 # you end up with a "frozen" computer, even though with patience
14124 # the test eventually succeeds (with a max line length of 256k).
14125 # Instead, let's just punt: use the minimum linelength reported by
14126 # all of the supported platforms: 8192 (on NT/2K/XP).
14127 lt_cv_sys_max_cmd_len
=8192;
14131 # On AmigaOS with pdksh, this test takes hours, literally.
14132 # So we just punt and use a minimum line length of 8192.
14133 lt_cv_sys_max_cmd_len
=8192;
14136 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14137 # This has been around since 386BSD, at least. Likely further.
14138 if test -x /sbin
/sysctl
; then
14139 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14140 elif test -x /usr
/sbin
/sysctl
; then
14141 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14143 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14145 # And add a safety zone
14146 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14147 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14152 lt_cv_sys_max_cmd_len
=196608
14156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14158 # nice to cause kernel panics so lets avoid the loop below.
14159 # First set a reasonable default.
14160 lt_cv_sys_max_cmd_len
=16384
14162 if test -x /sbin
/sysconfig
; then
14163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14164 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14169 lt_cv_sys_max_cmd_len
=102400
14171 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14172 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14173 if test -n "$kargmax"; then
14174 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14176 lt_cv_sys_max_cmd_len
=32768
14180 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
14181 if test -n $lt_cv_sys_max_cmd_len; then
14182 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14183 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14185 # Make teststring a little bigger before we do anything with it.
14186 # a 1K string should be a reasonable start.
14187 for i
in 1 2 3 4 5 6 7 8 ; do
14188 teststring
=$teststring$teststring
14190 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14191 # If test is not a shell built-in, we'll probably end up computing a
14192 # maximum length that is only half of the actual maximum length, but
14194 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14195 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14196 test $i != 17 # 1/2 MB should be enough
14199 teststring
=$teststring$teststring
14201 # Only check the string length outside the loop.
14202 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14204 # Add a significant safety factor because C++ compilers can tack on
14205 # massive amounts of additional arguments before passing them to the
14206 # linker. It appears as though 1/2 is a usable value.
14207 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14214 if test -n $lt_cv_sys_max_cmd_len ; then
14215 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14216 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14218 echo "$as_me:$LINENO: result: none" >&5
14219 echo "${ECHO_T}none" >&6
14221 max_cmd_len
=$lt_cv_sys_max_cmd_len
14233 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14234 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14235 # Try some XSI features
14237 ( _lt_dummy
="a/b/c"
14238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14239 = c,a/b,, ) >/dev/null 2>&1 \
14241 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14242 echo "${ECHO_T}$xsi_shell" >&6
14245 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14246 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14248 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14250 && lt_shell_append=yes
14251 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14252 echo "${ECHO_T}$lt_shell_append" >&6
14255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14265 # test EBCDIC or ASCII
14266 case `echo X|tr X '\101'` in
14267 A) # ASCII based system
14268 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14269 lt_SP2NL='tr \040 \012'
14270 lt_NL2SP='tr \015\012 \040\040'
14272 *) # EBCDIC based system
14273 lt_SP2NL='tr \100 \n'
14274 lt_NL2SP='tr \r\n \100\100'
14286 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14287 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14288 if test "${lt_cv_ld_reload_flag+set}" = set; then
14289 echo $ECHO_N "(cached
) $ECHO_C" >&6
14291 lt_cv_ld_reload_flag='-r'
14293 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14294 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14295 reload_flag=$lt_cv_ld_reload_flag
14296 case $reload_flag in
14298 *) reload_flag=" $reload_flag" ;;
14300 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14303 if test "$GCC" = yes; then
14304 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14320 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14321 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14322 if test "${lt_cv_deplibs_check_method+set}" = set; then
14323 echo $ECHO_N "(cached
) $ECHO_C" >&6
14325 lt_cv_file_magic_cmd='$MAGIC_CMD'
14326 lt_cv_file_magic_test_file=
14327 lt_cv_deplibs_check_method='unknown'
14328 # Need to set the preceding variable on all platforms that support
14329 # interlibrary dependencies.
14330 # 'none' -- dependencies not supported.
14331 # `unknown' -- same as none, but documents that we really don't know.
14332 # 'pass_all' -- all dependencies passed with no checks.
14333 # 'test_compile' -- check by making test program.
14334 # 'file_magic [[regex]]' -- check by looking for files in library path
14335 # which responds to the $file_magic_cmd with a given extended regex.
14336 # If you have `file' or equivalent on your system and you're not sure
14337 # whether `pass_all' will *always* work, you probably want this one.
14341 lt_cv_deplibs_check_method=pass_all
14345 lt_cv_deplibs_check_method=pass_all
14349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14350 lt_cv_file_magic_cmd='/usr/bin/file -L'
14351 lt_cv_file_magic_test_file=/shlib/libc.so
14355 # func_win32_libid is a shell function defined in ltmain.sh
14356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14357 lt_cv_file_magic_cmd='func_win32_libid'
14361 # Base MSYS/MinGW do not provide the 'file' command needed by
14362 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14363 # unless we find 'file', for example because we are cross-compiling.
14364 if ( file / ) >/dev/null 2>&1; then
14365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14366 lt_cv_file_magic_cmd='func_win32_libid'
14368 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14369 lt_cv_file_magic_cmd='$OBJDUMP -f'
14373 darwin* | rhapsody*)
14374 lt_cv_deplibs_check_method=pass_all
14377 freebsd* | dragonfly*)
14378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14381 # Not sure whether the presence of OpenBSD here was a mistake.
14382 # Let's accept both of them until this is cleared up.
14383 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14384 lt_cv_file_magic_cmd=/usr/bin/file
14385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14389 lt_cv_deplibs_check_method=pass_all
14394 lt_cv_deplibs_check_method=pass_all
14397 hpux10.20* | hpux11*)
14398 lt_cv_file_magic_cmd=/usr/bin/file
14401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14405 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]'
14406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14420 irix5* | irix6* | nonstopux*)
14422 *-32|*"-32 ") libmagic=32-bit;;
14423 *-n32|*"-n32 ") libmagic=N32;;
14424 *-64|*"-64 ") libmagic=64-bit;;
14425 *) libmagic=never-match;;
14427 lt_cv_deplibs_check_method=pass_all
14430 # This must be Linux ELF.
14431 linux* | k*bsd*-gnu)
14432 lt_cv_deplibs_check_method=pass_all
14436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14445 lt_cv_file_magic_cmd=/usr/bin/file
14446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14450 lt_cv_deplibs_check_method=pass_all
14454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14461 osf3* | osf4* | osf5*)
14462 lt_cv_deplibs_check_method=pass_all
14466 lt_cv_deplibs_check_method=pass_all
14470 lt_cv_deplibs_check_method=pass_all
14473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14474 lt_cv_deplibs_check_method=pass_all
14478 case $host_vendor in
14480 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]'
14481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14484 lt_cv_deplibs_check_method=pass_all
14487 lt_cv_file_magic_cmd='/bin/file'
14488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14491 lt_cv_file_magic_cmd='/bin/file'
14492 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14493 lt_cv_file_magic_test_file=/lib/libc.so
14496 lt_cv_deplibs_check_method=pass_all
14499 lt_cv_deplibs_check_method=pass_all
14505 lt_cv_deplibs_check_method=pass_all
14510 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
14511 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14512 file_magic_cmd=$lt_cv_file_magic_cmd
14513 deplibs_check_method=$lt_cv_deplibs_check_method
14514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14527 if test -n "$ac_tool_prefix"; then
14528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14529 set dummy ${ac_tool_prefix}ar; ac_word=$2
14530 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14531 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14532 if test "${ac_cv_prog_AR+set}" = set; then
14533 echo $ECHO_N "(cached
) $ECHO_C" >&6
14535 if test -n "$AR"; then
14536 ac_cv_prog_AR="$AR" # Let the user override the test.
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_prog_AR="${ac_tool_prefix}ar"
14546 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14555 if test -n "$AR"; then
14556 echo "$as_me:$LINENO: result
: $AR" >&5
14557 echo "${ECHO_T}$AR" >&6
14559 echo "$as_me:$LINENO: result
: no
" >&5
14560 echo "${ECHO_T}no
" >&6
14564 if test -z "$ac_cv_prog_AR"; then
14566 # Extract the first word of "ar", so it can be a program name with args.
14567 set dummy ar; ac_word=$2
14568 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14569 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14571 echo $ECHO_N "(cached
) $ECHO_C" >&6
14573 if test -n "$ac_ct_AR"; then
14574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_ac_ct_AR="ar"
14584 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14590 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
14593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14594 if test -n "$ac_ct_AR"; then
14595 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14596 echo "${ECHO_T}$ac_ct_AR" >&6
14598 echo "$as_me:$LINENO: result
: no
" >&5
14599 echo "${ECHO_T}no
" >&6
14604 AR="$ac_cv_prog_AR"
14607 test -z "$AR" && AR=ar
14608 test -z "$AR_FLAGS" && AR_FLAGS=cru
14620 if test -n "$ac_tool_prefix"; then
14621 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14622 set dummy ${ac_tool_prefix}strip; ac_word=$2
14623 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14624 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14625 if test "${ac_cv_prog_STRIP+set}" = set; then
14626 echo $ECHO_N "(cached
) $ECHO_C" >&6
14628 if test -n "$STRIP"; then
14629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14638 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14639 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14647 STRIP=$ac_cv_prog_STRIP
14648 if test -n "$STRIP"; then
14649 echo "$as_me:$LINENO: result
: $STRIP" >&5
14650 echo "${ECHO_T}$STRIP" >&6
14652 echo "$as_me:$LINENO: result
: no
" >&5
14653 echo "${ECHO_T}no
" >&6
14657 if test -z "$ac_cv_prog_STRIP"; then
14659 # Extract the first word of "strip
", so it can be a program name with args.
14660 set dummy strip; ac_word=$2
14661 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14662 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14663 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14664 echo $ECHO_N "(cached
) $ECHO_C" >&6
14666 if test -n "$ac_ct_STRIP"; then
14667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676 ac_cv_prog_ac_ct_STRIP="strip
"
14677 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14683 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14687 if test -n "$ac_ct_STRIP"; then
14688 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
14689 echo "${ECHO_T}$ac_ct_STRIP" >&6
14691 echo "$as_me:$LINENO: result
: no
" >&5
14692 echo "${ECHO_T}no
" >&6
14697 STRIP="$ac_cv_prog_STRIP"
14700 test -z "$STRIP" && STRIP=:
14707 if test -n "$ac_tool_prefix"; then
14708 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14710 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14711 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14712 if test "${ac_cv_prog_RANLIB+set}" = set; then
14713 echo $ECHO_N "(cached
) $ECHO_C" >&6
14715 if test -n "$RANLIB"; then
14716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719 for as_dir in $PATH
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14726 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14734 RANLIB=$ac_cv_prog_RANLIB
14735 if test -n "$RANLIB"; then
14736 echo "$as_me:$LINENO: result
: $RANLIB" >&5
14737 echo "${ECHO_T}$RANLIB" >&6
14739 echo "$as_me:$LINENO: result
: no
" >&5
14740 echo "${ECHO_T}no
" >&6
14744 if test -z "$ac_cv_prog_RANLIB"; then
14745 ac_ct_RANLIB=$RANLIB
14746 # Extract the first word of "ranlib
", so it can be a program name with args.
14747 set dummy ranlib; ac_word=$2
14748 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14749 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14750 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14751 echo $ECHO_N "(cached
) $ECHO_C" >&6
14753 if test -n "$ac_ct_RANLIB"; then
14754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14763 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14764 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14770 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14774 if test -n "$ac_ct_RANLIB"; then
14775 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
14776 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14778 echo "$as_me:$LINENO: result
: no
" >&5
14779 echo "${ECHO_T}no
" >&6
14782 RANLIB=$ac_ct_RANLIB
14784 RANLIB="$ac_cv_prog_RANLIB"
14787 test -z "$RANLIB" && RANLIB=:
14794 # Determine commands to create old-style static archives.
14795 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14796 old_postinstall_cmds='chmod 644 $oldlib'
14797 old_postuninstall_cmds=
14799 if test -n "$RANLIB"; then
14802 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14805 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14808 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14844 # If no C compiler was specified, use CC.
14847 # If no C compiler flags were specified, use CFLAGS.
14848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14850 # Allow CC to be a program name with arguments.
14854 # Check for command to grab the raw symbol name followed by C symbol from nm.
14855 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
14856 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
14857 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14858 echo $ECHO_N "(cached
) $ECHO_C" >&6
14861 # These are sane defaults that work on at least a few old systems.
14862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14864 # Character class describing NM global symbol codes.
14865 symcode='[BCDEGRST]'
14867 # Regexp to match symbols that can be accessed directly from C.
14868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14870 # Define system-specific variables.
14875 cygwin* | mingw* | pw32*)
14876 symcode='[ABCDGISTW]'
14879 if test "$host_cpu" = ia64; then
14880 symcode='[ABCDEGRST]'
14883 irix* | nonstopux*)
14884 symcode='[BCDEGRST]'
14887 symcode='[BCDEGQRST]'
14898 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14906 # If we're using GNU nm, then use its standard symbol codes.
14907 case `$NM -V 2>&1` in
14908 *GNU* | *'with BFD'*)
14909 symcode='[ABCDGIRSTW]' ;;
14912 # Transform an extracted symbol line into a proper C declaration.
14913 # Some systems (esp. on ia64) link data and code symbols differently,
14914 # so use this general approach.
14915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14917 # Transform an extracted symbol line into symbol name and symbol address
14918 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14920 # Handle CRLF in mingw tool chain
14924 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14928 # Try without a prefix underscore, then with it.
14929 for ac_symprfx in "" "_
"; do
14931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14932 symxfrm="\\1 $ac_symprfx\\2 \\2"
14934 # Write the raw and C identifiers.
14935 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14936 # Fake it for dumpbin and say T for any non-static function
14937 # and D for any global variable.
14938 # Also find C++ and __fastcall symbols from MSVC++,
14939 # which start with @ or ?.
14940 lt_cv_sys_global_symbol_pipe="$AWK '"\
14941 " {last_section=section; section=\$ 3};"\
14942 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14943 " \$ 0!~/External *\|/{next};"\
14944 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14945 " {if(hide[section]) next};"\
14946 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14947 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14948 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14949 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14950 " ' prfx
=^
$ac_symprfx"
14952 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14955 # Check to see that the pipe works correctly.
14959 cat > conftest.$ac_ext <<_LT_EOF
14964 void nm_test_func(void);
14965 void nm_test_func(void){}
14969 int main(){nm_test_var='a';nm_test_func();return(0);}
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14976 (exit $ac_status); }; then
14977 # Now try to grab the symbols.
14979 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
14980 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14983 (exit $ac_status); } && test -s "$nlist"; then
14984 # Try sorting and uniquifying the output.
14985 if sort "$nlist" | uniq > "$nlist"T; then
14986 mv -f "$nlist"T "$nlist"
14991 # Make sure that we snagged all the symbols we need.
14992 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14993 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14994 cat <<_LT_EOF > conftest.$ac_ext
15000 # Now generate the symbol file.
15001 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15003 cat <<_LT_EOF >> conftest.$ac_ext
15005 /* The mapping between symbol names and symbols. */
15010 lt__PROGRAM__LTX_preloaded_symbols[] =
15012 { "@PROGRAM@
", (void *) 0 },
15014 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15015 cat <<\_LT_EOF >> conftest.$ac_ext
15019 /* This works around a problem in FreeBSD linker */
15020 #ifdef FREEBSD_WORKAROUND
15021 static const void *lt_preloaded_setup() {
15022 return lt__PROGRAM__LTX_preloaded_symbols;
15030 # Now try linking the two files.
15031 mv conftest.$ac_objext conftstm.$ac_objext
15032 lt_save_LIBS="$LIBS"
15033 lt_save_CFLAGS="$CFLAGS"
15034 LIBS="conftstm.
$ac_objext"
15035 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15037 (eval $ac_link) 2>&5
15039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15040 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15043 LIBS="$lt_save_LIBS"
15044 CFLAGS="$lt_save_CFLAGS"
15046 echo "cannot
find nm_test_func
in $nlist" >&5
15049 echo "cannot
find nm_test_var
in $nlist" >&5
15052 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15055 echo "$progname: failed program was
:" >&5
15056 cat conftest.$ac_ext >&5
15058 rm -f conftest* conftst*
15060 # Do not use the global_symbol_pipe unless it works.
15061 if test "$pipe_works" = yes; then
15064 lt_cv_sys_global_symbol_pipe=
15070 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15071 lt_cv_sys_global_symbol_to_cdecl=
15073 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15074 echo "$as_me:$LINENO: result
: failed
" >&5
15075 echo "${ECHO_T}failed
" >&6
15077 echo "$as_me:$LINENO: result
: ok
" >&5
15078 echo "${ECHO_T}ok
" >&6
15097 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15098 if test "${enable_libtool_lock+set}" = set; then
15099 enableval="$enable_libtool_lock"
15102 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15104 # Some flags need to be propagated to the compiler or linker for good
15108 # Find out which ABI we are using.
15109 echo 'int i;' > conftest.$ac_ext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>&5
15113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15114 (exit $ac_status); }; then
15115 case `/usr/bin/file conftest.$ac_objext` in
15117 HPUX_IA64_MODE="32"
15120 HPUX_IA64_MODE="64"
15127 # Find out which ABI we are using.
15128 echo '#line 15128 "configure
"' > conftest.$ac_ext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15133 (exit $ac_status); }; then
15134 if test "$lt_cv_prog_gnu_ld" = yes; then
15135 case `/usr/bin/file conftest.$ac_objext` in
15137 LD="${LD-ld} -melf32bsmip"
15140 LD="${LD-ld} -melf32bmipn32"
15143 LD="${LD-ld} -melf64bmip"
15147 case `/usr/bin/file conftest.$ac_objext` in
15163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15165 # Find out which ABI we are using.
15166 echo 'int i;' > conftest.$ac_ext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15168 (eval $ac_compile) 2>&5
15170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15171 (exit $ac_status); }; then
15172 case `/usr/bin/file conftest.o` in
15175 x86_64-*kfreebsd*-gnu)
15176 LD="${LD-ld} -m elf_i386_fbsd
"
15179 LD="${LD-ld} -m elf_i386
"
15181 ppc64-*linux*|powerpc64-*linux*)
15182 LD="${LD-ld} -m elf32ppclinux
"
15185 LD="${LD-ld} -m elf_s390
"
15188 LD="${LD-ld} -m elf32_sparc
"
15194 x86_64-*kfreebsd*-gnu)
15195 LD="${LD-ld} -m elf_x86_64_fbsd
"
15198 LD="${LD-ld} -m elf_x86_64
"
15200 ppc*-*linux*|powerpc*-*linux*)
15201 LD="${LD-ld} -m elf64ppc
"
15203 s390*-*linux*|s390*-*tpf*)
15204 LD="${LD-ld} -m elf64_s390
"
15207 LD="${LD-ld} -m elf64_sparc
"
15217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15218 SAVE_CFLAGS="$CFLAGS"
15219 CFLAGS="$CFLAGS -belf"
15220 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15221 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15222 if test "${lt_cv_cc_needs_belf+set}" = set; then
15223 echo $ECHO_N "(cached
) $ECHO_C" >&6
15226 ac_cpp='$CPP $CPPFLAGS'
15227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15248 (eval $ac_link) 2>conftest.er1
15250 grep -v '^ *+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 lt_cv_cc_needs_belf=yes
15270 echo "$as_me: failed program was
:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 lt_cv_cc_needs_belf=no
15275 rm -f conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15284 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15285 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15286 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15288 CFLAGS="$SAVE_CFLAGS"
15292 # Find out which ABI we are using.
15293 echo 'int i;' > conftest.$ac_ext
15294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15295 (eval $ac_compile) 2>&5
15297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15298 (exit $ac_status); }; then
15299 case `/usr/bin/file conftest.o` in
15301 case $lt_cv_prog_gnu_ld in
15302 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15303 *) LD="${LD-ld} -64" ;;
15312 need_locks="$enable_libtool_lock"
15315 for ac_header in dlfcn.h
15317 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15318 echo "$as_me:$LINENO: checking
for $ac_header" >&5
15319 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
15320 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
15321 echo $ECHO_N "(cached
) $ECHO_C" >&6
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 #include <$ac_header>
15331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
15332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15338 (exit $ac_status); } >/dev/null; then
15339 if test -s conftest.err; then
15340 ac_cpp_err=$ac_c_preproc_warn_flag
15341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15348 if test -z "$ac_cpp_err"; then
15349 eval "$as_ac_Header=yes"
15351 echo "$as_me: failed program was
:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 eval "$as_ac_Header=no
"
15356 rm -f conftest.err conftest.$ac_ext
15358 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
15359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15361 cat >>confdefs.h <<_ACEOF
15362 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15370 # This can be used to rebuild libtool when needed
15371 LIBTOOL_DEPS="$ltmain"
15373 # Always use our own libtool.
15374 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15400 test -z "$LN_S" && LN_S="ln -s"
15415 if test -n "${ZSH_VERSION+set}" ; then
15416 setopt NO_GLOB_SUBST
15419 echo "$as_me:$LINENO: checking
for objdir
" >&5
15420 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
15421 if test "${lt_cv_objdir+set}" = set; then
15422 echo $ECHO_N "(cached
) $ECHO_C" >&6
15424 rm -f .libs 2>/dev/null
15425 mkdir .libs 2>/dev/null
15426 if test -d .libs; then
15429 # MS-DOS does not allow filenames that begin with a dot.
15432 rmdir .libs 2>/dev/null
15434 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
15435 echo "${ECHO_T}$lt_cv_objdir" >&6
15436 objdir=$lt_cv_objdir
15442 cat >>confdefs.h <<_ACEOF
15443 #define LT_OBJDIR "$lt_cv_objdir/"
15464 # AIX sometimes has problems with the GCC collect2 program. For some
15465 # reason, if we set the COLLECT_NAMES environment variable, the problems
15466 # vanish in a puff of smoke.
15467 if test "X
${COLLECT_NAMES+set}" != Xset; then
15469 export COLLECT_NAMES
15474 # Sed substitution that helps us do robust quoting. It backslashifies
15475 # metacharacters that are still active within double-quoted strings.
15476 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15478 # Same as above, but do not quote variable references.
15479 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
15481 # Sed substitution to delay expansion of an escaped shell variable in a
15482 # double_quote_subst'ed string.
15483 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
15485 # Sed substitution to delay expansion of an escaped single quote.
15486 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
15488 # Sed substitution to avoid accidental globbing in evaled expressions
15489 no_glob_subst
='s/\*/\\\*/g'
15491 # Global variables:
15493 can_build_shared
=yes
15495 # All known linkers require a `.a' archive for static linking (except MSVC,
15496 # which needs '.lib').
15499 with_gnu_ld
="$lt_cv_prog_gnu_ld"
15502 old_CFLAGS
="$CFLAGS"
15504 # Set sane defaults for various variables
15505 test -z "$CC" && CC
=cc
15506 test -z "$LTCC" && LTCC
=$CC
15507 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
15508 test -z "$LD" && LD
=ld
15509 test -z "$ac_objext" && ac_objext
=o
15511 for cc_temp
in $compiler""; do
15513 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15514 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15519 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15522 # Only perform the check for file, if the check method requires it
15523 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
15524 case $deplibs_check_method in
15526 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15527 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15528 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15529 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
15537 lt_save_MAGIC_CMD
="$MAGIC_CMD"
15538 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15539 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
15540 for ac_dir
in $ac_dummy; do
15542 test -z "$ac_dir" && ac_dir
=.
15543 if test -f $ac_dir/${ac_tool_prefix}file; then
15544 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
15545 if test -n "$file_magic_test_file"; then
15546 case $deplibs_check_method in
15548 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15549 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15550 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
15551 $EGREP "$file_magic_regex" > /dev
/null
; then
15556 *** Warning: the command libtool uses to detect shared libraries,
15557 *** $file_magic_cmd, produces output that libtool cannot recognize.
15558 *** The result is that libtool may fail to recognize shared libraries
15559 *** as such. This will affect the creation of libtool libraries that
15560 *** depend on shared libraries, but programs linked with such libtool
15561 *** libraries will work regardless of this problem. Nevertheless, you
15562 *** may want to report the problem to your system manager and/or to
15563 *** bug-libtool@gnu.org
15573 MAGIC_CMD
="$lt_save_MAGIC_CMD"
15578 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15579 if test -n "$MAGIC_CMD"; then
15580 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15581 echo "${ECHO_T}$MAGIC_CMD" >&6
15583 echo "$as_me:$LINENO: result: no" >&5
15584 echo "${ECHO_T}no" >&6
15591 if test -z "$lt_cv_path_MAGIC_CMD"; then
15592 if test -n "$ac_tool_prefix"; then
15593 echo "$as_me:$LINENO: checking for file" >&5
15594 echo $ECHO_N "checking for file... $ECHO_C" >&6
15595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
15603 lt_save_MAGIC_CMD
="$MAGIC_CMD"
15604 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15605 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
15606 for ac_dir
in $ac_dummy; do
15608 test -z "$ac_dir" && ac_dir
=.
15609 if test -f $ac_dir/file; then
15610 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
15611 if test -n "$file_magic_test_file"; then
15612 case $deplibs_check_method in
15614 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15615 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15616 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
15617 $EGREP "$file_magic_regex" > /dev
/null
; then
15622 *** Warning: the command libtool uses to detect shared libraries,
15623 *** $file_magic_cmd, produces output that libtool cannot recognize.
15624 *** The result is that libtool may fail to recognize shared libraries
15625 *** as such. This will affect the creation of libtool libraries that
15626 *** depend on shared libraries, but programs linked with such libtool
15627 *** libraries will work regardless of this problem. Nevertheless, you
15628 *** may want to report the problem to your system manager and/or to
15629 *** bug-libtool@gnu.org
15639 MAGIC_CMD
="$lt_save_MAGIC_CMD"
15644 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
15645 if test -n "$MAGIC_CMD"; then
15646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15647 echo "${ECHO_T}$MAGIC_CMD" >&6
15649 echo "$as_me:$LINENO: result: no" >&5
15650 echo "${ECHO_T}no" >&6
15663 # Use C for the default configuration in the libtool script
15667 ac_cpp
='$CPP $CPPFLAGS'
15668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15673 # Source file extension for C test sources.
15676 # Object file extension for compiled C test sources.
15680 # Code to be used in simple compile tests
15681 lt_simple_compile_test_code
="int some_variable = 0;"
15683 # Code to be used in simple link tests
15684 lt_simple_link_test_code
='int main(){return(0);}'
15692 # If no C compiler was specified, use CC.
15695 # If no C compiler flags were specified, use CFLAGS.
15696 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15698 # Allow CC to be a program name with arguments.
15701 # Save the default compiler, since it gets overwritten when the other
15702 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15703 compiler_DEFAULT
=$CC
15705 # save warnings/boilerplate of simple test code
15706 ac_outfile
=conftest.
$ac_objext
15707 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
15708 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15709 _lt_compiler_boilerplate
=`cat conftest.err`
15712 ac_outfile
=conftest.
$ac_objext
15713 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
15714 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15715 _lt_linker_boilerplate
=`cat conftest.err`
15720 ## There is no encapsulation within the following macros, do not change
15721 ## the running order or otherwise move them around unless you know exactly
15722 ## what you are doing...
15723 if test -n "$compiler"; then
15725 lt_prog_compiler_no_builtin_flag
=
15727 if test "$GCC" = yes; then
15728 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
15730 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15731 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15732 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 lt_cv_prog_compiler_rtti_exceptions
=no
15736 ac_outfile
=conftest.
$ac_objext
15737 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15738 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 # The option is referenced via a variable to avoid confusing sed.
15744 lt_compile
=`echo "$ac_compile" | $SED \
15745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747 -e 's:$: $lt_compiler_flag:'`
15748 (eval echo "\"\$as_me:15748: $lt_compile\"" >&5)
15749 (eval "$lt_compile" 2>conftest.err
)
15751 cat conftest.err
>&5
15752 echo "$as_me:15752: \$? = $ac_status" >&5
15753 if (exit $ac_status) && test -s "$ac_outfile"; then
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings other than the usual output.
15756 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15757 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15758 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15759 lt_cv_prog_compiler_rtti_exceptions
=yes
15765 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15766 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15768 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15769 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15781 lt_prog_compiler_wl
=
15782 lt_prog_compiler_pic
=
15783 lt_prog_compiler_static
=
15785 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15786 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15788 if test "$GCC" = yes; then
15789 lt_prog_compiler_wl
='-Wl,'
15790 lt_prog_compiler_static
='-static'
15794 # All AIX code is PIC.
15795 if test "$host_cpu" = ia64
; then
15796 # AIX 5 now supports IA64 processor
15797 lt_prog_compiler_static
='-Bstatic'
15802 if test "$host_cpu" = m68k
; then
15803 # FIXME: we need at least 68020 code to build shared libraries, but
15804 # adding the `-m68020' flag to GCC prevents building anything better,
15806 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
15810 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15811 # PIC is the default for these OSes.
15814 mingw
* | cygwin
* | pw32
* | os2
*)
15815 # This hack is so that the source file can tell whether it is being
15816 # built for inclusion in a dll (and should export symbols for example).
15817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15818 # (--disable-auto-import) libraries
15819 lt_prog_compiler_pic
='-DDLL_EXPORT'
15822 darwin
* | rhapsody
*)
15823 # PIC is the default on this platform
15824 # Common symbols not allowed in MH_DYLIB files
15825 lt_prog_compiler_pic
='-fno-common'
15829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15830 # not for PA HP-UX.
15836 lt_prog_compiler_pic
='-fPIC'
15842 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15843 # Instead, we relocate shared libraries at runtime.
15847 # Just because we use GCC doesn't mean we suddenly get shared libraries
15848 # on systems that don't support them.
15849 lt_prog_compiler_can_build_shared
=no
15854 # QNX uses GNU C++, but need to define -shared option too, otherwise
15855 # it will coredump.
15856 lt_prog_compiler_pic
='-fPIC -shared'
15860 if test -d /usr
/nec
; then
15861 lt_prog_compiler_pic
=-Kconform_pic
15866 lt_prog_compiler_pic
='-fPIC'
15870 # PORTME Check for flag to pass linker flags through the system compiler.
15873 lt_prog_compiler_wl
='-Wl,'
15874 if test "$host_cpu" = ia64
; then
15875 # AIX 5 now supports IA64 processor
15876 lt_prog_compiler_static
='-Bstatic'
15878 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
15882 # PIC is the default on this platform
15883 # Common symbols not allowed in MH_DYLIB files
15884 case $cc_basename in
15886 lt_prog_compiler_pic
='-qnocommon'
15887 lt_prog_compiler_wl
='-Wl,'
15892 mingw
* | cygwin
* | pw32
* | os2
*)
15893 # This hack is so that the source file can tell whether it is being
15894 # built for inclusion in a dll (and should export symbols for example).
15895 lt_prog_compiler_pic
='-DDLL_EXPORT'
15898 hpux9
* | hpux10
* | hpux11
*)
15899 lt_prog_compiler_wl
='-Wl,'
15900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15901 # not for PA HP-UX.
15907 lt_prog_compiler_pic
='+Z'
15910 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15911 lt_prog_compiler_static
='${wl}-a ${wl}archive'
15914 irix5
* | irix6
* | nonstopux
*)
15915 lt_prog_compiler_wl
='-Wl,'
15916 # PIC (with -KPIC) is the default.
15917 lt_prog_compiler_static
='-non_shared'
15920 linux
* | k
*bsd
*-gnu)
15921 case $cc_basename in
15923 lt_prog_compiler_wl
='-Wl,'
15924 lt_prog_compiler_pic
='-KPIC'
15925 lt_prog_compiler_static
='-static'
15927 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15928 # Portland Group compilers (*not* the Pentium gcc compiler,
15929 # which looks to be a dead project)
15930 lt_prog_compiler_wl
='-Wl,'
15931 lt_prog_compiler_pic
='-fpic'
15932 lt_prog_compiler_static
='-Bstatic'
15935 lt_prog_compiler_wl
='-Wl,'
15936 # All Alpha code is PIC.
15937 lt_prog_compiler_static
='-non_shared'
15940 case `$CC -V 2>&1 | sed 5q` in
15943 lt_prog_compiler_pic
='-KPIC'
15944 lt_prog_compiler_static
='-Bstatic'
15945 lt_prog_compiler_wl
='-Wl,'
15948 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15949 lt_prog_compiler_pic
='-KPIC'
15950 lt_prog_compiler_static
='-Bstatic'
15951 lt_prog_compiler_wl
=''
15959 lt_prog_compiler_pic
='-KPIC'
15960 lt_prog_compiler_static
='-Bstatic'
15964 # QNX uses GNU C++, but need to define -shared option too, otherwise
15965 # it will coredump.
15966 lt_prog_compiler_pic
='-fPIC -shared'
15969 osf3
* | osf4
* | osf5
*)
15970 lt_prog_compiler_wl
='-Wl,'
15971 # All OSF/1 code is PIC.
15972 lt_prog_compiler_static
='-non_shared'
15976 lt_prog_compiler_static
='-non_shared'
15980 lt_prog_compiler_pic
='-KPIC'
15981 lt_prog_compiler_static
='-Bstatic'
15982 case $cc_basename in
15983 f77
* | f90
* | f95
*)
15984 lt_prog_compiler_wl
='-Qoption ld ';;
15986 lt_prog_compiler_wl
='-Wl,';;
15991 lt_prog_compiler_wl
='-Qoption ld '
15992 lt_prog_compiler_pic
='-PIC'
15993 lt_prog_compiler_static
='-Bstatic'
15996 sysv4 | sysv4.2uw2
* | sysv4.3
*)
15997 lt_prog_compiler_wl
='-Wl,'
15998 lt_prog_compiler_pic
='-KPIC'
15999 lt_prog_compiler_static
='-Bstatic'
16003 if test -d /usr
/nec
;then
16004 lt_prog_compiler_pic
='-Kconform_pic'
16005 lt_prog_compiler_static
='-Bstatic'
16009 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16010 lt_prog_compiler_wl
='-Wl,'
16011 lt_prog_compiler_pic
='-KPIC'
16012 lt_prog_compiler_static
='-Bstatic'
16016 lt_prog_compiler_wl
='-Wl,'
16017 lt_prog_compiler_can_build_shared
=no
16021 lt_prog_compiler_pic
='-pic'
16022 lt_prog_compiler_static
='-Bstatic'
16026 lt_prog_compiler_can_build_shared
=no
16032 # For platforms which do not support PIC, -DPIC is meaningless:
16034 lt_prog_compiler_pic
=
16037 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
16040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16041 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16049 # Check to make sure the PIC flag actually works.
16051 if test -n "$lt_prog_compiler_pic"; then
16052 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16054 if test "${lt_prog_compiler_pic_works+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 lt_prog_compiler_pic_works
=no
16058 ac_outfile
=conftest.
$ac_objext
16059 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16060 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
16061 # Insert the option either (1) after the last *FLAGS variable, or
16062 # (2) before a word containing "conftest.", or (3) at the end.
16063 # Note that $ac_compile itself does not contain backslashes and begins
16064 # with a dollar sign (not a hyphen), so the echo should work correctly.
16065 # The option is referenced via a variable to avoid confusing sed.
16066 lt_compile
=`echo "$ac_compile" | $SED \
16067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16069 -e 's:$: $lt_compiler_flag:'`
16070 (eval echo "\"\$as_me:16070: $lt_compile\"" >&5)
16071 (eval "$lt_compile" 2>conftest.err
)
16073 cat conftest.err
>&5
16074 echo "$as_me:16074: \$? = $ac_status" >&5
16075 if (exit $ac_status) && test -s "$ac_outfile"; then
16076 # The compiler can only warn and ignore the option if not recognized
16077 # So say no if there are warnings other than the usual output.
16078 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16079 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16080 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16081 lt_prog_compiler_pic_works
=yes
16087 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16088 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16090 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
16091 case $lt_prog_compiler_pic in
16093 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
16096 lt_prog_compiler_pic
=
16097 lt_prog_compiler_can_build_shared
=no
16108 # Check to make sure the static flag actually works.
16110 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
16111 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16113 if test "${lt_prog_compiler_static_works+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 lt_prog_compiler_static_works
=no
16117 save_LDFLAGS
="$LDFLAGS"
16118 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16119 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16120 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16121 # The linker can only warn and ignore the option if not recognized
16122 # So say no if there are warnings
16123 if test -s conftest.err
; then
16124 # Append any errors to the config.log.
16125 cat conftest.err
1>&5
16126 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16127 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16128 if diff conftest.exp conftest.er2
>/dev
/null
; then
16129 lt_prog_compiler_static_works
=yes
16132 lt_prog_compiler_static_works
=yes
16136 LDFLAGS
="$save_LDFLAGS"
16139 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16140 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16142 if test x
"$lt_prog_compiler_static_works" = xyes
; then
16145 lt_prog_compiler_static
=
16154 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 lt_cv_prog_compiler_c_o
=no
16160 $RM -r conftest
2>/dev
/null
16164 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16166 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16167 # Insert the option either (1) after the last *FLAGS variable, or
16168 # (2) before a word containing "conftest.", or (3) at the end.
16169 # Note that $ac_compile itself does not contain backslashes and begins
16170 # with a dollar sign (not a hyphen), so the echo should work correctly.
16171 lt_compile
=`echo "$ac_compile" | $SED \
16172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16174 -e 's:$: $lt_compiler_flag:'`
16175 (eval echo "\"\$as_me:16175: $lt_compile\"" >&5)
16176 (eval "$lt_compile" 2>out
/conftest.err
)
16178 cat out
/conftest.err
>&5
16179 echo "$as_me:16179: \$? = $ac_status" >&5
16180 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16182 # The compiler can only warn and ignore the option if not recognized
16183 # So say no if there are warnings
16184 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16185 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16186 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16187 lt_cv_prog_compiler_c_o
=yes
16192 # SGI C++ compiler will create directory out/ii_files/ for
16193 # template instantiation
16194 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16195 $RM out
/* && rmdir out
16201 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16209 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16210 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16211 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 lt_cv_prog_compiler_c_o
=no
16215 $RM -r conftest
2>/dev
/null
16219 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16221 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16222 # Insert the option either (1) after the last *FLAGS variable, or
16223 # (2) before a word containing "conftest.", or (3) at the end.
16224 # Note that $ac_compile itself does not contain backslashes and begins
16225 # with a dollar sign (not a hyphen), so the echo should work correctly.
16226 lt_compile
=`echo "$ac_compile" | $SED \
16227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16229 -e 's:$: $lt_compiler_flag:'`
16230 (eval echo "\"\$as_me:16230: $lt_compile\"" >&5)
16231 (eval "$lt_compile" 2>out
/conftest.err
)
16233 cat out
/conftest.err
>&5
16234 echo "$as_me:16234: \$? = $ac_status" >&5
16235 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16237 # The compiler can only warn and ignore the option if not recognized
16238 # So say no if there are warnings
16239 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16240 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16241 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16242 lt_cv_prog_compiler_c_o
=yes
16247 # SGI C++ compiler will create directory out/ii_files/ for
16248 # template instantiation
16249 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16250 $RM out
/* && rmdir out
16256 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16257 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16262 hard_links
="nottested"
16263 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
16264 # do not overwrite the value of need_locks provided by the user
16265 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16266 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16269 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16271 ln conftest.a conftest.b
2>&5 || hard_links
=no
16272 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16273 echo "$as_me:$LINENO: result: $hard_links" >&5
16274 echo "${ECHO_T}$hard_links" >&6
16275 if test "$hard_links" = no
; then
16276 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16277 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16289 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16290 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16293 allow_undefined_flag
=
16294 always_export_symbols
=no
16296 archive_expsym_cmds
=
16297 compiler_needs_object
=no
16298 enable_shared_with_static_runtimes
=no
16299 export_dynamic_flag_spec
=
16300 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16301 hardcode_automatic
=no
16303 hardcode_direct_absolute
=no
16304 hardcode_libdir_flag_spec
=
16305 hardcode_libdir_flag_spec_ld
=
16306 hardcode_libdir_separator
=
16307 hardcode_minus_L
=no
16308 hardcode_shlibpath_var
=unsupported
16310 link_all_deplibs
=unknown
16312 module_expsym_cmds
=
16313 old_archive_from_new_cmds
=
16314 old_archive_from_expsyms_cmds
=
16315 thread_safe_flag_spec
=
16316 whole_archive_flag_spec
=
16317 # include_expsyms should be a list of space-separated symbols to be *always*
16318 # included in the symbol list
16320 # exclude_expsyms can be an extended regexp of symbols to exclude
16321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16323 # as well as any symbol that contains `d'.
16324 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
16325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16326 # platforms (ab)use it in PIC code, but their linkers get confused if
16327 # the symbol is explicitly referenced. Since portable code cannot
16328 # rely on this symbol name, it's probably fine to never include it in
16329 # preloaded symbol tables.
16330 extract_expsyms_cmds
=
16333 cygwin
* | mingw
* | pw32
*)
16334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16335 # When not using gcc, we currently assume that we are using
16336 # Microsoft Visual C++.
16337 if test "$GCC" != yes; then
16342 # we just hope/assume this is gcc and not c89 (= MSVC++)
16351 if test "$with_gnu_ld" = yes; then
16352 # If archive_cmds runs LD, not CC, wlarc should be empty
16355 # Set some defaults for GNU ld with shared library support. These
16356 # are reset later if shared libraries are not supported. Putting them
16357 # here allows them to be overridden if necessary.
16358 runpath_var
=LD_RUN_PATH
16359 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16360 export_dynamic_flag_spec
='${wl}--export-dynamic'
16361 # ancient GNU ld didn't support --whole-archive et. al.
16362 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
16363 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16365 whole_archive_flag_spec
=
16367 supports_anon_versioning
=no
16368 case `$LD -v 2>&1` in
16369 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16370 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16371 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16372 *\
2.11.
*) ;; # other 2.11 versions
16373 *) supports_anon_versioning
=yes ;;
16376 # See if GNU ld supports shared libraries.
16379 # On AIX/PPC, the GNU linker is very broken
16380 if test "$host_cpu" != ia64
; then
16384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16385 *** to be unable to reliably create shared libraries on AIX.
16386 *** Therefore, libtool is disabling shared libraries support. If you
16387 *** really care for shared libraries, you may want to modify your PATH
16388 *** so that a non-GNU linker is found, and then restart.
16395 if test "$host_cpu" = m68k
; then
16396 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)'
16397 hardcode_libdir_flag_spec
='-L$libdir'
16398 hardcode_minus_L
=yes
16401 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16402 # that the semantics of dynamic libraries on AmigaOS, at least up
16403 # to version 4, is to share data among multiple programs linked
16404 # with the same dynamic library. Since this doesn't match the
16405 # behavior of shared libraries on other platforms, we can't use
16411 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16412 allow_undefined_flag
=unsupported
16413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16414 # support --undefined. This deserves some investigation. FIXME
16415 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16421 cygwin
* | mingw
* | pw32
*)
16422 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16423 # as there is no search path for DLLs.
16424 hardcode_libdir_flag_spec
='-L$libdir'
16425 allow_undefined_flag
=unsupported
16426 always_export_symbols
=no
16427 enable_shared_with_static_runtimes
=yes
16428 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16430 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16431 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16432 # If the export-symbols file already is a .def file (1st line
16433 # is EXPORTS), use it as is; otherwise, prepend...
16434 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16435 cp $export_symbols $output_objdir/$soname.def;
16437 echo EXPORTS > $output_objdir/$soname.def;
16438 cat $export_symbols >> $output_objdir/$soname.def;
16440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16448 hardcode_shlibpath_var
=no
16449 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16450 export_dynamic_flag_spec
='${wl}-E'
16451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16452 # Instead, shared libraries are loaded at an image base (0x10000000 by
16453 # default) and relocated if they conflict, which is a slow very memory
16454 # consuming and fragmenting process. To avoid this, we pick a random,
16455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16456 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16457 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16458 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'
16461 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
16463 if test "$host_os" = linux-dietlibc
; then
16464 case $cc_basename in
16465 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16468 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16469 && test "$tmp_diet" = no
16472 case $cc_basename,$host_cpu in
16473 pgcc
*) # Portland Group C compiler
16474 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'
16475 tmp_addflag
=' $pic_flag'
16477 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16478 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'
16479 tmp_addflag
=' $pic_flag -Mnomain' ;;
16480 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16481 tmp_addflag
=' -i_dynamic' ;;
16482 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16483 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16484 ifc
* | ifort
*) # Intel Fortran compiler
16485 tmp_addflag
=' -nofor_main' ;;
16487 case `$CC -V 2>&1 | sed 5q` in
16488 *Sun\ C
*) # Sun C 5.9
16489 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'
16490 compiler_needs_object
=yes
16491 tmp_sharedflag
='-G' ;;
16492 *Sun\ F
*) # Sun Fortran 8.3
16493 tmp_sharedflag
='-G' ;;
16495 tmp_sharedflag
='-shared' ;;
16497 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16499 if test "x$supports_anon_versioning" = xyes
; then
16500 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16502 echo "local: *; };" >> $output_objdir/$libname.ver~
16503 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16511 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16512 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16515 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16521 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16526 *** create shared libraries on Solaris systems. Therefore, libtool
16527 *** is disabling shared libraries support. We urge you to upgrade GNU
16528 *** binutils to release 2.9.1 or newer. Another option is to modify
16529 *** your PATH or compiler configuration so that the native linker is
16530 *** used, and then restart.
16533 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16534 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16535 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16541 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16542 case `$LD -v 2>&1` in
16543 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16548 *** reliably create shared libraries on SCO systems. Therefore, libtool
16549 *** is disabling shared libraries support. We urge you to upgrade GNU
16550 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16551 *** your PATH or compiler configuration so that the native linker is
16552 *** used, and then restart.
16557 # For security reasons, it is highly recommended that you always
16558 # use absolute paths for naming shared libraries, and exclude the
16559 # DT_RUNPATH tag from executables and libraries. But doing so
16560 # requires that you compile everything twice, which is a pain.
16561 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16562 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16563 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16564 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16573 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16575 hardcode_direct
=yes
16576 hardcode_shlibpath_var
=no
16580 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16581 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16582 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16589 if test "$ld_shlibs" = no
; then
16591 hardcode_libdir_flag_spec
=
16592 export_dynamic_flag_spec
=
16593 whole_archive_flag_spec
=
16596 # PORTME fill in a description of your system's linker (not GNU ld)
16599 allow_undefined_flag
=unsupported
16600 always_export_symbols
=yes
16601 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'
16602 # Note: this linker hardcodes the directories in LIBPATH if there
16603 # are no directories specified by -L.
16604 hardcode_minus_L
=yes
16605 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16606 # Neither direct hardcoding nor static linking is supported with a
16608 hardcode_direct
=unsupported
16613 if test "$host_cpu" = ia64
; then
16614 # On IA64, the linker does run time linking by default, so we don't
16615 # have to do anything special.
16616 aix_use_runtimelinking
=no
16617 exp_sym_flag
='-Bexport'
16620 # If we're using GNU nm, then we don't want the "-C" option.
16621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16622 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16623 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'
16625 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'
16627 aix_use_runtimelinking
=no
16629 # Test if we are trying to use run time linking or normal
16630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16631 # need to do runtime linking.
16632 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16633 for ld_flag
in $LDFLAGS; do
16634 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16635 aix_use_runtimelinking
=yes
16642 exp_sym_flag
='-bexport'
16643 no_entry_flag
='-bnoentry'
16646 # When large executables or shared objects are built, AIX ld can
16647 # have problems creating the table of contents. If linking a library
16648 # or program results in "error TOC overflow" add -mminimal-toc to
16649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16653 hardcode_direct
=yes
16654 hardcode_direct_absolute
=yes
16655 hardcode_libdir_separator
=':'
16656 link_all_deplibs
=yes
16657 file_list_spec
='${wl}-f,'
16659 if test "$GCC" = yes; then
16660 case $host_os in aix4.
[012]|aix4.
[012].
*)
16661 # We only want to do this on AIX 4.2 and lower, the check
16662 # below for broken collect2 doesn't work under 4.3+
16663 collect2name
=`${CC} -print-prog-name=collect2`
16664 if test -f "$collect2name" &&
16665 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16667 # We have reworked collect2
16670 # We have old collect2
16671 hardcode_direct
=unsupported
16672 # It fails to find uninstalled libraries when the uninstalled
16673 # path is not listed in the libpath. Setting hardcode_minus_L
16674 # to unsupported forces relinking
16675 hardcode_minus_L
=yes
16676 hardcode_libdir_flag_spec
='-L$libdir'
16677 hardcode_libdir_separator
=
16681 shared_flag
='-shared'
16682 if test "$aix_use_runtimelinking" = yes; then
16683 shared_flag
="$shared_flag "'${wl}-G'
16687 if test "$host_cpu" = ia64
; then
16688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16689 # chokes on -Wl,-G. The following line is correct:
16692 if test "$aix_use_runtimelinking" = yes; then
16693 shared_flag
='${wl}-G'
16695 shared_flag
='${wl}-bM:SRE'
16700 # It seems that -bexpall does not export symbols beginning with
16701 # underscore (_), so it is better to generate a list of symbols to export.
16702 always_export_symbols
=yes
16703 if test "$aix_use_runtimelinking" = yes; then
16704 # Warning - without using the other runtime loading flags (-brtl),
16705 # -berok will link without error, but may produce a broken library.
16706 allow_undefined_flag
='-berok'
16707 # Determine the default libpath from the value encoded in an
16708 # empty executable.
16709 cat >conftest.
$ac_ext <<_ACEOF
16712 cat confdefs.h
>>conftest.
$ac_ext
16713 cat >>conftest.
$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16724 rm -f conftest.
$ac_objext conftest
$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1
>conftest.err
16730 cat conftest.err
>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try
='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try
='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16747 lt_aix_libpath_sed
='
16748 /Import File Strings/,/^$/ {
16754 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16755 # Check for a 64-bit object if we didn't find anything.
16756 if test -z "$aix_libpath"; then
16757 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.
$ac_ext >&5
16764 rm -f conftest.err conftest.
$ac_objext \
16765 conftest
$ac_exeext conftest.
$ac_ext
16766 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16768 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16769 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"
16771 if test "$host_cpu" = ia64
; then
16772 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16773 allow_undefined_flag
="-z nodefs"
16774 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"
16776 # Determine the default libpath from the value encoded in an
16777 # empty executable.
16778 cat >conftest.
$ac_ext <<_ACEOF
16781 cat confdefs.h
>>conftest.
$ac_ext
16782 cat >>conftest.
$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16793 rm -f conftest.
$ac_objext conftest
$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>conftest.er1
16797 grep -v '^ *+' conftest.er1
>conftest.err
16799 cat conftest.err
>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try
='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try
='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16816 lt_aix_libpath_sed
='
16817 /Import File Strings/,/^$/ {
16823 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16824 # Check for a 64-bit object if we didn't find anything.
16825 if test -z "$aix_libpath"; then
16826 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.
$ac_ext >&5
16833 rm -f conftest.err conftest.
$ac_objext \
16834 conftest
$ac_exeext conftest.
$ac_ext
16835 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16837 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16838 # Warning - without using the other run time loading flags,
16839 # -berok will link without error, but may produce a broken library.
16840 no_undefined_flag
=' ${wl}-bernotok'
16841 allow_undefined_flag
=' ${wl}-berok'
16842 # Exported symbols can be pulled into shared objects from archives
16843 whole_archive_flag_spec
='$convenience'
16844 archive_cmds_need_lc
=yes
16845 # This is similar to how AIX traditionally builds its shared libraries.
16846 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'
16852 if test "$host_cpu" = m68k
; then
16853 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)'
16854 hardcode_libdir_flag_spec
='-L$libdir'
16855 hardcode_minus_L
=yes
16857 # see comment about different semantics on the GNU ld section
16862 export_dynamic_flag_spec
=-rdynamic
16865 cygwin
* | mingw
* | pw32
*)
16866 # When not using gcc, we currently assume that we are using
16867 # Microsoft Visual C++.
16868 # hardcode_libdir_flag_spec is actually meaningless, as there is
16869 # no search path for DLLs.
16870 hardcode_libdir_flag_spec
=' '
16871 allow_undefined_flag
=unsupported
16872 # Tell ltmain to make .lib files, not .a files.
16874 # Tell ltmain to make .dll files, not .so files.
16876 # FIXME: Setting linknames here is a bad hack.
16877 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16878 # The linker will automatically build a .lib file if we build a DLL.
16879 old_archive_from_new_cmds
='true'
16880 # FIXME: Should let the user specify the lib program.
16881 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16882 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16883 enable_shared_with_static_runtimes
=yes
16886 darwin
* | rhapsody
*)
16888 rhapsody
* | darwin1.
[012])
16889 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
16892 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16894 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16897 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
16902 archive_cmds_need_lc
=no
16904 hardcode_automatic
=yes
16905 hardcode_shlibpath_var
=unsupported
16906 whole_archive_flag_spec
=''
16907 link_all_deplibs
=yes
16908 if test "$GCC" = yes ; then
16909 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 lt_cv_apple_cc_single_mod
=no
16913 if test -z "${LT_MULTI_MODULE}"; then
16914 # By default we will add the -single_module flag. You can override
16915 # by either setting the environment variable LT_MULTI_MODULE
16916 # non-empty at configure time, or by adding -multi-module to the
16918 echo "int foo(void){return 1;}" > conftest.c
16919 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16920 -dynamiclib ${wl}-single_module conftest.c
16921 if test -f libconftest.dylib
; then
16922 lt_cv_apple_cc_single_mod
=yes
16923 rm libconftest.dylib
16925 rm conftest.
$ac_ext
16929 output_verbose_link_cmd
=echo
16930 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
16931 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16932 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}'
16934 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16935 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}'
16937 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16938 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}'
16940 case $cc_basename in
16942 output_verbose_link_cmd
=echo
16943 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16944 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16945 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16946 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}'
16947 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}'
16957 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_libdir_flag_spec
='-L$libdir'
16959 hardcode_shlibpath_var
=no
16966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16967 # support. Future versions do this automatically, but an explicit c++rt0.o
16968 # does not break anything, and helps significantly (at the cost of a little
16971 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16972 hardcode_libdir_flag_spec
='-R$libdir'
16973 hardcode_direct
=yes
16974 hardcode_shlibpath_var
=no
16977 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16979 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16980 hardcode_direct
=yes
16981 hardcode_minus_L
=yes
16982 hardcode_shlibpath_var
=no
16985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16986 freebsd
* | dragonfly
*)
16987 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16988 hardcode_libdir_flag_spec
='-R$libdir'
16989 hardcode_direct
=yes
16990 hardcode_shlibpath_var
=no
16994 if test "$GCC" = yes; then
16995 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'
16997 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'
16999 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17000 hardcode_libdir_separator
=:
17001 hardcode_direct
=yes
17003 # hardcode_minus_L: Not really in the search PATH,
17004 # but as the default location of the library.
17005 hardcode_minus_L
=yes
17006 export_dynamic_flag_spec
='${wl}-E'
17010 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17011 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17013 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17015 if test "$with_gnu_ld" = no
; then
17016 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17017 hardcode_libdir_flag_spec_ld
='+b $libdir'
17018 hardcode_libdir_separator
=:
17019 hardcode_direct
=yes
17020 hardcode_direct_absolute
=yes
17021 export_dynamic_flag_spec
='${wl}-E'
17022 # hardcode_minus_L: Not really in the search PATH,
17023 # but as the default location of the library.
17024 hardcode_minus_L
=yes
17029 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17032 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17044 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17054 if test "$with_gnu_ld" = no
; then
17055 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17056 hardcode_libdir_separator
=:
17061 hardcode_shlibpath_var
=no
17064 hardcode_direct
=yes
17065 hardcode_direct_absolute
=yes
17066 export_dynamic_flag_spec
='${wl}-E'
17068 # hardcode_minus_L: Not really in the search PATH,
17069 # but as the default location of the library.
17070 hardcode_minus_L
=yes
17076 irix5
* | irix6
* | nonstopux
*)
17077 if test "$GCC" = yes; then
17078 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'
17079 # Try to use the -exported_symbol ld option, if it does not
17080 # work, assume that -exports_file does not work either and
17081 # implicitly export all symbols.
17082 save_LDFLAGS
="$LDFLAGS"
17083 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17084 cat >conftest.
$ac_ext <<_ACEOF
17087 rm -f conftest.
$ac_objext conftest
$ac_exeext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17089 (eval $ac_link) 2>conftest.er1
17091 grep -v '^ *+' conftest.er1
>conftest.err
17093 cat conftest.err
>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try
='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try
='test -s conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 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'
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.
$ac_ext >&5
17116 rm -f conftest.err conftest.
$ac_objext \
17117 conftest
$ac_exeext conftest.
$ac_ext
17118 LDFLAGS
="$save_LDFLAGS"
17120 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'
17121 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'
17123 archive_cmds_need_lc
='no'
17124 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17125 hardcode_libdir_separator
=:
17127 link_all_deplibs
=yes
17131 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17132 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17134 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17136 hardcode_libdir_flag_spec
='-R$libdir'
17137 hardcode_direct
=yes
17138 hardcode_shlibpath_var
=no
17142 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143 hardcode_direct
=yes
17144 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17145 hardcode_libdir_separator
=:
17146 hardcode_shlibpath_var
=no
17153 hardcode_direct
=yes
17154 hardcode_shlibpath_var
=no
17155 hardcode_direct_absolute
=yes
17156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17157 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17158 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17159 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17160 export_dynamic_flag_spec
='${wl}-E'
17163 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17164 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17165 hardcode_libdir_flag_spec
='-R$libdir'
17168 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17169 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17176 hardcode_libdir_flag_spec
='-L$libdir'
17177 hardcode_minus_L
=yes
17178 allow_undefined_flag
=unsupported
17179 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'
17180 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17184 if test "$GCC" = yes; then
17185 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17186 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'
17188 allow_undefined_flag
=' -expect_unresolved \*'
17189 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'
17191 archive_cmds_need_lc
='no'
17192 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17193 hardcode_libdir_separator
=:
17196 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17197 if test "$GCC" = yes; then
17198 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17199 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'
17200 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17202 allow_undefined_flag
=' -expect_unresolved \*'
17203 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'
17204 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~
17205 $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'
17207 # Both c and cxx compiler support -rpath directly
17208 hardcode_libdir_flag_spec
='-rpath $libdir'
17210 archive_cmds_need_lc
='no'
17211 hardcode_libdir_separator
=:
17215 no_undefined_flag
=' -z defs'
17216 if test "$GCC" = yes; then
17218 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17219 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17220 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17222 case `$CC -V 2>&1` in
17225 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17231 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17232 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17233 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17237 hardcode_libdir_flag_spec
='-R$libdir'
17238 hardcode_shlibpath_var
=no
17240 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17242 # The compiler driver will combine and reorder linker options,
17243 # but understands `-z linker_flag'. GCC discards it without `$wl',
17244 # but is careful enough not to reorder.
17245 # Supported since Solaris 2.6 (maybe 2.5.1?)
17246 if test "$GCC" = yes; then
17247 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17249 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17253 link_all_deplibs
=yes
17257 if test "x$host_vendor" = xsequent
; then
17258 # Use $CC to link under sequent, because it throws in some extra .o
17259 # files that make .init and .fini sections work.
17260 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17262 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17264 hardcode_libdir_flag_spec
='-L$libdir'
17265 hardcode_direct
=yes
17266 hardcode_minus_L
=yes
17267 hardcode_shlibpath_var
=no
17271 case $host_vendor in
17273 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17274 hardcode_direct
=yes # is this really true???
17277 ## LD is ld it makes a PLAMLIB
17278 ## CC just makes a GrossModule.
17279 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17280 reload_cmds
='$CC -r -o $output$reload_objs'
17284 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17288 runpath_var
='LD_RUN_PATH'
17289 hardcode_shlibpath_var
=no
17293 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294 hardcode_shlibpath_var
=no
17295 export_dynamic_flag_spec
='-Bexport'
17299 if test -d /usr
/nec
; then
17300 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17301 hardcode_shlibpath_var
=no
17302 runpath_var
=LD_RUN_PATH
17303 hardcode_runpath_var
=yes
17308 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17309 no_undefined_flag
='${wl}-z,text'
17310 archive_cmds_need_lc
=no
17311 hardcode_shlibpath_var
=no
17312 runpath_var
='LD_RUN_PATH'
17314 if test "$GCC" = yes; then
17315 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17316 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17323 sysv5
* | sco3.2v5
* | sco5v6
*)
17324 # Note: We can NOT use -z defs as we might desire, because we do not
17325 # link with -lc, and that would cause any symbols used from libc to
17326 # always be unresolved, which means just about no library would
17327 # ever link correctly. If we're not using GNU ld we use -z text
17328 # though, which does catch some bad symbols but isn't as heavy-handed
17330 no_undefined_flag
='${wl}-z,text'
17331 allow_undefined_flag
='${wl}-z,nodefs'
17332 archive_cmds_need_lc
=no
17333 hardcode_shlibpath_var
=no
17334 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17335 hardcode_libdir_separator
=':'
17336 link_all_deplibs
=yes
17337 export_dynamic_flag_spec
='${wl}-Bexport'
17338 runpath_var
='LD_RUN_PATH'
17340 if test "$GCC" = yes; then
17341 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17342 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17351 hardcode_libdir_flag_spec
='-L$libdir'
17352 hardcode_shlibpath_var
=no
17360 if test x
$host_vendor = xsni
; then
17362 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17363 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17369 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17370 echo "${ECHO_T}$ld_shlibs" >&6
17371 test "$ld_shlibs" = no
&& can_build_shared
=no
17373 with_gnu_ld
=$with_gnu_ld
17390 # Do we need to explicitly link libc?
17392 case "x$archive_cmds_need_lc" in
17394 # Assume -lc should be added
17395 archive_cmds_need_lc
=yes
17397 if test "$enable_shared" = yes && test "$GCC" = yes; then
17398 case $archive_cmds in
17400 # FIXME: we may have to deal with multi-command sequences.
17403 # Test whether the compiler implicitly links with -lc since on some
17404 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17405 # to ld, don't add -lc before -lgcc.
17406 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17409 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } 2>conftest.err
; then
17418 libobjs
=conftest.
$ac_objext
17420 wl
=$lt_prog_compiler_wl
17421 pic_flag
=$lt_prog_compiler_pic
17427 lt_save_allow_undefined_flag
=$allow_undefined_flag
17428 allow_undefined_flag
=
17429 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17430 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }
17435 archive_cmds_need_lc
=no
17437 archive_cmds_need_lc
=yes
17439 allow_undefined_flag
=$lt_save_allow_undefined_flag
17441 cat conftest.err
1>&5
17444 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17445 echo "${ECHO_T}$archive_cmds_need_lc" >&6
17608 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17609 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17611 if test "$withGCC" = yes; then
17613 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17614 *) lt_awk_arg
="/^libraries:/" ;;
17616 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17617 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
17618 # if the path contains ";" then we assume it to be the separator
17619 # otherwise default to the standard path separator (i.e. ":") - it is
17620 # assumed that no part of a normal pathname contains ";" but that should
17621 # okay in the real world where ";" in dirpaths is itself problematic.
17622 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17624 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17626 # Ok, now we have the path, separated by spaces, we can step through it
17627 # and add multilib dir if necessary.
17628 lt_tmp_lt_search_path_spec
=
17629 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17630 for lt_sys_path
in $lt_search_path_spec; do
17631 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17632 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17634 test -d "$lt_sys_path" && \
17635 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17638 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
17639 BEGIN {RS=" "; FS="/|\n";} {
17642 for (lt_i = NF; lt_i > 0; lt_i--) {
17643 if ($lt_i != "" && $lt_i != ".") {
17644 if ($lt_i == "..") {
17647 if (lt_count == 0) {
17648 lt_foo="/" $lt_i lt_foo;
17655 if (lt_foo != "") { lt_freq[lt_foo]++; }
17656 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17658 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
17660 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17662 library_names_spec
=
17663 libname_spec
='lib$name'
17667 postuninstall_cmds
=
17671 shlibpath_overrides_runpath
=unknown
17673 dynamic_linker
="$host_os ld.so"
17674 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17675 need_lib_prefix
=unknown
17676 hardcode_into_libs
=no
17678 # when you set need_version to no, make sure it does not cause -set_version
17679 # flags to be left without arguments
17680 need_version
=unknown
17685 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17686 shlibpath_var
=LIBPATH
17688 # AIX 3 has no versioning support, so we append a major version to the name.
17689 soname_spec
='${libname}${release}${shared_ext}$major'
17696 hardcode_into_libs
=yes
17697 if test "$host_cpu" = ia64
; then
17698 # AIX 5 supports IA64
17699 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17700 shlibpath_var
=LD_LIBRARY_PATH
17702 # With GCC up to 2.95.x, collect2 would create an import file
17703 # for dependence libraries. The import file would start with
17704 # the line `#! .'. This would cause the generated library to
17705 # depend on `.', always an invalid library. This was fixed in
17706 # development snapshots of GCC prior to 3.0.
17708 aix4 | aix4.
[01] | aix4.
[01].
*)
17709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17711 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17714 can_build_shared
=no
17718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17719 # soname into executable. Probably we can add versioning support to
17720 # collect2, so additional links can be useful in future.
17721 if test "$aix_use_runtimelinking" = yes; then
17722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17723 # instead of lib<name>.a to let people know that these are not
17724 # typical AIX shared libraries.
17725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 # We preserve .a as extension for shared libraries through AIX4.2
17728 # and later when we are not doing run time linking.
17729 library_names_spec
='${libname}${release}.a $libname.a'
17730 soname_spec
='${libname}${release}${shared_ext}$major'
17732 shlibpath_var
=LIBPATH
17737 if test "$host_cpu" = m68k
; then
17738 library_names_spec
='$libname.ixlibrary $libname.a'
17739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17740 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'
17747 library_names_spec
='${libname}${shared_ext}'
17748 dynamic_linker
="$host_os ld.so"
17749 shlibpath_var
=LIBRARY_PATH
17755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756 soname_spec
='${libname}${release}${shared_ext}$major'
17757 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17758 shlibpath_var
=LD_LIBRARY_PATH
17759 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17760 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17761 # the default ld.so.conf also contains /usr/contrib/lib and
17762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17763 # libtool to hard-code these into programs
17766 cygwin
* | mingw
* | pw32
*)
17767 version_type
=windows
17772 case $withGCC,$host_os in
17773 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17774 library_names_spec
='$libname.dll.a'
17775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17776 postinstall_cmds
='base_file=`basename \${file}`~
17777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17778 dldir=$destdir/`dirname \$dlpath`~
17779 test -d \$dldir || mkdir -p \$dldir~
17780 $install_prog $dir/$dlname \$dldir/$dlname~
17781 chmod a+x \$dldir/$dlname~
17782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17785 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17786 dlpath=$dir/\$dldll~
17788 shlibpath_overrides_runpath
=yes
17792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17793 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17794 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17797 # MinGW DLLs use traditional 'lib' prefix
17798 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17800 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
17801 # It is most probably a Windows format PATH printed by
17802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17803 # path with ; separators, and with drive letters. We can handle the
17804 # drive letters (cygwin fileutils understands them), so leave them,
17805 # especially as we might pass files found there to a mingw objdump,
17806 # which wouldn't understand a cygwinified path. Ahh.
17807 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17809 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17813 # pw32 DLLs use 'pw' prefix rather than 'lib'
17814 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17820 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17823 dynamic_linker
='Win32 ld.exe'
17824 # FIXME: first we should search . and the directory the executable is in
17828 darwin
* | rhapsody
*)
17829 dynamic_linker
="$host_os dyld"
17830 version_type
=darwin
17833 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17834 soname_spec
='${libname}${release}${major}$shared_ext'
17835 shlibpath_overrides_runpath
=yes
17836 shlibpath_var
=DYLD_LIBRARY_PATH
17837 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17839 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17840 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17848 soname_spec
='${libname}${release}${shared_ext}$major'
17849 shlibpath_var
=LD_LIBRARY_PATH
17856 freebsd
* | dragonfly
*)
17857 # DragonFly does not have aout. When/if they implement a new
17858 # versioning mechanism, adjust this.
17859 if test -x /usr
/bin
/objformat
; then
17860 objformat
=`/usr/bin/objformat`
17863 freebsd
[123]*) objformat
=aout
;;
17864 *) objformat
=elf
;;
17867 version_type
=freebsd-
$objformat
17868 case $version_type in
17870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17875 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17879 shlibpath_var
=LD_LIBRARY_PATH
17882 shlibpath_overrides_runpath
=yes
17884 freebsd3.
[01]* | freebsdelf3.
[01]*)
17885 shlibpath_overrides_runpath
=yes
17886 hardcode_into_libs
=yes
17888 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17889 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17890 shlibpath_overrides_runpath
=no
17891 hardcode_into_libs
=yes
17893 *) # from 4.6 on, and DragonFly
17894 shlibpath_overrides_runpath
=yes
17895 hardcode_into_libs
=yes
17904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17905 soname_spec
='${libname}${release}${shared_ext}$major'
17906 shlibpath_var
=LD_LIBRARY_PATH
17907 hardcode_into_libs
=yes
17910 hpux9
* | hpux10
* | hpux11
*)
17911 # Give a soname corresponding to the major version so that dld.sl refuses to
17912 # link against other versions.
17919 hardcode_into_libs
=yes
17920 dynamic_linker
="$host_os dld.so"
17921 shlibpath_var
=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec
='${libname}${release}${shared_ext}$major'
17925 if test "X$HPUX_IA64_MODE" = X32
; then
17926 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17928 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17930 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17934 hardcode_into_libs
=yes
17935 dynamic_linker
="$host_os dld.sl"
17936 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17937 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 soname_spec
='${libname}${release}${shared_ext}$major'
17940 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17941 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17945 dynamic_linker
="$host_os dld.sl"
17946 shlibpath_var
=SHLIB_PATH
17947 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec
='${libname}${release}${shared_ext}$major'
17952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17953 postinstall_cmds
='chmod 555 $lib'
17960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17961 soname_spec
='${libname}${release}${shared_ext}$major'
17962 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17963 shlibpath_var
=LD_LIBRARY_PATH
17964 shlibpath_overrides_runpath
=no
17965 hardcode_into_libs
=yes
17968 irix5
* | irix6
* | nonstopux
*)
17970 nonstopux
*) version_type
=nonstopux
;;
17972 if test "$lt_cv_prog_gnu_ld" = yes; then
17980 soname_spec
='${libname}${release}${shared_ext}$major'
17981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17983 irix5
* | nonstopux
*)
17984 libsuff
= shlibsuff
=
17987 case $LD in # libtool.m4 will add one of these switches to LD
17988 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17989 libsuff
= shlibsuff
= libmagic
=32-bit;;
17990 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17991 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17992 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17993 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17994 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17998 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17999 shlibpath_overrides_runpath
=no
18000 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18001 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18002 hardcode_into_libs
=yes
18005 # No shared lib support for Linux oldld, aout, or coff.
18006 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18010 # This must be Linux ELF.
18011 linux
* | k
*bsd
*-gnu)
18015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18016 soname_spec
='${libname}${release}${shared_ext}$major'
18017 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18018 shlibpath_var
=LD_LIBRARY_PATH
18019 shlibpath_overrides_runpath
=no
18020 # Some binutils ld are patched to set DT_RUNPATH
18021 save_LDFLAGS
=$LDFLAGS
18022 save_libdir
=$libdir
18023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18025 cat >conftest.
$ac_ext <<_ACEOF
18028 cat confdefs.h
>>conftest.
$ac_ext
18029 cat >>conftest.
$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18040 rm -f conftest.
$ac_objext conftest
$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042 (eval $ac_link) 2>conftest.er1
18044 grep -v '^ *+' conftest.er1
>conftest.err
18046 cat conftest.err
>&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try
='test -z "$ac_c_werror_flag"
18050 || test ! -s conftest.err'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; } &&
18056 { ac_try
='test -s conftest$ac_exeext'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
18063 shlibpath_overrides_runpath
=yes
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.
$ac_ext >&5
18071 rm -f conftest.err conftest.
$ac_objext \
18072 conftest
$ac_exeext conftest.
$ac_ext
18073 LDFLAGS
=$save_LDFLAGS
18074 libdir
=$save_libdir
18076 # This implies no fast_install, which is unacceptable.
18077 # Some rework will be needed to allow for fast_install
18078 # before this can be enabled.
18079 hardcode_into_libs
=yes
18081 # Append ld.so.conf contents to the search path
18082 if test -f /etc
/ld.so.conf
; then
18083 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' ' '`
18084 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18087 # We used to test for /lib/ld.so.1 and disable shared libraries on
18088 # powerpc, because MkLinux only supported shared libraries with the
18089 # GNU dynamic linker. Since this was broken with cross compilers,
18090 # most powerpc-linux boxes support dynamic linking these days and
18091 # people can always --disable-shared, the test was removed, and we
18092 # assume the GNU/Linux dynamic linker is in use.
18093 dynamic_linker
='GNU/Linux ld.so'
18100 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18102 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18103 dynamic_linker
='NetBSD (a.out) ld.so'
18105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18106 soname_spec
='${libname}${release}${shared_ext}$major'
18107 dynamic_linker
='NetBSD ld.elf_so'
18109 shlibpath_var
=LD_LIBRARY_PATH
18110 shlibpath_overrides_runpath
=yes
18111 hardcode_into_libs
=yes
18116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18117 shlibpath_var
=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath
=yes
18125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126 soname_spec
='${libname}${release}${shared_ext}$major'
18127 shlibpath_var
=LD_LIBRARY_PATH
18128 shlibpath_overrides_runpath
=no
18129 hardcode_into_libs
=yes
18130 dynamic_linker
='ldqnx.so'
18135 sys_lib_dlsearch_path_spec
="/usr/lib"
18137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18139 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18140 *) need_version
=no
;;
18142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18143 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18144 shlibpath_var
=LD_LIBRARY_PATH
18145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18147 openbsd2.
[89] | openbsd2.
[89].
*)
18148 shlibpath_overrides_runpath
=no
18151 shlibpath_overrides_runpath
=yes
18155 shlibpath_overrides_runpath
=yes
18160 libname_spec
='$name'
18163 library_names_spec
='$libname${shared_ext} $libname.a'
18164 dynamic_linker
='OS/2 ld.exe'
18165 shlibpath_var
=LIBPATH
18168 osf3
* | osf4
* | osf5
*)
18172 soname_spec
='${libname}${release}${shared_ext}$major'
18173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 shlibpath_var
=LD_LIBRARY_PATH
18175 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18176 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188 soname_spec
='${libname}${release}${shared_ext}$major'
18189 shlibpath_var
=LD_LIBRARY_PATH
18190 shlibpath_overrides_runpath
=yes
18191 hardcode_into_libs
=yes
18192 # ldd complains unless libraries are executable
18193 postinstall_cmds
='chmod +x $lib'
18198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18199 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18200 shlibpath_var
=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath
=yes
18202 if test "$with_gnu_ld" = yes; then
18210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 soname_spec
='${libname}${release}${shared_ext}$major'
18212 shlibpath_var
=LD_LIBRARY_PATH
18213 case $host_vendor in
18215 shlibpath_overrides_runpath
=no
18217 runpath_var
=LD_RUN_PATH
18225 shlibpath_overrides_runpath
=no
18226 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18232 if test -d /usr
/nec
;then
18234 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18235 soname_spec
='$libname${shared_ext}.$major'
18236 shlibpath_var
=LD_LIBRARY_PATH
18240 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18241 version_type
=freebsd-elf
18244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18245 soname_spec
='${libname}${release}${shared_ext}$major'
18246 shlibpath_var
=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath
=yes
18248 hardcode_into_libs
=yes
18249 if test "$with_gnu_ld" = yes; then
18250 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18252 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18255 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18259 sys_lib_dlsearch_path_spec
='/usr/lib'
18263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18267 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 shlibpath_var
=LD_LIBRARY_PATH
18269 shlibpath_overrides_runpath
=no
18270 hardcode_into_libs
=yes
18275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec
='${libname}${release}${shared_ext}$major'
18277 shlibpath_var
=LD_LIBRARY_PATH
18284 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18285 echo "${ECHO_T}$dynamic_linker" >&6
18286 test "$dynamic_linker" = no
&& can_build_shared
=no
18288 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18289 if test "$GCC" = yes; then
18290 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18379 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18380 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18382 if test -n "$hardcode_libdir_flag_spec" ||
18383 test -n "$runpath_var" ||
18384 test "X$hardcode_automatic" = "Xyes" ; then
18386 # We can hardcode non-existent directories.
18387 if test "$hardcode_direct" != no
&&
18388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18389 # have to relink, otherwise we might link with an installed library
18390 # when we should be linking with a yet-to-be-installed one
18391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18392 test "$hardcode_minus_L" != no
; then
18393 # Linking always hardcodes the temporary library directory.
18394 hardcode_action
=relink
18396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18397 hardcode_action
=immediate
18400 # We cannot hardcode anything, or else we can only hardcode existing
18402 hardcode_action
=unsupported
18404 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18405 echo "${ECHO_T}$hardcode_action" >&6
18407 if test "$hardcode_action" = relink ||
18408 test "$inherit_rpath" = yes; then
18409 # Fast installation is not supported
18410 enable_fast_install
=no
18411 elif test "$shlibpath_overrides_runpath" = yes ||
18412 test "$enable_shared" = no
; then
18413 # Fast installation is not necessary
18414 enable_fast_install
=needless
18422 if test "x$enable_dlopen" != xyes
; then
18423 enable_dlopen
=unknown
18424 enable_dlopen_self
=unknown
18425 enable_dlopen_self_static
=unknown
18432 lt_cv_dlopen
="load_add_on"
18434 lt_cv_dlopen_self
=yes
18438 lt_cv_dlopen
="LoadLibrary"
18443 lt_cv_dlopen
="dlopen"
18448 # if libdl is installed we need to link against it
18449 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 ac_check_lib_save_LIBS
=$LIBS
18456 cat >conftest.
$ac_ext <<_ACEOF
18459 cat confdefs.h
>>conftest.
$ac_ext
18460 cat >>conftest.
$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18463 /* Override any gcc2 internal prototype to avoid an error. */
18467 /* We use char because int might match the return type of a gcc2
18468 builtin and then its argument prototype would still apply. */
18478 rm -f conftest.
$ac_objext conftest
$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>conftest.er1
18482 grep -v '^ *+' conftest.er1
>conftest.err
18484 cat conftest.err
>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } &&
18487 { ac_try
='test -z "$ac_c_werror_flag"
18488 || test ! -s conftest.err'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try
='test -s conftest$ac_exeext'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_cv_lib_dl_dlopen
=yes
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.
$ac_ext >&5
18505 ac_cv_lib_dl_dlopen
=no
18507 rm -f conftest.err conftest.
$ac_objext \
18508 conftest
$ac_exeext conftest.
$ac_ext
18509 LIBS
=$ac_check_lib_save_LIBS
18511 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18513 if test $ac_cv_lib_dl_dlopen = yes; then
18514 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18517 lt_cv_dlopen
="dyld"
18519 lt_cv_dlopen_self
=yes
18526 echo "$as_me:$LINENO: checking for shl_load" >&5
18527 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18528 if test "${ac_cv_func_shl_load+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 cat >conftest.
$ac_ext <<_ACEOF
18534 cat confdefs.h
>>conftest.
$ac_ext
18535 cat >>conftest.
$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18539 #define shl_load innocuous_shl_load
18541 /* System header to define __stub macros and hopefully few prototypes,
18542 which can conflict with char shl_load (); below.
18543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18544 <limits.h> exists even on freestanding compilers. */
18547 # include <limits.h>
18549 # include <assert.h>
18554 /* Override any gcc2 internal prototype to avoid an error. */
18559 /* We use char because int might match the return type of a gcc2
18560 builtin and then its argument prototype would still apply. */
18562 /* The GNU C library defines this for functions which it implements
18563 to always fail with ENOSYS. Some functions are actually named
18564 something starting with __ and the normal name is an alias. */
18565 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18568 char (*f) () = shl_load;
18577 return f != shl_load;
18582 rm -f conftest.
$ac_objext conftest
$ac_exeext
18583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18584 (eval $ac_link) 2>conftest.er1
18586 grep -v '^ *+' conftest.er1
>conftest.err
18588 cat conftest.err
>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
18591 { ac_try
='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try
='test -s conftest$ac_exeext'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
18604 ac_cv_func_shl_load
=yes
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.
$ac_ext >&5
18609 ac_cv_func_shl_load
=no
18611 rm -f conftest.err conftest.
$ac_objext \
18612 conftest
$ac_exeext conftest.
$ac_ext
18614 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18615 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18616 if test $ac_cv_func_shl_load = yes; then
18617 lt_cv_dlopen
="shl_load"
18619 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18620 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18621 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 ac_check_lib_save_LIBS
=$LIBS
18626 cat >conftest.
$ac_ext <<_ACEOF
18629 cat confdefs.h
>>conftest.
$ac_ext
18630 cat >>conftest.
$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18633 /* Override any gcc2 internal prototype to avoid an error. */
18637 /* We use char because int might match the return type of a gcc2
18638 builtin and then its argument prototype would still apply. */
18648 rm -f conftest.
$ac_objext conftest
$ac_exeext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18650 (eval $ac_link) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1
>conftest.err
18654 cat conftest.err
>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try
='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try
='test -s conftest$ac_exeext'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_cv_lib_dld_shl_load
=yes
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.
$ac_ext >&5
18675 ac_cv_lib_dld_shl_load
=no
18677 rm -f conftest.err conftest.
$ac_objext \
18678 conftest
$ac_exeext conftest.
$ac_ext
18679 LIBS
=$ac_check_lib_save_LIBS
18681 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18683 if test $ac_cv_lib_dld_shl_load = yes; then
18684 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
18686 echo "$as_me:$LINENO: checking for dlopen" >&5
18687 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18688 if test "${ac_cv_func_dlopen+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 cat >conftest.
$ac_ext <<_ACEOF
18694 cat confdefs.h
>>conftest.
$ac_ext
18695 cat >>conftest.
$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18699 #define dlopen innocuous_dlopen
18701 /* System header to define __stub macros and hopefully few prototypes,
18702 which can conflict with char dlopen (); below.
18703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704 <limits.h> exists even on freestanding compilers. */
18707 # include <limits.h>
18709 # include <assert.h>
18714 /* Override any gcc2 internal prototype to avoid an error. */
18719 /* We use char because int might match the return type of a gcc2
18720 builtin and then its argument prototype would still apply. */
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18728 char (*f) () = dlopen;
18737 return f != dlopen;
18742 rm -f conftest.
$ac_objext conftest
$ac_exeext
18743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18744 (eval $ac_link) 2>conftest.er1
18746 grep -v '^ *+' conftest.er1
>conftest.err
18748 cat conftest.err
>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try
='test -z "$ac_c_werror_flag"
18752 || test ! -s conftest.err'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try
='test -s conftest$ac_exeext'
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_func_dlopen
=yes
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.
$ac_ext >&5
18769 ac_cv_func_dlopen
=no
18771 rm -f conftest.err conftest.
$ac_objext \
18772 conftest
$ac_exeext conftest.
$ac_ext
18774 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18775 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18776 if test $ac_cv_func_dlopen = yes; then
18777 lt_cv_dlopen
="dlopen"
18779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_check_lib_save_LIBS
=$LIBS
18786 cat >conftest.
$ac_ext <<_ACEOF
18789 cat confdefs.h
>>conftest.
$ac_ext
18790 cat >>conftest.
$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18793 /* Override any gcc2 internal prototype to avoid an error. */
18797 /* We use char because int might match the return type of a gcc2
18798 builtin and then its argument prototype would still apply. */
18808 rm -f conftest.
$ac_objext conftest
$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810 (eval $ac_link) 2>conftest.er1
18812 grep -v '^ *+' conftest.er1
>conftest.err
18814 cat conftest.err
>&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try
='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try
='test -s conftest$ac_exeext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_cv_lib_dl_dlopen
=yes
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.
$ac_ext >&5
18835 ac_cv_lib_dl_dlopen
=no
18837 rm -f conftest.err conftest.
$ac_objext \
18838 conftest
$ac_exeext conftest.
$ac_ext
18839 LIBS
=$ac_check_lib_save_LIBS
18841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18843 if test $ac_cv_lib_dl_dlopen = yes; then
18844 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18846 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 ac_check_lib_save_LIBS
=$LIBS
18852 LIBS
="-lsvld $LIBS"
18853 cat >conftest.
$ac_ext <<_ACEOF
18856 cat confdefs.h
>>conftest.
$ac_ext
18857 cat >>conftest.
$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18860 /* Override any gcc2 internal prototype to avoid an error. */
18864 /* We use char because int might match the return type of a gcc2
18865 builtin and then its argument prototype would still apply. */
18875 rm -f conftest.
$ac_objext conftest
$ac_exeext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18877 (eval $ac_link) 2>conftest.er1
18879 grep -v '^ *+' conftest.er1
>conftest.err
18881 cat conftest.err
>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try
='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try
='test -s conftest$ac_exeext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_cv_lib_svld_dlopen
=yes
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.
$ac_ext >&5
18902 ac_cv_lib_svld_dlopen
=no
18904 rm -f conftest.err conftest.
$ac_objext \
18905 conftest
$ac_exeext conftest.
$ac_ext
18906 LIBS
=$ac_check_lib_save_LIBS
18908 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18910 if test $ac_cv_lib_svld_dlopen = yes; then
18911 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18913 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18914 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18915 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 ac_check_lib_save_LIBS
=$LIBS
18920 cat >conftest.
$ac_ext <<_ACEOF
18923 cat confdefs.h
>>conftest.
$ac_ext
18924 cat >>conftest.
$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18927 /* Override any gcc2 internal prototype to avoid an error. */
18931 /* We use char because int might match the return type of a gcc2
18932 builtin and then its argument prototype would still apply. */
18942 rm -f conftest.
$ac_objext conftest
$ac_exeext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18944 (eval $ac_link) 2>conftest.er1
18946 grep -v '^ *+' conftest.er1
>conftest.err
18948 cat conftest.err
>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try
='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try
='test -s conftest$ac_exeext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_dld_dld_link
=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.
$ac_ext >&5
18969 ac_cv_lib_dld_dld_link
=no
18971 rm -f conftest.err conftest.
$ac_objext \
18972 conftest
$ac_exeext conftest.
$ac_ext
18973 LIBS
=$ac_check_lib_save_LIBS
18975 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18977 if test $ac_cv_lib_dld_dld_link = yes; then
18978 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
18999 if test "x$lt_cv_dlopen" != xno
; then
19005 case $lt_cv_dlopen in
19007 save_CPPFLAGS
="$CPPFLAGS"
19008 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19010 save_LDFLAGS
="$LDFLAGS"
19011 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19014 LIBS
="$lt_cv_dlopen_libs $LIBS"
19016 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19018 if test "${lt_cv_dlopen_self+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 if test "$cross_compiling" = yes; then :
19022 lt_cv_dlopen_self
=cross
19024 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19025 lt_status
=$lt_dlunknown
19026 cat > conftest.
$ac_ext <<_LT_EOF
19027 #line 19027 "configure"
19028 #include "confdefs.h"
19037 # define LT_DLGLOBAL RTLD_GLOBAL
19040 # define LT_DLGLOBAL DL_GLOBAL
19042 # define LT_DLGLOBAL 0
19046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19047 find out it does not work in some platform. */
19048 #ifndef LT_DLLAZY_OR_NOW
19050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19053 # define LT_DLLAZY_OR_NOW DL_LAZY
19056 # define LT_DLLAZY_OR_NOW RTLD_NOW
19059 # define LT_DLLAZY_OR_NOW DL_NOW
19061 # define LT_DLLAZY_OR_NOW 0
19069 extern "C" void exit (int);
19072 void fnord() { int i=42;}
19075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19076 int status = $lt_dlunknown;
19080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19081 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19082 /* dlclose (self); */
19090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19091 (eval $ac_link) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19095 (.
/conftest
; exit; ) >&5 2>/dev
/null
19097 case x
$lt_status in
19098 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19099 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19100 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19103 # compilation failed
19104 lt_cv_dlopen_self
=no
19111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19114 if test "x$lt_cv_dlopen_self" = xyes
; then
19115 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19118 if test "${lt_cv_dlopen_self_static+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 if test "$cross_compiling" = yes; then :
19122 lt_cv_dlopen_self_static
=cross
19124 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19125 lt_status
=$lt_dlunknown
19126 cat > conftest.
$ac_ext <<_LT_EOF
19127 #line 19127 "configure"
19128 #include "confdefs.h"
19137 # define LT_DLGLOBAL RTLD_GLOBAL
19140 # define LT_DLGLOBAL DL_GLOBAL
19142 # define LT_DLGLOBAL 0
19146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19147 find out it does not work in some platform. */
19148 #ifndef LT_DLLAZY_OR_NOW
19150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19153 # define LT_DLLAZY_OR_NOW DL_LAZY
19156 # define LT_DLLAZY_OR_NOW RTLD_NOW
19159 # define LT_DLLAZY_OR_NOW DL_NOW
19161 # define LT_DLLAZY_OR_NOW 0
19169 extern "C" void exit (int);
19172 void fnord() { int i=42;}
19175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19176 int status = $lt_dlunknown;
19180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19182 /* dlclose (self); */
19190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191 (eval $ac_link) 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19195 (.
/conftest
; exit; ) >&5 2>/dev
/null
19197 case x
$lt_status in
19198 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19199 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19200 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19203 # compilation failed
19204 lt_cv_dlopen_self_static
=no
19211 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19212 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19215 CPPFLAGS
="$save_CPPFLAGS"
19216 LDFLAGS
="$save_LDFLAGS"
19221 case $lt_cv_dlopen_self in
19222 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19223 *) enable_dlopen_self
=unknown
;;
19226 case $lt_cv_dlopen_self_static in
19227 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19228 *) enable_dlopen_self_static
=unknown
;;
19250 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19251 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19252 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19253 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19254 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19255 echo "$as_me:$LINENO: result: yes" >&5
19256 echo "${ECHO_T}yes" >&6
19258 # FIXME - insert some real tests, host_os isn't really good enough
19261 if test -n "$STRIP" ; then
19262 striplib
="$STRIP -x"
19263 old_striplib
="$STRIP -S"
19264 echo "$as_me:$LINENO: result: yes" >&5
19265 echo "${ECHO_T}yes" >&6
19267 echo "$as_me:$LINENO: result: no" >&5
19268 echo "${ECHO_T}no" >&6
19272 echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19289 # Report which library types will actually be built
19290 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19291 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19292 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19293 echo "${ECHO_T}$can_build_shared" >&6
19295 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19296 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19297 test "$can_build_shared" = "no" && enable_shared
=no
19299 # On AIX, shared libraries and static libraries use the same namespace, and
19300 # are all built from PIC.
19303 test "$enable_shared" = yes && enable_static
=no
19304 if test -n "$RANLIB"; then
19305 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19306 postinstall_cmds
='$RANLIB $lib'
19311 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19312 test "$enable_shared" = yes && enable_static
=no
19316 echo "$as_me:$LINENO: result: $enable_shared" >&5
19317 echo "${ECHO_T}$enable_shared" >&6
19319 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19320 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19321 # Make sure either enable_shared or enable_static is yes.
19322 test "$enable_shared" = yes || enable_static
=yes
19323 echo "$as_me:$LINENO: result: $enable_static" >&5
19324 echo "${ECHO_T}$enable_static" >&6
19331 ac_cpp
='$CPP $CPPFLAGS'
19332 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19353 # Only expand once:
19359 # Identify the assembler which will work hand-in-glove with the newly
19360 # built GCC, so that we can examine its features. This is the assembler
19361 # which will be driven by the driver program.
19363 # If build != host, and we aren't building gas in-tree, we identify a
19364 # build->target assembler and hope that it will have the same features
19365 # as the host->target assembler we'll be using.
19366 gcc_cv_gas_major_version
=
19367 gcc_cv_gas_minor_version
=
19368 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19370 if test "${gcc_cv_as+set}" = set; then
19374 if test -x "$DEFAULT_ASSEMBLER"; then
19375 gcc_cv_as
="$DEFAULT_ASSEMBLER"
19376 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
19377 && test -f ..
/gas
/Makefile \
19378 && test x
$build = x
$host; then
19379 gcc_cv_as
=..
/gas
/as-new
$build_exeext
19380 elif test -x as
$build_exeext; then
19381 # Build using assembler in the current directory.
19382 gcc_cv_as
=.
/as
$build_exeext
19383 elif test -x $AS_FOR_TARGET; then
19384 gcc_cv_as
="$AS_FOR_TARGET"
19386 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19387 set dummy
$AS_FOR_TARGET; ac_word
=$2
19388 echo "$as_me:$LINENO: checking for $ac_word" >&5
19389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19390 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
19398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19399 for as_dir
in $PATH
19402 test -z "$as_dir" && as_dir
=.
19403 for ac_exec_ext
in '' $ac_executable_extensions; do
19404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19405 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
19406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19415 gcc_cv_as
=$ac_cv_path_gcc_cv_as
19417 if test -n "$gcc_cv_as"; then
19418 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19419 echo "${ECHO_T}$gcc_cv_as" >&6
19421 echo "$as_me:$LINENO: result: no" >&5
19422 echo "${ECHO_T}no" >&6
19429 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
19431 case "$ORIGINAL_AS_FOR_TARGET" in
19432 .
/as | .
/as
$build_exeext) ;;
19433 *) ac_config_files
="$ac_config_files as:exec-tool.in"
19437 echo "$as_me:$LINENO: checking what assembler to use" >&5
19438 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
19439 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
19440 # Single tree build which includes gas. We want to prefer it
19441 # over whatever linker top-level may have detected, since
19442 # we'll use what we're building after installation anyway.
19443 echo "$as_me:$LINENO: result: newly built gas" >&5
19444 echo "${ECHO_T}newly built gas" >&6
19446 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19447 for f
in $gcc_cv_as_bfd_srcdir/configure \
19448 $gcc_cv_as_gas_srcdir/configure \
19449 $gcc_cv_as_gas_srcdir/configure.
in \
19450 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
19451 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19452 if test x
$gcc_cv_gas_version != x
; then
19456 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
19457 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19458 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
19459 case $gcc_cv_gas_patch_version in
19460 "") gcc_cv_gas_patch_version
="0" ;;
19462 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
19463 + $gcc_cv_gas_minor_version \) \* 1000 \
19464 + $gcc_cv_gas_patch_version`
19466 in_tree_gas_is_elf
=no
19467 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
19468 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
19469 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
19471 in_tree_gas_is_elf
=yes
19474 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19475 echo "${ECHO_T}$gcc_cv_as" >&6
19479 # Identify the linker which will work hand-in-glove with the newly
19480 # built GCC, so that we can examine its features. This is the linker
19481 # which will be driven by the driver program.
19483 # If build != host, and we aren't building gas in-tree, we identify a
19484 # build->target linker and hope that it will have the same features
19485 # as the host->target linker we'll be using.
19486 gcc_cv_gld_major_version
=
19487 gcc_cv_gld_minor_version
=
19488 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
19489 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19491 if test "${gcc_cv_ld+set}" = set; then
19495 if test -x "$DEFAULT_LINKER"; then
19496 gcc_cv_ld
="$DEFAULT_LINKER"
19497 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
19498 && test -f ..
/ld
/Makefile \
19499 && test x
$build = x
$host; then
19500 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
19501 elif test -x collect-ld
$build_exeext; then
19502 # Build using linker in the current directory.
19503 gcc_cv_ld
=.
/collect-ld
$build_exeext
19504 elif test -x $LD_FOR_TARGET; then
19505 gcc_cv_ld
="$LD_FOR_TARGET"
19507 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
19508 set dummy
$LD_FOR_TARGET; ac_word
=$2
19509 echo "$as_me:$LINENO: checking for $ac_word" >&5
19510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19511 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
19519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19520 for as_dir
in $PATH
19523 test -z "$as_dir" && as_dir
=.
19524 for ac_exec_ext
in '' $ac_executable_extensions; do
19525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19526 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
19527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19536 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
19538 if test -n "$gcc_cv_ld"; then
19539 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19540 echo "${ECHO_T}$gcc_cv_ld" >&6
19542 echo "$as_me:$LINENO: result: no" >&5
19543 echo "${ECHO_T}no" >&6
19550 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
19552 case "$ORIGINAL_LD_FOR_TARGET" in
19553 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
19554 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
19558 echo "$as_me:$LINENO: checking what linker to use" >&5
19559 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
19560 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
19561 # Single tree build which includes ld. We want to prefer it
19562 # over whatever linker top-level may have detected, since
19563 # we'll use what we're building after installation anyway.
19564 echo "$as_me:$LINENO: result: newly built ld" >&5
19565 echo "${ECHO_T}newly built ld" >&6
19567 in_tree_ld_is_elf
=no
19568 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
19569 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
19570 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
19571 in_tree_ld_is_elf
=yes
19573 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
19575 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19576 if test x
$gcc_cv_gld_version != x
; then
19580 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
19581 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19583 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19584 echo "${ECHO_T}$gcc_cv_ld" >&6
19588 # Figure out what nm we will be using.
19589 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
19590 if test "${gcc_cv_nm+set}" = set; then
19594 if test -f $gcc_cv_binutils_srcdir/configure.
in \
19595 && test -f ..
/binutils
/Makefile \
19596 && test x
$build = x
$host; then
19597 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
19598 elif test -x nm
$build_exeext; then
19599 gcc_cv_nm
=.
/nm
$build_exeext
19600 elif test -x $NM_FOR_TARGET; then
19601 gcc_cv_nm
="$NM_FOR_TARGET"
19603 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
19604 set dummy
$NM_FOR_TARGET; ac_word
=$2
19605 echo "$as_me:$LINENO: checking for $ac_word" >&5
19606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19607 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
19615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19616 for as_dir
in $PATH
19619 test -z "$as_dir" && as_dir
=.
19620 for ac_exec_ext
in '' $ac_executable_extensions; do
19621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19622 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
19623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19632 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
19634 if test -n "$gcc_cv_nm"; then
19635 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
19636 echo "${ECHO_T}$gcc_cv_nm" >&6
19638 echo "$as_me:$LINENO: result: no" >&5
19639 echo "${ECHO_T}no" >&6
19646 echo "$as_me:$LINENO: checking what nm to use" >&5
19647 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
19648 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
19649 # Single tree build which includes binutils.
19650 echo "$as_me:$LINENO: result: newly built nm" >&5
19651 echo "${ECHO_T}newly built nm" >&6
19654 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
19655 echo "${ECHO_T}$gcc_cv_nm" >&6
19659 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
19661 case "$ORIGINAL_NM_FOR_TARGET" in
19662 .
/nm | .
/nm
$build_exeext) ;;
19663 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
19668 # Figure out what objdump we will be using.
19669 if test "${gcc_cv_objdump+set}" = set; then
19673 if test -f $gcc_cv_binutils_srcdir/configure.
in \
19674 && test -f ..
/binutils
/Makefile \
19675 && test x
$build = x
$host; then
19676 # Single tree build which includes binutils.
19677 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
19678 elif test -x objdump
$build_exeext; then
19679 gcc_cv_objdump
=.
/objdump
$build_exeext
19680 elif test -x $OBJDUMP_FOR_TARGET; then
19681 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
19683 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
19684 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19687 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 case $gcc_cv_objdump in
19692 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
19695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19696 for as_dir
in $PATH
19699 test -z "$as_dir" && as_dir
=.
19700 for ac_exec_ext
in '' $ac_executable_extensions; do
19701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19702 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
19703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19712 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
19714 if test -n "$gcc_cv_objdump"; then
19715 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
19716 echo "${ECHO_T}$gcc_cv_objdump" >&6
19718 echo "$as_me:$LINENO: result: no" >&5
19719 echo "${ECHO_T}no" >&6
19726 echo "$as_me:$LINENO: checking what objdump to use" >&5
19727 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
19728 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
19729 # Single tree build which includes binutils.
19730 echo "$as_me:$LINENO: result: newly built objdump" >&5
19731 echo "${ECHO_T}newly built objdump" >&6
19732 elif test x
$gcc_cv_objdump = x
; then
19733 echo "$as_me:$LINENO: result: not found" >&5
19734 echo "${ECHO_T}not found" >&6
19736 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
19737 echo "${ECHO_T}$gcc_cv_objdump" >&6
19740 # Figure out what assembler alignment features are present.
19741 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
19742 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
19743 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 gcc_cv_as_balign_and_p2align
=no
19747 if test $in_tree_gas = yes; then
19748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
19749 then gcc_cv_as_balign_and_p2align
=yes
19751 elif test x
$gcc_cv_as != x
; then
19753 .p2align 2' > conftest.s
19754 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }
19761 gcc_cv_as_balign_and_p2align
=yes
19763 echo "configure: failed program was" >&5
19766 rm -f conftest.o conftest.s
19769 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
19770 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
19771 if test $gcc_cv_as_balign_and_p2align = yes; then
19773 cat >>confdefs.h
<<\_ACEOF
19774 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
19779 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
19780 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
19781 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 gcc_cv_as_max_skip_p2align
=no
19785 if test $in_tree_gas = yes; then
19786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
19787 then gcc_cv_as_max_skip_p2align
=yes
19789 elif test x
$gcc_cv_as != x
; then
19790 echo '.p2align 4,,7' > conftest.s
19791 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }
19798 gcc_cv_as_max_skip_p2align
=yes
19800 echo "configure: failed program was" >&5
19803 rm -f conftest.o conftest.s
19806 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
19807 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
19808 if test $gcc_cv_as_max_skip_p2align = yes; then
19810 cat >>confdefs.h
<<\_ACEOF
19811 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
19816 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
19817 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
19818 if test "${gcc_cv_as_literal16+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19821 gcc_cv_as_literal16
=no
19822 if test $in_tree_gas = yes; then
19823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
19824 then gcc_cv_as_literal16
=yes
19826 elif test x
$gcc_cv_as != x
; then
19827 echo '.literal16' > conftest.s
19828 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }
19835 gcc_cv_as_literal16
=yes
19837 echo "configure: failed program was" >&5
19840 rm -f conftest.o conftest.s
19843 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
19844 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
19845 if test $gcc_cv_as_literal16 = yes; then
19847 cat >>confdefs.h
<<\_ACEOF
19848 #define HAVE_GAS_LITERAL16 1
19853 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
19854 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
19855 if test "${gcc_cv_as_subsection_m1+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 gcc_cv_as_subsection_m1
=no
19859 if test $in_tree_gas = yes; then
19860 if test $in_tree_gas_is_elf = yes \
19861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
19862 then gcc_cv_as_subsection_m1
=yes
19864 elif test x
$gcc_cv_as != x
; then
19865 echo 'conftest_label1: .word 0
19867 conftest_label2: .word 0
19868 .previous' > conftest.s
19869 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }
19876 if test x
$gcc_cv_nm != x
; then
19877 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
19878 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
19879 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
19881 else gcc_cv_as_subsection_m1
=yes
19883 rm -f conftest.nm1 conftest.nm2
19886 echo "configure: failed program was" >&5
19889 rm -f conftest.o conftest.s
19892 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
19893 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
19894 if test $gcc_cv_as_subsection_m1 = yes; then
19896 cat >>confdefs.h
<<\_ACEOF
19897 #define HAVE_GAS_SUBSECTION_ORDERING 1
19902 echo "$as_me:$LINENO: checking assembler for .weak" >&5
19903 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
19904 if test "${gcc_cv_as_weak+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 if test $in_tree_gas = yes; then
19909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
19910 then gcc_cv_as_weak
=yes
19912 elif test x
$gcc_cv_as != x
; then
19913 echo ' .weak foobar' > conftest.s
19914 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }
19923 echo "configure: failed program was" >&5
19926 rm -f conftest.o conftest.s
19929 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
19930 echo "${ECHO_T}$gcc_cv_as_weak" >&6
19931 if test $gcc_cv_as_weak = yes; then
19933 cat >>confdefs.h
<<\_ACEOF
19934 #define HAVE_GAS_WEAK 1
19939 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
19940 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
19941 if test "${gcc_cv_as_weakref+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 gcc_cv_as_weakref
=no
19945 if test $in_tree_gas = yes; then
19946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
19947 then gcc_cv_as_weakref
=yes
19949 elif test x
$gcc_cv_as != x
; then
19950 echo ' .weakref foobar, barfnot' > conftest.s
19951 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }
19958 gcc_cv_as_weakref
=yes
19960 echo "configure: failed program was" >&5
19963 rm -f conftest.o conftest.s
19966 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
19967 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
19968 if test $gcc_cv_as_weakref = yes; then
19970 cat >>confdefs.h
<<\_ACEOF
19971 #define HAVE_GAS_WEAKREF 1
19976 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
19977 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
19978 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 gcc_cv_as_nsubspa_comdat
=no
19982 if test $in_tree_gas = yes; then
19983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
19984 then gcc_cv_as_nsubspa_comdat
=yes
19986 elif test x
$gcc_cv_as != x
; then
19987 echo ' .SPACE $TEXT$
19988 .NSUBSPA $CODE$,COMDAT' > conftest.s
19989 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }
19996 gcc_cv_as_nsubspa_comdat
=yes
19998 echo "configure: failed program was" >&5
20001 rm -f conftest.o conftest.s
20004 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20005 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20006 if test $gcc_cv_as_nsubspa_comdat = yes; then
20008 cat >>confdefs.h
<<\_ACEOF
20009 #define HAVE_GAS_NSUBSPA_COMDAT 1
20014 # .hidden needs to be supported in both the assembler and the linker,
20015 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20016 # This is irritatingly difficult to feature test for; we have to check the
20017 # date string after the version number. If we've got an in-tree
20018 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20020 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20021 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20022 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20023 if test "${gcc_cv_as_hidden+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 gcc_cv_as_hidden
=no
20027 if test $in_tree_gas = yes; then
20028 if test $in_tree_gas_is_elf = yes \
20029 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20030 then gcc_cv_as_hidden
=yes
20032 elif test x
$gcc_cv_as != x
; then
20033 echo ' .hidden foobar
20034 foobar:' > conftest.s
20035 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }
20042 gcc_cv_as_hidden
=yes
20044 echo "configure: failed program was" >&5
20047 rm -f conftest.o conftest.s
20050 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20051 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20054 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20055 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20056 if test "${gcc_cv_ld_hidden+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 if test $in_tree_ld = yes ; then
20060 gcc_cv_ld_hidden
=no
20061 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 \
20062 && test $in_tree_ld_is_elf = yes; then
20063 gcc_cv_ld_hidden
=yes
20066 gcc_cv_ld_hidden
=yes
20067 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20068 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20069 ld_vers
=`echo $ld_ver | sed -n \
20070 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20071 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'`
20072 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20073 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20074 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20075 if test 0"$ld_date" -lt 20020404; then
20076 if test -n "$ld_date"; then
20077 # If there was date string, but was earlier than 2002-04-04, fail
20078 gcc_cv_ld_hidden
=no
20079 elif test -z "$ld_vers"; then
20080 # If there was no date string nor ld version number, something is wrong
20081 gcc_cv_ld_hidden
=no
20083 test -z "$ld_vers_patch" && ld_vers_patch
=0
20084 if test "$ld_vers_major" -lt 2; then
20085 gcc_cv_ld_hidden
=no
20086 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20087 gcc_cv_ld_hidden
="no"
20088 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20089 gcc_cv_ld_hidden
=no
20094 case "${target}" in
20095 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20096 gcc_cv_ld_hidden
=yes
20099 gcc_cv_ld_hidden
=no
20105 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20106 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20107 libgcc_visibility
=no
20110 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20111 libgcc_visibility
=yes
20113 cat >>confdefs.h
<<\_ACEOF
20114 #define HAVE_GAS_HIDDEN 1
20119 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20120 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20121 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20122 if test "${gcc_cv_as_leb128+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 gcc_cv_as_leb128
=no
20126 if test $in_tree_gas = yes; then
20127 if test $in_tree_gas_is_elf = yes \
20128 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20129 then gcc_cv_as_leb128
=yes
20131 elif test x
$gcc_cv_as != x
; then
20138 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }
20145 # GAS versions before 2.11 do not support uleb128,
20146 # despite appearing to.
20147 # ??? There exists an elf-specific test that will crash
20148 # the assembler. Perhaps it's better to figure out whether
20149 # arbitrary sections are supported and try the test.
20150 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20151 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20152 as_vers
=`echo $as_ver | sed -n \
20153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20154 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20155 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20156 if test $as_major -eq 2 && test $as_minor -lt 11
20158 else gcc_cv_as_leb128
=yes
20162 echo "configure: failed program was" >&5
20165 rm -f conftest.o conftest.s
20168 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20169 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20170 if test $gcc_cv_as_leb128 = yes; then
20172 cat >>confdefs.h
<<\_ACEOF
20173 #define HAVE_AS_LEB128 1
20178 # GAS versions up to and including 2.11.0 may mis-optimize
20180 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20181 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20182 if test "${gcc_cv_as_eh_frame+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 gcc_cv_as_eh_frame
=no
20186 if test $in_tree_gas = yes; then
20187 if test $in_tree_gas_is_elf = yes \
20188 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20189 then gcc_cv_as_eh_frame
=yes
20191 elif test x
$gcc_cv_as != x
; then
20198 .section .eh_frame,"aw",@progbits
20200 .4byte .LECIE1-.LSCIE1
20214 .4byte .LEFDE1-.LASFDE1
20216 .4byte .LASFDE1-__FRAME_BEGIN__
20223 .LEFDE1:' > conftest.s
20224 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }
20231 cat > conftest.lit
<<EOF
20232 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20233 0010 01000000 12000000 18000000 00000000 ................
20234 0020 08000000 04080000 0044 .........D
20236 cat > conftest.big
<<EOF
20237 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20238 0010 00000001 00000012 00000018 00000000 ................
20239 0020 00000008 04000000 0844 .........D
20241 # If the assembler didn't choke, and we can objdump,
20242 # and we got the correct data, then succeed.
20243 # The text in the here-document typically retains its unix-style line
20244 # endings, while the output of objdump will use host line endings.
20245 # Therefore, use diff -b for the comparisons.
20246 if test x
$gcc_cv_objdump != x \
20247 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
20248 |
tail -3 > conftest.got \
20249 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
20250 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
20252 gcc_cv_as_eh_frame
=yes
20253 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 gcc_cv_as_eh_frame
=buggy
20261 # Uh oh, what do we do now?
20262 gcc_cv_as_eh_frame
=no
20265 echo "configure: failed program was" >&5
20268 rm -f conftest.o conftest.s
20271 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20272 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20275 if test $gcc_cv_as_eh_frame = buggy
; then
20277 cat >>confdefs.h
<<\_ACEOF
20278 #define USE_AS_TRADITIONAL_FORMAT 1
20283 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20284 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20285 if test "${gcc_cv_as_shf_merge+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 gcc_cv_as_shf_merge
=no
20289 if test $in_tree_gas = yes; then
20290 if test $in_tree_gas_is_elf = yes \
20291 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20292 then gcc_cv_as_shf_merge
=yes
20294 elif test x
$gcc_cv_as != x
; then
20295 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20296 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }
20303 gcc_cv_as_shf_merge
=yes
20305 echo "configure: failed program was" >&5
20308 rm -f conftest.o conftest.s
20311 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20312 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20314 if test $gcc_cv_as_shf_merge = no
; then
20315 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20316 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20317 if test "${gcc_cv_as_shf_merge+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 gcc_cv_as_shf_merge
=no
20321 if test $in_tree_gas = yes; then
20322 if test $in_tree_gas_is_elf = yes \
20323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20324 then gcc_cv_as_shf_merge
=yes
20326 elif test x
$gcc_cv_as != x
; then
20327 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20328 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }
20335 gcc_cv_as_shf_merge
=yes
20337 echo "configure: failed program was" >&5
20340 rm -f conftest.o conftest.s
20343 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20344 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20348 cat >>confdefs.h
<<_ACEOF
20349 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20353 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20354 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20355 if test "${gcc_cv_as_comdat_group+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 gcc_cv_as_comdat_group
=no
20359 if test $in_tree_gas = yes; then
20360 if test $in_tree_gas_is_elf = yes \
20361 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20362 then gcc_cv_as_comdat_group
=yes
20364 elif test x
$gcc_cv_as != x
; then
20365 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20366 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }
20373 gcc_cv_as_comdat_group
=yes
20375 echo "configure: failed program was" >&5
20378 rm -f conftest.o conftest.s
20381 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20382 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20384 if test $gcc_cv_as_comdat_group = yes; then
20385 gcc_cv_as_comdat_group_percent
=no
20387 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20388 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20389 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 gcc_cv_as_comdat_group_percent
=no
20393 if test $in_tree_gas = yes; then
20394 if test $in_tree_gas_is_elf = yes \
20395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20396 then gcc_cv_as_comdat_group_percent
=yes
20398 elif test x
$gcc_cv_as != x
; then
20399 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20400 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }
20407 gcc_cv_as_comdat_group_percent
=yes
20409 echo "configure: failed program was" >&5
20412 rm -f conftest.o conftest.s
20415 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
20416 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
20419 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
20421 if test 0"$ld_date" -lt 20050308; then
20422 if test -n "$ld_date"; then
20423 # If there was date string, but was earlier than 2005-03-08, fail
20425 elif test "$ld_vers_major" -lt 2; then
20427 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
20432 # assume linkers other than GNU ld don't support COMDAT group
20435 if test $comdat_group = no
; then
20436 gcc_cv_as_comdat_group
=no
20437 gcc_cv_as_comdat_group_percent
=no
20440 cat >>confdefs.h
<<_ACEOF
20441 #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`
20445 # Thread-local storage - the check is heavily parametrized.
20453 .section ".tdata","awT",@progbits
20456 ldq $27,__tls_get_addr($29) !literal!1
20457 lda $16,foo($29) !tlsgd!1
20458 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
20459 ldq $27,__tls_get_addr($29) !literal!2
20460 lda $16,foo($29) !tlsldm!2
20461 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
20462 ldq $1,foo($29) !gotdtprel
20463 ldah $2,foo($29) !dtprelhi
20464 lda $3,foo($2) !dtprello
20465 lda $4,foo($29) !dtprel
20466 ldq $1,foo($29) !gottprel
20467 ldah $2,foo($29) !tprelhi
20468 lda $3,foo($2) !tprello
20469 lda $4,foo($29) !tprel'
20472 tls_as_opt
=--fatal-warnings
20476 .section ".tdata","awT",@progbits
20479 call #gettlsoff(x)'
20488 .section ".tdata","awT",@progbits
20492 addil LT%foo-$tls_gdidx$,gp
20493 ldo RT%foo-$tls_gdidx$(%r1),%arg0
20496 addil LT%foo-$tls_ldidx$,gp
20498 ldo RT%foo-$tls_ldidx$(%r1),%arg0
20499 addil LR%foo-$tls_dtpoff$,%ret0
20500 ldo RR%foo-$tls_dtpoff$(%r1),%t1
20502 addil LT%foo-$tls_ieoff$,gp
20503 ldw RT%foo-$tls_ieoff$(%r1),%t2
20506 addil LR%foo-$tls_leoff$,%t1
20507 ldo RR%foo-$tls_leoff$(%r1),%t2'
20510 tls_as_opt
=--fatal-warnings
20514 .section ".tdata","awT",%progbits
20517 .word foo(gottpoff)
20527 .section ".tdata","awT",@progbits
20531 leal foo@TLSGD(,%ebx,1), %eax
20532 leal foo@TLSLDM(%ebx), %eax
20533 leal foo@DTPOFF(%eax), %edx
20534 movl foo@GOTTPOFF(%ebx), %eax
20535 subl foo@GOTTPOFF(%ebx), %eax
20536 addl foo@GOTNTPOFF(%ebx), %eax
20537 movl foo@INDNTPOFF, %eax
20538 movl $foo@TPOFF, %eax
20539 subl $foo@TPOFF, %eax
20540 leal foo@NTPOFF(%ecx), %eax'
20543 tls_as_opt
=--fatal-warnings
20547 .section ".tdata","awT",@progbits
20551 leaq foo@TLSGD(%rip), %rdi
20552 leaq foo@TLSLD(%rip), %rdi
20553 leaq foo@DTPOFF(%rax), %rdx
20554 movq foo@GOTTPOFF(%rip), %rax
20555 movq $foo@TPOFF, %rax'
20558 tls_as_opt
=--fatal-warnings
20562 .section ".tdata","awT",@progbits
20565 addl r16 = @ltoff(@dtpmod(foo#)), gp
20566 addl r17 = @ltoff(@dtprel(foo#)), gp
20567 addl r18 = @ltoff(@tprel(foo#)), gp
20568 addl r19 = @dtprel(foo#), gp
20569 adds r21 = @dtprel(foo#), r13
20570 movl r23 = @dtprel(foo#)
20571 addl r20 = @tprel(foo#), gp
20572 adds r22 = @tprel(foo#), r13
20573 movl r24 = @tprel(foo#)'
20576 tls_as_opt
=--fatal-warnings
20580 .section .tdata,"awT",@progbits
20584 addiu $4, $28, %tlsgd(x)
20585 addiu $4, $28, %tlsldm(x)
20586 lui $4, %dtprel_hi(x)
20587 addiu $4, $4, %dtprel_lo(x)
20588 lw $4, %gottprel(x)($28)
20589 lui $4, %tprel_hi(x)
20590 addiu $4, $4, %tprel_lo(x)'
20593 tls_as_opt
='-32 --fatal-warnings'
20597 .section ".tdata","awT",@progbits
20605 addi 3,31,ld0@got@tlsgd
20607 addi 3,31,x1@got@tlsld
20610 addis 9,3,x2@dtprel@ha
20611 addi 9,9,x2@dtprel@l
20612 lwz 9,x3@got@tprel(31)
20615 addis 9,2,x2@tprel@ha
20616 addi 9,9,x2@tprel@l'
20619 tls_as_opt
="-a32 --fatal-warnings"
20623 .section ".tdata","awT",@progbits
20631 addi 3,2,ld0@got@tlsgd
20637 addi 3,2,x1@got@tlsld
20643 addis 9,3,x2@dtprel@ha
20644 addi 9,9,x2@dtprel@l
20647 ld 9,x3@got@dtprel(2)
20653 tls_as_opt
="-a64 --fatal-warnings"
20657 .section ".tdata","awT",@progbits
20664 .long foo@GOTNTPOFF
20665 .long foo@INDNTPOFF
20666 l %r1,foo@GOTNTPOFF(%r12)
20667 l %r1,0(%r1):tls_load:foo
20668 bas %r14,0(%r1,%r13):tls_gdcall:foo
20669 bas %r14,0(%r1,%r13):tls_ldcall:foo'
20672 tls_as_opt
="-m31 --fatal-warnings"
20676 .section ".tdata","awT",@progbits
20683 .quad foo@GOTNTPOFF
20684 lg %r1,foo@GOTNTPOFF(%r12)
20685 larl %r1,foo@INDNTPOFF
20686 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
20687 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
20690 tls_as_opt
="-m64 -Aesame --fatal-warnings"
20692 sh-
*-* | sh
[34]-*-*)
20694 .section ".tdata","awT",@progbits
20704 tls_as_opt
=--fatal-warnings
20708 sparc
*-sun-solaris2.
[56789]*)
20709 # TLS was introduced in the Solaris 9 4/04 release but
20710 # we do not enable it by default on Solaris 9 either.
20711 if test "x$enable_tls" = xyes
; then
20717 sparc
*-sun-solaris2.
*)
20724 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
20726 .section ".tdata",#alloc,#write,#tls
20729 sethi %tgd_hi22(foo), %o0
20730 add %o0, %tgd_lo10(foo), %o1
20731 add %l7, %o1, %o0, %tgd_add(foo)
20732 call __tls_get_addr, %tgd_call(foo)
20733 sethi %tldm_hi22(foo), %l1
20734 add %l1, %tldm_lo10(foo), %l2
20735 add %l7, %l2, %o0, %tldm_add(foo)
20736 call __tls_get_addr, %tldm_call(foo)
20737 sethi %tldo_hix22(foo), %l3
20738 xor %l3, %tldo_lox10(foo), %l4
20739 add %o0, %l4, %l5, %tldo_add(foo)
20740 sethi %tie_hi22(foo), %o3
20741 add %o3, %tie_lo10(foo), %o3
20742 ld [%l7 + %o3], %o2, %tie_ld(foo)
20743 add %g7, %o2, %o4, %tie_add(foo)
20744 sethi %tle_hix22(foo), %l1
20745 xor %l1, %tle_lox10(foo), %o5
20746 ld [%g7 + %o5], %o1'
20751 .section ".tdata","awT",@progbits
20754 sethi %tgd_hi22(foo), %o0
20755 add %o0, %tgd_lo10(foo), %o1
20756 add %l7, %o1, %o0, %tgd_add(foo)
20757 call __tls_get_addr, %tgd_call(foo)
20758 sethi %tldm_hi22(foo), %l1
20759 add %l1, %tldm_lo10(foo), %l2
20760 add %l7, %l2, %o0, %tldm_add(foo)
20761 call __tls_get_addr, %tldm_call(foo)
20762 sethi %tldo_hix22(foo), %l3
20763 xor %l3, %tldo_lox10(foo), %l4
20764 add %o0, %l4, %l5, %tldo_add(foo)
20765 sethi %tie_hi22(foo), %o3
20766 add %o3, %tie_lo10(foo), %o3
20767 ld [%l7 + %o3], %o2, %tie_ld(foo)
20768 add %g7, %o2, %o4, %tie_add(foo)
20769 sethi %tle_hix22(foo), %l1
20770 xor %l1, %tle_lox10(foo), %o5
20771 ld [%g7 + %o5], %o1'
20774 tls_as_opt
="-32 --fatal-warnings"
20779 if test "x$enable_tls" = xno
; then
20780 : # TLS explicitly disabled.
20781 elif test "x$enable_tls" = xyes
; then
20782 set_have_as_tls
=yes # TLS explicitly enabled.
20783 elif test -z "$tls_first_major"; then
20784 : # If we don't have a check, assume no support.
20786 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
20787 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
20788 if test "${gcc_cv_as_tls+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 if test $in_tree_gas = yes; then
20793 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
20794 then gcc_cv_as_tls
=yes
20796 elif test x
$gcc_cv_as != x
; then
20797 echo "$conftest_s" > conftest.s
20798 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }
20807 echo "configure: failed program was" >&5
20810 rm -f conftest.o conftest.s
20813 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
20814 echo "${ECHO_T}$gcc_cv_as_tls" >&6
20815 if test $gcc_cv_as_tls = yes; then
20816 set_have_as_tls
=yes
20819 if test $set_have_as_tls = yes ; then
20821 cat >>confdefs.h
<<\_ACEOF
20822 #define HAVE_AS_TLS 1
20827 # Target-specific assembler checks.
20829 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
20830 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
20831 gcc_cv_ld_static_dynamic
=no
20832 if test $in_tree_ld = yes ; then
20833 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
20834 gcc_cv_ld_static_dynamic
=yes
20836 elif test x
$gcc_cv_ld != x
; then
20837 # Check if linker supports -Bstatic/-Bdynamic option
20838 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
20839 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
20840 gcc_cv_ld_static_dynamic
=yes
20843 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
20845 cat >>confdefs.h
<<\_ACEOF
20846 #define HAVE_LD_STATIC_DYNAMIC 1
20850 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
20851 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
20853 if test x
"$demangler_in_ld" = xyes
; then
20854 echo "$as_me:$LINENO: checking linker --demangle support" >&5
20855 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
20856 gcc_cv_ld_demangle
=no
20857 if test $in_tree_ld = yes; then
20858 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 \
20859 gcc_cv_ld_demangle
=yes
20861 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
20862 # Check if the GNU linker supports --demangle option
20863 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
20864 gcc_cv_ld_demangle
=yes
20867 if test x
"$gcc_cv_ld_demangle" = xyes
; then
20869 cat >>confdefs.h
<<\_ACEOF
20870 #define HAVE_LD_DEMANGLE 1
20874 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
20875 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
20879 # All TARGET_ABI_OSF targets.
20880 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
20881 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
20882 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
20883 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 gcc_cv_as_alpha_explicit_relocs
=no
20887 if test $in_tree_gas = yes; then
20888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20889 then gcc_cv_as_alpha_explicit_relocs
=yes
20891 elif test x
$gcc_cv_as != x
; then
20892 echo ' .set nomacro
20894 extbl $3, $2, $3 !lituse_bytoff!1
20895 ldq $2, a($29) !literal!1
20896 ldq $4, b($29) !literal!2
20897 ldq_u $3, 0($2) !lituse_base!1
20898 ldq $27, f($29) !literal!5
20899 jsr $26, ($27), f !lituse_jsr!5
20900 ldah $29, 0($26) !gpdisp!3
20901 lda $0, c($29) !gprel
20902 ldah $1, d($29) !gprelhigh
20903 lda $1, d($1) !gprellow
20904 lda $29, 0($29) !gpdisp!3' > conftest.s
20905 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20907 (eval $ac_try) 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }
20912 gcc_cv_as_alpha_explicit_relocs
=yes
20914 echo "configure: failed program was" >&5
20917 rm -f conftest.o conftest.s
20920 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
20921 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
20922 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
20924 cat >>confdefs.h
<<\_ACEOF
20925 #define HAVE_AS_EXPLICIT_RELOCS 1
20929 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
20930 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
20931 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 gcc_cv_as_alpha_jsrdirect_relocs
=no
20935 if test $in_tree_gas = yes; then
20936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
20937 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
20939 elif test x
$gcc_cv_as != x
; then
20940 echo ' .set nomacro
20942 ldq $27, a($29) !literal!1
20943 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
20944 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }
20951 gcc_cv_as_alpha_jsrdirect_relocs
=yes
20953 echo "configure: failed program was" >&5
20956 rm -f conftest.o conftest.s
20959 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
20960 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
20961 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
20963 cat >>confdefs.h
<<\_ACEOF
20964 #define HAVE_AS_JSRDIRECT_RELOCS 1
20971 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
20972 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
20973 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 gcc_cv_as_cris_no_mul_bug
=no
20977 if test $in_tree_gas = yes; then
20978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20979 then gcc_cv_as_cris_no_mul_bug
=yes
20981 elif test x
$gcc_cv_as != x
; then
20982 echo '.text' > conftest.s
20983 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; }
20990 gcc_cv_as_cris_no_mul_bug
=yes
20992 echo "configure: failed program was" >&5
20995 rm -f conftest.o conftest.s
20998 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
20999 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21000 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21002 cat >>confdefs.h
<<\_ACEOF
21003 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21010 echo "$as_me:$LINENO: checking assembler for .register" >&5
21011 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21012 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 gcc_cv_as_sparc_register_op
=no
21016 if test x
$gcc_cv_as != x
; then
21017 echo '.register %g2, #scratch' > conftest.s
21018 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }
21025 gcc_cv_as_sparc_register_op
=yes
21027 echo "configure: failed program was" >&5
21030 rm -f conftest.o conftest.s
21033 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21034 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21035 if test $gcc_cv_as_sparc_register_op = yes; then
21037 cat >>confdefs.h
<<\_ACEOF
21038 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21043 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21044 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21045 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 gcc_cv_as_sparc_relax
=no
21049 if test x
$gcc_cv_as != x
; then
21050 echo '.text' > conftest.s
21051 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }
21058 gcc_cv_as_sparc_relax
=yes
21060 echo "configure: failed program was" >&5
21063 rm -f conftest.o conftest.s
21066 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21067 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21068 if test $gcc_cv_as_sparc_relax = yes; then
21070 cat >>confdefs.h
<<\_ACEOF
21071 #define HAVE_AS_RELAX_OPTION 1
21076 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21077 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21078 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 gcc_cv_as_sparc_ua_pcrel
=no
21082 if test x
$gcc_cv_as != x
; then
21089 .uaword %r_disp32(foo)' > conftest.s
21090 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }
21097 if test x
$gcc_cv_ld != x \
21098 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
21099 gcc_cv_as_sparc_ua_pcrel
=yes
21103 echo "configure: failed program was" >&5
21106 rm -f conftest.o conftest.s
21109 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21110 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21111 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21113 cat >>confdefs.h
<<\_ACEOF
21114 #define HAVE_AS_SPARC_UA_PCREL 1
21118 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21119 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21120 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 gcc_cv_as_sparc_ua_pcrel_hidden
=no
21124 if test x
$gcc_cv_as != x
; then
21128 .uaword %r_disp32(foo)
21129 .byte 0x32, 0x33, 0x34
21133 .skip 4' > conftest.s
21134 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }
21141 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
21142 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
21143 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
21144 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
21145 if $gcc_cv_objdump -R conftest
2> /dev
/null \
21146 |
grep 'DISP32' > /dev
/null
2>&1; then
21149 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
21154 echo "configure: failed program was" >&5
21157 rm -f conftest.o conftest.s
21160 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21161 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21162 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21164 cat >>confdefs.h
<<\_ACEOF
21165 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21170 fi # unaligned pcrel relocs
21172 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21173 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21174 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 gcc_cv_as_sparc_offsetable_lo10
=no
21178 if test x
$gcc_cv_as != x
; then
21180 or %g1, %lo(ab) + 12, %g1
21181 or %g1, %lo(ab + 12), %g1' > conftest.s
21182 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }
21189 if test x
$gcc_cv_objdump != x \
21190 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
21191 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
21192 gcc_cv_as_sparc_offsetable_lo10
=yes
21195 echo "configure: failed program was" >&5
21198 rm -f conftest.o conftest.s
21201 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21202 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21203 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21205 cat >>confdefs.h
<<\_ACEOF
21206 #define HAVE_AS_OFFSETABLE_LO10 1
21212 i
[34567]86-*-* | x86_64-
*-*)
21214 cygwin
* | pe | mingw32
*)
21215 # Used for DWARF 2 in PE
21216 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21217 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21218 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 gcc_cv_as_ix86_pe_secrel32
=no
21222 if test $in_tree_gas = yes; then
21223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21224 then gcc_cv_as_ix86_pe_secrel32
=yes
21226 elif test x
$gcc_cv_as != x
; then
21230 .secrel32 foo' > conftest.s
21231 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }
21238 if test x
$gcc_cv_ld != x \
21239 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
21240 gcc_cv_as_ix86_pe_secrel32
=yes
21244 echo "configure: failed program was" >&5
21247 rm -f conftest.o conftest.s
21250 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21251 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21252 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21254 cat >>confdefs.h
<<\_ACEOF
21255 #define HAVE_GAS_PE_SECREL32_RELOC 1
21262 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21263 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21264 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 gcc_cv_as_ix86_filds_fists
=no
21268 if test $in_tree_gas = yes; then
21269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21270 then gcc_cv_as_ix86_filds_fists
=yes
21272 elif test x
$gcc_cv_as != x
; then
21273 echo 'filds mem; fists mem' > conftest.s
21274 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }
21281 gcc_cv_as_ix86_filds_fists
=yes
21283 echo "configure: failed program was" >&5
21286 rm -f conftest.o conftest.s
21289 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21290 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21291 if test $gcc_cv_as_ix86_filds_fists = yes; then
21293 cat >>confdefs.h
<<\_ACEOF
21294 #define HAVE_GAS_FILDS_FISTS 1
21299 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21300 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21301 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 gcc_cv_as_ix86_cmov_sun_syntax
=no
21305 if test x
$gcc_cv_as != x
; then
21306 echo 'cmovl.l %edx, %eax' > conftest.s
21307 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; }
21314 gcc_cv_as_ix86_cmov_sun_syntax
=yes
21316 echo "configure: failed program was" >&5
21319 rm -f conftest.o conftest.s
21322 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21323 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21324 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21326 cat >>confdefs.h
<<\_ACEOF
21327 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21332 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21333 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21334 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 gcc_cv_as_ix86_ffreep
=no
21338 if test x
$gcc_cv_as != x
; then
21339 echo 'ffreep %st(1)' > conftest.s
21340 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }
21347 gcc_cv_as_ix86_ffreep
=yes
21349 echo "configure: failed program was" >&5
21352 rm -f conftest.o conftest.s
21355 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21356 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21357 if test $gcc_cv_as_ix86_ffreep = yes; then
21359 cat >>confdefs.h
<<\_ACEOF
21360 #define HAVE_AS_IX86_FFREEP 1
21365 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21366 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21367 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 gcc_cv_as_ix86_sahf
=no
21371 if test x
$gcc_cv_as != x
; then
21374 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }
21381 gcc_cv_as_ix86_sahf
=yes
21383 echo "configure: failed program was" >&5
21386 rm -f conftest.o conftest.s
21389 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21390 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21391 if test $gcc_cv_as_ix86_sahf = yes; then
21393 cat >>confdefs.h
<<\_ACEOF
21394 #define HAVE_AS_IX86_SAHF 1
21399 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21400 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21401 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 gcc_cv_as_ix86_diff_sect_delta
=no
21405 if test x
$gcc_cv_as != x
; then
21406 echo '.section .rodata
21412 .L2: nop' > conftest.s
21413 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }
21420 gcc_cv_as_ix86_diff_sect_delta
=yes
21422 echo "configure: failed program was" >&5
21425 rm -f conftest.o conftest.s
21428 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
21429 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
21430 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
21432 cat >>confdefs.h
<<\_ACEOF
21433 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
21438 # This one is used unconditionally by i386.[ch]; it is to be defined
21439 # to 1 if the feature is present, 0 otherwise.
21440 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
21441 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
21442 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21445 gcc_cv_as_ix86_gotoff_in_data
=no
21446 if test $in_tree_gas = yes; then
21447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21448 then gcc_cv_as_ix86_gotoff_in_data
=yes
21450 elif test x
$gcc_cv_as != x
; then
21455 .long .L0@GOTOFF' > conftest.s
21456 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; }
21463 gcc_cv_as_ix86_gotoff_in_data
=yes
21465 echo "configure: failed program was" >&5
21468 rm -f conftest.o conftest.s
21471 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
21472 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
21475 cat >>confdefs.h
<<_ACEOF
21476 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
21482 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
21483 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
21484 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
21488 if test $in_tree_gas = yes; then
21489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21490 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
21492 elif test x
$gcc_cv_as != x
; then
21494 addl r15 = @ltoffx(x#), gp
21496 ld8.mov r16 = [r15], x#' > conftest.s
21497 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }
21504 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
21506 echo "configure: failed program was" >&5
21509 rm -f conftest.o conftest.s
21512 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
21513 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
21514 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
21516 cat >>confdefs.h
<<\_ACEOF
21517 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
21526 *-*-aix*) conftest_s
=' .machine "pwr5"
21530 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
21531 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
21532 if test "${gcc_cv_as_machine_directive+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 gcc_cv_as_machine_directive
=no
21536 if test x
$gcc_cv_as != x
; then
21537 echo ' .machine ppc7400' > conftest.s
21538 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }
21545 gcc_cv_as_machine_directive
=yes
21547 echo "configure: failed program was" >&5
21550 rm -f conftest.o conftest.s
21553 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
21554 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
21556 if test x
$gcc_cv_as_machine_directive != xyes
; then
21557 echo "*** This target requires an assembler supporting \".machine\"" >&2
21558 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
21559 test x
$build = x
$target && exit 1
21563 *) conftest_s
=' .machine power4
21568 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
21569 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
21570 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21573 gcc_cv_as_powerpc_mfcrf
=no
21574 if test $in_tree_gas = yes; then
21575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21576 then gcc_cv_as_powerpc_mfcrf
=yes
21578 elif test x
$gcc_cv_as != x
; then
21579 echo "$conftest_s" > conftest.s
21580 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }
21587 gcc_cv_as_powerpc_mfcrf
=yes
21589 echo "configure: failed program was" >&5
21592 rm -f conftest.o conftest.s
21595 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
21596 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
21597 if test $gcc_cv_as_powerpc_mfcrf = yes; then
21599 cat >>confdefs.h
<<\_ACEOF
21600 #define HAVE_AS_MFCRF 1
21606 *-*-aix*) conftest_s
=' .machine "pwr5"
21609 *) conftest_s
=' .machine power5
21614 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
21615 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
21616 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 gcc_cv_as_powerpc_popcntb
=no
21620 if test $in_tree_gas = yes; then
21621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21622 then gcc_cv_as_powerpc_popcntb
=yes
21624 elif test x
$gcc_cv_as != x
; then
21625 echo "$conftest_s" > conftest.s
21626 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; }
21633 gcc_cv_as_powerpc_popcntb
=yes
21635 echo "configure: failed program was" >&5
21638 rm -f conftest.o conftest.s
21641 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
21642 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
21643 if test $gcc_cv_as_powerpc_popcntb = yes; then
21645 cat >>confdefs.h
<<\_ACEOF
21646 #define HAVE_AS_POPCNTB 1
21652 *-*-aix*) conftest_s
=' .machine "pwr5x"
21655 *) conftest_s
=' .machine power5
21660 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
21661 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
21662 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 gcc_cv_as_powerpc_fprnd
=no
21666 if test $in_tree_gas = yes; then
21667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21668 then gcc_cv_as_powerpc_fprnd
=yes
21670 elif test x
$gcc_cv_as != x
; then
21671 echo "$conftest_s" > conftest.s
21672 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }
21679 gcc_cv_as_powerpc_fprnd
=yes
21681 echo "configure: failed program was" >&5
21684 rm -f conftest.o conftest.s
21687 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
21688 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
21689 if test $gcc_cv_as_powerpc_fprnd = yes; then
21691 cat >>confdefs.h
<<\_ACEOF
21692 #define HAVE_AS_FPRND 1
21698 *-*-aix*) conftest_s
=' .machine "pwr6"
21701 *) conftest_s
=' .machine power6
21706 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
21707 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
21708 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 gcc_cv_as_powerpc_mfpgpr
=no
21712 if test $in_tree_gas = yes; then
21713 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
21714 then gcc_cv_as_powerpc_mfpgpr
=yes
21716 elif test x
$gcc_cv_as != x
; then
21717 echo "$conftest_s" > conftest.s
21718 if { ac_try
='$gcc_cv_as -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_powerpc_mfpgpr
=yes
21727 echo "configure: failed program was" >&5
21730 rm -f conftest.o conftest.s
21733 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
21734 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
21735 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
21737 cat >>confdefs.h
<<\_ACEOF
21738 #define HAVE_AS_MFPGPR 1
21744 *-*-aix*) conftest_s
=' .csect .text[PR]
21746 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
21750 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
21751 *) conftest_s
=' .text
21753 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
21756 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
21757 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
21758 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21761 gcc_cv_as_powerpc_rel16
=no
21762 if test $in_tree_gas = yes; then
21763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21764 then gcc_cv_as_powerpc_rel16
=yes
21766 elif test x
$gcc_cv_as != x
; then
21767 echo "$conftest_s" > conftest.s
21768 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }
21775 gcc_cv_as_powerpc_rel16
=yes
21777 echo "configure: failed program was" >&5
21780 rm -f conftest.o conftest.s
21783 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
21784 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
21785 if test $gcc_cv_as_powerpc_rel16 = yes; then
21787 cat >>confdefs.h
<<\_ACEOF
21788 #define HAVE_AS_REL16 1
21794 *-*-aix*) conftest_s
=' .machine "pwr6"
21797 *) conftest_s
=' .machine power6
21802 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
21803 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
21804 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 gcc_cv_as_powerpc_cmpb
=no
21808 if test $in_tree_gas = yes; then
21809 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
21810 then gcc_cv_as_powerpc_cmpb
=yes
21812 elif test x
$gcc_cv_as != x
; then
21813 echo "$conftest_s" > conftest.s
21814 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }
21821 gcc_cv_as_powerpc_cmpb
=yes
21823 echo "configure: failed program was" >&5
21826 rm -f conftest.o conftest.s
21829 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
21830 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
21831 if test $gcc_cv_as_powerpc_cmpb = yes; then
21833 cat >>confdefs.h
<<\_ACEOF
21834 #define HAVE_AS_CMPB 1
21840 *-*-aix*) conftest_s
=' .machine "pwr6"
21843 *) conftest_s
=' .machine power6
21848 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
21849 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
21850 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 gcc_cv_as_powerpc_dfp
=no
21854 if test $in_tree_gas = yes; then
21855 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
21856 then gcc_cv_as_powerpc_dfp
=yes
21858 elif test x
$gcc_cv_as != x
; then
21859 echo "$conftest_s" > conftest.s
21860 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }
21867 gcc_cv_as_powerpc_dfp
=yes
21869 echo "configure: failed program was" >&5
21872 rm -f conftest.o conftest.s
21875 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
21876 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
21877 if test $gcc_cv_as_powerpc_dfp = yes; then
21879 cat >>confdefs.h
<<\_ACEOF
21880 #define HAVE_AS_DFP 1
21885 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
21886 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
21887 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21890 gcc_cv_as_powerpc_gnu_attribute
=no
21891 if test $in_tree_gas = yes; then
21892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
21893 then gcc_cv_as_powerpc_gnu_attribute
=yes
21895 elif test x
$gcc_cv_as != x
; then
21896 echo '.gnu_attribute 4,1' > conftest.s
21897 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }
21904 gcc_cv_as_powerpc_gnu_attribute
=yes
21906 echo "configure: failed program was" >&5
21909 rm -f conftest.o conftest.s
21912 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
21913 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
21914 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
21916 cat >>confdefs.h
<<\_ACEOF
21917 #define HAVE_AS_GNU_ATTRIBUTE 1
21924 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21925 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21926 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 gcc_cv_as_mips_explicit_relocs
=no
21930 if test $in_tree_gas = yes; then
21931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21932 then gcc_cv_as_mips_explicit_relocs
=yes
21934 elif test x
$gcc_cv_as != x
; then
21935 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
21936 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }
21943 gcc_cv_as_mips_explicit_relocs
=yes
21945 echo "configure: failed program was" >&5
21948 rm -f conftest.o conftest.s
21951 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
21952 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
21953 if test $gcc_cv_as_mips_explicit_relocs = yes; then
21954 if test x
$target_cpu_default = x
21955 then target_cpu_default
=MASK_EXPLICIT_RELOCS
21956 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
21959 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
21960 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
21961 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21964 gcc_cv_as_mips_no_shared
=no
21965 if test $in_tree_gas = yes; then
21966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21967 then gcc_cv_as_mips_no_shared
=yes
21969 elif test x
$gcc_cv_as != x
; then
21970 echo 'nop' > conftest.s
21971 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }
21978 gcc_cv_as_mips_no_shared
=yes
21980 echo "configure: failed program was" >&5
21983 rm -f conftest.o conftest.s
21986 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
21987 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
21988 if test $gcc_cv_as_mips_no_shared = yes; then
21990 cat >>confdefs.h
<<\_ACEOF
21991 #define HAVE_AS_NO_SHARED 1
21996 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
21997 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
21998 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 gcc_cv_as_mips_gnu_attribute
=no
22002 if test $in_tree_gas = yes; then
22003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22004 then gcc_cv_as_mips_gnu_attribute
=yes
22006 elif test x
$gcc_cv_as != x
; then
22007 echo '.gnu_attribute 4,1' > conftest.s
22008 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }
22015 gcc_cv_as_mips_gnu_attribute
=yes
22017 echo "configure: failed program was" >&5
22020 rm -f conftest.o conftest.s
22023 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22024 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22025 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22027 cat >>confdefs.h
<<\_ACEOF
22028 #define HAVE_AS_GNU_ATTRIBUTE 1
22033 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22034 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22035 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 gcc_cv_as_mips_dtprelword
=no
22039 if test $in_tree_gas = yes; then
22040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22041 then gcc_cv_as_mips_dtprelword
=yes
22043 elif test x
$gcc_cv_as != x
; then
22044 echo '.section .tdata,"awT",@progbits
22048 .dtprelword x+0x8000' > conftest.s
22049 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }
22056 gcc_cv_as_mips_dtprelword
=yes
22058 echo "configure: failed program was" >&5
22061 rm -f conftest.o conftest.s
22064 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22065 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22066 if test $gcc_cv_as_mips_dtprelword = yes; then
22068 cat >>confdefs.h
<<\_ACEOF
22069 #define HAVE_AS_DTPRELWORD 1
22076 # Mips and HP-UX need the GNU assembler.
22077 # Linux on IA64 might be able to use the Intel assembler.
22080 mips
*-*-* |
*-*-hpux* )
22081 if test x
$gas_flag = xyes \
22082 ||
test x
"$host" != x
"$build" \
22083 ||
test ! -x "$gcc_cv_as" \
22084 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
22087 echo "*** This configuration requires the GNU assembler" >&2
22093 # ??? Not all targets support dwarf2 debug_line, even within a version
22094 # of gas. Moreover, we need to emit a valid instruction to trigger any
22095 # info to the output file. So, as supported targets are added to gas 2.11,
22096 # add some instruction here to (also) show we expect this might work.
22097 # ??? Once 2.11 is released, probably need to add first known working
22098 # version to the per-target configury.
22100 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
22101 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
22102 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
22105 ia64
*-*-* | s390
*-*-*)
22112 if test x
"$insn" != x
; then
22114 .file 1 \"conftest.s\"
22117 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22118 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22119 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 gcc_cv_as_dwarf2_debug_line
=no
22123 if test $in_tree_gas = yes; then
22124 if test $in_tree_gas_is_elf = yes \
22125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22126 then gcc_cv_as_dwarf2_debug_line
=yes
22128 elif test x
$gcc_cv_as != x
; then
22129 echo "$conftest_s" > conftest.s
22130 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; }
22137 if test x
$gcc_cv_objdump != x \
22138 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
22139 |
grep debug_line
> /dev
/null
2>&1; then
22140 gcc_cv_as_dwarf2_debug_line
=yes
22143 echo "configure: failed program was" >&5
22146 rm -f conftest.o conftest.s
22149 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22150 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22153 # The .debug_line file table must be in the exact order that
22154 # we specified the files, since these indices are also used
22155 # by DW_AT_decl_file. Approximate this test by testing if
22156 # the assembler bitches if the same index is assigned twice.
22157 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22158 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22159 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 gcc_cv_as_dwarf2_file_buggy
=no
22163 if test x
$gcc_cv_as != x
; then
22164 echo ' .file 1 "foo.s"
22165 .file 1 "bar.s"' > conftest.s
22166 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }
22173 gcc_cv_as_dwarf2_file_buggy
=yes
22175 echo "configure: failed program was" >&5
22178 rm -f conftest.o conftest.s
22181 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22182 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22185 if test $gcc_cv_as_dwarf2_debug_line = yes \
22186 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
22188 cat >>confdefs.h
<<\_ACEOF
22189 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22194 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22195 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22196 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 gcc_cv_as_gdwarf2_flag
=no
22200 if test $in_tree_gas = yes; then
22201 if test $in_tree_gas_is_elf = yes \
22202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22203 then gcc_cv_as_gdwarf2_flag
=yes
22205 elif test x
$gcc_cv_as != x
; then
22206 echo "$insn" > conftest.s
22207 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }
22214 gcc_cv_as_gdwarf2_flag
=yes
22216 echo "configure: failed program was" >&5
22219 rm -f conftest.o conftest.s
22222 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22223 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22224 if test $gcc_cv_as_gdwarf2_flag = yes; then
22226 cat >>confdefs.h
<<\_ACEOF
22227 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22232 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22233 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22234 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 gcc_cv_as_gstabs_flag
=no
22238 if test $in_tree_gas = yes; then
22239 if test $in_tree_gas_is_elf = yes \
22240 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22241 then gcc_cv_as_gstabs_flag
=yes
22243 elif test x
$gcc_cv_as != x
; then
22244 echo "$insn" > conftest.s
22245 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; }
22252 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22253 # and warns about it, but still exits successfully. So check for
22255 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }
22262 else gcc_cv_as_gstabs_flag
=yes
22265 echo "configure: failed program was" >&5
22268 rm -f conftest.o conftest.s
22271 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22272 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22273 if test $gcc_cv_as_gstabs_flag = yes; then
22275 cat >>confdefs.h
<<\_ACEOF
22276 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22281 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22282 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22283 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 gcc_cv_as_debug_prefix_map_flag
=no
22287 if test $in_tree_gas = yes; then
22288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22289 then gcc_cv_as_debug_prefix_map_flag
=yes
22291 elif test x
$gcc_cv_as != x
; then
22292 echo "$insn" > conftest.s
22293 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }
22300 gcc_cv_as_debug_prefix_map_flag
=yes
22302 echo "configure: failed program was" >&5
22305 rm -f conftest.o conftest.s
22308 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22309 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22310 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22312 cat >>confdefs.h
<<\_ACEOF
22313 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22319 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22320 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22321 if test "${gcc_cv_as_line_zero+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 gcc_cv_as_line_zero
=no
22325 if test $in_tree_gas = yes; then
22326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22327 then gcc_cv_as_line_zero
=yes
22329 elif test "x$gcc_cv_as" != x
; then
22330 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22331 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 test "x`cat conftest.out`" = x
22339 gcc_cv_as_line_zero
=yes
22341 echo "configure: failed program was" >&5
22343 echo "configure: error output was" >&5
22344 cat conftest.out
>&5
22346 rm -f conftest.o conftest.s conftest.out
22349 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22350 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22351 if test "x$gcc_cv_as_line_zero" = xyes
; then
22353 cat >>confdefs.h
<<\_ACEOF
22354 #define HAVE_AS_LINE_ZERO 1
22359 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22360 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22361 gcc_cv_ld_ro_rw_mix
=unknown
22362 if test $in_tree_ld = yes ; then
22363 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 \
22364 && test $in_tree_ld_is_elf = yes; then
22365 gcc_cv_ld_ro_rw_mix
=read-write
22367 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22368 echo '.section myfoosect, "a"' > conftest1.s
22369 echo '.section myfoosect, "aw"' > conftest2.s
22370 echo '.byte 1' >> conftest2.s
22371 echo '.section myfoosect, "a"' > conftest3.s
22372 echo '.byte 0' >> conftest3.s
22373 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22374 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22375 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22376 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22377 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22378 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22379 | sed -e '/myfoosect/!d' -e N`
22380 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22381 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22382 gcc_cv_ld_ro_rw_mix
=read-only
22384 gcc_cv_ld_ro_rw_mix
=read-write
22388 rm -f conftest.
* conftest
[123].
*
22390 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22392 cat >>confdefs.h
<<\_ACEOF
22393 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22397 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22398 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22400 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22401 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22402 gcc_cv_ld_eh_frame_hdr
=no
22403 if test $in_tree_ld = yes ; then
22404 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 \
22405 && test $in_tree_ld_is_elf = yes; then
22406 gcc_cv_ld_eh_frame_hdr
=yes
22408 elif test x
$gcc_cv_ld != x
; then
22409 # Check if linker supports --eh-frame-hdr option
22410 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
22411 gcc_cv_ld_eh_frame_hdr
=yes
22415 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
22417 cat >>confdefs.h
<<\_ACEOF
22418 #define HAVE_LD_EH_FRAME_HDR 1
22422 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
22423 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
22425 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
22426 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
22428 if test $in_tree_ld = yes ; then
22429 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 \
22430 && test $in_tree_ld_is_elf = yes; then
22433 elif test x
$gcc_cv_ld != x
; then
22434 # Check if linker supports -pie option
22435 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
22439 if test x
"$gcc_cv_ld_pie" = xyes
; then
22441 cat >>confdefs.h
<<\_ACEOF
22442 #define HAVE_LD_PIE 1
22446 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
22447 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
22449 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
22450 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
22451 gcc_cv_ld_eh_gc_sections
=no
22452 if test $in_tree_ld = yes ; then
22453 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 \
22454 && test $in_tree_ld_is_elf = yes; then
22455 gcc_cv_ld_eh_gc_sections
=yes
22457 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22458 cat > conftest.s
<<EOF
22461 .type _start, @function
22464 .size _start, .-_start
22465 .section .text.foo,"ax",@progbits
22466 .type foo, @function
22470 .section .gcc_except_table.foo,"a",@progbits
22473 .section .eh_frame,"a",@progbits
22476 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
22477 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
22478 |
grep "gc-sections option ignored" > /dev
/null
; then
22479 gcc_cv_ld_eh_gc_sections
=no
22480 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
22481 gcc_cv_ld_eh_gc_sections
=yes
22482 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
22483 if test x
$gcc_cv_as_comdat_group != xyes
; then
22484 gcc_cv_ld_eh_gc_sections
=no
22485 cat > conftest.s
<<EOF
22488 .type _start, @function
22491 .size _start, .-_start
22492 .section .gnu.linkonce.t.foo,"ax",@progbits
22493 .type foo, @function
22497 .section .gcc_except_table.foo,"a",@progbits
22500 .section .eh_frame,"a",@progbits
22503 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
22504 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
22505 |
grep "gc-sections option ignored" > /dev
/null
; then
22506 gcc_cv_ld_eh_gc_sections
=no
22507 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
22508 gcc_cv_ld_eh_gc_sections
=yes
22514 rm -f conftest.s conftest.o conftest
22518 # ??? This apparently exposes a binutils bug with PC-relative relocations.
22519 gcc_cv_ld_eh_gc_sections
=no
22522 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
22524 cat >>confdefs.h
<<\_ACEOF
22525 #define HAVE_LD_EH_GC_SECTIONS 1
22529 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
22530 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
22536 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
22537 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
22538 if test "${gcc_cv_ld_as_needed+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 gcc_cv_ld_as_needed
=no
22542 if test $in_tree_ld = yes ; then
22543 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 \
22544 && test $in_tree_ld_is_elf = yes; then
22545 gcc_cv_ld_as_needed
=yes
22547 elif test x
$gcc_cv_ld != x
; then
22548 # Check if linker supports --as-needed and --no-as-needed options
22549 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
22550 gcc_cv_ld_as_needed
=yes
22555 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
22556 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
22557 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
22559 cat >>confdefs.h
<<\_ACEOF
22560 #define HAVE_LD_AS_NEEDED 1
22565 case "$target:$tm_file" in
22566 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
22567 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
22568 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
22569 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22572 gcc_cv_ld_no_dot_syms
=no
22573 if test $in_tree_ld = yes ; then
22574 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
22575 gcc_cv_ld_no_dot_syms
=yes
22577 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
22578 cat > conftest1.s
<<EOF
22582 cat > conftest2.s
<<EOF
22583 .section ".opd","aw"
22586 .type foo,@function
22588 .quad .LEfoo,.TOC.@tocbase,0
22594 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22595 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22596 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
22597 gcc_cv_ld_no_dot_syms
=yes
22599 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
22603 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
22604 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
22605 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
22607 cat >>confdefs.h
<<\_ACEOF
22608 #define HAVE_LD_NO_DOT_SYMS 1
22615 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
22616 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
22617 if test "${gcc_cv_ld_sysroot+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 gcc_cv_ld_sysroot
=no
22621 if test $in_tree_ld = yes ; then
22622 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
22623 gcc_cv_ld_sysroot
=yes
22625 elif test x
$gcc_cv_ld != x
; then
22626 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
22627 gcc_cv_ld_sysroot
=yes
22631 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
22632 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
22633 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
22635 cat >>confdefs.h
<<\_ACEOF
22636 #define HAVE_LD_SYSROOT 1
22641 if test x
$with_sysroot = x
&& test x
$host = x
$target \
22642 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
22643 && test "$prefix" != "NONE"; then
22645 cat >>confdefs.h
<<_ACEOF
22646 #define PREFIX_INCLUDE_DIR "$prefix/include"
22651 # Test for stack protector support in target C library.
22652 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
22653 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
22654 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 gcc_cv_libc_provides_ssp
=no
22660 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
22661 if test "x$with_sysroot" = x
; then
22662 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
22663 elif test "x$with_build_sysroot" != "x"; then
22664 glibc_header_dir
="${with_build_sysroot}/usr/include"
22665 elif test "x$with_sysroot" = xyes
; then
22666 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
22668 glibc_header_dir
="${with_sysroot}/usr/include"
22671 glibc_header_dir
=/usr
/include
22673 # glibc 2.4 and later provides __stack_chk_fail and
22674 # either __stack_chk_guard, or TLS access to stack guard canary.
22675 if test -f $glibc_header_dir/features.h \
22676 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
22677 $glibc_header_dir/features.h
> /dev
/null
; then
22678 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
22679 $glibc_header_dir/features.h
> /dev
/null
; then
22680 gcc_cv_libc_provides_ssp
=yes
22681 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
22682 $glibc_header_dir/features.h
> /dev
/null \
22683 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
22684 $glibc_header_dir/features.h
> /dev
/null
; then
22685 gcc_cv_libc_provides_ssp
=yes
22686 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
22687 $glibc_header_dir/features.h
> /dev
/null
&& \
22688 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
22689 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
22690 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
22691 gcc_cv_libc_provides_ssp
=yes
22696 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
22697 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
22698 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 cat >conftest.
$ac_ext <<_ACEOF
22704 cat confdefs.h
>>conftest.
$ac_ext
22705 cat >>conftest.
$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
22708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22709 #define __stack_chk_fail innocuous___stack_chk_fail
22711 /* System header to define __stub macros and hopefully few prototypes,
22712 which can conflict with char __stack_chk_fail (); below.
22713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22714 <limits.h> exists even on freestanding compilers. */
22717 # include <limits.h>
22719 # include <assert.h>
22722 #undef __stack_chk_fail
22724 /* Override any gcc2 internal prototype to avoid an error. */
22729 /* We use char because int might match the return type of a gcc2
22730 builtin and then its argument prototype would still apply. */
22731 char __stack_chk_fail ();
22732 /* The GNU C library defines this for functions which it implements
22733 to always fail with ENOSYS. Some functions are actually named
22734 something starting with __ and the normal name is an alias. */
22735 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
22738 char (*f) () = __stack_chk_fail;
22747 return f != __stack_chk_fail;
22752 rm -f conftest.
$ac_objext conftest
$ac_exeext
22753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22754 (eval $ac_link) 2>conftest.er1
22756 grep -v '^ *+' conftest.er1
>conftest.err
22758 cat conftest.err
>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } &&
22761 { ac_try
='test -z "$ac_c_werror_flag"
22762 || test ! -s conftest.err'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; } &&
22768 { ac_try
='test -s conftest$ac_exeext'
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22770 (eval $ac_try) 2>&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
22774 ac_cv_func___stack_chk_fail
=yes
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.
$ac_ext >&5
22779 ac_cv_func___stack_chk_fail
=no
22781 rm -f conftest.err conftest.
$ac_objext \
22782 conftest
$ac_exeext conftest.
$ac_ext
22784 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
22785 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
22786 if test $ac_cv_func___stack_chk_fail = yes; then
22787 gcc_cv_libc_provides_ssp
=yes
22789 echo "no __stack_chk_fail on this target"
22793 *) gcc_cv_libc_provides_ssp
=no
;;
22796 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
22797 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
22799 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
22801 cat >>confdefs.h
<<\_ACEOF
22802 #define TARGET_LIBC_PROVIDES_SSP 1
22807 # Check if TFmode long double should be used by default or not.
22808 # Some glibc targets used DFmode long double, but with glibc 2.4
22809 # and later they can use TFmode.
22811 powerpc
*-*-linux* | \
22812 powerpc
*-*-gnu* | \
22813 sparc
*-*-linux* | \
22817 # Check whether --with-long-double-128 or --without-long-double-128 was given.
22818 if test "${with_long_double_128+set}" = set; then
22819 withval
="$with_long_double_128"
22820 gcc_cv_target_ldbl128
="$with_long_double_128"
22822 gcc_cv_target_ldbl128
=no
22823 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
22824 if test "x$with_sysroot" = x
; then
22825 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
22826 elif test "x$with_build_sysroot" != "x"; then
22827 glibc_header_dir
="${with_build_sysroot}/usr/include"
22828 elif test "x$with_sysroot" = xyes
; then
22829 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
22831 glibc_header_dir
="${with_sysroot}/usr/include"
22834 glibc_header_dir
=/usr
/include
22836 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
22837 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
22838 && gcc_cv_target_ldbl128
=yes
22843 if test x
$gcc_cv_target_ldbl128 = xyes
; then
22845 cat >>confdefs.h
<<\_ACEOF
22846 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
22851 # Find out what GC implementation we want, or may, use.
22853 # Check whether --with-gc or --without-gc was given.
22854 if test "${with_gc+set}" = set; then
22863 cat >>confdefs.h
<<\_ACEOF
22869 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
22870 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
22871 { (exit 1); exit 1; }; }
22878 echo "Using $GGC for garbage collection."
22880 # Use the system's zlib library.
22882 zlibinc
="-I\$(srcdir)/../zlib"
22884 # Check whether --with-system-zlib or --without-system-zlib was given.
22885 if test "${with_system_zlib+set}" = set; then
22886 withval
="$with_system_zlib"
22895 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22896 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
22897 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
22898 if test "${enable_maintainer_mode+set}" = set; then
22899 enableval
="$enable_maintainer_mode"
22900 maintainer_mode
=$enableval
22905 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
22906 echo "${ECHO_T}$maintainer_mode" >&6
22908 if test "$maintainer_mode" = "yes"; then
22918 # Make empty files to contain the specs and options for each language.
22919 # Then add #include lines to for a compiler that has specs and/or options.
22925 # These (without "all_") are set in each config-lang.in.
22926 # `language' must be a single word so is spelled singularly.
22929 all_outputs
='Makefile gccbug libada-mk'
22930 # List of language makefile fragments.
22931 all_lang_makefrags
=
22932 # List of language subdirectory makefiles. Deprecated.
22933 all_lang_makefiles
=
22934 # Additional files for gengtype
22935 all_gtfiles
="$target_gtfiles"
22937 # These are the languages that are set in --enable-languages,
22938 # and are available in the GCC tree.
22939 all_selected_languages
=
22941 # Add the language fragments.
22942 # Languages are added via two mechanisms. Some information must be
22943 # recorded in makefile variables, these are defined in config-lang.in.
22944 # We accumulate them and plug them into the main Makefile.
22945 # The other mechanism is a set of hooks for each of the main targets
22946 # like `clean', `install', etc.
22948 language_hooks
="Make-hooks"
22950 for lang
in ${srcdir}/*/config-lang.
in
22952 test "$lang" = "${srcdir}/*/config-lang.in" && continue
22954 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
22955 if test "x$lang_alias" = x
22957 echo "$lang doesn't set \$language." 1>&2
22960 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
22961 subdirs
="$subdirs $subdir"
22962 case ",$enable_languages," in
22964 all_selected_languages
="$all_selected_languages $lang_alias"
22965 if test -f $srcdir/$subdir/lang-specs.h
; then
22966 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
22977 .
${srcdir}/$subdir/config-lang.
in
22978 if test "x$language" = x
22980 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
22985 case ",$enable_languages," in
22986 *,$lang_alias,*) ;;
22988 for i
in $subdir_requires; do
22989 test -f "${srcdir}/$i/config-lang.in" && continue
22997 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
22998 if test -f $srcdir/$subdir/lang.opt
; then
22999 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
23001 if test -f $srcdir/$subdir/$subdir-tree.def
; then
23002 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
23004 if test -f ${srcdir}/$subdir/Makefile.
in
23005 then all_lang_makefiles
="$subdir/Makefile"
23007 all_languages
="$all_languages $language"
23008 all_compilers
="$all_compilers $compilers"
23009 all_outputs
="$all_outputs $outputs"
23010 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
23013 # Pick up gtfiles for c
23015 .
${srcdir}/c-config-lang.
in
23016 all_gtfiles
="$all_gtfiles [c] $gtfiles"
23019 for language
in $all_selected_languages
23021 check_languages
="$check_languages check-$language"
23024 # We link each language in with a set of hooks, reached indirectly via
23025 # lang.${target}. Only do so for selected languages.
23029 target_list
="all.cross start.encap rest.encap tags \
23030 install-common install-man install-info install-pdf dvi pdf \
23031 html uninstall info man srcextra srcman srcinfo \
23032 mostlyclean clean distclean maintainer-clean"
23034 for t
in $target_list
23037 for lang
in $all_selected_languages
23041 echo "lang.$t: $x" >> Make-hooks
23050 echo "dir ." > .gdbinit
23051 echo "dir ${srcdir}" >> .gdbinit
23052 if test x
$gdb_needs_out_file_path = xyes
23054 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23056 if test "x$subdirs" != x
; then
23059 echo "dir ${srcdir}/$s" >> .gdbinit
23062 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23064 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23068 # Find a directory in which to install a shared libgcc.
23070 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23071 if test "${enable_version_specific_runtime_libs+set}" = set; then
23072 enableval
="$enable_version_specific_runtime_libs"
23077 # Check whether --with-slibdir or --without-slibdir was given.
23078 if test "${with_slibdir+set}" = set; then
23079 withval
="$with_slibdir"
23080 slibdir
="$with_slibdir"
23082 if test "${enable_version_specific_runtime_libs+set}" = set; then
23083 slibdir
='$(libsubdir)'
23084 elif test "$host" != "$target"; then
23085 slibdir
='$(build_tooldir)/lib'
23087 slibdir
='$(libdir)'
23093 # Check whether --with-datarootdir or --without-datarootdir was given.
23094 if test "${with_datarootdir+set}" = set; then
23095 withval
="$with_datarootdir"
23096 datarootdir
="\${prefix}/$with_datarootdir"
23098 datarootdir
='$(prefix)/share'
23103 # Check whether --with-docdir or --without-docdir was given.
23104 if test "${with_docdir+set}" = set; then
23105 withval
="$with_docdir"
23106 docdir
="\${prefix}/$with_docdir"
23108 docdir
='$(datarootdir)'
23113 # Check whether --with-htmldir or --without-htmldir was given.
23114 if test "${with_htmldir+set}" = set; then
23115 withval
="$with_htmldir"
23116 htmldir
="\${prefix}/$with_htmldir"
23118 htmldir
='$(docdir)'
23122 # Substitute configuration variables
23180 if test x
${build} = x
${host} ; then
23181 if test x
${host} = x
${target} ; then
23182 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23184 echo "Links are now set up to build a cross-compiler" 1>&2
23185 echo " from ${host} to ${target}." 1>&2
23188 if test x
${host} = x
${target} ; then
23189 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23190 echo " for ${target}." 1>&2
23192 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23193 echo " from ${host} to ${target}." 1>&2
23200 # Configure the subdirectories
23201 # AC_CONFIG_SUBDIRS($subdirs)
23203 # Create the Makefile
23204 # and configure language subdirectories
23205 ac_config_files
="$ac_config_files $all_outputs"
23208 ac_config_commands
="$ac_config_commands default"
23210 cat >confcache
<<\_ACEOF
23211 # This file is a shell script that caches the results of configure
23212 # tests run on this system so they can be shared between configure
23213 # scripts and configure runs, see configure's option --config-cache.
23214 # It is not useful on other systems. If it contains results you don't
23215 # want to keep, you may remove or edit it.
23217 # config.status only pays attention to the cache file if you give it
23218 # the --recheck option to rerun configure.
23220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23222 # following values.
23226 # The following way of writing the cache mishandles newlines in values,
23227 # but we know of no workaround that is simple, portable, and efficient.
23228 # So, don't put newlines in cache variables' values.
23229 # Ultrix sh set writes to stderr and can't be redirected directly,
23230 # and sets the high bit in the cache file unless we assign to the vars.
23233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23235 # `set' does not quote correctly, so add quotes (double-quote
23236 # substitution turns \\\\ into \\, and sed turns \\ into \).
23239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23242 # `set' quotes correctly as required by POSIX, so do not add quotes.
23244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23255 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23256 if test -w $cache_file; then
23257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23258 cat confcache
>$cache_file
23260 echo "not updating unwritable cache $cache_file"
23265 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23266 # Let make expand exec_prefix.
23267 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23271 # trailing colons and then remove the whole line if VPATH becomes empty
23272 # (actually we leave an empty line to preserve line numbers).
23273 if test "x$srcdir" = x.
; then
23274 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23275 s/:*\$(srcdir):*/:/;
23276 s/:*\${srcdir}:*/:/;
23278 s/^\([^=]*=[ ]*\):*/\1/;
23284 DEFS
=-DHAVE_CONFIG_H
23288 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23289 # 1. Remove the extension, and $U if already installed.
23290 ac_i
=`echo "$ac_i" |
23291 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23293 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23294 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23296 LIBOBJS
=$ac_libobjs
23298 LTLIBOBJS
=$ac_ltlibobjs
23302 : ${CONFIG_STATUS=./config.status}
23303 ac_clean_files_save
=$ac_clean_files
23304 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23305 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23306 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23307 cat >$CONFIG_STATUS <<_ACEOF
23309 # Generated by $as_me.
23310 # Run this file to recreate the current configuration.
23311 # Compiler output produced by configure, useful for debugging
23312 # configure, is in config.log if it exists.
23315 ac_cs_recheck=false
23317 SHELL=\${CONFIG_SHELL-$SHELL}
23320 cat >>$CONFIG_STATUS <<\_ACEOF
23321 ## --------------------- ##
23322 ## M4sh Initialization. ##
23323 ## --------------------- ##
23325 # Be Bourne compatible
23326 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23330 # is contrary to our usage. Disable this feature.
23331 alias -g '${1+"$@"}'='"$@"'
23332 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23335 DUALCASE
=1; export DUALCASE
# for MKS sh
23337 # Support unset when possible.
23338 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23345 # Work around bugs in pre-3.0 UWIN ksh.
23346 $as_unset ENV MAIL MAILPATH
23353 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23354 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23355 LC_TELEPHONE LC_TIME
23357 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23358 eval $as_var=C
; export $as_var
23364 # Required to use basename.
23365 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23371 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23372 as_basename
=basename
23378 # Name of the executable.
23379 as_me
=`$as_basename "$0" ||
23380 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23381 X"$0" : 'X\(//\)$' \| \
23382 X"$0" : 'X\(/\)$' \| \
23383 . : '\(.\)' 2>/dev/null ||
23385 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23386 /^X\/\(\/\/\)$/{ s//\1/; q; }
23387 /^X\/\(\/\).*/{ s//\1/; q; }
23391 # PATH needs CR, and LINENO needs CR and PATH.
23392 # Avoid depending upon Character Ranges.
23393 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23394 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23395 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23396 as_cr_digits
='0123456789'
23397 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23399 # The user is always right.
23400 if test "${PATH_SEPARATOR+set}" != set; then
23401 echo "#! /bin/sh" >conf$$.sh
23402 echo "exit 0" >>conf$$.sh
23404 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23413 as_lineno_1
=$LINENO
23414 as_lineno_2
=$LINENO
23415 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23416 test "x$as_lineno_1" != "x$as_lineno_2" &&
23417 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23418 # Find who we are. Look in the path if we contain no path at all
23421 *[\\/]* ) as_myself
=$0 ;;
23422 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23423 for as_dir
in $PATH
23426 test -z "$as_dir" && as_dir
=.
23427 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23432 # We did not find ourselves, most probably we were run as `sh COMMAND'
23433 # in which case we are not to be found in the path.
23434 if test "x$as_myself" = x
; then
23437 if test ! -f "$as_myself"; then
23438 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23439 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23440 { (exit 1); exit 1; }; }
23442 case $CONFIG_SHELL in
23444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23445 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23448 test -z "$as_dir" && as_dir
=.
23449 for as_base
in sh bash ksh sh5
; do
23452 if ("$as_dir/$as_base" -c '
23453 as_lineno_1=$LINENO
23454 as_lineno_2=$LINENO
23455 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23456 test "x$as_lineno_1" != "x$as_lineno_2" &&
23457 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23458 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23459 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23460 CONFIG_SHELL
=$as_dir/$as_base
23461 export CONFIG_SHELL
23462 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23471 # uniformly replaced by the line number. The first 'sed' inserts a
23472 # line-number line before each line; the second 'sed' does the real
23473 # work. The second script uses 'N' to pair each line-number line
23474 # with the numbered line, and appends trailing '-' during
23475 # substitution so that $LINENO is not a special case at line end.
23476 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23477 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23478 sed '=' <$as_myself |
23483 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23486 s,^['$as_cr_digits']*\n,,
23487 ' >$as_me.lineno
&&
23488 chmod +x
$as_me.lineno ||
23489 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23490 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23491 { (exit 1); exit 1; }; }
23493 # Don't try to exec as it changes $[0], causing all sort of problems
23494 # (the dirname of $[0] is not the place where we might find the
23495 # original and so on. Autoconf is especially sensible to this).
23497 # Exit status is that of the last command.
23502 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23503 *c
*,-n*) ECHO_N
= ECHO_C
='
23505 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23506 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23509 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23515 rm -f conf$$ conf$$.exe conf$$.
file
23517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23518 # We could just check for DJGPP; but this test a) works b) is more generic
23519 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23520 if test -f conf$$.exe
; then
23521 # Don't use ln at all; we don't have any links
23526 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23531 rm -f conf$$ conf$$.exe conf$$.
file
23533 if mkdir
-p .
2>/dev
/null
; then
23536 test -d .
/-p && rmdir .
/-p
23540 as_executable_p
="test -f"
23542 # Sed expression to map a string onto a valid CPP name.
23543 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23545 # Sed expression to map a string onto a valid variable name.
23546 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23550 # We need space, tab and new line, in precisely that order.
23560 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23561 # report actual input values of CONFIG_FILES etc. instead of their
23562 # values after options handling. Logging --version etc. is OK.
23566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23567 ## Running $as_me. ##
23572 This file was extended by $as_me, which was
23573 generated by GNU Autoconf 2.59. Invocation command line was
23575 CONFIG_FILES = $CONFIG_FILES
23576 CONFIG_HEADERS = $CONFIG_HEADERS
23577 CONFIG_LINKS = $CONFIG_LINKS
23578 CONFIG_COMMANDS = $CONFIG_COMMANDS
23582 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23586 # Files that config.status was made for.
23587 if test -n "$ac_config_files"; then
23588 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23591 if test -n "$ac_config_headers"; then
23592 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23595 if test -n "$ac_config_links"; then
23596 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23599 if test -n "$ac_config_commands"; then
23600 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23603 cat >>$CONFIG_STATUS <<\_ACEOF
23606 \`$as_me' instantiates files from templates according to the
23607 current configuration.
23609 Usage: $0 [OPTIONS] [FILE]...
23611 -h, --help print this help, then exit
23612 -V, --version print version number, then exit
23613 -q, --quiet do not print progress messages
23614 -d, --debug don't remove temporary files
23615 --recheck update $as_me by reconfiguring in the same conditions
23616 --file=FILE[:TEMPLATE]
23617 instantiate the configuration file FILE
23618 --header=FILE[:TEMPLATE]
23619 instantiate the configuration header FILE
23621 Configuration files:
23624 Configuration headers:
23627 Configuration commands:
23630 Report bugs to <bug-autoconf@gnu.org>."
23633 cat >>$CONFIG_STATUS <<_ACEOF
23636 configured by $0, generated by GNU Autoconf 2.59,
23637 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23639 Copyright (C) 2003 Free Software Foundation, Inc.
23640 This config.status script is free software; the Free Software Foundation
23641 gives unlimited permission to copy, distribute and modify it."
23645 cat >>$CONFIG_STATUS <<\_ACEOF
23646 # If no file are specified by the user, then we need to provide default
23647 # value. By we need to know if files were specified by the user.
23653 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
23654 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
23662 *) # This is not an option, so the user has probably given explicit
23665 ac_need_defaults
=false
;;
23669 # Handling of the options.
23671 cat >>$CONFIG_STATUS <<\_ACEOF
23672 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23674 --version |
--vers* |
-V )
23675 echo "$ac_cs_version"; exit 0 ;;
23677 # Conflict between --help and --header
23678 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23679 Try \`$0 --help' for more information." >&5
23680 echo "$as_me: error: ambiguous option: $1
23681 Try \`$0 --help' for more information." >&2;}
23682 { (exit 1); exit 1; }; };;
23683 --help |
--hel |
-h )
23684 echo "$ac_cs_usage"; exit 0 ;;
23685 --debug |
--d* |
-d )
23687 --file |
--fil |
--fi |
--f )
23689 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23690 ac_need_defaults
=false
;;
23691 --header |
--heade |
--head |
--hea )
23693 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23694 ac_need_defaults
=false
;;
23695 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23696 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23699 # This is an error.
23700 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23701 Try \`$0 --help' for more information." >&5
23702 echo "$as_me: error: unrecognized option: $1
23703 Try \`$0 --help' for more information." >&2;}
23704 { (exit 1); exit 1; }; } ;;
23706 *) ac_config_targets
="$ac_config_targets $1" ;;
23712 ac_configure_extra_args
=
23714 if $ac_cs_silent; then
23716 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23720 cat >>$CONFIG_STATUS <<_ACEOF
23721 if \$ac_cs_recheck; then
23722 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23723 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23728 cat >>$CONFIG_STATUS <<_ACEOF
23730 # INIT-COMMANDS section.
23739 cat >>$CONFIG_STATUS <<\_ACEOF
23740 for ac_config_target
in $ac_config_targets
23742 case "$ac_config_target" in
23743 # Handling of arguments.
23744 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
23745 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
23746 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
23747 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
23748 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23749 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
23750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23752 { (exit 1); exit 1; }; };;
23756 # If the user did not use the arguments to specify the items to instantiate,
23757 # then the envvar interface is used. Set only those that are not.
23758 # We use the long form for the default assignment because of an extremely
23759 # bizarre bug on SunOS 4.1.3.
23760 if $ac_need_defaults; then
23761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23766 # Have a temporary directory for convenience. Make it in the build tree
23767 # simply because there is no reason to put it here, and in addition,
23768 # creating and moving files from /tmp can sometimes cause problems.
23769 # Create a temporary directory, and hook for its removal unless debugging.
23772 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23773 trap '{ (exit 1); exit 1; }' 1 2 13 15
23776 # Create a (secure) tmp directory for tmp files.
23779 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23780 test -n "$tmp" && test -d "$tmp"
23783 tmp
=.
/confstat$$
-$RANDOM
23784 (umask 077 && mkdir
$tmp)
23787 echo "$me: cannot create a temporary directory in ." >&2
23788 { (exit 1); exit 1; }
23793 cat >>$CONFIG_STATUS <<_ACEOF
23796 # CONFIG_FILES section.
23799 # No need to generate the scripts if there are no CONFIG_FILES.
23800 # This happens for instance when ./config.status config.h
23801 if test -n "\$CONFIG_FILES"; then
23802 # Protect against being on the right side of a sed subst in config.status.
23803 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23804 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23805 s,@SHELL@,$SHELL,;t t
23806 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23807 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23808 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23809 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23810 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23811 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23812 s,@exec_prefix@,$exec_prefix,;t t
23813 s,@prefix@,$prefix,;t t
23814 s,@program_transform_name@,$program_transform_name,;t t
23815 s,@bindir@,$bindir,;t t
23816 s,@sbindir@,$sbindir,;t t
23817 s,@libexecdir@,$libexecdir,;t t
23818 s,@datadir@,$datadir,;t t
23819 s,@sysconfdir@,$sysconfdir,;t t
23820 s,@sharedstatedir@,$sharedstatedir,;t t
23821 s,@localstatedir@,$localstatedir,;t t
23822 s,@libdir@,$libdir,;t t
23823 s,@includedir@,$includedir,;t t
23824 s,@oldincludedir@,$oldincludedir,;t t
23825 s,@infodir@,$infodir,;t t
23826 s,@mandir@,$mandir,;t t
23827 s,@build_alias@,$build_alias,;t t
23828 s,@host_alias@,$host_alias,;t t
23829 s,@target_alias@,$target_alias,;t t
23830 s,@DEFS@,$DEFS,;t t
23831 s,@ECHO_C@,$ECHO_C,;t t
23832 s,@ECHO_N@,$ECHO_N,;t t
23833 s,@ECHO_T@,$ECHO_T,;t t
23834 s,@LIBS@,$LIBS,;t t
23835 s,@build@,$build,;t t
23836 s,@build_cpu@,$build_cpu,;t t
23837 s,@build_vendor@,$build_vendor,;t t
23838 s,@build_os@,$build_os,;t t
23839 s,@host@,$host,;t t
23840 s,@host_cpu@,$host_cpu,;t t
23841 s,@host_vendor@,$host_vendor,;t t
23842 s,@host_os@,$host_os,;t t
23843 s,@target@,$target,;t t
23844 s,@target_cpu@,$target_cpu,;t t
23845 s,@target_vendor@,$target_vendor,;t t
23846 s,@target_os@,$target_os,;t t
23847 s,@target_noncanonical@,$target_noncanonical,;t t
23848 s,@build_libsubdir@,$build_libsubdir,;t t
23849 s,@build_subdir@,$build_subdir,;t t
23850 s,@host_subdir@,$host_subdir,;t t
23851 s,@target_subdir@,$target_subdir,;t t
23852 s,@GENINSRC@,$GENINSRC,;t t
23854 s,@CFLAGS@,$CFLAGS,;t t
23855 s,@LDFLAGS@,$LDFLAGS,;t t
23856 s,@CPPFLAGS@,$CPPFLAGS,;t t
23857 s,@ac_ct_CC@,$ac_ct_CC,;t t
23858 s,@EXEEXT@,$EXEEXT,;t t
23859 s,@OBJEXT@,$OBJEXT,;t t
23860 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
23861 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
23863 s,@EGREP@,$EGREP,;t t
23864 s,@loose_warn@,$loose_warn,;t t
23865 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
23866 s,@strict_warn@,$strict_warn,;t t
23867 s,@warn_cflags@,$warn_cflags,;t t
23868 s,@nocommon_flag@,$nocommon_flag,;t t
23869 s,@TREEBROWSER@,$TREEBROWSER,;t t
23870 s,@valgrind_path@,$valgrind_path,;t t
23871 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
23872 s,@valgrind_command@,$valgrind_command,;t t
23873 s,@coverage_flags@,$coverage_flags,;t t
23874 s,@enable_multilib@,$enable_multilib,;t t
23875 s,@enable_decimal_float@,$enable_decimal_float,;t t
23876 s,@enable_fixed_point@,$enable_fixed_point,;t t
23877 s,@enable_shared@,$enable_shared,;t t
23878 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23879 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23880 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
23881 s,@onestep@,$onestep,;t t
23882 s,@PKGVERSION@,$PKGVERSION,;t t
23883 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23884 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23885 s,@datarootdir@,$datarootdir,;t t
23886 s,@docdir@,$docdir,;t t
23887 s,@htmldir@,$htmldir,;t t
23888 s,@SET_MAKE@,$SET_MAKE,;t t
23890 s,@LN_S@,$LN_S,;t t
23892 s,@RANLIB@,$RANLIB,;t t
23893 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23894 s,@ranlib_flags@,$ranlib_flags,;t t
23895 s,@INSTALL@,$INSTALL,;t t
23896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23898 s,@make_compare_target@,$make_compare_target,;t t
23899 s,@have_mktemp_command@,$have_mktemp_command,;t t
23900 s,@MAKEINFO@,$MAKEINFO,;t t
23901 s,@BUILD_INFO@,$BUILD_INFO,;t t
23902 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
23903 s,@FLEX@,$FLEX,;t t
23904 s,@BISON@,$BISON,;t t
23907 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
23908 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
23909 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
23910 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
23911 s,@LIBICONV@,$LIBICONV,;t t
23912 s,@LTLIBICONV@,$LTLIBICONV,;t t
23913 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
23914 s,@manext@,$manext,;t t
23915 s,@objext@,$objext,;t t
23916 s,@gthread_flags@,$gthread_flags,;t t
23917 s,@extra_modes_file@,$extra_modes_file,;t t
23918 s,@extra_opt_files@,$extra_opt_files,;t t
23919 s,@USE_NLS@,$USE_NLS,;t t
23920 s,@LIBINTL@,$LIBINTL,;t t
23921 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23922 s,@INCINTL@,$INCINTL,;t t
23923 s,@XGETTEXT@,$XGETTEXT,;t t
23924 s,@GMSGFMT@,$GMSGFMT,;t t
23925 s,@POSUB@,$POSUB,;t t
23926 s,@CATALOGS@,$CATALOGS,;t t
23927 s,@DATADIRNAME@,$DATADIRNAME,;t t
23928 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23929 s,@GENCAT@,$GENCAT,;t t
23930 s,@CATOBJEXT@,$CATOBJEXT,;t t
23931 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
23932 s,@CROSS@,$CROSS,;t t
23934 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
23935 s,@inhibit_libc@,$inhibit_libc,;t t
23936 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23937 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23938 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
23939 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
23940 s,@collect2@,$collect2,;t t
23941 s,@LIBTOOL@,$LIBTOOL,;t t
23943 s,@FGREP@,$FGREP,;t t
23944 s,@GREP@,$GREP,;t t
23946 s,@DUMPBIN@,$DUMPBIN,;t t
23947 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23948 s,@ac_ct_AR@,$ac_ct_AR,;t t
23949 s,@STRIP@,$STRIP,;t t
23950 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23951 s,@lt_ECHO@,$lt_ECHO,;t t
23952 s,@objdir@,$objdir,;t t
23953 s,@enable_fast_install@,$enable_fast_install,;t t
23954 s,@gcc_cv_as@,$gcc_cv_as,;t t
23955 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
23956 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
23957 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
23958 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
23959 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
23960 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
23961 s,@libgcc_visibility@,$libgcc_visibility,;t t
23963 s,@zlibdir@,$zlibdir,;t t
23964 s,@zlibinc@,$zlibinc,;t t
23965 s,@MAINT@,$MAINT,;t t
23966 s,@gcc_tooldir@,$gcc_tooldir,;t t
23967 s,@dollar@,$dollar,;t t
23968 s,@slibdir@,$slibdir,;t t
23969 s,@subdirs@,$subdirs,;t t
23970 s,@srcdir@,$srcdir,;t t
23971 s,@all_compilers@,$all_compilers,;t t
23972 s,@all_gtfiles@,$all_gtfiles,;t t
23973 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
23974 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
23975 s,@all_languages@,$all_languages,;t t
23976 s,@all_selected_languages@,$all_selected_languages,;t t
23977 s,@build_exeext@,$build_exeext,;t t
23978 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
23979 s,@build_xm_file_list@,$build_xm_file_list,;t t
23980 s,@build_xm_include_list@,$build_xm_include_list,;t t
23981 s,@build_xm_defines@,$build_xm_defines,;t t
23982 s,@build_file_translate@,$build_file_translate,;t t
23983 s,@check_languages@,$check_languages,;t t
23984 s,@cpp_install_dir@,$cpp_install_dir,;t t
23985 s,@xmake_file@,$xmake_file,;t t
23986 s,@tmake_file@,$tmake_file,;t t
23987 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
23988 s,@extra_headers_list@,$extra_headers_list,;t t
23989 s,@extra_objs@,$extra_objs,;t t
23990 s,@extra_parts@,$extra_parts,;t t
23991 s,@extra_passes@,$extra_passes,;t t
23992 s,@extra_programs@,$extra_programs,;t t
23993 s,@float_h_file@,$float_h_file,;t t
23994 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
23995 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
23996 s,@host_exeext@,$host_exeext,;t t
23997 s,@host_xm_file_list@,$host_xm_file_list,;t t
23998 s,@host_xm_include_list@,$host_xm_include_list,;t t
23999 s,@host_xm_defines@,$host_xm_defines,;t t
24000 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24001 s,@install@,$install,;t t
24002 s,@lang_opt_files@,$lang_opt_files,;t t
24003 s,@lang_specs_files@,$lang_specs_files,;t t
24004 s,@lang_tree_files@,$lang_tree_files,;t t
24005 s,@local_prefix@,$local_prefix,;t t
24006 s,@md_file@,$md_file,;t t
24007 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24008 s,@out_file@,$out_file,;t t
24009 s,@out_object_file@,$out_object_file,;t t
24010 s,@thread_file@,$thread_file,;t t
24011 s,@tm_file_list@,$tm_file_list,;t t
24012 s,@tm_include_list@,$tm_include_list,;t t
24013 s,@tm_defines@,$tm_defines,;t t
24014 s,@tm_p_file_list@,$tm_p_file_list,;t t
24015 s,@tm_p_include_list@,$tm_p_include_list,;t t
24016 s,@xm_file_list@,$xm_file_list,;t t
24017 s,@xm_include_list@,$xm_include_list,;t t
24018 s,@xm_defines@,$xm_defines,;t t
24019 s,@c_target_objs@,$c_target_objs,;t t
24020 s,@cxx_target_objs@,$cxx_target_objs,;t t
24021 s,@target_cpu_default@,$target_cpu_default,;t t
24022 s,@GMPLIBS@,$GMPLIBS,;t t
24023 s,@GMPINC@,$GMPINC,;t t
24024 s,@LIBOBJS@,$LIBOBJS,;t t
24025 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24026 /@language_hooks@/r $language_hooks
24027 s,@language_hooks@,,;t t
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24033 # Split the substitutions into bite-sized pieces for seds with
24034 # small command number limits, like on Digital OSF/1 and HP-UX.
24035 ac_max_sed_lines
=48
24036 ac_sed_frag
=1 # Number of current file.
24037 ac_beg
=1 # First line for current file.
24038 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24041 while $ac_more_lines; do
24042 if test $ac_beg -gt 1; then
24043 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24045 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24047 if test ! -s $tmp/subs.frag
; then
24048 ac_more_lines
=false
24050 # The purpose of the label and of the branching condition is to
24051 # speed up the sed processing (if there are no `@' at all, there
24052 # is no need to browse any of the substitutions).
24053 # These are the two extra sed commands mentioned above.
24055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24056 if test -z "$ac_sed_cmds"; then
24057 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24059 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24061 ac_sed_frag
=`expr $ac_sed_frag + 1`
24063 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24066 if test -z "$ac_sed_cmds"; then
24069 fi # test -n "$CONFIG_FILES"
24072 cat >>$CONFIG_STATUS <<\_ACEOF
24073 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24076 - |
*:- |
*:-:* ) # input from stdin
24078 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24079 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24080 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24081 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24082 * ) ac_file_in
=$ac_file.
in ;;
24085 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24086 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24088 X"$ac_file" : 'X\(//\)[^/]' \| \
24089 X"$ac_file" : 'X\(//\)$' \| \
24090 X"$ac_file" : 'X\(/\)' \| \
24091 . : '\(.\)' 2>/dev/null ||
24093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24095 /^X\(\/\/\)$/{ s//\1/; q; }
24096 /^X\(\/\).*/{ s//\1/; q; }
24098 { if $as_mkdir_p; then
24103 while test ! -d "$as_dir"; do
24104 as_dirs
="$as_dir $as_dirs"
24105 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24107 X"$as_dir" : 'X\(//\)[^/]' \| \
24108 X"$as_dir" : 'X\(//\)$' \| \
24109 X"$as_dir" : 'X\(/\)' \| \
24110 . : '\(.\)' 2>/dev/null ||
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24114 /^X\(\/\/\)$/{ s//\1/; q; }
24115 /^X\(\/\).*/{ s//\1/; q; }
24118 test ! -n "$as_dirs" || mkdir
$as_dirs
24119 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24121 { (exit 1); exit 1; }; }; }
24125 if test "$ac_dir" != .
; then
24126 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24127 # A "../" for each directory in $ac_dir_suffix.
24128 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24130 ac_dir_suffix
= ac_top_builddir
=
24134 .
) # No --srcdir option. We are building in place.
24136 if test -z "$ac_top_builddir"; then
24139 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24141 [\\/]* | ?
:[\\/]* ) # Absolute path.
24142 ac_srcdir
=$srcdir$ac_dir_suffix;
24143 ac_top_srcdir
=$srcdir ;;
24144 *) # Relative path.
24145 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24146 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24149 # Do not use `cd foo && pwd` to compute absolute paths, because
24150 # the directories may not exist.
24152 .
) ac_abs_builddir
="$ac_dir";;
24155 .
) ac_abs_builddir
=`pwd`;;
24156 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24157 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24160 case $ac_abs_builddir in
24161 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24163 case ${ac_top_builddir}.
in
24164 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24165 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24166 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24169 case $ac_abs_builddir in
24170 .
) ac_abs_srcdir
=$ac_srcdir;;
24173 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24174 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24175 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24178 case $ac_abs_builddir in
24179 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24181 case $ac_top_srcdir in
24182 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24183 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24184 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24190 if test x
"$ac_file" != x-
; then
24191 { echo "$as_me:$LINENO: creating $ac_file" >&5
24192 echo "$as_me: creating $ac_file" >&6;}
24195 # Let's still pretend it is `configure' which instantiates (i.e., don't
24196 # use $as_me), people would be surprised to read:
24197 # /* config.h. Generated by config.status. */
24198 if test x
"$ac_file" = x-
; then
24201 configure_input
="$ac_file. "
24203 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24204 sed 's,.*/,,'` by configure."
24206 # First look for the input files in the build tree, otherwise in the
24208 ac_file_inputs
=`IFS=:
24209 for f in $ac_file_in; do
24211 -) echo $tmp/stdin ;;
24213 # Absolute (can't be DOS-style, as IFS=:)
24214 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24215 echo "$as_me: error: cannot find input file: $f" >&2;}
24216 { (exit 1); exit 1; }; }
24219 if test -f "$f"; then
24222 elif test -f "$srcdir/$f"; then
24227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24228 echo "$as_me: error: cannot find input file: $f" >&2;}
24229 { (exit 1); exit 1; }; }
24232 done` ||
{ (exit 1); exit 1; }
24234 cat >>$CONFIG_STATUS <<_ACEOF
24238 cat >>$CONFIG_STATUS <<\_ACEOF
24240 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24241 s
,@configure_input@
,$configure_input,;t t
24242 s
,@srcdir@
,$ac_srcdir,;t t
24243 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24244 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24245 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24246 s
,@builddir@
,$ac_builddir,;t t
24247 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24248 s
,@top_builddir@
,$ac_top_builddir,;t t
24249 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24250 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24252 if test x"$ac_file" != x-; then
24253 mv $tmp/out $ac_file
24259 # Run the commands associated with the file.
24261 as ) chmod +x as ;;
24262 collect-ld ) chmod +x collect-ld ;;
24263 nm ) chmod +x nm ;;
24267 cat >>$CONFIG_STATUS <<\_ACEOF
24270 # CONFIG_HEADER section.
24273 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24274 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24276 # ac_d sets the value in "#define NAME VALUE" lines.
24277 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24278 ac_dB
='[ ].*$,\1#\2'
24281 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24282 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24283 ac_uB
='$,\1#\2define\3'
24287 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24290 - |
*:- |
*:-:* ) # input from stdin
24292 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24293 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24294 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24295 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24296 * ) ac_file_in
=$ac_file.
in ;;
24299 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24300 echo "$as_me: creating $ac_file" >&6;}
24302 # First look for the input files in the build tree, otherwise in the
24304 ac_file_inputs
=`IFS=:
24305 for f in $ac_file_in; do
24307 -) echo $tmp/stdin ;;
24309 # Absolute (can't be DOS-style, as IFS=:)
24310 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24311 echo "$as_me: error: cannot find input file: $f" >&2;}
24312 { (exit 1); exit 1; }; }
24313 # Do quote $f, to prevent DOS paths from being IFS'd.
24316 if test -f "$f"; then
24319 elif test -f "$srcdir/$f"; then
24324 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24325 echo "$as_me: error: cannot find input file: $f" >&2;}
24326 { (exit 1); exit 1; }; }
24329 done` ||
{ (exit 1); exit 1; }
24330 # Remove the trailing spaces.
24331 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24335 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24336 # `conftest.undefs', that substitutes the proper values into
24337 # config.h.in to produce config.h. The first handles `#define'
24338 # templates, and the second `#undef' templates.
24339 # And first: Protect against being on the right side of a sed subst in
24340 # config.status. Protect against being in an unquoted here document
24341 # in config.status.
24342 rm -f conftest.defines conftest.undefs
24343 # Using a here document instead of a string reduces the quoting nightmare.
24344 # Putting comments in sed scripts is not portable.
24346 # `end' is used to avoid that the second main sed command (meant for
24347 # 0-ary CPP macros) applies to n-ary macro definitions.
24348 # See the Autoconf documentation for `clear'.
24349 cat >confdef2sed.
sed <<\_ACEOF
24354 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24356 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24359 # If some macros were called several times there might be several times
24360 # the same #defines, which is useless. Nevertheless, we may not want to
24361 # sort them, since we want the *last* AC-DEFINE to be honored.
24362 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24363 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24364 rm -f confdef2sed.sed
24366 # This sed command replaces #undef with comments. This is necessary, for
24367 # example, in the case of _POSIX_SOURCE, which is predefined and required
24368 # on some systems where configure will not decide to define it.
24369 cat >>conftest.undefs <<\_ACEOF
24370 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24373 # Break up conftest.defines because some shells have a limit on the size
24374 # of here documents, and old seds have small limits too (100 cmds).
24375 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24376 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24377 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24378 echo ' :' >>$CONFIG_STATUS
24379 rm -f conftest.tail
24380 while grep . conftest.defines >/dev/null
24382 # Write a limited-size here document to $tmp/defines.sed.
24383 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24384 # Speed up: don't consider the non `#define' lines.
24385 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24386 # Work around the forget-to-reset-the-flag bug.
24387 echo 't clr' >>$CONFIG_STATUS
24388 echo ': clr' >>$CONFIG_STATUS
24389 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24391 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24393 mv $tmp/out $tmp/in
24395 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24396 rm -f conftest.defines
24397 mv conftest.
tail conftest.defines
24399 rm -f conftest.defines
24400 echo ' fi # grep' >>$CONFIG_STATUS
24401 echo >>$CONFIG_STATUS
24403 # Break up conftest.undefs because some shells have a limit on the size
24404 # of here documents, and old seds have small limits too (100 cmds).
24405 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24406 rm -f conftest.
tail
24407 while grep . conftest.undefs
>/dev
/null
24409 # Write a limited-size here document to $tmp/undefs.sed.
24410 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24411 # Speed up: don't consider the non
`#undef'
24412 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24413 # Work around the forget-to-reset-the-flag bug.
24414 echo 't clr' >>$CONFIG_STATUS
24415 echo ': clr' >>$CONFIG_STATUS
24416 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24418 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24420 mv $tmp/out $tmp/in
24422 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24423 rm -f conftest.undefs
24424 mv conftest.tail conftest.undefs
24426 rm -f conftest.undefs
24428 cat >>$CONFIG_STATUS <<\_ACEOF
24429 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24430 # use $as_me), people would be surprised to read:
24431 # /* config.h. Generated by config.status. */
24432 if test x
"$ac_file" = x-
; then
24433 echo "/* Generated by configure. */" >$tmp/config.h
24435 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24437 cat $tmp/in >>$tmp/config.h
24439 if test x
"$ac_file" != x-
; then
24440 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24441 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24442 echo "$as_me: $ac_file is unchanged" >&6;}
24444 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24446 X"$ac_file" : 'X\(//\)[^/]' \| \
24447 X"$ac_file" : 'X\(//\)$' \| \
24448 X"$ac_file" : 'X\(/\)' \| \
24449 . : '\(.\)' 2>/dev/null ||
24451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24453 /^X\(\/\/\)$/{ s//\1/; q; }
24454 /^X\(\/\).*/{ s//\1/; q; }
24456 { if $as_mkdir_p; then
24461 while test ! -d "$as_dir"; do
24462 as_dirs
="$as_dir $as_dirs"
24463 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465 X"$as_dir" : 'X\(//\)[^/]' \| \
24466 X"$as_dir" : 'X\(//\)$' \| \
24467 X"$as_dir" : 'X\(/\)' \| \
24468 . : '\(.\)' 2>/dev/null ||
24470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24472 /^X\(\/\/\)$/{ s//\1/; q; }
24473 /^X\(\/\).*/{ s//\1/; q; }
24476 test ! -n "$as_dirs" || mkdir
$as_dirs
24477 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24478 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24479 { (exit 1); exit 1; }; }; }
24482 mv $tmp/config.h
$ac_file
24486 rm -f $tmp/config.h
24490 cat >>$CONFIG_STATUS <<\_ACEOF
24493 # CONFIG_COMMANDS section.
24495 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24496 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24497 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24498 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24499 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24500 X"$ac_dest" : 'X\(//\)[^/]' \| \
24501 X"$ac_dest" : 'X\(//\)$' \| \
24502 X"$ac_dest" : 'X\(/\)' \| \
24503 . : '\(.\)' 2>/dev/null ||
24505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24507 /^X\(\/\/\)$/{ s//\1/; q; }
24508 /^X\(\/\).*/{ s//\1/; q; }
24510 { if $as_mkdir_p; then
24515 while test ! -d "$as_dir"; do
24516 as_dirs
="$as_dir $as_dirs"
24517 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24519 X"$as_dir" : 'X\(//\)[^/]' \| \
24520 X"$as_dir" : 'X\(//\)$' \| \
24521 X"$as_dir" : 'X\(/\)' \| \
24522 . : '\(.\)' 2>/dev/null ||
24524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24526 /^X\(\/\/\)$/{ s//\1/; q; }
24527 /^X\(\/\).*/{ s//\1/; q; }
24530 test ! -n "$as_dirs" || mkdir
$as_dirs
24531 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24533 { (exit 1); exit 1; }; }; }
24537 if test "$ac_dir" != .
; then
24538 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24539 # A "../" for each directory in $ac_dir_suffix.
24540 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24542 ac_dir_suffix
= ac_top_builddir
=
24546 .
) # No --srcdir option. We are building in place.
24548 if test -z "$ac_top_builddir"; then
24551 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24553 [\\/]* | ?
:[\\/]* ) # Absolute path.
24554 ac_srcdir
=$srcdir$ac_dir_suffix;
24555 ac_top_srcdir
=$srcdir ;;
24556 *) # Relative path.
24557 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24558 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24561 # Do not use `cd foo && pwd` to compute absolute paths, because
24562 # the directories may not exist.
24564 .
) ac_abs_builddir
="$ac_dir";;
24567 .
) ac_abs_builddir
=`pwd`;;
24568 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24569 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24572 case $ac_abs_builddir in
24573 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24575 case ${ac_top_builddir}.
in
24576 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24577 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24578 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24581 case $ac_abs_builddir in
24582 .
) ac_abs_srcdir
=$ac_srcdir;;
24585 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24586 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24587 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24590 case $ac_abs_builddir in
24591 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24593 case $ac_top_srcdir in
24594 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24595 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24596 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24601 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24602 echo "$as_me: executing $ac_dest commands" >&6;}
24605 case ${CONFIG_HEADERS} in
24606 *auto-host.h
:config.
in*)
24609 # Make sure all the subdirs exist.
24610 for d
in $subdirs doc build
24612 test -d $d || mkdir
$d
24619 cat >>$CONFIG_STATUS <<\_ACEOF
24621 { (exit 0); exit 0; }
24623 chmod +x
$CONFIG_STATUS
24624 ac_clean_files
=$ac_clean_files_save
24627 # configure is writing to config.log, and then calls config.status.
24628 # config.status does its own redirection, appending to config.log.
24629 # Unfortunately, on DOS this fails, as config.log is still kept open
24630 # by configure, so config.status won't be able to write to it; its
24631 # output is simply discarded. So we exec the FD to /dev/null,
24632 # effectively closing config.log, so it can be properly (re)opened and
24633 # appended to by config.status. When coming back to configure, we
24634 # need to make the FD available again.
24635 if test "$no_create" != yes; then
24637 ac_config_status_args
=
24638 test "$silent" = yes &&
24639 ac_config_status_args
="$ac_config_status_args --quiet"
24641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24644 # would make configure fail if this is the last instruction.
24645 $ac_cs_success ||
{ (exit 1); exit 1; }