2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
308 for dir
in $PATH /usr
/ucb
; do
310 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho
; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL
=/bin
/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
349 SHELL
="$CONFIG_SHELL"
351 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string
=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix
=/usr
/local
404 ac_config_libobj_dir
=.
409 SHELL
=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file
="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default
="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn 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-coverage=LEVEL
1022 enable compiler
's code coverage collection.
1023 Use to measure compiler performance and locate
1024 unused parts of the compiler. With LEVEL, specify
1025 optimization. Values are opt, noopt,
1027 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1028 --enable-multilib enable library support for multiple ABIs
1029 --enable-__cxa_atexit enable __cxa_atexit for C++
1030 --enable-decimal-float={no,yes,bid,dpd}
1031 enable decimal float extension to C. Selecting 'bid
'
1032 or 'dpd
' choses which decimal floating point format
1034 --enable-fixed-point enable fixed-point arithmetic extension to C
1035 --enable-threads enable thread usage for target GCC
1036 --enable-threads=LIB use LIB thread package for target GCC
1037 --enable-tls enable or disable generation of tls code
1038 overriding the assembler check for tls support
1039 --enable-objc-gc enable the use of Boehm's garbage collector with
1040 the GNU Objective-C runtime
1041 --disable-shared don
't provide a shared libgcc
1042 --enable-intermodule build the compiler in one step
1043 --enable-languages=LIST specify which front-ends to build
1044 --disable-rpath do not hardcode runtime library paths
1045 --enable-initfini-array use .init_array/.fini_array sections
1046 --enable-sjlj-exceptions
1047 arrange to use setjmp/longjmp exception handling
1048 --enable-secureplt enable -msecure-plt by default for PowerPC
1049 --disable-win32-registry
1050 disable lookup of installation paths in the
1051 Registry on Windows hosts
1052 --enable-win32-registry enable registry lookup (default)
1053 --enable-win32-registry=KEY
1054 use KEY instead of GCC version as the last portion
1056 --enable-shared[=PKGS]
1057 build shared libraries [default=yes]
1058 --enable-static[=PKGS]
1059 build static libraries [default=yes]
1060 --enable-fast-install[=PKGS]
1061 optimize for fast installation [default=yes]
1062 --disable-libtool-lock avoid locking (might break parallel builds)
1063 --enable-maintainer-mode
1064 enable make rules and dependencies not useful
1065 (and sometimes confusing) to the casual installer
1066 --enable-version-specific-runtime-libs
1067 specify that runtime libraries should be
1068 installed in a compiler-specific directory
1071 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1072 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1073 --with-build-libsubdir=DIR Directory where to find libraries for build system
1074 --with-local-prefix=DIR specifies directory to put local include
1075 --with-gxx-include-dir=DIR
1076 specifies directory to put g++ header files
1077 --with-cpp-install-dir=DIR
1078 install the user visible C preprocessor in DIR
1079 (relative to PREFIX) as well as PREFIX/bin
1080 --with-gnu-ld arrange to work with GNU ld.
1081 --with-ld arrange to use the specified ld (full pathname)
1082 --with-demangler-in-ld try to use demangler in GNU ld.
1083 --with-gnu-as arrange to work with GNU as
1084 --with-as arrange to use the specified as (full pathname)
1085 --with-stabs arrange to use stabs instead of host debug format
1086 --with-dwarf2 force the default debug format to be DWARF 2
1087 --with-build-sysroot=sysroot
1088 use sysroot as the system root during the build
1089 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1090 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1091 --with-bugurl=URL Direct users to URL to report a bug
1092 --with-gnu-ld assume the C compiler uses GNU ld default=no
1093 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1094 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1095 --with-system-libunwind use installed libunwind
1096 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1098 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1099 --with-long-double-128 Use
128-bit long double by default.
1100 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1102 --with-system-zlib use installed libz
1103 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1104 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1105 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1106 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1108 Some influential environment variables
:
1109 CC C compiler
command
1110 CFLAGS C compiler flags
1111 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1112 nonstandard directory
<lib dir
>
1113 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1114 headers
in a nonstandard directory
<include dir
>
1116 GMPLIBS How to link GMP
1117 GMPINC How to
find GMP include files
1119 Use these variables to override the choices made by
`configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1125 if test "$ac_init_help" = "recursive"; then
1126 # If there are subdirs, report their specific --help.
1128 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129 test -d $ac_dir || continue
1132 if test "$ac_dir" != .; then
1133 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1134 # A "../" for each directory in $ac_dir_suffix.
1135 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1137 ac_dir_suffix= ac_top_builddir=
1141 .) # No --srcdir option. We are building in place.
1143 if test -z "$ac_top_builddir"; then
1146 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1148 [\\/]* | ?:[\\/]* ) # Absolute path.
1149 ac_srcdir=$srcdir$ac_dir_suffix;
1150 ac_top_srcdir=$srcdir ;;
1152 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1157 # the directories may not exist.
1159 .) ac_abs_builddir="$ac_dir";;
1162 .) ac_abs_builddir=`pwd`;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 case ${ac_top_builddir}. in
1171 .) ac_abs_top_builddir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1180 .) ac_abs_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 case $ac_top_srcdir in
1189 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196 # Check for guested configure; otherwise get Cygnus style configure.
1197 if test -f $ac_srcdir/configure.gnu; then
1199 $SHELL $ac_srcdir/configure.gnu --help=recursive
1200 elif test -f $ac_srcdir/configure; then
1202 $SHELL $ac_srcdir/configure --help=recursive
1203 elif test -f $ac_srcdir/configure.ac ||
1204 test -f $ac_srcdir/configure.in; then
1206 $ac_configure --help
1208 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1226 This file contains any messages produced by compilers while
1227 running configure, to aid debugging if configure makes a mistake.
1229 It was created by $as_me, which was
1230 generated by GNU Autoconf 2.59. Invocation command line was
1241 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1242 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1243 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1244 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1245 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1247 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1248 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1250 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1251 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1252 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1253 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1254 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1255 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1256 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1264 test -z "$as_dir" && as_dir=.
1265 echo "PATH: $as_dir"
1280 # Keep a trace of the command line.
1281 # Strip out --no-create and --no-recursion so they do not pile up.
1282 # Strip out --silent because we don't want to record it for future runs.
1283 # Also quote any args containing shell meta-characters.
1284 # Make two passes to allow for proper duplicate-argument suppression.
1289 ac_must_keep_next=false
1295 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1303 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1306 if test $ac_must_keep_next = true; then
1307 ac_must_keep_next=false # Got value, back to normal.
1310 *=* | --config-cache | -C | -disable-* | --disable-* \
1311 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1312 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1313 | -with-* | --with-* | -without-* | --without-* | --x)
1314 case "$ac_configure_args0 " in
1315 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318 -* ) ac_must_keep_next=true ;;
1321 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1322 # Get rid of the leading space.
1328 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1329 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331 # When interrupted or exit'd, cleanup temporary files, and complete
1332 # config.log. We remove comments because anyway the quotes in there
1333 # would cause problems or look ugly.
1334 # WARNING: Be sure not to use single quotes in there, as some shells,
1335 # such as our DU 5.0 friend, will then `close
' the trap.
1336 trap 'exit_status
=$?
1337 # Save into config.log some information that might help in debugging.
1342 ## ---------------- ##
1343 ## Cache variables. ##
1344 ## ---------------- ##
1347 # The following way of writing the cache mishandles newlines in values,
1350 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1365 ## ----------------- ##
1366 ## Output variables. ##
1367 ## ----------------- ##
1370 for ac_var
in $ac_subst_vars
1372 eval ac_val
=$
`echo $ac_var`
1373 echo "$ac_var='"'"'$ac_val'"'"'"
1377 if test -n "$ac_subst_files"; then
1384 for ac_var
in $ac_subst_files
1386 eval ac_val
=$
`echo $ac_var`
1387 echo "$ac_var='"'"'$ac_val'"'"'"
1392 if test -s confdefs.h
; then
1399 sed "/^$/d" confdefs.h |
sort
1402 test "$ac_signal" != 0 &&
1403 echo "$as_me: caught signal $ac_signal"
1404 echo "$as_me: exit $exit_status"
1406 rm -f core
*.core
&&
1407 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1410 for ac_signal in 1 2 13 15; do
1411 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1416 rm -rf conftest* confdefs.h
1417 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 # Predefined preprocessor variables.
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_NAME "$PACKAGE_NAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_STRING "$PACKAGE_STRING"
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1447 # Let the site file select an alternate cache file if it wants to.
1448 # Prefer explicitly selected file to automatically selected ones.
1449 if test -z "$CONFIG_SITE"; then
1450 if test "x$prefix" != xNONE; then
1451 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1453 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456 for ac_site_file in $CONFIG_SITE; do
1457 if test -r "$ac_site_file"; then
1458 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1459 echo "$as_me: loading site script $ac_site_file" >&6;}
1460 sed 's
/^
/|
/' "$ac_site_file" >&5
1465 if test -r "$cache_file"; then
1466 # Some versions of bash will fail to source /dev/null (special
1467 # files actually), so we avoid doing that.
1468 if test -f "$cache_file"; then
1469 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1470 echo "$as_me: loading cache $cache_file" >&6;}
1472 [\\/]* | ?:[\\/]* ) . $cache_file;;
1473 *) . ./$cache_file;;
1477 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1478 echo "$as_me: creating cache $cache_file" >&6;}
1482 # Check that the precious variables saved in the cache have kept the same
1484 ac_cache_corrupted=false
1485 for ac_var in `(set) 2>&1 |
1486 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1488 eval ac_new_set=\$ac_env_${ac_var}_set
1489 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1490 eval ac_new_val="\$ac_env_${ac_var}_value"
1491 case $ac_old_set,$ac_new_set in
1493 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1495 ac_cache_corrupted=: ;;
1497 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1499 ac_cache_corrupted=: ;;
1502 if test "x$ac_old_val" != "x$ac_new_val"; then
1503 # differences in whitespace do not lead to failure.
1504 ac_old_val_w=`echo x $ac_old_val`
1505 ac_new_val_w=`echo x $ac_new_val`
1506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1507 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1508 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1509 ac_cache_corrupted=:
1511 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1512 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1513 eval $ac_var=\$ac_old_val
1515 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1516 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1517 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1518 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1521 # Pass precious variables to config.status.
1522 if test "$ac_new_set" = set; then
1524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1526 *) ac_arg=$ac_var=$ac_new_val ;;
1528 case " $ac_configure_args " in
1529 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1530 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534 if $ac_cache_corrupted; then
1535 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1538 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539 { (exit 1); exit 1; }; }
1543 ac_cpp='$CPP $CPPFLAGS'
1544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1545 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1570 gcc_version=`cat $srcdir/BASE-VER`
1572 # Determine the host, build, and target systems
1574 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575 if test -f $ac_dir/install-sh; then
1577 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 elif test -f $ac_dir/install.sh; then
1581 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 elif test -f $ac_dir/shtool; then
1585 ac_install_sh="$ac_aux_dir/shtool install -c"
1589 if test -z "$ac_aux_dir"; then
1590 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592 { (exit 1); exit 1; }; }
1594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598 # Make sure we can run config.sub.
1599 $ac_config_sub sun4 >/dev/null 2>&1 ||
1600 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: checking build system type" >&5
1605 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606 if test "${ac_cv_build+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_build_alias=$build_alias
1610 test -z "$ac_cv_build_alias" &&
1611 ac_cv_build_alias=`$ac_config_guess`
1612 test -z "$ac_cv_build_alias" &&
1613 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615 { (exit 1); exit 1; }; }
1616 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623 echo "${ECHO_T}$ac_cv_build" >&6
1625 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1626 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1627 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1630 echo "$as_me:$LINENO: checking host system type" >&5
1631 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632 if test "${ac_cv_host+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 ac_cv_host_alias=$host_alias
1636 test -z "$ac_cv_host_alias" &&
1637 ac_cv_host_alias=$ac_cv_build_alias
1638 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1644 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645 echo "${ECHO_T}$ac_cv_host" >&6
1647 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1648 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1649 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1652 echo "$as_me:$LINENO: checking target system type" >&5
1653 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654 if test "${ac_cv_target+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 ac_cv_target_alias=$target_alias
1658 test "x$ac_cv_target_alias" = "x" &&
1659 ac_cv_target_alias=$ac_cv_host_alias
1660 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667 echo "${ECHO_T}$ac_cv_target" >&6
1668 target=$ac_cv_target
1669 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1670 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1671 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1674 # The aliases save the names the user supplied, while $host etc.
1675 # will get canonicalized.
1676 test -n "$target_alias" &&
1677 test "$program_prefix$program_suffix$program_transform_name" = \
1679 program_prefix=${target_alias}-
1681 # Determine the noncanonical target name, for directory use.
1682 case ${build_alias} in
1683 "") build_noncanonical=${build} ;;
1684 *) build_noncanonical=${build_alias} ;;
1687 case ${host_alias} in
1688 "") host_noncanonical=${build_noncanonical} ;;
1689 *) host_noncanonical=${host_alias} ;;
1692 case ${target_alias} in
1693 "") target_noncanonical=${host_noncanonical} ;;
1694 *) target_noncanonical=${target_alias} ;;
1700 # Determine the target- and build-specific subdirectories
1702 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1703 # have matching libraries, they should use host libraries: Makefile.tpl
1704 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1705 # However, they still use the build modules, because the corresponding
1706 # host modules (e.g. bison) are only built for the host when bootstrap
1708 # - build_subdir is where we find build modules, and never changes.
1709 # - build_libsubdir is where we find build libraries, and can be overridden.
1711 # Prefix 'build-
' so this never conflicts with target_subdir.
1712 build_subdir="build-${build_noncanonical}"
1714 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1715 if test "${with_build_libsubdir+set}" = set; then
1716 withval="$with_build_libsubdir"
1717 build_libsubdir="$withval"
1719 build_libsubdir="$build_subdir"
1721 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1722 if ( test $srcdir = . && test -d gcc ) \
1723 || test -d $srcdir/../host-${host_noncanonical}; then
1724 host_subdir="host-${host_noncanonical}"
1729 target_subdir=${target_noncanonical}
1732 # Set program_transform_name
1733 test "$program_prefix" != NONE &&
1734 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1735 # Use a double $ so make ignores it.
1736 test "$program_suffix" != NONE &&
1737 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1738 # Double any \ or $. echo might interpret backslashes.
1739 # By default was `s,x,x', remove it
if useless.
1740 cat <<\_ACEOF
>conftest.
sed
1741 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1743 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1747 # Check for bogus environment variables.
1748 # Test if LIBRARY_PATH contains the notation for the current directory
1749 # since this would lead to problems installing/building glibc.
1750 # LIBRARY_PATH contains the current directory if one of the following
1752 # - one of the terminals (":" and ";") is the first or last sign
1753 # - two terminals occur directly after each other
1754 # - the path contains an element with a dot in it
1755 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1756 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1757 case ${LIBRARY_PATH} in
1758 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1759 library_path_setting
="contains current directory"
1762 library_path_setting
="ok"
1765 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1766 echo "${ECHO_T}$library_path_setting" >&6
1767 if test "$library_path_setting" != "ok"; then
1768 { { echo "$as_me:$LINENO: error:
1769 *** LIBRARY_PATH shouldn't contain the current directory when
1770 *** building gcc. Please change the environment variable
1771 *** and run configure again." >&5
1772 echo "$as_me: error:
1773 *** LIBRARY_PATH shouldn't contain the current directory when
1774 *** building gcc. Please change the environment variable
1775 *** and run configure again." >&2;}
1776 { (exit 1); exit 1; }; }
1779 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # GCC_EXEC_PREFIX contains the current directory if one of the following
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1787 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1788 case ${GCC_EXEC_PREFIX} in
1789 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1790 gcc_exec_prefix_setting
="contains current directory"
1793 gcc_exec_prefix_setting
="ok"
1796 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1797 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1798 if test "$gcc_exec_prefix_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&5
1803 echo "$as_me: error:
1804 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807 { (exit 1); exit 1; }; }
1814 # Specify the local prefix
1817 # Check whether --with-local-prefix or --without-local-prefix was given.
1818 if test "${with_local_prefix+set}" = set; then
1819 withval
="$with_local_prefix"
1820 case "${withval}" in
1821 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1822 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1823 { (exit 1); exit 1; }; } ;;
1825 *) local_prefix
=$with_local_prefix ;;
1829 # Default local prefix if it is empty
1830 if test x
$local_prefix = x
; then
1831 local_prefix
=/usr
/local
1834 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1835 # passed in by the toplevel make and thus we'd get different behavior
1836 # depending on where we built the sources.
1837 gcc_gxx_include_dir
=
1838 # Specify the g++ header file directory
1840 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1841 if test "${with_gxx_include_dir+set}" = set; then
1842 withval
="$with_gxx_include_dir"
1843 case "${withval}" in
1844 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1845 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1846 { (exit 1); exit 1; }; } ;;
1848 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1852 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1853 if test x
${gcc_gxx_include_dir} = x
; then
1854 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1855 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1857 libstdcxx_incdir
='include/c++/$(version)'
1858 if test x
$host != x
$target; then
1859 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1861 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1866 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1867 if test "${with_cpp_install_dir+set}" = set; then
1868 withval
="$with_cpp_install_dir"
1869 if test x
$withval = xyes
; then
1870 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1871 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1872 { (exit 1); exit 1; }; }
1873 elif test x
$withval != xno
; then
1874 cpp_install_dir
=$withval
1878 # We would like to our source tree to be readonly. However when releases or
1879 # pre-releases are generated, the flex/bison generated files as well as the
1880 # various formats of manuals need to be included along with the rest of the
1881 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1884 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1885 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1886 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1887 if test "${enable_generated_files_in_srcdir+set}" = set; then
1888 enableval
="$enable_generated_files_in_srcdir"
1889 generated_files_in_srcdir
=$enableval
1891 generated_files_in_srcdir
=no
1894 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1895 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1897 if test "$generated_files_in_srcdir" = "yes"; then
1904 # -------------------
1905 # Find default linker
1906 # -------------------
1910 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1911 if test "${with_gnu_ld+set}" = set; then
1912 withval
="$with_gnu_ld"
1913 gnu_ld_flag
="$with_gnu_ld"
1918 # With pre-defined ld
1920 # Check whether --with-ld or --without-ld was given.
1921 if test "${with_ld+set}" = set; then
1923 DEFAULT_LINKER
="$with_ld"
1925 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1926 if test ! -x "$DEFAULT_LINKER"; then
1927 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1928 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1929 { (exit 1); exit 1; }; }
1930 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1934 cat >>confdefs.h
<<_ACEOF
1935 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1940 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1942 cat >>confdefs.h
<<_ACEOF
1943 #define HAVE_GNU_LD $gnu_ld
1947 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1948 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1949 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1950 if test x
"$gnu_ld_flag" = x
"no"; then
1951 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1952 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1954 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1955 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1962 # With demangler in GNU ld
1964 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1965 if test "${with_demangler_in_ld+set}" = set; then
1966 withval
="$with_demangler_in_ld"
1967 demangler_in_ld
="$with_demangler_in_ld"
1972 # ----------------------
1973 # Find default assembler
1974 # ----------------------
1978 # Check whether --with-gnu-as or --without-gnu-as was given.
1979 if test "${with_gnu_as+set}" = set; then
1980 withval
="$with_gnu_as"
1981 gas_flag
="$with_gnu_as"
1987 # Check whether --with-as or --without-as was given.
1988 if test "${with_as+set}" = set; then
1990 DEFAULT_ASSEMBLER
="$with_as"
1992 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1993 if test ! -x "$DEFAULT_ASSEMBLER"; then
1994 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1995 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1996 { (exit 1); exit 1; }; }
1997 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2001 cat >>confdefs.h
<<_ACEOF
2002 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2007 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2009 cat >>confdefs.h
<<_ACEOF
2010 #define HAVE_GNU_AS $gnu_as
2014 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2015 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2016 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2017 if test x
"$gas_flag" = x
"no"; then
2018 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2019 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2021 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2022 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2033 # If a non-executable a.out is present (e.g. created by GNU as above even if
2034 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2035 # file, even when creating an executable, so an execution test fails.
2036 # Remove possible default executable files to avoid this.
2038 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2039 # Autoconf includes it.
2040 rm -f a.out a.exe b.out
2042 # Find the native compiler
2044 ac_cpp
='$CPP $CPPFLAGS'
2045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$CC"; then
2057 ac_cv_prog_CC
="$CC" # Let the user override the test.
2059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir
=.
2064 for ac_exec_ext
in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2085 if test -z "$ac_cv_prog_CC"; then
2087 # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc
; ac_word
=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir
=.
2102 for ac_exec_ext
in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC
="gcc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC
="$CC" # Let the user override the test.
2139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir
=.
2144 for ac_exec_ext
in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc
; ac_word
=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir
=.
2182 for ac_exec_ext
in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_ac_ct_CC
="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc
; ac_word
=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC
="$CC" # Let the user override the test.
2220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir
=.
2225 for ac_exec_ext
in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228 ac_prog_rejected
=yes
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test $ac_prog_rejected = yes; then
2239 # We found a bogon in the path, so make sure we never use it.
2240 set dummy
$ac_cv_prog_CC
2242 if test $# != 0; then
2243 # We chose a different compiler from the bogus one.
2244 # However, it has the same basename, so the bogon will be chosen
2245 # first if we set CC to just the basename; use the full file name.
2247 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2262 if test -z "$CC"; then
2263 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC
="$CC" # Let the user override the test.
2276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir
=.
2281 for ac_exec_ext
in '' $ac_executable_extensions; do
2282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 if test -n "$CC"; then
2294 echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2297 echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2301 test -n "$CC" && break
2304 if test -z "$CC"; then
2308 # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy
$ac_prog; ac_word
=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir
=.
2323 for ac_exec_ext
in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC
="$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2343 test -n "$ac_ct_CC" && break
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360 "checking for C compiler version" >&5
2361 ac_compiler
=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.
$ac_ext <<_ACEOF
2381 cat confdefs.h
>>conftest.
$ac_ext
2382 cat >>conftest.
$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save
=$ac_clean_files
2394 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 # b.out is created by i960 compilers.
2414 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2416 test -f "$ac_file" ||
continue
2418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2421 # This is the source file.
2424 # We found the default executable, but exeext='' is most
2428 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.
$ac_ext >&5
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446 { (exit 77); exit 77; }; }
2449 ac_exeext
=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2453 # Check the compiler produces executables we can run. If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460 if { ac_try
='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2468 if test "$cross_compiling" = maybe
; then
2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2484 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2485 ac_clean_files
=$ac_clean_files_save
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 for ac_file
in conftest.exe conftest conftest.
*; do
2505 test -f "$ac_file" ||
continue
2507 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2508 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2522 rm -f conftest
$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2526 rm -f conftest.
$ac_ext
2527 EXEEXT
=$ac_cv_exeext
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 cat >conftest.
$ac_ext <<_ACEOF
2537 cat confdefs.h
>>conftest.
$ac_ext
2538 cat >>conftest.
$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2558 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.
$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2573 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT
=$ac_cv_objext
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat >conftest.
$ac_ext <<_ACEOF
2587 cat confdefs.h
>>conftest.
$ac_ext
2588 cat >>conftest.
$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.
$ac_ext >&5
2631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS
=${CFLAGS+set}
2639 ac_save_CFLAGS
=$CFLAGS
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.
$ac_ext <<_ACEOF
2649 cat confdefs.h
>>conftest.
$ac_ext
2650 cat >>conftest.
$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.
$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2665 grep -v '^ *+' conftest.er1
>conftest.err
2667 cat conftest.err
>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try
='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try
='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS
=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2703 if test "$GCC" = yes; then
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 ac_cv_prog_cc_stdc
=no
2716 cat >conftest.
$ac_ext <<_ACEOF
2719 cat confdefs.h
>>conftest.
$ac_ext
2720 cat >>conftest.
$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC
="$ac_save_CC $ac_arg"
2778 rm -f conftest.
$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try
='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try
='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc
=$ac_arg
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2807 rm -f conftest.err conftest.
$ac_objext
2809 rm -f conftest.
$ac_ext conftest.
$ac_objext
2814 case "x$ac_cv_prog_cc_stdc" in
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2824 # Some people use a C++ compiler to compile C. Since we use `exit',
2825 # in C++ we need to declare it. In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.
$ac_ext <<_ACEOF
2833 rm -f conftest.
$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1
>conftest.err
2839 cat conftest.err
>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try
='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try
='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration
in \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2863 cat >conftest.
$ac_ext <<_ACEOF
2866 cat confdefs.h
>>conftest.
$ac_ext
2867 cat >>conftest.
$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2879 rm -f conftest.
$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1
>conftest.err
2885 cat conftest.err
>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try
='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try
='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.
$ac_ext >&5
2908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2909 cat >conftest.
$ac_ext <<_ACEOF
2912 cat confdefs.h
>>conftest.
$ac_ext
2913 cat >>conftest.
$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 rm -f conftest.
$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1
>conftest.err
2930 cat conftest.err
>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try
='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try
='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2952 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.
$ac_ext >&5
2966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2968 ac_cpp
='$CPP $CPPFLAGS'
2969 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2973 if test "x$CC" != xcc
; then
2974 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2975 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2977 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2978 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2980 set dummy
$CC; ac_cc
=`echo $2 |
2981 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2982 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 cat >conftest.
$ac_ext <<_ACEOF
2988 cat confdefs.h
>>conftest.
$ac_ext
2989 cat >>conftest.
$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 # Make sure it works both with $CC and with simple cc.
3001 # We do the test twice because some compilers refuse to overwrite an
3002 # existing .o file with -o, though they will create one.
3003 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3004 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); };
3015 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3016 if test "x$CC" != xcc
; then
3017 # Test first that cc exists at all.
3018 if { ac_try
='cc -c conftest.$ac_ext >&5'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3025 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); };
3039 # cc exists but doesn't like -o.
3040 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3045 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3050 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3057 cat >>confdefs.h
<<\_ACEOF
3058 #define NO_MINUS_C_MINUS_O 1
3063 # expand $ac_aux_dir to an absolute path
3064 am_aux_dir
=`cd $ac_aux_dir && pwd`
3066 # FIXME: we rely on the cache variable name because
3067 # there is no other way.
3069 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3070 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3071 # Losing compiler, so override with the script.
3072 # FIXME: It is wrong to rewrite CC.
3073 # But if we don't then we get into trouble of one sort or another.
3074 # A longer-term fix would be to have automake use am__CC in this case,
3075 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3076 CC
="$am_aux_dir/compile $CC"
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3084 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3085 echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 if test -n "$GNATBIND"; then
3091 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir
=.
3098 for ac_exec_ext
in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 GNATBIND
=$ac_cv_prog_GNATBIND
3110 if test -n "$GNATBIND"; then
3111 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3112 echo "${ECHO_T}$GNATBIND" >&6
3114 echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3119 if test -z "$ac_cv_prog_GNATBIND"; then
3120 ac_ct_GNATBIND
=$GNATBIND
3121 # Extract the first word of "gnatbind", so it can be a program name with args.
3122 set dummy gnatbind
; ac_word
=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if test -n "$ac_ct_GNATBIND"; then
3129 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 for ac_exec_ext
in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3148 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3149 if test -n "$ac_ct_GNATBIND"; then
3150 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3151 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3157 GNATBIND
=$ac_ct_GNATBIND
3159 GNATBIND
="$ac_cv_prog_GNATBIND"
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3164 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3165 echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -n "$GNATMAKE"; then
3171 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_exec_ext
in '' $ac_executable_extensions; do
3179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 GNATMAKE
=$ac_cv_prog_GNATMAKE
3190 if test -n "$GNATMAKE"; then
3191 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3192 echo "${ECHO_T}$GNATMAKE" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3199 if test -z "$ac_cv_prog_GNATMAKE"; then
3200 ac_ct_GNATMAKE
=$GNATMAKE
3201 # Extract the first word of "gnatmake", so it can be a program name with args.
3202 set dummy gnatmake
; ac_word
=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 if test -n "$ac_ct_GNATMAKE"; then
3209 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3228 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3229 if test -n "$ac_ct_GNATMAKE"; then
3230 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3231 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3237 GNATMAKE
=$ac_ct_GNATMAKE
3239 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3242 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3243 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3244 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 cat >conftest.adb
<<EOF
3248 procedure conftest is begin null; end conftest;
3250 acx_cv_cc_gcc_supports_ada
=no
3251 # There is a bug in old released versions of GCC which causes the
3252 # driver to exit successfully when the appropriate language module
3253 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3254 # Therefore we must check for the error message as well as an
3255 # unsuccessful exit.
3256 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3257 # given a .adb file, but produce no object file. So we must check
3258 # if an object file was really produced to guard against this.
3259 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3260 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3261 acx_cv_cc_gcc_supports_ada
=yes
3265 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3266 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3268 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3275 # autoconf is lame and doesn't give us any substitution variable for this.
3276 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3277 NO_MINUS_C_MINUS_O
=yes
3279 OUTPUT_OPTION
='-o $@'
3284 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3285 # optimizations to be activated explicitly by the toplevel.
3287 */prev-gcc
/xgcc
*) ;;
3288 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3292 # -------------------------
3293 # Check C compiler features
3294 # -------------------------
3298 ac_cpp
='$CPP $CPPFLAGS'
3299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3302 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # Double quotes because CPP needs to be expanded
3313 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 for ac_c_preproc_warn_flag
in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.
$ac_ext <<_ACEOF
3327 cat confdefs.h
>>conftest.
$ac_ext
3328 cat >>conftest.
$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 # include <limits.h>
3333 # include <assert.h>
3337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3340 grep -v '^ *+' conftest.er1
>conftest.err
3342 cat conftest.err
>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } >/dev
/null
; then
3345 if test -s conftest.err
; then
3346 ac_cpp_err
=$ac_c_preproc_warn_flag
3347 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3354 if test -z "$ac_cpp_err"; then
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.
$ac_ext >&5
3360 # Broken: fails on valid input.
3363 rm -f conftest.err conftest.
$ac_ext
3365 # OK, works on sane cases. Now check whether non-existent headers
3366 # can be detected and how.
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1
>conftest.err
3380 cat conftest.err
>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev
/null
; then
3383 if test -s conftest.err
; then
3384 ac_cpp_err
=$ac_c_preproc_warn_flag
3385 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3392 if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3399 # Passes both tests.
3403 rm -f conftest.err conftest.
$ac_ext
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.
$ac_ext
3408 if $ac_preproc_ok; then
3420 echo "$as_me:$LINENO: result: $CPP" >&5
3421 echo "${ECHO_T}$CPP" >&6
3423 for ac_c_preproc_warn_flag
in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.
$ac_ext <<_ACEOF
3434 cat confdefs.h
>>conftest.
$ac_ext
3435 cat >>conftest.
$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3438 # include <limits.h>
3440 # include <assert.h>
3444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1
>conftest.err
3449 cat conftest.err
>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev
/null
; then
3452 if test -s conftest.err
; then
3453 ac_cpp_err
=$ac_c_preproc_warn_flag
3454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.
$ac_ext >&5
3467 # Broken: fails on valid input.
3470 rm -f conftest.err conftest.
$ac_ext
3472 # OK, works on sane cases. Now check whether non-existent headers
3473 # can be detected and how.
3474 cat >conftest.
$ac_ext <<_ACEOF
3477 cat confdefs.h
>>conftest.
$ac_ext
3478 cat >>conftest.
$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3485 grep -v '^ *+' conftest.er1
>conftest.err
3487 cat conftest.err
>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev
/null
; then
3490 if test -s conftest.err
; then
3491 ac_cpp_err
=$ac_c_preproc_warn_flag
3492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.
$ac_ext >&5
3506 # Passes both tests.
3510 rm -f conftest.err conftest.
$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.
$ac_ext
3515 if $ac_preproc_ok; then
3518 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3526 ac_cpp
='$CPP $CPPFLAGS'
3527 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3532 echo "$as_me:$LINENO: checking for egrep" >&5
3533 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3534 if test "${ac_cv_prog_egrep+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3538 then ac_cv_prog_egrep
='grep -E'
3539 else ac_cv_prog_egrep
='egrep'
3542 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3543 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3544 EGREP
=$ac_cv_prog_egrep
3547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3549 if test "${ac_cv_header_stdc+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3571 rm -f conftest.
$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3575 grep -v '^ *+' conftest.er1
>conftest.err
3577 cat conftest.err
>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try
='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try
='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_header_stdc
=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.
$ac_ext >&5
3598 ac_cv_header_stdc
=no
3600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3602 if test $ac_cv_header_stdc = yes; then
3603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3604 cat >conftest.
$ac_ext <<_ACEOF
3607 cat confdefs.h
>>conftest.
$ac_ext
3608 cat >>conftest.
$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 $EGREP "memchr" >/dev
/null
2>&1; then
3617 ac_cv_header_stdc
=no
3623 if test $ac_cv_header_stdc = yes; then
3624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3625 cat >conftest.
$ac_ext <<_ACEOF
3628 cat confdefs.h
>>conftest.
$ac_ext
3629 cat >>conftest.
$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3635 $EGREP "free" >/dev
/null
2>&1; then
3638 ac_cv_header_stdc
=no
3644 if test $ac_cv_header_stdc = yes; then
3645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3646 if test "$cross_compiling" = yes; then
3649 cat >conftest.
$ac_ext <<_ACEOF
3652 cat confdefs.h
>>conftest.
$ac_ext
3653 cat >>conftest.
$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3656 #if ((' ' & 0x0FF) == 0x020)
3657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3660 # define ISLOWER(c) \
3661 (('a' <= (c) && (c) <= 'i') \
3662 || ('j' <= (c) && (c) <= 'r') \
3663 || ('s' <= (c) && (c) <= 'z'))
3664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3672 for (i = 0; i < 256; i++)
3673 if (XOR (islower (i), ISLOWER (i))
3674 || toupper (i) != TOUPPER (i))
3679 rm -f conftest
$ac_exeext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681 (eval $ac_link) 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3692 echo "$as_me: program exited with status $ac_status" >&5
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.
$ac_ext >&5
3697 ac_cv_header_stdc
=no
3699 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3703 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3704 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3705 if test $ac_cv_header_stdc = yes; then
3707 cat >>confdefs.h
<<\_ACEOF
3708 #define STDC_HEADERS 1
3713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3723 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3724 inttypes.h stdint.h unistd.h
3726 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3727 echo "$as_me:$LINENO: checking for $ac_header" >&5
3728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 $ac_includes_default
3740 #include <$ac_header>
3742 rm -f conftest.
$ac_objext
3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>conftest.er1
3746 grep -v '^ *+' conftest.er1
>conftest.err
3748 cat conftest.err
>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try
='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try
='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 eval "$as_ac_Header=yes"
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.
$ac_ext >&5
3769 eval "$as_ac_Header=no"
3771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3776 cat >>confdefs.h
<<_ACEOF
3777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3786 if test "${ac_cv_header_minix_config_h+set}" = set; then
3787 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3788 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3789 if test "${ac_cv_header_minix_config_h+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3793 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3795 # Is the header compilable?
3796 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3797 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3798 cat >conftest.
$ac_ext <<_ACEOF
3801 cat confdefs.h
>>conftest.
$ac_ext
3802 cat >>conftest.
$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 $ac_includes_default
3805 #include <minix/config.h>
3807 rm -f conftest.
$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try
='test -z "$ac_c_werror_flag"
3817 || test ! -s conftest.err'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; } &&
3823 { ac_try
='test -s conftest.$ac_objext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_header_compiler
=yes
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3834 ac_header_compiler
=no
3836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3838 echo "${ECHO_T}$ac_header_compiler" >&6
3840 # Is the header present?
3841 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3842 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <minix/config.h>
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1
>conftest.err
3856 cat conftest.err
>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev
/null
; then
3859 if test -s conftest.err
; then
3860 ac_cpp_err
=$ac_c_preproc_warn_flag
3861 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3868 if test -z "$ac_cpp_err"; then
3869 ac_header_preproc
=yes
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.
$ac_ext >&5
3874 ac_header_preproc
=no
3876 rm -f conftest.err conftest.
$ac_ext
3877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3878 echo "${ECHO_T}$ac_header_preproc" >&6
3880 # So? What about this header?
3881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3883 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3884 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3885 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3886 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3887 ac_header_preproc
=yes
3890 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3891 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3893 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3894 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3895 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3897 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3899 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3901 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3904 ## ------------------------------------------ ##
3905 ## Report this to the AC_PACKAGE_NAME lists. ##
3906 ## ------------------------------------------ ##
3909 sed "s/^/$as_me: WARNING: /" >&2
3912 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3913 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3914 if test "${ac_cv_header_minix_config_h+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_cv_header_minix_config_h
=$ac_header_preproc
3919 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3920 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3923 if test $ac_cv_header_minix_config_h = yes; then
3930 if test "$MINIX" = yes; then
3932 cat >>confdefs.h
<<\_ACEOF
3933 #define _POSIX_SOURCE 1
3937 cat >>confdefs.h
<<\_ACEOF
3938 #define _POSIX_1_SOURCE 2
3942 cat >>confdefs.h
<<\_ACEOF
3950 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3951 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3952 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 cat >conftest.
$ac_ext <<_ACEOF
3958 cat confdefs.h
>>conftest.
$ac_ext
3959 cat >>conftest.
$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3962 # define __EXTENSIONS__ 1
3963 $ac_includes_default
3972 rm -f conftest.
$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>conftest.er1
3976 grep -v '^ *+' conftest.er1
>conftest.err
3978 cat conftest.err
>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try
='test -z "$ac_c_werror_flag"
3982 || test ! -s conftest.err'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; } &&
3988 { ac_try
='test -s conftest.$ac_objext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_safe_to_define___extensions__
=yes
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.
$ac_ext >&5
3999 ac_cv_safe_to_define___extensions__
=no
4001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4003 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4004 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4005 test $ac_cv_safe_to_define___extensions__ = yes &&
4006 cat >>confdefs.h
<<\_ACEOF
4007 #define __EXTENSIONS__ 1
4010 cat >>confdefs.h
<<\_ACEOF
4011 #define _ALL_SOURCE 1
4014 cat >>confdefs.h
<<\_ACEOF
4015 #define _GNU_SOURCE 1
4018 cat >>confdefs.h
<<\_ACEOF
4019 #define _POSIX_PTHREAD_SEMANTICS 1
4022 cat >>confdefs.h
<<\_ACEOF
4023 #define _TANDEM_SOURCE 1
4028 ac_cpp
='$CPP $CPPFLAGS'
4029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4032 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4034 # On Suns, sometimes $CPP names a directory.
4035 if test -n "$CPP" && test -d "$CPP"; then
4038 if test -z "$CPP"; then
4039 if test "${ac_cv_prog_CPP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 # Double quotes because CPP needs to be expanded
4043 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046 for ac_c_preproc_warn_flag
in '' yes
4048 # Use a header file that comes with gcc, so configuring glibc
4049 # with a fresh cross-compiler works.
4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4051 # <limits.h> exists even on freestanding compilers.
4052 # On the NeXT, cc -E runs the code through the compiler's parser,
4053 # not just through cpp. "Syntax error" is here to catch this case.
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4061 # include <limits.h>
4063 # include <assert.h>
4067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1
>conftest.err
4072 cat conftest.err
>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } >/dev
/null
; then
4075 if test -s conftest.err
; then
4076 ac_cpp_err
=$ac_c_preproc_warn_flag
4077 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4084 if test -z "$ac_cpp_err"; then
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.
$ac_ext >&5
4090 # Broken: fails on valid input.
4093 rm -f conftest.err conftest.
$ac_ext
4095 # OK, works on sane cases. Now check whether non-existent headers
4096 # can be detected and how.
4097 cat >conftest.
$ac_ext <<_ACEOF
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <ac_nonexistent.h>
4105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1
>conftest.err
4110 cat conftest.err
>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } >/dev
/null
; then
4113 if test -s conftest.err
; then
4114 ac_cpp_err
=$ac_c_preproc_warn_flag
4115 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4122 if test -z "$ac_cpp_err"; then
4123 # Broken: success on invalid input.
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.
$ac_ext >&5
4129 # Passes both tests.
4133 rm -f conftest.err conftest.
$ac_ext
4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137 rm -f conftest.err conftest.
$ac_ext
4138 if $ac_preproc_ok; then
4150 echo "$as_me:$LINENO: result: $CPP" >&5
4151 echo "${ECHO_T}$CPP" >&6
4153 for ac_c_preproc_warn_flag
in '' yes
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat >conftest.
$ac_ext <<_ACEOF
4164 cat confdefs.h
>>conftest.
$ac_ext
4165 cat >>conftest.
$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4168 # include <limits.h>
4170 # include <assert.h>
4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4177 grep -v '^ *+' conftest.er1
>conftest.err
4179 cat conftest.err
>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev
/null
; then
4182 if test -s conftest.err
; then
4183 ac_cpp_err
=$ac_c_preproc_warn_flag
4184 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4191 if test -z "$ac_cpp_err"; then
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 # Broken: fails on valid input.
4200 rm -f conftest.err conftest.
$ac_ext
4202 # OK, works on sane cases. Now check whether non-existent headers
4203 # can be detected and how.
4204 cat >conftest.
$ac_ext <<_ACEOF
4207 cat confdefs.h
>>conftest.
$ac_ext
4208 cat >>conftest.
$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4215 grep -v '^ *+' conftest.er1
>conftest.err
4217 cat conftest.err
>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev
/null
; then
4220 if test -s conftest.err
; then
4221 ac_cpp_err
=$ac_c_preproc_warn_flag
4222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4229 if test -z "$ac_cpp_err"; then
4230 # Broken: success on invalid input.
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 # Passes both tests.
4240 rm -f conftest.err conftest.
$ac_ext
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.err conftest.
$ac_ext
4245 if $ac_preproc_ok; then
4248 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4249 See \`config.log' for more details." >&5
4250 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4251 See \`config.log' for more details." >&2;}
4252 { (exit 1); exit 1; }; }
4256 ac_cpp
='$CPP $CPPFLAGS'
4257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4261 echo "$as_me:$LINENO: checking for inline" >&5
4262 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4263 if test "${ac_cv_c_inline+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 for ac_kw
in inline __inline__ __inline
; do
4268 cat >conftest.
$ac_ext <<_ACEOF
4271 cat confdefs.h
>>conftest.
$ac_ext
4272 cat >>conftest.
$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4276 static $ac_kw foo_t static_foo () {return 0; }
4277 $ac_kw foo_t foo () {return 0; }
4281 rm -f conftest.
$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1
>conftest.err
4287 cat conftest.err
>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try
='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try
='test -s conftest.$ac_objext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_c_inline
=$ac_kw; break
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4313 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4314 echo "${ECHO_T}$ac_cv_c_inline" >&6
4317 case $ac_cv_c_inline in
4320 case $ac_cv_c_inline in
4322 *) ac_val
=$ac_cv_c_inline;;
4324 cat >>confdefs.h
<<_ACEOF
4326 #define inline $ac_val
4333 # sizeof(char) is 1 by definition.
4334 echo "$as_me:$LINENO: checking for void *" >&5
4335 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4336 if test "${ac_cv_type_void_p+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 cat >conftest.
$ac_ext <<_ACEOF
4342 cat confdefs.h
>>conftest.
$ac_ext
4343 cat >>conftest.
$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4351 if (sizeof (void *))
4357 rm -f conftest.
$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try
='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try
='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_type_void_p
=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4384 ac_cv_type_void_p
=no
4386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4389 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4391 echo "$as_me:$LINENO: checking size of void *" >&5
4392 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4393 if test "${ac_cv_sizeof_void_p+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 if test "$ac_cv_type_void_p" = yes; then
4397 # The cast to unsigned long works around a bug in the HP C Compiler
4398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4400 # This bug is HP SR number 8606223364.
4401 if test "$cross_compiling" = yes; then
4402 # Depending upon the size, compute the lo and hi bounds.
4403 cat >conftest.
$ac_ext <<_ACEOF
4406 cat confdefs.h
>>conftest.
$ac_ext
4407 cat >>conftest.
$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 $ac_includes_default
4413 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4420 rm -f conftest.
$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4424 grep -v '^ *+' conftest.er1
>conftest.err
4426 cat conftest.err
>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try
='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try
='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4444 cat >conftest.
$ac_ext <<_ACEOF
4447 cat confdefs.h
>>conftest.
$ac_ext
4448 cat >>conftest.
$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 $ac_includes_default
4454 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_hi
=$ac_mid; break
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_lo
=`expr $ac_mid + 1`
4489 if test $ac_lo -le $ac_mid; then
4493 ac_mid
=`expr 2 '*' $ac_mid + 1`
4495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.
$ac_ext >&5
4501 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 $ac_includes_default
4511 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4518 rm -f conftest.
$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1
>conftest.err
4524 cat conftest.err
>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try
='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try
='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 $ac_includes_default
4552 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4559 rm -f conftest.
$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try
='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_lo
=$ac_mid; break
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.
$ac_ext >&5
4586 ac_hi
=`expr '(' $ac_mid ')' - 1`
4587 if test $ac_mid -le $ac_hi; then
4591 ac_mid
=`expr 2 '*' $ac_mid`
4593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.
$ac_ext >&5
4601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4604 # Binary search between lo and hi bounds.
4605 while test "x$ac_lo" != "x$ac_hi"; do
4606 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4617 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4624 rm -f conftest.
$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1
>conftest.err
4630 cat conftest.err
>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try
='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try
='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4651 ac_lo
=`expr '(' $ac_mid ')' + 1`
4653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4656 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute sizeof (void *), 77
4660 See \`config.log' for more details." >&2;}
4661 { (exit 1); exit 1; }; } ;;
4664 if test "$cross_compiling" = yes; then
4665 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4666 See \`config.log' for more details." >&5
4667 echo "$as_me: error: cannot run test program while cross compiling
4668 See \`config.log' for more details." >&2;}
4669 { (exit 1); exit 1; }; }
4671 cat >conftest.
$ac_ext <<_ACEOF
4674 cat confdefs.h
>>conftest.
$ac_ext
4675 cat >>conftest.
$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 $ac_includes_default
4678 long longval () { return (long) (sizeof (void *)); }
4679 unsigned long ulongval () { return (long) (sizeof (void *)); }
4686 FILE *f = fopen ("conftest.val", "w");
4689 if (((long) (sizeof (void *))) < 0)
4691 long i = longval ();
4692 if (i != ((long) (sizeof (void *))))
4694 fprintf (f, "%ld\n", i);
4698 unsigned long i = ulongval ();
4699 if (i != ((long) (sizeof (void *))))
4701 fprintf (f, "%lu\n", i);
4703 exit (ferror (f) || fclose (f) != 0);
4709 rm -f conftest
$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_sizeof_void_p
=`cat conftest.val`
4722 echo "$as_me: program exited with status $ac_status" >&5
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.
$ac_ext >&5
4727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4728 See \`config.log' for more details." >&5
4729 echo "$as_me: error: cannot compute sizeof (void *), 77
4730 See \`config.log' for more details." >&2;}
4731 { (exit 1); exit 1; }; }
4733 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4738 ac_cv_sizeof_void_p
=0
4741 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4742 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4743 cat >>confdefs.h
<<_ACEOF
4744 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4748 echo "$as_me:$LINENO: checking for short" >&5
4749 echo $ECHO_N "checking for short... $ECHO_C" >&6
4750 if test "${ac_cv_type_short+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 $ac_includes_default
4771 rm -f conftest.
$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4775 grep -v '^ *+' conftest.er1
>conftest.err
4777 cat conftest.err
>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try
='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try
='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 ac_cv_type_short
=yes
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.
$ac_ext >&5
4800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4803 echo "${ECHO_T}$ac_cv_type_short" >&6
4805 echo "$as_me:$LINENO: checking size of short" >&5
4806 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4807 if test "${ac_cv_sizeof_short+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test "$ac_cv_type_short" = yes; then
4811 # The cast to unsigned long works around a bug in the HP C Compiler
4812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4814 # This bug is HP SR number 8606223364.
4815 if test "$cross_compiling" = yes; then
4816 # Depending upon the size, compute the lo and hi bounds.
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 $ac_includes_default
4827 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4834 rm -f conftest.
$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1
>conftest.err
4840 cat conftest.err
>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try
='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try
='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4858 cat >conftest.
$ac_ext <<_ACEOF
4861 cat confdefs.h
>>conftest.
$ac_ext
4862 cat >>conftest.
$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 $ac_includes_default
4868 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4875 rm -f conftest.
$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try
='test -z "$ac_c_werror_flag"
4885 || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try
='test -s conftest.$ac_objext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_hi
=$ac_mid; break
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.
$ac_ext >&5
4902 ac_lo
=`expr $ac_mid + 1`
4903 if test $ac_lo -le $ac_mid; then
4907 ac_mid
=`expr 2 '*' $ac_mid + 1`
4909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.
$ac_ext >&5
4915 cat >conftest.
$ac_ext <<_ACEOF
4918 cat confdefs.h
>>conftest.
$ac_ext
4919 cat >>conftest.
$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4925 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4932 rm -f conftest.
$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1
>conftest.err
4938 cat conftest.err
>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try
='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try
='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 cat >conftest.
$ac_ext <<_ACEOF
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4973 rm -f conftest.
$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4977 grep -v '^ *+' conftest.er1
>conftest.err
4979 cat conftest.err
>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try
='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try
='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_lo
=$ac_mid; break
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.
$ac_ext >&5
5000 ac_hi
=`expr '(' $ac_mid ')' - 1`
5001 if test $ac_mid -le $ac_hi; then
5005 ac_mid
=`expr 2 '*' $ac_mid`
5007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 # Binary search between lo and hi bounds.
5019 while test "x$ac_lo" != "x$ac_hi"; do
5020 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5031 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5038 rm -f conftest.
$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>conftest.er1
5042 grep -v '^ *+' conftest.er1
>conftest.err
5044 cat conftest.err
>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } &&
5047 { ac_try
='test -z "$ac_c_werror_flag"
5048 || test ! -s conftest.err'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try
='test -s conftest.$ac_objext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.
$ac_ext >&5
5065 ac_lo
=`expr '(' $ac_mid ')' + 1`
5067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5071 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: cannot compute sizeof (short), 77
5074 See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; } ;;
5078 if test "$cross_compiling" = yes; then
5079 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot run test program while cross compiling
5082 See \`config.log' for more details." >&2;}
5083 { (exit 1); exit 1; }; }
5085 cat >conftest.
$ac_ext <<_ACEOF
5088 cat confdefs.h
>>conftest.
$ac_ext
5089 cat >>conftest.
$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 $ac_includes_default
5092 long longval () { return (long) (sizeof (short)); }
5093 unsigned long ulongval () { return (long) (sizeof (short)); }
5100 FILE *f = fopen ("conftest.val", "w");
5103 if (((long) (sizeof (short))) < 0)
5105 long i = longval ();
5106 if (i != ((long) (sizeof (short))))
5108 fprintf (f, "%ld\n", i);
5112 unsigned long i = ulongval ();
5113 if (i != ((long) (sizeof (short))))
5115 fprintf (f, "%lu\n", i);
5117 exit (ferror (f) || fclose (f) != 0);
5123 rm -f conftest
$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_sizeof_short
=`cat conftest.val`
5136 echo "$as_me: program exited with status $ac_status" >&5
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.
$ac_ext >&5
5141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot compute sizeof (short), 77
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5147 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5152 ac_cv_sizeof_short
=0
5155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5156 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5157 cat >>confdefs.h
<<_ACEOF
5158 #define SIZEOF_SHORT $ac_cv_sizeof_short
5162 echo "$as_me:$LINENO: checking for int" >&5
5163 echo $ECHO_N "checking for int... $ECHO_C" >&6
5164 if test "${ac_cv_type_int+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 $ac_includes_default
5185 rm -f conftest.
$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187 (eval $ac_compile) 2>conftest.er1
5189 grep -v '^ *+' conftest.er1
>conftest.err
5191 cat conftest.err
>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } &&
5194 { ac_try
='test -z "$ac_c_werror_flag"
5195 || test ! -s conftest.err'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; } &&
5201 { ac_try
='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.
$ac_ext >&5
5214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5217 echo "${ECHO_T}$ac_cv_type_int" >&6
5219 echo "$as_me:$LINENO: checking size of int" >&5
5220 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5221 if test "${ac_cv_sizeof_int+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if test "$ac_cv_type_int" = yes; then
5225 # The cast to unsigned long works around a bug in the HP C Compiler
5226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5228 # This bug is HP SR number 8606223364.
5229 if test "$cross_compiling" = yes; then
5230 # Depending upon the size, compute the lo and hi bounds.
5231 cat >conftest.
$ac_ext <<_ACEOF
5234 cat confdefs.h
>>conftest.
$ac_ext
5235 cat >>conftest.
$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5241 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5248 rm -f conftest.
$ac_objext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250 (eval $ac_compile) 2>conftest.er1
5252 grep -v '^ *+' conftest.er1
>conftest.err
5254 cat conftest.err
>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try
='test -z "$ac_c_werror_flag"
5258 || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try
='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5282 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5289 rm -f conftest.
$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5293 grep -v '^ *+' conftest.er1
>conftest.err
5295 cat conftest.err
>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try
='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try
='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_hi
=$ac_mid; break
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.
$ac_ext >&5
5316 ac_lo
=`expr $ac_mid + 1`
5317 if test $ac_lo -le $ac_mid; then
5321 ac_mid
=`expr 2 '*' $ac_mid + 1`
5323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.
$ac_ext >&5
5329 cat >conftest.
$ac_ext <<_ACEOF
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5339 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5346 rm -f conftest.
$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1
>conftest.err
5352 cat conftest.err
>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try
='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try
='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5370 cat >conftest.
$ac_ext <<_ACEOF
5373 cat confdefs.h
>>conftest.
$ac_ext
5374 cat >>conftest.
$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5380 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5387 rm -f conftest.
$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5391 grep -v '^ *+' conftest.er1
>conftest.err
5393 cat conftest.err
>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try
='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try
='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_lo
=$ac_mid; break
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.
$ac_ext >&5
5414 ac_hi
=`expr '(' $ac_mid ')' - 1`
5415 if test $ac_mid -le $ac_hi; then
5419 ac_mid
=`expr 2 '*' $ac_mid`
5421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.
$ac_ext >&5
5429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 # Binary search between lo and hi bounds.
5433 while test "x$ac_lo" != "x$ac_hi"; do
5434 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5435 cat >conftest.
$ac_ext <<_ACEOF
5438 cat confdefs.h
>>conftest.
$ac_ext
5439 cat >>conftest.
$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5445 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5452 rm -f conftest.
$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try
='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try
='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.
$ac_ext >&5
5479 ac_lo
=`expr '(' $ac_mid ')' + 1`
5481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5484 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5485 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: cannot compute sizeof (int), 77
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 if test "$cross_compiling" = yes; then
5493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot run test program while cross compiling
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; }
5499 cat >conftest.
$ac_ext <<_ACEOF
5502 cat confdefs.h
>>conftest.
$ac_ext
5503 cat >>conftest.
$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5506 long longval () { return (long) (sizeof (int)); }
5507 unsigned long ulongval () { return (long) (sizeof (int)); }
5514 FILE *f = fopen ("conftest.val", "w");
5517 if (((long) (sizeof (int))) < 0)
5519 long i = longval ();
5520 if (i != ((long) (sizeof (int))))
5522 fprintf (f, "%ld\n", i);
5526 unsigned long i = ulongval ();
5527 if (i != ((long) (sizeof (int))))
5529 fprintf (f, "%lu\n", i);
5531 exit (ferror (f) || fclose (f) != 0);
5537 rm -f conftest
$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_sizeof_int
=`cat conftest.val`
5550 echo "$as_me: program exited with status $ac_status" >&5
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.
$ac_ext >&5
5555 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot compute sizeof (int), 77
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5561 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5569 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5570 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5571 cat >>confdefs.h
<<_ACEOF
5572 #define SIZEOF_INT $ac_cv_sizeof_int
5576 echo "$as_me:$LINENO: checking for long" >&5
5577 echo $ECHO_N "checking for long... $ECHO_C" >&6
5578 if test "${ac_cv_type_long+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5599 rm -f conftest.
$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5603 grep -v '^ *+' conftest.er1
>conftest.err
5605 cat conftest.err
>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try
='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try
='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.
$ac_ext >&5
5628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5631 echo "${ECHO_T}$ac_cv_type_long" >&6
5633 echo "$as_me:$LINENO: checking size of long" >&5
5634 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5635 if test "${ac_cv_sizeof_long+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 if test "$ac_cv_type_long" = yes; then
5639 # The cast to unsigned long works around a bug in the HP C Compiler
5640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5642 # This bug is HP SR number 8606223364.
5643 if test "$cross_compiling" = yes; then
5644 # Depending upon the size, compute the lo and hi bounds.
5645 cat >conftest.
$ac_ext <<_ACEOF
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5655 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5662 rm -f conftest.
$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1
>conftest.err
5668 cat conftest.err
>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 cat >conftest.
$ac_ext <<_ACEOF
5689 cat confdefs.h
>>conftest.
$ac_ext
5690 cat >>conftest.
$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5696 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5703 rm -f conftest.
$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>conftest.er1
5707 grep -v '^ *+' conftest.er1
>conftest.err
5709 cat conftest.err
>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try
='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try
='test -s conftest.$ac_objext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 ac_hi
=$ac_mid; break
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.
$ac_ext >&5
5730 ac_lo
=`expr $ac_mid + 1`
5731 if test $ac_lo -le $ac_mid; then
5735 ac_mid
=`expr 2 '*' $ac_mid + 1`
5737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.
$ac_ext >&5
5743 cat >conftest.
$ac_ext <<_ACEOF
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5753 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5760 rm -f conftest.
$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1
>conftest.err
5766 cat conftest.err
>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try
='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try
='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5784 cat >conftest.
$ac_ext <<_ACEOF
5787 cat confdefs.h
>>conftest.
$ac_ext
5788 cat >>conftest.
$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5794 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5801 rm -f conftest.
$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>conftest.er1
5805 grep -v '^ *+' conftest.er1
>conftest.err
5807 cat conftest.err
>&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } &&
5810 { ac_try
='test -z "$ac_c_werror_flag"
5811 || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try
='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 ac_lo
=$ac_mid; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5828 ac_hi
=`expr '(' $ac_mid ')' - 1`
5829 if test $ac_mid -le $ac_hi; then
5833 ac_mid
=`expr 2 '*' $ac_mid`
5835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.
$ac_ext >&5
5843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5866 rm -f conftest.
$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try
='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5893 ac_lo
=`expr '(' $ac_mid ')' + 1`
5895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5900 See \`config.log' for more details." >&5
5901 echo "$as_me: error: cannot compute sizeof (long), 77
5902 See \`config.log' for more details." >&2;}
5903 { (exit 1); exit 1; }; } ;;
5906 if test "$cross_compiling" = yes; then
5907 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5908 See \`config.log' for more details." >&5
5909 echo "$as_me: error: cannot run test program while cross compiling
5910 See \`config.log' for more details." >&2;}
5911 { (exit 1); exit 1; }; }
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (long)); }
5921 unsigned long ulongval () { return (long) (sizeof (long)); }
5928 FILE *f = fopen ("conftest.val", "w");
5931 if (((long) (sizeof (long))) < 0)
5933 long i = longval ();
5934 if (i != ((long) (sizeof (long))))
5936 fprintf (f, "%ld\n", i);
5940 unsigned long i = ulongval ();
5941 if (i != ((long) (sizeof (long))))
5943 fprintf (f, "%lu\n", i);
5945 exit (ferror (f) || fclose (f) != 0);
5951 rm -f conftest
$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_sizeof_long
=`cat conftest.val`
5964 echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.
$ac_ext >&5
5969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot compute sizeof (long), 77
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5975 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5984 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF_LONG $ac_cv_sizeof_long
5990 echo "$as_me:$LINENO: checking for long long" >&5
5991 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5992 if test "${ac_cv_type_long_long+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6005 if ((long long *) 0)
6007 if (sizeof (long long))
6013 rm -f conftest.
$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1
>conftest.err
6019 cat conftest.err
>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try
='test -s conftest.$ac_objext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_type_long_long
=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6040 ac_cv_type_long_long
=no
6042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6045 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6046 if test $ac_cv_type_long_long = yes; then
6048 cat >>confdefs.h
<<_ACEOF
6049 #define HAVE_LONG_LONG 1
6052 echo "$as_me:$LINENO: checking for long long" >&5
6053 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6054 if test "${ac_cv_type_long_long+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6067 if ((long long *) 0)
6069 if (sizeof (long long))
6075 rm -f conftest.
$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1
>conftest.err
6081 cat conftest.err
>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try
='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try
='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_type_long_long
=yes
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.
$ac_ext >&5
6102 ac_cv_type_long_long
=no
6104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6107 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6109 echo "$as_me:$LINENO: checking size of long long" >&5
6110 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6111 if test "${ac_cv_sizeof_long_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if test "$ac_cv_type_long_long" = yes; then
6115 # The cast to unsigned long works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 if test "$cross_compiling" = yes; then
6120 # Depending upon the size, compute the lo and hi bounds.
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6131 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6138 rm -f conftest.
$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6142 grep -v '^ *+' conftest.er1
>conftest.err
6144 cat conftest.err
>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try
='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try
='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6172 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi
=$ac_mid; break
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_lo
=`expr $ac_mid + 1`
6207 if test $ac_lo -le $ac_mid; then
6211 ac_mid
=`expr 2 '*' $ac_mid + 1`
6213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6229 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6236 rm -f conftest.
$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
6242 cat conftest.err
>&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try
='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try
='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 cat >conftest.
$ac_ext <<_ACEOF
6263 cat confdefs.h
>>conftest.
$ac_ext
6264 cat >>conftest.
$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6270 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6277 rm -f conftest.
$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try
='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try
='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_lo
=$ac_mid; break
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 ac_hi
=`expr '(' $ac_mid ')' - 1`
6305 if test $ac_mid -le $ac_hi; then
6309 ac_mid
=`expr 2 '*' $ac_mid`
6311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.
$ac_ext <<_ACEOF
6328 cat confdefs.h
>>conftest.
$ac_ext
6329 cat >>conftest.
$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6335 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6342 rm -f conftest.
$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1
>conftest.err
6348 cat conftest.err
>&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try
='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try
='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 ac_lo
=`expr '(' $ac_mid ')' + 1`
6371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6374 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; } ;;
6382 if test "$cross_compiling" = yes; then
6383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot run test program while cross compiling
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6389 cat >conftest.
$ac_ext <<_ACEOF
6392 cat confdefs.h
>>conftest.
$ac_ext
6393 cat >>conftest.
$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 long longval () { return (long) (sizeof (long long)); }
6397 unsigned long ulongval () { return (long) (sizeof (long long)); }
6404 FILE *f = fopen ("conftest.val", "w");
6407 if (((long) (sizeof (long long))) < 0)
6409 long i = longval ();
6410 if (i != ((long) (sizeof (long long))))
6412 fprintf (f, "%ld\n", i);
6416 unsigned long i = ulongval ();
6417 if (i != ((long) (sizeof (long long))))
6419 fprintf (f, "%lu\n", i);
6421 exit (ferror (f) || fclose (f) != 0);
6427 rm -f conftest
$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_sizeof_long_long
=`cat conftest.val`
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: cannot compute sizeof (long long), 77
6448 See \`config.log' for more details." >&2;}
6449 { (exit 1); exit 1; }; }
6451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6456 ac_cv_sizeof_long_long
=0
6459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6460 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6461 cat >>confdefs.h
<<_ACEOF
6462 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6468 echo "$as_me:$LINENO: checking for __int64" >&5
6469 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6470 if test "${ac_cv_type___int64+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 cat >conftest.
$ac_ext <<_ACEOF
6476 cat confdefs.h
>>conftest.
$ac_ext
6477 cat >>conftest.
$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6485 if (sizeof (__int64))
6491 rm -f conftest.
$ac_objext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493 (eval $ac_compile) 2>conftest.er1
6495 grep -v '^ *+' conftest.er1
>conftest.err
6497 cat conftest.err
>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try
='test -z "$ac_c_werror_flag"
6501 || test ! -s conftest.err'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; } &&
6507 { ac_try
='test -s conftest.$ac_objext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_type___int64
=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.
$ac_ext >&5
6518 ac_cv_type___int64
=no
6520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6522 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6523 echo "${ECHO_T}$ac_cv_type___int64" >&6
6524 if test $ac_cv_type___int64 = yes; then
6526 cat >>confdefs.h
<<_ACEOF
6527 #define HAVE___INT64 1
6530 echo "$as_me:$LINENO: checking for __int64" >&5
6531 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6532 if test "${ac_cv_type___int64+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6547 if (sizeof (__int64))
6553 rm -f conftest.
$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try
='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try
='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_cv_type___int64
=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 ac_cv_type___int64
=no
6582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6585 echo "${ECHO_T}$ac_cv_type___int64" >&6
6587 echo "$as_me:$LINENO: checking size of __int64" >&5
6588 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6589 if test "${ac_cv_sizeof___int64+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 if test "$ac_cv_type___int64" = yes; then
6593 # The cast to unsigned long works around a bug in the HP C Compiler
6594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6596 # This bug is HP SR number 8606223364.
6597 if test "$cross_compiling" = yes; then
6598 # Depending upon the size, compute the lo and hi bounds.
6599 cat >conftest.
$ac_ext <<_ACEOF
6602 cat confdefs.h
>>conftest.
$ac_ext
6603 cat >>conftest.
$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6609 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6616 rm -f conftest.
$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6620 grep -v '^ *+' conftest.er1
>conftest.err
6622 cat conftest.err
>&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try
='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try
='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6650 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6657 rm -f conftest.
$ac_objext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6659 (eval $ac_compile) 2>conftest.er1
6661 grep -v '^ *+' conftest.er1
>conftest.err
6663 cat conftest.err
>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try
='test -z "$ac_c_werror_flag"
6667 || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try
='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_hi
=$ac_mid; break
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.
$ac_ext >&5
6684 ac_lo
=`expr $ac_mid + 1`
6685 if test $ac_lo -le $ac_mid; then
6689 ac_mid
=`expr 2 '*' $ac_mid + 1`
6691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.
$ac_ext >&5
6697 cat >conftest.
$ac_ext <<_ACEOF
6700 cat confdefs.h
>>conftest.
$ac_ext
6701 cat >>conftest.
$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 $ac_includes_default
6707 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6714 rm -f conftest.
$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6718 grep -v '^ *+' conftest.er1
>conftest.err
6720 cat conftest.err
>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try
='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6738 cat >conftest.
$ac_ext <<_ACEOF
6741 cat confdefs.h
>>conftest.
$ac_ext
6742 cat >>conftest.
$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6748 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6755 rm -f conftest.
$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1
>conftest.err
6761 cat conftest.err
>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try
='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_lo
=$ac_mid; break
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 ac_hi
=`expr '(' $ac_mid ')' - 1`
6783 if test $ac_mid -le $ac_hi; then
6787 ac_mid
=`expr 2 '*' $ac_mid`
6789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.
$ac_ext >&5
6797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6800 # Binary search between lo and hi bounds.
6801 while test "x$ac_lo" != "x$ac_hi"; do
6802 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6813 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6820 rm -f conftest.
$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>conftest.er1
6824 grep -v '^ *+' conftest.er1
>conftest.err
6826 cat conftest.err
>&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try
='test -z "$ac_c_werror_flag"
6830 || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try
='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.
$ac_ext >&5
6847 ac_lo
=`expr '(' $ac_mid ')' + 1`
6849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6852 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6854 See \`config.log' for more details." >&5
6855 echo "$as_me: error: cannot compute sizeof (__int64), 77
6856 See \`config.log' for more details." >&2;}
6857 { (exit 1); exit 1; }; } ;;
6860 if test "$cross_compiling" = yes; then
6861 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6862 See \`config.log' for more details." >&5
6863 echo "$as_me: error: cannot run test program while cross compiling
6864 See \`config.log' for more details." >&2;}
6865 { (exit 1); exit 1; }; }
6867 cat >conftest.
$ac_ext <<_ACEOF
6870 cat confdefs.h
>>conftest.
$ac_ext
6871 cat >>conftest.
$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 long longval () { return (long) (sizeof (__int64)); }
6875 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6882 FILE *f = fopen ("conftest.val", "w");
6885 if (((long) (sizeof (__int64))) < 0)
6887 long i = longval ();
6888 if (i != ((long) (sizeof (__int64))))
6890 fprintf (f, "%ld\n", i);
6894 unsigned long i = ulongval ();
6895 if (i != ((long) (sizeof (__int64))))
6897 fprintf (f, "%lu\n", i);
6899 exit (ferror (f) || fclose (f) != 0);
6905 rm -f conftest
$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_cv_sizeof___int64
=`cat conftest.val`
6918 echo "$as_me: program exited with status $ac_status" >&5
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6924 See \`config.log' for more details." >&5
6925 echo "$as_me: error: cannot compute sizeof (__int64), 77
6926 See \`config.log' for more details." >&2;}
6927 { (exit 1); exit 1; }; }
6929 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6934 ac_cv_sizeof___int64
=0
6937 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6938 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6939 cat >>confdefs.h
<<_ACEOF
6940 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6947 # ---------------------
6948 # Warnings and checking
6949 # ---------------------
6951 # Check $CC warning features (if it's GCC).
6952 # We want to use -pedantic, but we don't want warnings about
6955 # * overlong strings
6956 # So, we only use -pedantic if we can disable those warnings.
6959 save_CFLAGS
="$CFLAGS"
6960 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6961 -Wmissing-prototypes; do
6962 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6964 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6965 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6966 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 cat >conftest.
$ac_ext <<_ACEOF
6973 cat confdefs.h
>>conftest.
$ac_ext
6974 cat >>conftest.
$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6985 rm -f conftest.
$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6989 grep -v '^ *+' conftest.er1
>conftest.err
6991 cat conftest.err
>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try
='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try
='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 eval "$as_acx_Woption=yes"
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.
$ac_ext >&5
7012 eval "$as_acx_Woption=no"
7014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7017 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7018 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7019 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7020 loose_warn
="$loose_warn${loose_warn:+ }$option"
7024 CFLAGS
="$save_CFLAGS"
7027 save_CFLAGS
="$CFLAGS"
7028 for option
in -Wc++-compat; do
7029 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7031 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7032 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7033 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.
$ac_ext <<_ACEOF
7040 cat confdefs.h
>>conftest.
$ac_ext
7041 cat >>conftest.
$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7052 rm -f conftest.
$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7056 grep -v '^ *+' conftest.er1
>conftest.err
7058 cat conftest.err
>&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try
='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try
='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 eval "$as_acx_Woption=yes"
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.
$ac_ext >&5
7079 eval "$as_acx_Woption=no"
7081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7086 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7087 cxx_compat_warn
="$cxx_compat_warn${cxx_compat_warn:+ }$option"
7091 CFLAGS
="$save_CFLAGS"
7094 save_CFLAGS
="$CFLAGS"
7095 for option
in -Wold-style-definition \
7096 -Wmissing-format-attribute; do
7097 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7099 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7100 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7101 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.
$ac_ext <<_ACEOF
7108 cat confdefs.h
>>conftest.
$ac_ext
7109 cat >>conftest.
$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7120 rm -f conftest.
$ac_objext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122 (eval $ac_compile) 2>conftest.er1
7124 grep -v '^ *+' conftest.er1
>conftest.err
7126 cat conftest.err
>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try
='test -z "$ac_c_werror_flag"
7130 || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try
='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 eval "$as_acx_Woption=yes"
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.
$ac_ext >&5
7147 eval "$as_acx_Woption=no"
7149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7153 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7154 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7155 strict_warn
="$strict_warn${strict_warn:+ }$option"
7159 CFLAGS
="$save_CFLAGS"
7161 if test "$GCC" = yes; then
7162 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7163 -Wno-overlength-strings" >&5
7164 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7165 -Wno-overlength-strings... $ECHO_C" >&6
7166 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 save_CFLAGS
="$CFLAGS"
7170 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
7171 -Wno-overlength-strings"
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7187 rm -f conftest.
$ac_objext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7189 (eval $ac_compile) 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } &&
7196 { ac_try
='test -z "$ac_c_werror_flag"
7197 || test ! -s conftest.err'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; } &&
7203 { ac_try
='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7214 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
7216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7217 CFLAGS
="$save_CFLAGS"
7219 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7220 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7221 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7222 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7223 -Wno-overlength-strings"
7230 # Check whether --enable-werror-always or --disable-werror-always was given.
7231 if test "${enable_werror_always+set}" = set; then
7232 enableval
="$enable_werror_always"
7235 enable_werror_always
=no
7237 if test $enable_werror_always = yes; then
7238 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7244 # The above macros do nothing if the compiler is not GCC. However, the
7245 # Makefile has more goo to add other flags, so this variabl is used to
7246 # enables warnings only for GCC.
7248 if test "x$GCC" = "xyes"; then
7249 warn_cflags
='$(GCC_WARN_CFLAGS)'
7253 # Enable expensive internal checks
7255 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7259 # Check whether --enable-checking or --disable-checking was given.
7260 if test "${enable_checking+set}" = set; then
7261 enableval
="$enable_checking"
7262 ac_checking_flags
="${enableval}"
7265 # Determine the default checks.
7266 if test x
$is_release = x
; then
7267 ac_checking_flags
=yes
7269 ac_checking_flags
=release
7272 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7273 for check
in release
$ac_checking_flags
7276 # these set all the flags to specific states
7277 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7278 ac_fold_checking
= ; ac_gc_checking
=1 ;
7279 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7280 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7281 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7282 ac_types_checking
=1 ;;
7283 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7284 ac_fold_checking
= ; ac_gc_checking
= ;
7285 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7286 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7287 ac_tree_checking
= ; ac_valgrind_checking
= ;
7288 ac_types_checking
= ;;
7289 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7290 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7291 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
7292 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7293 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7294 ac_types_checking
=1 ;;
7295 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7296 ac_fold_checking
= ; ac_gc_checking
= ;
7297 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7298 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7299 ac_tree_checking
= ; ac_valgrind_checking
= ;
7300 ac_types_checking
= ;;
7301 # these enable particular checks
7302 assert
) ac_assert_checking
=1 ;;
7303 df
) ac_df_checking
=1 ;;
7304 fold) ac_fold_checking
=1 ;;
7305 gc
) ac_gc_checking
=1 ;;
7306 gcac
) ac_gc_always_collect
=1 ;;
7307 misc
) ac_checking
=1 ;;
7308 rtl
) ac_rtl_checking
=1 ;;
7309 rtlflag
) ac_rtlflag_checking
=1 ;;
7310 runtime
) ac_runtime_checking
=1 ;;
7311 tree
) ac_tree_checking
=1 ;;
7312 types
) ac_types_checking
=1 ;;
7313 valgrind
) ac_valgrind_checking
=1 ;;
7314 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7315 echo "$as_me: error: unknown check category $check" >&2;}
7316 { (exit 1); exit 1; }; } ;;
7322 if test x
$ac_checking != x
; then
7324 cat >>confdefs.h
<<\_ACEOF
7325 #define ENABLE_CHECKING 1
7328 nocommon_flag
=-fno-common
7331 if test x
$ac_df_checking != x
; then
7333 cat >>confdefs.h
<<\_ACEOF
7334 #define ENABLE_DF_CHECKING 1
7338 if test x
$ac_assert_checking != x
; then
7340 cat >>confdefs.h
<<\_ACEOF
7341 #define ENABLE_ASSERT_CHECKING 1
7346 if test x
$ac_runtime_checking != x
; then
7348 cat >>confdefs.h
<<\_ACEOF
7349 #define ENABLE_RUNTIME_CHECKING 1
7353 if test x
$ac_tree_checking != x
; then
7355 cat >>confdefs.h
<<\_ACEOF
7356 #define ENABLE_TREE_CHECKING 1
7359 TREEBROWSER
=tree-browser.o
7361 if test x
$ac_types_checking != x
; then
7363 cat >>confdefs.h
<<\_ACEOF
7364 #define ENABLE_TYPES_CHECKING 1
7369 if test x
$ac_rtl_checking != x
; then
7371 cat >>confdefs.h
<<\_ACEOF
7372 #define ENABLE_RTL_CHECKING 1
7376 if test x
$ac_rtlflag_checking != x
; then
7378 cat >>confdefs.h
<<\_ACEOF
7379 #define ENABLE_RTL_FLAG_CHECKING 1
7383 if test x
$ac_gc_checking != x
; then
7385 cat >>confdefs.h
<<\_ACEOF
7386 #define ENABLE_GC_CHECKING 1
7390 if test x
$ac_gc_always_collect != x
; then
7392 cat >>confdefs.h
<<\_ACEOF
7393 #define ENABLE_GC_ALWAYS_COLLECT 1
7397 if test x
$ac_fold_checking != x
; then
7399 cat >>confdefs.h
<<\_ACEOF
7400 #define ENABLE_FOLD_CHECKING 1
7404 valgrind_path_defines
=
7407 if test "${ac_cv_header_valgrind_h+set}" = set; then
7408 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7409 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7410 if test "${ac_cv_header_valgrind_h+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7414 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7416 # Is the header compilable?
7417 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7418 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7419 cat >conftest.
$ac_ext <<_ACEOF
7422 cat confdefs.h
>>conftest.
$ac_ext
7423 cat >>conftest.
$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 #include <valgrind.h>
7428 rm -f conftest.
$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>conftest.er1
7432 grep -v '^ *+' conftest.er1
>conftest.err
7434 cat conftest.err
>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try
='test -z "$ac_c_werror_flag"
7438 || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try
='test -s conftest.$ac_objext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_header_compiler
=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.
$ac_ext >&5
7455 ac_header_compiler
=no
7457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7459 echo "${ECHO_T}$ac_header_compiler" >&6
7461 # Is the header present?
7462 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7463 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7464 cat >conftest.
$ac_ext <<_ACEOF
7467 cat confdefs.h
>>conftest.
$ac_ext
7468 cat >>conftest.
$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <valgrind.h>
7472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7475 grep -v '^ *+' conftest.er1
>conftest.err
7477 cat conftest.err
>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } >/dev
/null
; then
7480 if test -s conftest.err
; then
7481 ac_cpp_err
=$ac_c_preproc_warn_flag
7482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7489 if test -z "$ac_cpp_err"; then
7490 ac_header_preproc
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7495 ac_header_preproc
=no
7497 rm -f conftest.err conftest.
$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7499 echo "${ECHO_T}$ac_header_preproc" >&6
7501 # So? What about this header?
7502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7504 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7505 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7507 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7508 ac_header_preproc
=yes
7511 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7512 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7513 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7514 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7515 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7516 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7517 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7518 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7520 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7521 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7522 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7525 ## ------------------------------------------ ##
7526 ## Report this to the AC_PACKAGE_NAME lists. ##
7527 ## ------------------------------------------ ##
7530 sed "s/^/$as_me: WARNING: /" >&2
7533 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7534 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7535 if test "${ac_cv_header_valgrind_h+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_cv_header_valgrind_h
=$ac_header_preproc
7540 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7541 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7544 if test $ac_cv_header_valgrind_h = yes; then
7552 if test x
$ac_valgrind_checking != x
; then
7553 # It is certainly possible that there's valgrind but no valgrind.h.
7554 # GCC relies on making annotations so we must have both.
7555 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7556 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7557 cat >conftest.
$ac_ext <<_ACEOF
7560 cat confdefs.h
>>conftest.
$ac_ext
7561 cat >>conftest.
$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <valgrind/memcheck.h>
7564 #ifndef VALGRIND_DISCARD
7565 #error VALGRIND_DISCARD not defined
7568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7569 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7571 grep -v '^ *+' conftest.er1
>conftest.err
7573 cat conftest.err
>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } >/dev
/null
; then
7576 if test -s conftest.err
; then
7577 ac_cpp_err
=$ac_c_preproc_warn_flag
7578 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7585 if test -z "$ac_cpp_err"; then
7586 gcc_cv_header_valgrind_memcheck_h
=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7591 gcc_cv_header_valgrind_memcheck_h
=no
7593 rm -f conftest.err conftest.
$ac_ext
7594 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7595 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7596 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7597 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7598 cat >conftest.
$ac_ext <<_ACEOF
7601 cat confdefs.h
>>conftest.
$ac_ext
7602 cat >>conftest.
$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <memcheck.h>
7605 #ifndef VALGRIND_DISCARD
7606 #error VALGRIND_DISCARD not defined
7609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7612 grep -v '^ *+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev
/null
; then
7617 if test -s conftest.err
; then
7618 ac_cpp_err
=$ac_c_preproc_warn_flag
7619 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7626 if test -z "$ac_cpp_err"; then
7627 gcc_cv_header_memcheck_h
=yes
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.
$ac_ext >&5
7632 gcc_cv_header_memcheck_h
=no
7634 rm -f conftest.err conftest.
$ac_ext
7635 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7636 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7638 # Prepare PATH_SEPARATOR.
7639 # The user is always right.
7640 if test "${PATH_SEPARATOR+set}" != set; then
7641 echo "#! /bin/sh" >conf$$.sh
7642 echo "exit 0" >>conf$$.sh
7644 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7652 # Find out how to test for executable files. Don't use a zero-byte file,
7653 # as systems may use methods other than mode bits to determine executability.
7654 cat >conf$$.
file <<_ASEOF
7658 chmod +x conf$$.
file
7659 if test -x conf$$.
file >/dev
/null
2>&1; then
7660 ac_executable_p
="test -x"
7662 ac_executable_p
="test -f"
7666 # Extract the first word of "valgrind", so it can be a program name with args.
7667 set dummy valgrind
; ac_word
=$2
7668 echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7670 if test "${ac_cv_path_valgrind_path+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 case "$valgrind_path" in
7675 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7678 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7679 for ac_dir
in $PATH; do
7681 test -z "$ac_dir" && ac_dir
=.
7682 for ac_exec_ext
in '' $ac_executable_extensions; do
7683 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7684 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7685 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7695 valgrind_path
="$ac_cv_path_valgrind_path"
7696 if test -n "$valgrind_path"; then
7697 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7698 echo "${ECHO_T}$valgrind_path" >&6
7700 echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6
7704 if test "x$valgrind_path" = "x" \
7705 ||
(test $have_valgrind_h = no \
7706 && test $gcc_cv_header_memcheck_h = no \
7707 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7708 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7709 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7710 { (exit 1); exit 1; }; }
7712 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7713 valgrind_command
="$valgrind_path -q"
7715 cat >>confdefs.h
<<\_ACEOF
7716 #define ENABLE_VALGRIND_CHECKING 1
7719 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7721 cat >>confdefs.h
<<\_ACEOF
7722 #define HAVE_VALGRIND_MEMCHECK_H 1
7726 if test $gcc_cv_header_memcheck_h = yes; then
7728 cat >>confdefs.h
<<\_ACEOF
7729 #define HAVE_MEMCHECK_H 1
7737 # Enable code coverage collection
7738 # Check whether --enable-coverage or --disable-coverage was given.
7739 if test "${enable_coverage+set}" = set; then
7740 enableval
="$enable_coverage"
7741 case "${enableval}" in
7743 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7746 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7749 # a.k.a. --disable-coverage
7753 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7754 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7755 { (exit 1); exit 1; }; }
7763 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7764 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7765 enableval
="$enable_gather_detailed_mem_stats"
7768 enable_gather_detailed_mem_stats
=no
7770 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7772 cat >>confdefs.h
<<\_ACEOF
7773 #define GATHER_STATISTICS 1
7778 # -------------------------------
7779 # Miscenalleous configure options
7780 # -------------------------------
7784 # Check whether --with-stabs or --without-stabs was given.
7785 if test "${with_stabs+set}" = set; then
7786 withval
="$with_stabs"
7792 # Determine whether or not multilibs are enabled.
7793 # Check whether --enable-multilib or --disable-multilib was given.
7794 if test "${enable_multilib+set}" = set; then
7795 enableval
="$enable_multilib"
7802 # Enable __cxa_atexit for C++.
7803 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7804 if test "${enable___cxa_atexit+set}" = set; then
7805 enableval
="$enable___cxa_atexit"
7809 # Enable C extension for decimal float if target supports it.
7810 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7811 if test "${enable_decimal_float+set}" = set; then
7812 enableval
="$enable_decimal_float"
7814 case $enable_decimal_float in
7815 yes | no | bid | dpd
) ;;
7816 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7817 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7818 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7819 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7820 { (exit 1); exit 1; }; } ;;
7826 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7827 enable_decimal_float
=yes
7830 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7831 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7832 enable_decimal_float
=no
7838 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7840 cat >>confdefs.h
<<_ACEOF
7841 #define ENABLE_DECIMAL_FLOAT $dfp
7845 # x86's use BID format instead of DPD
7846 case x
$enable_decimal_float in
7849 i?
86*-*-linux* | x86_64
*-*-linux*)
7850 enable_decimal_float
=bid
7853 enable_decimal_float
=dpd
7858 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7859 # dependency on libdecnumber.
7860 enable_decimal_float
=dpd
7865 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7867 cat >>confdefs.h
<<_ACEOF
7868 #define ENABLE_DECIMAL_BID_FORMAT $bid
7872 # Enable C extension for fixed-point arithmetic.
7873 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7874 if test "${enable_fixed_point+set}" = set; then
7875 enableval
="$enable_fixed_point"
7884 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7885 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7886 enable_fixed_point
=no
7889 enable_fixed_point
=yes
7894 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7895 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7896 enable_fixed_point
=no
7903 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7905 cat >>confdefs.h
<<_ACEOF
7906 #define ENABLE_FIXED_POINT $fixedpoint
7911 # Pass with no value to take the default
7912 # Pass with a value to specify a thread package
7913 # Check whether --enable-threads or --disable-threads was given.
7914 if test "${enable_threads+set}" = set; then
7915 enableval
="$enable_threads"
7921 # Check whether --enable-tls or --disable-tls was given.
7922 if test "${enable_tls+set}" = set; then
7923 enableval
="$enable_tls"
7927 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7928 Valid choices are 'yes' and 'no'." >&5
7929 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7930 Valid choices are 'yes' and 'no'." >&2;}
7931 { (exit 1); exit 1; }; } ;;
7938 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7939 if test "${enable_objc_gc+set}" = set; then
7940 enableval
="$enable_objc_gc"
7941 if test x
$enable_objc_gc = xno
; then
7951 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7952 if test "${with_dwarf2+set}" = set; then
7953 withval
="$with_dwarf2"
7954 dwarf2
="$with_dwarf2"
7959 # Check whether --enable-shared or --disable-shared was given.
7960 if test "${enable_shared+set}" = set; then
7961 enableval
="$enable_shared"
7963 case $enable_shared in
7967 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7968 for pkg
in $enableval; do
7969 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7983 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7984 if test "${with_build_sysroot+set}" = set; then
7985 withval
="$with_build_sysroot"
7990 # Check whether --with-sysroot or --without-sysroot was given.
7991 if test "${with_sysroot+set}" = set; then
7992 withval
="$with_sysroot"
7994 case ${with_sysroot} in
7995 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7996 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7999 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8000 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8002 if test "x$prefix" = xNONE
; then
8003 test_prefix
=/usr
/local
8007 if test "x$exec_prefix" = xNONE
; then
8008 test_exec_prefix
=$test_prefix
8010 test_exec_prefix
=$exec_prefix
8012 case ${TARGET_SYSTEM_ROOT} in
8013 "${test_prefix}"|
"${test_prefix}/"*|\
8014 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8015 '${prefix}'|
'${prefix}/'*|\
8016 '${exec_prefix}'|
'${exec_prefix}/'*)
8017 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8018 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8025 TARGET_SYSTEM_ROOT_DEFINE
=
8026 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8033 # Build with intermodule optimisations
8034 # Check whether --enable-intermodule or --disable-intermodule was given.
8035 if test "${enable_intermodule+set}" = set; then
8036 enableval
="$enable_intermodule"
8037 case ${enable_intermodule} in
8038 yes) onestep
="-onestep";;
8048 # Check whether --with-pkgversion or --without-pkgversion was given.
8049 if test "${with_pkgversion+set}" = set; then
8050 withval
="$with_pkgversion"
8052 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8053 echo "$as_me: error: package version not specified" >&2;}
8054 { (exit 1); exit 1; }; } ;;
8056 *) PKGVERSION
="($withval) " ;;
8066 # Check whether --with-bugurl or --without-bugurl was given.
8067 if test "${with_bugurl+set}" = set; then
8068 withval
="$with_bugurl"
8070 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8071 echo "$as_me: error: bug URL not specified" >&2;}
8072 { (exit 1); exit 1; }; } ;;
8075 *) BUGURL
="$withval"
8079 BUGURL
="http://gcc.gnu.org/bugs.html"
8088 REPORT_BUGS_TO
="<$BUGURL>"
8089 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8096 # Sanity check enable_languages in case someone does not run the toplevel
8097 # configure # script.
8098 # Check whether --enable-languages or --disable-languages was given.
8099 if test "${enable_languages+set}" = set; then
8100 enableval
="$enable_languages"
8101 case ,${enable_languages}, in
8103 # go safe -- we cannot be much sure without the toplevel
8105 # analysis of which target libs are present and usable
8109 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8110 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8111 { (exit 1); exit 1; }; }
8116 enable_languages
=c
,${enable_languages}
8123 # Used by documentation targets
8128 # -------------------------
8129 # Checks for other programs
8130 # -------------------------
8132 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8133 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8134 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8135 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.
make <<\_ACEOF
8140 @
echo 'ac_maketemp="$(MAKE)"'
8142 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8143 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8144 if test -n "$ac_maketemp"; then
8145 eval ac_cv_prog_make_
${ac_make}_set
=yes
8147 eval ac_cv_prog_make_
${ac_make}_set
=no
8151 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153 echo "${ECHO_T}yes" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8158 SET_MAKE
="MAKE=${MAKE-make}"
8162 # Find some useful tools
8163 for ac_prog
in gawk mawk nawk
awk
8165 # Extract the first word of "$ac_prog", so it can be a program name with args.
8166 set dummy
$ac_prog; ac_word
=$2
8167 echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8169 if test "${ac_cv_prog_AWK+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 if test -n "$AWK"; then
8173 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir
=.
8180 for ac_exec_ext
in '' $ac_executable_extensions; do
8181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_AWK
="$ac_prog"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 if test -n "$AWK"; then
8193 echo "$as_me:$LINENO: result: $AWK" >&5
8194 echo "${ECHO_T}$AWK" >&6
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8200 test -n "$AWK" && break
8203 # We need awk to create options.c and options.h.
8204 # Bail out if it's missing.
8206 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8207 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8208 { (exit 1); exit 1; }; } ;;
8211 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8212 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8213 if test "${gcc_cv_prog_LN_S+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 rm -f conftestdata_t
8217 echo >conftestdata_f
8218 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8220 gcc_cv_prog_LN_S
="ln -s"
8222 if ln conftestdata_f conftestdata_t
2>/dev
/null
8226 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8228 gcc_cv_prog_LN_S
="cp -p"
8234 rm -f conftestdata_f conftestdata_t
8237 LN_S
="$gcc_cv_prog_LN_S"
8238 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8242 if test "$gcc_cv_prog_LN_S" = "ln"; then
8243 echo "$as_me:$LINENO: result: no, using ln" >&5
8244 echo "${ECHO_T}no, using ln" >&6
8246 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8247 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8251 echo "$as_me:$LINENO: checking whether ln works" >&5
8252 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8253 if test "${acx_cv_prog_LN+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 rm -f conftestdata_t
8257 echo >conftestdata_f
8258 if ln conftestdata_f conftestdata_t
2>/dev
/null
8264 rm -f conftestdata_f conftestdata_t
8267 if test $acx_cv_prog_LN = no
; then
8269 echo "$as_me:$LINENO: result: no, using $LN" >&5
8270 echo "${ECHO_T}no, using $LN" >&6
8272 LN
="$acx_cv_prog_LN"
8273 echo "$as_me:$LINENO: result: yes" >&5
8274 echo "${ECHO_T}yes" >&6
8277 if test -n "$ac_tool_prefix"; then
8278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8279 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8280 echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8282 if test "${ac_cv_prog_RANLIB+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 if test -n "$RANLIB"; then
8286 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8292 test -z "$as_dir" && as_dir
=.
8293 for ac_exec_ext
in '' $ac_executable_extensions; do
8294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8295 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 RANLIB
=$ac_cv_prog_RANLIB
8305 if test -n "$RANLIB"; then
8306 echo "$as_me:$LINENO: result: $RANLIB" >&5
8307 echo "${ECHO_T}$RANLIB" >&6
8309 echo "$as_me:$LINENO: result: no" >&5
8310 echo "${ECHO_T}no" >&6
8314 if test -z "$ac_cv_prog_RANLIB"; then
8315 ac_ct_RANLIB
=$RANLIB
8316 # Extract the first word of "ranlib", so it can be a program name with args.
8317 set dummy ranlib
; ac_word
=$2
8318 echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 if test -n "$ac_ct_RANLIB"; then
8324 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir
=.
8331 for ac_exec_ext
in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8343 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8344 if test -n "$ac_ct_RANLIB"; then
8345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8352 RANLIB
=$ac_ct_RANLIB
8354 RANLIB
="$ac_cv_prog_RANLIB"
8359 # By default, the Darwin ranlib will not treat common symbols as
8360 # definitions when building the archive table of contents. Other
8361 # ranlibs do that; pass an option to the Darwin ranlib that makes
8362 # it behave similarly.
8370 # Find a good install program. We prefer a C program (faster),
8371 # so one script is as good as another. But avoid the broken or
8372 # incompatible versions:
8373 # SysV /etc/install, /usr/sbin/install
8374 # SunOS /usr/etc/install
8375 # IRIX /sbin/install
8377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8379 # ./install, which can be erroneously created by make from ./install.sh.
8380 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8381 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8382 if test -z "$INSTALL"; then
8383 if test "${ac_cv_path_install+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8387 for ac_dir
in $PATH; do
8388 # Account for people who put trailing slashes in PATH elements.
8390 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8392 # OSF1 and SCO ODT 3.0 have their own names for install.
8393 for ac_prog
in ginstall scoinst
install; do
8394 if test -f $ac_dir/$ac_prog; then
8395 if test $ac_prog = install &&
8396 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8397 # AIX install. It has an incompatible calling convention.
8398 # OSF/1 installbsd also uses dspmsg, but is usable.
8401 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8412 if test "${ac_cv_path_install+set}" = set; then
8413 INSTALL
="$ac_cv_path_install"
8415 # As a last resort, use the slow shell script. We don't cache a
8416 # path for INSTALL within a source directory, because that will
8417 # break other packages using the cache if that directory is
8418 # removed, or if the path is relative.
8419 INSTALL
="$ac_install_sh"
8422 echo "$as_me:$LINENO: result: $INSTALL" >&5
8423 echo "${ECHO_T}$INSTALL" >&6
8425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8426 # It thinks the first close brace ends the variable substitution.
8427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8429 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8432 # See if cmp has --ignore-initial.
8433 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8434 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8435 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 gcc_cv_prog_cmp_skip
=slowcompare
8441 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8442 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8445 gcc_cv_prog_cmp_skip
=gnucompare
8448 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8449 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8450 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8453 gcc_cv_prog_cmp_skip
=fastcompare
8460 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8461 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8462 make_compare_target
=$gcc_cv_prog_cmp_skip
8466 # See if we have the mktemp command.
8467 # Extract the first word of "mktemp", so it can be a program name with args.
8468 set dummy mktemp
; ac_word
=$2
8469 echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 if test -n "$have_mktemp_command"; then
8475 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8481 test -z "$as_dir" && as_dir
=.
8482 for ac_exec_ext
in '' $ac_executable_extensions; do
8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_have_mktemp_command
="yes"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8494 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8495 if test -n "$have_mktemp_command"; then
8496 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8497 echo "${ECHO_T}$have_mktemp_command" >&6
8499 echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8504 # See if makeinfo has been installed and is modern enough
8505 # that we can use it.
8507 # Extract the first word of "makeinfo", so it can be a program name with args.
8508 set dummy makeinfo
; ac_word
=$2
8509 echo "$as_me:$LINENO: checking for $ac_word" >&5
8510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8511 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 if test -n "$MAKEINFO"; then
8515 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir
=.
8522 for ac_exec_ext
in '' $ac_executable_extensions; do
8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_MAKEINFO
="makeinfo"
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 MAKEINFO
=$ac_cv_prog_MAKEINFO
8534 if test -n "$MAKEINFO"; then
8535 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8536 echo "${ECHO_T}$MAKEINFO" >&6
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8542 if test -n "$MAKEINFO"; then
8543 # Found it, now check the version.
8544 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8545 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8546 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8550 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8552 case $ac_prog_version in
8553 '') gcc_cv_prog_makeinfo_modern
=no
;;
8554 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8555 *) gcc_cv_prog_makeinfo_modern
=no
;;
8559 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8560 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8562 gcc_cv_prog_makeinfo_modern
=no
8564 if test $gcc_cv_prog_makeinfo_modern = no
; then
8565 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8568 if test $gcc_cv_prog_makeinfo_modern = no
; then
8569 { echo "$as_me:$LINENO: WARNING:
8570 *** Makeinfo is missing or too old.
8571 *** Info documentation will not be built." >&5
8572 echo "$as_me: WARNING:
8573 *** Makeinfo is missing or too old.
8574 *** Info documentation will not be built." >&2;}
8581 # Is pod2man recent enough to regenerate manpages?
8582 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8583 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8584 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8585 echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6
8587 GENERATED_MANPAGES
=generated-manpages
8589 echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8595 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy
$ac_prog; ac_word
=$2
8602 echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8604 if test "${ac_cv_prog_FLEX+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 if test -n "$FLEX"; then
8608 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8614 test -z "$as_dir" && as_dir
=.
8615 for ac_exec_ext
in '' $ac_executable_extensions; do
8616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_FLEX
="$ac_prog"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 FLEX
=$ac_cv_prog_FLEX
8627 if test -n "$FLEX"; then
8628 echo "$as_me:$LINENO: result: $FLEX" >&5
8629 echo "${ECHO_T}$FLEX" >&6
8631 echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6
8635 test -n "$FLEX" && break
8637 test -n "$FLEX" || FLEX
="$MISSING flex"
8641 for ac_prog
in bison
8643 # Extract the first word of "$ac_prog", so it can be a program name with args.
8644 set dummy
$ac_prog; ac_word
=$2
8645 echo "$as_me:$LINENO: checking for $ac_word" >&5
8646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8647 if test "${ac_cv_prog_BISON+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 if test -n "$BISON"; then
8651 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8657 test -z "$as_dir" && as_dir
=.
8658 for ac_exec_ext
in '' $ac_executable_extensions; do
8659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_BISON
="$ac_prog"
8661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 BISON
=$ac_cv_prog_BISON
8670 if test -n "$BISON"; then
8671 echo "$as_me:$LINENO: result: $BISON" >&5
8672 echo "${ECHO_T}$BISON" >&6
8674 echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8678 test -n "$BISON" && break
8680 test -n "$BISON" || BISON
="$MISSING bison"
8683 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8684 # check for build == host before using them.
8687 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8688 && test -d ..
/binutils
; then
8689 NM
='$(objdir)/../binutils/nm-new'
8691 # Extract the first word of "nm", so it can be a program name with args.
8692 set dummy nm
; ac_word
=$2
8693 echo "$as_me:$LINENO: checking for $ac_word" >&5
8694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8695 if test "${ac_cv_prog_NM+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM
="$NM" # Let the user override the test.
8701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir
=.
8706 for ac_exec_ext
in '' $ac_executable_extensions; do
8707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8719 if test -n "$NM"; then
8720 echo "$as_me:$LINENO: result: $NM" >&5
8721 echo "${ECHO_T}$NM" >&6
8723 echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6
8730 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8731 && test -d ..
/binutils
; then
8732 AR
='$(objdir)/../binutils/ar'
8734 # Extract the first word of "ar", so it can be a program name with args.
8735 set dummy
ar; ac_word
=$2
8736 echo "$as_me:$LINENO: checking for $ac_word" >&5
8737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8738 if test "${ac_cv_prog_AR+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 if test -n "$AR"; then
8742 ac_cv_prog_AR
="$AR" # Let the user override the test.
8744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8748 test -z "$as_dir" && as_dir
=.
8749 for ac_exec_ext
in '' $ac_executable_extensions; do
8750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8762 if test -n "$AR"; then
8763 echo "$as_me:$LINENO: result: $AR" >&5
8764 echo "${ECHO_T}$AR" >&6
8766 echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6
8773 # --------------------
8774 # Checks for C headers
8775 # --------------------
8777 # Need to reject headers which give warnings, so that the -Werror bootstrap
8778 # works later. *sigh* This needs to come before all header checks.
8780 ac_c_preproc_warn_flag
=yes
8782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8784 if test "${ac_cv_header_stdc+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 cat >conftest.
$ac_ext <<_ACEOF
8790 cat confdefs.h
>>conftest.
$ac_ext
8791 cat >>conftest.
$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8806 rm -f conftest.
$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8810 grep -v '^ *+' conftest.er1
>conftest.err
8812 cat conftest.err
>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try
='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try
='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_cv_header_stdc
=yes
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.
$ac_ext >&5
8833 ac_cv_header_stdc
=no
8835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 if test $ac_cv_header_stdc = yes; then
8838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8839 cat >conftest.
$ac_ext <<_ACEOF
8842 cat confdefs.h
>>conftest.
$ac_ext
8843 cat >>conftest.
$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8849 $EGREP "memchr" >/dev
/null
2>&1; then
8852 ac_cv_header_stdc
=no
8858 if test $ac_cv_header_stdc = yes; then
8859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8860 cat >conftest.
$ac_ext <<_ACEOF
8863 cat confdefs.h
>>conftest.
$ac_ext
8864 cat >>conftest.
$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870 $EGREP "free" >/dev
/null
2>&1; then
8873 ac_cv_header_stdc
=no
8879 if test $ac_cv_header_stdc = yes; then
8880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8881 if test "$cross_compiling" = yes; then
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 #if ((' ' & 0x0FF) == 0x020)
8892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8895 # define ISLOWER(c) \
8896 (('a' <= (c) && (c) <= 'i') \
8897 || ('j' <= (c) && (c) <= 'r') \
8898 || ('s' <= (c) && (c) <= 'z'))
8899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8907 for (i = 0; i < 256; i++)
8908 if (XOR (islower (i), ISLOWER (i))
8909 || toupper (i) != TOUPPER (i))
8914 rm -f conftest
$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; }; then
8927 echo "$as_me: program exited with status $ac_status" >&5
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8932 ac_cv_header_stdc
=no
8934 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8939 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8940 if test $ac_cv_header_stdc = yes; then
8942 cat >>confdefs.h
<<\_ACEOF
8943 #define STDC_HEADERS 1
8948 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8949 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8950 if test "${ac_cv_header_time+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <sys/types.h>
8960 #include <sys/time.h>
8966 if ((struct tm *) 0)
8972 rm -f conftest.
$ac_objext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8976 grep -v '^ *+' conftest.er1
>conftest.err
8978 cat conftest.err
>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try
='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try
='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_header_time
=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.
$ac_ext >&5
8999 ac_cv_header_time
=no
9001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9004 echo "${ECHO_T}$ac_cv_header_time" >&6
9005 if test $ac_cv_header_time = yes; then
9007 cat >>confdefs.h
<<\_ACEOF
9008 #define TIME_WITH_SYS_TIME 1
9013 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9014 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9015 if test "${gcc_cv_header_string+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.
$ac_ext <<_ACEOF
9021 cat confdefs.h
>>conftest.
$ac_ext
9022 cat >>conftest.
$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9025 #include <strings.h>
9034 rm -f conftest.
$ac_objext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>conftest.er1
9038 grep -v '^ *+' conftest.er1
>conftest.err
9040 cat conftest.err
>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try
='test -z "$ac_c_werror_flag"
9044 || test ! -s conftest.err'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; } &&
9050 { ac_try
='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 gcc_cv_header_string
=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.
$ac_ext >&5
9061 gcc_cv_header_string
=no
9063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9065 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9066 echo "${ECHO_T}$gcc_cv_header_string" >&6
9067 if test $gcc_cv_header_string = yes; then
9069 cat >>confdefs.h
<<\_ACEOF
9070 #define STRING_WITH_STRINGS 1
9075 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9076 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9077 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.
$ac_ext <<_ACEOF
9083 cat confdefs.h
>>conftest.
$ac_ext
9084 cat >>conftest.
$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <sys/types.h>
9087 #include <sys/wait.h>
9089 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9092 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9100 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9105 rm -f conftest.
$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1
>conftest.err
9111 cat conftest.err
>&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try
='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try
='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_header_sys_wait_h
=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.
$ac_ext >&5
9132 ac_cv_header_sys_wait_h
=no
9134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9137 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9138 if test $ac_cv_header_sys_wait_h = yes; then
9140 cat >>confdefs.h
<<\_ACEOF
9141 #define HAVE_SYS_WAIT_H 1
9168 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9169 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9170 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9171 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9173 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9174 echo "$as_me:$LINENO: checking for $ac_header" >&5
9175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 cat >conftest.
$ac_ext <<_ACEOF
9182 cat confdefs.h
>>conftest.
$ac_ext
9183 cat >>conftest.
$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <$ac_header>
9187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9188 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9190 grep -v '^ *+' conftest.er1
>conftest.err
9192 cat conftest.err
>&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } >/dev
/null
; then
9195 if test -s conftest.err
; then
9196 ac_cpp_err
=$ac_c_preproc_warn_flag
9197 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9204 if test -z "$ac_cpp_err"; then
9205 eval "$as_ac_Header=yes"
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.
$ac_ext >&5
9210 eval "$as_ac_Header=no"
9212 rm -f conftest.err conftest.
$ac_ext
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217 cat >>confdefs.h
<<_ACEOF
9218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9225 # Check for thread headers.
9226 echo "$as_me:$LINENO: checking for thread.h" >&5
9227 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9228 if test "${ac_cv_header_thread_h+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 cat confdefs.h
>>conftest.
$ac_ext
9235 cat >>conftest.
$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9240 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9242 grep -v '^ *+' conftest.er1
>conftest.err
9244 cat conftest.err
>&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } >/dev
/null
; then
9247 if test -s conftest.err
; then
9248 ac_cpp_err
=$ac_c_preproc_warn_flag
9249 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9256 if test -z "$ac_cpp_err"; then
9257 ac_cv_header_thread_h
=yes
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.
$ac_ext >&5
9262 ac_cv_header_thread_h
=no
9264 rm -f conftest.err conftest.
$ac_ext
9266 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9267 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9268 if test $ac_cv_header_thread_h = yes; then
9274 echo "$as_me:$LINENO: checking for pthread.h" >&5
9275 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9276 if test "${ac_cv_header_pthread_h+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 cat >conftest.
$ac_ext <<_ACEOF
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <pthread.h>
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev
/null
; then
9295 if test -s conftest.err
; then
9296 ac_cpp_err
=$ac_c_preproc_warn_flag
9297 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9304 if test -z "$ac_cpp_err"; then
9305 ac_cv_header_pthread_h
=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.
$ac_ext >&5
9310 ac_cv_header_pthread_h
=no
9312 rm -f conftest.err conftest.
$ac_ext
9314 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9316 if test $ac_cv_header_pthread_h = yes; then
9323 # These tests can't be done till we know if we have limits.h.
9324 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9325 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9326 if test "${gcc_cv_decl_char_bit+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.
$ac_ext <<_ACEOF
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #ifdef HAVE_LIMITS_H
9342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9343 $EGREP "found" >/dev
/null
2>&1; then
9344 gcc_cv_decl_char_bit
=yes
9346 gcc_cv_decl_char_bit
=no
9352 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9353 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9354 if test $gcc_cv_decl_char_bit = no
; then
9355 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9356 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9357 if test "${gcc_cv_c_nbby+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 while test $i -lt 65; do
9363 cat >conftest.
$ac_ext <<_ACEOF
9366 cat confdefs.h
>>conftest.
$ac_ext
9367 cat >>conftest.
$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9374 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9375 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9381 rm -f conftest.
$ac_objext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9383 (eval $ac_compile) 2>conftest.er1
9385 grep -v '^ *+' conftest.er1
>conftest.err
9387 cat conftest.err
>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try
='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try
='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 gcc_cv_c_nbby
=$i; break
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.
$ac_ext >&5
9409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9415 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9416 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9417 if test $gcc_cv_c_nbby = failed
; then
9418 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9419 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9420 { (exit 1); exit 1; }; }
9423 cat >>confdefs.h
<<_ACEOF
9424 #define CHAR_BIT $gcc_cv_c_nbby
9429 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9430 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9431 if test "${ac_cv_c_bigendian+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 # See if sys/param.h defines the BYTE_ORDER macro.
9435 cat >conftest.
$ac_ext <<_ACEOF
9438 cat confdefs.h
>>conftest.
$ac_ext
9439 cat >>conftest.
$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 #include <sys/types.h>
9442 #include <sys/param.h>
9447 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9455 rm -f conftest.
$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1
>conftest.err
9461 cat conftest.err
>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try
='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try
='test -s conftest.$ac_objext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 # It does; now see whether it defined to BIG_ENDIAN or not.
9478 cat >conftest.
$ac_ext <<_ACEOF
9481 cat confdefs.h
>>conftest.
$ac_ext
9482 cat >>conftest.
$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 #include <sys/types.h>
9485 #include <sys/param.h>
9490 #if BYTE_ORDER != BIG_ENDIAN
9498 rm -f conftest.
$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500 (eval $ac_compile) 2>conftest.er1
9502 grep -v '^ *+' conftest.er1
>conftest.err
9504 cat conftest.err
>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try
='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try
='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_c_bigendian
=yes
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.
$ac_ext >&5
9525 ac_cv_c_bigendian
=no
9527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.
$ac_ext >&5
9532 # It does not; compile a test program.
9533 if test "$cross_compiling" = yes; then
9534 # try to guess the endianness by grepping values into an object file
9535 ac_cv_c_bigendian
=unknown
9536 cat >conftest.
$ac_ext <<_ACEOF
9539 cat confdefs.h
>>conftest.
$ac_ext
9540 cat >>conftest.
$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9543 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9544 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9545 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9546 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9547 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9551 _ascii (); _ebcdic ();
9556 rm -f conftest.
$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1
>conftest.err
9562 cat conftest.err
>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try
='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try
='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9579 ac_cv_c_bigendian
=yes
9581 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9582 if test "$ac_cv_c_bigendian" = unknown
; then
9583 ac_cv_c_bigendian
=no
9585 # finding both strings is unlikely to happen, but who knows?
9586 ac_cv_c_bigendian
=unknown
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9596 cat >conftest.
$ac_ext <<_ACEOF
9599 cat confdefs.h
>>conftest.
$ac_ext
9600 cat >>conftest.
$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9605 /* Are we little or big endian? From Harbison&Steele. */
9609 char c[sizeof (long)];
9612 exit (u.c[sizeof (long) - 1] == 1);
9615 rm -f conftest
$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_c_bigendian
=no
9628 echo "$as_me: program exited with status $ac_status" >&5
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.
$ac_ext >&5
9633 ac_cv_c_bigendian
=yes
9635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9640 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9641 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9642 case $ac_cv_c_bigendian in
9645 cat >>confdefs.h
<<\_ACEOF
9646 #define WORDS_BIGENDIAN 1
9652 { { echo "$as_me:$LINENO: error: unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9654 echo "$as_me: error: unknown endianness
9655 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9656 { (exit 1); exit 1; }; } ;;
9665 # These libraries may be used by collect2.
9666 # We may need a special search path to get them linked.
9667 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9668 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9669 if test "${gcc_cv_collect2_libs+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 for libs
in '' -lld -lmld \
9674 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9675 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9678 cat >conftest.
$ac_ext <<_ACEOF
9681 cat confdefs.h
>>conftest.
$ac_ext
9682 cat >>conftest.
$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9685 /* Override any gcc2 internal prototype to avoid an error. */
9689 /* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9700 rm -f conftest.
$ac_objext conftest
$ac_exeext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702 (eval $ac_link) 2>conftest.er1
9704 grep -v '^ *+' conftest.er1
>conftest.err
9706 cat conftest.err
>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try
='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try
='test -s conftest$ac_exeext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 gcc_cv_collect2_libs
="$libs"; break
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.
$ac_ext >&5
9728 rm -f conftest.err conftest.
$ac_objext \
9729 conftest
$ac_exeext conftest.
$ac_ext
9732 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9734 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9735 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9736 case $gcc_cv_collect2_libs in
9738 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9742 # When building Ada code on Alpha, we need exc_resume which is usually in
9743 # -lexc. So test for it.
9746 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9747 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9748 if test "${ac_cv_search_exc_resume+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_func_search_save_LIBS
=$LIBS
9752 ac_cv_search_exc_resume
=no
9753 cat >conftest.
$ac_ext <<_ACEOF
9756 cat confdefs.h
>>conftest.
$ac_ext
9757 cat >>conftest.
$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9760 /* Override any gcc2 internal prototype to avoid an error. */
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9775 rm -f conftest.
$ac_objext conftest
$ac_exeext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9777 (eval $ac_link) 2>conftest.er1
9779 grep -v '^ *+' conftest.er1
>conftest.err
9781 cat conftest.err
>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try
='test -z "$ac_c_werror_flag"
9785 || test ! -s conftest.err'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; } &&
9791 { ac_try
='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_cv_search_exc_resume
="none required"
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.
$ac_ext >&5
9803 rm -f conftest.err conftest.
$ac_objext \
9804 conftest
$ac_exeext conftest.
$ac_ext
9805 if test "$ac_cv_search_exc_resume" = no
; then
9806 for ac_lib
in exc
; do
9807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9808 cat >conftest.
$ac_ext <<_ACEOF
9811 cat confdefs.h
>>conftest.
$ac_ext
9812 cat >>conftest.
$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9815 /* Override any gcc2 internal prototype to avoid an error. */
9819 /* We use char because int might match the return type of a gcc2
9820 builtin and then its argument prototype would still apply. */
9830 rm -f conftest.
$ac_objext conftest
$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1
>conftest.err
9836 cat conftest.err
>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try
='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try
='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_search_exc_resume
="-l$ac_lib"
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.
$ac_ext >&5
9859 rm -f conftest.err conftest.
$ac_objext \
9860 conftest
$ac_exeext conftest.
$ac_ext
9863 LIBS
=$ac_func_search_save_LIBS
9865 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9866 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9867 if test "$ac_cv_search_exc_resume" != no
; then
9868 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9876 # Some systems put ldexp and frexp in libm instead of libc; assume
9877 # they're both in the same place. jcf-dump needs them.
9880 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9881 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9882 if test "${ac_cv_search_ldexp+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_func_search_save_LIBS
=$LIBS
9886 ac_cv_search_ldexp
=no
9887 cat >conftest.
$ac_ext <<_ACEOF
9890 cat confdefs.h
>>conftest.
$ac_ext
9891 cat >>conftest.
$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9894 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9909 rm -f conftest.
$ac_objext conftest
$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>conftest.er1
9913 grep -v '^ *+' conftest.er1
>conftest.err
9915 cat conftest.err
>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try
='test -z "$ac_c_werror_flag"
9919 || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try
='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_ldexp
="none required"
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.
$ac_ext >&5
9937 rm -f conftest.err conftest.
$ac_objext \
9938 conftest
$ac_exeext conftest.
$ac_ext
9939 if test "$ac_cv_search_ldexp" = no
; then
9941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9942 cat >conftest.
$ac_ext <<_ACEOF
9945 cat confdefs.h
>>conftest.
$ac_ext
9946 cat >>conftest.
$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9964 rm -f conftest.
$ac_objext conftest
$ac_exeext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966 (eval $ac_link) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1
>conftest.err
9970 cat conftest.err
>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try
='test -s conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_search_ldexp
="-l$ac_lib"
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.
$ac_ext >&5
9993 rm -f conftest.err conftest.
$ac_objext \
9994 conftest
$ac_exeext conftest.
$ac_ext
9997 LIBS
=$ac_func_search_save_LIBS
9999 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10000 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10001 if test "$ac_cv_search_ldexp" != no
; then
10002 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10010 # Use <inttypes.h> only if it exists,
10011 # doesn't clash with <sys/types.h>, and declares intmax_t.
10012 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10013 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10014 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.
$ac_ext <<_ACEOF
10020 cat confdefs.h
>>conftest.
$ac_ext
10021 cat >>conftest.
$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <sys/types.h>
10024 #include <inttypes.h>
10033 rm -f conftest.
$ac_objext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>conftest.er1
10037 grep -v '^ *+' conftest.er1
>conftest.err
10039 cat conftest.err
>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try
='test -z "$ac_c_werror_flag"
10043 || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try
='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 gcc_cv_header_inttypes_h
=yes
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 gcc_cv_header_inttypes_h
=no
10062 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10065 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10066 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10067 if test $gcc_cv_header_inttypes_h = yes; then
10069 cat >>confdefs.h
<<\_ACEOF
10070 #define HAVE_INTTYPES_H 1
10112 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10113 sysconf strsignal getrusage nl_langinfo scandir alphasort \
10114 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10115 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
10117 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10118 echo "$as_me:$LINENO: checking for $ac_func" >&5
10119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10120 if eval "test \"\${$as_ac_var+set}\" = set"; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 cat >conftest.
$ac_ext <<_ACEOF
10126 cat confdefs.h
>>conftest.
$ac_ext
10127 cat >>conftest.
$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10131 #define $ac_func innocuous_$ac_func
10133 /* System header to define __stub macros and hopefully few prototypes,
10134 which can conflict with char $ac_func (); below.
10135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10136 <limits.h> exists even on freestanding compilers. */
10139 # include <limits.h>
10141 # include <assert.h>
10146 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10154 /* The GNU C library defines this for functions which it implements
10155 to always fail with ENOSYS. Some functions are actually named
10156 something starting with __ and the normal name is an alias. */
10157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10160 char (*f) () = $ac_func;
10169 return f != $ac_func;
10174 rm -f conftest.
$ac_objext conftest
$ac_exeext
10175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>conftest.er1
10178 grep -v '^ *+' conftest.er1
>conftest.err
10180 cat conftest.err
>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try
='test -z "$ac_c_werror_flag"
10184 || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try
='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 eval "$as_ac_var=yes"
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.
$ac_ext >&5
10201 eval "$as_ac_var=no"
10203 rm -f conftest.err conftest.
$ac_objext \
10204 conftest
$ac_exeext conftest.
$ac_ext
10206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10208 if test `eval echo '${'$as_ac_var'}'` = yes; then
10209 cat >>confdefs.h
<<_ACEOF
10210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10217 if test x
$ac_cv_func_mbstowcs = xyes
; then
10218 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10219 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10220 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 if test "$cross_compiling" = yes; then
10224 gcc_cv_func_mbstowcs_works
=yes
10226 cat >conftest.
$ac_ext <<_ACEOF
10229 cat confdefs.h
>>conftest.
$ac_ext
10230 cat >>conftest.
$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 #include <stdlib.h>
10235 mbstowcs(0, "", 0);
10239 rm -f conftest
$ac_exeext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 gcc_cv_func_mbstowcs_works
=yes
10252 echo "$as_me: program exited with status $ac_status" >&5
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.
$ac_ext >&5
10256 ( exit $ac_status )
10257 gcc_cv_func_mbstowcs_works
=no
10259 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10262 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10263 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10264 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10266 cat >>confdefs.h
<<\_ACEOF
10267 #define HAVE_WORKING_MBSTOWCS 1
10273 echo "$as_me:$LINENO: checking for ssize_t" >&5
10274 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10275 if test "${ac_cv_type_ssize_t+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 cat >conftest.
$ac_ext <<_ACEOF
10281 cat confdefs.h
>>conftest.
$ac_ext
10282 cat >>conftest.
$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 $ac_includes_default
10290 if (sizeof (ssize_t))
10296 rm -f conftest.
$ac_objext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10298 (eval $ac_compile) 2>conftest.er1
10300 grep -v '^ *+' conftest.er1
>conftest.err
10302 cat conftest.err
>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try
='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try
='test -s conftest.$ac_objext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_type_ssize_t
=yes
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.
$ac_ext >&5
10323 ac_cv_type_ssize_t
=no
10325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10328 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10329 if test $ac_cv_type_ssize_t = yes; then
10333 cat >>confdefs.h
<<_ACEOF
10334 #define ssize_t int
10340 # Try to determine the array type of the second argument of getgroups
10341 # for the target system (int or gid_t).
10342 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10343 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10344 if test "${ac_cv_type_uid_t+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 cat >conftest.
$ac_ext <<_ACEOF
10350 cat confdefs.h
>>conftest.
$ac_ext
10351 cat >>conftest.
$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 #include <sys/types.h>
10356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10357 $EGREP "uid_t" >/dev
/null
2>&1; then
10358 ac_cv_type_uid_t
=yes
10360 ac_cv_type_uid_t
=no
10365 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10366 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10367 if test $ac_cv_type_uid_t = no
; then
10369 cat >>confdefs.h
<<\_ACEOF
10374 cat >>confdefs.h
<<\_ACEOF
10380 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10381 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10382 if test "${ac_cv_type_getgroups+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 if test "$cross_compiling" = yes; then
10386 ac_cv_type_getgroups
=cross
10388 cat >conftest.
$ac_ext <<_ACEOF
10391 cat confdefs.h
>>conftest.
$ac_ext
10392 cat >>conftest.
$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 /* Thanks to Mike Rendell for this test. */
10395 #include <sys/types.h>
10398 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10403 gid_t gidset[NGID];
10405 union { gid_t gval; long lval; } val;
10408 for (i = 0; i < NGID; i++)
10409 gidset[i] = val.gval;
10410 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10412 /* Exit non-zero if getgroups seems to require an array of ints. This
10413 happens when gid_t is short but getgroups modifies an array of ints. */
10414 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10417 rm -f conftest
$ac_exeext
10418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_type_getgroups
=gid_t
10430 echo "$as_me: program exited with status $ac_status" >&5
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.
$ac_ext >&5
10434 ( exit $ac_status )
10435 ac_cv_type_getgroups
=int
10437 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10439 if test $ac_cv_type_getgroups = cross
; then
10440 cat >conftest.
$ac_ext <<_ACEOF
10443 cat confdefs.h
>>conftest.
$ac_ext
10444 cat >>conftest.
$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 #include <unistd.h>
10449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10450 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10451 ac_cv_type_getgroups
=gid_t
10453 ac_cv_type_getgroups
=int
10459 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10460 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10462 cat >>confdefs.h
<<_ACEOF
10463 #define GETGROUPS_T $ac_cv_type_getgroups
10467 if test "${target}" = "${build}"; then
10468 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10470 case "${target}" in
10471 # This condition may need some tweaking. It should include all
10472 # targets where the array type of the second argument of getgroups
10473 # is int and the type of gid_t is not equivalent to int.
10474 *-*-sunos* |
*-*-ultrix*)
10475 TARGET_GETGROUPS_T
=int
10478 TARGET_GETGROUPS_T
=gid_t
10485 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10486 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10487 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 cat >conftest.
$ac_ext <<_ACEOF
10493 cat confdefs.h
>>conftest.
$ac_ext
10494 cat >>conftest.
$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 #include <sys/mman.h>
10498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10501 grep -v '^ *+' conftest.er1
>conftest.err
10503 cat conftest.err
>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } >/dev
/null
; then
10506 if test -s conftest.err
; then
10507 ac_cpp_err
=$ac_c_preproc_warn_flag
10508 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10515 if test -z "$ac_cpp_err"; then
10516 ac_cv_header_sys_mman_h
=yes
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.
$ac_ext >&5
10521 ac_cv_header_sys_mman_h
=no
10523 rm -f conftest.err conftest.
$ac_ext
10525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10526 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10527 if test $ac_cv_header_sys_mman_h = yes; then
10528 gcc_header_sys_mman_h
=yes
10530 gcc_header_sys_mman_h
=no
10533 echo "$as_me:$LINENO: checking for mmap" >&5
10534 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10535 if test "${ac_cv_func_mmap+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 cat >conftest.
$ac_ext <<_ACEOF
10541 cat confdefs.h
>>conftest.
$ac_ext
10542 cat >>conftest.
$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10546 #define mmap innocuous_mmap
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char mmap (); below.
10550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551 <limits.h> exists even on freestanding compilers. */
10554 # include <limits.h>
10556 # include <assert.h>
10561 /* Override any gcc2 internal prototype to avoid an error. */
10566 /* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined (__stub_mmap) || defined (__stub___mmap)
10575 char (*f) () = mmap;
10589 rm -f conftest.
$ac_objext conftest
$ac_exeext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591 (eval $ac_link) 2>conftest.er1
10593 grep -v '^ *+' conftest.er1
>conftest.err
10595 cat conftest.err
>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try
='test -z "$ac_c_werror_flag"
10599 || test ! -s conftest.err'
10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 (eval $ac_try) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try
='test -s 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_mmap
=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.
$ac_ext >&5
10618 rm -f conftest.err conftest.
$ac_objext \
10619 conftest
$ac_exeext conftest.
$ac_ext
10621 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10622 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10623 if test $ac_cv_func_mmap = yes; then
10629 if test "$gcc_header_sys_mman_h" != yes \
10630 ||
test "$gcc_func_mmap" != yes; then
10631 gcc_cv_func_mmap_file
=no
10632 gcc_cv_func_mmap_dev_zero
=no
10633 gcc_cv_func_mmap_anon
=no
10635 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10636 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10637 if test "${gcc_cv_func_mmap_file+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 # Add a system to this blacklist if
10641 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10642 # memory area containing the same data that you'd get if you applied
10643 # read() to the same fd. The only system known to have a problem here
10644 # is VMS, where text files have record structure.
10647 gcc_cv_func_mmap_file
=no
;;
10649 gcc_cv_func_mmap_file
=yes;;
10652 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10653 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10654 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10655 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10656 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 # Add a system to this blacklist if it has mmap() but /dev/zero
10660 # does not exist, or if mmapping /dev/zero does not give anonymous
10661 # zeroed pages with both the following properties:
10662 # 1. If you map N consecutive pages in with one call, and then
10663 # unmap any subset of those pages, the pages that were not
10664 # explicitly unmapped remain accessible.
10665 # 2. If you map two adjacent blocks of memory and then unmap them
10666 # both at once, they must both go away.
10667 # Systems known to be in this category are Windows (all variants),
10670 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10671 gcc_cv_func_mmap_dev_zero
=no
;;
10673 gcc_cv_func_mmap_dev_zero
=yes;;
10676 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10677 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10679 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10680 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10681 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10682 if test "${gcc_cv_decl_map_anon+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <sys/types.h>
10692 #include <sys/mman.h>
10693 #include <unistd.h>
10695 #ifndef MAP_ANONYMOUS
10696 #define MAP_ANONYMOUS MAP_ANON
10702 int n = MAP_ANONYMOUS;
10707 rm -f conftest.
$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10711 grep -v '^ *+' conftest.er1
>conftest.err
10713 cat conftest.err
>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try
='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try
='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 gcc_cv_decl_map_anon
=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.
$ac_ext >&5
10734 gcc_cv_decl_map_anon
=no
10736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10738 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10739 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10741 if test $gcc_cv_decl_map_anon = no
; then
10742 gcc_cv_func_mmap_anon
=no
10744 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10745 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10746 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10750 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10751 # doesn't give anonymous zeroed pages with the same properties listed
10752 # above for use of /dev/zero.
10753 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10755 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10756 gcc_cv_func_mmap_anon
=no
;;
10758 gcc_cv_func_mmap_anon
=yes;;
10761 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10762 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10766 if test $gcc_cv_func_mmap_file = yes; then
10768 cat >>confdefs.h
<<\_ACEOF
10769 #define HAVE_MMAP_FILE 1
10773 if test $gcc_cv_func_mmap_dev_zero = yes; then
10775 cat >>confdefs.h
<<\_ACEOF
10776 #define HAVE_MMAP_DEV_ZERO 1
10780 if test $gcc_cv_func_mmap_anon = yes; then
10782 cat >>confdefs.h
<<\_ACEOF
10783 #define HAVE_MMAP_ANON 1
10791 # Under VMS, vfork works very differently than on Unix. The standard test
10792 # won't work, and it isn't easily adaptable. It makes more sense to
10794 ac_cv_func_vfork_works
=yes
10797 echo "$as_me:$LINENO: checking for pid_t" >&5
10798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10799 if test "${ac_cv_type_pid_t+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 cat >conftest.
$ac_ext <<_ACEOF
10805 cat confdefs.h
>>conftest.
$ac_ext
10806 cat >>conftest.
$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 $ac_includes_default
10814 if (sizeof (pid_t))
10820 rm -f conftest.
$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try
='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try
='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_type_pid_t
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_type_pid_t
=no
10849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10851 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10852 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10853 if test $ac_cv_type_pid_t = yes; then
10857 cat >>confdefs.h
<<_ACEOF
10865 for ac_header
in unistd.h vfork.h
10867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.
$ac_ext <<_ACEOF
10876 cat confdefs.h
>>conftest.
$ac_ext
10877 cat >>conftest.
$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <$ac_header>
10881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10882 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10884 grep -v '^ *+' conftest.er1
>conftest.err
10886 cat conftest.err
>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } >/dev
/null
; then
10889 if test -s conftest.err
; then
10890 ac_cpp_err
=$ac_c_preproc_warn_flag
10891 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10898 if test -z "$ac_cpp_err"; then
10899 eval "$as_ac_Header=yes"
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.
$ac_ext >&5
10904 eval "$as_ac_Header=no"
10906 rm -f conftest.err conftest.
$ac_ext
10908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10911 cat >>confdefs.h
<<_ACEOF
10912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10920 for ac_func
in fork vfork
10922 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 echo "$as_me:$LINENO: checking for $ac_func" >&5
10924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10925 if eval "test \"\${$as_ac_var+set}\" = set"; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 cat >conftest.
$ac_ext <<_ACEOF
10931 cat confdefs.h
>>conftest.
$ac_ext
10932 cat >>conftest.
$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10936 #define $ac_func innocuous_$ac_func
10938 /* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char $ac_func (); below.
10940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941 <limits.h> exists even on freestanding compilers. */
10944 # include <limits.h>
10946 # include <assert.h>
10951 /* Override any gcc2 internal prototype to avoid an error. */
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10965 char (*f) () = $ac_func;
10974 return f != $ac_func;
10979 rm -f conftest.
$ac_objext conftest
$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>conftest.er1
10983 grep -v '^ *+' conftest.er1
>conftest.err
10985 cat conftest.err
>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try
='test -z "$ac_c_werror_flag"
10989 || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try
='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 eval "$as_ac_var=yes"
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 eval "$as_ac_var=no"
11008 rm -f conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11013 if test `eval echo '${'$as_ac_var'}'` = yes; then
11014 cat >>confdefs.h
<<_ACEOF
11015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11021 if test "x$ac_cv_func_fork" = xyes
; then
11022 echo "$as_me:$LINENO: checking for working fork" >&5
11023 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11024 if test "${ac_cv_func_fork_works+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 if test "$cross_compiling" = yes; then
11028 ac_cv_func_fork_works
=cross
11030 cat >conftest.
$ac_ext <<_ACEOF
11031 /* By Ruediger Kuhlmann. */
11032 #include <sys/types.h>
11034 # include <unistd.h>
11036 /* Some systems only have a dummy stub for fork() */
11044 rm -f conftest
$ac_exeext
11045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046 (eval $ac_link) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_func_fork_works
=yes
11057 echo "$as_me: program exited with status $ac_status" >&5
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.
$ac_ext >&5
11061 ( exit $ac_status )
11062 ac_cv_func_fork_works
=no
11064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11068 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11071 ac_cv_func_fork_works
=$ac_cv_func_fork
11073 if test "x$ac_cv_func_fork_works" = xcross
; then
11075 *-*-amigaos* |
*-*-msdosdjgpp*)
11076 # Override, as these systems have only a dummy fork() stub
11077 ac_cv_func_fork_works
=no
11080 ac_cv_func_fork_works
=yes
11083 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11084 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11086 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11087 if test "x$ac_cv_func_vfork" = xyes
; then
11088 echo "$as_me:$LINENO: checking for working vfork" >&5
11089 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11090 if test "${ac_cv_func_vfork_works+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 if test "$cross_compiling" = yes; then
11094 ac_cv_func_vfork_works
=cross
11096 cat >conftest.
$ac_ext <<_ACEOF
11099 cat confdefs.h
>>conftest.
$ac_ext
11100 cat >>conftest.
$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Thanks to Paul Eggert for this test. */
11104 #include <stdlib.h>
11105 #include <sys/types.h>
11106 #include <sys/stat.h>
11107 #include <sys/wait.h>
11109 # include <unistd.h>
11112 # include <vfork.h>
11114 /* On some sparc systems, changes by the child to local and incoming
11115 argument registers are propagated back to the parent. The compiler
11116 is told about this with #include <vfork.h>, but some compilers
11117 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11118 static variable whose address is put into a register that is
11119 clobbered by the vfork. */
11122 sparc_address_test (int arg)
11124 sparc_address_test (arg) int arg;
11127 static pid_t child;
11145 pid_t parent = getpid ();
11148 sparc_address_test (0);
11153 /* Here is another test for sparc vfork register problems. This
11154 test uses lots of local variables, at least as many local
11155 variables as main has allocated so far including compiler
11156 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11157 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11158 reuse the register of parent for one of the local variables,
11159 since it will think that parent can't possibly be used any more
11160 in this routine. Assigning to the local variable will thus
11161 munge parent in the parent process. */
11163 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11164 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11165 /* Convince the compiler that p..p7 are live; otherwise, it might
11166 use the same hardware register for all 8 local variables. */
11167 if (p != p1 || p != p2 || p != p3 || p != p4
11168 || p != p5 || p != p6 || p != p7)
11171 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11172 from child file descriptors. If the child closes a descriptor
11173 before it execs or exits, this munges the parent's descriptor
11174 as well. Test for this by closing stdout in the child. */
11175 _exit(close(fileno(stdout)) != 0);
11180 while (wait(&status) != child)
11183 /* Was there some problem with vforking? */
11186 /* Did the child fail? (This shouldn't happen.) */
11189 /* Did the vfork/compiler bug occur? */
11190 || parent != getpid()
11192 /* Did the file descriptor bug occur? */
11193 || fstat(fileno(stdout), &st) != 0
11198 rm -f conftest
$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_func_vfork_works
=yes
11211 echo "$as_me: program exited with status $ac_status" >&5
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.
$ac_ext >&5
11215 ( exit $ac_status )
11216 ac_cv_func_vfork_works
=no
11218 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11222 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11225 if test "x$ac_cv_func_fork_works" = xcross
; then
11226 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11228 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11231 if test "x$ac_cv_func_vfork_works" = xyes
; then
11233 cat >>confdefs.h
<<\_ACEOF
11234 #define HAVE_WORKING_VFORK 1
11239 cat >>confdefs.h
<<\_ACEOF
11244 if test "x$ac_cv_func_fork_works" = xyes
; then
11246 cat >>confdefs.h
<<\_ACEOF
11247 #define HAVE_WORKING_FORK 1
11254 if test "X$prefix" = "XNONE"; then
11255 acl_final_prefix
="$ac_default_prefix"
11257 acl_final_prefix
="$prefix"
11259 if test "X$exec_prefix" = "XNONE"; then
11260 acl_final_exec_prefix
='${prefix}'
11262 acl_final_exec_prefix
="$exec_prefix"
11264 acl_save_prefix
="$prefix"
11265 prefix
="$acl_final_prefix"
11266 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11267 prefix
="$acl_save_prefix"
11270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11271 if test "${with_gnu_ld+set}" = set; then
11272 withval
="$with_gnu_ld"
11273 test "$withval" = no || with_gnu_ld
=yes
11277 # Prepare PATH_SEPARATOR.
11278 # The user is always right.
11279 if test "${PATH_SEPARATOR+set}" != set; then
11280 echo "#! /bin/sh" >conf$$.sh
11281 echo "exit 0" >>conf$$.sh
11283 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11291 if test "$GCC" = yes; then
11292 # Check if gcc -print-prog-name=ld gives a path.
11293 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11294 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11297 # gcc leaves a trailing carriage return which upsets mingw
11298 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11303 # Accept absolute paths.
11304 [\\/]* |
[A-Za-z
]:[\\/]*)
11305 re_direlt
='/[^/][^/]*/\.\./'
11306 # Canonicalize the path of ld
11307 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11308 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11309 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11311 test -z "$LD" && LD
="$ac_prog"
11314 # If it fails, then pretend we aren't using GCC.
11318 # If it is relative, then search for the first ld in PATH.
11319 with_gnu_ld
=unknown
11322 elif test "$with_gnu_ld" = yes; then
11323 echo "$as_me:$LINENO: checking for GNU ld" >&5
11324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11326 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11329 if test "${acl_cv_path_LD+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 if test -z "$LD"; then
11333 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11334 for ac_dir
in $PATH; do
11335 test -z "$ac_dir" && ac_dir
=.
11336 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11337 acl_cv_path_LD
="$ac_dir/$ac_prog"
11338 # Check to see if the program is GNU ld. I'd rather use --version,
11339 # but apparently some GNU ld's only accept -v.
11340 # Break only if it was the GNU/non-GNU ld that we prefer.
11341 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11342 test "$with_gnu_ld" != no
&& break
11344 test "$with_gnu_ld" != yes && break
11350 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11354 LD
="$acl_cv_path_LD"
11355 if test -n "$LD"; then
11356 echo "$as_me:$LINENO: result: $LD" >&5
11357 echo "${ECHO_T}$LD" >&6
11359 echo "$as_me:$LINENO: result: no" >&5
11360 echo "${ECHO_T}no" >&6
11362 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11363 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11364 { (exit 1); exit 1; }; }
11365 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11366 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11367 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11371 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11372 acl_cv_prog_gnu_ld
=yes
11374 acl_cv_prog_gnu_ld
=no
11377 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11378 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11379 with_gnu_ld
=$acl_cv_prog_gnu_ld
11383 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11384 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11385 if test "${acl_cv_rpath+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11390 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11392 rm -f .
/conftest.sh
11396 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11397 echo "${ECHO_T}$acl_cv_rpath" >&6
11399 libext
="$acl_cv_libext"
11400 shlibext
="$acl_cv_shlibext"
11401 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11402 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11403 hardcode_direct
="$acl_cv_hardcode_direct"
11404 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11405 # Check whether --enable-rpath or --disable-rpath was given.
11406 if test "${enable_rpath+set}" = set; then
11407 enableval
="$enable_rpath"
11421 acl_save_prefix
="$prefix"
11422 prefix
="$acl_final_prefix"
11423 acl_save_exec_prefix
="$exec_prefix"
11424 exec_prefix
="$acl_final_exec_prefix"
11426 eval additional_includedir
=\"$includedir\"
11427 eval additional_libdir
=\"$libdir\"
11429 exec_prefix
="$acl_save_exec_prefix"
11430 prefix
="$acl_save_prefix"
11433 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11434 if test "${with_libiconv_prefix+set}" = set; then
11435 withval
="$with_libiconv_prefix"
11437 if test "X$withval" = "Xno"; then
11440 if test "X$withval" = "X"; then
11442 acl_save_prefix
="$prefix"
11443 prefix
="$acl_final_prefix"
11444 acl_save_exec_prefix
="$exec_prefix"
11445 exec_prefix
="$acl_final_exec_prefix"
11447 eval additional_includedir
=\"$includedir\"
11448 eval additional_libdir
=\"$libdir\"
11450 exec_prefix
="$acl_save_exec_prefix"
11451 prefix
="$acl_save_prefix"
11454 additional_includedir
="$withval/include"
11455 additional_libdir
="$withval/lib"
11465 names_already_handled
=
11466 names_next_round
='iconv '
11467 while test -n "$names_next_round"; do
11468 names_this_round
="$names_next_round"
11470 for name
in $names_this_round; do
11472 for n
in $names_already_handled; do
11473 if test "$n" = "$name"; then
11474 already_handled
=yes
11478 if test -z "$already_handled"; then
11479 names_already_handled
="$names_already_handled $name"
11480 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11481 eval value
=\"\
$HAVE_LIB$uppername\"
11482 if test -n "$value"; then
11483 if test "$value" = yes; then
11484 eval value
=\"\
$LIB$uppername\"
11485 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11486 eval value
=\"\
$LTLIB$uppername\"
11487 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11496 if test $use_additional = yes; then
11497 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11498 found_dir
="$additional_libdir"
11499 found_so
="$additional_libdir/lib$name.$shlibext"
11500 if test -f "$additional_libdir/lib$name.la"; then
11501 found_la
="$additional_libdir/lib$name.la"
11504 if test -f "$additional_libdir/lib$name.$libext"; then
11505 found_dir
="$additional_libdir"
11506 found_a
="$additional_libdir/lib$name.$libext"
11507 if test -f "$additional_libdir/lib$name.la"; then
11508 found_la
="$additional_libdir/lib$name.la"
11513 if test "X$found_dir" = "X"; then
11514 for x
in $LDFLAGS $LTLIBICONV; do
11516 acl_save_prefix
="$prefix"
11517 prefix
="$acl_final_prefix"
11518 acl_save_exec_prefix
="$exec_prefix"
11519 exec_prefix
="$acl_final_exec_prefix"
11521 exec_prefix
="$acl_save_exec_prefix"
11522 prefix
="$acl_save_prefix"
11526 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11527 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11529 found_so
="$dir/lib$name.$shlibext"
11530 if test -f "$dir/lib$name.la"; then
11531 found_la
="$dir/lib$name.la"
11534 if test -f "$dir/lib$name.$libext"; then
11536 found_a
="$dir/lib$name.$libext"
11537 if test -f "$dir/lib$name.la"; then
11538 found_la
="$dir/lib$name.la"
11544 if test "X$found_dir" != "X"; then
11549 if test "X$found_dir" != "X"; then
11550 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11551 if test "X$found_so" != "X"; then
11552 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11556 for x
in $ltrpathdirs; do
11557 if test "X$x" = "X$found_dir"; then
11562 if test -z "$haveit"; then
11563 ltrpathdirs
="$ltrpathdirs $found_dir"
11565 if test "$hardcode_direct" = yes; then
11566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11568 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11569 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11571 for x
in $rpathdirs; do
11572 if test "X$x" = "X$found_dir"; then
11577 if test -z "$haveit"; then
11578 rpathdirs
="$rpathdirs $found_dir"
11582 for x
in $LDFLAGS $LIBICONV; do
11584 acl_save_prefix
="$prefix"
11585 prefix
="$acl_final_prefix"
11586 acl_save_exec_prefix
="$exec_prefix"
11587 exec_prefix
="$acl_final_exec_prefix"
11589 exec_prefix
="$acl_save_exec_prefix"
11590 prefix
="$acl_save_prefix"
11592 if test "X$x" = "X-L$found_dir"; then
11597 if test -z "$haveit"; then
11598 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11600 if test "$hardcode_minus_L" != no
; then
11601 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11603 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11609 if test "X$found_a" != "X"; then
11610 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11612 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11615 additional_includedir
=
11616 case "$found_dir" in
11618 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11619 additional_includedir
="$basedir/include"
11622 if test "X$additional_includedir" != "X"; then
11623 if test "X$additional_includedir" != "X/usr/include"; then
11625 if test "X$additional_includedir" = "X/usr/local/include"; then
11626 if test -n "$GCC"; then
11628 linux
*) haveit
=yes;;
11632 if test -z "$haveit"; then
11633 for x
in $CPPFLAGS $INCICONV; do
11635 acl_save_prefix
="$prefix"
11636 prefix
="$acl_final_prefix"
11637 acl_save_exec_prefix
="$exec_prefix"
11638 exec_prefix
="$acl_final_exec_prefix"
11640 exec_prefix
="$acl_save_exec_prefix"
11641 prefix
="$acl_save_prefix"
11643 if test "X$x" = "X-I$additional_includedir"; then
11648 if test -z "$haveit"; then
11649 if test -d "$additional_includedir"; then
11650 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11656 if test -n "$found_la"; then
11657 save_libdir
="$libdir"
11658 case "$found_la" in
11659 */* |
*\\*) .
"$found_la" ;;
11660 *) .
"./$found_la" ;;
11662 libdir
="$save_libdir"
11663 for dep
in $dependency_libs; do
11666 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11667 if test "X$additional_libdir" != "X/usr/lib"; then
11669 if test "X$additional_libdir" = "X/usr/local/lib"; then
11670 if test -n "$GCC"; then
11672 linux
*) haveit
=yes;;
11676 if test -z "$haveit"; then
11678 for x
in $LDFLAGS $LIBICONV; do
11680 acl_save_prefix
="$prefix"
11681 prefix
="$acl_final_prefix"
11682 acl_save_exec_prefix
="$exec_prefix"
11683 exec_prefix
="$acl_final_exec_prefix"
11685 exec_prefix
="$acl_save_exec_prefix"
11686 prefix
="$acl_save_prefix"
11688 if test "X$x" = "X-L$additional_libdir"; then
11693 if test -z "$haveit"; then
11694 if test -d "$additional_libdir"; then
11695 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11699 for x
in $LDFLAGS $LTLIBICONV; do
11701 acl_save_prefix
="$prefix"
11702 prefix
="$acl_final_prefix"
11703 acl_save_exec_prefix
="$exec_prefix"
11704 exec_prefix
="$acl_final_exec_prefix"
11706 exec_prefix
="$acl_save_exec_prefix"
11707 prefix
="$acl_save_prefix"
11709 if test "X$x" = "X-L$additional_libdir"; then
11714 if test -z "$haveit"; then
11715 if test -d "$additional_libdir"; then
11716 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11723 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11724 if test "$enable_rpath" != no
; then
11726 for x
in $rpathdirs; do
11727 if test "X$x" = "X$dir"; then
11732 if test -z "$haveit"; then
11733 rpathdirs
="$rpathdirs $dir"
11736 for x
in $ltrpathdirs; do
11737 if test "X$x" = "X$dir"; then
11742 if test -z "$haveit"; then
11743 ltrpathdirs
="$ltrpathdirs $dir"
11748 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11751 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11754 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11755 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11761 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11762 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11768 if test "X$rpathdirs" != "X"; then
11769 if test -n "$hardcode_libdir_separator"; then
11771 for found_dir
in $rpathdirs; do
11772 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11774 acl_save_libdir
="$libdir"
11776 eval flag
=\"$hardcode_libdir_flag_spec\"
11777 libdir
="$acl_save_libdir"
11778 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11780 for found_dir
in $rpathdirs; do
11781 acl_save_libdir
="$libdir"
11782 libdir
="$found_dir"
11783 eval flag
=\"$hardcode_libdir_flag_spec\"
11784 libdir
="$acl_save_libdir"
11785 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11789 if test "X$ltrpathdirs" != "X"; then
11790 for found_dir
in $ltrpathdirs; do
11791 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11801 am_save_CPPFLAGS
="$CPPFLAGS"
11803 for element
in $INCICONV; do
11805 for x
in $CPPFLAGS; do
11807 acl_save_prefix
="$prefix"
11808 prefix
="$acl_final_prefix"
11809 acl_save_exec_prefix
="$exec_prefix"
11810 exec_prefix
="$acl_final_exec_prefix"
11812 exec_prefix
="$acl_save_exec_prefix"
11813 prefix
="$acl_save_prefix"
11815 if test "X$x" = "X$element"; then
11820 if test -z "$haveit"; then
11821 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11826 echo "$as_me:$LINENO: checking for iconv" >&5
11827 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11828 if test "${am_cv_func_iconv+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 am_cv_func_iconv
="no, consider installing GNU libiconv"
11834 cat >conftest.
$ac_ext <<_ACEOF
11837 cat confdefs.h
>>conftest.
$ac_ext
11838 cat >>conftest.
$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <stdlib.h>
11845 iconv_t cd = iconv_open("","");
11846 iconv(cd,NULL,NULL,NULL,NULL);
11852 rm -f conftest.
$ac_objext conftest
$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1
>conftest.err
11858 cat conftest.err
>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try
='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try
='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 am_cv_func_iconv
=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.
$ac_ext >&5
11880 rm -f conftest.err conftest.
$ac_objext \
11881 conftest
$ac_exeext conftest.
$ac_ext
11882 if test "$am_cv_func_iconv" != yes; then
11883 am_save_LIBS
="$LIBS"
11884 LIBS
="$LIBS $LIBICONV"
11885 cat >conftest.
$ac_ext <<_ACEOF
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <stdlib.h>
11896 iconv_t cd = iconv_open("","");
11897 iconv(cd,NULL,NULL,NULL,NULL);
11903 rm -f conftest.
$ac_objext conftest
$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>conftest.er1
11907 grep -v '^ *+' conftest.er1
>conftest.err
11909 cat conftest.err
>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try
='test -z "$ac_c_werror_flag"
11913 || test ! -s conftest.err'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try
='test -s conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 am_cv_lib_iconv
=yes
11926 am_cv_func_iconv
=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.
$ac_ext >&5
11932 rm -f conftest.err conftest.
$ac_objext \
11933 conftest
$ac_exeext conftest.
$ac_ext
11934 LIBS
="$am_save_LIBS"
11938 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11939 echo "${ECHO_T}$am_cv_func_iconv" >&6
11940 if test "$am_cv_func_iconv" = yes; then
11942 cat >>confdefs.h
<<\_ACEOF
11943 #define HAVE_ICONV 1
11947 if test "$am_cv_lib_iconv" = yes; then
11948 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11949 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11950 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11951 echo "${ECHO_T}$LIBICONV" >&6
11953 CPPFLAGS
="$am_save_CPPFLAGS"
11960 if test "$am_cv_func_iconv" = yes; then
11961 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11962 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11963 if test "${am_cv_proto_iconv+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 cat >conftest.
$ac_ext <<_ACEOF
11970 cat confdefs.h
>>conftest.
$ac_ext
11971 cat >>conftest.
$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11974 #include <stdlib.h>
11980 #if defined(__STDC__) || defined(__cplusplus)
11981 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11994 rm -f conftest.
$ac_objext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11996 (eval $ac_compile) 2>conftest.er1
11998 grep -v '^ *+' conftest.er1
>conftest.err
12000 cat conftest.err
>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try
='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try
='test -s conftest.$ac_objext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 am_cv_proto_iconv_arg1
=""
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.
$ac_ext >&5
12021 am_cv_proto_iconv_arg1
="const"
12023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12024 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);"
12027 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12028 echo "$as_me:$LINENO: result: ${ac_t:-
12029 }$am_cv_proto_iconv" >&5
12030 echo "${ECHO_T}${ac_t:-
12031 }$am_cv_proto_iconv" >&6
12033 cat >>confdefs.h
<<_ACEOF
12034 #define ICONV_CONST $am_cv_proto_iconv_arg1
12039 # Until we have in-tree GNU iconv:
12044 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12045 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12046 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include <locale.h>
12064 rm -f conftest.
$ac_objext conftest
$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>conftest.er1
12068 grep -v '^ *+' conftest.er1
>conftest.err
12070 cat conftest.err
>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try
='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try
='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 am_cv_val_LC_MESSAGES
=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.
$ac_ext >&5
12091 am_cv_val_LC_MESSAGES
=no
12093 rm -f conftest.err conftest.
$ac_objext \
12094 conftest
$ac_exeext conftest.
$ac_ext
12096 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12097 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12098 if test $am_cv_val_LC_MESSAGES = yes; then
12100 cat >>confdefs.h
<<\_ACEOF
12101 #define HAVE_LC_MESSAGES 1
12108 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12109 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12110 if test "${am_cv_langinfo_codeset+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 cat >conftest.
$ac_ext <<_ACEOF
12116 cat confdefs.h
>>conftest.
$ac_ext
12117 cat >>conftest.
$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 #include <langinfo.h>
12123 char* cs = nl_langinfo(CODESET);
12128 rm -f conftest.
$ac_objext conftest
$ac_exeext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12130 (eval $ac_link) 2>conftest.er1
12132 grep -v '^ *+' conftest.er1
>conftest.err
12134 cat conftest.err
>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try
='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try
='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 am_cv_langinfo_codeset
=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.
$ac_ext >&5
12155 am_cv_langinfo_codeset
=no
12157 rm -f conftest.err conftest.
$ac_objext \
12158 conftest
$ac_exeext conftest.
$ac_ext
12161 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12162 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12163 if test $am_cv_langinfo_codeset = yes; then
12165 cat >>confdefs.h
<<\_ACEOF
12166 #define HAVE_LANGINFO_CODESET 1
12172 # We will need to find libiberty.h and ansidecl.h
12173 saved_CFLAGS
="$CFLAGS"
12174 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12214 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12215 strsignal strstr strverscmp \
12216 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12217 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
12219 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12220 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12221 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12222 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.
$ac_ext <<_ACEOF
12228 cat confdefs.h
>>conftest.
$ac_ext
12229 cat >>conftest.
$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12232 #define $ac_tr_decl 1
12234 #include "ansidecl.h"
12235 #include "system.h"
12241 char *(*pfn) = (char *(*)) $ac_func ;
12247 rm -f conftest.
$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>conftest.er1
12251 grep -v '^ *+' conftest.er1
>conftest.err
12253 cat conftest.err
>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try
='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try
='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "gcc_cv_have_decl_$ac_func=yes"
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.
$ac_ext >&5
12274 eval "gcc_cv_have_decl_$ac_func=no"
12276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12279 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12280 echo "$as_me:$LINENO: result: yes" >&5
12281 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12282 #define $ac_tr_decl 1
12286 echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12288 #define $ac_tr_decl 0
12299 for ac_func
in getrlimit setrlimit getrusage
12301 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12302 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12303 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12304 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.
$ac_ext <<_ACEOF
12310 cat confdefs.h
>>conftest.
$ac_ext
12311 cat >>conftest.
$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 #define $ac_tr_decl 1
12316 #include "ansidecl.h"
12317 #include "system.h"
12318 #ifdef HAVE_SYS_RESOURCE_H
12319 #include <sys/resource.h>
12327 char *(*pfn) = (char *(*)) $ac_func ;
12333 rm -f conftest.
$ac_objext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335 (eval $ac_compile) 2>conftest.er1
12337 grep -v '^ *+' conftest.er1
>conftest.err
12339 cat conftest.err
>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try
='test -z "$ac_c_werror_flag"
12343 || test ! -s conftest.err'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try
='test -s conftest.$ac_objext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 eval "gcc_cv_have_decl_$ac_func=yes"
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.
$ac_ext >&5
12360 eval "gcc_cv_have_decl_$ac_func=no"
12362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12365 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12366 echo "$as_me:$LINENO: result: yes" >&5
12367 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12368 #define $ac_tr_decl 1
12372 echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12374 #define $ac_tr_decl 0
12382 cat >conftest.
$ac_ext <<_ACEOF
12385 cat confdefs.h
>>conftest.
$ac_ext
12386 cat >>conftest.
$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12389 #include "ansidecl.h"
12390 #include "system.h"
12391 #ifdef HAVE_SYS_RESOURCE_H
12392 #include <sys/resource.h>
12403 rm -f conftest.
$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try
='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try
='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12431 cat >>confdefs.h
<<\_ACEOF
12432 #define rlim_t long
12436 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12438 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12439 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12440 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12441 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12443 for ac_func
in ldgetname
12445 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.
$ac_ext <<_ACEOF
12454 cat confdefs.h
>>conftest.
$ac_ext
12455 cat >>conftest.
$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 #define $ac_tr_decl 1
12460 #include "ansidecl.h"
12461 #include "system.h"
12462 #ifdef HAVE_LDFCN_H
12473 char *(*pfn) = (char *(*)) $ac_func ;
12479 rm -f conftest.
$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12483 grep -v '^ *+' conftest.er1
>conftest.err
12485 cat conftest.err
>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try
='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try
='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 eval "gcc_cv_have_decl_$ac_func=yes"
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12506 eval "gcc_cv_have_decl_$ac_func=no"
12508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12512 echo "$as_me:$LINENO: result: yes" >&5
12513 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12514 #define $ac_tr_decl 1
12518 echo "$as_me:$LINENO: result: no" >&5
12519 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12520 #define $ac_tr_decl 0
12529 for ac_func
in times
12531 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12532 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12533 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12534 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 cat >conftest.
$ac_ext <<_ACEOF
12540 cat confdefs.h
>>conftest.
$ac_ext
12541 cat >>conftest.
$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 #define $ac_tr_decl 1
12546 #include "ansidecl.h"
12547 #include "system.h"
12548 #ifdef HAVE_SYS_TIMES_H
12549 #include <sys/times.h>
12557 char *(*pfn) = (char *(*)) $ac_func ;
12563 rm -f conftest.
$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565 (eval $ac_compile) 2>conftest.er1
12567 grep -v '^ *+' conftest.er1
>conftest.err
12569 cat conftest.err
>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try
='test -z "$ac_c_werror_flag"
12573 || test ! -s conftest.err'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try
='test -s conftest.$ac_objext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 eval "gcc_cv_have_decl_$ac_func=yes"
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.
$ac_ext >&5
12590 eval "gcc_cv_have_decl_$ac_func=no"
12592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12595 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12596 echo "$as_me:$LINENO: result: yes" >&5
12597 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12598 #define $ac_tr_decl 1
12602 echo "$as_me:$LINENO: result: no" >&5
12603 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12604 #define $ac_tr_decl 0
12613 for ac_func
in sigaltstack
12615 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12616 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12617 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12618 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 cat >conftest.
$ac_ext <<_ACEOF
12624 cat confdefs.h
>>conftest.
$ac_ext
12625 cat >>conftest.
$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 #define $ac_tr_decl 1
12630 #include "ansidecl.h"
12631 #include "system.h"
12632 #include <signal.h>
12639 char *(*pfn) = (char *(*)) $ac_func ;
12645 rm -f conftest.
$ac_objext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1
>conftest.err
12651 cat conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try
='test -z "$ac_c_werror_flag"
12655 || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try
='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 eval "gcc_cv_have_decl_$ac_func=yes"
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.
$ac_ext >&5
12672 eval "gcc_cv_have_decl_$ac_func=no"
12674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12678 echo "$as_me:$LINENO: result: yes" >&5
12679 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12680 #define $ac_tr_decl 1
12684 echo "$as_me:$LINENO: result: no" >&5
12685 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12686 #define $ac_tr_decl 0
12694 # More time-related stuff.
12695 echo "$as_me:$LINENO: checking for struct tms" >&5
12696 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12697 if test "${ac_cv_struct_tms+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 cat >conftest.
$ac_ext <<_ACEOF
12704 cat confdefs.h
>>conftest.
$ac_ext
12705 cat >>conftest.
$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 #include "ansidecl.h"
12709 #include "system.h"
12710 #ifdef HAVE_SYS_TIMES_H
12711 #include <sys/times.h>
12722 rm -f conftest.
$ac_objext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
12726 grep -v '^ *+' conftest.er1
>conftest.err
12728 cat conftest.err
>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try
='test -z "$ac_c_werror_flag"
12732 || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try
='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_struct_tms
=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.
$ac_ext >&5
12749 ac_cv_struct_tms
=no
12751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12754 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12755 if test $ac_cv_struct_tms = yes; then
12757 cat >>confdefs.h
<<\_ACEOF
12758 #define HAVE_STRUCT_TMS 1
12763 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12764 # revisit after autoconf 2.50.
12765 echo "$as_me:$LINENO: checking for clock_t" >&5
12766 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12767 if test "${gcc_cv_type_clock_t+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 #include "ansidecl.h"
12779 #include "system.h"
12789 rm -f conftest.
$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12793 grep -v '^ *+' conftest.er1
>conftest.err
12795 cat conftest.err
>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try
='test -z "$ac_c_werror_flag"
12799 || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try
='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 gcc_cv_type_clock_t
=yes
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12816 gcc_cv_type_clock_t
=no
12818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12820 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12821 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12822 if test $gcc_cv_type_clock_t = yes; then
12824 cat >>confdefs.h
<<\_ACEOF
12825 #define HAVE_CLOCK_T 1
12830 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12831 CFLAGS
="$saved_CFLAGS"
12833 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12834 if test "${enable_initfini_array+set}" = set; then
12835 enableval
="$enable_initfini_array"
12839 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12840 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12841 if test "${gcc_cv_initfini_array+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 if test "$cross_compiling" = yes; then
12845 gcc_cv_initfini_array
=no
12847 cat >conftest.
$ac_ext <<_ACEOF
12850 cat confdefs.h
>>conftest.
$ac_ext
12851 cat >>conftest.
$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12855 int main (void) { return x; }
12856 int foo (void) { x = 0; }
12857 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12859 rm -f conftest
$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 gcc_cv_initfini_array
=yes
12872 echo "$as_me: program exited with status $ac_status" >&5
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ( exit $ac_status )
12877 gcc_cv_initfini_array
=no
12879 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12882 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12883 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12884 enable_initfini_array
=$gcc_cv_initfini_array
12887 if test $enable_initfini_array = yes; then
12889 cat >>confdefs.h
<<\_ACEOF
12890 #define HAVE_INITFINI_ARRAY 1
12895 # mkdir takes a single argument on some systems.
12896 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12897 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12898 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 cat >conftest.
$ac_ext <<_ACEOF
12904 cat confdefs.h
>>conftest.
$ac_ext
12905 cat >>conftest.
$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 #include <sys/types.h>
12909 #ifdef HAVE_SYS_STAT_H
12910 # include <sys/stat.h>
12912 #ifdef HAVE_UNISTD_H
12913 # include <unistd.h>
12915 #ifdef HAVE_DIRECT_H
12916 # include <direct.h>
12926 rm -f conftest.
$ac_objext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>conftest.er1
12930 grep -v '^ *+' conftest.er1
>conftest.err
12932 cat conftest.err
>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try
='test -z "$ac_c_werror_flag"
12936 || test ! -s conftest.err'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; } &&
12942 { ac_try
='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 gcc_cv_mkdir_takes_one_arg
=no
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.
$ac_ext >&5
12953 gcc_cv_mkdir_takes_one_arg
=yes
12955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12957 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12958 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12959 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12961 cat >>confdefs.h
<<\_ACEOF
12962 #define MKDIR_TAKES_ONE_ARG 1
12974 # With Setjmp/Longjmp based exception handling.
12975 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12976 if test "${enable_sjlj_exceptions+set}" = set; then
12977 enableval
="$enable_sjlj_exceptions"
12980 if test $enableval != yes; then
12981 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12982 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12987 force_sjlj_exceptions
=yes
12991 force_sjlj_exceptions
=yes
12995 force_sjlj_exceptions
=no
12999 if test $force_sjlj_exceptions = yes; then
13000 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13002 cat >>confdefs.h
<<_ACEOF
13003 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13008 # For platforms with the unwind ABI which includes an unwind library,
13009 # libunwind, we can choose to use the system libunwind.
13011 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13012 if test "${with_system_libunwind+set}" = set; then
13013 withval
="$with_system_libunwind"
13017 # config.gcc also contains tests of with_system_libunwind.
13018 if test x
$with_system_libunwind = xyes
; then
13020 cat >>confdefs.h
<<\_ACEOF
13021 #define HAVE_GETIPINFO 1
13026 # --------------------------------------------------------
13027 # Build, host, and target specific configuration fragments
13028 # --------------------------------------------------------
13030 # Collect build-machine-specific information.
13031 .
${srcdir}/config.build
13033 # Collect host-machine-specific information.
13034 .
${srcdir}/config.
host
13038 # Collect target-machine-specific information.
13039 .
${srcdir}/config.gcc
13041 extra_objs
="${host_extra_objs} ${extra_objs}"
13042 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13044 # Default the target-machine variables that were not explicitly set.
13045 if test x
"$tm_file" = x
13046 then tm_file
=$cpu_type/$cpu_type.h
; fi
13048 if test x
"$extra_headers" = x
13049 then extra_headers
=; fi
13051 if test x
$md_file = x
13052 then md_file
=$cpu_type/$cpu_type.md
; fi
13054 if test x
$out_file = x
13055 then out_file
=$cpu_type/$cpu_type.c
; fi
13057 if test x
"$tmake_file" = x
13058 then tmake_file
=$cpu_type/t-
$cpu_type
13061 if test x
"$dwarf2" = xyes
13062 then tm_file
="$tm_file tm-dwarf2.h"
13065 # Say what files are being used for the output code and MD file.
13066 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13067 echo "Using \`$srcdir/config/$md_file' as machine description file."
13069 # If any of the xm_file variables contain nonexistent files, warn
13070 # about them and drop them.
13073 for x
in $build_xm_file; do
13074 if test -f $srcdir/config
/$x
13076 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13077 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13080 build_xm_file
="$bx"
13083 for x
in $host_xm_file; do
13084 if test -f $srcdir/config
/$x
13086 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13087 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13093 for x
in $xm_file; do
13094 if test -f $srcdir/config
/$x
13096 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13097 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13103 for f
in $tm_file; do
13106 if test $count = ax
; then
13107 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13109 echo "Using the following target machine macro files:"
13110 for f
in $tm_file; do
13111 echo " $srcdir/config/$f"
13115 if test x
$need_64bit_hwint = xyes
; then
13117 cat >>confdefs.h
<<\_ACEOF
13118 #define NEED_64BIT_HOST_WIDE_INT 1
13123 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13125 cat >>confdefs.h
<<\_ACEOF
13126 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13132 for f
in $host_xm_file; do
13135 if test $count = a
; then
13137 elif test $count = ax
; then
13138 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13140 echo "Using the following host machine macro files:"
13141 for f
in $host_xm_file; do
13142 echo " $srcdir/config/$f"
13145 echo "Using ${out_host_hook_obj} for host machine hooks."
13147 if test "$host_xm_file" != "$build_xm_file"; then
13149 for f
in $build_xm_file; do
13152 if test $count = a
; then
13154 elif test $count = ax
; then
13155 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13157 echo "Using the following build machine macro files:"
13158 for f
in $build_xm_file; do
13159 echo " $srcdir/config/$f"
13165 powerpc
*-*-darwin*)
13166 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13167 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13168 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 cat >conftest.
$ac_ext <<_ACEOF
13173 #include <sys/cdefs.h>
13174 #include <sys/signal.h>
13175 #include <ucontext.h>
13176 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13179 rm -f conftest.
$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13183 grep -v '^ *+' conftest.er1
>conftest.err
13185 cat conftest.err
>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try
='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try
='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 gcc_cv_mcontext_underscores
=no
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.
$ac_ext >&5
13206 gcc_cv_mcontext_underscores
=yes
13208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13210 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13211 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13212 if test $gcc_cv_mcontext_underscores = yes; then
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define HAS_MCONTEXT_T_UNDERSCORES
13226 # Check if a valid thread package
13227 case ${enable_threads} in
13230 target_thread_file
='single'
13234 target_thread_file
='single'
13236 aix | dce | gnat | irix | posix | posix95 | rtems | \
13237 single | solaris | vxworks | win32 | mipssde
)
13238 target_thread_file
=${enable_threads}
13241 echo "${enable_threads} is an unknown thread package" 1>&2
13246 if test x
${thread_file} = x
; then
13247 # No thread file set by target-specific clauses in config.gcc,
13248 # so use file chosen by default logic above
13249 thread_file
=${target_thread_file}
13252 # Make gthr-default.h if we have a thread file.
13254 if test $thread_file != single
; then
13255 rm -f gthr-default.h
13256 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13257 gthread_flags
=-DHAVE_GTHR_DEFAULT
13266 if test x
$enable___cxa_atexit = xyes || \
13267 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13268 if test x
$host = x
$target; then
13270 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13271 # keyed to flag_use_cxa_atexit
13276 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13277 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13278 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.
$ac_ext <<_ACEOF
13284 cat confdefs.h
>>conftest.
$ac_ext
13285 cat >>conftest.
$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13289 #define __cxa_atexit innocuous___cxa_atexit
13291 /* System header to define __stub macros and hopefully few prototypes,
13292 which can conflict with char __cxa_atexit (); below.
13293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13294 <limits.h> exists even on freestanding compilers. */
13297 # include <limits.h>
13299 # include <assert.h>
13302 #undef __cxa_atexit
13304 /* Override any gcc2 internal prototype to avoid an error. */
13309 /* We use char because int might match the return type of a gcc2
13310 builtin and then its argument prototype would still apply. */
13311 char __cxa_atexit ();
13312 /* The GNU C library defines this for functions which it implements
13313 to always fail with ENOSYS. Some functions are actually named
13314 something starting with __ and the normal name is an alias. */
13315 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13318 char (*f) () = __cxa_atexit;
13327 return f != __cxa_atexit;
13332 rm -f conftest.
$ac_objext conftest
$ac_exeext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13334 (eval $ac_link) 2>conftest.er1
13336 grep -v '^ *+' conftest.er1
>conftest.err
13338 cat conftest.err
>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try
='test -z "$ac_c_werror_flag"
13342 || test ! -s conftest.err'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try
='test -s conftest$ac_exeext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_func___cxa_atexit
=yes
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13359 ac_cv_func___cxa_atexit
=no
13361 rm -f conftest.err conftest.
$ac_objext \
13362 conftest
$ac_exeext conftest.
$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13365 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13366 if test $ac_cv_func___cxa_atexit = yes; then
13369 echo "__cxa_atexit can't be enabled on this target"
13375 # We can't check for __cxa_atexit when building a cross, so assume
13379 if test x
$use_cxa_atexit = xyes
; then
13381 cat >>confdefs.h
<<\_ACEOF
13382 #define DEFAULT_USE_CXA_ATEXIT 2
13389 if test x
$with_system_libunwind = xyes
; then
13390 if test x
$host = x
$target; then
13391 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13392 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13393 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 ac_func_search_save_LIBS
=$LIBS
13397 ac_cv_search__Unwind_GetIPInfo
=no
13398 cat >conftest.
$ac_ext <<_ACEOF
13401 cat confdefs.h
>>conftest.
$ac_ext
13402 cat >>conftest.
$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13405 /* Override any gcc2 internal prototype to avoid an error. */
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13411 char _Unwind_GetIPInfo ();
13415 _Unwind_GetIPInfo ();
13420 rm -f conftest.
$ac_objext conftest
$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>conftest.er1
13424 grep -v '^ *+' conftest.er1
>conftest.err
13426 cat conftest.err
>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try
='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try
='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_search__Unwind_GetIPInfo
="none required"
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.
$ac_ext >&5
13448 rm -f conftest.err conftest.
$ac_objext \
13449 conftest
$ac_exeext conftest.
$ac_ext
13450 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
13451 for ac_lib
in unwind
; do
13452 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13453 cat >conftest.
$ac_ext <<_ACEOF
13456 cat confdefs.h
>>conftest.
$ac_ext
13457 cat >>conftest.
$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13460 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13466 char _Unwind_GetIPInfo ();
13470 _Unwind_GetIPInfo ();
13475 rm -f conftest.
$ac_objext conftest
$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1
>conftest.err
13481 cat conftest.err
>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try
='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try
='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13504 rm -f conftest.err conftest.
$ac_objext \
13505 conftest
$ac_exeext conftest.
$ac_ext
13508 LIBS
=$ac_func_search_save_LIBS
13510 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13511 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13512 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
13513 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13522 if test x
$use_getipinfo = xyes
; then
13524 cat >>confdefs.h
<<\_ACEOF
13525 #define HAVE_GETIPINFO 1
13529 echo "The system unwind library does not support _Unwind_GetIPInfo."
13532 # Look for a file containing extra machine modes.
13533 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13534 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13537 cat >>confdefs.h
<<_ACEOF
13538 #define EXTRA_MODES_FILE "config/$extra_modes"
13543 # Convert extra_options into a form suitable for Makefile use.
13545 for f
in $extra_options; do
13546 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13550 # auto-host.h is the file containing items generated by autoconf and is
13551 # the first file included by config.h.
13552 # If host=build, it is correct to have bconfig include auto-host.h
13553 # as well. If host!=build, we are in error and need to do more
13554 # work to find out the build config parameters.
13555 if test x
$host = x
$build
13557 build_auto
=auto-host.h
13559 # We create a subdir, then run autoconf in the subdir.
13560 # To prevent recursion we set host and build for the new
13561 # invocation of configure to the build for this invocation
13568 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13569 *) realsrcdir
=..
/${srcdir};;
13571 saved_CFLAGS
="${CFLAGS}"
13572 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13573 ${realsrcdir}/configure \
13574 --enable-languages=${enable_languages-all} \
13575 --target=$target_alias --host=$build_alias --build=$build_alias
13576 CFLAGS
="${saved_CFLAGS}"
13578 # We just finished tests for the build machine, so rename
13579 # the file auto-build.h in the gcc directory.
13580 mv auto-host.h ..
/auto-build.h
13583 build_auto
=auto-build.h
13587 tm_file
="${tm_file} defaults.h"
13588 tm_p_file
="${tm_p_file} tm-preds.h"
13589 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13590 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13591 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13592 # put this back in temporarily.
13593 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13599 # Compile in configure arguments.
13600 if test -f configargs.h
; then
13601 # Being re-configured.
13602 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13603 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13605 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13608 # Double all backslashes and backslash all quotes to turn
13609 # gcc_config_arguments into a C string.
13610 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13611 $gcc_config_arguments
13613 gcc_config_arguments_str
=`cat conftest.out`
13616 cat > configargs.h
<<EOF
13617 /* Generated automatically. */
13618 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13619 static const char thread_model[] = "$thread_file";
13621 static const struct {
13622 const char *name, *value;
13623 } configure_default_options[] = $configure_default_options;
13626 # Internationalization
13627 # If we haven't got the data from the intl directory,
13628 # assume NLS is disabled.
13637 if test -f ..
/intl
/config.intl
; then
13638 . ..
/intl
/config.intl
13640 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13641 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13642 if test x
"$USE_NLS" != xyes
; then
13643 echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6
13646 echo "$as_me:$LINENO: result: yes" >&5
13647 echo "${ECHO_T}yes" >&6
13649 cat >>confdefs.h
<<\_ACEOF
13650 #define ENABLE_NLS 1
13654 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13655 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13656 # Look for .po and .gmo files in the source directory.
13659 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13660 # If there aren't any .gmo files the shell will give us the
13661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13663 case "$cat" in *\
**)
13666 # The quadruple backslash is collapsed to a double backslash
13667 # by the backticks, then collapsed again by the double quotes,
13668 # leaving us with one backslash in the sed expression (right
13669 # before the dot that mustn't act as a wildcard).
13670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13671 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13672 # The user is allowed to set LINGUAS to a list of languages to
13673 # install catalogs for. If it's empty that means "all of them."
13674 if test "x$LINGUAS" = x
; then
13675 CATALOGS
="$CATALOGS $cat"
13676 XLINGUAS
="$XLINGUAS $lang"
13678 case "$LINGUAS" in *$lang*)
13679 CATALOGS
="$CATALOGS $cat"
13680 XLINGUAS
="$XLINGUAS $lang"
13685 LINGUAS
="$XLINGUAS"
13686 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13687 echo "${ECHO_T}$LINGUAS" >&6
13700 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13701 # -liconv on the link line twice.
13702 case "$LIBINTL" in *$LIBICONV*)
13706 # Check whether --enable-secureplt or --disable-secureplt was given.
13707 if test "${enable_secureplt+set}" = set; then
13708 enableval
="$enable_secureplt"
13712 # Windows32 Registry support for specifying GCC installation paths.
13713 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13714 if test "${enable_win32_registry+set}" = set; then
13715 enableval
="$enable_win32_registry"
13720 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13721 if test "x$enable_win32_registry" != xno
; then
13722 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13723 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13724 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 ac_func_search_save_LIBS
=$LIBS
13728 ac_cv_search_RegOpenKeyExA
=no
13729 cat >conftest.
$ac_ext <<_ACEOF
13732 cat confdefs.h
>>conftest.
$ac_ext
13733 cat >>conftest.
$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13736 /* Override any gcc2 internal prototype to avoid an error. */
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742 char RegOpenKeyExA ();
13751 rm -f conftest.
$ac_objext conftest
$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753 (eval $ac_link) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1
>conftest.err
13757 cat conftest.err
>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try
='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try
='test -s conftest$ac_exeext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_search_RegOpenKeyExA
="none required"
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.
$ac_ext >&5
13779 rm -f conftest.err conftest.
$ac_objext \
13780 conftest
$ac_exeext conftest.
$ac_ext
13781 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13782 for ac_lib
in advapi32
; do
13783 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any gcc2 internal prototype to avoid an error. */
13795 /* We use char because int might match the return type of a gcc2
13796 builtin and then its argument prototype would still apply. */
13797 char RegOpenKeyExA ();
13806 rm -f conftest.
$ac_objext conftest
$ac_exeext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808 (eval $ac_link) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try
='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try
='test -s conftest$ac_exeext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.
$ac_ext >&5
13835 rm -f conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13839 LIBS
=$ac_func_search_save_LIBS
13841 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13842 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13843 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13844 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13847 enable_win32_registry
=no
13852 if test "x$enable_win32_registry" != xno
; then
13854 cat >>confdefs.h
<<\_ACEOF
13855 #define ENABLE_WIN32_REGISTRY 1
13859 if test "x$enable_win32_registry" != xyes \
13860 && test "x$enable_win32_registry" != x
; then
13862 cat >>confdefs.h
<<_ACEOF
13863 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13871 # Get an absolute path to the GCC top-level source directory
13872 holddir
=`${PWDCMD-pwd}`
13874 topdir
=`${PWDCMD-pwd}`
13877 # Conditionalize the makefile for this host machine.
13879 for f
in ${host_xmake_file}
13881 if test -f ${srcdir}/config
/$f
13883 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13887 # Conditionalize the makefile for this target machine.
13889 for f
in ${tmake_file}
13891 if test -f ${srcdir}/config
/$f
13893 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13896 tmake_file
="${tmake_file_}"
13898 # This is a terrible hack which will go away some day.
13899 host_cc_for_libada
=${CC}
13902 out_object_file
=`basename $out_file .c`.o
13904 tm_file_list
="options.h"
13905 tm_include_list
="options.h"
13906 for f
in $tm_file; do
13909 f
=`echo $f | sed 's/^..//'`
13910 tm_file_list
="${tm_file_list} $f"
13911 tm_include_list
="${tm_include_list} $f"
13914 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13915 tm_include_list
="${tm_include_list} $f"
13918 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13919 tm_include_list
="${tm_include_list} config/$f"
13926 for f
in $tm_p_file; do
13929 tm_p_file_list
="${tm_p_file_list} $f"
13930 tm_p_include_list
="${tm_p_include_list} $f"
13933 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13934 tm_p_include_list
="${tm_p_include_list} config/$f"
13940 for f
in $xm_file; do
13943 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13944 xm_include_list
="${xm_include_list} $f"
13947 xm_file_list
="${xm_file_list} $f"
13948 xm_include_list
="${xm_include_list} $f"
13951 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13952 xm_include_list
="${xm_include_list} config/$f"
13958 host_xm_include_list
=
13959 for f
in $host_xm_file; do
13962 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13963 host_xm_include_list
="${host_xm_include_list} $f"
13966 host_xm_file_list
="${host_xm_file_list} $f"
13967 host_xm_include_list
="${host_xm_include_list} $f"
13970 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13971 host_xm_include_list
="${host_xm_include_list} config/$f"
13976 build_xm_file_list
=
13977 for f
in $build_xm_file; do
13980 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13981 build_xm_include_list
="${build_xm_include_list} $f"
13983 auto-build.h | auto-host.h
)
13984 build_xm_file_list
="${build_xm_file_list} $f"
13985 build_xm_include_list
="${build_xm_include_list} $f"
13988 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13989 build_xm_include_list
="${build_xm_include_list} config/$f"
13994 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13995 # cross-compiler which does not use the native headers and libraries.
13996 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13999 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14001 if test "x$with_build_sysroot" != x
; then
14002 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14004 # This value is used, even on a native system, because
14005 # CROSS_SYSTEM_HEADER_DIR is just
14006 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14007 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
14010 if test x
$host != x
$target
14012 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
14014 SYSTEM_HEADER_DIR
=$build_system_header_dir
14015 case "$host","$target" in
14016 # Darwin crosses can use the host system's libraries and headers,
14017 # because of the fat library support. Of course, it must be the
14018 # same version of Darwin on both sides. Allow the user to
14019 # just say --target=foo-darwin without a version number to mean
14020 # "the version on this system".
14021 *-*-darwin*,*-*-darwin*)
14022 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
14023 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
14024 if test $hostos = $targetos -o $targetos = darwin
; then
14026 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14031 i?
86-*-*,x86_64-
*-* \
14032 | powerpc
*-*-*,powerpc64
*-*-*)
14033 CROSS
="$CROSS -DNATIVE_CROSS" ;;
14035 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
14036 SYSTEM_HEADER_DIR
=$build_system_header_dir
14039 # If this is a cross-compiler that does not
14040 # have its own set of headers then define
14043 # If this is using newlib, without having the headers available now,
14044 # then define inhibit_libc in LIBGCC2_CFLAGS.
14045 # This prevents libgcc2 from containing any code which requires libc
14047 : ${inhibit_libc=false}
14048 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
14049 test x
$with_newlib = xyes
; } &&
14050 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
14055 # When building gcc with a cross-compiler, we need to adjust things so
14056 # that the generator programs are still built with the native compiler.
14057 # Also, we cannot run fixincludes or fix-header.
14059 # These are the normal (build=host) settings:
14060 CC_FOR_BUILD
='$(CC)'
14061 BUILD_CFLAGS
='$(ALL_CFLAGS)'
14062 STMP_FIXINC
=stmp-fixinc
14064 # Possibly disable fixproto, on a per-target basis.
14065 case ${use_fixproto} in
14070 STMP_FIXPROTO
=stmp-fixproto
14075 # And these apply if build != host, or we are generating coverage data
14076 if test x
$build != x
$host ||
test "x$coverage_flags" != x
14078 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14080 if test "x$TARGET_SYSTEM_ROOT" = x
; then
14081 if test "x$STMP_FIXPROTO" != x
; then
14082 STMP_FIXPROTO
=stmp-install-fixproto
14087 # Expand extra_headers to include complete path.
14088 # This substitutes for lots of t-* files.
14089 extra_headers_list
=
14090 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14091 for file in ${extra_headers} ; do
14092 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14095 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14096 if test x
"$use_gcc_tgmath" = xyes
14097 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14100 # Define collect2 in Makefile.
14101 case $host_can_use_collect2 in
14103 *) collect2
='collect2$(exeext)' ;;
14107 # Add a definition of USE_COLLECT2 if system wants one.
14108 case $use_collect2 in
14109 no
) use_collect2
= ;;
14112 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
14113 xm_defines
="${xm_defines} USE_COLLECT2"
14114 case $host_can_use_collect2 in
14116 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14117 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14118 { (exit 1); exit 1; }; }
14124 # ---------------------------
14125 # Assembler & linker features
14126 # ---------------------------
14128 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14129 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14130 # However when ld-new is first executed from the build tree, libtool will
14131 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14132 # to the build tree. While doing this we need to use the previous-stage
14133 # linker, or we have an infinite loop. The presence of a shell script as
14134 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14135 # the gcc/collect-ld script. So we need to know how libtool works, or
14136 # exec-tool will fail.
14141 macro_version
='2.1a'
14142 macro_revision
='1.2435'
14155 ltmain
="$ac_aux_dir/ltmain.sh"
14162 enable_win32_dll
=no
14165 # Check whether --enable-shared or --disable-shared was given.
14166 if test "${enable_shared+set}" = set; then
14167 enableval
="$enable_shared"
14168 p
=${PACKAGE-default}
14170 yes) enable_shared
=yes ;;
14171 no
) enable_shared
=no
;;
14174 # Look at the argument we got. We use all the common list separators.
14175 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14176 for pkg
in $enableval; do
14178 if test "X$pkg" = "X$p"; then
14196 # Check whether --enable-static or --disable-static was given.
14197 if test "${enable_static+set}" = set; then
14198 enableval
="$enable_static"
14199 p
=${PACKAGE-default}
14201 yes) enable_static
=yes ;;
14202 no
) enable_static
=no
;;
14205 # Look at the argument we got. We use all the common list separators.
14206 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14207 for pkg
in $enableval; do
14209 if test "X$pkg" = "X$p"; then
14228 # Check whether --with-pic or --without-pic was given.
14229 if test "${with_pic+set}" = set; then
14230 withval
="$with_pic"
14231 pic_mode
="$withval"
14236 test -z "$pic_mode" && pic_mode
=default
14244 # Check whether --enable-fast-install or --disable-fast-install was given.
14245 if test "${enable_fast_install+set}" = set; then
14246 enableval
="$enable_fast_install"
14247 p
=${PACKAGE-default}
14249 yes) enable_fast_install
=yes ;;
14250 no
) enable_fast_install
=no
;;
14252 enable_fast_install
=no
14253 # Look at the argument we got. We use all the common list separators.
14254 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14255 for pkg
in $enableval; do
14257 if test "X$pkg" = "X$p"; then
14258 enable_fast_install
=yes
14265 enable_fast_install
=yes
14275 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14276 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14277 if test "${lt_cv_path_SED+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 # Loop through the user's path and test for sed and gsed.
14281 # Then use that list of sed's as ones to test for truncation.
14282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14283 for as_dir
in $PATH
14286 test -z "$as_dir" && as_dir
=.
14287 for lt_ac_prog
in sed gsed
; do
14288 for ac_exec_ext
in '' $ac_executable_extensions; do
14289 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14290 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14298 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14299 # along with /bin/sed that truncates output.
14300 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14301 test ! -f $lt_ac_sed && continue
14302 cat /dev
/null
> conftest.
in
14304 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14305 # Check for GNU sed and select it if it is found.
14306 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14307 lt_cv_path_SED
=$lt_ac_sed
14311 cat conftest.
in conftest.
in >conftest.tmp
14312 mv conftest.tmp conftest.
in
14313 cp conftest.
in conftest.
nl
14315 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14316 cmp -s conftest.out conftest.
nl ||
break
14317 # 10000 chars as input seems more than enough
14318 test $lt_ac_count -gt 10 && break
14319 lt_ac_count
=`expr $lt_ac_count + 1`
14320 if test $lt_ac_count -gt $lt_ac_max; then
14321 lt_ac_max
=$lt_ac_count
14322 lt_cv_path_SED
=$lt_ac_sed
14329 SED
=$lt_cv_path_SED
14331 echo "$as_me:$LINENO: result: $SED" >&5
14332 echo "${ECHO_T}$SED" >&6
14334 test -z "$SED" && SED
=sed
14335 Xsed
="$SED -e 1s/^X//"
14347 echo "$as_me:$LINENO: checking for fgrep" >&5
14348 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14349 if test "${ac_cv_prog_fgrep+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14353 then ac_cv_prog_fgrep
='grep -F'
14354 else ac_cv_prog_fgrep
='fgrep'
14357 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14358 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14359 FGREP
=$ac_cv_prog_fgrep
14362 test -z "$GREP" && GREP
=grep
14382 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14383 if test "${with_gnu_ld+set}" = set; then
14384 withval
="$with_gnu_ld"
14385 test "$withval" = no || with_gnu_ld
=yes
14390 if test "$GCC" = yes; then
14391 # Check if gcc -print-prog-name=ld gives a path.
14392 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14393 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14396 # gcc leaves a trailing carriage return which upsets mingw
14397 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14399 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14402 # Accept absolute paths.
14404 re_direlt
='/[^/][^/]*/\.\./'
14405 # Canonicalize the pathname of ld
14406 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14407 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14408 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14410 test -z "$LD" && LD
="$ac_prog"
14413 # If it fails, then pretend we aren't using GCC.
14417 # If it is relative, then search for the first ld in PATH.
14418 with_gnu_ld
=unknown
14421 elif test "$with_gnu_ld" = yes; then
14422 echo "$as_me:$LINENO: checking for GNU ld" >&5
14423 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14425 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14426 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14428 if test "${lt_cv_path_LD+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 if test -z "$LD"; then
14432 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14433 for ac_dir
in $PATH; do
14435 test -z "$ac_dir" && ac_dir
=.
14436 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14437 lt_cv_path_LD
="$ac_dir/$ac_prog"
14438 # Check to see if the program is GNU ld. I'd rather use --version,
14439 # but apparently some variants of GNU ld only accept -v.
14440 # Break only if it was the GNU/non-GNU ld that we prefer.
14441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14442 *GNU
* |
*'with BFD'*)
14443 test "$with_gnu_ld" != no
&& break
14446 test "$with_gnu_ld" != yes && break
14453 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14457 LD
="$lt_cv_path_LD"
14458 if test -n "$LD"; then
14459 echo "$as_me:$LINENO: result: $LD" >&5
14460 echo "${ECHO_T}$LD" >&6
14462 echo "$as_me:$LINENO: result: no" >&5
14463 echo "${ECHO_T}no" >&6
14465 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14466 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14467 { (exit 1); exit 1; }; }
14468 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14469 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14470 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14474 case `$LD -v 2>&1 </dev/null` in
14475 *GNU
* |
*'with BFD'*)
14476 lt_cv_prog_gnu_ld
=yes
14479 lt_cv_prog_gnu_ld
=no
14483 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14484 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14485 with_gnu_ld
=$lt_cv_prog_gnu_ld
14496 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14497 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14498 if test "${lt_cv_path_NM+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 if test -n "$NM"; then
14502 # Let the user override the test.
14503 lt_cv_path_NM
="$NM"
14505 lt_nm_to_check
="${ac_tool_prefix}nm"
14506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14507 lt_nm_to_check
="$lt_nm_to_check nm"
14509 for lt_tmp_nm
in $lt_nm_to_check; do
14510 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14511 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14513 test -z "$ac_dir" && ac_dir
=.
14514 tmp_nm
="$ac_dir/$lt_tmp_nm"
14515 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14516 # Check to see if the nm accepts a BSD-compat flag.
14517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14518 # nm: unknown option "B" ignored
14519 # Tru64's nm complains that /dev/null is an invalid object file
14520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14521 */dev
/null
* |
*'Invalid file or object type'*)
14522 lt_cv_path_NM
="$tmp_nm -B"
14526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14528 lt_cv_path_NM
="$tmp_nm -p"
14532 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14533 continue # so that we can try to find one that supports BSD flags
14542 : ${lt_cv_path_NM=no}
14545 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14546 echo "${ECHO_T}$lt_cv_path_NM" >&6
14547 if test "$lt_cv_path_NM" != "no"; then
14548 NM
="$lt_cv_path_NM"
14550 # Didn't find any BSD compatible name lister, look for dumpbin.
14551 if test -n "$ac_tool_prefix"; then
14552 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14555 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14556 echo "$as_me:$LINENO: checking for $ac_word" >&5
14557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14558 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 if test -n "$DUMPBIN"; then
14562 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14565 for as_dir
in $PATH
14568 test -z "$as_dir" && as_dir
=.
14569 for ac_exec_ext
in '' $ac_executable_extensions; do
14570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14571 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 DUMPBIN
=$ac_cv_prog_DUMPBIN
14581 if test -n "$DUMPBIN"; then
14582 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14583 echo "${ECHO_T}$DUMPBIN" >&6
14585 echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6
14589 test -n "$DUMPBIN" && break
14592 if test -z "$DUMPBIN"; then
14593 ac_ct_DUMPBIN
=$DUMPBIN
14594 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14596 # Extract the first word of "$ac_prog", so it can be a program name with args.
14597 set dummy
$ac_prog; ac_word
=$2
14598 echo "$as_me:$LINENO: checking for $ac_word" >&5
14599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14600 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 if test -n "$ac_ct_DUMPBIN"; then
14604 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14607 for as_dir
in $PATH
14610 test -z "$as_dir" && as_dir
=.
14611 for ac_exec_ext
in '' $ac_executable_extensions; do
14612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14613 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14623 if test -n "$ac_ct_DUMPBIN"; then
14624 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14625 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14627 echo "$as_me:$LINENO: result: no" >&5
14628 echo "${ECHO_T}no" >&6
14631 test -n "$ac_ct_DUMPBIN" && break
14633 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14635 DUMPBIN
=$ac_ct_DUMPBIN
14639 if test "$DUMPBIN" != ":"; then
14643 test -z "$NM" && NM
=nm
14650 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14651 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14652 if test "${lt_cv_nm_interface+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 lt_cv_nm_interface
="BSD nm"
14656 echo "int some_variable = 0;" > conftest.
$ac_ext
14657 (eval echo "\"\$as_me:14657: $ac_compile\"" >&5)
14658 (eval "$ac_compile" 2>conftest.err
)
14659 cat conftest.err
>&5
14660 (eval echo "\"\$as_me:14660: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14661 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14662 cat conftest.err
>&5
14663 (eval echo "\"\$as_me:14663: output\"" >&5)
14664 cat conftest.out
>&5
14665 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14666 lt_cv_nm_interface
="MS dumpbin"
14670 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14671 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14673 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14674 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14676 if test "$LN_S" = "ln -s"; then
14677 echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6
14680 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14681 echo "${ECHO_T}no, using $LN_S" >&6
14684 # find the maximum length of command line arguments
14685 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14686 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14687 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 # On DJGPP, this test can blow up pretty badly due to problems in libc
14696 # (any single argument exceeding 2000 bytes causes a buffer overrun
14697 # during glob expansion). Even if it were fixed, the result of this
14698 # check would be larger than it should be.
14699 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14703 # Under GNU Hurd, this test is not required because there is
14704 # no limit to the length of command line arguments.
14705 # Libtool will interpret -1 as no limit whatsoever
14706 lt_cv_sys_max_cmd_len
=-1;
14710 # On Win9x/ME, this test blows up -- it succeeds, but takes
14711 # about 5 minutes as the teststring grows exponentially.
14712 # Worse, since 9x/ME are not pre-emptively multitasking,
14713 # you end up with a "frozen" computer, even though with patience
14714 # the test eventually succeeds (with a max line length of 256k).
14715 # Instead, let's just punt: use the minimum linelength reported by
14716 # all of the supported platforms: 8192 (on NT/2K/XP).
14717 lt_cv_sys_max_cmd_len
=8192;
14721 # On AmigaOS with pdksh, this test takes hours, literally.
14722 # So we just punt and use a minimum line length of 8192.
14723 lt_cv_sys_max_cmd_len
=8192;
14726 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14727 # This has been around since 386BSD, at least. Likely further.
14728 if test -x /sbin
/sysctl
; then
14729 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14730 elif test -x /usr
/sbin
/sysctl
; then
14731 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14733 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14735 # And add a safety zone
14736 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14737 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14741 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14742 lt_cv_sys_max_cmd_len
=196608
14746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14748 # nice to cause kernel panics so lets avoid the loop below.
14749 # First set a reasonable default.
14750 lt_cv_sys_max_cmd_len
=16384
14752 if test -x /sbin
/sysconfig
; then
14753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14754 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14759 lt_cv_sys_max_cmd_len
=102400
14761 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14762 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14763 if test -n "$kargmax"; then
14764 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14766 lt_cv_sys_max_cmd_len
=32768
14770 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
14771 if test -n $lt_cv_sys_max_cmd_len; then
14772 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14773 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14775 # Make teststring a little bigger before we do anything with it.
14776 # a 1K string should be a reasonable start.
14777 for i
in 1 2 3 4 5 6 7 8 ; do
14778 teststring
=$teststring$teststring
14780 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14781 # If test is not a shell built-in, we'll probably end up computing a
14782 # maximum length that is only half of the actual maximum length, but
14784 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14785 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14786 test $i != 17 # 1/2 MB should be enough
14789 teststring
=$teststring$teststring
14791 # Only check the string length outside the loop.
14792 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14794 # Add a significant safety factor because C++ compilers can tack on
14795 # massive amounts of additional arguments before passing them to the
14796 # linker. It appears as though 1/2 is a usable value.
14797 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14804 if test -n $lt_cv_sys_max_cmd_len ; then
14805 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14806 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14808 echo "$as_me:$LINENO: result: none" >&5
14809 echo "${ECHO_T}none" >&6
14811 max_cmd_len
=$lt_cv_sys_max_cmd_len
14823 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14824 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14825 # Try some XSI features
14827 ( _lt_dummy
="a/b/c"
14828 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14829 = c,a/b,, ) >/dev/null 2>&1 \
14831 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14832 echo "${ECHO_T}$xsi_shell" >&6
14835 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14836 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14838 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14840 && lt_shell_append=yes
14841 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14842 echo "${ECHO_T}$lt_shell_append" >&6
14845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14855 # test EBCDIC or ASCII
14856 case `echo X|tr X '\101'` in
14857 A) # ASCII based system
14858 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14859 lt_SP2NL='tr \040 \012'
14860 lt_NL2SP='tr \015\012 \040\040'
14862 *) # EBCDIC based system
14863 lt_SP2NL='tr \100 \n'
14864 lt_NL2SP='tr \r\n \100\100'
14876 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14877 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14878 if test "${lt_cv_ld_reload_flag+set}" = set; then
14879 echo $ECHO_N "(cached
) $ECHO_C" >&6
14881 lt_cv_ld_reload_flag='-r'
14883 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14884 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14885 reload_flag=$lt_cv_ld_reload_flag
14886 case $reload_flag in
14888 *) reload_flag=" $reload_flag" ;;
14890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14893 if test "$GCC" = yes; then
14894 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14896 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14910 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14911 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14912 if test "${lt_cv_deplibs_check_method+set}" = set; then
14913 echo $ECHO_N "(cached
) $ECHO_C" >&6
14915 lt_cv_file_magic_cmd='$MAGIC_CMD'
14916 lt_cv_file_magic_test_file=
14917 lt_cv_deplibs_check_method='unknown'
14918 # Need to set the preceding variable on all platforms that support
14919 # interlibrary dependencies.
14920 # 'none' -- dependencies not supported.
14921 # `unknown' -- same as none, but documents that we really don't know.
14922 # 'pass_all' -- all dependencies passed with no checks.
14923 # 'test_compile' -- check by making test program.
14924 # 'file_magic [[regex]]' -- check by looking for files in library path
14925 # which responds to the $file_magic_cmd with a given extended regex.
14926 # If you have `file' or equivalent on your system and you're not sure
14927 # whether `pass_all' will *always* work, you probably want this one.
14931 lt_cv_deplibs_check_method=pass_all
14935 lt_cv_deplibs_check_method=pass_all
14939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14940 lt_cv_file_magic_cmd='/usr/bin/file -L'
14941 lt_cv_file_magic_test_file=/shlib/libc.so
14945 # func_win32_libid is a shell function defined in ltmain.sh
14946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14947 lt_cv_file_magic_cmd='func_win32_libid'
14951 # Base MSYS/MinGW do not provide the 'file' command needed by
14952 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14953 # unless we find 'file', for example because we are cross-compiling.
14954 if ( file / ) >/dev/null 2>&1; then
14955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14956 lt_cv_file_magic_cmd='func_win32_libid'
14958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14959 lt_cv_file_magic_cmd='$OBJDUMP -f'
14963 darwin* | rhapsody*)
14964 lt_cv_deplibs_check_method=pass_all
14967 freebsd* | dragonfly*)
14968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14971 # Not sure whether the presence of OpenBSD here was a mistake.
14972 # Let's accept both of them until this is cleared up.
14973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14974 lt_cv_file_magic_cmd=/usr/bin/file
14975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14979 lt_cv_deplibs_check_method=pass_all
14984 lt_cv_deplibs_check_method=pass_all
14987 hpux10.20* | hpux11*)
14988 lt_cv_file_magic_cmd=/usr/bin/file
14991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14995 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]'
14996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15010 irix5* | irix6* | nonstopux*)
15012 *-32|*"-32 ") libmagic=32-bit;;
15013 *-n32|*"-n32 ") libmagic=N32;;
15014 *-64|*"-64 ") libmagic=64-bit;;
15015 *) libmagic=never-match;;
15017 lt_cv_deplibs_check_method=pass_all
15020 # This must be Linux ELF.
15021 linux* | k*bsd*-gnu)
15022 lt_cv_deplibs_check_method=pass_all
15026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15035 lt_cv_file_magic_cmd=/usr/bin/file
15036 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15040 lt_cv_deplibs_check_method=pass_all
15044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
15045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15051 osf3* | osf4* | osf5*)
15052 lt_cv_deplibs_check_method=pass_all
15056 lt_cv_deplibs_check_method=pass_all
15060 lt_cv_deplibs_check_method=pass_all
15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15064 lt_cv_deplibs_check_method=pass_all
15068 case $host_vendor in
15070 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]'
15071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15074 lt_cv_deplibs_check_method=pass_all
15077 lt_cv_file_magic_cmd='/bin/file'
15078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15081 lt_cv_file_magic_cmd='/bin/file'
15082 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15083 lt_cv_file_magic_test_file=/lib/libc.so
15086 lt_cv_deplibs_check_method=pass_all
15089 lt_cv_deplibs_check_method=pass_all
15095 lt_cv_deplibs_check_method=pass_all
15100 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
15101 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15102 file_magic_cmd=$lt_cv_file_magic_cmd
15103 deplibs_check_method=$lt_cv_deplibs_check_method
15104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15117 if test -n "$ac_tool_prefix"; then
15118 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15119 set dummy ${ac_tool_prefix}ar; ac_word=$2
15120 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15121 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15122 if test "${ac_cv_prog_AR+set}" = set; then
15123 echo $ECHO_N "(cached
) $ECHO_C" >&6
15125 if test -n "$AR"; then
15126 ac_cv_prog_AR="$AR" # Let the user override the test.
15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in $PATH
15132 test -z "$as_dir" && as_dir=.
15133 for ac_exec_ext in '' $ac_executable_extensions; do
15134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135 ac_cv_prog_AR="${ac_tool_prefix}ar"
15136 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15145 if test -n "$AR"; then
15146 echo "$as_me:$LINENO: result
: $AR" >&5
15147 echo "${ECHO_T}$AR" >&6
15149 echo "$as_me:$LINENO: result
: no
" >&5
15150 echo "${ECHO_T}no
" >&6
15154 if test -z "$ac_cv_prog_AR"; then
15156 # Extract the first word of "ar", so it can be a program name with args.
15157 set dummy ar; ac_word=$2
15158 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15159 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15161 echo $ECHO_N "(cached
) $ECHO_C" >&6
15163 if test -n "$ac_ct_AR"; then
15164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15170 test -z "$as_dir" && as_dir=.
15171 for ac_exec_ext in '' $ac_executable_extensions; do
15172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173 ac_cv_prog_ac_ct_AR="ar"
15174 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15180 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15184 if test -n "$ac_ct_AR"; then
15185 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15186 echo "${ECHO_T}$ac_ct_AR" >&6
15188 echo "$as_me:$LINENO: result
: no
" >&5
15189 echo "${ECHO_T}no
" >&6
15194 AR="$ac_cv_prog_AR"
15197 test -z "$AR" && AR=ar
15198 test -z "$AR_FLAGS" && AR_FLAGS=cru
15210 if test -n "$ac_tool_prefix"; then
15211 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15212 set dummy ${ac_tool_prefix}strip; ac_word=$2
15213 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15214 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15215 if test "${ac_cv_prog_STRIP+set}" = set; then
15216 echo $ECHO_N "(cached
) $ECHO_C" >&6
15218 if test -n "$STRIP"; then
15219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15222 for as_dir in $PATH
15225 test -z "$as_dir" && as_dir=.
15226 for ac_exec_ext in '' $ac_executable_extensions; do
15227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15228 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15229 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15237 STRIP=$ac_cv_prog_STRIP
15238 if test -n "$STRIP"; then
15239 echo "$as_me:$LINENO: result
: $STRIP" >&5
15240 echo "${ECHO_T}$STRIP" >&6
15242 echo "$as_me:$LINENO: result
: no
" >&5
15243 echo "${ECHO_T}no
" >&6
15247 if test -z "$ac_cv_prog_STRIP"; then
15249 # Extract the first word of "strip
", so it can be a program name with args.
15250 set dummy strip; ac_word=$2
15251 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15252 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15253 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15254 echo $ECHO_N "(cached
) $ECHO_C" >&6
15256 if test -n "$ac_ct_STRIP"; then
15257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $PATH
15263 test -z "$as_dir" && as_dir=.
15264 for ac_exec_ext in '' $ac_executable_extensions; do
15265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266 ac_cv_prog_ac_ct_STRIP="strip
"
15267 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15273 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15277 if test -n "$ac_ct_STRIP"; then
15278 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15279 echo "${ECHO_T}$ac_ct_STRIP" >&6
15281 echo "$as_me:$LINENO: result
: no
" >&5
15282 echo "${ECHO_T}no
" >&6
15287 STRIP="$ac_cv_prog_STRIP"
15290 test -z "$STRIP" && STRIP=:
15297 if test -n "$ac_tool_prefix"; then
15298 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15300 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15301 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15302 if test "${ac_cv_prog_RANLIB+set}" = set; then
15303 echo $ECHO_N "(cached
) $ECHO_C" >&6
15305 if test -n "$RANLIB"; then
15306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15309 for as_dir in $PATH
15312 test -z "$as_dir" && as_dir=.
15313 for ac_exec_ext in '' $ac_executable_extensions; do
15314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15316 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15324 RANLIB=$ac_cv_prog_RANLIB
15325 if test -n "$RANLIB"; then
15326 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15327 echo "${ECHO_T}$RANLIB" >&6
15329 echo "$as_me:$LINENO: result
: no
" >&5
15330 echo "${ECHO_T}no
" >&6
15334 if test -z "$ac_cv_prog_RANLIB"; then
15335 ac_ct_RANLIB=$RANLIB
15336 # Extract the first word of "ranlib
", so it can be a program name with args.
15337 set dummy ranlib; ac_word=$2
15338 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15339 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15341 echo $ECHO_N "(cached
) $ECHO_C" >&6
15343 if test -n "$ac_ct_RANLIB"; then
15344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347 for as_dir in $PATH
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15354 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15360 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15364 if test -n "$ac_ct_RANLIB"; then
15365 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15368 echo "$as_me:$LINENO: result
: no
" >&5
15369 echo "${ECHO_T}no
" >&6
15372 RANLIB=$ac_ct_RANLIB
15374 RANLIB="$ac_cv_prog_RANLIB"
15377 test -z "$RANLIB" && RANLIB=:
15384 # Determine commands to create old-style static archives.
15385 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15386 old_postinstall_cmds='chmod 644 $oldlib'
15387 old_postuninstall_cmds=
15389 if test -n "$RANLIB"; then
15392 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15395 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15398 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15434 # If no C compiler was specified, use CC.
15437 # If no C compiler flags were specified, use CFLAGS.
15438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15440 # Allow CC to be a program name with arguments.
15444 # Check for command to grab the raw symbol name followed by C symbol from nm.
15445 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15446 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15448 echo $ECHO_N "(cached
) $ECHO_C" >&6
15451 # These are sane defaults that work on at least a few old systems.
15452 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15454 # Character class describing NM global symbol codes.
15455 symcode='[BCDEGRST]'
15457 # Regexp to match symbols that can be accessed directly from C.
15458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15460 # Define system-specific variables.
15465 cygwin* | mingw* | pw32*)
15466 symcode='[ABCDGISTW]'
15469 if test "$host_cpu" = ia64; then
15470 symcode='[ABCDEGRST]'
15473 irix* | nonstopux*)
15474 symcode='[BCDEGRST]'
15477 symcode='[BCDEGQRST]'
15488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15496 # If we're using GNU nm, then use its standard symbol codes.
15497 case `$NM -V 2>&1` in
15498 *GNU* | *'with BFD'*)
15499 symcode='[ABCDGIRSTW]' ;;
15502 # Transform an extracted symbol line into a proper C declaration.
15503 # Some systems (esp. on ia64) link data and code symbols differently,
15504 # so use this general approach.
15505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15507 # Transform an extracted symbol line into symbol name and symbol address
15508 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15510 # Handle CRLF in mingw tool chain
15514 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15518 # Try without a prefix underscore, then with it.
15519 for ac_symprfx in "" "_
"; do
15521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15522 symxfrm="\\1 $ac_symprfx\\2 \\2"
15524 # Write the raw and C identifiers.
15525 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15526 # Fake it for dumpbin and say T for any non-static function
15527 # and D for any global variable.
15528 # Also find C++ and __fastcall symbols from MSVC++,
15529 # which start with @ or ?.
15530 lt_cv_sys_global_symbol_pipe="$AWK '"\
15531 " {last_section=section; section=\$ 3};"\
15532 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15533 " \$ 0!~/External *\|/{next};"\
15534 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15535 " {if(hide[section]) next};"\
15536 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15537 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15538 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15539 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15540 " ' prfx
=^
$ac_symprfx"
15542 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15545 # Check to see that the pipe works correctly.
15549 cat > conftest.$ac_ext <<_LT_EOF
15554 void nm_test_func(void);
15555 void nm_test_func(void){}
15559 int main(){nm_test_var='a';nm_test_func();return(0);}
15562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15566 (exit $ac_status); }; then
15567 # Now try to grab the symbols.
15569 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15573 (exit $ac_status); } && test -s "$nlist"; then
15574 # Try sorting and uniquifying the output.
15575 if sort "$nlist" | uniq > "$nlist"T; then
15576 mv -f "$nlist"T "$nlist"
15581 # Make sure that we snagged all the symbols we need.
15582 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15583 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15584 cat <<_LT_EOF > conftest.$ac_ext
15590 # Now generate the symbol file.
15591 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15593 cat <<_LT_EOF >> conftest.$ac_ext
15595 /* The mapping between symbol names and symbols. */
15600 lt__PROGRAM__LTX_preloaded_symbols[] =
15602 { "@PROGRAM@
", (void *) 0 },
15604 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15605 cat <<\_LT_EOF >> conftest.$ac_ext
15609 /* This works around a problem in FreeBSD linker */
15610 #ifdef FREEBSD_WORKAROUND
15611 static const void *lt_preloaded_setup() {
15612 return lt__PROGRAM__LTX_preloaded_symbols;
15620 # Now try linking the two files.
15621 mv conftest.$ac_objext conftstm.$ac_objext
15622 lt_save_LIBS="$LIBS"
15623 lt_save_CFLAGS="$CFLAGS"
15624 LIBS="conftstm.
$ac_objext"
15625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>&5
15629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15630 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15633 LIBS="$lt_save_LIBS"
15634 CFLAGS="$lt_save_CFLAGS"
15636 echo "cannot
find nm_test_func
in $nlist" >&5
15639 echo "cannot
find nm_test_var
in $nlist" >&5
15642 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15645 echo "$progname: failed program was
:" >&5
15646 cat conftest.$ac_ext >&5
15648 rm -f conftest* conftst*
15650 # Do not use the global_symbol_pipe unless it works.
15651 if test "$pipe_works" = yes; then
15654 lt_cv_sys_global_symbol_pipe=
15660 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15661 lt_cv_sys_global_symbol_to_cdecl=
15663 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15664 echo "$as_me:$LINENO: result
: failed
" >&5
15665 echo "${ECHO_T}failed
" >&6
15667 echo "$as_me:$LINENO: result
: ok
" >&5
15668 echo "${ECHO_T}ok
" >&6
15687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15688 if test "${enable_libtool_lock+set}" = set; then
15689 enableval="$enable_libtool_lock"
15692 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15694 # Some flags need to be propagated to the compiler or linker for good
15698 # Find out which ABI we are using.
15699 echo 'int i;' > conftest.$ac_ext
15700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15701 (eval $ac_compile) 2>&5
15703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15704 (exit $ac_status); }; then
15705 case `/usr/bin/file conftest.$ac_objext` in
15707 HPUX_IA64_MODE="32"
15710 HPUX_IA64_MODE="64"
15717 # Find out which ABI we are using.
15718 echo '#line 15718 "configure
"' > conftest.$ac_ext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720 (eval $ac_compile) 2>&5
15722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15723 (exit $ac_status); }; then
15724 if test "$lt_cv_prog_gnu_ld" = yes; then
15725 case `/usr/bin/file conftest.$ac_objext` in
15727 LD="${LD-ld} -melf32bsmip"
15730 LD="${LD-ld} -melf32bmipn32"
15733 LD="${LD-ld} -melf64bmip"
15737 case `/usr/bin/file conftest.$ac_objext` in
15753 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15754 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15755 # Find out which ABI we are using.
15756 echo 'int i;' > conftest.$ac_ext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>&5
15760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15761 (exit $ac_status); }; then
15762 case `/usr/bin/file conftest.o` in
15765 x86_64-*kfreebsd*-gnu)
15766 LD="${LD-ld} -m elf_i386_fbsd
"
15769 LD="${LD-ld} -m elf_i386
"
15771 ppc64-*linux*|powerpc64-*linux*)
15772 LD="${LD-ld} -m elf32ppclinux
"
15775 LD="${LD-ld} -m elf_s390
"
15778 LD="${LD-ld} -m elf32_sparc
"
15784 x86_64-*kfreebsd*-gnu)
15785 LD="${LD-ld} -m elf_x86_64_fbsd
"
15788 LD="${LD-ld} -m elf_x86_64
"
15790 ppc*-*linux*|powerpc*-*linux*)
15791 LD="${LD-ld} -m elf64ppc
"
15793 s390*-*linux*|s390*-*tpf*)
15794 LD="${LD-ld} -m elf64_s390
"
15797 LD="${LD-ld} -m elf64_sparc
"
15807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15808 SAVE_CFLAGS="$CFLAGS"
15809 CFLAGS="$CFLAGS -belf"
15810 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15811 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15812 if test "${lt_cv_cc_needs_belf+set}" = set; then
15813 echo $ECHO_N "(cached
) $ECHO_C" >&6
15816 ac_cpp='$CPP $CPPFLAGS'
15817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 lt_cv_cc_needs_belf=yes
15860 echo "$as_me: failed program was
:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 lt_cv_cc_needs_belf=no
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15868 ac_cpp='$CPP $CPPFLAGS'
15869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15878 CFLAGS="$SAVE_CFLAGS"
15882 # Find out which ABI we are using.
15883 echo 'int i;' > conftest.$ac_ext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15888 (exit $ac_status); }; then
15889 case `/usr/bin/file conftest.o` in
15891 case $lt_cv_prog_gnu_ld in
15892 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15893 *) LD="${LD-ld} -64" ;;
15902 need_locks="$enable_libtool_lock"
15905 for ac_header in dlfcn.h
15907 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15908 echo "$as_me:$LINENO: checking
for $ac_header" >&5
15909 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
15910 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
15911 echo $ECHO_N "(cached
) $ECHO_C" >&6
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <$ac_header>
15921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
15922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15928 (exit $ac_status); } >/dev/null; then
15929 if test -s conftest.err; then
15930 ac_cpp_err=$ac_c_preproc_warn_flag
15931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938 if test -z "$ac_cpp_err"; then
15939 eval "$as_ac_Header=yes"
15941 echo "$as_me: failed program was
:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 eval "$as_ac_Header=no
"
15946 rm -f conftest.err conftest.$ac_ext
15948 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
15949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15960 # This can be used to rebuild libtool when needed
15961 LIBTOOL_DEPS="$ltmain"
15963 # Always use our own libtool.
15964 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15990 test -z "$LN_S" && LN_S="ln -s"
16005 if test -n "${ZSH_VERSION+set}" ; then
16006 setopt NO_GLOB_SUBST
16009 echo "$as_me:$LINENO: checking
for objdir
" >&5
16010 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16011 if test "${lt_cv_objdir+set}" = set; then
16012 echo $ECHO_N "(cached
) $ECHO_C" >&6
16014 rm -f .libs 2>/dev/null
16015 mkdir .libs 2>/dev/null
16016 if test -d .libs; then
16019 # MS-DOS does not allow filenames that begin with a dot.
16022 rmdir .libs 2>/dev/null
16024 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16025 echo "${ECHO_T}$lt_cv_objdir" >&6
16026 objdir=$lt_cv_objdir
16032 cat >>confdefs.h <<_ACEOF
16033 #define LT_OBJDIR "$lt_cv_objdir/"
16054 # AIX sometimes has problems with the GCC collect2 program. For some
16055 # reason, if we set the COLLECT_NAMES environment variable, the problems
16056 # vanish in a puff of smoke.
16057 if test "X
${COLLECT_NAMES+set}" != Xset; then
16059 export COLLECT_NAMES
16064 # Sed substitution that helps us do robust quoting. It backslashifies
16065 # metacharacters that are still active within double-quoted strings.
16066 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16068 # Same as above, but do not quote variable references.
16069 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16071 # Sed substitution to delay expansion of an escaped shell variable in a
16072 # double_quote_subst'ed string.
16073 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16075 # Sed substitution to delay expansion of an escaped single quote.
16076 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16078 # Sed substitution to avoid accidental globbing in evaled expressions
16079 no_glob_subst
='s/\*/\\\*/g'
16081 # Global variables:
16083 can_build_shared
=yes
16085 # All known linkers require a `.a' archive for static linking (except MSVC,
16086 # which needs '.lib').
16089 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16092 old_CFLAGS
="$CFLAGS"
16094 # Set sane defaults for various variables
16095 test -z "$CC" && CC
=cc
16096 test -z "$LTCC" && LTCC
=$CC
16097 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16098 test -z "$LD" && LD
=ld
16099 test -z "$ac_objext" && ac_objext
=o
16101 for cc_temp
in $compiler""; do
16103 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16104 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16109 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16112 # Only perform the check for file, if the check method requires it
16113 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16114 case $deplibs_check_method in
16116 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16117 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16118 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16119 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16127 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16128 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16129 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16130 for ac_dir
in $ac_dummy; do
16132 test -z "$ac_dir" && ac_dir
=.
16133 if test -f $ac_dir/${ac_tool_prefix}file; then
16134 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16135 if test -n "$file_magic_test_file"; then
16136 case $deplibs_check_method in
16138 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16139 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16140 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16141 $EGREP "$file_magic_regex" > /dev
/null
; then
16146 *** Warning: the command libtool uses to detect shared libraries,
16147 *** $file_magic_cmd, produces output that libtool cannot recognize.
16148 *** The result is that libtool may fail to recognize shared libraries
16149 *** as such. This will affect the creation of libtool libraries that
16150 *** depend on shared libraries, but programs linked with such libtool
16151 *** libraries will work regardless of this problem. Nevertheless, you
16152 *** may want to report the problem to your system manager and/or to
16153 *** bug-libtool@gnu.org
16163 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16168 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16169 if test -n "$MAGIC_CMD"; then
16170 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16171 echo "${ECHO_T}$MAGIC_CMD" >&6
16173 echo "$as_me:$LINENO: result: no" >&5
16174 echo "${ECHO_T}no" >&6
16181 if test -z "$lt_cv_path_MAGIC_CMD"; then
16182 if test -n "$ac_tool_prefix"; then
16183 echo "$as_me:$LINENO: checking for file" >&5
16184 echo $ECHO_N "checking for file... $ECHO_C" >&6
16185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16193 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16194 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16195 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16196 for ac_dir
in $ac_dummy; do
16198 test -z "$ac_dir" && ac_dir
=.
16199 if test -f $ac_dir/file; then
16200 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16201 if test -n "$file_magic_test_file"; then
16202 case $deplibs_check_method in
16204 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16205 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16206 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16207 $EGREP "$file_magic_regex" > /dev
/null
; then
16212 *** Warning: the command libtool uses to detect shared libraries,
16213 *** $file_magic_cmd, produces output that libtool cannot recognize.
16214 *** The result is that libtool may fail to recognize shared libraries
16215 *** as such. This will affect the creation of libtool libraries that
16216 *** depend on shared libraries, but programs linked with such libtool
16217 *** libraries will work regardless of this problem. Nevertheless, you
16218 *** may want to report the problem to your system manager and/or to
16219 *** bug-libtool@gnu.org
16229 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16234 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16235 if test -n "$MAGIC_CMD"; then
16236 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16237 echo "${ECHO_T}$MAGIC_CMD" >&6
16239 echo "$as_me:$LINENO: result: no" >&5
16240 echo "${ECHO_T}no" >&6
16253 # Use C for the default configuration in the libtool script
16257 ac_cpp
='$CPP $CPPFLAGS'
16258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16263 # Source file extension for C test sources.
16266 # Object file extension for compiled C test sources.
16270 # Code to be used in simple compile tests
16271 lt_simple_compile_test_code
="int some_variable = 0;"
16273 # Code to be used in simple link tests
16274 lt_simple_link_test_code
='int main(){return(0);}'
16282 # If no C compiler was specified, use CC.
16285 # If no C compiler flags were specified, use CFLAGS.
16286 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16288 # Allow CC to be a program name with arguments.
16291 # Save the default compiler, since it gets overwritten when the other
16292 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16293 compiler_DEFAULT
=$CC
16295 # save warnings/boilerplate of simple test code
16296 ac_outfile
=conftest.
$ac_objext
16297 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16298 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16299 _lt_compiler_boilerplate
=`cat conftest.err`
16302 ac_outfile
=conftest.
$ac_objext
16303 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16304 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16305 _lt_linker_boilerplate
=`cat conftest.err`
16310 ## There is no encapsulation within the following macros, do not change
16311 ## the running order or otherwise move them around unless you know exactly
16312 ## what you are doing...
16313 if test -n "$compiler"; then
16315 lt_prog_compiler_no_builtin_flag
=
16317 if test "$GCC" = yes; then
16318 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16320 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16321 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16322 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 lt_cv_prog_compiler_rtti_exceptions
=no
16326 ac_outfile
=conftest.
$ac_objext
16327 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16328 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16329 # Insert the option either (1) after the last *FLAGS variable, or
16330 # (2) before a word containing "conftest.", or (3) at the end.
16331 # Note that $ac_compile itself does not contain backslashes and begins
16332 # with a dollar sign (not a hyphen), so the echo should work correctly.
16333 # The option is referenced via a variable to avoid confusing sed.
16334 lt_compile
=`echo "$ac_compile" | $SED \
16335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16337 -e 's:$: $lt_compiler_flag:'`
16338 (eval echo "\"\$as_me:16338: $lt_compile\"" >&5)
16339 (eval "$lt_compile" 2>conftest.err
)
16341 cat conftest.err
>&5
16342 echo "$as_me:16342: \$? = $ac_status" >&5
16343 if (exit $ac_status) && test -s "$ac_outfile"; then
16344 # The compiler can only warn and ignore the option if not recognized
16345 # So say no if there are warnings other than the usual output.
16346 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16347 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16348 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16349 lt_cv_prog_compiler_rtti_exceptions
=yes
16355 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16356 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16358 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16359 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16371 lt_prog_compiler_wl
=
16372 lt_prog_compiler_pic
=
16373 lt_prog_compiler_static
=
16375 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16378 if test "$GCC" = yes; then
16379 lt_prog_compiler_wl
='-Wl,'
16380 lt_prog_compiler_static
='-static'
16384 # All AIX code is PIC.
16385 if test "$host_cpu" = ia64
; then
16386 # AIX 5 now supports IA64 processor
16387 lt_prog_compiler_static
='-Bstatic'
16392 if test "$host_cpu" = m68k
; then
16393 # FIXME: we need at least 68020 code to build shared libraries, but
16394 # adding the `-m68020' flag to GCC prevents building anything better,
16396 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16400 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16401 # PIC is the default for these OSes.
16404 mingw
* | cygwin
* | pw32
* | os2
*)
16405 # This hack is so that the source file can tell whether it is being
16406 # built for inclusion in a dll (and should export symbols for example).
16407 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16408 # (--disable-auto-import) libraries
16409 lt_prog_compiler_pic
='-DDLL_EXPORT'
16412 darwin
* | rhapsody
*)
16413 # PIC is the default on this platform
16414 # Common symbols not allowed in MH_DYLIB files
16415 lt_prog_compiler_pic
='-fno-common'
16419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16420 # not for PA HP-UX.
16426 lt_prog_compiler_pic
='-fPIC'
16432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16433 # Instead, we relocate shared libraries at runtime.
16437 # Just because we use GCC doesn't mean we suddenly get shared libraries
16438 # on systems that don't support them.
16439 lt_prog_compiler_can_build_shared
=no
16444 # QNX uses GNU C++, but need to define -shared option too, otherwise
16445 # it will coredump.
16446 lt_prog_compiler_pic
='-fPIC -shared'
16450 if test -d /usr
/nec
; then
16451 lt_prog_compiler_pic
=-Kconform_pic
16456 lt_prog_compiler_pic
='-fPIC'
16460 # PORTME Check for flag to pass linker flags through the system compiler.
16463 lt_prog_compiler_wl
='-Wl,'
16464 if test "$host_cpu" = ia64
; then
16465 # AIX 5 now supports IA64 processor
16466 lt_prog_compiler_static
='-Bstatic'
16468 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16472 # PIC is the default on this platform
16473 # Common symbols not allowed in MH_DYLIB files
16474 case $cc_basename in
16476 lt_prog_compiler_pic
='-qnocommon'
16477 lt_prog_compiler_wl
='-Wl,'
16482 mingw
* | cygwin
* | pw32
* | os2
*)
16483 # This hack is so that the source file can tell whether it is being
16484 # built for inclusion in a dll (and should export symbols for example).
16485 lt_prog_compiler_pic
='-DDLL_EXPORT'
16488 hpux9
* | hpux10
* | hpux11
*)
16489 lt_prog_compiler_wl
='-Wl,'
16490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16491 # not for PA HP-UX.
16497 lt_prog_compiler_pic
='+Z'
16500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16501 lt_prog_compiler_static
='${wl}-a ${wl}archive'
16504 irix5
* | irix6
* | nonstopux
*)
16505 lt_prog_compiler_wl
='-Wl,'
16506 # PIC (with -KPIC) is the default.
16507 lt_prog_compiler_static
='-non_shared'
16510 linux
* | k
*bsd
*-gnu)
16511 case $cc_basename in
16513 lt_prog_compiler_wl
='-Wl,'
16514 lt_prog_compiler_pic
='-KPIC'
16515 lt_prog_compiler_static
='-static'
16517 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16518 # Portland Group compilers (*not* the Pentium gcc compiler,
16519 # which looks to be a dead project)
16520 lt_prog_compiler_wl
='-Wl,'
16521 lt_prog_compiler_pic
='-fpic'
16522 lt_prog_compiler_static
='-Bstatic'
16525 lt_prog_compiler_wl
='-Wl,'
16526 # All Alpha code is PIC.
16527 lt_prog_compiler_static
='-non_shared'
16530 case `$CC -V 2>&1 | sed 5q` in
16533 lt_prog_compiler_pic
='-KPIC'
16534 lt_prog_compiler_static
='-Bstatic'
16535 lt_prog_compiler_wl
='-Wl,'
16538 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16539 lt_prog_compiler_pic
='-KPIC'
16540 lt_prog_compiler_static
='-Bstatic'
16541 lt_prog_compiler_wl
=''
16549 lt_prog_compiler_pic
='-KPIC'
16550 lt_prog_compiler_static
='-Bstatic'
16554 # QNX uses GNU C++, but need to define -shared option too, otherwise
16555 # it will coredump.
16556 lt_prog_compiler_pic
='-fPIC -shared'
16559 osf3
* | osf4
* | osf5
*)
16560 lt_prog_compiler_wl
='-Wl,'
16561 # All OSF/1 code is PIC.
16562 lt_prog_compiler_static
='-non_shared'
16566 lt_prog_compiler_static
='-non_shared'
16570 lt_prog_compiler_pic
='-KPIC'
16571 lt_prog_compiler_static
='-Bstatic'
16572 case $cc_basename in
16573 f77
* | f90
* | f95
*)
16574 lt_prog_compiler_wl
='-Qoption ld ';;
16576 lt_prog_compiler_wl
='-Wl,';;
16581 lt_prog_compiler_wl
='-Qoption ld '
16582 lt_prog_compiler_pic
='-PIC'
16583 lt_prog_compiler_static
='-Bstatic'
16586 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16587 lt_prog_compiler_wl
='-Wl,'
16588 lt_prog_compiler_pic
='-KPIC'
16589 lt_prog_compiler_static
='-Bstatic'
16593 if test -d /usr
/nec
;then
16594 lt_prog_compiler_pic
='-Kconform_pic'
16595 lt_prog_compiler_static
='-Bstatic'
16599 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16600 lt_prog_compiler_wl
='-Wl,'
16601 lt_prog_compiler_pic
='-KPIC'
16602 lt_prog_compiler_static
='-Bstatic'
16606 lt_prog_compiler_wl
='-Wl,'
16607 lt_prog_compiler_can_build_shared
=no
16611 lt_prog_compiler_pic
='-pic'
16612 lt_prog_compiler_static
='-Bstatic'
16616 lt_prog_compiler_can_build_shared
=no
16622 # For platforms which do not support PIC, -DPIC is meaningless:
16624 lt_prog_compiler_pic
=
16627 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
16630 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16631 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16639 # Check to make sure the PIC flag actually works.
16641 if test -n "$lt_prog_compiler_pic"; then
16642 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16643 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16644 if test "${lt_prog_compiler_pic_works+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 lt_prog_compiler_pic_works
=no
16648 ac_outfile
=conftest.
$ac_objext
16649 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16650 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
16651 # Insert the option either (1) after the last *FLAGS variable, or
16652 # (2) before a word containing "conftest.", or (3) at the end.
16653 # Note that $ac_compile itself does not contain backslashes and begins
16654 # with a dollar sign (not a hyphen), so the echo should work correctly.
16655 # The option is referenced via a variable to avoid confusing sed.
16656 lt_compile
=`echo "$ac_compile" | $SED \
16657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16659 -e 's:$: $lt_compiler_flag:'`
16660 (eval echo "\"\$as_me:16660: $lt_compile\"" >&5)
16661 (eval "$lt_compile" 2>conftest.err
)
16663 cat conftest.err
>&5
16664 echo "$as_me:16664: \$? = $ac_status" >&5
16665 if (exit $ac_status) && test -s "$ac_outfile"; then
16666 # The compiler can only warn and ignore the option if not recognized
16667 # So say no if there are warnings other than the usual output.
16668 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16669 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16670 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16671 lt_prog_compiler_pic_works
=yes
16677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16678 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16680 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
16681 case $lt_prog_compiler_pic in
16683 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
16686 lt_prog_compiler_pic
=
16687 lt_prog_compiler_can_build_shared
=no
16698 # Check to make sure the static flag actually works.
16700 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
16701 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16702 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16703 if test "${lt_prog_compiler_static_works+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 lt_prog_compiler_static_works
=no
16707 save_LDFLAGS
="$LDFLAGS"
16708 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16709 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16710 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16711 # The linker can only warn and ignore the option if not recognized
16712 # So say no if there are warnings
16713 if test -s conftest.err
; then
16714 # Append any errors to the config.log.
16715 cat conftest.err
1>&5
16716 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16717 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16718 if diff conftest.exp conftest.er2
>/dev
/null
; then
16719 lt_prog_compiler_static_works
=yes
16722 lt_prog_compiler_static_works
=yes
16726 LDFLAGS
="$save_LDFLAGS"
16729 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16730 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16732 if test x
"$lt_prog_compiler_static_works" = xyes
; then
16735 lt_prog_compiler_static
=
16744 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16745 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16746 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 lt_cv_prog_compiler_c_o
=no
16750 $RM -r conftest
2>/dev
/null
16754 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16756 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16757 # Insert the option either (1) after the last *FLAGS variable, or
16758 # (2) before a word containing "conftest.", or (3) at the end.
16759 # Note that $ac_compile itself does not contain backslashes and begins
16760 # with a dollar sign (not a hyphen), so the echo should work correctly.
16761 lt_compile
=`echo "$ac_compile" | $SED \
16762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16764 -e 's:$: $lt_compiler_flag:'`
16765 (eval echo "\"\$as_me:16765: $lt_compile\"" >&5)
16766 (eval "$lt_compile" 2>out
/conftest.err
)
16768 cat out
/conftest.err
>&5
16769 echo "$as_me:16769: \$? = $ac_status" >&5
16770 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16772 # The compiler can only warn and ignore the option if not recognized
16773 # So say no if there are warnings
16774 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16775 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16776 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16777 lt_cv_prog_compiler_c_o
=yes
16782 # SGI C++ compiler will create directory out/ii_files/ for
16783 # template instantiation
16784 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16785 $RM out
/* && rmdir out
16791 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16792 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16799 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 lt_cv_prog_compiler_c_o
=no
16805 $RM -r conftest
2>/dev
/null
16809 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16811 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16812 # Insert the option either (1) after the last *FLAGS variable, or
16813 # (2) before a word containing "conftest.", or (3) at the end.
16814 # Note that $ac_compile itself does not contain backslashes and begins
16815 # with a dollar sign (not a hyphen), so the echo should work correctly.
16816 lt_compile
=`echo "$ac_compile" | $SED \
16817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16819 -e 's:$: $lt_compiler_flag:'`
16820 (eval echo "\"\$as_me:16820: $lt_compile\"" >&5)
16821 (eval "$lt_compile" 2>out
/conftest.err
)
16823 cat out
/conftest.err
>&5
16824 echo "$as_me:16824: \$? = $ac_status" >&5
16825 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16827 # The compiler can only warn and ignore the option if not recognized
16828 # So say no if there are warnings
16829 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16830 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16831 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16832 lt_cv_prog_compiler_c_o
=yes
16837 # SGI C++ compiler will create directory out/ii_files/ for
16838 # template instantiation
16839 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16840 $RM out
/* && rmdir out
16846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16852 hard_links
="nottested"
16853 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
16854 # do not overwrite the value of need_locks provided by the user
16855 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16859 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16861 ln conftest.a conftest.b
2>&5 || hard_links
=no
16862 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16863 echo "$as_me:$LINENO: result: $hard_links" >&5
16864 echo "${ECHO_T}$hard_links" >&6
16865 if test "$hard_links" = no
; then
16866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16879 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16880 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16883 allow_undefined_flag
=
16884 always_export_symbols
=no
16886 archive_expsym_cmds
=
16887 compiler_needs_object
=no
16888 enable_shared_with_static_runtimes
=no
16889 export_dynamic_flag_spec
=
16890 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16891 hardcode_automatic
=no
16893 hardcode_direct_absolute
=no
16894 hardcode_libdir_flag_spec
=
16895 hardcode_libdir_flag_spec_ld
=
16896 hardcode_libdir_separator
=
16897 hardcode_minus_L
=no
16898 hardcode_shlibpath_var
=unsupported
16900 link_all_deplibs
=unknown
16902 module_expsym_cmds
=
16903 old_archive_from_new_cmds
=
16904 old_archive_from_expsyms_cmds
=
16905 thread_safe_flag_spec
=
16906 whole_archive_flag_spec
=
16907 # include_expsyms should be a list of space-separated symbols to be *always*
16908 # included in the symbol list
16910 # exclude_expsyms can be an extended regexp of symbols to exclude
16911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16913 # as well as any symbol that contains `d'.
16914 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
16915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16916 # platforms (ab)use it in PIC code, but their linkers get confused if
16917 # the symbol is explicitly referenced. Since portable code cannot
16918 # rely on this symbol name, it's probably fine to never include it in
16919 # preloaded symbol tables.
16920 extract_expsyms_cmds
=
16923 cygwin
* | mingw
* | pw32
*)
16924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16925 # When not using gcc, we currently assume that we are using
16926 # Microsoft Visual C++.
16927 if test "$GCC" != yes; then
16932 # we just hope/assume this is gcc and not c89 (= MSVC++)
16941 if test "$with_gnu_ld" = yes; then
16942 # If archive_cmds runs LD, not CC, wlarc should be empty
16945 # Set some defaults for GNU ld with shared library support. These
16946 # are reset later if shared libraries are not supported. Putting them
16947 # here allows them to be overridden if necessary.
16948 runpath_var
=LD_RUN_PATH
16949 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16950 export_dynamic_flag_spec
='${wl}--export-dynamic'
16951 # ancient GNU ld didn't support --whole-archive et. al.
16952 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
16953 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16955 whole_archive_flag_spec
=
16957 supports_anon_versioning
=no
16958 case `$LD -v 2>&1` in
16959 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16960 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16961 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16962 *\
2.11.
*) ;; # other 2.11 versions
16963 *) supports_anon_versioning
=yes ;;
16966 # See if GNU ld supports shared libraries.
16969 # On AIX/PPC, the GNU linker is very broken
16970 if test "$host_cpu" != ia64
; then
16974 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16975 *** to be unable to reliably create shared libraries on AIX.
16976 *** Therefore, libtool is disabling shared libraries support. If you
16977 *** really care for shared libraries, you may want to modify your PATH
16978 *** so that a non-GNU linker is found, and then restart.
16985 if test "$host_cpu" = m68k
; then
16986 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)'
16987 hardcode_libdir_flag_spec
='-L$libdir'
16988 hardcode_minus_L
=yes
16991 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16992 # that the semantics of dynamic libraries on AmigaOS, at least up
16993 # to version 4, is to share data among multiple programs linked
16994 # with the same dynamic library. Since this doesn't match the
16995 # behavior of shared libraries on other platforms, we can't use
17001 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17002 allow_undefined_flag
=unsupported
17003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17004 # support --undefined. This deserves some investigation. FIXME
17005 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17011 cygwin
* | mingw
* | pw32
*)
17012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17013 # as there is no search path for DLLs.
17014 hardcode_libdir_flag_spec
='-L$libdir'
17015 allow_undefined_flag
=unsupported
17016 always_export_symbols
=no
17017 enable_shared_with_static_runtimes
=yes
17018 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17020 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17021 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17022 # If the export-symbols file already is a .def file (1st line
17023 # is EXPORTS), use it as is; otherwise, prepend...
17024 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17025 cp $export_symbols $output_objdir/$soname.def;
17027 echo EXPORTS > $output_objdir/$soname.def;
17028 cat $export_symbols >> $output_objdir/$soname.def;
17030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17038 hardcode_shlibpath_var
=no
17039 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17040 export_dynamic_flag_spec
='${wl}-E'
17041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17042 # Instead, shared libraries are loaded at an image base (0x10000000 by
17043 # default) and relocated if they conflict, which is a slow very memory
17044 # consuming and fragmenting process. To avoid this, we pick a random,
17045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17047 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17048 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'
17051 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
17053 if test "$host_os" = linux-dietlibc
; then
17054 case $cc_basename in
17055 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17058 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17059 && test "$tmp_diet" = no
17062 case $cc_basename,$host_cpu in
17063 pgcc
*) # Portland Group C compiler
17064 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'
17065 tmp_addflag
=' $pic_flag'
17067 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17068 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'
17069 tmp_addflag
=' $pic_flag -Mnomain' ;;
17070 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17071 tmp_addflag
=' -i_dynamic' ;;
17072 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17073 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17074 ifc
* | ifort
*) # Intel Fortran compiler
17075 tmp_addflag
=' -nofor_main' ;;
17077 case `$CC -V 2>&1 | sed 5q` in
17078 *Sun\ C
*) # Sun C 5.9
17079 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'
17080 compiler_needs_object
=yes
17081 tmp_sharedflag
='-G' ;;
17082 *Sun\ F
*) # Sun Fortran 8.3
17083 tmp_sharedflag
='-G' ;;
17085 tmp_sharedflag
='-shared' ;;
17087 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17089 if test "x$supports_anon_versioning" = xyes
; then
17090 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17092 echo "local: *; };" >> $output_objdir/$libname.ver~
17093 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17101 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17102 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17105 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17106 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17111 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17116 *** create shared libraries on Solaris systems. Therefore, libtool
17117 *** is disabling shared libraries support. We urge you to upgrade GNU
17118 *** binutils to release 2.9.1 or newer. Another option is to modify
17119 *** your PATH or compiler configuration so that the native linker is
17120 *** used, and then restart.
17123 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17124 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17125 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17131 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17132 case `$LD -v 2>&1` in
17133 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17137 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17138 *** reliably create shared libraries on SCO systems. Therefore, libtool
17139 *** is disabling shared libraries support. We urge you to upgrade GNU
17140 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17141 *** your PATH or compiler configuration so that the native linker is
17142 *** used, and then restart.
17147 # For security reasons, it is highly recommended that you always
17148 # use absolute paths for naming shared libraries, and exclude the
17149 # DT_RUNPATH tag from executables and libraries. But doing so
17150 # requires that you compile everything twice, which is a pain.
17151 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17152 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17153 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17154 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17163 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17165 hardcode_direct
=yes
17166 hardcode_shlibpath_var
=no
17170 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17171 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17172 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17179 if test "$ld_shlibs" = no
; then
17181 hardcode_libdir_flag_spec
=
17182 export_dynamic_flag_spec
=
17183 whole_archive_flag_spec
=
17186 # PORTME fill in a description of your system's linker (not GNU ld)
17189 allow_undefined_flag
=unsupported
17190 always_export_symbols
=yes
17191 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'
17192 # Note: this linker hardcodes the directories in LIBPATH if there
17193 # are no directories specified by -L.
17194 hardcode_minus_L
=yes
17195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17196 # Neither direct hardcoding nor static linking is supported with a
17198 hardcode_direct
=unsupported
17203 if test "$host_cpu" = ia64
; then
17204 # On IA64, the linker does run time linking by default, so we don't
17205 # have to do anything special.
17206 aix_use_runtimelinking
=no
17207 exp_sym_flag
='-Bexport'
17210 # If we're using GNU nm, then we don't want the "-C" option.
17211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17212 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17213 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'
17215 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'
17217 aix_use_runtimelinking
=no
17219 # Test if we are trying to use run time linking or normal
17220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17221 # need to do runtime linking.
17222 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17223 for ld_flag
in $LDFLAGS; do
17224 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17225 aix_use_runtimelinking
=yes
17232 exp_sym_flag
='-bexport'
17233 no_entry_flag
='-bnoentry'
17236 # When large executables or shared objects are built, AIX ld can
17237 # have problems creating the table of contents. If linking a library
17238 # or program results in "error TOC overflow" add -mminimal-toc to
17239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17243 hardcode_direct
=yes
17244 hardcode_direct_absolute
=yes
17245 hardcode_libdir_separator
=':'
17246 link_all_deplibs
=yes
17247 file_list_spec
='${wl}-f,'
17249 if test "$GCC" = yes; then
17250 case $host_os in aix4.
[012]|aix4.
[012].
*)
17251 # We only want to do this on AIX 4.2 and lower, the check
17252 # below for broken collect2 doesn't work under 4.3+
17253 collect2name
=`${CC} -print-prog-name=collect2`
17254 if test -f "$collect2name" &&
17255 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17257 # We have reworked collect2
17260 # We have old collect2
17261 hardcode_direct
=unsupported
17262 # It fails to find uninstalled libraries when the uninstalled
17263 # path is not listed in the libpath. Setting hardcode_minus_L
17264 # to unsupported forces relinking
17265 hardcode_minus_L
=yes
17266 hardcode_libdir_flag_spec
='-L$libdir'
17267 hardcode_libdir_separator
=
17271 shared_flag
='-shared'
17272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag
="$shared_flag "'${wl}-G'
17277 if test "$host_cpu" = ia64
; then
17278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17279 # chokes on -Wl,-G. The following line is correct:
17282 if test "$aix_use_runtimelinking" = yes; then
17283 shared_flag
='${wl}-G'
17285 shared_flag
='${wl}-bM:SRE'
17290 # It seems that -bexpall does not export symbols beginning with
17291 # underscore (_), so it is better to generate a list of symbols to export.
17292 always_export_symbols
=yes
17293 if test "$aix_use_runtimelinking" = yes; then
17294 # Warning - without using the other runtime loading flags (-brtl),
17295 # -berok will link without error, but may produce a broken library.
17296 allow_undefined_flag
='-berok'
17297 # Determine the default libpath from the value encoded in an
17298 # empty executable.
17299 cat >conftest.
$ac_ext <<_ACEOF
17302 cat confdefs.h
>>conftest.
$ac_ext
17303 cat >>conftest.
$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17314 rm -f conftest.
$ac_objext conftest
$ac_exeext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316 (eval $ac_link) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1
>conftest.err
17320 cat conftest.err
>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try
='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try
='test -s conftest$ac_exeext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17337 lt_aix_libpath_sed
='
17338 /Import File Strings/,/^$/ {
17344 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17345 # Check for a 64-bit object if we didn't find anything.
17346 if test -z "$aix_libpath"; then
17347 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.
$ac_ext >&5
17354 rm -f conftest.err conftest.
$ac_objext \
17355 conftest
$ac_exeext conftest.
$ac_ext
17356 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17358 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17359 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"
17361 if test "$host_cpu" = ia64
; then
17362 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17363 allow_undefined_flag
="-z nodefs"
17364 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"
17366 # Determine the default libpath from the value encoded in an
17367 # empty executable.
17368 cat >conftest.
$ac_ext <<_ACEOF
17371 cat confdefs.h
>>conftest.
$ac_ext
17372 cat >>conftest.
$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17383 rm -f conftest.
$ac_objext conftest
$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385 (eval $ac_link) 2>conftest.er1
17387 grep -v '^ *+' conftest.er1
>conftest.err
17389 cat conftest.err
>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try
='test -z "$ac_c_werror_flag"
17393 || test ! -s conftest.err'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } &&
17399 { ac_try
='test -s conftest$ac_exeext'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17406 lt_aix_libpath_sed
='
17407 /Import File Strings/,/^$/ {
17413 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17414 # Check for a 64-bit object if we didn't find anything.
17415 if test -z "$aix_libpath"; then
17416 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.
$ac_ext >&5
17423 rm -f conftest.err conftest.
$ac_objext \
17424 conftest
$ac_exeext conftest.
$ac_ext
17425 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17427 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17428 # Warning - without using the other run time loading flags,
17429 # -berok will link without error, but may produce a broken library.
17430 no_undefined_flag
=' ${wl}-bernotok'
17431 allow_undefined_flag
=' ${wl}-berok'
17432 # Exported symbols can be pulled into shared objects from archives
17433 whole_archive_flag_spec
='$convenience'
17434 archive_cmds_need_lc
=yes
17435 # This is similar to how AIX traditionally builds its shared libraries.
17436 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'
17442 if test "$host_cpu" = m68k
; then
17443 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)'
17444 hardcode_libdir_flag_spec
='-L$libdir'
17445 hardcode_minus_L
=yes
17447 # see comment about different semantics on the GNU ld section
17452 export_dynamic_flag_spec
=-rdynamic
17455 cygwin
* | mingw
* | pw32
*)
17456 # When not using gcc, we currently assume that we are using
17457 # Microsoft Visual C++.
17458 # hardcode_libdir_flag_spec is actually meaningless, as there is
17459 # no search path for DLLs.
17460 hardcode_libdir_flag_spec
=' '
17461 allow_undefined_flag
=unsupported
17462 # Tell ltmain to make .lib files, not .a files.
17464 # Tell ltmain to make .dll files, not .so files.
17466 # FIXME: Setting linknames here is a bad hack.
17467 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17468 # The linker will automatically build a .lib file if we build a DLL.
17469 old_archive_from_new_cmds
='true'
17470 # FIXME: Should let the user specify the lib program.
17471 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17472 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17473 enable_shared_with_static_runtimes
=yes
17476 darwin
* | rhapsody
*)
17478 rhapsody
* | darwin1.
[012])
17479 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
17482 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17484 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17487 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
17492 archive_cmds_need_lc
=no
17494 hardcode_automatic
=yes
17495 hardcode_shlibpath_var
=unsupported
17496 whole_archive_flag_spec
=''
17497 link_all_deplibs
=yes
17498 if test "$GCC" = yes ; then
17499 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 lt_cv_apple_cc_single_mod
=no
17503 if test -z "${LT_MULTI_MODULE}"; then
17504 # By default we will add the -single_module flag. You can override
17505 # by either setting the environment variable LT_MULTI_MODULE
17506 # non-empty at configure time, or by adding -multi-module to the
17508 echo "int foo(void){return 1;}" > conftest.c
17509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17510 -dynamiclib ${wl}-single_module conftest.c
17511 if test -f libconftest.dylib
; then
17512 lt_cv_apple_cc_single_mod
=yes
17513 rm libconftest.dylib
17515 rm conftest.
$ac_ext
17519 output_verbose_link_cmd
=echo
17520 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
17521 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17522 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}'
17524 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17525 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}'
17527 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17528 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}'
17530 case $cc_basename in
17532 output_verbose_link_cmd
=echo
17533 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17534 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17536 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}'
17537 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}'
17547 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548 hardcode_libdir_flag_spec
='-L$libdir'
17549 hardcode_shlibpath_var
=no
17556 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17557 # support. Future versions do this automatically, but an explicit c++rt0.o
17558 # does not break anything, and helps significantly (at the cost of a little
17561 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17562 hardcode_libdir_flag_spec
='-R$libdir'
17563 hardcode_direct
=yes
17564 hardcode_shlibpath_var
=no
17567 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17569 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17570 hardcode_direct
=yes
17571 hardcode_minus_L
=yes
17572 hardcode_shlibpath_var
=no
17575 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17576 freebsd
* | dragonfly
*)
17577 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17578 hardcode_libdir_flag_spec
='-R$libdir'
17579 hardcode_direct
=yes
17580 hardcode_shlibpath_var
=no
17584 if test "$GCC" = yes; then
17585 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'
17587 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'
17589 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17590 hardcode_libdir_separator
=:
17591 hardcode_direct
=yes
17593 # hardcode_minus_L: Not really in the search PATH,
17594 # but as the default location of the library.
17595 hardcode_minus_L
=yes
17596 export_dynamic_flag_spec
='${wl}-E'
17600 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17601 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17603 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17605 if test "$with_gnu_ld" = no
; then
17606 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17607 hardcode_libdir_flag_spec_ld
='+b $libdir'
17608 hardcode_libdir_separator
=:
17609 hardcode_direct
=yes
17610 hardcode_direct_absolute
=yes
17611 export_dynamic_flag_spec
='${wl}-E'
17612 # hardcode_minus_L: Not really in the search PATH,
17613 # but as the default location of the library.
17614 hardcode_minus_L
=yes
17619 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17622 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17625 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17628 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17634 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17637 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17640 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17644 if test "$with_gnu_ld" = no
; then
17645 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17646 hardcode_libdir_separator
=:
17651 hardcode_shlibpath_var
=no
17654 hardcode_direct
=yes
17655 hardcode_direct_absolute
=yes
17656 export_dynamic_flag_spec
='${wl}-E'
17658 # hardcode_minus_L: Not really in the search PATH,
17659 # but as the default location of the library.
17660 hardcode_minus_L
=yes
17666 irix5
* | irix6
* | nonstopux
*)
17667 if test "$GCC" = yes; then
17668 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'
17669 # Try to use the -exported_symbol ld option, if it does not
17670 # work, assume that -exports_file does not work either and
17671 # implicitly export all symbols.
17672 save_LDFLAGS
="$LDFLAGS"
17673 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17674 cat >conftest.
$ac_ext <<_ACEOF
17677 rm -f conftest.
$ac_objext conftest
$ac_exeext
17678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679 (eval $ac_link) 2>conftest.er1
17681 grep -v '^ *+' conftest.er1
>conftest.err
17683 cat conftest.err
>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try
='test -z "$ac_c_werror_flag"
17687 || test ! -s conftest.err'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try
='test -s conftest$ac_exeext'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; }; then
17699 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'
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.
$ac_ext >&5
17706 rm -f conftest.err conftest.
$ac_objext \
17707 conftest
$ac_exeext conftest.
$ac_ext
17708 LDFLAGS
="$save_LDFLAGS"
17710 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'
17711 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'
17713 archive_cmds_need_lc
='no'
17714 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17715 hardcode_libdir_separator
=:
17717 link_all_deplibs
=yes
17721 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17722 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17724 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17726 hardcode_libdir_flag_spec
='-R$libdir'
17727 hardcode_direct
=yes
17728 hardcode_shlibpath_var
=no
17732 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733 hardcode_direct
=yes
17734 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17735 hardcode_libdir_separator
=:
17736 hardcode_shlibpath_var
=no
17743 hardcode_direct
=yes
17744 hardcode_shlibpath_var
=no
17745 hardcode_direct_absolute
=yes
17746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17747 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17748 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17749 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17750 export_dynamic_flag_spec
='${wl}-E'
17753 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17754 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17755 hardcode_libdir_flag_spec
='-R$libdir'
17758 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17759 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17766 hardcode_libdir_flag_spec
='-L$libdir'
17767 hardcode_minus_L
=yes
17768 allow_undefined_flag
=unsupported
17769 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'
17770 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17774 if test "$GCC" = yes; then
17775 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17776 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'
17778 allow_undefined_flag
=' -expect_unresolved \*'
17779 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'
17781 archive_cmds_need_lc
='no'
17782 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17783 hardcode_libdir_separator
=:
17786 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17787 if test "$GCC" = yes; then
17788 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17789 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'
17790 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17792 allow_undefined_flag
=' -expect_unresolved \*'
17793 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'
17794 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~
17795 $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'
17797 # Both c and cxx compiler support -rpath directly
17798 hardcode_libdir_flag_spec
='-rpath $libdir'
17800 archive_cmds_need_lc
='no'
17801 hardcode_libdir_separator
=:
17805 no_undefined_flag
=' -z defs'
17806 if test "$GCC" = yes; then
17808 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17810 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17812 case `$CC -V 2>&1` in
17815 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17816 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17821 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17823 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17827 hardcode_libdir_flag_spec
='-R$libdir'
17828 hardcode_shlibpath_var
=no
17830 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17832 # The compiler driver will combine and reorder linker options,
17833 # but understands `-z linker_flag'. GCC discards it without `$wl',
17834 # but is careful enough not to reorder.
17835 # Supported since Solaris 2.6 (maybe 2.5.1?)
17836 if test "$GCC" = yes; then
17837 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17839 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17843 link_all_deplibs
=yes
17847 if test "x$host_vendor" = xsequent
; then
17848 # Use $CC to link under sequent, because it throws in some extra .o
17849 # files that make .init and .fini sections work.
17850 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17852 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_libdir_flag_spec
='-L$libdir'
17855 hardcode_direct
=yes
17856 hardcode_minus_L
=yes
17857 hardcode_shlibpath_var
=no
17861 case $host_vendor in
17863 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17864 hardcode_direct
=yes # is this really true???
17867 ## LD is ld it makes a PLAMLIB
17868 ## CC just makes a GrossModule.
17869 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17870 reload_cmds
='$CC -r -o $output$reload_objs'
17874 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17875 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17878 runpath_var
='LD_RUN_PATH'
17879 hardcode_shlibpath_var
=no
17883 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_shlibpath_var
=no
17885 export_dynamic_flag_spec
='-Bexport'
17889 if test -d /usr
/nec
; then
17890 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17891 hardcode_shlibpath_var
=no
17892 runpath_var
=LD_RUN_PATH
17893 hardcode_runpath_var
=yes
17898 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17899 no_undefined_flag
='${wl}-z,text'
17900 archive_cmds_need_lc
=no
17901 hardcode_shlibpath_var
=no
17902 runpath_var
='LD_RUN_PATH'
17904 if test "$GCC" = yes; then
17905 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17906 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17908 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17909 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17913 sysv5
* | sco3.2v5
* | sco5v6
*)
17914 # Note: We can NOT use -z defs as we might desire, because we do not
17915 # link with -lc, and that would cause any symbols used from libc to
17916 # always be unresolved, which means just about no library would
17917 # ever link correctly. If we're not using GNU ld we use -z text
17918 # though, which does catch some bad symbols but isn't as heavy-handed
17920 no_undefined_flag
='${wl}-z,text'
17921 allow_undefined_flag
='${wl}-z,nodefs'
17922 archive_cmds_need_lc
=no
17923 hardcode_shlibpath_var
=no
17924 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17925 hardcode_libdir_separator
=':'
17926 link_all_deplibs
=yes
17927 export_dynamic_flag_spec
='${wl}-Bexport'
17928 runpath_var
='LD_RUN_PATH'
17930 if test "$GCC" = yes; then
17931 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17932 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17934 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17935 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17940 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_libdir_flag_spec
='-L$libdir'
17942 hardcode_shlibpath_var
=no
17950 if test x
$host_vendor = xsni
; then
17952 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17953 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17959 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17960 echo "${ECHO_T}$ld_shlibs" >&6
17961 test "$ld_shlibs" = no
&& can_build_shared
=no
17963 with_gnu_ld
=$with_gnu_ld
17980 # Do we need to explicitly link libc?
17982 case "x$archive_cmds_need_lc" in
17984 # Assume -lc should be added
17985 archive_cmds_need_lc
=yes
17987 if test "$enable_shared" = yes && test "$GCC" = yes; then
17988 case $archive_cmds in
17990 # FIXME: we may have to deal with multi-command sequences.
17993 # Test whether the compiler implicitly links with -lc since on some
17994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17995 # to ld, don't add -lc before -lgcc.
17996 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } 2>conftest.err
; then
18008 libobjs
=conftest.
$ac_objext
18010 wl
=$lt_prog_compiler_wl
18011 pic_flag
=$lt_prog_compiler_pic
18017 lt_save_allow_undefined_flag
=$allow_undefined_flag
18018 allow_undefined_flag
=
18019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18020 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }
18025 archive_cmds_need_lc
=no
18027 archive_cmds_need_lc
=yes
18029 allow_undefined_flag
=$lt_save_allow_undefined_flag
18031 cat conftest.err
1>&5
18034 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18035 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18198 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18199 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18201 if test "$withGCC" = yes; then
18203 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18204 *) lt_awk_arg
="/^libraries:/" ;;
18206 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18207 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18208 # if the path contains ";" then we assume it to be the separator
18209 # otherwise default to the standard path separator (i.e. ":") - it is
18210 # assumed that no part of a normal pathname contains ";" but that should
18211 # okay in the real world where ";" in dirpaths is itself problematic.
18212 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18214 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18216 # Ok, now we have the path, separated by spaces, we can step through it
18217 # and add multilib dir if necessary.
18218 lt_tmp_lt_search_path_spec
=
18219 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18220 for lt_sys_path
in $lt_search_path_spec; do
18221 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18222 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18224 test -d "$lt_sys_path" && \
18225 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18228 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18229 BEGIN {RS=" "; FS="/|\n";} {
18232 for (lt_i = NF; lt_i > 0; lt_i--) {
18233 if ($lt_i != "" && $lt_i != ".") {
18234 if ($lt_i == "..") {
18237 if (lt_count == 0) {
18238 lt_foo="/" $lt_i lt_foo;
18245 if (lt_foo != "") { lt_freq[lt_foo]++; }
18246 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18248 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18250 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18252 library_names_spec
=
18253 libname_spec
='lib$name'
18257 postuninstall_cmds
=
18261 shlibpath_overrides_runpath
=unknown
18263 dynamic_linker
="$host_os ld.so"
18264 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18265 need_lib_prefix
=unknown
18266 hardcode_into_libs
=no
18268 # when you set need_version to no, make sure it does not cause -set_version
18269 # flags to be left without arguments
18270 need_version
=unknown
18275 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18276 shlibpath_var
=LIBPATH
18278 # AIX 3 has no versioning support, so we append a major version to the name.
18279 soname_spec
='${libname}${release}${shared_ext}$major'
18286 hardcode_into_libs
=yes
18287 if test "$host_cpu" = ia64
; then
18288 # AIX 5 supports IA64
18289 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18290 shlibpath_var
=LD_LIBRARY_PATH
18292 # With GCC up to 2.95.x, collect2 would create an import file
18293 # for dependence libraries. The import file would start with
18294 # the line `#! .'. This would cause the generated library to
18295 # depend on `.', always an invalid library. This was fixed in
18296 # development snapshots of GCC prior to 3.0.
18298 aix4 | aix4.
[01] | aix4.
[01].
*)
18299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18301 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18304 can_build_shared
=no
18308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18309 # soname into executable. Probably we can add versioning support to
18310 # collect2, so additional links can be useful in future.
18311 if test "$aix_use_runtimelinking" = yes; then
18312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18313 # instead of lib<name>.a to let people know that these are not
18314 # typical AIX shared libraries.
18315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 # We preserve .a as extension for shared libraries through AIX4.2
18318 # and later when we are not doing run time linking.
18319 library_names_spec
='${libname}${release}.a $libname.a'
18320 soname_spec
='${libname}${release}${shared_ext}$major'
18322 shlibpath_var
=LIBPATH
18327 if test "$host_cpu" = m68k
; then
18328 library_names_spec
='$libname.ixlibrary $libname.a'
18329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18330 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'
18337 library_names_spec
='${libname}${shared_ext}'
18338 dynamic_linker
="$host_os ld.so"
18339 shlibpath_var
=LIBRARY_PATH
18345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18346 soname_spec
='${libname}${release}${shared_ext}$major'
18347 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18348 shlibpath_var
=LD_LIBRARY_PATH
18349 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18350 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18351 # the default ld.so.conf also contains /usr/contrib/lib and
18352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18353 # libtool to hard-code these into programs
18356 cygwin
* | mingw
* | pw32
*)
18357 version_type
=windows
18362 case $withGCC,$host_os in
18363 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18364 library_names_spec
='$libname.dll.a'
18365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18366 postinstall_cmds
='base_file=`basename \${file}`~
18367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18368 dldir=$destdir/`dirname \$dlpath`~
18369 test -d \$dldir || mkdir -p \$dldir~
18370 $install_prog $dir/$dlname \$dldir/$dlname~
18371 chmod a+x \$dldir/$dlname~
18372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18375 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18376 dlpath=$dir/\$dldll~
18378 shlibpath_overrides_runpath
=yes
18382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18383 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18384 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18387 # MinGW DLLs use traditional 'lib' prefix
18388 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18389 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18390 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18391 # It is most probably a Windows format PATH printed by
18392 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18393 # path with ; separators, and with drive letters. We can handle the
18394 # drive letters (cygwin fileutils understands them), so leave them,
18395 # especially as we might pass files found there to a mingw objdump,
18396 # which wouldn't understand a cygwinified path. Ahh.
18397 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18399 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18403 # pw32 DLLs use 'pw' prefix rather than 'lib'
18404 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18410 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18413 dynamic_linker
='Win32 ld.exe'
18414 # FIXME: first we should search . and the directory the executable is in
18418 darwin
* | rhapsody
*)
18419 dynamic_linker
="$host_os dyld"
18420 version_type
=darwin
18423 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18424 soname_spec
='${libname}${release}${major}$shared_ext'
18425 shlibpath_overrides_runpath
=yes
18426 shlibpath_var
=DYLD_LIBRARY_PATH
18427 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18429 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18430 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18438 soname_spec
='${libname}${release}${shared_ext}$major'
18439 shlibpath_var
=LD_LIBRARY_PATH
18446 freebsd
* | dragonfly
*)
18447 # DragonFly does not have aout. When/if they implement a new
18448 # versioning mechanism, adjust this.
18449 if test -x /usr
/bin
/objformat
; then
18450 objformat
=`/usr/bin/objformat`
18453 freebsd
[123]*) objformat
=aout
;;
18454 *) objformat
=elf
;;
18457 version_type
=freebsd-
$objformat
18458 case $version_type in
18460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18465 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18469 shlibpath_var
=LD_LIBRARY_PATH
18472 shlibpath_overrides_runpath
=yes
18474 freebsd3.
[01]* | freebsdelf3.
[01]*)
18475 shlibpath_overrides_runpath
=yes
18476 hardcode_into_libs
=yes
18478 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18479 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18480 shlibpath_overrides_runpath
=no
18481 hardcode_into_libs
=yes
18483 *) # from 4.6 on, and DragonFly
18484 shlibpath_overrides_runpath
=yes
18485 hardcode_into_libs
=yes
18494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18495 soname_spec
='${libname}${release}${shared_ext}$major'
18496 shlibpath_var
=LD_LIBRARY_PATH
18497 hardcode_into_libs
=yes
18500 hpux9
* | hpux10
* | hpux11
*)
18501 # Give a soname corresponding to the major version so that dld.sl refuses to
18502 # link against other versions.
18509 hardcode_into_libs
=yes
18510 dynamic_linker
="$host_os dld.so"
18511 shlibpath_var
=LD_LIBRARY_PATH
18512 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514 soname_spec
='${libname}${release}${shared_ext}$major'
18515 if test "X$HPUX_IA64_MODE" = X32
; then
18516 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18518 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18520 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18524 hardcode_into_libs
=yes
18525 dynamic_linker
="$host_os dld.sl"
18526 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18527 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec
='${libname}${release}${shared_ext}$major'
18530 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18531 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18535 dynamic_linker
="$host_os dld.sl"
18536 shlibpath_var
=SHLIB_PATH
18537 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539 soname_spec
='${libname}${release}${shared_ext}$major'
18542 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18543 postinstall_cmds
='chmod 555 $lib'
18550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18551 soname_spec
='${libname}${release}${shared_ext}$major'
18552 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18553 shlibpath_var
=LD_LIBRARY_PATH
18554 shlibpath_overrides_runpath
=no
18555 hardcode_into_libs
=yes
18558 irix5
* | irix6
* | nonstopux
*)
18560 nonstopux
*) version_type
=nonstopux
;;
18562 if test "$lt_cv_prog_gnu_ld" = yes; then
18570 soname_spec
='${libname}${release}${shared_ext}$major'
18571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18573 irix5
* | nonstopux
*)
18574 libsuff
= shlibsuff
=
18577 case $LD in # libtool.m4 will add one of these switches to LD
18578 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18579 libsuff
= shlibsuff
= libmagic
=32-bit;;
18580 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18581 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18582 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18583 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18584 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18588 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18589 shlibpath_overrides_runpath
=no
18590 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18591 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18592 hardcode_into_libs
=yes
18595 # No shared lib support for Linux oldld, aout, or coff.
18596 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18600 # This must be Linux ELF.
18601 linux
* | k
*bsd
*-gnu)
18605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606 soname_spec
='${libname}${release}${shared_ext}$major'
18607 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18608 shlibpath_var
=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath
=no
18610 # Some binutils ld are patched to set DT_RUNPATH
18611 save_LDFLAGS
=$LDFLAGS
18612 save_libdir
=$libdir
18613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18615 cat >conftest.
$ac_ext <<_ACEOF
18618 cat confdefs.h
>>conftest.
$ac_ext
18619 cat >>conftest.
$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18630 rm -f conftest.
$ac_objext conftest
$ac_exeext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18632 (eval $ac_link) 2>conftest.er1
18634 grep -v '^ *+' conftest.er1
>conftest.err
18636 cat conftest.err
>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try
='test -z "$ac_c_werror_flag"
18640 || test ! -s conftest.err'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try
='test -s conftest$ac_exeext'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
18653 shlibpath_overrides_runpath
=yes
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.
$ac_ext >&5
18661 rm -f conftest.err conftest.
$ac_objext \
18662 conftest
$ac_exeext conftest.
$ac_ext
18663 LDFLAGS
=$save_LDFLAGS
18664 libdir
=$save_libdir
18666 # This implies no fast_install, which is unacceptable.
18667 # Some rework will be needed to allow for fast_install
18668 # before this can be enabled.
18669 hardcode_into_libs
=yes
18671 # Append ld.so.conf contents to the search path
18672 if test -f /etc
/ld.so.conf
; then
18673 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' ' '`
18674 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18677 # We used to test for /lib/ld.so.1 and disable shared libraries on
18678 # powerpc, because MkLinux only supported shared libraries with the
18679 # GNU dynamic linker. Since this was broken with cross compilers,
18680 # most powerpc-linux boxes support dynamic linking these days and
18681 # people can always --disable-shared, the test was removed, and we
18682 # assume the GNU/Linux dynamic linker is in use.
18683 dynamic_linker
='GNU/Linux ld.so'
18690 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18692 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18693 dynamic_linker
='NetBSD (a.out) ld.so'
18695 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18696 soname_spec
='${libname}${release}${shared_ext}$major'
18697 dynamic_linker
='NetBSD ld.elf_so'
18699 shlibpath_var
=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath
=yes
18701 hardcode_into_libs
=yes
18706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707 shlibpath_var
=LD_LIBRARY_PATH
18708 shlibpath_overrides_runpath
=yes
18715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18716 soname_spec
='${libname}${release}${shared_ext}$major'
18717 shlibpath_var
=LD_LIBRARY_PATH
18718 shlibpath_overrides_runpath
=no
18719 hardcode_into_libs
=yes
18720 dynamic_linker
='ldqnx.so'
18725 sys_lib_dlsearch_path_spec
="/usr/lib"
18727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18729 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18730 *) need_version
=no
;;
18732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18733 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18734 shlibpath_var
=LD_LIBRARY_PATH
18735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18737 openbsd2.
[89] | openbsd2.
[89].
*)
18738 shlibpath_overrides_runpath
=no
18741 shlibpath_overrides_runpath
=yes
18745 shlibpath_overrides_runpath
=yes
18750 libname_spec
='$name'
18753 library_names_spec
='$libname${shared_ext} $libname.a'
18754 dynamic_linker
='OS/2 ld.exe'
18755 shlibpath_var
=LIBPATH
18758 osf3
* | osf4
* | osf5
*)
18762 soname_spec
='${libname}${release}${shared_ext}$major'
18763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764 shlibpath_var
=LD_LIBRARY_PATH
18765 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18766 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 soname_spec
='${libname}${release}${shared_ext}$major'
18779 shlibpath_var
=LD_LIBRARY_PATH
18780 shlibpath_overrides_runpath
=yes
18781 hardcode_into_libs
=yes
18782 # ldd complains unless libraries are executable
18783 postinstall_cmds
='chmod +x $lib'
18788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18789 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18790 shlibpath_var
=LD_LIBRARY_PATH
18791 shlibpath_overrides_runpath
=yes
18792 if test "$with_gnu_ld" = yes; then
18800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18801 soname_spec
='${libname}${release}${shared_ext}$major'
18802 shlibpath_var
=LD_LIBRARY_PATH
18803 case $host_vendor in
18805 shlibpath_overrides_runpath
=no
18807 runpath_var
=LD_RUN_PATH
18815 shlibpath_overrides_runpath
=no
18816 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18822 if test -d /usr
/nec
;then
18824 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18825 soname_spec
='$libname${shared_ext}.$major'
18826 shlibpath_var
=LD_LIBRARY_PATH
18830 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18831 version_type
=freebsd-elf
18834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18835 soname_spec
='${libname}${release}${shared_ext}$major'
18836 shlibpath_var
=LD_LIBRARY_PATH
18837 shlibpath_overrides_runpath
=yes
18838 hardcode_into_libs
=yes
18839 if test "$with_gnu_ld" = yes; then
18840 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18842 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18845 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18849 sys_lib_dlsearch_path_spec
='/usr/lib'
18853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18857 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18858 shlibpath_var
=LD_LIBRARY_PATH
18859 shlibpath_overrides_runpath
=no
18860 hardcode_into_libs
=yes
18865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 soname_spec
='${libname}${release}${shared_ext}$major'
18867 shlibpath_var
=LD_LIBRARY_PATH
18874 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18875 echo "${ECHO_T}$dynamic_linker" >&6
18876 test "$dynamic_linker" = no
&& can_build_shared
=no
18878 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18879 if test "$GCC" = yes; then
18880 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18969 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18972 if test -n "$hardcode_libdir_flag_spec" ||
18973 test -n "$runpath_var" ||
18974 test "X$hardcode_automatic" = "Xyes" ; then
18976 # We can hardcode non-existent directories.
18977 if test "$hardcode_direct" != no
&&
18978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18979 # have to relink, otherwise we might link with an installed library
18980 # when we should be linking with a yet-to-be-installed one
18981 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18982 test "$hardcode_minus_L" != no
; then
18983 # Linking always hardcodes the temporary library directory.
18984 hardcode_action
=relink
18986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18987 hardcode_action
=immediate
18990 # We cannot hardcode anything, or else we can only hardcode existing
18992 hardcode_action
=unsupported
18994 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18995 echo "${ECHO_T}$hardcode_action" >&6
18997 if test "$hardcode_action" = relink ||
18998 test "$inherit_rpath" = yes; then
18999 # Fast installation is not supported
19000 enable_fast_install
=no
19001 elif test "$shlibpath_overrides_runpath" = yes ||
19002 test "$enable_shared" = no
; then
19003 # Fast installation is not necessary
19004 enable_fast_install
=needless
19012 if test "x$enable_dlopen" != xyes
; then
19013 enable_dlopen
=unknown
19014 enable_dlopen_self
=unknown
19015 enable_dlopen_self_static
=unknown
19022 lt_cv_dlopen
="load_add_on"
19024 lt_cv_dlopen_self
=yes
19028 lt_cv_dlopen
="LoadLibrary"
19033 lt_cv_dlopen
="dlopen"
19038 # if libdl is installed we need to link against it
19039 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_check_lib_save_LIBS
=$LIBS
19046 cat >conftest.
$ac_ext <<_ACEOF
19049 cat confdefs.h
>>conftest.
$ac_ext
19050 cat >>conftest.
$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19053 /* Override any gcc2 internal prototype to avoid an error. */
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19068 rm -f conftest.
$ac_objext conftest
$ac_exeext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>conftest.er1
19072 grep -v '^ *+' conftest.er1
>conftest.err
19074 cat conftest.err
>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try
='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try
='test -s conftest$ac_exeext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_lib_dl_dlopen
=yes
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.
$ac_ext >&5
19095 ac_cv_lib_dl_dlopen
=no
19097 rm -f conftest.err conftest.
$ac_objext \
19098 conftest
$ac_exeext conftest.
$ac_ext
19099 LIBS
=$ac_check_lib_save_LIBS
19101 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19102 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19103 if test $ac_cv_lib_dl_dlopen = yes; then
19104 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19107 lt_cv_dlopen
="dyld"
19109 lt_cv_dlopen_self
=yes
19116 echo "$as_me:$LINENO: checking for shl_load" >&5
19117 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19118 if test "${ac_cv_func_shl_load+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 cat >conftest.
$ac_ext <<_ACEOF
19124 cat confdefs.h
>>conftest.
$ac_ext
19125 cat >>conftest.
$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19129 #define shl_load innocuous_shl_load
19131 /* System header to define __stub macros and hopefully few prototypes,
19132 which can conflict with char shl_load (); below.
19133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19134 <limits.h> exists even on freestanding compilers. */
19137 # include <limits.h>
19139 # include <assert.h>
19144 /* Override any gcc2 internal prototype to avoid an error. */
19149 /* We use char because int might match the return type of a gcc2
19150 builtin and then its argument prototype would still apply. */
19152 /* The GNU C library defines this for functions which it implements
19153 to always fail with ENOSYS. Some functions are actually named
19154 something starting with __ and the normal name is an alias. */
19155 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19158 char (*f) () = shl_load;
19167 return f != shl_load;
19172 rm -f conftest.
$ac_objext conftest
$ac_exeext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19174 (eval $ac_link) 2>conftest.er1
19176 grep -v '^ *+' conftest.er1
>conftest.err
19178 cat conftest.err
>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try
='test -z "$ac_c_werror_flag"
19182 || test ! -s conftest.err'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try
='test -s conftest$ac_exeext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_cv_func_shl_load
=yes
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.
$ac_ext >&5
19199 ac_cv_func_shl_load
=no
19201 rm -f conftest.err conftest.
$ac_objext \
19202 conftest
$ac_exeext conftest.
$ac_ext
19204 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19205 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19206 if test $ac_cv_func_shl_load = yes; then
19207 lt_cv_dlopen
="shl_load"
19209 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19210 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19211 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 ac_check_lib_save_LIBS
=$LIBS
19216 cat >conftest.
$ac_ext <<_ACEOF
19219 cat confdefs.h
>>conftest.
$ac_ext
19220 cat >>conftest.
$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 /* Override any gcc2 internal prototype to avoid an error. */
19227 /* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19238 rm -f conftest.
$ac_objext conftest
$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1
>conftest.err
19244 cat conftest.err
>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try
='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try
='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_lib_dld_shl_load
=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.
$ac_ext >&5
19265 ac_cv_lib_dld_shl_load
=no
19267 rm -f conftest.err conftest.
$ac_objext \
19268 conftest
$ac_exeext conftest.
$ac_ext
19269 LIBS
=$ac_check_lib_save_LIBS
19271 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19273 if test $ac_cv_lib_dld_shl_load = yes; then
19274 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
19276 echo "$as_me:$LINENO: checking for dlopen" >&5
19277 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19278 if test "${ac_cv_func_dlopen+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 cat >conftest.
$ac_ext <<_ACEOF
19284 cat confdefs.h
>>conftest.
$ac_ext
19285 cat >>conftest.
$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19289 #define dlopen innocuous_dlopen
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char dlopen (); below.
19293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19294 <limits.h> exists even on freestanding compilers. */
19297 # include <limits.h>
19299 # include <assert.h>
19304 /* Override any gcc2 internal prototype to avoid an error. */
19309 /* We use char because int might match the return type of a gcc2
19310 builtin and then its argument prototype would still apply. */
19312 /* The GNU C library defines this for functions which it implements
19313 to always fail with ENOSYS. Some functions are actually named
19314 something starting with __ and the normal name is an alias. */
19315 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19318 char (*f) () = dlopen;
19327 return f != dlopen;
19332 rm -f conftest.
$ac_objext conftest
$ac_exeext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>conftest.er1
19336 grep -v '^ *+' conftest.er1
>conftest.err
19338 cat conftest.err
>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try
='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try
='test -s conftest$ac_exeext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_func_dlopen
=yes
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.
$ac_ext >&5
19359 ac_cv_func_dlopen
=no
19361 rm -f conftest.err conftest.
$ac_objext \
19362 conftest
$ac_exeext conftest.
$ac_ext
19364 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19365 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19366 if test $ac_cv_func_dlopen = yes; then
19367 lt_cv_dlopen
="dlopen"
19369 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19370 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19371 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 ac_check_lib_save_LIBS
=$LIBS
19376 cat >conftest.
$ac_ext <<_ACEOF
19379 cat confdefs.h
>>conftest.
$ac_ext
19380 cat >>conftest.
$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19383 /* Override any gcc2 internal prototype to avoid an error. */
19387 /* We use char because int might match the return type of a gcc2
19388 builtin and then its argument prototype would still apply. */
19398 rm -f conftest.
$ac_objext conftest
$ac_exeext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400 (eval $ac_link) 2>conftest.er1
19402 grep -v '^ *+' conftest.er1
>conftest.err
19404 cat conftest.err
>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try
='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try
='test -s conftest$ac_exeext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_lib_dl_dlopen
=yes
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.
$ac_ext >&5
19425 ac_cv_lib_dl_dlopen
=no
19427 rm -f conftest.err conftest.
$ac_objext \
19428 conftest
$ac_exeext conftest.
$ac_ext
19429 LIBS
=$ac_check_lib_save_LIBS
19431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19433 if test $ac_cv_lib_dl_dlopen = yes; then
19434 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19436 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19437 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19438 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 ac_check_lib_save_LIBS
=$LIBS
19442 LIBS
="-lsvld $LIBS"
19443 cat >conftest.
$ac_ext <<_ACEOF
19446 cat confdefs.h
>>conftest.
$ac_ext
19447 cat >>conftest.
$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19450 /* Override any gcc2 internal prototype to avoid an error. */
19454 /* We use char because int might match the return type of a gcc2
19455 builtin and then its argument prototype would still apply. */
19465 rm -f conftest.
$ac_objext conftest
$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467 (eval $ac_link) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1
>conftest.err
19471 cat conftest.err
>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try
='test -z "$ac_c_werror_flag"
19475 || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try
='test -s conftest$ac_exeext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 ac_cv_lib_svld_dlopen
=yes
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.
$ac_ext >&5
19492 ac_cv_lib_svld_dlopen
=no
19494 rm -f conftest.err conftest.
$ac_objext \
19495 conftest
$ac_exeext conftest.
$ac_ext
19496 LIBS
=$ac_check_lib_save_LIBS
19498 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19499 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19500 if test $ac_cv_lib_svld_dlopen = yes; then
19501 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19503 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19504 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19505 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_check_lib_save_LIBS
=$LIBS
19510 cat >conftest.
$ac_ext <<_ACEOF
19513 cat confdefs.h
>>conftest.
$ac_ext
19514 cat >>conftest.
$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19517 /* Override any gcc2 internal prototype to avoid an error. */
19521 /* We use char because int might match the return type of a gcc2
19522 builtin and then its argument prototype would still apply. */
19532 rm -f conftest.
$ac_objext conftest
$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534 (eval $ac_link) 2>conftest.er1
19536 grep -v '^ *+' conftest.er1
>conftest.err
19538 cat conftest.err
>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try
='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try
='test -s conftest$ac_exeext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_lib_dld_dld_link
=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.
$ac_ext >&5
19559 ac_cv_lib_dld_dld_link
=no
19561 rm -f conftest.err conftest.
$ac_objext \
19562 conftest
$ac_exeext conftest.
$ac_ext
19563 LIBS
=$ac_check_lib_save_LIBS
19565 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19566 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19567 if test $ac_cv_lib_dld_dld_link = yes; then
19568 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
19589 if test "x$lt_cv_dlopen" != xno
; then
19595 case $lt_cv_dlopen in
19597 save_CPPFLAGS
="$CPPFLAGS"
19598 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19600 save_LDFLAGS
="$LDFLAGS"
19601 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19604 LIBS
="$lt_cv_dlopen_libs $LIBS"
19606 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19607 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19608 if test "${lt_cv_dlopen_self+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 if test "$cross_compiling" = yes; then :
19612 lt_cv_dlopen_self
=cross
19614 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19615 lt_status
=$lt_dlunknown
19616 cat > conftest.
$ac_ext <<_LT_EOF
19617 #line 19617 "configure"
19618 #include "confdefs.h"
19627 # define LT_DLGLOBAL RTLD_GLOBAL
19630 # define LT_DLGLOBAL DL_GLOBAL
19632 # define LT_DLGLOBAL 0
19636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19637 find out it does not work in some platform. */
19638 #ifndef LT_DLLAZY_OR_NOW
19640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19643 # define LT_DLLAZY_OR_NOW DL_LAZY
19646 # define LT_DLLAZY_OR_NOW RTLD_NOW
19649 # define LT_DLLAZY_OR_NOW DL_NOW
19651 # define LT_DLLAZY_OR_NOW 0
19659 extern "C" void exit (int);
19662 void fnord() { int i=42;}
19665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19666 int status = $lt_dlunknown;
19670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19671 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19672 /* dlclose (self); */
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19685 (.
/conftest
; exit; ) >&5 2>/dev
/null
19687 case x
$lt_status in
19688 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19689 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19690 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19693 # compilation failed
19694 lt_cv_dlopen_self
=no
19701 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19702 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19704 if test "x$lt_cv_dlopen_self" = xyes
; then
19705 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19706 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19707 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19708 if test "${lt_cv_dlopen_self_static+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 if test "$cross_compiling" = yes; then :
19712 lt_cv_dlopen_self_static
=cross
19714 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19715 lt_status
=$lt_dlunknown
19716 cat > conftest.
$ac_ext <<_LT_EOF
19717 #line 19717 "configure"
19718 #include "confdefs.h"
19727 # define LT_DLGLOBAL RTLD_GLOBAL
19730 # define LT_DLGLOBAL DL_GLOBAL
19732 # define LT_DLGLOBAL 0
19736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19737 find out it does not work in some platform. */
19738 #ifndef LT_DLLAZY_OR_NOW
19740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19743 # define LT_DLLAZY_OR_NOW DL_LAZY
19746 # define LT_DLLAZY_OR_NOW RTLD_NOW
19749 # define LT_DLLAZY_OR_NOW DL_NOW
19751 # define LT_DLLAZY_OR_NOW 0
19759 extern "C" void exit (int);
19762 void fnord() { int i=42;}
19765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19766 int status = $lt_dlunknown;
19770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19772 /* dlclose (self); */
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19785 (.
/conftest
; exit; ) >&5 2>/dev
/null
19787 case x
$lt_status in
19788 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19789 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19790 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19793 # compilation failed
19794 lt_cv_dlopen_self_static
=no
19801 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19802 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19805 CPPFLAGS
="$save_CPPFLAGS"
19806 LDFLAGS
="$save_LDFLAGS"
19811 case $lt_cv_dlopen_self in
19812 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19813 *) enable_dlopen_self
=unknown
;;
19816 case $lt_cv_dlopen_self_static in
19817 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19818 *) enable_dlopen_self_static
=unknown
;;
19840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19842 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19843 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19844 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19845 echo "$as_me:$LINENO: result: yes" >&5
19846 echo "${ECHO_T}yes" >&6
19848 # FIXME - insert some real tests, host_os isn't really good enough
19851 if test -n "$STRIP" ; then
19852 striplib
="$STRIP -x"
19853 old_striplib
="$STRIP -S"
19854 echo "$as_me:$LINENO: result: yes" >&5
19855 echo "${ECHO_T}yes" >&6
19857 echo "$as_me:$LINENO: result: no" >&5
19858 echo "${ECHO_T}no" >&6
19862 echo "$as_me:$LINENO: result: no" >&5
19863 echo "${ECHO_T}no" >&6
19879 # Report which library types will actually be built
19880 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19881 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19882 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19883 echo "${ECHO_T}$can_build_shared" >&6
19885 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19886 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19887 test "$can_build_shared" = "no" && enable_shared
=no
19889 # On AIX, shared libraries and static libraries use the same namespace, and
19890 # are all built from PIC.
19893 test "$enable_shared" = yes && enable_static
=no
19894 if test -n "$RANLIB"; then
19895 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19896 postinstall_cmds
='$RANLIB $lib'
19901 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19902 test "$enable_shared" = yes && enable_static
=no
19906 echo "$as_me:$LINENO: result: $enable_shared" >&5
19907 echo "${ECHO_T}$enable_shared" >&6
19909 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19910 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19911 # Make sure either enable_shared or enable_static is yes.
19912 test "$enable_shared" = yes || enable_static
=yes
19913 echo "$as_me:$LINENO: result: $enable_static" >&5
19914 echo "${ECHO_T}$enable_static" >&6
19921 ac_cpp
='$CPP $CPPFLAGS'
19922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19943 # Only expand once:
19949 # Identify the assembler which will work hand-in-glove with the newly
19950 # built GCC, so that we can examine its features. This is the assembler
19951 # which will be driven by the driver program.
19953 # If build != host, and we aren't building gas in-tree, we identify a
19954 # build->target assembler and hope that it will have the same features
19955 # as the host->target assembler we'll be using.
19956 gcc_cv_gas_major_version
=
19957 gcc_cv_gas_minor_version
=
19958 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19960 if test "${gcc_cv_as+set}" = set; then
19964 if test -x "$DEFAULT_ASSEMBLER"; then
19965 gcc_cv_as
="$DEFAULT_ASSEMBLER"
19966 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
19967 && test -f ..
/gas
/Makefile \
19968 && test x
$build = x
$host; then
19969 gcc_cv_as
=..
/gas
/as-new
$build_exeext
19970 elif test -x as
$build_exeext; then
19971 # Build using assembler in the current directory.
19972 gcc_cv_as
=.
/as
$build_exeext
19973 elif test -x $AS_FOR_TARGET; then
19974 gcc_cv_as
="$AS_FOR_TARGET"
19976 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19977 set dummy
$AS_FOR_TARGET; ac_word
=$2
19978 echo "$as_me:$LINENO: checking for $ac_word" >&5
19979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19980 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
19988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19989 for as_dir
in $PATH
19992 test -z "$as_dir" && as_dir
=.
19993 for ac_exec_ext
in '' $ac_executable_extensions; do
19994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19995 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
19996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20005 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20007 if test -n "$gcc_cv_as"; then
20008 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20009 echo "${ECHO_T}$gcc_cv_as" >&6
20011 echo "$as_me:$LINENO: result: no" >&5
20012 echo "${ECHO_T}no" >&6
20019 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20021 case "$ORIGINAL_AS_FOR_TARGET" in
20022 .
/as | .
/as
$build_exeext) ;;
20023 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20027 echo "$as_me:$LINENO: checking what assembler to use" >&5
20028 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20029 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20030 # Single tree build which includes gas. We want to prefer it
20031 # over whatever linker top-level may have detected, since
20032 # we'll use what we're building after installation anyway.
20033 echo "$as_me:$LINENO: result: newly built gas" >&5
20034 echo "${ECHO_T}newly built gas" >&6
20036 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20037 for f
in $gcc_cv_as_bfd_srcdir/configure \
20038 $gcc_cv_as_gas_srcdir/configure \
20039 $gcc_cv_as_gas_srcdir/configure.
in \
20040 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20041 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20042 if test x
$gcc_cv_gas_version != x
; then
20046 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20047 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20048 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20049 case $gcc_cv_gas_patch_version in
20050 "") gcc_cv_gas_patch_version
="0" ;;
20052 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20053 + $gcc_cv_gas_minor_version \) \* 1000 \
20054 + $gcc_cv_gas_patch_version`
20056 in_tree_gas_is_elf
=no
20057 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20058 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20059 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20061 in_tree_gas_is_elf
=yes
20064 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20065 echo "${ECHO_T}$gcc_cv_as" >&6
20069 # Identify the linker which will work hand-in-glove with the newly
20070 # built GCC, so that we can examine its features. This is the linker
20071 # which will be driven by the driver program.
20073 # If build != host, and we aren't building gas in-tree, we identify a
20074 # build->target linker and hope that it will have the same features
20075 # as the host->target linker we'll be using.
20076 gcc_cv_gld_major_version
=
20077 gcc_cv_gld_minor_version
=
20078 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20079 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20081 if test "${gcc_cv_ld+set}" = set; then
20085 if test -x "$DEFAULT_LINKER"; then
20086 gcc_cv_ld
="$DEFAULT_LINKER"
20087 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20088 && test -f ..
/ld
/Makefile \
20089 && test x
$build = x
$host; then
20090 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20091 elif test -x collect-ld
$build_exeext; then
20092 # Build using linker in the current directory.
20093 gcc_cv_ld
=.
/collect-ld
$build_exeext
20094 elif test -x $LD_FOR_TARGET; then
20095 gcc_cv_ld
="$LD_FOR_TARGET"
20097 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20098 set dummy
$LD_FOR_TARGET; ac_word
=$2
20099 echo "$as_me:$LINENO: checking for $ac_word" >&5
20100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20101 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20110 for as_dir
in $PATH
20113 test -z "$as_dir" && as_dir
=.
20114 for ac_exec_ext
in '' $ac_executable_extensions; do
20115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20116 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20126 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20128 if test -n "$gcc_cv_ld"; then
20129 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20130 echo "${ECHO_T}$gcc_cv_ld" >&6
20132 echo "$as_me:$LINENO: result: no" >&5
20133 echo "${ECHO_T}no" >&6
20140 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20142 case "$ORIGINAL_LD_FOR_TARGET" in
20143 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20144 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20148 echo "$as_me:$LINENO: checking what linker to use" >&5
20149 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20150 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20151 # Single tree build which includes ld. We want to prefer it
20152 # over whatever linker top-level may have detected, since
20153 # we'll use what we're building after installation anyway.
20154 echo "$as_me:$LINENO: result: newly built ld" >&5
20155 echo "${ECHO_T}newly built ld" >&6
20157 in_tree_ld_is_elf
=no
20158 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20159 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20160 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20161 in_tree_ld_is_elf
=yes
20163 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
20165 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20166 if test x
$gcc_cv_gld_version != x
; then
20170 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20171 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20173 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20174 echo "${ECHO_T}$gcc_cv_ld" >&6
20178 # Figure out what nm we will be using.
20179 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20180 if test "${gcc_cv_nm+set}" = set; then
20184 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20185 && test -f ..
/binutils
/Makefile \
20186 && test x
$build = x
$host; then
20187 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20188 elif test -x nm
$build_exeext; then
20189 gcc_cv_nm
=.
/nm
$build_exeext
20190 elif test -x $NM_FOR_TARGET; then
20191 gcc_cv_nm
="$NM_FOR_TARGET"
20193 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20194 set dummy
$NM_FOR_TARGET; ac_word
=$2
20195 echo "$as_me:$LINENO: checking for $ac_word" >&5
20196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20197 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20206 for as_dir
in $PATH
20209 test -z "$as_dir" && as_dir
=.
20210 for ac_exec_ext
in '' $ac_executable_extensions; do
20211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20212 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20222 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20224 if test -n "$gcc_cv_nm"; then
20225 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20226 echo "${ECHO_T}$gcc_cv_nm" >&6
20228 echo "$as_me:$LINENO: result: no" >&5
20229 echo "${ECHO_T}no" >&6
20236 echo "$as_me:$LINENO: checking what nm to use" >&5
20237 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20238 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20239 # Single tree build which includes binutils.
20240 echo "$as_me:$LINENO: result: newly built nm" >&5
20241 echo "${ECHO_T}newly built nm" >&6
20244 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20245 echo "${ECHO_T}$gcc_cv_nm" >&6
20249 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20251 case "$ORIGINAL_NM_FOR_TARGET" in
20252 .
/nm | .
/nm
$build_exeext) ;;
20253 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20258 # Figure out what objdump we will be using.
20259 if test "${gcc_cv_objdump+set}" = set; then
20263 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20264 && test -f ..
/binutils
/Makefile \
20265 && test x
$build = x
$host; then
20266 # Single tree build which includes binutils.
20267 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20268 elif test -x objdump
$build_exeext; then
20269 gcc_cv_objdump
=.
/objdump
$build_exeext
20270 elif test -x $OBJDUMP_FOR_TARGET; then
20271 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20273 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20274 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20275 echo "$as_me:$LINENO: checking for $ac_word" >&5
20276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20277 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 case $gcc_cv_objdump in
20282 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20286 for as_dir
in $PATH
20289 test -z "$as_dir" && as_dir
=.
20290 for ac_exec_ext
in '' $ac_executable_extensions; do
20291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20292 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20302 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20304 if test -n "$gcc_cv_objdump"; then
20305 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20306 echo "${ECHO_T}$gcc_cv_objdump" >&6
20308 echo "$as_me:$LINENO: result: no" >&5
20309 echo "${ECHO_T}no" >&6
20316 echo "$as_me:$LINENO: checking what objdump to use" >&5
20317 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20318 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20319 # Single tree build which includes binutils.
20320 echo "$as_me:$LINENO: result: newly built objdump" >&5
20321 echo "${ECHO_T}newly built objdump" >&6
20322 elif test x
$gcc_cv_objdump = x
; then
20323 echo "$as_me:$LINENO: result: not found" >&5
20324 echo "${ECHO_T}not found" >&6
20326 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20327 echo "${ECHO_T}$gcc_cv_objdump" >&6
20330 # Figure out what assembler alignment features are present.
20331 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20332 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20333 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 gcc_cv_as_balign_and_p2align
=no
20337 if test $in_tree_gas = yes; then
20338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20339 then gcc_cv_as_balign_and_p2align
=yes
20341 elif test x
$gcc_cv_as != x
; then
20343 .p2align 2' > conftest.s
20344 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }
20351 gcc_cv_as_balign_and_p2align
=yes
20353 echo "configure: failed program was" >&5
20356 rm -f conftest.o conftest.s
20359 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20360 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20361 if test $gcc_cv_as_balign_and_p2align = yes; then
20363 cat >>confdefs.h
<<\_ACEOF
20364 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20369 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20370 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20371 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 gcc_cv_as_max_skip_p2align
=no
20375 if test $in_tree_gas = yes; then
20376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20377 then gcc_cv_as_max_skip_p2align
=yes
20379 elif test x
$gcc_cv_as != x
; then
20380 echo '.p2align 4,,7' > conftest.s
20381 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }
20388 gcc_cv_as_max_skip_p2align
=yes
20390 echo "configure: failed program was" >&5
20393 rm -f conftest.o conftest.s
20396 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20397 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20398 if test $gcc_cv_as_max_skip_p2align = yes; then
20400 cat >>confdefs.h
<<\_ACEOF
20401 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20406 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20407 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20408 if test "${gcc_cv_as_literal16+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 gcc_cv_as_literal16
=no
20412 if test $in_tree_gas = yes; then
20413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20414 then gcc_cv_as_literal16
=yes
20416 elif test x
$gcc_cv_as != x
; then
20417 echo '.literal16' > conftest.s
20418 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }
20425 gcc_cv_as_literal16
=yes
20427 echo "configure: failed program was" >&5
20430 rm -f conftest.o conftest.s
20433 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20434 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20435 if test $gcc_cv_as_literal16 = yes; then
20437 cat >>confdefs.h
<<\_ACEOF
20438 #define HAVE_GAS_LITERAL16 1
20443 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20444 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20445 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 gcc_cv_as_subsection_m1
=no
20449 if test $in_tree_gas = yes; then
20450 if test $in_tree_gas_is_elf = yes \
20451 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20452 then gcc_cv_as_subsection_m1
=yes
20454 elif test x
$gcc_cv_as != x
; then
20455 echo 'conftest_label1: .word 0
20457 conftest_label2: .word 0
20458 .previous' > conftest.s
20459 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }
20466 if test x
$gcc_cv_nm != x
; then
20467 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
20468 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
20469 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
20471 else gcc_cv_as_subsection_m1
=yes
20473 rm -f conftest.nm1 conftest.nm2
20476 echo "configure: failed program was" >&5
20479 rm -f conftest.o conftest.s
20482 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20483 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20484 if test $gcc_cv_as_subsection_m1 = yes; then
20486 cat >>confdefs.h
<<\_ACEOF
20487 #define HAVE_GAS_SUBSECTION_ORDERING 1
20492 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20493 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20494 if test "${gcc_cv_as_weak+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 if test $in_tree_gas = yes; then
20499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20500 then gcc_cv_as_weak
=yes
20502 elif test x
$gcc_cv_as != x
; then
20503 echo ' .weak foobar' > conftest.s
20504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }
20513 echo "configure: failed program was" >&5
20516 rm -f conftest.o conftest.s
20519 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20520 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20521 if test $gcc_cv_as_weak = yes; then
20523 cat >>confdefs.h
<<\_ACEOF
20524 #define HAVE_GAS_WEAK 1
20529 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20530 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20531 if test "${gcc_cv_as_weakref+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 gcc_cv_as_weakref
=no
20535 if test $in_tree_gas = yes; then
20536 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20537 then gcc_cv_as_weakref
=yes
20539 elif test x
$gcc_cv_as != x
; then
20540 echo ' .weakref foobar, barfnot' > conftest.s
20541 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }
20548 gcc_cv_as_weakref
=yes
20550 echo "configure: failed program was" >&5
20553 rm -f conftest.o conftest.s
20556 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20557 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20558 if test $gcc_cv_as_weakref = yes; then
20560 cat >>confdefs.h
<<\_ACEOF
20561 #define HAVE_GAS_WEAKREF 1
20566 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20567 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20568 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 gcc_cv_as_nsubspa_comdat
=no
20572 if test $in_tree_gas = yes; then
20573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20574 then gcc_cv_as_nsubspa_comdat
=yes
20576 elif test x
$gcc_cv_as != x
; then
20577 echo ' .SPACE $TEXT$
20578 .NSUBSPA $CODE$,COMDAT' > conftest.s
20579 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }
20586 gcc_cv_as_nsubspa_comdat
=yes
20588 echo "configure: failed program was" >&5
20591 rm -f conftest.o conftest.s
20594 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20595 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20596 if test $gcc_cv_as_nsubspa_comdat = yes; then
20598 cat >>confdefs.h
<<\_ACEOF
20599 #define HAVE_GAS_NSUBSPA_COMDAT 1
20604 # .hidden needs to be supported in both the assembler and the linker,
20605 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20606 # This is irritatingly difficult to feature test for; we have to check the
20607 # date string after the version number. If we've got an in-tree
20608 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20610 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20611 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20612 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20613 if test "${gcc_cv_as_hidden+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 gcc_cv_as_hidden
=no
20617 if test $in_tree_gas = yes; then
20618 if test $in_tree_gas_is_elf = yes \
20619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20620 then gcc_cv_as_hidden
=yes
20622 elif test x
$gcc_cv_as != x
; then
20623 echo ' .hidden foobar
20624 foobar:' > conftest.s
20625 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }
20632 gcc_cv_as_hidden
=yes
20634 echo "configure: failed program was" >&5
20637 rm -f conftest.o conftest.s
20640 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20641 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20644 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20645 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20646 if test "${gcc_cv_ld_hidden+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 if test $in_tree_ld = yes ; then
20650 gcc_cv_ld_hidden
=no
20651 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 \
20652 && test $in_tree_ld_is_elf = yes; then
20653 gcc_cv_ld_hidden
=yes
20656 gcc_cv_ld_hidden
=yes
20657 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20658 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20659 ld_vers
=`echo $ld_ver | sed -n \
20660 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20661 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'`
20662 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20663 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20664 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20665 if test 0"$ld_date" -lt 20020404; then
20666 if test -n "$ld_date"; then
20667 # If there was date string, but was earlier than 2002-04-04, fail
20668 gcc_cv_ld_hidden
=no
20669 elif test -z "$ld_vers"; then
20670 # If there was no date string nor ld version number, something is wrong
20671 gcc_cv_ld_hidden
=no
20673 test -z "$ld_vers_patch" && ld_vers_patch
=0
20674 if test "$ld_vers_major" -lt 2; then
20675 gcc_cv_ld_hidden
=no
20676 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20677 gcc_cv_ld_hidden
="no"
20678 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20679 gcc_cv_ld_hidden
=no
20684 case "${target}" in
20685 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20686 gcc_cv_ld_hidden
=yes
20689 gcc_cv_ld_hidden
=no
20695 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20696 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20697 libgcc_visibility
=no
20700 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20701 libgcc_visibility
=yes
20703 cat >>confdefs.h
<<\_ACEOF
20704 #define HAVE_GAS_HIDDEN 1
20709 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20710 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20711 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20712 if test "${gcc_cv_as_leb128+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 gcc_cv_as_leb128
=no
20716 if test $in_tree_gas = yes; then
20717 if test $in_tree_gas_is_elf = yes \
20718 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20719 then gcc_cv_as_leb128
=yes
20721 elif test x
$gcc_cv_as != x
; then
20728 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }
20735 # GAS versions before 2.11 do not support uleb128,
20736 # despite appearing to.
20737 # ??? There exists an elf-specific test that will crash
20738 # the assembler. Perhaps it's better to figure out whether
20739 # arbitrary sections are supported and try the test.
20740 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20741 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20742 as_vers
=`echo $as_ver | sed -n \
20743 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20744 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20745 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20746 if test $as_major -eq 2 && test $as_minor -lt 11
20748 else gcc_cv_as_leb128
=yes
20752 echo "configure: failed program was" >&5
20755 rm -f conftest.o conftest.s
20758 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20759 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20760 if test $gcc_cv_as_leb128 = yes; then
20762 cat >>confdefs.h
<<\_ACEOF
20763 #define HAVE_AS_LEB128 1
20768 # GAS versions up to and including 2.11.0 may mis-optimize
20770 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20771 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20772 if test "${gcc_cv_as_eh_frame+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 gcc_cv_as_eh_frame
=no
20776 if test $in_tree_gas = yes; then
20777 if test $in_tree_gas_is_elf = yes \
20778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20779 then gcc_cv_as_eh_frame
=yes
20781 elif test x
$gcc_cv_as != x
; then
20788 .section .eh_frame,"aw",@progbits
20790 .4byte .LECIE1-.LSCIE1
20804 .4byte .LEFDE1-.LASFDE1
20806 .4byte .LASFDE1-__FRAME_BEGIN__
20813 .LEFDE1:' > conftest.s
20814 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }
20821 cat > conftest.lit
<<EOF
20822 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20823 0010 01000000 12000000 18000000 00000000 ................
20824 0020 08000000 04080000 0044 .........D
20826 cat > conftest.big
<<EOF
20827 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20828 0010 00000001 00000012 00000018 00000000 ................
20829 0020 00000008 04000000 0844 .........D
20831 # If the assembler didn't choke, and we can objdump,
20832 # and we got the correct data, then succeed.
20833 # The text in the here-document typically retains its unix-style line
20834 # endings, while the output of objdump will use host line endings.
20835 # Therefore, use diff -b for the comparisons.
20836 if test x
$gcc_cv_objdump != x \
20837 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
20838 |
tail -3 > conftest.got \
20839 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
20840 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
20842 gcc_cv_as_eh_frame
=yes
20843 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 gcc_cv_as_eh_frame
=buggy
20851 # Uh oh, what do we do now?
20852 gcc_cv_as_eh_frame
=no
20855 echo "configure: failed program was" >&5
20858 rm -f conftest.o conftest.s
20861 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20862 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20865 if test $gcc_cv_as_eh_frame = buggy
; then
20867 cat >>confdefs.h
<<\_ACEOF
20868 #define USE_AS_TRADITIONAL_FORMAT 1
20873 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20874 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20875 if test "${gcc_cv_as_shf_merge+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 gcc_cv_as_shf_merge
=no
20879 if test $in_tree_gas = yes; then
20880 if test $in_tree_gas_is_elf = yes \
20881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20882 then gcc_cv_as_shf_merge
=yes
20884 elif test x
$gcc_cv_as != x
; then
20885 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20886 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }
20893 gcc_cv_as_shf_merge
=yes
20895 echo "configure: failed program was" >&5
20898 rm -f conftest.o conftest.s
20901 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20902 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20904 if test $gcc_cv_as_shf_merge = no
; then
20905 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20906 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20907 if test "${gcc_cv_as_shf_merge+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 gcc_cv_as_shf_merge
=no
20911 if test $in_tree_gas = yes; then
20912 if test $in_tree_gas_is_elf = yes \
20913 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20914 then gcc_cv_as_shf_merge
=yes
20916 elif test x
$gcc_cv_as != x
; then
20917 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20918 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }
20925 gcc_cv_as_shf_merge
=yes
20927 echo "configure: failed program was" >&5
20930 rm -f conftest.o conftest.s
20933 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20934 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20938 cat >>confdefs.h
<<_ACEOF
20939 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20943 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20944 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20945 if test "${gcc_cv_as_comdat_group+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 gcc_cv_as_comdat_group
=no
20949 if test $in_tree_gas = yes; then
20950 if test $in_tree_gas_is_elf = yes \
20951 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20952 then gcc_cv_as_comdat_group
=yes
20954 elif test x
$gcc_cv_as != x
; then
20955 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20956 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }
20963 gcc_cv_as_comdat_group
=yes
20965 echo "configure: failed program was" >&5
20968 rm -f conftest.o conftest.s
20971 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20972 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20974 if test $gcc_cv_as_comdat_group = yes; then
20975 gcc_cv_as_comdat_group_percent
=no
20977 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20978 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20979 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 gcc_cv_as_comdat_group_percent
=no
20983 if test $in_tree_gas = yes; then
20984 if test $in_tree_gas_is_elf = yes \
20985 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20986 then gcc_cv_as_comdat_group_percent
=yes
20988 elif test x
$gcc_cv_as != x
; then
20989 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20990 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }
20997 gcc_cv_as_comdat_group_percent
=yes
20999 echo "configure: failed program was" >&5
21002 rm -f conftest.o conftest.s
21005 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21006 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21009 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21011 if test 0"$ld_date" -lt 20050308; then
21012 if test -n "$ld_date"; then
21013 # If there was date string, but was earlier than 2005-03-08, fail
21015 elif test "$ld_vers_major" -lt 2; then
21017 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21022 # assume linkers other than GNU ld don't support COMDAT group
21025 if test $comdat_group = no
; then
21026 gcc_cv_as_comdat_group
=no
21027 gcc_cv_as_comdat_group_percent
=no
21030 cat >>confdefs.h
<<_ACEOF
21031 #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`
21035 # Thread-local storage - the check is heavily parametrized.
21043 .section ".tdata","awT",@progbits
21046 ldq $27,__tls_get_addr($29) !literal!1
21047 lda $16,foo($29) !tlsgd!1
21048 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21049 ldq $27,__tls_get_addr($29) !literal!2
21050 lda $16,foo($29) !tlsldm!2
21051 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21052 ldq $1,foo($29) !gotdtprel
21053 ldah $2,foo($29) !dtprelhi
21054 lda $3,foo($2) !dtprello
21055 lda $4,foo($29) !dtprel
21056 ldq $1,foo($29) !gottprel
21057 ldah $2,foo($29) !tprelhi
21058 lda $3,foo($2) !tprello
21059 lda $4,foo($29) !tprel'
21062 tls_as_opt
=--fatal-warnings
21066 .section ".tdata","awT",@progbits
21069 call #gettlsoff(x)'
21078 .section ".tdata","awT",@progbits
21082 addil LT%foo-$tls_gdidx$,gp
21083 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21086 addil LT%foo-$tls_ldidx$,gp
21088 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21089 addil LR%foo-$tls_dtpoff$,%ret0
21090 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21092 addil LT%foo-$tls_ieoff$,gp
21093 ldw RT%foo-$tls_ieoff$(%r1),%t2
21096 addil LR%foo-$tls_leoff$,%t1
21097 ldo RR%foo-$tls_leoff$(%r1),%t2'
21100 tls_as_opt
=--fatal-warnings
21104 .section ".tdata","awT",%progbits
21107 .word foo(gottpoff)
21117 .section ".tdata","awT",@progbits
21121 leal foo@TLSGD(,%ebx,1), %eax
21122 leal foo@TLSLDM(%ebx), %eax
21123 leal foo@DTPOFF(%eax), %edx
21124 movl foo@GOTTPOFF(%ebx), %eax
21125 subl foo@GOTTPOFF(%ebx), %eax
21126 addl foo@GOTNTPOFF(%ebx), %eax
21127 movl foo@INDNTPOFF, %eax
21128 movl $foo@TPOFF, %eax
21129 subl $foo@TPOFF, %eax
21130 leal foo@NTPOFF(%ecx), %eax'
21133 tls_as_opt
=--fatal-warnings
21137 .section ".tdata","awT",@progbits
21141 leaq foo@TLSGD(%rip), %rdi
21142 leaq foo@TLSLD(%rip), %rdi
21143 leaq foo@DTPOFF(%rax), %rdx
21144 movq foo@GOTTPOFF(%rip), %rax
21145 movq $foo@TPOFF, %rax'
21148 tls_as_opt
=--fatal-warnings
21152 .section ".tdata","awT",@progbits
21155 addl r16 = @ltoff(@dtpmod(foo#)), gp
21156 addl r17 = @ltoff(@dtprel(foo#)), gp
21157 addl r18 = @ltoff(@tprel(foo#)), gp
21158 addl r19 = @dtprel(foo#), gp
21159 adds r21 = @dtprel(foo#), r13
21160 movl r23 = @dtprel(foo#)
21161 addl r20 = @tprel(foo#), gp
21162 adds r22 = @tprel(foo#), r13
21163 movl r24 = @tprel(foo#)'
21166 tls_as_opt
=--fatal-warnings
21170 .section .tdata,"awT",@progbits
21174 addiu $4, $28, %tlsgd(x)
21175 addiu $4, $28, %tlsldm(x)
21176 lui $4, %dtprel_hi(x)
21177 addiu $4, $4, %dtprel_lo(x)
21178 lw $4, %gottprel(x)($28)
21179 lui $4, %tprel_hi(x)
21180 addiu $4, $4, %tprel_lo(x)'
21183 tls_as_opt
='-32 --fatal-warnings'
21187 .section ".tdata","awT",@progbits
21195 addi 3,31,ld0@got@tlsgd
21197 addi 3,31,x1@got@tlsld
21200 addis 9,3,x2@dtprel@ha
21201 addi 9,9,x2@dtprel@l
21202 lwz 9,x3@got@tprel(31)
21205 addis 9,2,x2@tprel@ha
21206 addi 9,9,x2@tprel@l'
21209 tls_as_opt
="-a32 --fatal-warnings"
21213 .section ".tdata","awT",@progbits
21221 addi 3,2,ld0@got@tlsgd
21227 addi 3,2,x1@got@tlsld
21233 addis 9,3,x2@dtprel@ha
21234 addi 9,9,x2@dtprel@l
21237 ld 9,x3@got@dtprel(2)
21243 tls_as_opt
="-a64 --fatal-warnings"
21247 .section ".tdata","awT",@progbits
21254 .long foo@GOTNTPOFF
21255 .long foo@INDNTPOFF
21256 l %r1,foo@GOTNTPOFF(%r12)
21257 l %r1,0(%r1):tls_load:foo
21258 bas %r14,0(%r1,%r13):tls_gdcall:foo
21259 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21262 tls_as_opt
="-m31 --fatal-warnings"
21266 .section ".tdata","awT",@progbits
21273 .quad foo@GOTNTPOFF
21274 lg %r1,foo@GOTNTPOFF(%r12)
21275 larl %r1,foo@INDNTPOFF
21276 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21277 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21280 tls_as_opt
="-m64 -Aesame --fatal-warnings"
21282 sh-
*-* | sh
[34]-*-*)
21284 .section ".tdata","awT",@progbits
21294 tls_as_opt
=--fatal-warnings
21298 sparc
*-sun-solaris2.
[56789]*)
21299 # TLS was introduced in the Solaris 9 4/04 release but
21300 # we do not enable it by default on Solaris 9 either.
21301 if test "x$enable_tls" = xyes
; then
21307 sparc
*-sun-solaris2.
*)
21314 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
21316 .section ".tdata",#alloc,#write,#tls
21319 sethi %tgd_hi22(foo), %o0
21320 add %o0, %tgd_lo10(foo), %o1
21321 add %l7, %o1, %o0, %tgd_add(foo)
21322 call __tls_get_addr, %tgd_call(foo)
21323 sethi %tldm_hi22(foo), %l1
21324 add %l1, %tldm_lo10(foo), %l2
21325 add %l7, %l2, %o0, %tldm_add(foo)
21326 call __tls_get_addr, %tldm_call(foo)
21327 sethi %tldo_hix22(foo), %l3
21328 xor %l3, %tldo_lox10(foo), %l4
21329 add %o0, %l4, %l5, %tldo_add(foo)
21330 sethi %tie_hi22(foo), %o3
21331 add %o3, %tie_lo10(foo), %o3
21332 ld [%l7 + %o3], %o2, %tie_ld(foo)
21333 add %g7, %o2, %o4, %tie_add(foo)
21334 sethi %tle_hix22(foo), %l1
21335 xor %l1, %tle_lox10(foo), %o5
21336 ld [%g7 + %o5], %o1'
21341 .section ".tdata","awT",@progbits
21344 sethi %tgd_hi22(foo), %o0
21345 add %o0, %tgd_lo10(foo), %o1
21346 add %l7, %o1, %o0, %tgd_add(foo)
21347 call __tls_get_addr, %tgd_call(foo)
21348 sethi %tldm_hi22(foo), %l1
21349 add %l1, %tldm_lo10(foo), %l2
21350 add %l7, %l2, %o0, %tldm_add(foo)
21351 call __tls_get_addr, %tldm_call(foo)
21352 sethi %tldo_hix22(foo), %l3
21353 xor %l3, %tldo_lox10(foo), %l4
21354 add %o0, %l4, %l5, %tldo_add(foo)
21355 sethi %tie_hi22(foo), %o3
21356 add %o3, %tie_lo10(foo), %o3
21357 ld [%l7 + %o3], %o2, %tie_ld(foo)
21358 add %g7, %o2, %o4, %tie_add(foo)
21359 sethi %tle_hix22(foo), %l1
21360 xor %l1, %tle_lox10(foo), %o5
21361 ld [%g7 + %o5], %o1'
21364 tls_as_opt
="-32 --fatal-warnings"
21369 if test "x$enable_tls" = xno
; then
21370 : # TLS explicitly disabled.
21371 elif test "x$enable_tls" = xyes
; then
21372 set_have_as_tls
=yes # TLS explicitly enabled.
21373 elif test -z "$tls_first_major"; then
21374 : # If we don't have a check, assume no support.
21376 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21377 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21378 if test "${gcc_cv_as_tls+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 if test $in_tree_gas = yes; then
21383 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21384 then gcc_cv_as_tls
=yes
21386 elif test x
$gcc_cv_as != x
; then
21387 echo "$conftest_s" > conftest.s
21388 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }
21397 echo "configure: failed program was" >&5
21400 rm -f conftest.o conftest.s
21403 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21404 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21405 if test $gcc_cv_as_tls = yes; then
21406 set_have_as_tls
=yes
21409 if test $set_have_as_tls = yes ; then
21411 cat >>confdefs.h
<<\_ACEOF
21412 #define HAVE_AS_TLS 1
21417 # Target-specific assembler checks.
21419 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21420 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21421 gcc_cv_ld_static_dynamic
=no
21422 if test $in_tree_ld = yes ; then
21423 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21424 gcc_cv_ld_static_dynamic
=yes
21426 elif test x
$gcc_cv_ld != x
; then
21427 # Check if linker supports -Bstatic/-Bdynamic option
21428 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
21429 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
21430 gcc_cv_ld_static_dynamic
=yes
21433 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
21435 cat >>confdefs.h
<<\_ACEOF
21436 #define HAVE_LD_STATIC_DYNAMIC 1
21440 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21441 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21443 if test x
"$demangler_in_ld" = xyes
; then
21444 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21445 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21446 gcc_cv_ld_demangle
=no
21447 if test $in_tree_ld = yes; then
21448 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 \
21449 gcc_cv_ld_demangle
=yes
21451 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
21452 # Check if the GNU linker supports --demangle option
21453 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
21454 gcc_cv_ld_demangle
=yes
21457 if test x
"$gcc_cv_ld_demangle" = xyes
; then
21459 cat >>confdefs.h
<<\_ACEOF
21460 #define HAVE_LD_DEMANGLE 1
21464 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21465 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21469 # All TARGET_ABI_OSF targets.
21470 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
21471 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21472 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21473 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21474 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 gcc_cv_as_alpha_explicit_relocs
=no
21477 if test $in_tree_gas = yes; then
21478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21479 then gcc_cv_as_alpha_explicit_relocs
=yes
21481 elif test x
$gcc_cv_as != x
; then
21482 echo ' .set nomacro
21484 extbl $3, $2, $3 !lituse_bytoff!1
21485 ldq $2, a($29) !literal!1
21486 ldq $4, b($29) !literal!2
21487 ldq_u $3, 0($2) !lituse_base!1
21488 ldq $27, f($29) !literal!5
21489 jsr $26, ($27), f !lituse_jsr!5
21490 ldah $29, 0($26) !gpdisp!3
21491 lda $0, c($29) !gprel
21492 ldah $1, d($29) !gprelhigh
21493 lda $1, d($1) !gprellow
21494 lda $29, 0($29) !gpdisp!3' > conftest.s
21495 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }
21502 gcc_cv_as_alpha_explicit_relocs
=yes
21504 echo "configure: failed program was" >&5
21507 rm -f conftest.o conftest.s
21510 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21511 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21512 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21514 cat >>confdefs.h
<<\_ACEOF
21515 #define HAVE_AS_EXPLICIT_RELOCS 1
21519 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21520 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21521 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 gcc_cv_as_alpha_jsrdirect_relocs
=no
21525 if test $in_tree_gas = yes; then
21526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21527 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
21529 elif test x
$gcc_cv_as != x
; then
21530 echo ' .set nomacro
21532 ldq $27, a($29) !literal!1
21533 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21534 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }
21541 gcc_cv_as_alpha_jsrdirect_relocs
=yes
21543 echo "configure: failed program was" >&5
21546 rm -f conftest.o conftest.s
21549 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21550 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21551 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21553 cat >>confdefs.h
<<\_ACEOF
21554 #define HAVE_AS_JSRDIRECT_RELOCS 1
21561 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21562 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21563 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 gcc_cv_as_cris_no_mul_bug
=no
21567 if test $in_tree_gas = yes; then
21568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21569 then gcc_cv_as_cris_no_mul_bug
=yes
21571 elif test x
$gcc_cv_as != x
; then
21572 echo '.text' > conftest.s
21573 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }
21580 gcc_cv_as_cris_no_mul_bug
=yes
21582 echo "configure: failed program was" >&5
21585 rm -f conftest.o conftest.s
21588 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21589 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21590 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21592 cat >>confdefs.h
<<\_ACEOF
21593 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21600 echo "$as_me:$LINENO: checking assembler for .register" >&5
21601 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21602 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 gcc_cv_as_sparc_register_op
=no
21606 if test x
$gcc_cv_as != x
; then
21607 echo '.register %g2, #scratch' > conftest.s
21608 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }
21615 gcc_cv_as_sparc_register_op
=yes
21617 echo "configure: failed program was" >&5
21620 rm -f conftest.o conftest.s
21623 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21624 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21625 if test $gcc_cv_as_sparc_register_op = yes; then
21627 cat >>confdefs.h
<<\_ACEOF
21628 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21633 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21634 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21635 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 gcc_cv_as_sparc_relax
=no
21639 if test x
$gcc_cv_as != x
; then
21640 echo '.text' > conftest.s
21641 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }
21648 gcc_cv_as_sparc_relax
=yes
21650 echo "configure: failed program was" >&5
21653 rm -f conftest.o conftest.s
21656 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21657 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21658 if test $gcc_cv_as_sparc_relax = yes; then
21660 cat >>confdefs.h
<<\_ACEOF
21661 #define HAVE_AS_RELAX_OPTION 1
21666 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21667 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21668 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 gcc_cv_as_sparc_ua_pcrel
=no
21672 if test x
$gcc_cv_as != x
; then
21679 .uaword %r_disp32(foo)' > conftest.s
21680 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }
21687 if test x
$gcc_cv_ld != x \
21688 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
21689 gcc_cv_as_sparc_ua_pcrel
=yes
21693 echo "configure: failed program was" >&5
21696 rm -f conftest.o conftest.s
21699 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21700 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21701 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21703 cat >>confdefs.h
<<\_ACEOF
21704 #define HAVE_AS_SPARC_UA_PCREL 1
21708 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21709 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21710 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 gcc_cv_as_sparc_ua_pcrel_hidden
=no
21714 if test x
$gcc_cv_as != x
; then
21718 .uaword %r_disp32(foo)
21719 .byte 0x32, 0x33, 0x34
21723 .skip 4' > conftest.s
21724 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }
21731 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
21732 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
21733 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
21734 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
21735 if $gcc_cv_objdump -R conftest
2> /dev
/null \
21736 |
grep 'DISP32' > /dev
/null
2>&1; then
21739 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
21744 echo "configure: failed program was" >&5
21747 rm -f conftest.o conftest.s
21750 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21751 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21752 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21754 cat >>confdefs.h
<<\_ACEOF
21755 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21760 fi # unaligned pcrel relocs
21762 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21763 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21764 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 gcc_cv_as_sparc_offsetable_lo10
=no
21768 if test x
$gcc_cv_as != x
; then
21770 or %g1, %lo(ab) + 12, %g1
21771 or %g1, %lo(ab + 12), %g1' > conftest.s
21772 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }
21779 if test x
$gcc_cv_objdump != x \
21780 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
21781 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
21782 gcc_cv_as_sparc_offsetable_lo10
=yes
21785 echo "configure: failed program was" >&5
21788 rm -f conftest.o conftest.s
21791 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21792 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21793 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21795 cat >>confdefs.h
<<\_ACEOF
21796 #define HAVE_AS_OFFSETABLE_LO10 1
21802 i
[34567]86-*-* | x86_64-
*-*)
21804 cygwin
* | pe | mingw32
*)
21805 # Used for DWARF 2 in PE
21806 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21807 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21808 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 gcc_cv_as_ix86_pe_secrel32
=no
21812 if test $in_tree_gas = yes; then
21813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21814 then gcc_cv_as_ix86_pe_secrel32
=yes
21816 elif test x
$gcc_cv_as != x
; then
21820 .secrel32 foo' > conftest.s
21821 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }
21828 if test x
$gcc_cv_ld != x \
21829 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
21830 gcc_cv_as_ix86_pe_secrel32
=yes
21834 echo "configure: failed program was" >&5
21837 rm -f conftest.o conftest.s
21840 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21841 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21842 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21844 cat >>confdefs.h
<<\_ACEOF
21845 #define HAVE_GAS_PE_SECREL32_RELOC 1
21852 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21853 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21854 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 gcc_cv_as_ix86_filds_fists
=no
21858 if test $in_tree_gas = yes; then
21859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21860 then gcc_cv_as_ix86_filds_fists
=yes
21862 elif test x
$gcc_cv_as != x
; then
21863 echo 'filds mem; fists mem' > conftest.s
21864 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }
21871 gcc_cv_as_ix86_filds_fists
=yes
21873 echo "configure: failed program was" >&5
21876 rm -f conftest.o conftest.s
21879 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21880 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21881 if test $gcc_cv_as_ix86_filds_fists = yes; then
21883 cat >>confdefs.h
<<\_ACEOF
21884 #define HAVE_GAS_FILDS_FISTS 1
21889 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21890 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21891 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 gcc_cv_as_ix86_cmov_sun_syntax
=no
21895 if test x
$gcc_cv_as != x
; then
21896 echo 'cmovl.l %edx, %eax' > 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_ix86_cmov_sun_syntax
=yes
21906 echo "configure: failed program was" >&5
21909 rm -f conftest.o conftest.s
21912 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21913 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21914 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21916 cat >>confdefs.h
<<\_ACEOF
21917 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21922 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21923 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21924 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 gcc_cv_as_ix86_ffreep
=no
21928 if test x
$gcc_cv_as != x
; then
21929 echo 'ffreep %st(1)' > conftest.s
21930 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932 (eval $ac_try) 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; }
21937 gcc_cv_as_ix86_ffreep
=yes
21939 echo "configure: failed program was" >&5
21942 rm -f conftest.o conftest.s
21945 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21946 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21947 if test $gcc_cv_as_ix86_ffreep = yes; then
21949 cat >>confdefs.h
<<\_ACEOF
21950 #define HAVE_AS_IX86_FFREEP 1
21955 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21956 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21957 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 gcc_cv_as_ix86_sahf
=no
21961 if test x
$gcc_cv_as != x
; then
21962 echo 'sahf' > conftest.s
21963 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }
21970 gcc_cv_as_ix86_sahf
=yes
21972 echo "configure: failed program was" >&5
21975 rm -f conftest.o conftest.s
21978 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21979 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21980 if test $gcc_cv_as_ix86_sahf = yes; then
21982 cat >>confdefs.h
<<\_ACEOF
21983 #define HAVE_AS_IX86_SAHF 1
21988 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21989 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21990 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 gcc_cv_as_ix86_diff_sect_delta
=no
21994 if test x
$gcc_cv_as != x
; then
21995 echo '.section .rodata
22001 .L2: nop' > conftest.s
22002 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }
22009 gcc_cv_as_ix86_diff_sect_delta
=yes
22011 echo "configure: failed program was" >&5
22014 rm -f conftest.o conftest.s
22017 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22018 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22019 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22021 cat >>confdefs.h
<<\_ACEOF
22022 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22027 # This one is used unconditionally by i386.[ch]; it is to be defined
22028 # to 1 if the feature is present, 0 otherwise.
22029 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22030 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22031 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 gcc_cv_as_ix86_gotoff_in_data
=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22037 then gcc_cv_as_ix86_gotoff_in_data
=yes
22039 elif test x
$gcc_cv_as != x
; then
22044 .long .L0@GOTOFF' > conftest.s
22045 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; }
22052 gcc_cv_as_ix86_gotoff_in_data
=yes
22054 echo "configure: failed program was" >&5
22057 rm -f conftest.o conftest.s
22060 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22061 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22064 cat >>confdefs.h
<<_ACEOF
22065 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22071 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22072 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22073 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22074 echo $ECHO_N "(cached) $ECHO_C" >&6
22076 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22077 if test $in_tree_gas = yes; then
22078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22079 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22081 elif test x
$gcc_cv_as != x
; then
22083 addl r15 = @ltoffx(x#), gp
22085 ld8.mov r16 = [r15], x#' > conftest.s
22086 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }
22093 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22095 echo "configure: failed program was" >&5
22098 rm -f conftest.o conftest.s
22101 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22102 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22103 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22105 cat >>confdefs.h
<<\_ACEOF
22106 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22115 *-*-aix*) conftest_s
=' .machine "pwr5"
22119 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22120 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22121 if test "${gcc_cv_as_machine_directive+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 gcc_cv_as_machine_directive
=no
22125 if test x
$gcc_cv_as != x
; then
22126 echo ' .machine ppc7400' > conftest.s
22127 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; }
22134 gcc_cv_as_machine_directive
=yes
22136 echo "configure: failed program was" >&5
22139 rm -f conftest.o conftest.s
22142 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22143 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22145 if test x
$gcc_cv_as_machine_directive != xyes
; then
22146 echo "*** This target requires an assembler supporting \".machine\"" >&2
22147 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22148 test x
$build = x
$target && exit 1
22152 *) conftest_s
=' .machine power4
22157 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22158 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22159 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22162 gcc_cv_as_powerpc_mfcrf
=no
22163 if test $in_tree_gas = yes; then
22164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22165 then gcc_cv_as_powerpc_mfcrf
=yes
22167 elif test x
$gcc_cv_as != x
; then
22168 echo "$conftest_s" > conftest.s
22169 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }
22176 gcc_cv_as_powerpc_mfcrf
=yes
22178 echo "configure: failed program was" >&5
22181 rm -f conftest.o conftest.s
22184 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22185 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22186 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22188 cat >>confdefs.h
<<\_ACEOF
22189 #define HAVE_AS_MFCRF 1
22195 *-*-aix*) conftest_s
=' .machine "pwr5"
22198 *) conftest_s
=' .machine power5
22203 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22204 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22205 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 gcc_cv_as_powerpc_popcntb
=no
22209 if test $in_tree_gas = yes; then
22210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22211 then gcc_cv_as_powerpc_popcntb
=yes
22213 elif test x
$gcc_cv_as != x
; then
22214 echo "$conftest_s" > conftest.s
22215 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }
22222 gcc_cv_as_powerpc_popcntb
=yes
22224 echo "configure: failed program was" >&5
22227 rm -f conftest.o conftest.s
22230 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22231 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22232 if test $gcc_cv_as_powerpc_popcntb = yes; then
22234 cat >>confdefs.h
<<\_ACEOF
22235 #define HAVE_AS_POPCNTB 1
22241 *-*-aix*) conftest_s
=' .machine "pwr5x"
22244 *) conftest_s
=' .machine power5
22249 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22250 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22251 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 gcc_cv_as_powerpc_fprnd
=no
22255 if test $in_tree_gas = yes; then
22256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22257 then gcc_cv_as_powerpc_fprnd
=yes
22259 elif test x
$gcc_cv_as != x
; then
22260 echo "$conftest_s" > conftest.s
22261 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; }
22268 gcc_cv_as_powerpc_fprnd
=yes
22270 echo "configure: failed program was" >&5
22273 rm -f conftest.o conftest.s
22276 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22277 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22278 if test $gcc_cv_as_powerpc_fprnd = yes; then
22280 cat >>confdefs.h
<<\_ACEOF
22281 #define HAVE_AS_FPRND 1
22287 *-*-aix*) conftest_s
=' .machine "pwr6"
22290 *) conftest_s
=' .machine power6
22295 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22296 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22297 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 gcc_cv_as_powerpc_mfpgpr
=no
22301 if test $in_tree_gas = yes; then
22302 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22303 then gcc_cv_as_powerpc_mfpgpr
=yes
22305 elif test x
$gcc_cv_as != x
; then
22306 echo "$conftest_s" > conftest.s
22307 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }
22314 gcc_cv_as_powerpc_mfpgpr
=yes
22316 echo "configure: failed program was" >&5
22319 rm -f conftest.o conftest.s
22322 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22323 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22324 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22326 cat >>confdefs.h
<<\_ACEOF
22327 #define HAVE_AS_MFPGPR 1
22333 *-*-aix*) conftest_s
=' .csect .text[PR]
22335 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22339 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22340 *) conftest_s
=' .text
22342 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22345 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22346 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22347 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 gcc_cv_as_powerpc_rel16
=no
22351 if test $in_tree_gas = yes; then
22352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22353 then gcc_cv_as_powerpc_rel16
=yes
22355 elif test x
$gcc_cv_as != x
; then
22356 echo "$conftest_s" > conftest.s
22357 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }
22364 gcc_cv_as_powerpc_rel16
=yes
22366 echo "configure: failed program was" >&5
22369 rm -f conftest.o conftest.s
22372 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22373 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22374 if test $gcc_cv_as_powerpc_rel16 = yes; then
22376 cat >>confdefs.h
<<\_ACEOF
22377 #define HAVE_AS_REL16 1
22383 *-*-aix*) conftest_s
=' .machine "pwr6"
22386 *) conftest_s
=' .machine power6
22391 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22392 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22393 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 gcc_cv_as_powerpc_cmpb
=no
22397 if test $in_tree_gas = yes; then
22398 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22399 then gcc_cv_as_powerpc_cmpb
=yes
22401 elif test x
$gcc_cv_as != x
; then
22402 echo "$conftest_s" > conftest.s
22403 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }
22410 gcc_cv_as_powerpc_cmpb
=yes
22412 echo "configure: failed program was" >&5
22415 rm -f conftest.o conftest.s
22418 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22419 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22420 if test $gcc_cv_as_powerpc_cmpb = yes; then
22422 cat >>confdefs.h
<<\_ACEOF
22423 #define HAVE_AS_CMPB 1
22429 *-*-aix*) conftest_s
=' .machine "pwr6"
22432 *) conftest_s
=' .machine power6
22437 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22438 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22439 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 gcc_cv_as_powerpc_dfp
=no
22443 if test $in_tree_gas = yes; then
22444 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22445 then gcc_cv_as_powerpc_dfp
=yes
22447 elif test x
$gcc_cv_as != x
; then
22448 echo "$conftest_s" > conftest.s
22449 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }
22456 gcc_cv_as_powerpc_dfp
=yes
22458 echo "configure: failed program was" >&5
22461 rm -f conftest.o conftest.s
22464 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22465 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22466 if test $gcc_cv_as_powerpc_dfp = yes; then
22468 cat >>confdefs.h
<<\_ACEOF
22469 #define HAVE_AS_DFP 1
22474 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22475 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22476 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 gcc_cv_as_powerpc_gnu_attribute
=no
22480 if test $in_tree_gas = yes; then
22481 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22482 then gcc_cv_as_powerpc_gnu_attribute
=yes
22484 elif test x
$gcc_cv_as != x
; then
22485 echo '.gnu_attribute 4,1' > conftest.s
22486 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }
22493 gcc_cv_as_powerpc_gnu_attribute
=yes
22495 echo "configure: failed program was" >&5
22498 rm -f conftest.o conftest.s
22501 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22502 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22503 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22505 cat >>confdefs.h
<<\_ACEOF
22506 #define HAVE_AS_GNU_ATTRIBUTE 1
22513 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22514 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22515 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 gcc_cv_as_mips_explicit_relocs
=no
22519 if test $in_tree_gas = yes; then
22520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22521 then gcc_cv_as_mips_explicit_relocs
=yes
22523 elif test x
$gcc_cv_as != x
; then
22524 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22525 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }
22532 gcc_cv_as_mips_explicit_relocs
=yes
22534 echo "configure: failed program was" >&5
22537 rm -f conftest.o conftest.s
22540 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22541 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22542 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22543 if test x
$target_cpu_default = x
22544 then target_cpu_default
=MASK_EXPLICIT_RELOCS
22545 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22548 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22549 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22550 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 gcc_cv_as_mips_no_shared
=no
22554 if test $in_tree_gas = yes; then
22555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22556 then gcc_cv_as_mips_no_shared
=yes
22558 elif test x
$gcc_cv_as != x
; then
22559 echo 'nop' > conftest.s
22560 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }
22567 gcc_cv_as_mips_no_shared
=yes
22569 echo "configure: failed program was" >&5
22572 rm -f conftest.o conftest.s
22575 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22576 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22577 if test $gcc_cv_as_mips_no_shared = yes; then
22579 cat >>confdefs.h
<<\_ACEOF
22580 #define HAVE_AS_NO_SHARED 1
22585 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22586 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22587 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 gcc_cv_as_mips_gnu_attribute
=no
22591 if test $in_tree_gas = yes; then
22592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22593 then gcc_cv_as_mips_gnu_attribute
=yes
22595 elif test x
$gcc_cv_as != x
; then
22596 echo '.gnu_attribute 4,1' > conftest.s
22597 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; }
22604 gcc_cv_as_mips_gnu_attribute
=yes
22606 echo "configure: failed program was" >&5
22609 rm -f conftest.o conftest.s
22612 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22613 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22614 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22616 cat >>confdefs.h
<<\_ACEOF
22617 #define HAVE_AS_GNU_ATTRIBUTE 1
22622 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22623 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22624 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 gcc_cv_as_mips_dtprelword
=no
22628 if test $in_tree_gas = yes; then
22629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22630 then gcc_cv_as_mips_dtprelword
=yes
22632 elif test x
$gcc_cv_as != x
; then
22633 echo '.section .tdata,"awT",@progbits
22637 .dtprelword x+0x8000' > conftest.s
22638 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }
22645 gcc_cv_as_mips_dtprelword
=yes
22647 echo "configure: failed program was" >&5
22650 rm -f conftest.o conftest.s
22653 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22654 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22655 if test $gcc_cv_as_mips_dtprelword = yes; then
22657 cat >>confdefs.h
<<\_ACEOF
22658 #define HAVE_AS_DTPRELWORD 1
22665 # Mips and HP-UX need the GNU assembler.
22666 # Linux on IA64 might be able to use the Intel assembler.
22669 mips
*-*-* |
*-*-hpux* )
22670 if test x
$gas_flag = xyes \
22671 ||
test x
"$host" != x
"$build" \
22672 ||
test ! -x "$gcc_cv_as" \
22673 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
22676 echo "*** This configuration requires the GNU assembler" >&2
22682 # ??? Not all targets support dwarf2 debug_line, even within a version
22683 # of gas. Moreover, we need to emit a valid instruction to trigger any
22684 # info to the output file. So, as supported targets are added to gas 2.11,
22685 # add some instruction here to (also) show we expect this might work.
22686 # ??? Once 2.11 is released, probably need to add first known working
22687 # version to the per-target configury.
22689 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
22690 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
22691 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
22694 ia64
*-*-* | s390
*-*-*)
22701 if test x
"$insn" != x
; then
22703 .file 1 \"conftest.s\"
22706 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22707 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22708 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 gcc_cv_as_dwarf2_debug_line
=no
22712 if test $in_tree_gas = yes; then
22713 if test $in_tree_gas_is_elf = yes \
22714 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22715 then gcc_cv_as_dwarf2_debug_line
=yes
22717 elif test x
$gcc_cv_as != x
; then
22718 echo "$conftest_s" > conftest.s
22719 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; }
22726 if test x
$gcc_cv_objdump != x \
22727 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
22728 |
grep debug_line
> /dev
/null
2>&1; then
22729 gcc_cv_as_dwarf2_debug_line
=yes
22732 echo "configure: failed program was" >&5
22735 rm -f conftest.o conftest.s
22738 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22739 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22742 # The .debug_line file table must be in the exact order that
22743 # we specified the files, since these indices are also used
22744 # by DW_AT_decl_file. Approximate this test by testing if
22745 # the assembler bitches if the same index is assigned twice.
22746 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22747 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22748 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22751 gcc_cv_as_dwarf2_file_buggy
=no
22752 if test x
$gcc_cv_as != x
; then
22753 echo ' .file 1 "foo.s"
22754 .file 1 "bar.s"' > conftest.s
22755 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757 (eval $ac_try) 2>&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); }; }
22762 gcc_cv_as_dwarf2_file_buggy
=yes
22764 echo "configure: failed program was" >&5
22767 rm -f conftest.o conftest.s
22770 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22771 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22774 if test $gcc_cv_as_dwarf2_debug_line = yes \
22775 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
22777 cat >>confdefs.h
<<\_ACEOF
22778 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22783 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22784 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22785 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22788 gcc_cv_as_gdwarf2_flag
=no
22789 if test $in_tree_gas = yes; then
22790 if test $in_tree_gas_is_elf = yes \
22791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22792 then gcc_cv_as_gdwarf2_flag
=yes
22794 elif test x
$gcc_cv_as != x
; then
22795 echo "$insn" > conftest.s
22796 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }
22803 gcc_cv_as_gdwarf2_flag
=yes
22805 echo "configure: failed program was" >&5
22808 rm -f conftest.o conftest.s
22811 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22812 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22813 if test $gcc_cv_as_gdwarf2_flag = yes; then
22815 cat >>confdefs.h
<<\_ACEOF
22816 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22821 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22822 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22823 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 gcc_cv_as_gstabs_flag
=no
22827 if test $in_tree_gas = yes; then
22828 if test $in_tree_gas_is_elf = yes \
22829 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22830 then gcc_cv_as_gstabs_flag
=yes
22832 elif test x
$gcc_cv_as != x
; then
22833 echo "$insn" > conftest.s
22834 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }
22841 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22842 # and warns about it, but still exits successfully. So check for
22844 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }
22851 else gcc_cv_as_gstabs_flag
=yes
22854 echo "configure: failed program was" >&5
22857 rm -f conftest.o conftest.s
22860 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22861 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22862 if test $gcc_cv_as_gstabs_flag = yes; then
22864 cat >>confdefs.h
<<\_ACEOF
22865 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22870 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22871 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22872 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22875 gcc_cv_as_debug_prefix_map_flag
=no
22876 if test $in_tree_gas = yes; then
22877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22878 then gcc_cv_as_debug_prefix_map_flag
=yes
22880 elif test x
$gcc_cv_as != x
; then
22881 echo "$insn" > conftest.s
22882 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; }
22889 gcc_cv_as_debug_prefix_map_flag
=yes
22891 echo "configure: failed program was" >&5
22894 rm -f conftest.o conftest.s
22897 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22898 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22899 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22901 cat >>confdefs.h
<<\_ACEOF
22902 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22908 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22909 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22910 if test "${gcc_cv_as_line_zero+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 gcc_cv_as_line_zero
=no
22914 if test $in_tree_gas = yes; then
22915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22916 then gcc_cv_as_line_zero
=yes
22918 elif test "x$gcc_cv_as" != x
; then
22919 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22920 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; } &&
22926 test "x`cat conftest.out`" = x
22928 gcc_cv_as_line_zero
=yes
22930 echo "configure: failed program was" >&5
22932 echo "configure: error output was" >&5
22933 cat conftest.out
>&5
22935 rm -f conftest.o conftest.s conftest.out
22938 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22939 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22940 if test "x$gcc_cv_as_line_zero" = xyes
; then
22942 cat >>confdefs.h
<<\_ACEOF
22943 #define HAVE_AS_LINE_ZERO 1
22948 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22949 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22950 gcc_cv_ld_ro_rw_mix
=unknown
22951 if test $in_tree_ld = yes ; then
22952 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 \
22953 && test $in_tree_ld_is_elf = yes; then
22954 gcc_cv_ld_ro_rw_mix
=read-write
22956 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22957 echo '.section myfoosect, "a"' > conftest1.s
22958 echo '.section myfoosect, "aw"' > conftest2.s
22959 echo '.byte 1' >> conftest2.s
22960 echo '.section myfoosect, "a"' > conftest3.s
22961 echo '.byte 0' >> conftest3.s
22962 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22963 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22964 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22965 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22966 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22967 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22968 | sed -e '/myfoosect/!d' -e N`
22969 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22970 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22971 gcc_cv_ld_ro_rw_mix
=read-only
22973 gcc_cv_ld_ro_rw_mix
=read-write
22977 rm -f conftest.
* conftest
[123].
*
22979 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22981 cat >>confdefs.h
<<\_ACEOF
22982 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22986 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22987 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22989 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22990 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22991 gcc_cv_ld_eh_frame_hdr
=no
22992 if test $in_tree_ld = yes ; then
22993 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 \
22994 && test $in_tree_ld_is_elf = yes; then
22995 gcc_cv_ld_eh_frame_hdr
=yes
22997 elif test x
$gcc_cv_ld != x
; then
22998 # Check if linker supports --eh-frame-hdr option
22999 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23000 gcc_cv_ld_eh_frame_hdr
=yes
23004 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23006 cat >>confdefs.h
<<\_ACEOF
23007 #define HAVE_LD_EH_FRAME_HDR 1
23011 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23012 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23014 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23015 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23017 if test $in_tree_ld = yes ; then
23018 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 \
23019 && test $in_tree_ld_is_elf = yes; then
23022 elif test x
$gcc_cv_ld != x
; then
23023 # Check if linker supports -pie option
23024 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23028 if test x
"$gcc_cv_ld_pie" = xyes
; then
23030 cat >>confdefs.h
<<\_ACEOF
23031 #define HAVE_LD_PIE 1
23035 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23036 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23038 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23039 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23040 gcc_cv_ld_eh_gc_sections
=no
23041 if test $in_tree_ld = yes ; then
23042 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 \
23043 && test $in_tree_ld_is_elf = yes; then
23044 gcc_cv_ld_eh_gc_sections
=yes
23046 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23047 cat > conftest.s
<<EOF
23050 .type _start, @function
23053 .size _start, .-_start
23054 .section .text.foo,"ax",@progbits
23055 .type foo, @function
23059 .section .gcc_except_table.foo,"a",@progbits
23062 .section .eh_frame,"a",@progbits
23065 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23066 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23067 |
grep "gc-sections option ignored" > /dev
/null
; then
23068 gcc_cv_ld_eh_gc_sections
=no
23069 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23070 gcc_cv_ld_eh_gc_sections
=yes
23071 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23072 if test x
$gcc_cv_as_comdat_group != xyes
; then
23073 gcc_cv_ld_eh_gc_sections
=no
23074 cat > conftest.s
<<EOF
23077 .type _start, @function
23080 .size _start, .-_start
23081 .section .gnu.linkonce.t.foo,"ax",@progbits
23082 .type foo, @function
23086 .section .gcc_except_table.foo,"a",@progbits
23089 .section .eh_frame,"a",@progbits
23092 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23093 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23094 |
grep "gc-sections option ignored" > /dev
/null
; then
23095 gcc_cv_ld_eh_gc_sections
=no
23096 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23097 gcc_cv_ld_eh_gc_sections
=yes
23103 rm -f conftest.s conftest.o conftest
23107 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23108 gcc_cv_ld_eh_gc_sections
=no
23111 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
23113 cat >>confdefs.h
<<\_ACEOF
23114 #define HAVE_LD_EH_GC_SECTIONS 1
23118 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23119 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23125 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23126 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23127 if test "${gcc_cv_ld_as_needed+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 gcc_cv_ld_as_needed
=no
23131 if test $in_tree_ld = yes ; then
23132 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 \
23133 && test $in_tree_ld_is_elf = yes; then
23134 gcc_cv_ld_as_needed
=yes
23136 elif test x
$gcc_cv_ld != x
; then
23137 # Check if linker supports --as-needed and --no-as-needed options
23138 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
23139 gcc_cv_ld_as_needed
=yes
23144 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23145 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23146 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
23148 cat >>confdefs.h
<<\_ACEOF
23149 #define HAVE_LD_AS_NEEDED 1
23154 case "$target:$tm_file" in
23155 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
23156 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23157 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23158 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 gcc_cv_ld_no_dot_syms
=no
23162 if test $in_tree_ld = yes ; then
23163 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
23164 gcc_cv_ld_no_dot_syms
=yes
23166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
23167 cat > conftest1.s
<<EOF
23171 cat > conftest2.s
<<EOF
23172 .section ".opd","aw"
23175 .type foo,@function
23177 .quad .LEfoo,.TOC.@tocbase,0
23183 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23184 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23185 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
23186 gcc_cv_ld_no_dot_syms
=yes
23188 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23192 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23193 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23194 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
23196 cat >>confdefs.h
<<\_ACEOF
23197 #define HAVE_LD_NO_DOT_SYMS 1
23204 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23205 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23206 if test "${gcc_cv_ld_sysroot+set}" = set; then
23207 echo $ECHO_N "(cached) $ECHO_C" >&6
23209 gcc_cv_ld_sysroot
=no
23210 if test $in_tree_ld = yes ; then
23211 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
23212 gcc_cv_ld_sysroot
=yes
23214 elif test x
$gcc_cv_ld != x
; then
23215 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
23216 gcc_cv_ld_sysroot
=yes
23220 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23221 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23222 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
23224 cat >>confdefs.h
<<\_ACEOF
23225 #define HAVE_LD_SYSROOT 1
23230 if test x
$with_sysroot = x
&& test x
$host = x
$target \
23231 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23232 && test "$prefix" != "NONE"; then
23234 cat >>confdefs.h
<<_ACEOF
23235 #define PREFIX_INCLUDE_DIR "$prefix/include"
23240 # Test for stack protector support in target C library.
23241 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23242 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23243 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 gcc_cv_libc_provides_ssp
=no
23249 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23250 if test "x$with_sysroot" = x
; then
23251 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23252 elif test "x$with_build_sysroot" != "x"; then
23253 glibc_header_dir
="${with_build_sysroot}/usr/include"
23254 elif test "x$with_sysroot" = xyes
; then
23255 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23257 glibc_header_dir
="${with_sysroot}/usr/include"
23260 glibc_header_dir
=/usr
/include
23262 # glibc 2.4 and later provides __stack_chk_fail and
23263 # either __stack_chk_guard, or TLS access to stack guard canary.
23264 if test -f $glibc_header_dir/features.h \
23265 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23266 $glibc_header_dir/features.h
> /dev
/null
; then
23267 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23268 $glibc_header_dir/features.h
> /dev
/null
; then
23269 gcc_cv_libc_provides_ssp
=yes
23270 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23271 $glibc_header_dir/features.h
> /dev
/null \
23272 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23273 $glibc_header_dir/features.h
> /dev
/null
; then
23274 gcc_cv_libc_provides_ssp
=yes
23275 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23276 $glibc_header_dir/features.h
> /dev
/null
&& \
23277 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
23278 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23279 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
23280 gcc_cv_libc_provides_ssp
=yes
23285 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23286 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23287 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23288 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 cat >conftest.
$ac_ext <<_ACEOF
23293 cat confdefs.h
>>conftest.
$ac_ext
23294 cat >>conftest.
$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23296 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23298 #define __stack_chk_fail innocuous___stack_chk_fail
23300 /* System header to define __stub macros and hopefully few prototypes,
23301 which can conflict with char __stack_chk_fail (); below.
23302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23303 <limits.h> exists even on freestanding compilers. */
23306 # include <limits.h>
23308 # include <assert.h>
23311 #undef __stack_chk_fail
23313 /* Override any gcc2 internal prototype to avoid an error. */
23318 /* We use char because int might match the return type of a gcc2
23319 builtin and then its argument prototype would still apply. */
23320 char __stack_chk_fail ();
23321 /* The GNU C library defines this for functions which it implements
23322 to always fail with ENOSYS. Some functions are actually named
23323 something starting with __ and the normal name is an alias. */
23324 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23327 char (*f) () = __stack_chk_fail;
23336 return f != __stack_chk_fail;
23341 rm -f conftest.
$ac_objext conftest
$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>conftest.er1
23345 grep -v '^ *+' conftest.er1
>conftest.err
23347 cat conftest.err
>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); } &&
23350 { ac_try
='test -z "$ac_c_werror_flag"
23351 || test ! -s conftest.err'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; } &&
23357 { ac_try
='test -s conftest$ac_exeext'
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_func___stack_chk_fail
=yes
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.
$ac_ext >&5
23368 ac_cv_func___stack_chk_fail
=no
23370 rm -f conftest.err conftest.
$ac_objext \
23371 conftest
$ac_exeext conftest.
$ac_ext
23373 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23374 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23375 if test $ac_cv_func___stack_chk_fail = yes; then
23376 gcc_cv_libc_provides_ssp
=yes
23378 echo "no __stack_chk_fail on this target"
23382 *) gcc_cv_libc_provides_ssp
=no
;;
23385 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23386 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23388 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
23390 cat >>confdefs.h
<<\_ACEOF
23391 #define TARGET_LIBC_PROVIDES_SSP 1
23396 # Check if TFmode long double should be used by default or not.
23397 # Some glibc targets used DFmode long double, but with glibc 2.4
23398 # and later they can use TFmode.
23400 powerpc
*-*-linux* | \
23401 powerpc
*-*-gnu* | \
23402 sparc
*-*-linux* | \
23406 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23407 if test "${with_long_double_128+set}" = set; then
23408 withval
="$with_long_double_128"
23409 gcc_cv_target_ldbl128
="$with_long_double_128"
23411 gcc_cv_target_ldbl128
=no
23412 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23413 if test "x$with_sysroot" = x
; then
23414 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23415 elif test "x$with_build_sysroot" != "x"; then
23416 glibc_header_dir
="${with_build_sysroot}/usr/include"
23417 elif test "x$with_sysroot" = xyes
; then
23418 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23420 glibc_header_dir
="${with_sysroot}/usr/include"
23423 glibc_header_dir
=/usr
/include
23425 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23426 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
23427 && gcc_cv_target_ldbl128
=yes
23432 if test x
$gcc_cv_target_ldbl128 = xyes
; then
23434 cat >>confdefs.h
<<\_ACEOF
23435 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23440 # Find out what GC implementation we want, or may, use.
23442 # Check whether --with-gc or --without-gc was given.
23443 if test "${with_gc+set}" = set; then
23452 cat >>confdefs.h
<<\_ACEOF
23458 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23459 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23460 { (exit 1); exit 1; }; }
23467 echo "Using $GGC for garbage collection."
23469 # Use the system's zlib library.
23471 zlibinc
="-I\$(srcdir)/../zlib"
23473 # Check whether --with-system-zlib or --without-system-zlib was given.
23474 if test "${with_system_zlib+set}" = set; then
23475 withval
="$with_system_zlib"
23484 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23485 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23486 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23487 if test "${enable_maintainer_mode+set}" = set; then
23488 enableval
="$enable_maintainer_mode"
23489 maintainer_mode
=$enableval
23494 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23495 echo "${ECHO_T}$maintainer_mode" >&6
23497 if test "$maintainer_mode" = "yes"; then
23507 # Make empty files to contain the specs and options for each language.
23508 # Then add #include lines to for a compiler that has specs and/or options.
23514 # These (without "all_") are set in each config-lang.in.
23515 # `language' must be a single word so is spelled singularly.
23518 all_outputs
='Makefile gccbug libada-mk'
23519 # List of language makefile fragments.
23520 all_lang_makefrags
=
23521 # List of language subdirectory makefiles. Deprecated.
23522 all_lang_makefiles
=
23523 # Additional files for gengtype
23524 all_gtfiles
="$target_gtfiles"
23526 # These are the languages that are set in --enable-languages,
23527 # and are available in the GCC tree.
23528 all_selected_languages
=
23530 # Add the language fragments.
23531 # Languages are added via two mechanisms. Some information must be
23532 # recorded in makefile variables, these are defined in config-lang.in.
23533 # We accumulate them and plug them into the main Makefile.
23534 # The other mechanism is a set of hooks for each of the main targets
23535 # like `clean', `install', etc.
23537 language_hooks
="Make-hooks"
23539 for lang
in ${srcdir}/*/config-lang.
in
23541 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23543 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23544 if test "x$lang_alias" = x
23546 echo "$lang doesn't set \$language." 1>&2
23549 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23550 subdirs
="$subdirs $subdir"
23552 # $gcc_subdir is where the gcc integration files are to be found
23553 # for a language, both for internal compiler purposes (compiler
23554 # sources implementing front-end to GCC tree converters), and for
23555 # build infrastructure purposes (Make-lang.in, etc.)
23557 # This will be <subdir> (relative to $srcdir) if a line like
23558 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23559 # is found in <langdir>/config-lang.in, and will remain <langdir>
23562 # Except for the language alias (fetched above), the regular
23563 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23564 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23565 # only this and the language alias.
23567 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23568 if [ "$gcc_subdir" = "" ]; then
23569 gcc_subdir
="$subdir"
23572 case ",$enable_languages," in
23574 all_selected_languages
="$all_selected_languages $lang_alias"
23575 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
23576 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23587 .
${srcdir}/$gcc_subdir/config-lang.
in
23588 if test "x$language" = x
23590 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23595 case ",$enable_languages," in
23596 *,$lang_alias,*) ;;
23598 for i
in $subdir_requires; do
23599 test -f "${srcdir}/$i/config-lang.in" && continue
23607 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23608 if test -f $srcdir/$gcc_subdir/lang.opt
; then
23609 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23611 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
23612 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23614 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
23615 then all_lang_makefiles
="$gcc_subdir/Makefile"
23617 all_languages
="$all_languages $language"
23618 all_compilers
="$all_compilers $compilers"
23619 all_outputs
="$all_outputs $outputs"
23620 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
23623 # Pick up gtfiles for c
23625 .
${srcdir}/c-config-lang.
in
23626 all_gtfiles
="$all_gtfiles [c] $gtfiles"
23629 for language
in $all_selected_languages
23631 check_languages
="$check_languages check-$language"
23634 # We link each language in with a set of hooks, reached indirectly via
23635 # lang.${target}. Only do so for selected languages.
23639 target_list
="all.cross start.encap rest.encap tags \
23640 install-common install-man install-info install-pdf dvi pdf \
23641 html uninstall info man srcextra srcman srcinfo \
23642 mostlyclean clean distclean maintainer-clean"
23644 for t
in $target_list
23647 for lang
in $all_selected_languages
23651 echo "lang.$t: $x" >> Make-hooks
23660 echo "dir ." > .gdbinit
23661 echo "dir ${srcdir}" >> .gdbinit
23662 if test x
$gdb_needs_out_file_path = xyes
23664 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23666 if test "x$subdirs" != x
; then
23669 echo "dir ${srcdir}/$s" >> .gdbinit
23672 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23674 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23678 # Find a directory in which to install a shared libgcc.
23680 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23681 if test "${enable_version_specific_runtime_libs+set}" = set; then
23682 enableval
="$enable_version_specific_runtime_libs"
23687 # Check whether --with-slibdir or --without-slibdir was given.
23688 if test "${with_slibdir+set}" = set; then
23689 withval
="$with_slibdir"
23690 slibdir
="$with_slibdir"
23692 if test "${enable_version_specific_runtime_libs+set}" = set; then
23693 slibdir
='$(libsubdir)'
23694 elif test "$host" != "$target"; then
23695 slibdir
='$(build_tooldir)/lib'
23697 slibdir
='$(libdir)'
23703 # Check whether --with-datarootdir or --without-datarootdir was given.
23704 if test "${with_datarootdir+set}" = set; then
23705 withval
="$with_datarootdir"
23706 datarootdir
="\${prefix}/$with_datarootdir"
23708 datarootdir
='$(prefix)/share'
23713 # Check whether --with-docdir or --without-docdir was given.
23714 if test "${with_docdir+set}" = set; then
23715 withval
="$with_docdir"
23716 docdir
="\${prefix}/$with_docdir"
23718 docdir
='$(datarootdir)'
23723 # Check whether --with-htmldir or --without-htmldir was given.
23724 if test "${with_htmldir+set}" = set; then
23725 withval
="$with_htmldir"
23726 htmldir
="\${prefix}/$with_htmldir"
23728 htmldir
='$(docdir)'
23732 # Substitute configuration variables
23790 if test x
${build} = x
${host} ; then
23791 if test x
${host} = x
${target} ; then
23792 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23794 echo "Links are now set up to build a cross-compiler" 1>&2
23795 echo " from ${host} to ${target}." 1>&2
23798 if test x
${host} = x
${target} ; then
23799 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23800 echo " for ${target}." 1>&2
23802 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23803 echo " from ${host} to ${target}." 1>&2
23810 # Configure the subdirectories
23811 # AC_CONFIG_SUBDIRS($subdirs)
23813 # Create the Makefile
23814 # and configure language subdirectories
23815 ac_config_files
="$ac_config_files $all_outputs"
23818 ac_config_commands
="$ac_config_commands default"
23820 cat >confcache
<<\_ACEOF
23821 # This file is a shell script that caches the results of configure
23822 # tests run on this system so they can be shared between configure
23823 # scripts and configure runs, see configure's option --config-cache.
23824 # It is not useful on other systems. If it contains results you don't
23825 # want to keep, you may remove or edit it.
23827 # config.status only pays attention to the cache file if you give it
23828 # the --recheck option to rerun configure.
23830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23832 # following values.
23836 # The following way of writing the cache mishandles newlines in values,
23837 # but we know of no workaround that is simple, portable, and efficient.
23838 # So, don't put newlines in cache variables' values.
23839 # Ultrix sh set writes to stderr and can't be redirected directly,
23840 # and sets the high bit in the cache file unless we assign to the vars.
23843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23845 # `set' does not quote correctly, so add quotes (double-quote
23846 # substitution turns \\\\ into \\, and sed turns \\ into \).
23849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23852 # `set' quotes correctly as required by POSIX, so do not add quotes.
23854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23865 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23866 if test -w $cache_file; then
23867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23868 cat confcache
>$cache_file
23870 echo "not updating unwritable cache $cache_file"
23875 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23876 # Let make expand exec_prefix.
23877 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23881 # trailing colons and then remove the whole line if VPATH becomes empty
23882 # (actually we leave an empty line to preserve line numbers).
23883 if test "x$srcdir" = x.
; then
23884 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23885 s/:*\$(srcdir):*/:/;
23886 s/:*\${srcdir}:*/:/;
23888 s/^\([^=]*=[ ]*\):*/\1/;
23894 DEFS
=-DHAVE_CONFIG_H
23898 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23899 # 1. Remove the extension, and $U if already installed.
23900 ac_i
=`echo "$ac_i" |
23901 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23903 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23904 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23906 LIBOBJS
=$ac_libobjs
23908 LTLIBOBJS
=$ac_ltlibobjs
23912 : ${CONFIG_STATUS=./config.status}
23913 ac_clean_files_save
=$ac_clean_files
23914 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23915 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23916 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23917 cat >$CONFIG_STATUS <<_ACEOF
23919 # Generated by $as_me.
23920 # Run this file to recreate the current configuration.
23921 # Compiler output produced by configure, useful for debugging
23922 # configure, is in config.log if it exists.
23925 ac_cs_recheck=false
23927 SHELL=\${CONFIG_SHELL-$SHELL}
23930 cat >>$CONFIG_STATUS <<\_ACEOF
23931 ## --------------------- ##
23932 ## M4sh Initialization. ##
23933 ## --------------------- ##
23935 # Be Bourne compatible
23936 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23939 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23940 # is contrary to our usage. Disable this feature.
23941 alias -g '${1+"$@"}'='"$@"'
23942 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23945 DUALCASE
=1; export DUALCASE
# for MKS sh
23947 # Support unset when possible.
23948 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23955 # Work around bugs in pre-3.0 UWIN ksh.
23956 $as_unset ENV MAIL MAILPATH
23963 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23964 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23965 LC_TELEPHONE LC_TIME
23967 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23968 eval $as_var=C
; export $as_var
23974 # Required to use basename.
23975 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23981 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23982 as_basename
=basename
23988 # Name of the executable.
23989 as_me
=`$as_basename "$0" ||
23990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23991 X"$0" : 'X\(//\)$' \| \
23992 X"$0" : 'X\(/\)$' \| \
23993 . : '\(.\)' 2>/dev/null ||
23995 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23996 /^X\/\(\/\/\)$/{ s//\1/; q; }
23997 /^X\/\(\/\).*/{ s//\1/; q; }
24001 # PATH needs CR, and LINENO needs CR and PATH.
24002 # Avoid depending upon Character Ranges.
24003 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24004 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24005 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24006 as_cr_digits
='0123456789'
24007 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24009 # The user is always right.
24010 if test "${PATH_SEPARATOR+set}" != set; then
24011 echo "#! /bin/sh" >conf$$.sh
24012 echo "exit 0" >>conf$$.sh
24014 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24023 as_lineno_1
=$LINENO
24024 as_lineno_2
=$LINENO
24025 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
24026 test "x$as_lineno_1" != "x$as_lineno_2" &&
24027 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
24028 # Find who we are. Look in the path if we contain no path at all
24031 *[\\/]* ) as_myself
=$0 ;;
24032 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24033 for as_dir
in $PATH
24036 test -z "$as_dir" && as_dir
=.
24037 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24042 # We did not find ourselves, most probably we were run as `sh COMMAND'
24043 # in which case we are not to be found in the path.
24044 if test "x$as_myself" = x
; then
24047 if test ! -f "$as_myself"; then
24048 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24049 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24050 { (exit 1); exit 1; }; }
24052 case $CONFIG_SHELL in
24054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24055 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
24058 test -z "$as_dir" && as_dir
=.
24059 for as_base
in sh bash ksh sh5
; do
24062 if ("$as_dir/$as_base" -c '
24063 as_lineno_1=$LINENO
24064 as_lineno_2=$LINENO
24065 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24066 test "x$as_lineno_1" != "x$as_lineno_2" &&
24067 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24068 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24069 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24070 CONFIG_SHELL
=$as_dir/$as_base
24071 export CONFIG_SHELL
24072 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24080 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24081 # uniformly replaced by the line number. The first 'sed' inserts a
24082 # line-number line before each line; the second 'sed' does the real
24083 # work. The second script uses 'N' to pair each line-number line
24084 # with the numbered line, and appends trailing '-' during
24085 # substitution so that $LINENO is not a special case at line end.
24086 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24087 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24088 sed '=' <$as_myself |
24093 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24096 s,^['$as_cr_digits']*\n,,
24097 ' >$as_me.lineno
&&
24098 chmod +x
$as_me.lineno ||
24099 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24100 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24101 { (exit 1); exit 1; }; }
24103 # Don't try to exec as it changes $[0], causing all sort of problems
24104 # (the dirname of $[0] is not the place where we might find the
24105 # original and so on. Autoconf is especially sensible to this).
24107 # Exit status is that of the last command.
24112 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24113 *c
*,-n*) ECHO_N
= ECHO_C
='
24115 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24116 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24119 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24125 rm -f conf$$ conf$$.exe conf$$.
file
24127 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24128 # We could just check for DJGPP; but this test a) works b) is more generic
24129 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24130 if test -f conf$$.exe
; then
24131 # Don't use ln at all; we don't have any links
24136 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24141 rm -f conf$$ conf$$.exe conf$$.
file
24143 if mkdir
-p .
2>/dev
/null
; then
24146 test -d .
/-p && rmdir .
/-p
24150 as_executable_p
="test -f"
24152 # Sed expression to map a string onto a valid CPP name.
24153 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24155 # Sed expression to map a string onto a valid variable name.
24156 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24160 # We need space, tab and new line, in precisely that order.
24170 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24171 # report actual input values of CONFIG_FILES etc. instead of their
24172 # values after options handling. Logging --version etc. is OK.
24176 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24177 ## Running $as_me. ##
24182 This file was extended by $as_me, which was
24183 generated by GNU Autoconf 2.59. Invocation command line was
24185 CONFIG_FILES = $CONFIG_FILES
24186 CONFIG_HEADERS = $CONFIG_HEADERS
24187 CONFIG_LINKS = $CONFIG_LINKS
24188 CONFIG_COMMANDS = $CONFIG_COMMANDS
24192 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24196 # Files that config.status was made for.
24197 if test -n "$ac_config_files"; then
24198 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24201 if test -n "$ac_config_headers"; then
24202 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24205 if test -n "$ac_config_links"; then
24206 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24209 if test -n "$ac_config_commands"; then
24210 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24213 cat >>$CONFIG_STATUS <<\_ACEOF
24216 \`$as_me' instantiates files from templates according to the
24217 current configuration.
24219 Usage: $0 [OPTIONS] [FILE]...
24221 -h, --help print this help, then exit
24222 -V, --version print version number, then exit
24223 -q, --quiet do not print progress messages
24224 -d, --debug don't remove temporary files
24225 --recheck update $as_me by reconfiguring in the same conditions
24226 --file=FILE[:TEMPLATE]
24227 instantiate the configuration file FILE
24228 --header=FILE[:TEMPLATE]
24229 instantiate the configuration header FILE
24231 Configuration files:
24234 Configuration headers:
24237 Configuration commands:
24240 Report bugs to <bug-autoconf@gnu.org>."
24243 cat >>$CONFIG_STATUS <<_ACEOF
24246 configured by $0, generated by GNU Autoconf 2.59,
24247 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24249 Copyright (C) 2003 Free Software Foundation, Inc.
24250 This config.status script is free software; the Free Software Foundation
24251 gives unlimited permission to copy, distribute and modify it."
24255 cat >>$CONFIG_STATUS <<\_ACEOF
24256 # If no file are specified by the user, then we need to provide default
24257 # value. By we need to know if files were specified by the user.
24263 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24264 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24272 *) # This is not an option, so the user has probably given explicit
24275 ac_need_defaults
=false
;;
24279 # Handling of the options.
24281 cat >>$CONFIG_STATUS <<\_ACEOF
24282 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24284 --version |
--vers* |
-V )
24285 echo "$ac_cs_version"; exit 0 ;;
24287 # Conflict between --help and --header
24288 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24289 Try \`$0 --help' for more information." >&5
24290 echo "$as_me: error: ambiguous option: $1
24291 Try \`$0 --help' for more information." >&2;}
24292 { (exit 1); exit 1; }; };;
24293 --help |
--hel |
-h )
24294 echo "$ac_cs_usage"; exit 0 ;;
24295 --debug |
--d* |
-d )
24297 --file |
--fil |
--fi |
--f )
24299 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24300 ac_need_defaults
=false
;;
24301 --header |
--heade |
--head |
--hea )
24303 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24304 ac_need_defaults
=false
;;
24305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24306 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24309 # This is an error.
24310 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24311 Try \`$0 --help' for more information." >&5
24312 echo "$as_me: error: unrecognized option: $1
24313 Try \`$0 --help' for more information." >&2;}
24314 { (exit 1); exit 1; }; } ;;
24316 *) ac_config_targets
="$ac_config_targets $1" ;;
24322 ac_configure_extra_args
=
24324 if $ac_cs_silent; then
24326 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24330 cat >>$CONFIG_STATUS <<_ACEOF
24331 if \$ac_cs_recheck; then
24332 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24333 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24338 cat >>$CONFIG_STATUS <<_ACEOF
24340 # INIT-COMMANDS section.
24349 cat >>$CONFIG_STATUS <<\_ACEOF
24350 for ac_config_target
in $ac_config_targets
24352 case "$ac_config_target" in
24353 # Handling of arguments.
24354 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
24355 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24356 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
24357 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
24358 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24359 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
24360 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24361 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24362 { (exit 1); exit 1; }; };;
24366 # If the user did not use the arguments to specify the items to instantiate,
24367 # then the envvar interface is used. Set only those that are not.
24368 # We use the long form for the default assignment because of an extremely
24369 # bizarre bug on SunOS 4.1.3.
24370 if $ac_need_defaults; then
24371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24376 # Have a temporary directory for convenience. Make it in the build tree
24377 # simply because there is no reason to put it here, and in addition,
24378 # creating and moving files from /tmp can sometimes cause problems.
24379 # Create a temporary directory, and hook for its removal unless debugging.
24382 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24383 trap '{ (exit 1); exit 1; }' 1 2 13 15
24386 # Create a (secure) tmp directory for tmp files.
24389 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24390 test -n "$tmp" && test -d "$tmp"
24393 tmp
=.
/confstat$$
-$RANDOM
24394 (umask 077 && mkdir
$tmp)
24397 echo "$me: cannot create a temporary directory in ." >&2
24398 { (exit 1); exit 1; }
24403 cat >>$CONFIG_STATUS <<_ACEOF
24406 # CONFIG_FILES section.
24409 # No need to generate the scripts if there are no CONFIG_FILES.
24410 # This happens for instance when ./config.status config.h
24411 if test -n "\$CONFIG_FILES"; then
24412 # Protect against being on the right side of a sed subst in config.status.
24413 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24414 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24415 s,@SHELL@,$SHELL,;t t
24416 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24417 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24418 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24419 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24420 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24421 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24422 s,@exec_prefix@,$exec_prefix,;t t
24423 s,@prefix@,$prefix,;t t
24424 s,@program_transform_name@,$program_transform_name,;t t
24425 s,@bindir@,$bindir,;t t
24426 s,@sbindir@,$sbindir,;t t
24427 s,@libexecdir@,$libexecdir,;t t
24428 s,@datadir@,$datadir,;t t
24429 s,@sysconfdir@,$sysconfdir,;t t
24430 s,@sharedstatedir@,$sharedstatedir,;t t
24431 s,@localstatedir@,$localstatedir,;t t
24432 s,@libdir@,$libdir,;t t
24433 s,@includedir@,$includedir,;t t
24434 s,@oldincludedir@,$oldincludedir,;t t
24435 s,@infodir@,$infodir,;t t
24436 s,@mandir@,$mandir,;t t
24437 s,@build_alias@,$build_alias,;t t
24438 s,@host_alias@,$host_alias,;t t
24439 s,@target_alias@,$target_alias,;t t
24440 s,@DEFS@,$DEFS,;t t
24441 s,@ECHO_C@,$ECHO_C,;t t
24442 s,@ECHO_N@,$ECHO_N,;t t
24443 s,@ECHO_T@,$ECHO_T,;t t
24444 s,@LIBS@,$LIBS,;t t
24445 s,@build@,$build,;t t
24446 s,@build_cpu@,$build_cpu,;t t
24447 s,@build_vendor@,$build_vendor,;t t
24448 s,@build_os@,$build_os,;t t
24449 s,@host@,$host,;t t
24450 s,@host_cpu@,$host_cpu,;t t
24451 s,@host_vendor@,$host_vendor,;t t
24452 s,@host_os@,$host_os,;t t
24453 s,@target@,$target,;t t
24454 s,@target_cpu@,$target_cpu,;t t
24455 s,@target_vendor@,$target_vendor,;t t
24456 s,@target_os@,$target_os,;t t
24457 s,@target_noncanonical@,$target_noncanonical,;t t
24458 s,@build_libsubdir@,$build_libsubdir,;t t
24459 s,@build_subdir@,$build_subdir,;t t
24460 s,@host_subdir@,$host_subdir,;t t
24461 s,@target_subdir@,$target_subdir,;t t
24462 s,@GENINSRC@,$GENINSRC,;t t
24464 s,@CFLAGS@,$CFLAGS,;t t
24465 s,@LDFLAGS@,$LDFLAGS,;t t
24466 s,@CPPFLAGS@,$CPPFLAGS,;t t
24467 s,@ac_ct_CC@,$ac_ct_CC,;t t
24468 s,@EXEEXT@,$EXEEXT,;t t
24469 s,@OBJEXT@,$OBJEXT,;t t
24470 s,@GNATBIND@,$GNATBIND,;t t
24471 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24472 s,@GNATMAKE@,$GNATMAKE,;t t
24473 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24474 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24475 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24477 s,@EGREP@,$EGREP,;t t
24478 s,@loose_warn@,$loose_warn,;t t
24479 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24480 s,@strict_warn@,$strict_warn,;t t
24481 s,@warn_cflags@,$warn_cflags,;t t
24482 s,@nocommon_flag@,$nocommon_flag,;t t
24483 s,@TREEBROWSER@,$TREEBROWSER,;t t
24484 s,@valgrind_path@,$valgrind_path,;t t
24485 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24486 s,@valgrind_command@,$valgrind_command,;t t
24487 s,@coverage_flags@,$coverage_flags,;t t
24488 s,@enable_multilib@,$enable_multilib,;t t
24489 s,@enable_decimal_float@,$enable_decimal_float,;t t
24490 s,@enable_fixed_point@,$enable_fixed_point,;t t
24491 s,@enable_shared@,$enable_shared,;t t
24492 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24493 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24494 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24495 s,@onestep@,$onestep,;t t
24496 s,@PKGVERSION@,$PKGVERSION,;t t
24497 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24498 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24499 s,@datarootdir@,$datarootdir,;t t
24500 s,@docdir@,$docdir,;t t
24501 s,@htmldir@,$htmldir,;t t
24502 s,@SET_MAKE@,$SET_MAKE,;t t
24504 s,@LN_S@,$LN_S,;t t
24506 s,@RANLIB@,$RANLIB,;t t
24507 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24508 s,@ranlib_flags@,$ranlib_flags,;t t
24509 s,@INSTALL@,$INSTALL,;t t
24510 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24511 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24512 s,@make_compare_target@,$make_compare_target,;t t
24513 s,@have_mktemp_command@,$have_mktemp_command,;t t
24514 s,@MAKEINFO@,$MAKEINFO,;t t
24515 s,@BUILD_INFO@,$BUILD_INFO,;t t
24516 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24517 s,@FLEX@,$FLEX,;t t
24518 s,@BISON@,$BISON,;t t
24521 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24522 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24523 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24524 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24525 s,@LIBICONV@,$LIBICONV,;t t
24526 s,@LTLIBICONV@,$LTLIBICONV,;t t
24527 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24528 s,@manext@,$manext,;t t
24529 s,@objext@,$objext,;t t
24530 s,@gthread_flags@,$gthread_flags,;t t
24531 s,@extra_modes_file@,$extra_modes_file,;t t
24532 s,@extra_opt_files@,$extra_opt_files,;t t
24533 s,@USE_NLS@,$USE_NLS,;t t
24534 s,@LIBINTL@,$LIBINTL,;t t
24535 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24536 s,@INCINTL@,$INCINTL,;t t
24537 s,@XGETTEXT@,$XGETTEXT,;t t
24538 s,@GMSGFMT@,$GMSGFMT,;t t
24539 s,@POSUB@,$POSUB,;t t
24540 s,@CATALOGS@,$CATALOGS,;t t
24541 s,@DATADIRNAME@,$DATADIRNAME,;t t
24542 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24543 s,@GENCAT@,$GENCAT,;t t
24544 s,@CATOBJEXT@,$CATOBJEXT,;t t
24545 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24546 s,@CROSS@,$CROSS,;t t
24548 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24549 s,@inhibit_libc@,$inhibit_libc,;t t
24550 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24551 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24552 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24553 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24554 s,@collect2@,$collect2,;t t
24555 s,@LIBTOOL@,$LIBTOOL,;t t
24557 s,@FGREP@,$FGREP,;t t
24558 s,@GREP@,$GREP,;t t
24560 s,@DUMPBIN@,$DUMPBIN,;t t
24561 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24562 s,@ac_ct_AR@,$ac_ct_AR,;t t
24563 s,@STRIP@,$STRIP,;t t
24564 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24565 s,@lt_ECHO@,$lt_ECHO,;t t
24566 s,@objdir@,$objdir,;t t
24567 s,@enable_fast_install@,$enable_fast_install,;t t
24568 s,@gcc_cv_as@,$gcc_cv_as,;t t
24569 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24570 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24571 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24572 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24573 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24574 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24575 s,@libgcc_visibility@,$libgcc_visibility,;t t
24577 s,@zlibdir@,$zlibdir,;t t
24578 s,@zlibinc@,$zlibinc,;t t
24579 s,@MAINT@,$MAINT,;t t
24580 s,@gcc_tooldir@,$gcc_tooldir,;t t
24581 s,@dollar@,$dollar,;t t
24582 s,@slibdir@,$slibdir,;t t
24583 s,@subdirs@,$subdirs,;t t
24584 s,@srcdir@,$srcdir,;t t
24585 s,@all_compilers@,$all_compilers,;t t
24586 s,@all_gtfiles@,$all_gtfiles,;t t
24587 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24588 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24589 s,@all_languages@,$all_languages,;t t
24590 s,@all_selected_languages@,$all_selected_languages,;t t
24591 s,@build_exeext@,$build_exeext,;t t
24592 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24593 s,@build_xm_file_list@,$build_xm_file_list,;t t
24594 s,@build_xm_include_list@,$build_xm_include_list,;t t
24595 s,@build_xm_defines@,$build_xm_defines,;t t
24596 s,@build_file_translate@,$build_file_translate,;t t
24597 s,@check_languages@,$check_languages,;t t
24598 s,@cpp_install_dir@,$cpp_install_dir,;t t
24599 s,@xmake_file@,$xmake_file,;t t
24600 s,@tmake_file@,$tmake_file,;t t
24601 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24602 s,@extra_headers_list@,$extra_headers_list,;t t
24603 s,@extra_objs@,$extra_objs,;t t
24604 s,@extra_parts@,$extra_parts,;t t
24605 s,@extra_passes@,$extra_passes,;t t
24606 s,@extra_programs@,$extra_programs,;t t
24607 s,@float_h_file@,$float_h_file,;t t
24608 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24609 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24610 s,@host_exeext@,$host_exeext,;t t
24611 s,@host_xm_file_list@,$host_xm_file_list,;t t
24612 s,@host_xm_include_list@,$host_xm_include_list,;t t
24613 s,@host_xm_defines@,$host_xm_defines,;t t
24614 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24615 s,@install@,$install,;t t
24616 s,@lang_opt_files@,$lang_opt_files,;t t
24617 s,@lang_specs_files@,$lang_specs_files,;t t
24618 s,@lang_tree_files@,$lang_tree_files,;t t
24619 s,@local_prefix@,$local_prefix,;t t
24620 s,@md_file@,$md_file,;t t
24621 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24622 s,@out_file@,$out_file,;t t
24623 s,@out_object_file@,$out_object_file,;t t
24624 s,@thread_file@,$thread_file,;t t
24625 s,@tm_file_list@,$tm_file_list,;t t
24626 s,@tm_include_list@,$tm_include_list,;t t
24627 s,@tm_defines@,$tm_defines,;t t
24628 s,@tm_p_file_list@,$tm_p_file_list,;t t
24629 s,@tm_p_include_list@,$tm_p_include_list,;t t
24630 s,@xm_file_list@,$xm_file_list,;t t
24631 s,@xm_include_list@,$xm_include_list,;t t
24632 s,@xm_defines@,$xm_defines,;t t
24633 s,@c_target_objs@,$c_target_objs,;t t
24634 s,@cxx_target_objs@,$cxx_target_objs,;t t
24635 s,@target_cpu_default@,$target_cpu_default,;t t
24636 s,@GMPLIBS@,$GMPLIBS,;t t
24637 s,@GMPINC@,$GMPINC,;t t
24638 s,@LIBOBJS@,$LIBOBJS,;t t
24639 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24640 /@language_hooks@/r $language_hooks
24641 s,@language_hooks@,,;t t
24646 cat >>$CONFIG_STATUS <<\_ACEOF
24647 # Split the substitutions into bite-sized pieces for seds with
24648 # small command number limits, like on Digital OSF/1 and HP-UX.
24649 ac_max_sed_lines
=48
24650 ac_sed_frag
=1 # Number of current file.
24651 ac_beg
=1 # First line for current file.
24652 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24655 while $ac_more_lines; do
24656 if test $ac_beg -gt 1; then
24657 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24659 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24661 if test ! -s $tmp/subs.frag
; then
24662 ac_more_lines
=false
24664 # The purpose of the label and of the branching condition is to
24665 # speed up the sed processing (if there are no `@' at all, there
24666 # is no need to browse any of the substitutions).
24667 # These are the two extra sed commands mentioned above.
24669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24670 if test -z "$ac_sed_cmds"; then
24671 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24673 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24675 ac_sed_frag
=`expr $ac_sed_frag + 1`
24677 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24680 if test -z "$ac_sed_cmds"; then
24683 fi # test -n "$CONFIG_FILES"
24686 cat >>$CONFIG_STATUS <<\_ACEOF
24687 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24690 - |
*:- |
*:-:* ) # input from stdin
24692 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24693 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24694 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24695 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24696 * ) ac_file_in
=$ac_file.
in ;;
24699 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24700 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24702 X"$ac_file" : 'X\(//\)[^/]' \| \
24703 X"$ac_file" : 'X\(//\)$' \| \
24704 X"$ac_file" : 'X\(/\)' \| \
24705 . : '\(.\)' 2>/dev/null ||
24707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24709 /^X\(\/\/\)$/{ s//\1/; q; }
24710 /^X\(\/\).*/{ s//\1/; q; }
24712 { if $as_mkdir_p; then
24717 while test ! -d "$as_dir"; do
24718 as_dirs
="$as_dir $as_dirs"
24719 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24721 X"$as_dir" : 'X\(//\)[^/]' \| \
24722 X"$as_dir" : 'X\(//\)$' \| \
24723 X"$as_dir" : 'X\(/\)' \| \
24724 . : '\(.\)' 2>/dev/null ||
24726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24728 /^X\(\/\/\)$/{ s//\1/; q; }
24729 /^X\(\/\).*/{ s//\1/; q; }
24732 test ! -n "$as_dirs" || mkdir
$as_dirs
24733 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24734 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24735 { (exit 1); exit 1; }; }; }
24739 if test "$ac_dir" != .
; then
24740 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24741 # A "../" for each directory in $ac_dir_suffix.
24742 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24744 ac_dir_suffix
= ac_top_builddir
=
24748 .
) # No --srcdir option. We are building in place.
24750 if test -z "$ac_top_builddir"; then
24753 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24755 [\\/]* | ?
:[\\/]* ) # Absolute path.
24756 ac_srcdir
=$srcdir$ac_dir_suffix;
24757 ac_top_srcdir
=$srcdir ;;
24758 *) # Relative path.
24759 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24760 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24763 # Do not use `cd foo && pwd` to compute absolute paths, because
24764 # the directories may not exist.
24766 .
) ac_abs_builddir
="$ac_dir";;
24769 .
) ac_abs_builddir
=`pwd`;;
24770 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24771 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24774 case $ac_abs_builddir in
24775 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24777 case ${ac_top_builddir}.
in
24778 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24779 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24780 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24783 case $ac_abs_builddir in
24784 .
) ac_abs_srcdir
=$ac_srcdir;;
24787 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24788 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24789 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24792 case $ac_abs_builddir in
24793 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24795 case $ac_top_srcdir in
24796 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24797 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24798 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24804 if test x
"$ac_file" != x-
; then
24805 { echo "$as_me:$LINENO: creating $ac_file" >&5
24806 echo "$as_me: creating $ac_file" >&6;}
24809 # Let's still pretend it is `configure' which instantiates (i.e., don't
24810 # use $as_me), people would be surprised to read:
24811 # /* config.h. Generated by config.status. */
24812 if test x
"$ac_file" = x-
; then
24815 configure_input
="$ac_file. "
24817 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24818 sed 's,.*/,,'` by configure."
24820 # First look for the input files in the build tree, otherwise in the
24822 ac_file_inputs
=`IFS=:
24823 for f in $ac_file_in; do
24825 -) echo $tmp/stdin ;;
24827 # Absolute (can't be DOS-style, as IFS=:)
24828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24829 echo "$as_me: error: cannot find input file: $f" >&2;}
24830 { (exit 1); exit 1; }; }
24833 if test -f "$f"; then
24836 elif test -f "$srcdir/$f"; then
24841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24842 echo "$as_me: error: cannot find input file: $f" >&2;}
24843 { (exit 1); exit 1; }; }
24846 done` ||
{ (exit 1); exit 1; }
24848 cat >>$CONFIG_STATUS <<_ACEOF
24852 cat >>$CONFIG_STATUS <<\_ACEOF
24854 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24855 s
,@configure_input@
,$configure_input,;t t
24856 s
,@srcdir@
,$ac_srcdir,;t t
24857 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24858 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24859 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24860 s
,@builddir@
,$ac_builddir,;t t
24861 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24862 s
,@top_builddir@
,$ac_top_builddir,;t t
24863 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24864 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24866 if test x"$ac_file" != x-; then
24867 mv $tmp/out $ac_file
24873 # Run the commands associated with the file.
24875 as ) chmod +x as ;;
24876 collect-ld ) chmod +x collect-ld ;;
24877 nm ) chmod +x nm ;;
24881 cat >>$CONFIG_STATUS <<\_ACEOF
24884 # CONFIG_HEADER section.
24887 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24888 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24890 # ac_d sets the value in "#define NAME VALUE" lines.
24891 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24892 ac_dB
='[ ].*$,\1#\2'
24895 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24896 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24897 ac_uB
='$,\1#\2define\3'
24901 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24904 - |
*:- |
*:-:* ) # input from stdin
24906 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24907 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24908 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24909 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24910 * ) ac_file_in
=$ac_file.
in ;;
24913 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24914 echo "$as_me: creating $ac_file" >&6;}
24916 # First look for the input files in the build tree, otherwise in the
24918 ac_file_inputs
=`IFS=:
24919 for f in $ac_file_in; do
24921 -) echo $tmp/stdin ;;
24923 # Absolute (can't be DOS-style, as IFS=:)
24924 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24925 echo "$as_me: error: cannot find input file: $f" >&2;}
24926 { (exit 1); exit 1; }; }
24927 # Do quote $f, to prevent DOS paths from being IFS'd.
24930 if test -f "$f"; then
24933 elif test -f "$srcdir/$f"; then
24938 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24939 echo "$as_me: error: cannot find input file: $f" >&2;}
24940 { (exit 1); exit 1; }; }
24943 done` ||
{ (exit 1); exit 1; }
24944 # Remove the trailing spaces.
24945 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24949 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24950 # `conftest.undefs', that substitutes the proper values into
24951 # config.h.in to produce config.h. The first handles `#define'
24952 # templates, and the second `#undef' templates.
24953 # And first: Protect against being on the right side of a sed subst in
24954 # config.status. Protect against being in an unquoted here document
24955 # in config.status.
24956 rm -f conftest.defines conftest.undefs
24957 # Using a here document instead of a string reduces the quoting nightmare.
24958 # Putting comments in sed scripts is not portable.
24960 # `end' is used to avoid that the second main sed command (meant for
24961 # 0-ary CPP macros) applies to n-ary macro definitions.
24962 # See the Autoconf documentation for `clear'.
24963 cat >confdef2sed.
sed <<\_ACEOF
24968 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24970 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24973 # If some macros were called several times there might be several times
24974 # the same #defines, which is useless. Nevertheless, we may not want to
24975 # sort them, since we want the *last* AC-DEFINE to be honored.
24976 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24977 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24978 rm -f confdef2sed.sed
24980 # This sed command replaces #undef with comments. This is necessary, for
24981 # example, in the case of _POSIX_SOURCE, which is predefined and required
24982 # on some systems where configure will not decide to define it.
24983 cat >>conftest.undefs <<\_ACEOF
24984 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24987 # Break up conftest.defines because some shells have a limit on the size
24988 # of here documents, and old seds have small limits too (100 cmds).
24989 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24990 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24991 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24992 echo ' :' >>$CONFIG_STATUS
24993 rm -f conftest.tail
24994 while grep . conftest.defines >/dev/null
24996 # Write a limited-size here document to $tmp/defines.sed.
24997 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24998 # Speed up: don't consider the non `#define' lines.
24999 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25000 # Work around the forget-to-reset-the-flag bug.
25001 echo 't clr' >>$CONFIG_STATUS
25002 echo ': clr' >>$CONFIG_STATUS
25003 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
25005 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25007 mv $tmp/out $tmp/in
25009 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
25010 rm -f conftest.defines
25011 mv conftest.
tail conftest.defines
25013 rm -f conftest.defines
25014 echo ' fi # grep' >>$CONFIG_STATUS
25015 echo >>$CONFIG_STATUS
25017 # Break up conftest.undefs because some shells have a limit on the size
25018 # of here documents, and old seds have small limits too (100 cmds).
25019 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25020 rm -f conftest.
tail
25021 while grep . conftest.undefs
>/dev
/null
25023 # Write a limited-size here document to $tmp/undefs.sed.
25024 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25025 # Speed up: don't consider the non
`#undef'
25026 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25027 # Work around the forget-to-reset-the-flag bug.
25028 echo 't clr' >>$CONFIG_STATUS
25029 echo ': clr' >>$CONFIG_STATUS
25030 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25032 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25034 mv $tmp/out $tmp/in
25036 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25037 rm -f conftest.undefs
25038 mv conftest.tail conftest.undefs
25040 rm -f conftest.undefs
25042 cat >>$CONFIG_STATUS <<\_ACEOF
25043 # Let's still pretend it is `configure
' which instantiates (i.e., don't
25044 # use $as_me), people would be surprised to read:
25045 # /* config.h. Generated by config.status. */
25046 if test x
"$ac_file" = x-
; then
25047 echo "/* Generated by configure. */" >$tmp/config.h
25049 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25051 cat $tmp/in >>$tmp/config.h
25053 if test x
"$ac_file" != x-
; then
25054 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
25055 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25056 echo "$as_me: $ac_file is unchanged" >&6;}
25058 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25060 X"$ac_file" : 'X\(//\)[^/]' \| \
25061 X"$ac_file" : 'X\(//\)$' \| \
25062 X"$ac_file" : 'X\(/\)' \| \
25063 . : '\(.\)' 2>/dev/null ||
25065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25067 /^X\(\/\/\)$/{ s//\1/; q; }
25068 /^X\(\/\).*/{ s//\1/; q; }
25070 { if $as_mkdir_p; then
25075 while test ! -d "$as_dir"; do
25076 as_dirs
="$as_dir $as_dirs"
25077 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25079 X"$as_dir" : 'X\(//\)[^/]' \| \
25080 X"$as_dir" : 'X\(//\)$' \| \
25081 X"$as_dir" : 'X\(/\)' \| \
25082 . : '\(.\)' 2>/dev/null ||
25084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25086 /^X\(\/\/\)$/{ s//\1/; q; }
25087 /^X\(\/\).*/{ s//\1/; q; }
25090 test ! -n "$as_dirs" || mkdir
$as_dirs
25091 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25092 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25093 { (exit 1); exit 1; }; }; }
25096 mv $tmp/config.h
$ac_file
25100 rm -f $tmp/config.h
25104 cat >>$CONFIG_STATUS <<\_ACEOF
25107 # CONFIG_COMMANDS section.
25109 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
25110 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25111 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25112 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25113 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25114 X"$ac_dest" : 'X\(//\)[^/]' \| \
25115 X"$ac_dest" : 'X\(//\)$' \| \
25116 X"$ac_dest" : 'X\(/\)' \| \
25117 . : '\(.\)' 2>/dev/null ||
25119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25121 /^X\(\/\/\)$/{ s//\1/; q; }
25122 /^X\(\/\).*/{ s//\1/; q; }
25124 { if $as_mkdir_p; then
25129 while test ! -d "$as_dir"; do
25130 as_dirs
="$as_dir $as_dirs"
25131 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25133 X"$as_dir" : 'X\(//\)[^/]' \| \
25134 X"$as_dir" : 'X\(//\)$' \| \
25135 X"$as_dir" : 'X\(/\)' \| \
25136 . : '\(.\)' 2>/dev/null ||
25138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25140 /^X\(\/\/\)$/{ s//\1/; q; }
25141 /^X\(\/\).*/{ s//\1/; q; }
25144 test ! -n "$as_dirs" || mkdir
$as_dirs
25145 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25146 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25147 { (exit 1); exit 1; }; }; }
25151 if test "$ac_dir" != .
; then
25152 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25153 # A "../" for each directory in $ac_dir_suffix.
25154 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25156 ac_dir_suffix
= ac_top_builddir
=
25160 .
) # No --srcdir option. We are building in place.
25162 if test -z "$ac_top_builddir"; then
25165 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25167 [\\/]* | ?
:[\\/]* ) # Absolute path.
25168 ac_srcdir
=$srcdir$ac_dir_suffix;
25169 ac_top_srcdir
=$srcdir ;;
25170 *) # Relative path.
25171 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25172 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25175 # Do not use `cd foo && pwd` to compute absolute paths, because
25176 # the directories may not exist.
25178 .
) ac_abs_builddir
="$ac_dir";;
25181 .
) ac_abs_builddir
=`pwd`;;
25182 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25183 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25186 case $ac_abs_builddir in
25187 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25189 case ${ac_top_builddir}.
in
25190 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25191 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25192 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25195 case $ac_abs_builddir in
25196 .
) ac_abs_srcdir
=$ac_srcdir;;
25199 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25200 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25201 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25204 case $ac_abs_builddir in
25205 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25207 case $ac_top_srcdir in
25208 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25209 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25210 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25215 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25216 echo "$as_me: executing $ac_dest commands" >&6;}
25219 case ${CONFIG_HEADERS} in
25220 *auto-host.h
:config.
in*)
25223 # Make sure all the subdirs exist.
25224 for d
in $subdirs doc build
25226 test -d $d || mkdir
$d
25233 cat >>$CONFIG_STATUS <<\_ACEOF
25235 { (exit 0); exit 0; }
25237 chmod +x
$CONFIG_STATUS
25238 ac_clean_files
=$ac_clean_files_save
25241 # configure is writing to config.log, and then calls config.status.
25242 # config.status does its own redirection, appending to config.log.
25243 # Unfortunately, on DOS this fails, as config.log is still kept open
25244 # by configure, so config.status won't be able to write to it; its
25245 # output is simply discarded. So we exec the FD to /dev/null,
25246 # effectively closing config.log, so it can be properly (re)opened and
25247 # appended to by config.status. When coming back to configure, we
25248 # need to make the FD available again.
25249 if test "$no_create" != yes; then
25251 ac_config_status_args
=
25252 test "$silent" = yes &&
25253 ac_config_status_args
="$ac_config_status_args --quiet"
25255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25258 # would make configure fail if this is the last instruction.
25259 $ac_cs_success ||
{ (exit 1); exit 1; }