2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
308 for dir
in $PATH /usr
/ucb
; do
310 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho
; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL
=/bin
/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
349 SHELL
="$CONFIG_SHELL"
351 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string
=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix
=/usr
/local
404 ac_config_libobj_dir
=.
409 SHELL
=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file
="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default
="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version
=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name
=s
,x
,x
,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir
='${exec_prefix}/bin'
491 sbindir
='${exec_prefix}/sbin'
492 libexecdir
='${exec_prefix}/libexec'
493 datadir
='${prefix}/share'
494 sysconfdir
='${prefix}/etc'
495 sharedstatedir
='${prefix}/com'
496 localstatedir
='${prefix}/var'
497 libdir
='${exec_prefix}/lib'
498 includedir
='${prefix}/include'
499 oldincludedir
='/usr/include'
500 infodir
='${prefix}/info'
501 mandir
='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
521 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
524 -build |
--build |
--buil |
--bui |
--bu)
525 ac_prev
=build_alias
;;
526 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
527 build_alias
=$ac_optarg ;;
529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
531 ac_prev
=cache_file
;;
532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
534 cache_file
=$ac_optarg ;;
537 cache_file
=config.cache
;;
539 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
541 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
543 datadir
=$ac_optarg ;;
545 -disable-* |
--disable-*)
546 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* |
--enable-*)
555 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
568 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
569 |
--exec |
--exe |
--ex)
570 ac_prev
=exec_prefix
;;
571 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
572 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
573 |
--exec=* |
--exe=* |
--ex=*)
574 exec_prefix
=$ac_optarg ;;
576 -gas |
--gas |
--ga |
--g)
577 # Obsolete; use --with-gas.
580 -help |
--help |
--hel |
--he |
-h)
582 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
583 ac_init_help
=recursive
;;
584 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
585 ac_init_help
=short
;;
587 -host |
--host |
--hos |
--ho)
588 ac_prev
=host_alias
;;
589 -host=* |
--host=* |
--hos=* |
--ho=*)
590 host_alias
=$ac_optarg ;;
592 -includedir |
--includedir |
--includedi |
--included |
--include \
593 |
--includ |
--inclu |
--incl |
--inc)
594 ac_prev
=includedir
;;
595 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
596 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
597 includedir
=$ac_optarg ;;
599 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
601 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
602 infodir
=$ac_optarg ;;
604 -libdir |
--libdir |
--libdi |
--libd)
606 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
609 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
610 |
--libexe |
--libex |
--libe)
611 ac_prev
=libexecdir
;;
612 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
613 |
--libexe=* |
--libex=* |
--libe=*)
614 libexecdir
=$ac_optarg ;;
616 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
617 |
--localstate |
--localstat |
--localsta |
--localst \
618 |
--locals |
--local |
--loca |
--loc |
--lo)
619 ac_prev
=localstatedir
;;
620 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
621 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
622 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
623 localstatedir
=$ac_optarg ;;
625 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
627 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
631 # Obsolete; use --without-fp.
634 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
635 |
--no-cr |
--no-c |
-n)
638 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
639 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
642 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
643 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
644 |
--oldin |
--oldi |
--old |
--ol |
--o)
645 ac_prev
=oldincludedir
;;
646 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
647 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
648 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
649 oldincludedir
=$ac_optarg ;;
651 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
653 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
656 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
657 |
--program-pre |
--program-pr |
--program-p)
658 ac_prev
=program_prefix
;;
659 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
660 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
661 program_prefix
=$ac_optarg ;;
663 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
664 |
--program-suf |
--program-su |
--program-s)
665 ac_prev
=program_suffix
;;
666 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
667 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
668 program_suffix
=$ac_optarg ;;
670 -program-transform-name |
--program-transform-name \
671 |
--program-transform-nam |
--program-transform-na \
672 |
--program-transform-n |
--program-transform- \
673 |
--program-transform |
--program-transfor \
674 |
--program-transfo |
--program-transf \
675 |
--program-trans |
--program-tran \
676 |
--progr-tra |
--program-tr |
--program-t)
677 ac_prev
=program_transform_name
;;
678 -program-transform-name=* |
--program-transform-name=* \
679 |
--program-transform-nam=* |
--program-transform-na=* \
680 |
--program-transform-n=* |
--program-transform-=* \
681 |
--program-transform=* |
--program-transfor=* \
682 |
--program-transfo=* |
--program-transf=* \
683 |
--program-trans=* |
--program-tran=* \
684 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
685 program_transform_name
=$ac_optarg ;;
687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
688 |
-silent |
--silent |
--silen |
--sile |
--sil)
691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
695 sbindir
=$ac_optarg ;;
697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
701 ac_prev
=sharedstatedir
;;
702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
706 sharedstatedir
=$ac_optarg ;;
708 -site |
--site |
--sit)
710 -site=* |
--site=* |
--sit=*)
713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
720 ac_prev
=sysconfdir
;;
721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
723 sysconfdir
=$ac_optarg ;;
725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
726 ac_prev
=target_alias
;;
727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
728 target_alias
=$ac_optarg ;;
730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
733 -version |
--version |
--versio |
--versi |
--vers |
-V)
737 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package
=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* |
--without-*)
750 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package
=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
763 |
--x-incl |
--x-inc |
--x-in |
--x-i)
764 ac_prev
=x_includes
;;
765 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
766 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
767 x_includes
=$ac_optarg ;;
769 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
770 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
771 ac_prev
=x_libraries
;;
772 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
773 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
774 x_libraries
=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var
in exec_prefix prefix
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val
=$
`echo $ac_var`
825 [\\/$
]* | ?
:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x
; then
840 if test "x$build_alias" = x
; then
841 cross_compiling
=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
852 test "$silent" = yes && exec 6>/dev
/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted
=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir
=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted
=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set
=${build_alias+set}
892 ac_env_build_alias_value
=$build_alias
893 ac_cv_env_build_alias_set
=${build_alias+set}
894 ac_cv_env_build_alias_value
=$build_alias
895 ac_env_host_alias_set
=${host_alias+set}
896 ac_env_host_alias_value
=$host_alias
897 ac_cv_env_host_alias_set
=${host_alias+set}
898 ac_cv_env_host_alias_value
=$host_alias
899 ac_env_target_alias_set
=${target_alias+set}
900 ac_env_target_alias_value
=$target_alias
901 ac_cv_env_target_alias_set
=${target_alias+set}
902 ac_cv_env_target_alias_value
=$target_alias
903 ac_env_CC_set
=${CC+set}
905 ac_cv_env_CC_set
=${CC+set}
906 ac_cv_env_CC_value
=$CC
907 ac_env_CFLAGS_set
=${CFLAGS+set}
908 ac_env_CFLAGS_value
=$CFLAGS
909 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value
=$CFLAGS
911 ac_env_LDFLAGS_set
=${LDFLAGS+set}
912 ac_env_LDFLAGS_value
=$LDFLAGS
913 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value
=$LDFLAGS
915 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value
=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
919 ac_env_CPP_set
=${CPP+set}
920 ac_env_CPP_value
=$CPP
921 ac_cv_env_CPP_set
=${CPP+set}
922 ac_cv_env_CPP_value
=$CPP
923 ac_env_GMPLIBS_set
=${GMPLIBS+set}
924 ac_env_GMPLIBS_value
=$GMPLIBS
925 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value
=$GMPLIBS
927 ac_env_GMPINC_set
=${GMPINC+set}
928 ac_env_GMPINC_value
=$GMPINC
929 ac_cv_env_GMPINC_set
=${GMPINC+set}
930 ac_cv_env_GMPINC_value
=$GMPINC
933 # Report the --help message.
935 if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
939 \`configure' configures this package to adapt to many kinds of systems.
941 Usage: $0 [OPTION]... [VAR=VALUE]...
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE. See below for descriptions of some of the useful variables.
946 Defaults for the options are specified in brackets.
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
962 Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
973 For better control, use the options below.
975 Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
993 --program-prefix=PREFIX prepend PREFIX to installed program names
994 --program-suffix=SUFFIX append SUFFIX to installed program names
995 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
998 --build=BUILD configure
for building on BUILD
[guessed
]
999 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1000 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1004 if test -n "$ac_init_help"; then
1009 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1010 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1011 --enable-generated-files-in-srcdir
1012 put copies of generated files
in source dir
1013 intended
for creating
source tarballs
for users
1014 without texinfo bison or flex.
1015 --enable-werror-always enable -Werror despite compiler version
1016 --enable-checking=LIST
1017 enable expensive run-time checks. With LIST
,
1018 enable only specific categories of checks.
1019 Categories are
: yes,no
,all
,none
,release.
1020 Flags are
: assert
,df
,fold,gc
,gcac
,misc
,
1021 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1022 --enable-coverage=LEVEL
1023 enable compiler
's code coverage collection.
1024 Use to measure compiler performance and locate
1025 unused parts of the compiler. With LEVEL, specify
1026 optimization. Values are opt, noopt,
1028 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1029 --enable-multilib enable library support for multiple ABIs
1030 --enable-__cxa_atexit enable __cxa_atexit for C++
1031 --enable-decimal-float={no,yes,bid,dpd}
1032 enable decimal float extension to C. Selecting 'bid
'
1033 or 'dpd
' choses which decimal floating point format
1035 --enable-fixed-point enable fixed-point arithmetic extension to C
1036 --enable-threads enable thread usage for target GCC
1037 --enable-threads=LIB use LIB thread package for target GCC
1038 --enable-tls enable or disable generation of tls code
1039 overriding the assembler check for tls support
1040 --enable-objc-gc enable the use of Boehm's garbage collector with
1041 the GNU Objective-C runtime
1042 --disable-shared don
't provide a shared libgcc
1043 --enable-intermodule build the compiler in one step
1044 --enable-languages=LIST specify which front-ends to build
1045 --disable-rpath do not hardcode runtime library paths
1046 --enable-initfini-array use .init_array/.fini_array sections
1047 --enable-sjlj-exceptions
1048 arrange to use setjmp/longjmp exception handling
1049 --enable-secureplt enable -msecure-plt by default for PowerPC
1050 --enable-cld enable -mcld by default for 32bit x86
1051 --disable-win32-registry
1052 disable lookup of installation paths in the
1053 Registry on Windows hosts
1054 --enable-win32-registry enable registry lookup (default)
1055 --enable-win32-registry=KEY
1056 use KEY instead of GCC version as the last portion
1058 --enable-shared[=PKGS]
1059 build shared libraries [default=yes]
1060 --enable-static[=PKGS]
1061 build static libraries [default=yes]
1062 --enable-fast-install[=PKGS]
1063 optimize for fast installation [default=yes]
1064 --disable-libtool-lock avoid locking (might break parallel builds)
1065 --enable-maintainer-mode
1066 enable make rules and dependencies not useful
1067 (and sometimes confusing) to the casual installer
1068 --enable-version-specific-runtime-libs
1069 specify that runtime libraries should be
1070 installed in a compiler-specific directory
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-build-libsubdir=DIR Directory where to find libraries for build system
1076 --with-local-prefix=DIR specifies directory to put local include
1077 --with-gxx-include-dir=DIR
1078 specifies directory to put g++ header files
1079 --with-cpp-install-dir=DIR
1080 install the user visible C preprocessor in DIR
1081 (relative to PREFIX) as well as PREFIX/bin
1082 --with-gnu-ld arrange to work with GNU ld.
1083 --with-ld arrange to use the specified ld (full pathname)
1084 --with-demangler-in-ld try to use demangler in GNU ld.
1085 --with-gnu-as arrange to work with GNU as
1086 --with-as arrange to use the specified as (full pathname)
1087 --with-stabs arrange to use stabs instead of host debug format
1088 --with-dwarf2 force the default debug format to be DWARF 2
1089 --with-build-sysroot=sysroot
1090 use sysroot as the system root during the build
1091 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1092 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1093 --with-bugurl=URL Direct users to URL to report a bug
1094 --with-gnu-ld assume the C compiler uses GNU ld default=no
1095 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1096 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1097 --with-system-libunwind use installed libunwind
1098 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1100 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1101 --with-long-double-128 Use
128-bit long double by default.
1102 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1104 --with-system-zlib use installed libz
1105 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1106 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1107 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1108 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1110 Some influential environment variables
:
1111 CC C compiler
command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1114 nonstandard directory
<lib dir
>
1115 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1116 headers
in a nonstandard directory
<include dir
>
1118 GMPLIBS How to link GMP
1119 GMPINC How to
find GMP include files
1121 Use these variables to override the choices made by
`configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1127 if test "$ac_init_help" = "recursive"; then
1128 # If there are subdirs, report their specific --help.
1130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131 test -d $ac_dir || continue
1134 if test "$ac_dir" != .; then
1135 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1139 ac_dir_suffix= ac_top_builddir=
1143 .) # No --srcdir option. We are building in place.
1145 if test -z "$ac_top_builddir"; then
1148 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1150 [\\/]* | ?:[\\/]* ) # Absolute path.
1151 ac_srcdir=$srcdir$ac_dir_suffix;
1152 ac_top_srcdir=$srcdir ;;
1154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1159 # the directories may not exist.
1161 .) ac_abs_builddir="$ac_dir";;
1164 .) ac_abs_builddir=`pwd`;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 case ${ac_top_builddir}. in
1173 .) ac_abs_top_builddir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
1182 .) ac_abs_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 case $ac_top_srcdir in
1191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1198 # Check for guested configure; otherwise get Cygnus style configure.
1199 if test -f $ac_srcdir/configure.gnu; then
1201 $SHELL $ac_srcdir/configure.gnu --help=recursive
1202 elif test -f $ac_srcdir/configure; then
1204 $SHELL $ac_srcdir/configure --help=recursive
1205 elif test -f $ac_srcdir/configure.ac ||
1206 test -f $ac_srcdir/configure.in; then
1208 $ac_configure --help
1210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59. Invocation command line was
1243 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1244 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1245 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1246 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1247 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1249 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1250 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1252 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1253 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1254 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1255 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1256 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1257 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1258 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266 test -z "$as_dir" && as_dir=.
1267 echo "PATH: $as_dir"
1282 # Keep a trace of the command line.
1283 # Strip out --no-create and --no-recursion so they do not pile up.
1284 # Strip out --silent because we don't want to record it for future runs.
1285 # Also quote any args containing shell meta-characters.
1286 # Make two passes to allow for proper duplicate-argument suppression.
1291 ac_must_keep_next=false
1297 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1305 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1307 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308 if test $ac_must_keep_next = true; then
1309 ac_must_keep_next=false # Got value, back to normal.
1312 *=* | --config-cache | -C | -disable-* | --disable-* \
1313 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315 | -with-* | --with-* | -without-* | --without-* | --x)
1316 case "$ac_configure_args0 " in
1317 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320 -* ) ac_must_keep_next=true ;;
1323 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324 # Get rid of the leading space.
1330 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1333 # When interrupted or exit'd, cleanup temporary files, and complete
1334 # config.log. We remove comments because anyway the quotes in there
1335 # would cause problems or look ugly.
1336 # WARNING: Be sure not to use single quotes in there, as some shells,
1337 # such as our DU 5.0 friend, will then `close
' the trap.
1338 trap 'exit_status
=$?
1339 # Save into config.log some information that might help in debugging.
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1349 # The following way of writing the cache mishandles newlines in values,
1352 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1372 for ac_var
in $ac_subst_vars
1374 eval ac_val
=$
`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1379 if test -n "$ac_subst_files"; then
1386 for ac_var
in $ac_subst_files
1388 eval ac_val
=$
`echo $ac_var`
1389 echo "$ac_var='"'"'$ac_val'"'"'"
1394 if test -s confdefs.h
; then
1401 sed "/^$/d" confdefs.h |
sort
1404 test "$ac_signal" != 0 &&
1405 echo "$as_me: caught signal $ac_signal"
1406 echo "$as_me: exit $exit_status"
1408 rm -f core
*.core
&&
1409 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1412 for ac_signal in 1 2 13 15; do
1413 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422 # Predefined preprocessor variables.
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if test -z "$CONFIG_SITE"; then
1452 if test "x$prefix" != xNONE; then
1453 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1455 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458 for ac_site_file in $CONFIG_SITE; do
1459 if test -r "$ac_site_file"; then
1460 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462 sed 's
/^
/|
/' "$ac_site_file" >&5
1467 if test -r "$cache_file"; then
1468 # Some versions of bash will fail to source /dev/null (special
1469 # files actually), so we avoid doing that.
1470 if test -f "$cache_file"; then
1471 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472 echo "$as_me: loading cache $cache_file" >&6;}
1474 [\\/]* | ?:[\\/]* ) . $cache_file;;
1475 *) . ./$cache_file;;
1479 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1484 # Check that the precious variables saved in the cache have kept the same
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490 eval ac_new_set=\$ac_env_${ac_var}_set
1491 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492 eval ac_new_val="\$ac_env_${ac_var}_value"
1493 case $ac_old_set,$ac_new_set in
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1497 ac_cache_corrupted=: ;;
1499 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1504 if test "x$ac_old_val" != "x$ac_new_val"; then
1505 # differences in whitespace do not lead to failure.
1506 ac_old_val_w=`echo x $ac_old_val`
1507 ac_new_val_w=`echo x $ac_new_val`
1508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1510 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1511 ac_cache_corrupted=:
1513 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1515 eval $ac_var=\$ac_old_val
1517 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1518 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1519 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1520 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1523 # Pass precious variables to config.status.
1524 if test "$ac_new_set" = set; then
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1528 *) ac_arg=$ac_var=$ac_new_val ;;
1530 case " $ac_configure_args " in
1531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1532 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1536 if $ac_cache_corrupted; then
1537 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1540 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1541 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1577 gcc_version=`cat $srcdir/BASE-VER
`
1579 # Determine the host, build, and target systems
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1586 elif test -f $ac_dir/install.sh; then
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1590 elif test -f $ac_dir/shtool; then
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 if test -z "$ac_aux_dir"; then
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599 { (exit 1); exit 1; }; }
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1632 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1654 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1686 program_prefix=${target_alias}-
1688 # Determine the noncanonical target name, for directory use.
1689 case ${build_alias} in
1690 "") build_noncanonical=${build} ;;
1691 *) build_noncanonical=${build_alias} ;;
1694 case ${host_alias} in
1695 "") host_noncanonical=${build_noncanonical} ;;
1696 *) host_noncanonical=${host_alias} ;;
1699 case ${target_alias} in
1700 "") target_noncanonical=${host_noncanonical} ;;
1701 *) target_noncanonical=${target_alias} ;;
1707 # Determine the target- and build-specific subdirectories
1709 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710 # have matching libraries, they should use host libraries: Makefile.tpl
1711 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712 # However, they still use the build modules, because the corresponding
1713 # host modules (e.g. bison) are only built for the host when bootstrap
1715 # - build_subdir is where we find build modules, and never changes.
1716 # - build_libsubdir is where we find build libraries, and can be overridden.
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723 withval="$with_build_libsubdir"
1724 build_libsubdir="$withval"
1726 build_libsubdir="$build_subdir"
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730 || test -d $srcdir/../host-${host_noncanonical}; then
1731 host_subdir="host-${host_noncanonical}"
1736 target_subdir=${target_noncanonical}
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s
,x
,x
', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 # Check for bogus environment variables.
1755 # Test if LIBRARY_PATH contains the notation for the current directory
1756 # since this would lead to problems installing/building glibc.
1757 # LIBRARY_PATH contains the current directory if one of the following
1759 # - one of the terminals (":" and ";") is the first or last sign
1760 # - two terminals occur directly after each other
1761 # - the path contains an element with a dot in it
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766 library_path_setting="contains current directory"
1769 library_path_setting="ok"
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again.
" >&5
1779 echo "$as_me: error
:
1780 *** LIBRARY_PATH shouldn
't contain the current directory when
1781 *** building gcc. Please change the environment variable
1782 *** and run configure again." >&2;}
1783 { (exit 1); exit 1; }; }
1786 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787 # since this would lead to problems installing/building glibc.
1788 # GCC_EXEC_PREFIX contains the current directory if one of the following
1790 # - one of the terminals (":" and ";") is the first or last sign
1791 # - two terminals occur directly after each other
1792 # - the path contains an element with a dot in it
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797 gcc_exec_prefix_setting="contains current directory"
1800 gcc_exec_prefix_setting="ok"
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
1806 { { echo "$as_me:$LINENO: error:
1807 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808 *** building gcc. Please change the environment variable
1809 *** and run configure again.
" >&5
1810 echo "$as_me: error
:
1811 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814 { (exit 1); exit 1; }; }
1821 # Specify the local prefix
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826 withval="$with_local_prefix"
1827 case "${withval}" in
1828 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
1832 *) local_prefix=$with_local_prefix ;;
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838 local_prefix=/usr/local
1841 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
1842 # passed in by the toplevel make and thus we'd get different behavior
1843 # depending on where we built the sources.
1844 gcc_gxx_include_dir
=
1845 # Specify the g++ header file directory
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849 withval
="$with_gxx_include_dir"
1850 case "${withval}" in
1851 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853 { (exit 1); exit 1; }; } ;;
1855 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if test x
${gcc_gxx_include_dir} = x
; then
1861 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1862 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1864 libstdcxx_incdir
='include/c++/$(version)'
1865 if test x
$host != x
$target; then
1866 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1868 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875 withval
="$with_cpp_install_dir"
1876 if test x
$withval = xyes
; then
1877 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879 { (exit 1); exit 1; }; }
1880 elif test x
$withval != xno
; then
1881 cpp_install_dir
=$withval
1885 # We would like to our source tree to be readonly. However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895 enableval
="$enable_generated_files_in_srcdir"
1896 generated_files_in_srcdir
=$enableval
1898 generated_files_in_srcdir
=no
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1904 if test "$generated_files_in_srcdir" = "yes"; then
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919 withval
="$with_gnu_ld"
1920 gnu_ld_flag
="$with_gnu_ld"
1925 # With pre-defined ld
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1930 DEFAULT_LINKER
="$with_ld"
1932 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1933 if test ! -x "$DEFAULT_LINKER"; then
1934 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936 { (exit 1); exit 1; }; }
1937 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1941 cat >>confdefs.h
<<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1947 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1949 cat >>confdefs.h
<<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1957 if test x
"$gnu_ld_flag" = x
"no"; then
1958 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1961 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1969 # With demangler in GNU ld
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973 withval
="$with_demangler_in_ld"
1974 demangler_in_ld
="$with_demangler_in_ld"
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987 withval
="$with_gnu_as"
1988 gas_flag
="$with_gnu_as"
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1997 DEFAULT_ASSEMBLER
="$with_as"
1999 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2000 if test ! -x "$DEFAULT_ASSEMBLER"; then
2001 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003 { (exit 1); exit 1; }; }
2004 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2008 cat >>confdefs.h
<<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2014 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2016 cat >>confdefs.h
<<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2024 if test x
"$gas_flag" = x
"no"; then
2025 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2028 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2040 # If a non-executable a.out is present (e.g. created by GNU as above even if
2041 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042 # file, even when creating an executable, so an execution test fails.
2043 # Remove possible default executable files to avoid this.
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2049 # Find the native compiler
2051 ac_cpp
='$CPP $CPPFLAGS'
2052 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC
="$CC" # Let the user override the test.
2066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir
=.
2071 for ac_exec_ext
in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$ac_cv_prog_CC"; then
2094 # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc
; ac_word
=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir
=.
2109 for ac_exec_ext
in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_ac_ct_CC
="gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2134 if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC
="$CC" # Let the user override the test.
2146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2150 test -z "$as_dir" && as_dir
=.
2151 for ac_exec_ext
in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test -n "$CC"; then
2164 echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2172 if test -z "$ac_cv_prog_CC"; then
2174 # Extract the first word of "cc", so it can be a program name with args.
2175 set dummy cc
; ac_word
=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir
=.
2189 for ac_exec_ext
in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC
="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc
; ac_word
=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC
="$CC" # Let the user override the test.
2227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2231 test -z "$as_dir" && as_dir
=.
2232 for ac_exec_ext
in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected
=yes
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy
$ac_cv_prog_CC
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2254 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2260 if test -n "$CC"; then
2261 echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC
="$CC" # Let the user override the test.
2283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir
=.
2288 for ac_exec_ext
in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$CC" && break
2311 if test -z "$CC"; then
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy
$ac_prog; ac_word
=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir
=.
2330 for ac_exec_ext
in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC
="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 test -n "$ac_ct_CC" && break
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler
=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.
$ac_ext <<_ACEOF
2390 cat confdefs.h
>>conftest.
$ac_ext
2391 cat >>conftest.
$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 ac_clean_files_save
=$ac_clean_files
2403 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 # b.out is created by i960 compilers.
2423 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2425 test -f "$ac_file" ||
continue
2427 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2430 # This is the source file.
2433 # We found the default executable, but exeext='' is most
2437 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.
$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457 { (exit 77); exit 77; }; }; }
2460 ac_exeext
=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2464 # Check the compiler produces executables we can run. If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471 if { ac_try
='./$ac_file'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2479 if test "$cross_compiling" = maybe
; then
2482 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }; }
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2498 ac_clean_files
=$ac_clean_files_save
2499 # Check the compiler produces executables we can run. If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 for ac_file
in conftest.exe conftest conftest.
*; do
2518 test -f "$ac_file" ||
continue
2520 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2521 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest
$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2541 rm -f conftest.
$ac_ext
2542 EXEEXT
=$ac_cv_exeext
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 cat >conftest.
$ac_ext <<_ACEOF
2552 cat confdefs.h
>>conftest.
$ac_ext
2553 cat >>conftest.
$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2573 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.
$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }; }
2590 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT
=$ac_cv_objext
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 cat >conftest.
$ac_ext <<_ACEOF
2604 cat confdefs.h
>>conftest.
$ac_ext
2605 cat >>conftest.
$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2619 rm -f conftest.
$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1
>conftest.err
2625 cat conftest.err
>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try
='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try
='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.
$ac_ext >&5
2648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2649 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS
=${CFLAGS+set}
2656 ac_save_CFLAGS
=$CFLAGS
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 cat >conftest.
$ac_ext <<_ACEOF
2666 cat confdefs.h
>>conftest.
$ac_ext
2667 cat >>conftest.
$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.
$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2682 grep -v '^ *+' conftest.er1
>conftest.err
2684 cat conftest.err
>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try
='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try
='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.
$ac_ext >&5
2707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS
=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2720 if test "$GCC" = yes; then
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 ac_cv_prog_cc_stdc
=no
2733 cat >conftest.
$ac_ext <<_ACEOF
2736 cat confdefs.h
>>conftest.
$ac_ext
2737 cat >>conftest.
$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 #include <sys/types.h>
2742 #include <sys/stat.h>
2743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2752 static char *f (char * (*g) (char **, int), char **p, ...)
2757 s = g (p, va_arg (v,int));
2762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2763 function prototypes and stuff, but not '\xHH' hex character constants.
2764 These don't provoke an error unfortunately, instead are silently treated
2765 as 'x'. The following induces an error, until -std1 is added to get
2766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2767 array size at least. It's necessary to write '\x00'==0 to get something
2768 that's true only with -std1. */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX -qlanglvl=ansi
2788 # Ultrix and OSF/1 -std1
2789 # HP-UX 10.20 and later -Ae
2790 # HP-UX older versions -Aa -D_HPUX_SOURCE
2791 # SVR4 -Xc -D__EXTENSIONS__
2792 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC
="$ac_save_CC $ac_arg"
2795 rm -f conftest.
$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2799 grep -v '^ *+' conftest.er1
>conftest.err
2801 cat conftest.err
>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try
='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try
='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_stdc
=$ac_arg
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.
$ac_ext >&5
2824 rm -f conftest.err conftest.
$ac_objext
2826 rm -f conftest.
$ac_ext conftest.
$ac_objext
2831 case "x$ac_cv_prog_cc_stdc" in
2833 echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2841 # Some people use a C++ compiler to compile C. Since we use `exit',
2842 # in C++ we need to declare it. In case someone uses the same compiler
2843 # for both compiling C and C++ we need to have the C++ compiler decide
2844 # the declaration of exit, since it's the most demanding environment.
2845 cat >conftest.
$ac_ext <<_ACEOF
2850 rm -f conftest.
$ac_objext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1
>conftest.err
2856 cat conftest.err
>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try
='test -z "$ac_c_werror_flag"
2860 || test ! -s conftest.err'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; } &&
2866 { ac_try
='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 for ac_declaration
in \
2874 'extern "C" void std::exit (int) throw (); using std::exit;' \
2875 'extern "C" void std::exit (int); using std::exit;' \
2876 'extern "C" void exit (int) throw ();' \
2877 'extern "C" void exit (int);' \
2880 cat >conftest.
$ac_ext <<_ACEOF
2883 cat confdefs.h
>>conftest.
$ac_ext
2884 cat >>conftest.
$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2896 rm -f conftest.
$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1
>conftest.err
2902 cat conftest.err
>&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try
='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try
='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.
$ac_ext >&5
2925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2926 cat >conftest.
$ac_ext <<_ACEOF
2929 cat confdefs.h
>>conftest.
$ac_ext
2930 cat >>conftest.
$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.
$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1
>conftest.err
2947 cat conftest.err
>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try
='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try
='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.
$ac_ext >&5
2969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2972 if test -n "$ac_declaration"; then
2973 echo '#ifdef __cplusplus' >>confdefs.h
2974 echo $ac_declaration >>confdefs.h
2975 echo '#endif' >>confdefs.h
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.
$ac_ext >&5
2983 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2985 ac_cpp
='$CPP $CPPFLAGS'
2986 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2990 if test "x$CC" != xcc
; then
2991 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2994 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2997 set dummy
$CC; ac_cc
=`echo $2 |
2998 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.
$ac_ext <<_ACEOF
3005 cat confdefs.h
>>conftest.
$ac_ext
3006 cat >>conftest.
$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 # Make sure it works both with $CC and with simple cc.
3018 # We do the test twice because some compilers refuse to overwrite an
3019 # existing .o file with -o, though they will create one.
3020 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); };
3032 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3033 if test "x$CC" != xcc
; then
3034 # Test first that cc exists at all.
3035 if { ac_try
='cc -c conftest.$ac_ext >&5'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3056 # cc exists but doesn't like -o.
3057 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3062 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3074 cat >>confdefs.h
<<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir
=`cd $ac_aux_dir && pwd`
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3086 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088 # Losing compiler, so override with the script.
3089 # FIXME: It is wrong to rewrite CC.
3090 # But if we don't then we get into trouble of one sort or another.
3091 # A longer-term fix would be to have automake use am__CC in this case,
3092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093 CC
="$am_aux_dir/compile $CC"
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 if test -n "$GNATBIND"; then
3108 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir
=.
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 GNATBIND
=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3136 if test -z "$ac_cv_prog_GNATBIND"; then
3137 ac_ct_GNATBIND
=$GNATBIND
3138 # Extract the first word of "gnatbind", so it can be a program name with args.
3139 set dummy gnatbind
; ac_word
=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$ac_ct_GNATBIND"; then
3146 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3165 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 GNATBIND
=$ac_ct_GNATBIND
3176 GNATBIND
="$ac_cv_prog_GNATBIND"
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$GNATMAKE"; then
3188 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir
=.
3195 for ac_exec_ext
in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 GNATMAKE
=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3216 if test -z "$ac_cv_prog_GNATMAKE"; then
3217 ac_ct_GNATMAKE
=$GNATMAKE
3218 # Extract the first word of "gnatmake", so it can be a program name with args.
3219 set dummy gnatmake
; ac_word
=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$ac_ct_GNATMAKE"; then
3226 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir
=.
3233 for ac_exec_ext
in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3245 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 GNATMAKE
=$ac_ct_GNATMAKE
3256 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.adb
<<EOF
3265 procedure conftest is begin null; end conftest;
3267 acx_cv_cc_gcc_supports_ada
=no
3268 # There is a bug in old released versions of GCC which causes the
3269 # driver to exit successfully when the appropriate language module
3270 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3271 # Therefore we must check for the error message as well as an
3272 # unsuccessful exit.
3273 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274 # given a .adb file, but produce no object file. So we must check
3275 # if an object file was really produced to guard against this.
3276 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3278 acx_cv_cc_gcc_supports_ada
=yes
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3285 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294 NO_MINUS_C_MINUS_O
=yes
3296 OUTPUT_OPTION
='-o $@'
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3304 */prev-gcc
/xgcc
*) ;;
3305 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3315 ac_cpp
='$CPP $CPPFLAGS'
3316 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3325 if test -z "$CPP"; then
3326 if test "${ac_cv_prog_CPP+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 # Double quotes because CPP needs to be expanded
3330 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3333 for ac_c_preproc_warn_flag
in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.
$ac_ext <<_ACEOF
3344 cat confdefs.h
>>conftest.
$ac_ext
3345 cat >>conftest.
$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3357 grep -v '^ *+' conftest.er1
>conftest.err
3359 cat conftest.err
>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev
/null
; then
3362 if test -s conftest.err
; then
3363 ac_cpp_err
=$ac_c_preproc_warn_flag
3364 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3377 # Broken: fails on valid input.
3380 rm -f conftest.err conftest.
$ac_ext
3382 # OK, works on sane cases. Now check whether non-existent headers
3383 # can be detected and how.
3384 cat >conftest.
$ac_ext <<_ACEOF
3387 cat confdefs.h
>>conftest.
$ac_ext
3388 cat >>conftest.
$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <ac_nonexistent.h>
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3395 grep -v '^ *+' conftest.er1
>conftest.err
3397 cat conftest.err
>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev
/null
; then
3400 if test -s conftest.err
; then
3401 ac_cpp_err
=$ac_c_preproc_warn_flag
3402 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3409 if test -z "$ac_cpp_err"; then
3410 # Broken: success on invalid input.
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.
$ac_ext >&5
3416 # Passes both tests.
3420 rm -f conftest.err conftest.
$ac_ext
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.
$ac_ext
3425 if $ac_preproc_ok; then
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3440 for ac_c_preproc_warn_flag
in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.
$ac_ext <<_ACEOF
3451 cat confdefs.h
>>conftest.
$ac_ext
3452 cat >>conftest.
$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 # include <limits.h>
3457 # include <assert.h>
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3464 grep -v '^ *+' conftest.er1
>conftest.err
3466 cat conftest.err
>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev
/null
; then
3469 if test -s conftest.err
; then
3470 ac_cpp_err
=$ac_c_preproc_warn_flag
3471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3478 if test -z "$ac_cpp_err"; then
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.
$ac_ext >&5
3484 # Broken: fails on valid input.
3487 rm -f conftest.err conftest.
$ac_ext
3489 # OK, works on sane cases. Now check whether non-existent headers
3490 # can be detected and how.
3491 cat >conftest.
$ac_ext <<_ACEOF
3494 cat confdefs.h
>>conftest.
$ac_ext
3495 cat >>conftest.
$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3502 grep -v '^ *+' conftest.er1
>conftest.err
3504 cat conftest.err
>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev
/null
; then
3507 if test -s conftest.err
; then
3508 ac_cpp_err
=$ac_c_preproc_warn_flag
3509 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.
$ac_ext >&5
3523 # Passes both tests.
3527 rm -f conftest.err conftest.
$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.
$ac_ext
3532 if $ac_preproc_ok; then
3535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }; }
3545 ac_cpp
='$CPP $CPPFLAGS'
3546 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3557 then ac_cv_prog_egrep
='grep -E'
3558 else ac_cv_prog_egrep
='egrep'
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP
=$ac_cv_prog_egrep
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.
$ac_ext <<_ACEOF
3574 cat confdefs.h
>>conftest.
$ac_ext
3575 cat >>conftest.
$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1
>conftest.err
3596 cat conftest.err
>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try
='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_header_stdc
=yes
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3617 ac_cv_header_stdc
=no
3619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat >conftest.
$ac_ext <<_ACEOF
3626 cat confdefs.h
>>conftest.
$ac_ext
3627 cat >>conftest.
$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev
/null
2>&1; then
3636 ac_cv_header_stdc
=no
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev
/null
2>&1; then
3657 ac_cv_header_stdc
=no
3663 if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then
3668 cat >conftest.
$ac_ext <<_ACEOF
3671 cat confdefs.h
>>conftest.
$ac_ext
3672 cat >>conftest.
$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3679 # define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3698 rm -f conftest
$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3711 echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3716 ac_cv_header_stdc
=no
3718 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3726 cat >>confdefs.h
<<\_ACEOF
3727 #define STDC_HEADERS 1
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3742 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3743 inttypes.h stdint.h unistd.h
3745 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3759 #include <$ac_header>
3761 rm -f conftest.
$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>conftest.er1
3765 grep -v '^ *+' conftest.er1
>conftest.err
3767 cat conftest.err
>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try
='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try
='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 eval "$as_ac_Header=yes"
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.
$ac_ext >&5
3788 eval "$as_ac_Header=no"
3790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h
<<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805 if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 #include <minix/config.h>
3826 rm -f conftest.
$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3830 grep -v '^ *+' conftest.er1
>conftest.err
3832 cat conftest.err
>&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try
='test -z "$ac_c_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try
='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_header_compiler
=yes
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.
$ac_ext >&5
3853 ac_header_compiler
=no
3855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.
$ac_ext <<_ACEOF
3865 cat confdefs.h
>>conftest.
$ac_ext
3866 cat >>conftest.
$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <minix/config.h>
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3873 grep -v '^ *+' conftest.er1
>conftest.err
3875 cat conftest.err
>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev
/null
; then
3878 if test -s conftest.err
; then
3879 ac_cpp_err
=$ac_c_preproc_warn_flag
3880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3887 if test -z "$ac_cpp_err"; then
3888 ac_header_preproc
=yes
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.
$ac_ext >&5
3893 ac_header_preproc
=no
3895 rm -f conftest.err conftest.
$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3899 # So? What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc
=yes
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists. ##
3925 ## ------------------------------------------ ##
3928 sed "s/^/$as_me: WARNING: /" >&2
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 ac_cv_header_minix_config_h
=$ac_header_preproc
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3942 if test $ac_cv_header_minix_config_h = yes; then
3949 if test "$MINIX" = yes; then
3951 cat >>confdefs.h
<<\_ACEOF
3952 #define _POSIX_SOURCE 1
3956 cat >>confdefs.h
<<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3961 cat >>confdefs.h
<<\_ACEOF
3969 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # define __EXTENSIONS__ 1
3982 $ac_includes_default
3991 rm -f conftest.
$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3995 grep -v '^ *+' conftest.er1
>conftest.err
3997 cat conftest.err
>&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try
='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try
='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_safe_to_define___extensions__
=yes
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4018 ac_cv_safe_to_define___extensions__
=no
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h
<<\_ACEOF
4026 #define __EXTENSIONS__ 1
4029 cat >>confdefs.h
<<\_ACEOF
4030 #define _ALL_SOURCE 1
4033 cat >>confdefs.h
<<\_ACEOF
4034 #define _GNU_SOURCE 1
4037 cat >>confdefs.h
<<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4041 cat >>confdefs.h
<<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4047 ac_cpp
='$CPP $CPPFLAGS'
4048 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 # Double quotes because CPP needs to be expanded
4062 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065 for ac_c_preproc_warn_flag
in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat >conftest.
$ac_ext <<_ACEOF
4076 cat confdefs.h
>>conftest.
$ac_ext
4077 cat >>conftest.
$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1
>conftest.err
4091 cat conftest.err
>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev
/null
; then
4094 if test -s conftest.err
; then
4095 ac_cpp_err
=$ac_c_preproc_warn_flag
4096 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4103 if test -z "$ac_cpp_err"; then
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.
$ac_ext >&5
4109 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.
$ac_ext
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.
$ac_ext <<_ACEOF
4119 cat confdefs.h
>>conftest.
$ac_ext
4120 cat >>conftest.
$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1
>conftest.err
4129 cat conftest.err
>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev
/null
; then
4132 if test -s conftest.err
; then
4133 ac_cpp_err
=$ac_c_preproc_warn_flag
4134 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4141 if test -z "$ac_cpp_err"; then
4142 # Broken: success on invalid input.
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.
$ac_ext >&5
4148 # Passes both tests.
4152 rm -f conftest.err conftest.
$ac_ext
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.
$ac_ext
4157 if $ac_preproc_ok; then
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4172 for ac_c_preproc_warn_flag
in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat >conftest.
$ac_ext <<_ACEOF
4183 cat confdefs.h
>>conftest.
$ac_ext
4184 cat >>conftest.
$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1
>conftest.err
4198 cat conftest.err
>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev
/null
; then
4201 if test -s conftest.err
; then
4202 ac_cpp_err
=$ac_c_preproc_warn_flag
4203 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4210 if test -z "$ac_cpp_err"; then
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 # Broken: fails on valid input.
4219 rm -f conftest.err conftest.
$ac_ext
4221 # OK, works on sane cases. Now check whether non-existent headers
4222 # can be detected and how.
4223 cat >conftest.
$ac_ext <<_ACEOF
4226 cat confdefs.h
>>conftest.
$ac_ext
4227 cat >>conftest.
$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4234 grep -v '^ *+' conftest.er1
>conftest.err
4236 cat conftest.err
>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev
/null
; then
4239 if test -s conftest.err
; then
4240 ac_cpp_err
=$ac_c_preproc_warn_flag
4241 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4248 if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.
$ac_ext >&5
4255 # Passes both tests.
4259 rm -f conftest.err conftest.
$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.
$ac_ext
4264 if $ac_preproc_ok; then
4267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273 { (exit 1); exit 1; }; }; }
4277 ac_cpp
='$CPP $CPPFLAGS'
4278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 for ac_kw
in inline __inline__ __inline
; do
4289 cat >conftest.
$ac_ext <<_ACEOF
4292 cat confdefs.h
>>conftest.
$ac_ext
4293 cat >>conftest.
$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4302 rm -f conftest.
$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1
>conftest.err
4308 cat conftest.err
>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try
='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try
='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_c_inline
=$ac_kw; break
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.
$ac_ext >&5
4330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4338 case $ac_cv_c_inline in
4341 case $ac_cv_c_inline in
4343 *) ac_val
=$ac_cv_c_inline;;
4345 cat >>confdefs.h
<<_ACEOF
4347 #define inline $ac_val
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 cat >conftest.
$ac_ext <<_ACEOF
4363 cat confdefs.h
>>conftest.
$ac_ext
4364 cat >>conftest.
$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 $ac_includes_default
4372 if (sizeof (void *))
4378 rm -f conftest.
$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4382 grep -v '^ *+' conftest.er1
>conftest.err
4384 cat conftest.err
>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try
='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try
='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_type_void_p
=yes
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4405 ac_cv_type_void_p
=no
4407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test "$ac_cv_type_void_p" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4441 rm -f conftest.
$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1
>conftest.err
4447 cat conftest.err
>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try
='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try
='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4465 cat >conftest.
$ac_ext <<_ACEOF
4468 cat confdefs.h
>>conftest.
$ac_ext
4469 cat >>conftest.
$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 $ac_includes_default
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4482 rm -f conftest.
$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
4486 grep -v '^ *+' conftest.er1
>conftest.err
4488 cat conftest.err
>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try
='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try
='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_hi
=$ac_mid; break
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.
$ac_ext >&5
4509 ac_lo
=`expr $ac_mid + 1`
4510 if test $ac_lo -le $ac_mid; then
4514 ac_mid
=`expr 2 '*' $ac_mid + 1`
4516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.
$ac_ext >&5
4522 cat >conftest.
$ac_ext <<_ACEOF
4525 cat confdefs.h
>>conftest.
$ac_ext
4526 cat >>conftest.
$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4539 rm -f conftest.
$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1
>conftest.err
4545 cat conftest.err
>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try
='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try
='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 cat >conftest.
$ac_ext <<_ACEOF
4566 cat confdefs.h
>>conftest.
$ac_ext
4567 cat >>conftest.
$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4580 rm -f conftest.
$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1
>conftest.err
4586 cat conftest.err
>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try
='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try
='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_lo
=$ac_mid; break
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.
$ac_ext >&5
4607 ac_hi
=`expr '(' $ac_mid ')' - 1`
4608 if test $ac_mid -le $ac_hi; then
4612 ac_mid
=`expr 2 '*' $ac_mid`
4614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4624 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while test "x$ac_lo" != "x$ac_hi"; do
4627 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628 cat >conftest.
$ac_ext <<_ACEOF
4631 cat confdefs.h
>>conftest.
$ac_ext
4632 cat >>conftest.
$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4645 rm -f conftest.
$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1
>conftest.err
4651 cat conftest.err
>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try
='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try
='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.
$ac_ext >&5
4672 ac_lo
=`expr '(' $ac_mid ')' + 1`
4674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4677 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; }; } ;;
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694 { (exit 1); exit 1; }; }; }
4696 cat >conftest.
$ac_ext <<_ACEOF
4699 cat confdefs.h
>>conftest.
$ac_ext
4700 cat >>conftest.
$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4711 FILE *f = fopen ("conftest.val", "w");
4714 if (((long) (sizeof (void *))) < 0)
4716 long i = longval ();
4717 if (i != ((long) (sizeof (void *))))
4719 fprintf (f, "%ld\n", i);
4723 unsigned long i = ulongval ();
4724 if (i != ((long) (sizeof (void *))))
4726 fprintf (f, "%lu\n", i);
4728 exit (ferror (f) || fclose (f) != 0);
4734 rm -f conftest
$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_sizeof_void_p
=`cat conftest.val`
4747 echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }; }
4760 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4765 ac_cv_sizeof_void_p
=0
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h
<<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 cat >conftest.
$ac_ext <<_ACEOF
4783 cat confdefs.h
>>conftest.
$ac_ext
4784 cat >>conftest.
$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_includes_default
4798 rm -f conftest.
$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4802 grep -v '^ *+' conftest.er1
>conftest.err
4804 cat conftest.err
>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try
='test -z "$ac_c_werror_flag"
4808 || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try
='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_type_short
=yes
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.
$ac_ext >&5
4827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test "$ac_cv_type_short" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4861 rm -f conftest.
$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4865 grep -v '^ *+' conftest.er1
>conftest.err
4867 cat conftest.err
>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try
='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try
='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1
>conftest.err
4908 cat conftest.err
>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try
='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try
='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi
=$ac_mid; break
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.
$ac_ext >&5
4929 ac_lo
=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4934 ac_mid
=`expr 2 '*' $ac_mid + 1`
4936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.
$ac_ext >&5
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4959 rm -f conftest.
$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try
='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4983 cat >conftest.
$ac_ext <<_ACEOF
4986 cat confdefs.h
>>conftest.
$ac_ext
4987 cat >>conftest.
$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5000 rm -f conftest.
$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1
>conftest.err
5006 cat conftest.err
>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try
='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try
='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_lo
=$ac_mid; break
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5027 ac_hi
=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5032 ac_mid
=`expr 2 '*' $ac_mid`
5034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.
$ac_ext >&5
5042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.
$ac_ext <<_ACEOF
5051 cat confdefs.h
>>conftest.
$ac_ext
5052 cat >>conftest.
$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5065 rm -f conftest.
$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1
>conftest.err
5071 cat conftest.err
>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try
='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try
='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.
$ac_ext >&5
5092 ac_lo
=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }; } ;;
5107 if test "$cross_compiling" = yes; then
5108 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }; }
5116 cat >conftest.
$ac_ext <<_ACEOF
5119 cat confdefs.h
>>conftest.
$ac_ext
5120 cat >>conftest.
$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5131 FILE *f = fopen ("conftest.val", "w");
5134 if (((long) (sizeof (short))) < 0)
5136 long i = longval ();
5137 if (i != ((long) (sizeof (short))))
5139 fprintf (f, "%ld\n", i);
5143 unsigned long i = ulongval ();
5144 if (i != ((long) (sizeof (short))))
5146 fprintf (f, "%lu\n", i);
5148 exit (ferror (f) || fclose (f) != 0);
5154 rm -f conftest
$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_sizeof_short
=`cat conftest.val`
5167 echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.
$ac_ext >&5
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }; }
5180 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5185 ac_cv_sizeof_short
=0
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h
<<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5218 rm -f conftest.
$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5222 grep -v '^ *+' conftest.er1
>conftest.err
5224 cat conftest.err
>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try
='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try
='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.
$ac_ext >&5
5247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 if test "$ac_cv_type_int" = yes; then
5258 # The cast to unsigned long works around a bug in the HP C Compiler
5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261 # This bug is HP SR number 8606223364.
5262 if test "$cross_compiling" = yes; then
5263 # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.
$ac_ext <<_ACEOF
5267 cat confdefs.h
>>conftest.
$ac_ext
5268 cat >>conftest.
$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5281 rm -f conftest.
$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5285 grep -v '^ *+' conftest.er1
>conftest.err
5287 cat conftest.err
>&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try
='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try
='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5305 cat >conftest.
$ac_ext <<_ACEOF
5308 cat confdefs.h
>>conftest.
$ac_ext
5309 cat >>conftest.
$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5322 rm -f conftest.
$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1
>conftest.err
5328 cat conftest.err
>&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try
='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try
='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_hi
=$ac_mid; break
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.
$ac_ext >&5
5349 ac_lo
=`expr $ac_mid + 1`
5350 if test $ac_lo -le $ac_mid; then
5354 ac_mid
=`expr 2 '*' $ac_mid + 1`
5356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.
$ac_ext >&5
5362 cat >conftest.
$ac_ext <<_ACEOF
5365 cat confdefs.h
>>conftest.
$ac_ext
5366 cat >>conftest.
$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5379 rm -f conftest.
$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1
>conftest.err
5385 cat conftest.err
>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try
='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try
='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5403 cat >conftest.
$ac_ext <<_ACEOF
5406 cat confdefs.h
>>conftest.
$ac_ext
5407 cat >>conftest.
$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5420 rm -f conftest.
$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1
>conftest.err
5426 cat conftest.err
>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try
='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try
='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_lo
=$ac_mid; break
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.
$ac_ext >&5
5447 ac_hi
=`expr '(' $ac_mid ')' - 1`
5448 if test $ac_mid -le $ac_hi; then
5452 ac_mid
=`expr 2 '*' $ac_mid`
5454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.
$ac_ext >&5
5462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while test "x$ac_lo" != "x$ac_hi"; do
5467 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468 cat >conftest.
$ac_ext <<_ACEOF
5471 cat confdefs.h
>>conftest.
$ac_ext
5472 cat >>conftest.
$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5485 rm -f conftest.
$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5489 grep -v '^ *+' conftest.er1
>conftest.err
5491 cat conftest.err
>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try
='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try
='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.
$ac_ext >&5
5512 ac_lo
=`expr '(' $ac_mid ')' + 1`
5514 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5517 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524 { (exit 1); exit 1; }; }; } ;;
5527 if test "$cross_compiling" = yes; then
5528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534 { (exit 1); exit 1; }; }; }
5536 cat >conftest.
$ac_ext <<_ACEOF
5539 cat confdefs.h
>>conftest.
$ac_ext
5540 cat >>conftest.
$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5551 FILE *f = fopen ("conftest.val", "w");
5554 if (((long) (sizeof (int))) < 0)
5556 long i = longval ();
5557 if (i != ((long) (sizeof (int))))
5559 fprintf (f, "%ld\n", i);
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (int))))
5566 fprintf (f, "%lu\n", i);
5568 exit (ferror (f) || fclose (f) != 0);
5574 rm -f conftest
$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_int
=`cat conftest.val`
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.
$ac_ext >&5
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598 { (exit 1); exit 1; }; }; }
5600 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h
<<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5638 rm -f conftest.
$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5642 grep -v '^ *+' conftest.er1
>conftest.err
5644 cat conftest.err
>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try
='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try
='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.
$ac_ext >&5
5667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 if test "$ac_cv_type_long" = yes; then
5678 # The cast to unsigned long works around a bug in the HP C Compiler
5679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681 # This bug is HP SR number 8606223364.
5682 if test "$cross_compiling" = yes; then
5683 # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5701 rm -f conftest.
$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1
>conftest.err
5707 cat conftest.err
>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try
='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5725 cat >conftest.
$ac_ext <<_ACEOF
5728 cat confdefs.h
>>conftest.
$ac_ext
5729 cat >>conftest.
$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5742 rm -f conftest.
$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
5746 grep -v '^ *+' conftest.er1
>conftest.err
5748 cat conftest.err
>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try
='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try
='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_hi
=$ac_mid; break
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.
$ac_ext >&5
5769 ac_lo
=`expr $ac_mid + 1`
5770 if test $ac_lo -le $ac_mid; then
5774 ac_mid
=`expr 2 '*' $ac_mid + 1`
5776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.
$ac_ext >&5
5782 cat >conftest.
$ac_ext <<_ACEOF
5785 cat confdefs.h
>>conftest.
$ac_ext
5786 cat >>conftest.
$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5799 rm -f conftest.
$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try
='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try
='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5823 cat >conftest.
$ac_ext <<_ACEOF
5826 cat confdefs.h
>>conftest.
$ac_ext
5827 cat >>conftest.
$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5840 rm -f conftest.
$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5844 grep -v '^ *+' conftest.er1
>conftest.err
5846 cat conftest.err
>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try
='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try
='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_lo
=$ac_mid; break
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.
$ac_ext >&5
5867 ac_hi
=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5872 ac_mid
=`expr 2 '*' $ac_mid`
5874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5882 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.
$ac_ext <<_ACEOF
5891 cat confdefs.h
>>conftest.
$ac_ext
5892 cat >>conftest.
$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5905 rm -f conftest.
$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1
>conftest.err
5911 cat conftest.err
>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try
='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try
='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.
$ac_ext >&5
5932 ac_lo
=`expr '(' $ac_mid ')' + 1`
5934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5937 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944 { (exit 1); exit 1; }; }; } ;;
5947 if test "$cross_compiling" = yes; then
5948 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; }; }
5956 cat >conftest.
$ac_ext <<_ACEOF
5959 cat confdefs.h
>>conftest.
$ac_ext
5960 cat >>conftest.
$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5971 FILE *f = fopen ("conftest.val", "w");
5974 if (((long) (sizeof (long))) < 0)
5976 long i = longval ();
5977 if (i != ((long) (sizeof (long))))
5979 fprintf (f, "%ld\n", i);
5983 unsigned long i = ulongval ();
5984 if (i != ((long) (sizeof (long))))
5986 fprintf (f, "%lu\n", i);
5988 exit (ferror (f) || fclose (f) != 0);
5994 rm -f conftest
$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_long
=`cat conftest.val`
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.
$ac_ext >&5
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; }; }
6020 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h
<<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.
$ac_ext <<_ACEOF
6043 cat confdefs.h
>>conftest.
$ac_ext
6044 cat >>conftest.
$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6050 if ((long long *) 0)
6052 if (sizeof (long long))
6058 rm -f conftest.
$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6062 grep -v '^ *+' conftest.er1
>conftest.err
6064 cat conftest.err
>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try
='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try
='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_type_long_long
=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_cv_type_long_long
=no
6087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6093 cat >>confdefs.h
<<_ACEOF
6094 #define HAVE_LONG_LONG 1
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6112 if ((long long *) 0)
6114 if (sizeof (long long))
6120 rm -f conftest.
$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1
>conftest.err
6126 cat conftest.err
>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try
='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try
='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_type_long_long
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 ac_cv_type_long_long
=no
6149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 if test "$ac_cv_type_long_long" = yes; then
6160 # The cast to unsigned long works around a bug in the HP C Compiler
6161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163 # This bug is HP SR number 8606223364.
6164 if test "$cross_compiling" = yes; then
6165 # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.
$ac_ext <<_ACEOF
6169 cat confdefs.h
>>conftest.
$ac_ext
6170 cat >>conftest.
$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6183 rm -f conftest.
$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1
>conftest.err
6189 cat conftest.err
>&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try
='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try
='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 cat >conftest.
$ac_ext <<_ACEOF
6210 cat confdefs.h
>>conftest.
$ac_ext
6211 cat >>conftest.
$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6224 rm -f conftest.
$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try
='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try
='test -s conftest.$ac_objext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_hi
=$ac_mid; break
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.
$ac_ext >&5
6251 ac_lo
=`expr $ac_mid + 1`
6252 if test $ac_lo -le $ac_mid; then
6256 ac_mid
=`expr 2 '*' $ac_mid + 1`
6258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.
$ac_ext >&5
6264 cat >conftest.
$ac_ext <<_ACEOF
6267 cat confdefs.h
>>conftest.
$ac_ext
6268 cat >>conftest.
$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6281 rm -f conftest.
$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try
='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try
='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6305 cat >conftest.
$ac_ext <<_ACEOF
6308 cat confdefs.h
>>conftest.
$ac_ext
6309 cat >>conftest.
$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6322 rm -f conftest.
$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1
>conftest.err
6328 cat conftest.err
>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try
='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try
='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_lo
=$ac_mid; break
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.
$ac_ext >&5
6349 ac_hi
=`expr '(' $ac_mid ')' - 1`
6350 if test $ac_mid -le $ac_hi; then
6354 ac_mid
=`expr 2 '*' $ac_mid`
6356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6366 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while test "x$ac_lo" != "x$ac_hi"; do
6369 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370 cat >conftest.
$ac_ext <<_ACEOF
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6414 ac_lo
=`expr '(' $ac_mid ')' + 1`
6416 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426 { (exit 1); exit 1; }; }; } ;;
6429 if test "$cross_compiling" = yes; then
6430 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436 { (exit 1); exit 1; }; }; }
6438 cat >conftest.
$ac_ext <<_ACEOF
6441 cat confdefs.h
>>conftest.
$ac_ext
6442 cat >>conftest.
$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6453 FILE *f = fopen ("conftest.val", "w");
6456 if (((long) (sizeof (long long))) < 0)
6458 long i = longval ();
6459 if (i != ((long) (sizeof (long long))))
6461 fprintf (f, "%ld\n", i);
6465 unsigned long i = ulongval ();
6466 if (i != ((long) (sizeof (long long))))
6468 fprintf (f, "%lu\n", i);
6470 exit (ferror (f) || fclose (f) != 0);
6476 rm -f conftest
$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sizeof_long_long
=`cat conftest.val`
6489 echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.
$ac_ext >&5
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500 { (exit 1); exit 1; }; }; }
6502 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6507 ac_cv_sizeof_long_long
=0
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h
<<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.
$ac_ext <<_ACEOF
6527 cat confdefs.h
>>conftest.
$ac_ext
6528 cat >>conftest.
$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6536 if (sizeof (__int64))
6542 rm -f conftest.
$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1
>conftest.err
6548 cat conftest.err
>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try
='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try
='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_type___int64
=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.
$ac_ext >&5
6569 ac_cv_type___int64
=no
6571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6577 cat >>confdefs.h
<<_ACEOF
6578 #define HAVE___INT64 1
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.
$ac_ext <<_ACEOF
6589 cat confdefs.h
>>conftest.
$ac_ext
6590 cat >>conftest.
$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6598 if (sizeof (__int64))
6604 rm -f conftest.
$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try
='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try
='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type___int64
=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6631 ac_cv_type___int64
=no
6633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if test "$ac_cv_type___int64" = yes; then
6644 # The cast to unsigned long works around a bug in the HP C Compiler
6645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647 # This bug is HP SR number 8606223364.
6648 if test "$cross_compiling" = yes; then
6649 # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.
$ac_ext <<_ACEOF
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6667 rm -f conftest.
$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1
>conftest.err
6673 cat conftest.err
>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try
='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try
='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6691 cat >conftest.
$ac_ext <<_ACEOF
6694 cat confdefs.h
>>conftest.
$ac_ext
6695 cat >>conftest.
$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6708 rm -f conftest.
$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6712 grep -v '^ *+' conftest.er1
>conftest.err
6714 cat conftest.err
>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try
='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try
='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_hi
=$ac_mid; break
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.
$ac_ext >&5
6735 ac_lo
=`expr $ac_mid + 1`
6736 if test $ac_lo -le $ac_mid; then
6740 ac_mid
=`expr 2 '*' $ac_mid + 1`
6742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6748 cat >conftest.
$ac_ext <<_ACEOF
6751 cat confdefs.h
>>conftest.
$ac_ext
6752 cat >>conftest.
$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6765 rm -f conftest.
$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try
='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try
='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6789 cat >conftest.
$ac_ext <<_ACEOF
6792 cat confdefs.h
>>conftest.
$ac_ext
6793 cat >>conftest.
$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6806 rm -f conftest.
$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1
>conftest.err
6812 cat conftest.err
>&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try
='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try
='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_lo
=$ac_mid; break
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.
$ac_ext >&5
6833 ac_hi
=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6838 ac_mid
=`expr 2 '*' $ac_mid`
6840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.
$ac_ext >&5
6848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854 cat >conftest.
$ac_ext <<_ACEOF
6857 cat confdefs.h
>>conftest.
$ac_ext
6858 cat >>conftest.
$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6871 rm -f conftest.
$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6875 grep -v '^ *+' conftest.er1
>conftest.err
6877 cat conftest.err
>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try
='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try
='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.
$ac_ext >&5
6898 ac_lo
=`expr '(' $ac_mid ')' + 1`
6900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6903 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910 { (exit 1); exit 1; }; }; } ;;
6913 if test "$cross_compiling" = yes; then
6914 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920 { (exit 1); exit 1; }; }; }
6922 cat >conftest.
$ac_ext <<_ACEOF
6925 cat confdefs.h
>>conftest.
$ac_ext
6926 cat >>conftest.
$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6937 FILE *f = fopen ("conftest.val", "w");
6940 if (((long) (sizeof (__int64))) < 0)
6942 long i = longval ();
6943 if (i != ((long) (sizeof (__int64))))
6945 fprintf (f, "%ld\n", i);
6949 unsigned long i = ulongval ();
6950 if (i != ((long) (sizeof (__int64))))
6952 fprintf (f, "%lu\n", i);
6954 exit (ferror (f) || fclose (f) != 0);
6960 rm -f conftest
$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_sizeof___int64
=`cat conftest.val`
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.
$ac_ext >&5
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984 { (exit 1); exit 1; }; }; }
6986 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6991 ac_cv_sizeof___int64
=0
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h
<<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
7008 # Check $CC warning features (if it's GCC).
7009 # We want to use -pedantic, but we don't want warnings about
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7016 save_CFLAGS
="$CFLAGS"
7017 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes \
7018 -Wmissing-prototypes -Wcast-qual -Wc++-compat; do
7019 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7021 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7022 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7023 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.
$ac_ext <<_ACEOF
7030 cat confdefs.h
>>conftest.
$ac_ext
7031 cat >>conftest.
$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7042 rm -f conftest.
$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try
='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try
='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_acx_Woption=yes"
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.
$ac_ext >&5
7069 eval "$as_acx_Woption=no"
7071 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7076 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7077 loose_warn
="$loose_warn${loose_warn:+ }$option"
7081 CFLAGS
="$save_CFLAGS"
7084 save_CFLAGS
="$CFLAGS"
7085 for option
in -Wold-style-definition \
7086 -Wmissing-format-attribute; do
7087 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7089 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7090 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7091 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.
$ac_ext <<_ACEOF
7098 cat confdefs.h
>>conftest.
$ac_ext
7099 cat >>conftest.
$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7110 rm -f conftest.
$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112 (eval $ac_compile) 2>conftest.er1
7114 grep -v '^ *+' conftest.er1
>conftest.err
7116 cat conftest.err
>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try
='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try
='test -s conftest.$ac_objext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 eval "$as_acx_Woption=yes"
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7137 eval "$as_acx_Woption=no"
7139 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7144 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7145 strict_warn
="$strict_warn${strict_warn:+ }$option"
7149 CFLAGS
="$save_CFLAGS"
7151 if test "$GCC" = yes; then
7152 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7153 -Wno-overlength-strings" >&5
7154 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7155 -Wno-overlength-strings... $ECHO_C" >&6
7156 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 save_CFLAGS
="$CFLAGS"
7160 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros \
7161 -Wno-overlength-strings"
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7177 rm -f conftest.
$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7181 grep -v '^ *+' conftest.er1
>conftest.err
7183 cat conftest.err
>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try
='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try
='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.
$ac_ext >&5
7204 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings
=no
7206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 CFLAGS
="$save_CFLAGS"
7209 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7210 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7211 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7212 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7213 -Wno-overlength-strings"
7220 # Check whether --enable-werror-always or --disable-werror-always was given.
7221 if test "${enable_werror_always+set}" = set; then
7222 enableval
="$enable_werror_always"
7225 enable_werror_always
=no
7227 if test $enable_werror_always = yes; then
7228 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7234 # The above macros do nothing if the compiler is not GCC. However, the
7235 # Makefile has more goo to add other flags, so this variabl is used to
7236 # enables warnings only for GCC.
7238 if test "x$GCC" = "xyes"; then
7239 warn_cflags
='$(GCC_WARN_CFLAGS)'
7243 # Enable expensive internal checks
7245 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7249 # Check whether --enable-checking or --disable-checking was given.
7250 if test "${enable_checking+set}" = set; then
7251 enableval
="$enable_checking"
7252 ac_checking_flags
="${enableval}"
7255 # Determine the default checks.
7256 if test x
$is_release = x
; then
7257 ac_checking_flags
=yes
7259 ac_checking_flags
=release
7262 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7263 for check
in release
$ac_checking_flags
7266 # these set all the flags to specific states
7267 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7268 ac_fold_checking
= ; ac_gc_checking
=1 ;
7269 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7270 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7271 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7272 ac_types_checking
=1 ;;
7273 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7274 ac_fold_checking
= ; ac_gc_checking
= ;
7275 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7276 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7277 ac_tree_checking
= ; ac_valgrind_checking
= ;
7278 ac_types_checking
= ;;
7279 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7280 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7281 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
7282 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7283 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7284 ac_types_checking
=1 ;;
7285 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7286 ac_fold_checking
= ; ac_gc_checking
= ;
7287 ac_gc_always_collect
= ; ac_rtl_checking
= ;
7288 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7289 ac_tree_checking
= ; ac_valgrind_checking
= ;
7290 ac_types_checking
= ;;
7291 # these enable particular checks
7292 assert
) ac_assert_checking
=1 ;;
7293 df
) ac_df_checking
=1 ;;
7294 fold) ac_fold_checking
=1 ;;
7295 gc
) ac_gc_checking
=1 ;;
7296 gcac
) ac_gc_always_collect
=1 ;;
7297 misc
) ac_checking
=1 ;;
7298 rtl
) ac_rtl_checking
=1 ;;
7299 rtlflag
) ac_rtlflag_checking
=1 ;;
7300 runtime
) ac_runtime_checking
=1 ;;
7301 tree
) ac_tree_checking
=1 ;;
7302 types
) ac_types_checking
=1 ;;
7303 valgrind
) ac_valgrind_checking
=1 ;;
7304 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7305 echo "$as_me: error: unknown check category $check" >&2;}
7306 { (exit 1); exit 1; }; } ;;
7312 if test x
$ac_checking != x
; then
7314 cat >>confdefs.h
<<\_ACEOF
7315 #define ENABLE_CHECKING 1
7318 nocommon_flag
=-fno-common
7321 if test x
$ac_df_checking != x
; then
7323 cat >>confdefs.h
<<\_ACEOF
7324 #define ENABLE_DF_CHECKING 1
7328 if test x
$ac_assert_checking != x
; then
7330 cat >>confdefs.h
<<\_ACEOF
7331 #define ENABLE_ASSERT_CHECKING 1
7336 if test x
$ac_runtime_checking != x
; then
7338 cat >>confdefs.h
<<\_ACEOF
7339 #define ENABLE_RUNTIME_CHECKING 1
7343 if test x
$ac_tree_checking != x
; then
7345 cat >>confdefs.h
<<\_ACEOF
7346 #define ENABLE_TREE_CHECKING 1
7349 TREEBROWSER
=tree-browser.o
7351 if test x
$ac_types_checking != x
; then
7353 cat >>confdefs.h
<<\_ACEOF
7354 #define ENABLE_TYPES_CHECKING 1
7359 if test x
$ac_rtl_checking != x
; then
7361 cat >>confdefs.h
<<\_ACEOF
7362 #define ENABLE_RTL_CHECKING 1
7366 if test x
$ac_rtlflag_checking != x
; then
7368 cat >>confdefs.h
<<\_ACEOF
7369 #define ENABLE_RTL_FLAG_CHECKING 1
7373 if test x
$ac_gc_checking != x
; then
7375 cat >>confdefs.h
<<\_ACEOF
7376 #define ENABLE_GC_CHECKING 1
7380 if test x
$ac_gc_always_collect != x
; then
7382 cat >>confdefs.h
<<\_ACEOF
7383 #define ENABLE_GC_ALWAYS_COLLECT 1
7387 if test x
$ac_fold_checking != x
; then
7389 cat >>confdefs.h
<<\_ACEOF
7390 #define ENABLE_FOLD_CHECKING 1
7394 valgrind_path_defines
=
7397 if test "${ac_cv_header_valgrind_h+set}" = set; then
7398 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7399 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7400 if test "${ac_cv_header_valgrind_h+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7404 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7406 # Is the header compilable?
7407 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7408 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7409 cat >conftest.
$ac_ext <<_ACEOF
7412 cat confdefs.h
>>conftest.
$ac_ext
7413 cat >>conftest.
$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <valgrind.h>
7418 rm -f conftest.
$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7422 grep -v '^ *+' conftest.er1
>conftest.err
7424 cat conftest.err
>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try
='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try
='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_header_compiler
=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.
$ac_ext >&5
7445 ac_header_compiler
=no
7447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7453 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7454 cat >conftest.
$ac_ext <<_ACEOF
7457 cat confdefs.h
>>conftest.
$ac_ext
7458 cat >>conftest.
$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <valgrind.h>
7462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } >/dev
/null
; then
7470 if test -s conftest.err
; then
7471 ac_cpp_err
=$ac_c_preproc_warn_flag
7472 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7479 if test -z "$ac_cpp_err"; then
7480 ac_header_preproc
=yes
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.
$ac_ext >&5
7485 ac_header_preproc
=no
7487 rm -f conftest.err conftest.
$ac_ext
7488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7489 echo "${ECHO_T}$ac_header_preproc" >&6
7491 # So? What about this header?
7492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7494 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7495 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7497 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7498 ac_header_preproc
=yes
7501 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7502 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7504 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7506 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7508 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7509 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7510 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7511 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7512 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7515 ## ------------------------------------------ ##
7516 ## Report this to the AC_PACKAGE_NAME lists. ##
7517 ## ------------------------------------------ ##
7520 sed "s/^/$as_me: WARNING: /" >&2
7523 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7524 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7525 if test "${ac_cv_header_valgrind_h+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 ac_cv_header_valgrind_h
=$ac_header_preproc
7530 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7531 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7534 if test $ac_cv_header_valgrind_h = yes; then
7542 if test x
$ac_valgrind_checking != x
; then
7543 # It is certainly possible that there's valgrind but no valgrind.h.
7544 # GCC relies on making annotations so we must have both.
7545 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7546 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7547 cat >conftest.
$ac_ext <<_ACEOF
7550 cat confdefs.h
>>conftest.
$ac_ext
7551 cat >>conftest.
$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #include <valgrind/memcheck.h>
7554 #ifndef VALGRIND_DISCARD
7555 #error VALGRIND_DISCARD not defined
7558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7561 grep -v '^ *+' conftest.er1
>conftest.err
7563 cat conftest.err
>&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } >/dev
/null
; then
7566 if test -s conftest.err
; then
7567 ac_cpp_err
=$ac_c_preproc_warn_flag
7568 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7575 if test -z "$ac_cpp_err"; then
7576 gcc_cv_header_valgrind_memcheck_h
=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.
$ac_ext >&5
7581 gcc_cv_header_valgrind_memcheck_h
=no
7583 rm -f conftest.err conftest.
$ac_ext
7584 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7585 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7586 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7587 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7588 cat >conftest.
$ac_ext <<_ACEOF
7591 cat confdefs.h
>>conftest.
$ac_ext
7592 cat >>conftest.
$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <memcheck.h>
7595 #ifndef VALGRIND_DISCARD
7596 #error VALGRIND_DISCARD not defined
7599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7600 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7602 grep -v '^ *+' conftest.er1
>conftest.err
7604 cat conftest.err
>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev
/null
; then
7607 if test -s conftest.err
; then
7608 ac_cpp_err
=$ac_c_preproc_warn_flag
7609 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7616 if test -z "$ac_cpp_err"; then
7617 gcc_cv_header_memcheck_h
=yes
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 gcc_cv_header_memcheck_h
=no
7624 rm -f conftest.err conftest.
$ac_ext
7625 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7626 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7628 # Prepare PATH_SEPARATOR.
7629 # The user is always right.
7630 if test "${PATH_SEPARATOR+set}" != set; then
7631 echo "#! /bin/sh" >conf$$.sh
7632 echo "exit 0" >>conf$$.sh
7634 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7642 # Find out how to test for executable files. Don't use a zero-byte file,
7643 # as systems may use methods other than mode bits to determine executability.
7644 cat >conf$$.
file <<_ASEOF
7648 chmod +x conf$$.
file
7649 if test -x conf$$.
file >/dev
/null
2>&1; then
7650 ac_executable_p
="test -x"
7652 ac_executable_p
="test -f"
7656 # Extract the first word of "valgrind", so it can be a program name with args.
7657 set dummy valgrind
; ac_word
=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_path_valgrind_path+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 case "$valgrind_path" in
7665 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7668 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7669 for ac_dir
in $PATH; do
7671 test -z "$ac_dir" && ac_dir
=.
7672 for ac_exec_ext
in '' $ac_executable_extensions; do
7673 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7674 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7675 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7685 valgrind_path
="$ac_cv_path_valgrind_path"
7686 if test -n "$valgrind_path"; then
7687 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7688 echo "${ECHO_T}$valgrind_path" >&6
7690 echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7694 if test "x$valgrind_path" = "x" \
7695 ||
(test $have_valgrind_h = no \
7696 && test $gcc_cv_header_memcheck_h = no \
7697 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7698 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7699 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7700 { (exit 1); exit 1; }; }
7702 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7703 valgrind_command
="$valgrind_path -q"
7705 cat >>confdefs.h
<<\_ACEOF
7706 #define ENABLE_VALGRIND_CHECKING 1
7709 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7711 cat >>confdefs.h
<<\_ACEOF
7712 #define HAVE_VALGRIND_MEMCHECK_H 1
7716 if test $gcc_cv_header_memcheck_h = yes; then
7718 cat >>confdefs.h
<<\_ACEOF
7719 #define HAVE_MEMCHECK_H 1
7727 # Enable code coverage collection
7728 # Check whether --enable-coverage or --disable-coverage was given.
7729 if test "${enable_coverage+set}" = set; then
7730 enableval
="$enable_coverage"
7731 case "${enableval}" in
7733 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7736 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7739 # a.k.a. --disable-coverage
7743 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7744 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7745 { (exit 1); exit 1; }; }
7753 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7754 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7755 enableval
="$enable_gather_detailed_mem_stats"
7758 enable_gather_detailed_mem_stats
=no
7760 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7762 cat >>confdefs.h
<<\_ACEOF
7763 #define GATHER_STATISTICS 1
7768 # -------------------------------
7769 # Miscenalleous configure options
7770 # -------------------------------
7774 # Check whether --with-stabs or --without-stabs was given.
7775 if test "${with_stabs+set}" = set; then
7776 withval
="$with_stabs"
7782 # Determine whether or not multilibs are enabled.
7783 # Check whether --enable-multilib or --disable-multilib was given.
7784 if test "${enable_multilib+set}" = set; then
7785 enableval
="$enable_multilib"
7792 # Enable __cxa_atexit for C++.
7793 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7794 if test "${enable___cxa_atexit+set}" = set; then
7795 enableval
="$enable___cxa_atexit"
7799 # Enable C extension for decimal float if target supports it.
7800 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7801 if test "${enable_decimal_float+set}" = set; then
7802 enableval
="$enable_decimal_float"
7804 case $enable_decimal_float in
7805 yes | no | bid | dpd
) ;;
7806 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7807 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7808 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7809 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7810 { (exit 1); exit 1; }; } ;;
7816 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7817 enable_decimal_float
=yes
7820 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7821 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7822 enable_decimal_float
=no
7828 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7830 cat >>confdefs.h
<<_ACEOF
7831 #define ENABLE_DECIMAL_FLOAT $dfp
7835 # x86's use BID format instead of DPD
7836 case x
$enable_decimal_float in
7839 i?
86*-*-linux* | x86_64
*-*-linux*)
7840 enable_decimal_float
=bid
7843 enable_decimal_float
=dpd
7848 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7849 # dependency on libdecnumber.
7850 enable_decimal_float
=dpd
7855 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7857 cat >>confdefs.h
<<_ACEOF
7858 #define ENABLE_DECIMAL_BID_FORMAT $bid
7862 # Enable C extension for fixed-point arithmetic.
7863 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7864 if test "${enable_fixed_point+set}" = set; then
7865 enableval
="$enable_fixed_point"
7874 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7875 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7876 enable_fixed_point
=no
7879 enable_fixed_point
=yes
7884 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7885 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7886 enable_fixed_point
=no
7893 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7895 cat >>confdefs.h
<<_ACEOF
7896 #define ENABLE_FIXED_POINT $fixedpoint
7901 # Pass with no value to take the default
7902 # Pass with a value to specify a thread package
7903 # Check whether --enable-threads or --disable-threads was given.
7904 if test "${enable_threads+set}" = set; then
7905 enableval
="$enable_threads"
7911 # Check whether --enable-tls or --disable-tls was given.
7912 if test "${enable_tls+set}" = set; then
7913 enableval
="$enable_tls"
7917 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7918 Valid choices are 'yes' and 'no'." >&5
7919 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7920 Valid choices are 'yes' and 'no'." >&2;}
7921 { (exit 1); exit 1; }; } ;;
7928 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7929 if test "${enable_objc_gc+set}" = set; then
7930 enableval
="$enable_objc_gc"
7931 if test x
$enable_objc_gc = xno
; then
7941 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7942 if test "${with_dwarf2+set}" = set; then
7943 withval
="$with_dwarf2"
7944 dwarf2
="$with_dwarf2"
7949 # Check whether --enable-shared or --disable-shared was given.
7950 if test "${enable_shared+set}" = set; then
7951 enableval
="$enable_shared"
7953 case $enable_shared in
7957 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7958 for pkg
in $enableval; do
7959 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7973 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7974 if test "${with_build_sysroot+set}" = set; then
7975 withval
="$with_build_sysroot"
7980 # Check whether --with-sysroot or --without-sysroot was given.
7981 if test "${with_sysroot+set}" = set; then
7982 withval
="$with_sysroot"
7984 case ${with_sysroot} in
7985 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7986 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7989 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7990 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7992 if test "x$prefix" = xNONE
; then
7993 test_prefix
=/usr
/local
7997 if test "x$exec_prefix" = xNONE
; then
7998 test_exec_prefix
=$test_prefix
8000 test_exec_prefix
=$exec_prefix
8002 case ${TARGET_SYSTEM_ROOT} in
8003 "${test_prefix}"|
"${test_prefix}/"*|\
8004 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8005 '${prefix}'|
'${prefix}/'*|\
8006 '${exec_prefix}'|
'${exec_prefix}/'*)
8007 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8008 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8015 TARGET_SYSTEM_ROOT_DEFINE
=
8016 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8023 # Build with intermodule optimisations
8024 # Check whether --enable-intermodule or --disable-intermodule was given.
8025 if test "${enable_intermodule+set}" = set; then
8026 enableval
="$enable_intermodule"
8027 case ${enable_intermodule} in
8028 yes) onestep
="-onestep";;
8038 # Check whether --with-pkgversion or --without-pkgversion was given.
8039 if test "${with_pkgversion+set}" = set; then
8040 withval
="$with_pkgversion"
8042 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8043 echo "$as_me: error: package version not specified" >&2;}
8044 { (exit 1); exit 1; }; } ;;
8046 *) PKGVERSION
="($withval) " ;;
8056 # Check whether --with-bugurl or --without-bugurl was given.
8057 if test "${with_bugurl+set}" = set; then
8058 withval
="$with_bugurl"
8060 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8061 echo "$as_me: error: bug URL not specified" >&2;}
8062 { (exit 1); exit 1; }; } ;;
8065 *) BUGURL
="$withval"
8069 BUGURL
="http://gcc.gnu.org/bugs.html"
8078 REPORT_BUGS_TO
="<$BUGURL>"
8079 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8086 # Sanity check enable_languages in case someone does not run the toplevel
8087 # configure # script.
8088 # Check whether --enable-languages or --disable-languages was given.
8089 if test "${enable_languages+set}" = set; then
8090 enableval
="$enable_languages"
8091 case ,${enable_languages}, in
8093 # go safe -- we cannot be much sure without the toplevel
8095 # analysis of which target libs are present and usable
8099 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8100 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8101 { (exit 1); exit 1; }; }
8106 enable_languages
=c
,${enable_languages}
8113 # Used by documentation targets
8118 # -------------------------
8119 # Checks for other programs
8120 # -------------------------
8122 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8123 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8124 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8125 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 cat >conftest.
make <<\_ACEOF
8130 @
echo 'ac_maketemp="$(MAKE)"'
8132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8133 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8134 if test -n "$ac_maketemp"; then
8135 eval ac_cv_prog_make_
${ac_make}_set
=yes
8137 eval ac_cv_prog_make_
${ac_make}_set
=no
8141 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8142 echo "$as_me:$LINENO: result: yes" >&5
8143 echo "${ECHO_T}yes" >&6
8146 echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148 SET_MAKE
="MAKE=${MAKE-make}"
8152 # Find some useful tools
8153 for ac_prog
in gawk mawk nawk
awk
8155 # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy
$ac_prog; ac_word
=$2
8157 echo "$as_me:$LINENO: checking for $ac_word" >&5
8158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159 if test "${ac_cv_prog_AWK+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 if test -n "$AWK"; then
8163 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8169 test -z "$as_dir" && as_dir
=.
8170 for ac_exec_ext
in '' $ac_executable_extensions; do
8171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172 ac_cv_prog_AWK
="$ac_prog"
8173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 if test -n "$AWK"; then
8183 echo "$as_me:$LINENO: result: $AWK" >&5
8184 echo "${ECHO_T}$AWK" >&6
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8190 test -n "$AWK" && break
8193 # We need awk to create options.c and options.h.
8194 # Bail out if it's missing.
8196 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8197 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8198 { (exit 1); exit 1; }; } ;;
8201 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8202 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8203 if test "${gcc_cv_prog_LN_S+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 rm -f conftestdata_t
8207 echo >conftestdata_f
8208 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8210 gcc_cv_prog_LN_S
="ln -s"
8212 if ln conftestdata_f conftestdata_t
2>/dev
/null
8216 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8218 gcc_cv_prog_LN_S
="cp -p"
8224 rm -f conftestdata_f conftestdata_t
8227 LN_S
="$gcc_cv_prog_LN_S"
8228 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8229 echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8232 if test "$gcc_cv_prog_LN_S" = "ln"; then
8233 echo "$as_me:$LINENO: result: no, using ln" >&5
8234 echo "${ECHO_T}no, using ln" >&6
8236 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8237 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8241 echo "$as_me:$LINENO: checking whether ln works" >&5
8242 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8243 if test "${acx_cv_prog_LN+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 rm -f conftestdata_t
8247 echo >conftestdata_f
8248 if ln conftestdata_f conftestdata_t
2>/dev
/null
8254 rm -f conftestdata_f conftestdata_t
8257 if test $acx_cv_prog_LN = no
; then
8259 echo "$as_me:$LINENO: result: no, using $LN" >&5
8260 echo "${ECHO_T}no, using $LN" >&6
8262 LN
="$acx_cv_prog_LN"
8263 echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6
8267 if test -n "$ac_tool_prefix"; then
8268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8269 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8270 echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272 if test "${ac_cv_prog_RANLIB+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 if test -n "$RANLIB"; then
8276 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir
=.
8283 for ac_exec_ext
in '' $ac_executable_extensions; do
8284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 RANLIB
=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296 echo "$as_me:$LINENO: result: $RANLIB" >&5
8297 echo "${ECHO_T}$RANLIB" >&6
8299 echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6
8304 if test -z "$ac_cv_prog_RANLIB"; then
8305 ac_ct_RANLIB
=$RANLIB
8306 # Extract the first word of "ranlib", so it can be a program name with args.
8307 set dummy ranlib
; ac_word
=$2
8308 echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 if test -n "$ac_ct_RANLIB"; then
8314 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir
=.
8321 for ac_exec_ext
in '' $ac_executable_extensions; do
8322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8333 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8334 if test -n "$ac_ct_RANLIB"; then
8335 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8336 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8342 RANLIB
=$ac_ct_RANLIB
8344 RANLIB
="$ac_cv_prog_RANLIB"
8349 # By default, the Darwin ranlib will not treat common symbols as
8350 # definitions when building the archive table of contents. Other
8351 # ranlibs do that; pass an option to the Darwin ranlib that makes
8352 # it behave similarly.
8360 # Find a good install program. We prefer a C program (faster),
8361 # so one script is as good as another. But avoid the broken or
8362 # incompatible versions:
8363 # SysV /etc/install, /usr/sbin/install
8364 # SunOS /usr/etc/install
8365 # IRIX /sbin/install
8367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8369 # ./install, which can be erroneously created by make from ./install.sh.
8370 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8371 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8372 if test -z "$INSTALL"; then
8373 if test "${ac_cv_path_install+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8377 for ac_dir
in $PATH; do
8378 # Account for people who put trailing slashes in PATH elements.
8380 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8382 # OSF1 and SCO ODT 3.0 have their own names for install.
8383 for ac_prog
in ginstall scoinst
install; do
8384 if test -f $ac_dir/$ac_prog; then
8385 if test $ac_prog = install &&
8386 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8387 # AIX install. It has an incompatible calling convention.
8388 # OSF/1 installbsd also uses dspmsg, but is usable.
8391 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8402 if test "${ac_cv_path_install+set}" = set; then
8403 INSTALL
="$ac_cv_path_install"
8405 # As a last resort, use the slow shell script. We don't cache a
8406 # path for INSTALL within a source directory, because that will
8407 # break other packages using the cache if that directory is
8408 # removed, or if the path is relative.
8409 INSTALL
="$ac_install_sh"
8412 echo "$as_me:$LINENO: result: $INSTALL" >&5
8413 echo "${ECHO_T}$INSTALL" >&6
8415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8416 # It thinks the first close brace ends the variable substitution.
8417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8419 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8422 # See if cmp has --ignore-initial.
8423 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8424 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8425 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 gcc_cv_prog_cmp_skip
=slowcompare
8431 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8432 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8435 gcc_cv_prog_cmp_skip
=gnucompare
8438 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8439 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8440 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8443 gcc_cv_prog_cmp_skip
=fastcompare
8450 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8451 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8452 make_compare_target
=$gcc_cv_prog_cmp_skip
8456 # See if we have the mktemp command.
8457 # Extract the first word of "mktemp", so it can be a program name with args.
8458 set dummy mktemp
; ac_word
=$2
8459 echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 if test -n "$have_mktemp_command"; then
8465 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir
=.
8472 for ac_exec_ext
in '' $ac_executable_extensions; do
8473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_have_mktemp_command
="yes"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8484 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8485 if test -n "$have_mktemp_command"; then
8486 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8487 echo "${ECHO_T}$have_mktemp_command" >&6
8489 echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6
8494 # See if makeinfo has been installed and is modern enough
8495 # that we can use it.
8497 # Extract the first word of "makeinfo", so it can be a program name with args.
8498 set dummy makeinfo
; ac_word
=$2
8499 echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8501 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 if test -n "$MAKEINFO"; then
8505 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir
=.
8512 for ac_exec_ext
in '' $ac_executable_extensions; do
8513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_MAKEINFO
="makeinfo"
8515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 MAKEINFO
=$ac_cv_prog_MAKEINFO
8524 if test -n "$MAKEINFO"; then
8525 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8526 echo "${ECHO_T}$MAKEINFO" >&6
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8532 if test -n "$MAKEINFO"; then
8533 # Found it, now check the version.
8534 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8535 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8536 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8540 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8542 case $ac_prog_version in
8543 '') gcc_cv_prog_makeinfo_modern
=no
;;
8544 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8545 *) gcc_cv_prog_makeinfo_modern
=no
;;
8549 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8550 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8552 gcc_cv_prog_makeinfo_modern
=no
8554 if test $gcc_cv_prog_makeinfo_modern = no
; then
8555 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8558 if test $gcc_cv_prog_makeinfo_modern = no
; then
8559 { echo "$as_me:$LINENO: WARNING:
8560 *** Makeinfo is missing or too old.
8561 *** Info documentation will not be built." >&5
8562 echo "$as_me: WARNING:
8563 *** Makeinfo is missing or too old.
8564 *** Info documentation will not be built." >&2;}
8571 # Is pod2man recent enough to regenerate manpages?
8572 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8573 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8574 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8575 echo "$as_me:$LINENO: result: yes" >&5
8576 echo "${ECHO_T}yes" >&6
8577 GENERATED_MANPAGES
=generated-manpages
8579 echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6
8585 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy
$ac_prog; ac_word
=$2
8592 echo "$as_me:$LINENO: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8594 if test "${ac_cv_prog_FLEX+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 if test -n "$FLEX"; then
8598 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8604 test -z "$as_dir" && as_dir
=.
8605 for ac_exec_ext
in '' $ac_executable_extensions; do
8606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_prog_FLEX
="$ac_prog"
8608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 FLEX
=$ac_cv_prog_FLEX
8617 if test -n "$FLEX"; then
8618 echo "$as_me:$LINENO: result: $FLEX" >&5
8619 echo "${ECHO_T}$FLEX" >&6
8621 echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8625 test -n "$FLEX" && break
8627 test -n "$FLEX" || FLEX
="$MISSING flex"
8631 for ac_prog
in bison
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy
$ac_prog; ac_word
=$2
8635 echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637 if test "${ac_cv_prog_BISON+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 if test -n "$BISON"; then
8641 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8647 test -z "$as_dir" && as_dir
=.
8648 for ac_exec_ext
in '' $ac_executable_extensions; do
8649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650 ac_cv_prog_BISON
="$ac_prog"
8651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 BISON
=$ac_cv_prog_BISON
8660 if test -n "$BISON"; then
8661 echo "$as_me:$LINENO: result: $BISON" >&5
8662 echo "${ECHO_T}$BISON" >&6
8664 echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8668 test -n "$BISON" && break
8670 test -n "$BISON" || BISON
="$MISSING bison"
8673 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8674 # check for build == host before using them.
8677 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8678 && test -d ..
/binutils
; then
8679 NM
='$(objdir)/../binutils/nm-new'
8681 # Extract the first word of "nm", so it can be a program name with args.
8682 set dummy nm
; ac_word
=$2
8683 echo "$as_me:$LINENO: checking for $ac_word" >&5
8684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685 if test "${ac_cv_prog_NM+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 if test -n "$NM"; then
8689 ac_cv_prog_NM
="$NM" # Let the user override the test.
8691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir
=.
8696 for ac_exec_ext
in '' $ac_executable_extensions; do
8697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8709 if test -n "$NM"; then
8710 echo "$as_me:$LINENO: result: $NM" >&5
8711 echo "${ECHO_T}$NM" >&6
8713 echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6
8720 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8721 && test -d ..
/binutils
; then
8722 AR
='$(objdir)/../binutils/ar'
8724 # Extract the first word of "ar", so it can be a program name with args.
8725 set dummy
ar; ac_word
=$2
8726 echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8728 if test "${ac_cv_prog_AR+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 if test -n "$AR"; then
8732 ac_cv_prog_AR
="$AR" # Let the user override the test.
8734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir
=.
8739 for ac_exec_ext
in '' $ac_executable_extensions; do
8740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8752 if test -n "$AR"; then
8753 echo "$as_me:$LINENO: result: $AR" >&5
8754 echo "${ECHO_T}$AR" >&6
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8763 # --------------------
8764 # Checks for C headers
8765 # --------------------
8767 # Need to reject headers which give warnings, so that the -Werror bootstrap
8768 # works later. *sigh* This needs to come before all header checks.
8770 ac_c_preproc_warn_flag
=yes
8772 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8773 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8774 if test "${ac_cv_header_stdc+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8796 rm -f conftest.
$ac_objext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>conftest.er1
8800 grep -v '^ *+' conftest.er1
>conftest.err
8802 cat conftest.err
>&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try
='test -z "$ac_c_werror_flag"
8806 || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try
='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 ac_cv_header_stdc
=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8823 ac_cv_header_stdc
=no
8825 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8827 if test $ac_cv_header_stdc = yes; then
8828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8829 cat >conftest.
$ac_ext <<_ACEOF
8832 cat confdefs.h
>>conftest.
$ac_ext
8833 cat >>conftest.
$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 $EGREP "memchr" >/dev
/null
2>&1; then
8842 ac_cv_header_stdc
=no
8848 if test $ac_cv_header_stdc = yes; then
8849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8850 cat >conftest.
$ac_ext <<_ACEOF
8853 cat confdefs.h
>>conftest.
$ac_ext
8854 cat >>conftest.
$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860 $EGREP "free" >/dev
/null
2>&1; then
8863 ac_cv_header_stdc
=no
8869 if test $ac_cv_header_stdc = yes; then
8870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8871 if test "$cross_compiling" = yes; then
8874 cat >conftest.
$ac_ext <<_ACEOF
8877 cat confdefs.h
>>conftest.
$ac_ext
8878 cat >>conftest.
$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 #if ((' ' & 0x0FF) == 0x020)
8882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8885 # define ISLOWER(c) \
8886 (('a' <= (c) && (c) <= 'i') \
8887 || ('j' <= (c) && (c) <= 'r') \
8888 || ('s' <= (c) && (c) <= 'z'))
8889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8897 for (i = 0; i < 256; i++)
8898 if (XOR (islower (i), ISLOWER (i))
8899 || toupper (i) != TOUPPER (i))
8904 rm -f conftest
$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8917 echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.
$ac_ext >&5
8922 ac_cv_header_stdc
=no
8924 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8928 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8929 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8930 if test $ac_cv_header_stdc = yes; then
8932 cat >>confdefs.h
<<\_ACEOF
8933 #define STDC_HEADERS 1
8938 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8939 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8940 if test "${ac_cv_header_time+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.
$ac_ext <<_ACEOF
8946 cat confdefs.h
>>conftest.
$ac_ext
8947 cat >>conftest.
$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8950 #include <sys/time.h>
8956 if ((struct tm *) 0)
8962 rm -f conftest.
$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>conftest.er1
8966 grep -v '^ *+' conftest.er1
>conftest.err
8968 cat conftest.err
>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try
='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try
='test -s conftest.$ac_objext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_header_time
=yes
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.
$ac_ext >&5
8989 ac_cv_header_time
=no
8991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8993 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8994 echo "${ECHO_T}$ac_cv_header_time" >&6
8995 if test $ac_cv_header_time = yes; then
8997 cat >>confdefs.h
<<\_ACEOF
8998 #define TIME_WITH_SYS_TIME 1
9003 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9004 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9005 if test "${gcc_cv_header_string+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 cat >conftest.
$ac_ext <<_ACEOF
9011 cat confdefs.h
>>conftest.
$ac_ext
9012 cat >>conftest.
$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9015 #include <strings.h>
9024 rm -f conftest.
$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026 (eval $ac_compile) 2>conftest.er1
9028 grep -v '^ *+' conftest.er1
>conftest.err
9030 cat conftest.err
>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try
='test -z "$ac_c_werror_flag"
9034 || test ! -s conftest.err'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try
='test -s conftest.$ac_objext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 gcc_cv_header_string
=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.
$ac_ext >&5
9051 gcc_cv_header_string
=no
9053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9055 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9056 echo "${ECHO_T}$gcc_cv_header_string" >&6
9057 if test $gcc_cv_header_string = yes; then
9059 cat >>confdefs.h
<<\_ACEOF
9060 #define STRING_WITH_STRINGS 1
9065 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9066 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9067 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 cat >conftest.
$ac_ext <<_ACEOF
9073 cat confdefs.h
>>conftest.
$ac_ext
9074 cat >>conftest.
$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 #include <sys/types.h>
9077 #include <sys/wait.h>
9079 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9082 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9090 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9095 rm -f conftest.
$ac_objext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9097 (eval $ac_compile) 2>conftest.er1
9099 grep -v '^ *+' conftest.er1
>conftest.err
9101 cat conftest.err
>&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try
='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try
='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_header_sys_wait_h
=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.
$ac_ext >&5
9122 ac_cv_header_sys_wait_h
=no
9124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9126 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9127 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9128 if test $ac_cv_header_sys_wait_h = yes; then
9130 cat >>confdefs.h
<<\_ACEOF
9131 #define HAVE_SYS_WAIT_H 1
9158 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9159 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9160 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9161 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9163 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164 echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 cat >conftest.
$ac_ext <<_ACEOF
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include <$ac_header>
9177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev
/null
; then
9185 if test -s conftest.err
; then
9186 ac_cpp_err
=$ac_c_preproc_warn_flag
9187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9194 if test -z "$ac_cpp_err"; then
9195 eval "$as_ac_Header=yes"
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.
$ac_ext >&5
9200 eval "$as_ac_Header=no"
9202 rm -f conftest.err conftest.
$ac_ext
9204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9207 cat >>confdefs.h
<<_ACEOF
9208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9215 # Check for thread headers.
9216 echo "$as_me:$LINENO: checking for thread.h" >&5
9217 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9218 if test "${ac_cv_header_thread_h+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9232 grep -v '^ *+' conftest.er1
>conftest.err
9234 cat conftest.err
>&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } >/dev
/null
; then
9237 if test -s conftest.err
; then
9238 ac_cpp_err
=$ac_c_preproc_warn_flag
9239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9246 if test -z "$ac_cpp_err"; then
9247 ac_cv_header_thread_h
=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 ac_cv_header_thread_h
=no
9254 rm -f conftest.err conftest.
$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9257 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9258 if test $ac_cv_header_thread_h = yes; then
9264 echo "$as_me:$LINENO: checking for pthread.h" >&5
9265 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9266 if test "${ac_cv_header_pthread_h+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 cat >conftest.
$ac_ext <<_ACEOF
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <pthread.h>
9277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9278 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9280 grep -v '^ *+' conftest.er1
>conftest.err
9282 cat conftest.err
>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev
/null
; then
9285 if test -s conftest.err
; then
9286 ac_cpp_err
=$ac_c_preproc_warn_flag
9287 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9294 if test -z "$ac_cpp_err"; then
9295 ac_cv_header_pthread_h
=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.
$ac_ext >&5
9300 ac_cv_header_pthread_h
=no
9302 rm -f conftest.err conftest.
$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9306 if test $ac_cv_header_pthread_h = yes; then
9313 # These tests can't be done till we know if we have limits.h.
9314 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9315 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9316 if test "${gcc_cv_decl_char_bit+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.
$ac_ext <<_ACEOF
9322 cat confdefs.h
>>conftest.
$ac_ext
9323 cat >>conftest.
$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 #ifdef HAVE_LIMITS_H
9332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9333 $EGREP "found" >/dev
/null
2>&1; then
9334 gcc_cv_decl_char_bit
=yes
9336 gcc_cv_decl_char_bit
=no
9342 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9343 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9344 if test $gcc_cv_decl_char_bit = no
; then
9345 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9346 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9347 if test "${gcc_cv_c_nbby+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 while test $i -lt 65; do
9353 cat >conftest.
$ac_ext <<_ACEOF
9356 cat confdefs.h
>>conftest.
$ac_ext
9357 cat >>conftest.
$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9364 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9365 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9371 rm -f conftest.
$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1
>conftest.err
9377 cat conftest.err
>&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try
='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try
='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 gcc_cv_c_nbby
=$i; break
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.
$ac_ext >&5
9399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9405 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9406 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9407 if test $gcc_cv_c_nbby = failed
; then
9408 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9409 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9410 { (exit 1); exit 1; }; }
9413 cat >>confdefs.h
<<_ACEOF
9414 #define CHAR_BIT $gcc_cv_c_nbby
9419 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9421 if test "${ac_cv_c_bigendian+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 # See if sys/param.h defines the BYTE_ORDER macro.
9425 cat >conftest.
$ac_ext <<_ACEOF
9428 cat confdefs.h
>>conftest.
$ac_ext
9429 cat >>conftest.
$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <sys/types.h>
9432 #include <sys/param.h>
9437 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9445 rm -f conftest.
$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1
>conftest.err
9451 cat conftest.err
>&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try
='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try
='test -s conftest.$ac_objext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 # It does; now see whether it defined to BIG_ENDIAN or not.
9468 cat >conftest.
$ac_ext <<_ACEOF
9471 cat confdefs.h
>>conftest.
$ac_ext
9472 cat >>conftest.
$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <sys/types.h>
9475 #include <sys/param.h>
9480 #if BYTE_ORDER != BIG_ENDIAN
9488 rm -f conftest.
$ac_objext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>conftest.er1
9492 grep -v '^ *+' conftest.er1
>conftest.err
9494 cat conftest.err
>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try
='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try
='test -s conftest.$ac_objext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 ac_cv_c_bigendian
=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 ac_cv_c_bigendian
=no
9517 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.
$ac_ext >&5
9522 # It does not; compile a test program.
9523 if test "$cross_compiling" = yes; then
9524 # try to guess the endianness by grepping values into an object file
9525 ac_cv_c_bigendian
=unknown
9526 cat >conftest.
$ac_ext <<_ACEOF
9529 cat confdefs.h
>>conftest.
$ac_ext
9530 cat >>conftest.
$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9533 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9534 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9535 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9536 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9537 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9541 _ascii (); _ebcdic ();
9546 rm -f conftest.
$ac_objext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548 (eval $ac_compile) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1
>conftest.err
9552 cat conftest.err
>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9569 ac_cv_c_bigendian
=yes
9571 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9572 if test "$ac_cv_c_bigendian" = unknown
; then
9573 ac_cv_c_bigendian
=no
9575 # finding both strings is unlikely to happen, but who knows?
9576 ac_cv_c_bigendian
=unknown
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9586 cat >conftest.
$ac_ext <<_ACEOF
9589 cat confdefs.h
>>conftest.
$ac_ext
9590 cat >>conftest.
$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9595 /* Are we little or big endian? From Harbison&Steele. */
9599 char c[sizeof (long)];
9602 exit (u.c[sizeof (long) - 1] == 1);
9605 rm -f conftest
$ac_exeext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607 (eval $ac_link) 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 ac_cv_c_bigendian
=no
9618 echo "$as_me: program exited with status $ac_status" >&5
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.
$ac_ext >&5
9623 ac_cv_c_bigendian
=yes
9625 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9628 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9630 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9631 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9632 case $ac_cv_c_bigendian in
9635 cat >>confdefs.h
<<\_ACEOF
9636 #define WORDS_BIGENDIAN 1
9642 { { echo "$as_me:$LINENO: error: unknown endianness
9643 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9644 echo "$as_me: error: unknown endianness
9645 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9646 { (exit 1); exit 1; }; } ;;
9655 # These libraries may be used by collect2.
9656 # We may need a special search path to get them linked.
9657 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9658 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9659 if test "${gcc_cv_collect2_libs+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 for libs
in '' -lld -lmld \
9664 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9665 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9668 cat >conftest.
$ac_ext <<_ACEOF
9671 cat confdefs.h
>>conftest.
$ac_ext
9672 cat >>conftest.
$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9675 /* Override any gcc2 internal prototype to avoid an error. */
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9690 rm -f conftest.
$ac_objext conftest
$ac_exeext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9692 (eval $ac_link) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1
>conftest.err
9696 cat conftest.err
>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try
='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try
='test -s conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 gcc_cv_collect2_libs
="$libs"; break
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.
$ac_ext >&5
9718 rm -f conftest.err conftest.
$ac_objext \
9719 conftest
$ac_exeext conftest.
$ac_ext
9722 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9724 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9725 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9726 case $gcc_cv_collect2_libs in
9728 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9732 # When building Ada code on Alpha, we need exc_resume which is usually in
9733 # -lexc. So test for it.
9736 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9737 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9738 if test "${ac_cv_search_exc_resume+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_func_search_save_LIBS
=$LIBS
9742 ac_cv_search_exc_resume
=no
9743 cat >conftest.
$ac_ext <<_ACEOF
9746 cat confdefs.h
>>conftest.
$ac_ext
9747 cat >>conftest.
$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9750 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9765 rm -f conftest.
$ac_objext conftest
$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>conftest.er1
9769 grep -v '^ *+' conftest.er1
>conftest.err
9771 cat conftest.err
>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try
='test -z "$ac_c_werror_flag"
9775 || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try
='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_search_exc_resume
="none required"
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.
$ac_ext >&5
9793 rm -f conftest.err conftest.
$ac_objext \
9794 conftest
$ac_exeext conftest.
$ac_ext
9795 if test "$ac_cv_search_exc_resume" = no
; then
9796 for ac_lib
in exc
; do
9797 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9798 cat >conftest.
$ac_ext <<_ACEOF
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9820 rm -f conftest.
$ac_objext conftest
$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9824 grep -v '^ *+' conftest.er1
>conftest.err
9826 cat conftest.err
>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try
='test -z "$ac_c_werror_flag"
9830 || test ! -s conftest.err'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try
='test -s conftest$ac_exeext'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_search_exc_resume
="-l$ac_lib"
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.
$ac_ext >&5
9849 rm -f conftest.err conftest.
$ac_objext \
9850 conftest
$ac_exeext conftest.
$ac_ext
9853 LIBS
=$ac_func_search_save_LIBS
9855 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9856 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9857 if test "$ac_cv_search_exc_resume" != no
; then
9858 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9866 # Some systems put ldexp and frexp in libm instead of libc; assume
9867 # they're both in the same place. jcf-dump needs them.
9870 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9871 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9872 if test "${ac_cv_search_ldexp+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 ac_func_search_save_LIBS
=$LIBS
9876 ac_cv_search_ldexp
=no
9877 cat >conftest.
$ac_ext <<_ACEOF
9880 cat confdefs.h
>>conftest.
$ac_ext
9881 cat >>conftest.
$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9884 /* Override any gcc2 internal prototype to avoid an error. */
9888 /* We use char because int might match the return type of a gcc2
9889 builtin and then its argument prototype would still apply. */
9899 rm -f conftest.
$ac_objext conftest
$ac_exeext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901 (eval $ac_link) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1
>conftest.err
9905 cat conftest.err
>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try
='test -z "$ac_c_werror_flag"
9909 || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try
='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_search_ldexp
="none required"
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.
$ac_ext >&5
9927 rm -f conftest.err conftest.
$ac_objext \
9928 conftest
$ac_exeext conftest.
$ac_ext
9929 if test "$ac_cv_search_ldexp" = no
; then
9931 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9932 cat >conftest.
$ac_ext <<_ACEOF
9935 cat confdefs.h
>>conftest.
$ac_ext
9936 cat >>conftest.
$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9954 rm -f conftest.
$ac_objext conftest
$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1
>conftest.err
9960 cat conftest.err
>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try
='test -z "$ac_c_werror_flag"
9964 || test ! -s conftest.err'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try
='test -s conftest$ac_exeext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_search_ldexp
="-l$ac_lib"
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.
$ac_ext >&5
9983 rm -f conftest.err conftest.
$ac_objext \
9984 conftest
$ac_exeext conftest.
$ac_ext
9987 LIBS
=$ac_func_search_save_LIBS
9989 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9990 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9991 if test "$ac_cv_search_ldexp" != no
; then
9992 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10000 # Use <inttypes.h> only if it exists,
10001 # doesn't clash with <sys/types.h>, and declares intmax_t.
10002 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10003 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10004 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 cat >conftest.
$ac_ext <<_ACEOF
10010 cat confdefs.h
>>conftest.
$ac_ext
10011 cat >>conftest.
$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <sys/types.h>
10014 #include <inttypes.h>
10023 rm -f conftest.
$ac_objext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1
>conftest.err
10029 cat conftest.err
>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try
='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try
='test -s conftest.$ac_objext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 gcc_cv_header_inttypes_h
=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 gcc_cv_header_inttypes_h
=no
10052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10055 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10056 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10057 if test $gcc_cv_header_inttypes_h = yes; then
10059 cat >>confdefs.h
<<\_ACEOF
10060 #define HAVE_INTTYPES_H 1
10102 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10103 sysconf strsignal getrusage nl_langinfo scandir alphasort \
10104 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10105 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
10107 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108 echo "$as_me:$LINENO: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$as_ac_var+set}\" = set"; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.
$ac_ext <<_ACEOF
10116 cat confdefs.h
>>conftest.
$ac_ext
10117 cat >>conftest.
$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10121 #define $ac_func innocuous_$ac_func
10123 /* System header to define __stub macros and hopefully few prototypes,
10124 which can conflict with char $ac_func (); below.
10125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126 <limits.h> exists even on freestanding compilers. */
10129 # include <limits.h>
10131 # include <assert.h>
10136 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10144 /* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 char (*f) () = $ac_func;
10159 return f != $ac_func;
10164 rm -f conftest.
$ac_objext conftest
$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
10168 grep -v '^ *+' conftest.er1
>conftest.err
10170 cat conftest.err
>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try
='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try
='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 eval "$as_ac_var=yes"
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.
$ac_ext >&5
10191 eval "$as_ac_var=no"
10193 rm -f conftest.err conftest.
$ac_objext \
10194 conftest
$ac_exeext conftest.
$ac_ext
10196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10198 if test `eval echo '${'$as_ac_var'}'` = yes; then
10199 cat >>confdefs.h
<<_ACEOF
10200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207 if test x
$ac_cv_func_mbstowcs = xyes
; then
10208 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10209 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10210 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 if test "$cross_compiling" = yes; then
10214 gcc_cv_func_mbstowcs_works
=yes
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stdlib.h>
10225 mbstowcs(0, "", 0);
10229 rm -f conftest
$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 gcc_cv_func_mbstowcs_works
=yes
10242 echo "$as_me: program exited with status $ac_status" >&5
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.
$ac_ext >&5
10246 ( exit $ac_status )
10247 gcc_cv_func_mbstowcs_works
=no
10249 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10252 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10253 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10254 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10256 cat >>confdefs.h
<<\_ACEOF
10257 #define HAVE_WORKING_MBSTOWCS 1
10263 echo "$as_me:$LINENO: checking for ssize_t" >&5
10264 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10265 if test "${ac_cv_type_ssize_t+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.
$ac_ext <<_ACEOF
10271 cat confdefs.h
>>conftest.
$ac_ext
10272 cat >>conftest.
$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 $ac_includes_default
10280 if (sizeof (ssize_t))
10286 rm -f conftest.
$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288 (eval $ac_compile) 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try
='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try
='test -s conftest.$ac_objext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_type_ssize_t
=yes
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.
$ac_ext >&5
10313 ac_cv_type_ssize_t
=no
10315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10317 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10318 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10319 if test $ac_cv_type_ssize_t = yes; then
10323 cat >>confdefs.h
<<_ACEOF
10324 #define ssize_t int
10329 echo "$as_me:$LINENO: checking for caddr_t" >&5
10330 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10331 if test "${ac_cv_type_caddr_t+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.
$ac_ext <<_ACEOF
10337 cat confdefs.h
>>conftest.
$ac_ext
10338 cat >>conftest.
$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10346 if (sizeof (caddr_t))
10352 rm -f conftest.
$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10356 grep -v '^ *+' conftest.er1
>conftest.err
10358 cat conftest.err
>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try
='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try
='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_type_caddr_t
=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.
$ac_ext >&5
10379 ac_cv_type_caddr_t
=no
10381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10384 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10385 if test $ac_cv_type_caddr_t = yes; then
10389 cat >>confdefs.h
<<_ACEOF
10390 #define caddr_t char *
10396 # Try to determine the array type of the second argument of getgroups
10397 # for the target system (int or gid_t).
10398 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10399 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10400 if test "${ac_cv_type_uid_t+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 cat >conftest.
$ac_ext <<_ACEOF
10406 cat confdefs.h
>>conftest.
$ac_ext
10407 cat >>conftest.
$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 #include <sys/types.h>
10412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10413 $EGREP "uid_t" >/dev
/null
2>&1; then
10414 ac_cv_type_uid_t
=yes
10416 ac_cv_type_uid_t
=no
10421 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10422 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10423 if test $ac_cv_type_uid_t = no
; then
10425 cat >>confdefs.h
<<\_ACEOF
10430 cat >>confdefs.h
<<\_ACEOF
10436 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10437 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10438 if test "${ac_cv_type_getgroups+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 if test "$cross_compiling" = yes; then
10442 ac_cv_type_getgroups
=cross
10444 cat >conftest.
$ac_ext <<_ACEOF
10447 cat confdefs.h
>>conftest.
$ac_ext
10448 cat >>conftest.
$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 /* Thanks to Mike Rendell for this test. */
10451 #include <sys/types.h>
10454 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10459 gid_t gidset[NGID];
10461 union { gid_t gval; long lval; } val;
10464 for (i = 0; i < NGID; i++)
10465 gidset[i] = val.gval;
10466 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10468 /* Exit non-zero if getgroups seems to require an array of ints. This
10469 happens when gid_t is short but getgroups modifies an array of ints. */
10470 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10473 rm -f conftest
$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_type_getgroups
=gid_t
10486 echo "$as_me: program exited with status $ac_status" >&5
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.
$ac_ext >&5
10490 ( exit $ac_status )
10491 ac_cv_type_getgroups
=int
10493 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10495 if test $ac_cv_type_getgroups = cross
; then
10496 cat >conftest.
$ac_ext <<_ACEOF
10499 cat confdefs.h
>>conftest.
$ac_ext
10500 cat >>conftest.
$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <unistd.h>
10505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10506 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
10507 ac_cv_type_getgroups
=gid_t
10509 ac_cv_type_getgroups
=int
10515 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10516 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10518 cat >>confdefs.h
<<_ACEOF
10519 #define GETGROUPS_T $ac_cv_type_getgroups
10523 if test "${target}" = "${build}"; then
10524 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
10526 case "${target}" in
10527 # This condition may need some tweaking. It should include all
10528 # targets where the array type of the second argument of getgroups
10529 # is int and the type of gid_t is not equivalent to int.
10530 *-*-sunos* |
*-*-ultrix*)
10531 TARGET_GETGROUPS_T
=int
10534 TARGET_GETGROUPS_T
=gid_t
10541 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10542 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10543 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 cat >conftest.
$ac_ext <<_ACEOF
10549 cat confdefs.h
>>conftest.
$ac_ext
10550 cat >>conftest.
$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <sys/mman.h>
10554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10555 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10557 grep -v '^ *+' conftest.er1
>conftest.err
10559 cat conftest.err
>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } >/dev
/null
; then
10562 if test -s conftest.err
; then
10563 ac_cpp_err
=$ac_c_preproc_warn_flag
10564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10571 if test -z "$ac_cpp_err"; then
10572 ac_cv_header_sys_mman_h
=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.
$ac_ext >&5
10577 ac_cv_header_sys_mman_h
=no
10579 rm -f conftest.err conftest.
$ac_ext
10581 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10582 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10583 if test $ac_cv_header_sys_mman_h = yes; then
10584 gcc_header_sys_mman_h
=yes
10586 gcc_header_sys_mman_h
=no
10589 echo "$as_me:$LINENO: checking for mmap" >&5
10590 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10591 if test "${ac_cv_func_mmap+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 cat >conftest.
$ac_ext <<_ACEOF
10597 cat confdefs.h
>>conftest.
$ac_ext
10598 cat >>conftest.
$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10602 #define mmap innocuous_mmap
10604 /* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char mmap (); below.
10606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10607 <limits.h> exists even on freestanding compilers. */
10610 # include <limits.h>
10612 # include <assert.h>
10617 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10625 /* The GNU C library defines this for functions which it implements
10626 to always fail with ENOSYS. Some functions are actually named
10627 something starting with __ and the normal name is an alias. */
10628 #if defined (__stub_mmap) || defined (__stub___mmap)
10631 char (*f) () = mmap;
10645 rm -f conftest.
$ac_objext conftest
$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>conftest.er1
10649 grep -v '^ *+' conftest.er1
>conftest.err
10651 cat conftest.err
>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try
='test -z "$ac_c_werror_flag"
10655 || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try
='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_func_mmap
=yes
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.
$ac_ext >&5
10674 rm -f conftest.err conftest.
$ac_objext \
10675 conftest
$ac_exeext conftest.
$ac_ext
10677 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10678 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10679 if test $ac_cv_func_mmap = yes; then
10685 if test "$gcc_header_sys_mman_h" != yes \
10686 ||
test "$gcc_func_mmap" != yes; then
10687 gcc_cv_func_mmap_file
=no
10688 gcc_cv_func_mmap_dev_zero
=no
10689 gcc_cv_func_mmap_anon
=no
10691 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10692 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10693 if test "${gcc_cv_func_mmap_file+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 # Add a system to this blacklist if
10697 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10698 # memory area containing the same data that you'd get if you applied
10699 # read() to the same fd. The only system known to have a problem here
10700 # is VMS, where text files have record structure.
10703 gcc_cv_func_mmap_file
=no
;;
10705 gcc_cv_func_mmap_file
=yes;;
10708 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10709 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10710 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10711 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10712 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 # Add a system to this blacklist if it has mmap() but /dev/zero
10716 # does not exist, or if mmapping /dev/zero does not give anonymous
10717 # zeroed pages with both the following properties:
10718 # 1. If you map N consecutive pages in with one call, and then
10719 # unmap any subset of those pages, the pages that were not
10720 # explicitly unmapped remain accessible.
10721 # 2. If you map two adjacent blocks of memory and then unmap them
10722 # both at once, they must both go away.
10723 # Systems known to be in this category are Windows (all variants),
10726 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10727 gcc_cv_func_mmap_dev_zero
=no
;;
10729 gcc_cv_func_mmap_dev_zero
=yes;;
10732 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10733 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10735 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10736 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10737 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10738 if test "${gcc_cv_decl_map_anon+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 #include <sys/types.h>
10748 #include <sys/mman.h>
10749 #include <unistd.h>
10751 #ifndef MAP_ANONYMOUS
10752 #define MAP_ANONYMOUS MAP_ANON
10758 int n = MAP_ANONYMOUS;
10763 rm -f conftest.
$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try
='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try
='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 gcc_cv_decl_map_anon
=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 gcc_cv_decl_map_anon
=no
10792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10795 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10797 if test $gcc_cv_decl_map_anon = no
; then
10798 gcc_cv_func_mmap_anon
=no
10800 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10801 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10802 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10806 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10807 # doesn't give anonymous zeroed pages with the same properties listed
10808 # above for use of /dev/zero.
10809 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10811 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10812 gcc_cv_func_mmap_anon
=no
;;
10814 gcc_cv_func_mmap_anon
=yes;;
10817 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10818 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10822 if test $gcc_cv_func_mmap_file = yes; then
10824 cat >>confdefs.h
<<\_ACEOF
10825 #define HAVE_MMAP_FILE 1
10829 if test $gcc_cv_func_mmap_dev_zero = yes; then
10831 cat >>confdefs.h
<<\_ACEOF
10832 #define HAVE_MMAP_DEV_ZERO 1
10836 if test $gcc_cv_func_mmap_anon = yes; then
10838 cat >>confdefs.h
<<\_ACEOF
10839 #define HAVE_MMAP_ANON 1
10847 # Under VMS, vfork works very differently than on Unix. The standard test
10848 # won't work, and it isn't easily adaptable. It makes more sense to
10850 ac_cv_func_vfork_works
=yes
10853 echo "$as_me:$LINENO: checking for pid_t" >&5
10854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10855 if test "${ac_cv_type_pid_t+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.
$ac_ext <<_ACEOF
10861 cat confdefs.h
>>conftest.
$ac_ext
10862 cat >>conftest.
$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 $ac_includes_default
10870 if (sizeof (pid_t))
10876 rm -f conftest.
$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
10880 grep -v '^ *+' conftest.er1
>conftest.err
10882 cat conftest.err
>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try
='test -z "$ac_c_werror_flag"
10886 || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try
='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 ac_cv_type_pid_t
=yes
10900 echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.
$ac_ext >&5
10903 ac_cv_type_pid_t
=no
10905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10907 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10908 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10909 if test $ac_cv_type_pid_t = yes; then
10913 cat >>confdefs.h
<<_ACEOF
10921 for ac_header
in unistd.h vfork.h
10923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_header" >&5
10925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.
$ac_ext <<_ACEOF
10932 cat confdefs.h
>>conftest.
$ac_ext
10933 cat >>conftest.
$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #include <$ac_header>
10937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10940 grep -v '^ *+' conftest.er1
>conftest.err
10942 cat conftest.err
>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } >/dev
/null
; then
10945 if test -s conftest.err
; then
10946 ac_cpp_err
=$ac_c_preproc_warn_flag
10947 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10954 if test -z "$ac_cpp_err"; then
10955 eval "$as_ac_Header=yes"
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.
$ac_ext >&5
10960 eval "$as_ac_Header=no"
10962 rm -f conftest.err conftest.
$ac_ext
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10967 cat >>confdefs.h
<<_ACEOF
10968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10976 for ac_func
in fork vfork
10978 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10979 echo "$as_me:$LINENO: checking for $ac_func" >&5
10980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_var+set}\" = set"; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 cat >conftest.
$ac_ext <<_ACEOF
10987 cat confdefs.h
>>conftest.
$ac_ext
10988 cat >>conftest.
$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10992 #define $ac_func innocuous_$ac_func
10994 /* System header to define __stub macros and hopefully few prototypes,
10995 which can conflict with char $ac_func (); below.
10996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10997 <limits.h> exists even on freestanding compilers. */
11000 # include <limits.h>
11002 # include <assert.h>
11007 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11015 /* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11021 char (*f) () = $ac_func;
11030 return f != $ac_func;
11035 rm -f conftest.
$ac_objext conftest
$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>conftest.er1
11039 grep -v '^ *+' conftest.er1
>conftest.err
11041 cat conftest.err
>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try
='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try
='test -s conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 eval "$as_ac_var=yes"
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.
$ac_ext >&5
11062 eval "$as_ac_var=no"
11064 rm -f conftest.err conftest.
$ac_objext \
11065 conftest
$ac_exeext conftest.
$ac_ext
11067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
11070 cat >>confdefs.h
<<_ACEOF
11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11077 if test "x$ac_cv_func_fork" = xyes
; then
11078 echo "$as_me:$LINENO: checking for working fork" >&5
11079 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11080 if test "${ac_cv_func_fork_works+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 if test "$cross_compiling" = yes; then
11084 ac_cv_func_fork_works
=cross
11086 cat >conftest.
$ac_ext <<_ACEOF
11087 /* By Ruediger Kuhlmann. */
11088 #include <sys/types.h>
11090 # include <unistd.h>
11092 /* Some systems only have a dummy stub for fork() */
11100 rm -f conftest
$ac_exeext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_func_fork_works
=yes
11113 echo "$as_me: program exited with status $ac_status" >&5
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.
$ac_ext >&5
11117 ( exit $ac_status )
11118 ac_cv_func_fork_works
=no
11120 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11123 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11124 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11127 ac_cv_func_fork_works
=$ac_cv_func_fork
11129 if test "x$ac_cv_func_fork_works" = xcross
; then
11131 *-*-amigaos* |
*-*-msdosdjgpp*)
11132 # Override, as these systems have only a dummy fork() stub
11133 ac_cv_func_fork_works
=no
11136 ac_cv_func_fork_works
=yes
11139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11140 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11142 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11143 if test "x$ac_cv_func_vfork" = xyes
; then
11144 echo "$as_me:$LINENO: checking for working vfork" >&5
11145 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11146 if test "${ac_cv_func_vfork_works+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 if test "$cross_compiling" = yes; then
11150 ac_cv_func_vfork_works
=cross
11152 cat >conftest.
$ac_ext <<_ACEOF
11155 cat confdefs.h
>>conftest.
$ac_ext
11156 cat >>conftest.
$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 /* Thanks to Paul Eggert for this test. */
11160 #include <stdlib.h>
11161 #include <sys/types.h>
11162 #include <sys/stat.h>
11163 #include <sys/wait.h>
11165 # include <unistd.h>
11168 # include <vfork.h>
11170 /* On some sparc systems, changes by the child to local and incoming
11171 argument registers are propagated back to the parent. The compiler
11172 is told about this with #include <vfork.h>, but some compilers
11173 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11174 static variable whose address is put into a register that is
11175 clobbered by the vfork. */
11178 sparc_address_test (int arg)
11180 sparc_address_test (arg) int arg;
11183 static pid_t child;
11201 pid_t parent = getpid ();
11204 sparc_address_test (0);
11209 /* Here is another test for sparc vfork register problems. This
11210 test uses lots of local variables, at least as many local
11211 variables as main has allocated so far including compiler
11212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11214 reuse the register of parent for one of the local variables,
11215 since it will think that parent can't possibly be used any more
11216 in this routine. Assigning to the local variable will thus
11217 munge parent in the parent process. */
11219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11221 /* Convince the compiler that p..p7 are live; otherwise, it might
11222 use the same hardware register for all 8 local variables. */
11223 if (p != p1 || p != p2 || p != p3 || p != p4
11224 || p != p5 || p != p6 || p != p7)
11227 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11228 from child file descriptors. If the child closes a descriptor
11229 before it execs or exits, this munges the parent's descriptor
11230 as well. Test for this by closing stdout in the child. */
11231 _exit(close(fileno(stdout)) != 0);
11236 while (wait(&status) != child)
11239 /* Was there some problem with vforking? */
11242 /* Did the child fail? (This shouldn't happen.) */
11245 /* Did the vfork/compiler bug occur? */
11246 || parent != getpid()
11248 /* Did the file descriptor bug occur? */
11249 || fstat(fileno(stdout), &st) != 0
11254 rm -f conftest
$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_func_vfork_works
=yes
11267 echo "$as_me: program exited with status $ac_status" >&5
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 ( exit $ac_status )
11272 ac_cv_func_vfork_works
=no
11274 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11277 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11278 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11281 if test "x$ac_cv_func_fork_works" = xcross
; then
11282 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11283 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11284 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11287 if test "x$ac_cv_func_vfork_works" = xyes
; then
11289 cat >>confdefs.h
<<\_ACEOF
11290 #define HAVE_WORKING_VFORK 1
11295 cat >>confdefs.h
<<\_ACEOF
11300 if test "x$ac_cv_func_fork_works" = xyes
; then
11302 cat >>confdefs.h
<<\_ACEOF
11303 #define HAVE_WORKING_FORK 1
11310 if test "X$prefix" = "XNONE"; then
11311 acl_final_prefix
="$ac_default_prefix"
11313 acl_final_prefix
="$prefix"
11315 if test "X$exec_prefix" = "XNONE"; then
11316 acl_final_exec_prefix
='${prefix}'
11318 acl_final_exec_prefix
="$exec_prefix"
11320 acl_save_prefix
="$prefix"
11321 prefix
="$acl_final_prefix"
11322 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11323 prefix
="$acl_save_prefix"
11326 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11327 if test "${with_gnu_ld+set}" = set; then
11328 withval
="$with_gnu_ld"
11329 test "$withval" = no || with_gnu_ld
=yes
11333 # Prepare PATH_SEPARATOR.
11334 # The user is always right.
11335 if test "${PATH_SEPARATOR+set}" != set; then
11336 echo "#! /bin/sh" >conf$$.sh
11337 echo "exit 0" >>conf$$.sh
11339 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11347 if test "$GCC" = yes; then
11348 # Check if gcc -print-prog-name=ld gives a path.
11349 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11350 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11353 # gcc leaves a trailing carriage return which upsets mingw
11354 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11356 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11359 # Accept absolute paths.
11360 [\\/]* |
[A-Za-z
]:[\\/]*)
11361 re_direlt
='/[^/][^/]*/\.\./'
11362 # Canonicalize the path of ld
11363 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11364 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11365 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11367 test -z "$LD" && LD
="$ac_prog"
11370 # If it fails, then pretend we aren't using GCC.
11374 # If it is relative, then search for the first ld in PATH.
11375 with_gnu_ld
=unknown
11378 elif test "$with_gnu_ld" = yes; then
11379 echo "$as_me:$LINENO: checking for GNU ld" >&5
11380 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11382 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11383 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11385 if test "${acl_cv_path_LD+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 if test -z "$LD"; then
11389 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11390 for ac_dir
in $PATH; do
11391 test -z "$ac_dir" && ac_dir
=.
11392 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11393 acl_cv_path_LD
="$ac_dir/$ac_prog"
11394 # Check to see if the program is GNU ld. I'd rather use --version,
11395 # but apparently some GNU ld's only accept -v.
11396 # Break only if it was the GNU/non-GNU ld that we prefer.
11397 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11398 test "$with_gnu_ld" != no
&& break
11400 test "$with_gnu_ld" != yes && break
11406 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11410 LD
="$acl_cv_path_LD"
11411 if test -n "$LD"; then
11412 echo "$as_me:$LINENO: result: $LD" >&5
11413 echo "${ECHO_T}$LD" >&6
11415 echo "$as_me:$LINENO: result: no" >&5
11416 echo "${ECHO_T}no" >&6
11418 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11419 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11420 { (exit 1); exit 1; }; }
11421 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11422 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11423 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11427 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11428 acl_cv_prog_gnu_ld
=yes
11430 acl_cv_prog_gnu_ld
=no
11433 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11434 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11435 with_gnu_ld
=$acl_cv_prog_gnu_ld
11439 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11440 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11441 if test "${acl_cv_rpath+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11446 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11448 rm -f .
/conftest.sh
11452 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11453 echo "${ECHO_T}$acl_cv_rpath" >&6
11455 libext
="$acl_cv_libext"
11456 shlibext
="$acl_cv_shlibext"
11457 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11458 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11459 hardcode_direct
="$acl_cv_hardcode_direct"
11460 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11461 # Check whether --enable-rpath or --disable-rpath was given.
11462 if test "${enable_rpath+set}" = set; then
11463 enableval
="$enable_rpath"
11477 acl_save_prefix
="$prefix"
11478 prefix
="$acl_final_prefix"
11479 acl_save_exec_prefix
="$exec_prefix"
11480 exec_prefix
="$acl_final_exec_prefix"
11482 eval additional_includedir
=\"$includedir\"
11483 eval additional_libdir
=\"$libdir\"
11485 exec_prefix
="$acl_save_exec_prefix"
11486 prefix
="$acl_save_prefix"
11489 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11490 if test "${with_libiconv_prefix+set}" = set; then
11491 withval
="$with_libiconv_prefix"
11493 if test "X$withval" = "Xno"; then
11496 if test "X$withval" = "X"; then
11498 acl_save_prefix
="$prefix"
11499 prefix
="$acl_final_prefix"
11500 acl_save_exec_prefix
="$exec_prefix"
11501 exec_prefix
="$acl_final_exec_prefix"
11503 eval additional_includedir
=\"$includedir\"
11504 eval additional_libdir
=\"$libdir\"
11506 exec_prefix
="$acl_save_exec_prefix"
11507 prefix
="$acl_save_prefix"
11510 additional_includedir
="$withval/include"
11511 additional_libdir
="$withval/lib"
11521 names_already_handled
=
11522 names_next_round
='iconv '
11523 while test -n "$names_next_round"; do
11524 names_this_round
="$names_next_round"
11526 for name
in $names_this_round; do
11528 for n
in $names_already_handled; do
11529 if test "$n" = "$name"; then
11530 already_handled
=yes
11534 if test -z "$already_handled"; then
11535 names_already_handled
="$names_already_handled $name"
11536 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11537 eval value
=\"\
$HAVE_LIB$uppername\"
11538 if test -n "$value"; then
11539 if test "$value" = yes; then
11540 eval value
=\"\
$LIB$uppername\"
11541 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11542 eval value
=\"\
$LTLIB$uppername\"
11543 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11552 if test $use_additional = yes; then
11553 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11554 found_dir
="$additional_libdir"
11555 found_so
="$additional_libdir/lib$name.$shlibext"
11556 if test -f "$additional_libdir/lib$name.la"; then
11557 found_la
="$additional_libdir/lib$name.la"
11560 if test -f "$additional_libdir/lib$name.$libext"; then
11561 found_dir
="$additional_libdir"
11562 found_a
="$additional_libdir/lib$name.$libext"
11563 if test -f "$additional_libdir/lib$name.la"; then
11564 found_la
="$additional_libdir/lib$name.la"
11569 if test "X$found_dir" = "X"; then
11570 for x
in $LDFLAGS $LTLIBICONV; do
11572 acl_save_prefix
="$prefix"
11573 prefix
="$acl_final_prefix"
11574 acl_save_exec_prefix
="$exec_prefix"
11575 exec_prefix
="$acl_final_exec_prefix"
11577 exec_prefix
="$acl_save_exec_prefix"
11578 prefix
="$acl_save_prefix"
11582 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11583 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11585 found_so
="$dir/lib$name.$shlibext"
11586 if test -f "$dir/lib$name.la"; then
11587 found_la
="$dir/lib$name.la"
11590 if test -f "$dir/lib$name.$libext"; then
11592 found_a
="$dir/lib$name.$libext"
11593 if test -f "$dir/lib$name.la"; then
11594 found_la
="$dir/lib$name.la"
11600 if test "X$found_dir" != "X"; then
11605 if test "X$found_dir" != "X"; then
11606 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11607 if test "X$found_so" != "X"; then
11608 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11609 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11612 for x
in $ltrpathdirs; do
11613 if test "X$x" = "X$found_dir"; then
11618 if test -z "$haveit"; then
11619 ltrpathdirs
="$ltrpathdirs $found_dir"
11621 if test "$hardcode_direct" = yes; then
11622 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11624 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11625 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11627 for x
in $rpathdirs; do
11628 if test "X$x" = "X$found_dir"; then
11633 if test -z "$haveit"; then
11634 rpathdirs
="$rpathdirs $found_dir"
11638 for x
in $LDFLAGS $LIBICONV; do
11640 acl_save_prefix
="$prefix"
11641 prefix
="$acl_final_prefix"
11642 acl_save_exec_prefix
="$exec_prefix"
11643 exec_prefix
="$acl_final_exec_prefix"
11645 exec_prefix
="$acl_save_exec_prefix"
11646 prefix
="$acl_save_prefix"
11648 if test "X$x" = "X-L$found_dir"; then
11653 if test -z "$haveit"; then
11654 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11656 if test "$hardcode_minus_L" != no
; then
11657 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11659 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11665 if test "X$found_a" != "X"; then
11666 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11668 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11671 additional_includedir
=
11672 case "$found_dir" in
11674 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11675 additional_includedir
="$basedir/include"
11678 if test "X$additional_includedir" != "X"; then
11679 if test "X$additional_includedir" != "X/usr/include"; then
11681 if test "X$additional_includedir" = "X/usr/local/include"; then
11682 if test -n "$GCC"; then
11684 linux
*) haveit
=yes;;
11688 if test -z "$haveit"; then
11689 for x
in $CPPFLAGS $INCICONV; do
11691 acl_save_prefix
="$prefix"
11692 prefix
="$acl_final_prefix"
11693 acl_save_exec_prefix
="$exec_prefix"
11694 exec_prefix
="$acl_final_exec_prefix"
11696 exec_prefix
="$acl_save_exec_prefix"
11697 prefix
="$acl_save_prefix"
11699 if test "X$x" = "X-I$additional_includedir"; then
11704 if test -z "$haveit"; then
11705 if test -d "$additional_includedir"; then
11706 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11712 if test -n "$found_la"; then
11713 save_libdir
="$libdir"
11714 case "$found_la" in
11715 */* |
*\\*) .
"$found_la" ;;
11716 *) .
"./$found_la" ;;
11718 libdir
="$save_libdir"
11719 for dep
in $dependency_libs; do
11722 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11723 if test "X$additional_libdir" != "X/usr/lib"; then
11725 if test "X$additional_libdir" = "X/usr/local/lib"; then
11726 if test -n "$GCC"; then
11728 linux
*) haveit
=yes;;
11732 if test -z "$haveit"; then
11734 for x
in $LDFLAGS $LIBICONV; do
11736 acl_save_prefix
="$prefix"
11737 prefix
="$acl_final_prefix"
11738 acl_save_exec_prefix
="$exec_prefix"
11739 exec_prefix
="$acl_final_exec_prefix"
11741 exec_prefix
="$acl_save_exec_prefix"
11742 prefix
="$acl_save_prefix"
11744 if test "X$x" = "X-L$additional_libdir"; then
11749 if test -z "$haveit"; then
11750 if test -d "$additional_libdir"; then
11751 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11755 for x
in $LDFLAGS $LTLIBICONV; do
11757 acl_save_prefix
="$prefix"
11758 prefix
="$acl_final_prefix"
11759 acl_save_exec_prefix
="$exec_prefix"
11760 exec_prefix
="$acl_final_exec_prefix"
11762 exec_prefix
="$acl_save_exec_prefix"
11763 prefix
="$acl_save_prefix"
11765 if test "X$x" = "X-L$additional_libdir"; then
11770 if test -z "$haveit"; then
11771 if test -d "$additional_libdir"; then
11772 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11779 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11780 if test "$enable_rpath" != no
; then
11782 for x
in $rpathdirs; do
11783 if test "X$x" = "X$dir"; then
11788 if test -z "$haveit"; then
11789 rpathdirs
="$rpathdirs $dir"
11792 for x
in $ltrpathdirs; do
11793 if test "X$x" = "X$dir"; then
11798 if test -z "$haveit"; then
11799 ltrpathdirs
="$ltrpathdirs $dir"
11804 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11807 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11810 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11811 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11817 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11818 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11824 if test "X$rpathdirs" != "X"; then
11825 if test -n "$hardcode_libdir_separator"; then
11827 for found_dir
in $rpathdirs; do
11828 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11830 acl_save_libdir
="$libdir"
11832 eval flag
=\"$hardcode_libdir_flag_spec\"
11833 libdir
="$acl_save_libdir"
11834 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11836 for found_dir
in $rpathdirs; do
11837 acl_save_libdir
="$libdir"
11838 libdir
="$found_dir"
11839 eval flag
=\"$hardcode_libdir_flag_spec\"
11840 libdir
="$acl_save_libdir"
11841 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11845 if test "X$ltrpathdirs" != "X"; then
11846 for found_dir
in $ltrpathdirs; do
11847 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11857 am_save_CPPFLAGS
="$CPPFLAGS"
11859 for element
in $INCICONV; do
11861 for x
in $CPPFLAGS; do
11863 acl_save_prefix
="$prefix"
11864 prefix
="$acl_final_prefix"
11865 acl_save_exec_prefix
="$exec_prefix"
11866 exec_prefix
="$acl_final_exec_prefix"
11868 exec_prefix
="$acl_save_exec_prefix"
11869 prefix
="$acl_save_prefix"
11871 if test "X$x" = "X$element"; then
11876 if test -z "$haveit"; then
11877 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11882 echo "$as_me:$LINENO: checking for iconv" >&5
11883 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11884 if test "${am_cv_func_iconv+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 am_cv_func_iconv
="no, consider installing GNU libiconv"
11890 cat >conftest.
$ac_ext <<_ACEOF
11893 cat confdefs.h
>>conftest.
$ac_ext
11894 cat >>conftest.
$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 #include <stdlib.h>
11901 iconv_t cd = iconv_open("","");
11902 iconv(cd,NULL,NULL,NULL,NULL);
11908 rm -f conftest.
$ac_objext conftest
$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1
>conftest.err
11914 cat conftest.err
>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try
='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try
='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 am_cv_func_iconv
=yes
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.
$ac_ext >&5
11936 rm -f conftest.err conftest.
$ac_objext \
11937 conftest
$ac_exeext conftest.
$ac_ext
11938 if test "$am_cv_func_iconv" != yes; then
11939 am_save_LIBS
="$LIBS"
11940 LIBS
="$LIBS $LIBICONV"
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <stdlib.h>
11952 iconv_t cd = iconv_open("","");
11953 iconv(cd,NULL,NULL,NULL,NULL);
11959 rm -f conftest.
$ac_objext conftest
$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
11963 grep -v '^ *+' conftest.er1
>conftest.err
11965 cat conftest.err
>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try
='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try
='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 am_cv_lib_iconv
=yes
11982 am_cv_func_iconv
=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.
$ac_ext >&5
11988 rm -f conftest.err conftest.
$ac_objext \
11989 conftest
$ac_exeext conftest.
$ac_ext
11990 LIBS
="$am_save_LIBS"
11994 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11995 echo "${ECHO_T}$am_cv_func_iconv" >&6
11996 if test "$am_cv_func_iconv" = yes; then
11998 cat >>confdefs.h
<<\_ACEOF
11999 #define HAVE_ICONV 1
12003 if test "$am_cv_lib_iconv" = yes; then
12004 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12005 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12006 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12007 echo "${ECHO_T}$LIBICONV" >&6
12009 CPPFLAGS
="$am_save_CPPFLAGS"
12016 if test "$am_cv_func_iconv" = yes; then
12017 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12018 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12019 if test "${am_cv_proto_iconv+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >conftest.
$ac_ext <<_ACEOF
12026 cat confdefs.h
>>conftest.
$ac_ext
12027 cat >>conftest.
$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 #include <stdlib.h>
12036 #if defined(__STDC__) || defined(__cplusplus)
12037 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12050 rm -f conftest.
$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>conftest.er1
12054 grep -v '^ *+' conftest.er1
>conftest.err
12056 cat conftest.err
>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } &&
12059 { ac_try
='test -z "$ac_c_werror_flag"
12060 || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try
='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 am_cv_proto_iconv_arg1
=""
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.
$ac_ext >&5
12077 am_cv_proto_iconv_arg1
="const"
12079 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12080 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);"
12083 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12084 echo "$as_me:$LINENO: result: ${ac_t:-
12085 }$am_cv_proto_iconv" >&5
12086 echo "${ECHO_T}${ac_t:-
12087 }$am_cv_proto_iconv" >&6
12089 cat >>confdefs.h
<<_ACEOF
12090 #define ICONV_CONST $am_cv_proto_iconv_arg1
12095 # Until we have in-tree GNU iconv:
12100 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12101 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12102 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 cat >conftest.
$ac_ext <<_ACEOF
12108 cat confdefs.h
>>conftest.
$ac_ext
12109 cat >>conftest.
$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #include <locale.h>
12120 rm -f conftest.
$ac_objext conftest
$ac_exeext
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>conftest.er1
12124 grep -v '^ *+' conftest.er1
>conftest.err
12126 cat conftest.err
>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } &&
12129 { ac_try
='test -z "$ac_c_werror_flag"
12130 || test ! -s conftest.err'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try
='test -s conftest$ac_exeext'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 am_cv_val_LC_MESSAGES
=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.
$ac_ext >&5
12147 am_cv_val_LC_MESSAGES
=no
12149 rm -f conftest.err conftest.
$ac_objext \
12150 conftest
$ac_exeext conftest.
$ac_ext
12152 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12153 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12154 if test $am_cv_val_LC_MESSAGES = yes; then
12156 cat >>confdefs.h
<<\_ACEOF
12157 #define HAVE_LC_MESSAGES 1
12164 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12165 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12166 if test "${am_cv_langinfo_codeset+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <langinfo.h>
12179 char* cs = nl_langinfo(CODESET);
12184 rm -f conftest.
$ac_objext conftest
$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>conftest.er1
12188 grep -v '^ *+' conftest.er1
>conftest.err
12190 cat conftest.err
>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try
='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try
='test -s conftest$ac_exeext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 am_cv_langinfo_codeset
=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.
$ac_ext >&5
12211 am_cv_langinfo_codeset
=no
12213 rm -f conftest.err conftest.
$ac_objext \
12214 conftest
$ac_exeext conftest.
$ac_ext
12217 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12218 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12219 if test $am_cv_langinfo_codeset = yes; then
12221 cat >>confdefs.h
<<\_ACEOF
12222 #define HAVE_LANGINFO_CODESET 1
12228 # We will need to find libiberty.h and ansidecl.h
12229 saved_CFLAGS
="$CFLAGS"
12230 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12270 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12271 strsignal strstr strverscmp \
12272 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12273 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
12275 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12276 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12277 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12278 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 cat >conftest.
$ac_ext <<_ACEOF
12284 cat confdefs.h
>>conftest.
$ac_ext
12285 cat >>conftest.
$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 #define $ac_tr_decl 1
12290 #include "ansidecl.h"
12291 #include "system.h"
12297 char *(*pfn) = (char *(*)) $ac_func ;
12303 rm -f conftest.
$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>conftest.er1
12307 grep -v '^ *+' conftest.er1
>conftest.err
12309 cat conftest.err
>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try
='test -z "$ac_c_werror_flag"
12313 || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try
='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 eval "gcc_cv_have_decl_$ac_func=yes"
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.
$ac_ext >&5
12330 eval "gcc_cv_have_decl_$ac_func=no"
12332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12335 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12336 echo "$as_me:$LINENO: result: yes" >&5
12337 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12338 #define $ac_tr_decl 1
12342 echo "$as_me:$LINENO: result: no" >&5
12343 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12344 #define $ac_tr_decl 0
12355 for ac_func
in getrlimit setrlimit getrusage
12357 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12358 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12359 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12360 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 cat >conftest.
$ac_ext <<_ACEOF
12366 cat confdefs.h
>>conftest.
$ac_ext
12367 cat >>conftest.
$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12370 #define $ac_tr_decl 1
12372 #include "ansidecl.h"
12373 #include "system.h"
12374 #ifdef HAVE_SYS_RESOURCE_H
12375 #include <sys/resource.h>
12383 char *(*pfn) = (char *(*)) $ac_func ;
12389 rm -f conftest.
$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12393 grep -v '^ *+' conftest.er1
>conftest.err
12395 cat conftest.err
>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try
='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try
='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 eval "gcc_cv_have_decl_$ac_func=yes"
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.
$ac_ext >&5
12416 eval "gcc_cv_have_decl_$ac_func=no"
12418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12421 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12422 echo "$as_me:$LINENO: result: yes" >&5
12423 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12424 #define $ac_tr_decl 1
12428 echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12430 #define $ac_tr_decl 0
12438 cat >conftest.
$ac_ext <<_ACEOF
12441 cat confdefs.h
>>conftest.
$ac_ext
12442 cat >>conftest.
$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12445 #include "ansidecl.h"
12446 #include "system.h"
12447 #ifdef HAVE_SYS_RESOURCE_H
12448 #include <sys/resource.h>
12459 rm -f conftest.
$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>conftest.er1
12463 grep -v '^ *+' conftest.er1
>conftest.err
12465 cat conftest.err
>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try
='test -z "$ac_c_werror_flag"
12469 || test ! -s conftest.err'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try
='test -s conftest.$ac_objext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.
$ac_ext >&5
12487 cat >>confdefs.h
<<\_ACEOF
12488 #define rlim_t long
12492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12499 for ac_func
in ldgetname
12501 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12502 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12503 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12504 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 cat >conftest.
$ac_ext <<_ACEOF
12510 cat confdefs.h
>>conftest.
$ac_ext
12511 cat >>conftest.
$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 #define $ac_tr_decl 1
12516 #include "ansidecl.h"
12517 #include "system.h"
12518 #ifdef HAVE_LDFCN_H
12529 char *(*pfn) = (char *(*)) $ac_func ;
12535 rm -f conftest.
$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1
>conftest.err
12541 cat conftest.err
>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try
='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try
='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 eval "gcc_cv_have_decl_$ac_func=yes"
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.
$ac_ext >&5
12562 eval "gcc_cv_have_decl_$ac_func=no"
12564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12567 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12568 echo "$as_me:$LINENO: result: yes" >&5
12569 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12570 #define $ac_tr_decl 1
12574 echo "$as_me:$LINENO: result: no" >&5
12575 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12576 #define $ac_tr_decl 0
12585 for ac_func
in times
12587 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12588 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12589 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12590 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.
$ac_ext <<_ACEOF
12596 cat confdefs.h
>>conftest.
$ac_ext
12597 cat >>conftest.
$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 #define $ac_tr_decl 1
12602 #include "ansidecl.h"
12603 #include "system.h"
12604 #ifdef HAVE_SYS_TIMES_H
12605 #include <sys/times.h>
12613 char *(*pfn) = (char *(*)) $ac_func ;
12619 rm -f conftest.
$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>conftest.er1
12623 grep -v '^ *+' conftest.er1
>conftest.err
12625 cat conftest.err
>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try
='test -z "$ac_c_werror_flag"
12629 || test ! -s conftest.err'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try
='test -s conftest.$ac_objext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 eval "gcc_cv_have_decl_$ac_func=yes"
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.
$ac_ext >&5
12646 eval "gcc_cv_have_decl_$ac_func=no"
12648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12651 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12652 echo "$as_me:$LINENO: result: yes" >&5
12653 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12654 #define $ac_tr_decl 1
12658 echo "$as_me:$LINENO: result: no" >&5
12659 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12660 #define $ac_tr_decl 0
12669 for ac_func
in sigaltstack
12671 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12672 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12673 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12674 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 #define $ac_tr_decl 1
12686 #include "ansidecl.h"
12687 #include "system.h"
12688 #include <signal.h>
12695 char *(*pfn) = (char *(*)) $ac_func ;
12701 rm -f conftest.
$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12705 grep -v '^ *+' conftest.er1
>conftest.err
12707 cat conftest.err
>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try
='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try
='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 eval "gcc_cv_have_decl_$ac_func=yes"
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 eval "gcc_cv_have_decl_$ac_func=no"
12730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12734 echo "$as_me:$LINENO: result: yes" >&5
12735 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12736 #define $ac_tr_decl 1
12740 echo "$as_me:$LINENO: result: no" >&5
12741 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12742 #define $ac_tr_decl 0
12750 # More time-related stuff.
12751 echo "$as_me:$LINENO: checking for struct tms" >&5
12752 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12753 if test "${ac_cv_struct_tms+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 #include "ansidecl.h"
12765 #include "system.h"
12766 #ifdef HAVE_SYS_TIMES_H
12767 #include <sys/times.h>
12778 rm -f conftest.
$ac_objext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12780 (eval $ac_compile) 2>conftest.er1
12782 grep -v '^ *+' conftest.er1
>conftest.err
12784 cat conftest.err
>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try
='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try
='test -s conftest.$ac_objext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_struct_tms
=yes
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12805 ac_cv_struct_tms
=no
12807 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12810 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12811 if test $ac_cv_struct_tms = yes; then
12813 cat >>confdefs.h
<<\_ACEOF
12814 #define HAVE_STRUCT_TMS 1
12819 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12820 # revisit after autoconf 2.50.
12821 echo "$as_me:$LINENO: checking for clock_t" >&5
12822 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12823 if test "${gcc_cv_type_clock_t+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 cat >conftest.
$ac_ext <<_ACEOF
12830 cat confdefs.h
>>conftest.
$ac_ext
12831 cat >>conftest.
$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12834 #include "ansidecl.h"
12835 #include "system.h"
12845 rm -f conftest.
$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12849 grep -v '^ *+' conftest.er1
>conftest.err
12851 cat conftest.err
>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try
='test -z "$ac_c_werror_flag"
12855 || test ! -s conftest.err'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; } &&
12861 { ac_try
='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 gcc_cv_type_clock_t
=yes
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.
$ac_ext >&5
12872 gcc_cv_type_clock_t
=no
12874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12876 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12877 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12878 if test $gcc_cv_type_clock_t = yes; then
12880 cat >>confdefs.h
<<\_ACEOF
12881 #define HAVE_CLOCK_T 1
12886 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12887 CFLAGS
="$saved_CFLAGS"
12889 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12890 if test "${enable_initfini_array+set}" = set; then
12891 enableval
="$enable_initfini_array"
12895 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12896 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12897 if test "${gcc_cv_initfini_array+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 if test "$cross_compiling" = yes; then
12901 gcc_cv_initfini_array
=no
12903 cat >conftest.
$ac_ext <<_ACEOF
12906 cat confdefs.h
>>conftest.
$ac_ext
12907 cat >>conftest.
$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12911 int main (void) { return x; }
12912 int foo (void) { x = 0; }
12913 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12915 rm -f conftest
$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 gcc_cv_initfini_array
=yes
12928 echo "$as_me: program exited with status $ac_status" >&5
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.
$ac_ext >&5
12932 ( exit $ac_status )
12933 gcc_cv_initfini_array
=no
12935 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12938 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12939 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12940 enable_initfini_array
=$gcc_cv_initfini_array
12943 if test $enable_initfini_array = yes; then
12945 cat >>confdefs.h
<<\_ACEOF
12946 #define HAVE_INITFINI_ARRAY 1
12951 # mkdir takes a single argument on some systems.
12952 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12953 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12954 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 cat >conftest.
$ac_ext <<_ACEOF
12960 cat confdefs.h
>>conftest.
$ac_ext
12961 cat >>conftest.
$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 #include <sys/types.h>
12965 #ifdef HAVE_SYS_STAT_H
12966 # include <sys/stat.h>
12968 #ifdef HAVE_UNISTD_H
12969 # include <unistd.h>
12971 #ifdef HAVE_DIRECT_H
12972 # include <direct.h>
12982 rm -f conftest.
$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>conftest.er1
12986 grep -v '^ *+' conftest.er1
>conftest.err
12988 cat conftest.err
>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try
='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try
='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 gcc_cv_mkdir_takes_one_arg
=no
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.
$ac_ext >&5
13009 gcc_cv_mkdir_takes_one_arg
=yes
13011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13013 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13014 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13015 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13017 cat >>confdefs.h
<<\_ACEOF
13018 #define MKDIR_TAKES_ONE_ARG 1
13030 # With Setjmp/Longjmp based exception handling.
13031 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13032 if test "${enable_sjlj_exceptions+set}" = set; then
13033 enableval
="$enable_sjlj_exceptions"
13036 if test $enableval != yes; then
13037 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13038 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13043 force_sjlj_exceptions
=yes
13047 force_sjlj_exceptions
=yes
13051 force_sjlj_exceptions
=no
13055 if test $force_sjlj_exceptions = yes; then
13056 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
13058 cat >>confdefs.h
<<_ACEOF
13059 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13064 # For platforms with the unwind ABI which includes an unwind library,
13065 # libunwind, we can choose to use the system libunwind.
13067 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13068 if test "${with_system_libunwind+set}" = set; then
13069 withval
="$with_system_libunwind"
13073 # config.gcc also contains tests of with_system_libunwind.
13074 if test x
$with_system_libunwind = xyes
; then
13076 cat >>confdefs.h
<<\_ACEOF
13077 #define HAVE_GETIPINFO 1
13082 # --------------------------------------------------------
13083 # Build, host, and target specific configuration fragments
13084 # --------------------------------------------------------
13086 # Collect build-machine-specific information.
13087 .
${srcdir}/config.build
13089 # Collect host-machine-specific information.
13090 .
${srcdir}/config.
host
13094 # Collect target-machine-specific information.
13095 .
${srcdir}/config.gcc
13097 extra_objs
="${host_extra_objs} ${extra_objs}"
13098 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13100 # Default the target-machine variables that were not explicitly set.
13101 if test x
"$tm_file" = x
13102 then tm_file
=$cpu_type/$cpu_type.h
; fi
13104 if test x
"$extra_headers" = x
13105 then extra_headers
=; fi
13107 if test x
$md_file = x
13108 then md_file
=$cpu_type/$cpu_type.md
; fi
13110 if test x
$out_file = x
13111 then out_file
=$cpu_type/$cpu_type.c
; fi
13113 if test x
"$tmake_file" = x
13114 then tmake_file
=$cpu_type/t-
$cpu_type
13117 if test x
"$dwarf2" = xyes
13118 then tm_file
="$tm_file tm-dwarf2.h"
13121 # Say what files are being used for the output code and MD file.
13122 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13123 echo "Using \`$srcdir/config/$md_file' as machine description file."
13125 # If any of the xm_file variables contain nonexistent files, warn
13126 # about them and drop them.
13129 for x
in $build_xm_file; do
13130 if test -f $srcdir/config
/$x
13132 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13133 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13136 build_xm_file
="$bx"
13139 for x
in $host_xm_file; do
13140 if test -f $srcdir/config
/$x
13142 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13143 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13149 for x
in $xm_file; do
13150 if test -f $srcdir/config
/$x
13152 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13153 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13159 for f
in $tm_file; do
13162 if test $count = ax
; then
13163 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13165 echo "Using the following target machine macro files:"
13166 for f
in $tm_file; do
13167 echo " $srcdir/config/$f"
13171 if test x
$need_64bit_hwint = xyes
; then
13173 cat >>confdefs.h
<<\_ACEOF
13174 #define NEED_64BIT_HOST_WIDE_INT 1
13179 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13181 cat >>confdefs.h
<<\_ACEOF
13182 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13188 for f
in $host_xm_file; do
13191 if test $count = a
; then
13193 elif test $count = ax
; then
13194 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13196 echo "Using the following host machine macro files:"
13197 for f
in $host_xm_file; do
13198 echo " $srcdir/config/$f"
13201 echo "Using ${out_host_hook_obj} for host machine hooks."
13203 if test "$host_xm_file" != "$build_xm_file"; then
13205 for f
in $build_xm_file; do
13208 if test $count = a
; then
13210 elif test $count = ax
; then
13211 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13213 echo "Using the following build machine macro files:"
13214 for f
in $build_xm_file; do
13215 echo " $srcdir/config/$f"
13221 powerpc
*-*-darwin*)
13222 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13223 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13224 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 cat >conftest.
$ac_ext <<_ACEOF
13229 #include <sys/cdefs.h>
13230 #include <sys/signal.h>
13231 #include <ucontext.h>
13232 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13235 rm -f conftest.
$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>conftest.er1
13239 grep -v '^ *+' conftest.er1
>conftest.err
13241 cat conftest.err
>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try
='test -z "$ac_c_werror_flag"
13245 || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try
='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 gcc_cv_mcontext_underscores
=no
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.
$ac_ext >&5
13262 gcc_cv_mcontext_underscores
=yes
13264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13266 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13267 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13268 if test $gcc_cv_mcontext_underscores = yes; then
13270 cat >>confdefs.h
<<\_ACEOF
13271 #define HAS_MCONTEXT_T_UNDERSCORES
13282 # Check if a valid thread package
13283 case ${enable_threads} in
13286 target_thread_file
='single'
13290 target_thread_file
='single'
13292 aix | dce | gnat | irix | posix | posix95 | rtems | \
13293 single | solaris | vxworks | win32 | mipssde
)
13294 target_thread_file
=${enable_threads}
13297 echo "${enable_threads} is an unknown thread package" 1>&2
13302 if test x
${thread_file} = x
; then
13303 # No thread file set by target-specific clauses in config.gcc,
13304 # so use file chosen by default logic above
13305 thread_file
=${target_thread_file}
13308 # Make gthr-default.h if we have a thread file.
13310 if test $thread_file != single
; then
13311 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13312 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
13313 rm -f gthr-default.h-t
13315 mv -f gthr-default.h-t gthr-default.h
13317 gthread_flags
=-DHAVE_GTHR_DEFAULT
13326 if test x
$enable___cxa_atexit = xyes || \
13327 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13328 if test x
$host = x
$target; then
13330 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13331 # keyed to flag_use_cxa_atexit
13336 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13337 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13338 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13349 #define __cxa_atexit innocuous___cxa_atexit
13351 /* System header to define __stub macros and hopefully few prototypes,
13352 which can conflict with char __cxa_atexit (); below.
13353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13354 <limits.h> exists even on freestanding compilers. */
13357 # include <limits.h>
13359 # include <assert.h>
13362 #undef __cxa_atexit
13364 /* Override any gcc2 internal prototype to avoid an error. */
13369 /* We use char because int might match the return type of a gcc2
13370 builtin and then its argument prototype would still apply. */
13371 char __cxa_atexit ();
13372 /* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13378 char (*f) () = __cxa_atexit;
13387 return f != __cxa_atexit;
13392 rm -f conftest.
$ac_objext conftest
$ac_exeext
13393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394 (eval $ac_link) 2>conftest.er1
13396 grep -v '^ *+' conftest.er1
>conftest.err
13398 cat conftest.err
>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try
='test -z "$ac_c_werror_flag"
13402 || test ! -s conftest.err'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try
='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_cv_func___cxa_atexit
=yes
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.
$ac_ext >&5
13419 ac_cv_func___cxa_atexit
=no
13421 rm -f conftest.err conftest.
$ac_objext \
13422 conftest
$ac_exeext conftest.
$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13425 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13426 if test $ac_cv_func___cxa_atexit = yes; then
13429 echo "__cxa_atexit can't be enabled on this target"
13435 # We can't check for __cxa_atexit when building a cross, so assume
13439 if test x
$use_cxa_atexit = xyes
; then
13441 cat >>confdefs.h
<<\_ACEOF
13442 #define DEFAULT_USE_CXA_ATEXIT 2
13449 if test x
$with_system_libunwind = xyes
; then
13450 if test x
$host = x
$target; then
13451 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13452 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13453 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 ac_func_search_save_LIBS
=$LIBS
13457 ac_cv_search__Unwind_GetIPInfo
=no
13458 cat >conftest.
$ac_ext <<_ACEOF
13461 cat confdefs.h
>>conftest.
$ac_ext
13462 cat >>conftest.
$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13465 /* Override any gcc2 internal prototype to avoid an error. */
13469 /* We use char because int might match the return type of a gcc2
13470 builtin and then its argument prototype would still apply. */
13471 char _Unwind_GetIPInfo ();
13475 _Unwind_GetIPInfo ();
13480 rm -f conftest.
$ac_objext conftest
$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>conftest.er1
13484 grep -v '^ *+' conftest.er1
>conftest.err
13486 cat conftest.err
>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try
='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try
='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search__Unwind_GetIPInfo
="none required"
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.
$ac_ext >&5
13508 rm -f conftest.err conftest.
$ac_objext \
13509 conftest
$ac_exeext conftest.
$ac_ext
13510 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
13511 for ac_lib
in unwind
; do
13512 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13513 cat >conftest.
$ac_ext <<_ACEOF
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any gcc2 internal prototype to avoid an error. */
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526 char _Unwind_GetIPInfo ();
13530 _Unwind_GetIPInfo ();
13535 rm -f conftest.
$ac_objext conftest
$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1
>conftest.err
13541 cat conftest.err
>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try
='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try
='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
13560 echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.
$ac_ext >&5
13564 rm -f conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13568 LIBS
=$ac_func_search_save_LIBS
13570 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13571 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13572 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
13573 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13582 if test x
$use_getipinfo = xyes
; then
13584 cat >>confdefs.h
<<\_ACEOF
13585 #define HAVE_GETIPINFO 1
13589 echo "The system unwind library does not support _Unwind_GetIPInfo."
13592 # Look for a file containing extra machine modes.
13593 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13594 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13597 cat >>confdefs.h
<<_ACEOF
13598 #define EXTRA_MODES_FILE "config/$extra_modes"
13603 # Convert extra_options into a form suitable for Makefile use.
13605 for f
in $extra_options; do
13606 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13610 # auto-host.h is the file containing items generated by autoconf and is
13611 # the first file included by config.h.
13612 # If host=build, it is correct to have bconfig include auto-host.h
13613 # as well. If host!=build, we are in error and need to do more
13614 # work to find out the build config parameters.
13615 if test x
$host = x
$build
13617 build_auto
=auto-host.h
13619 # We create a subdir, then run autoconf in the subdir.
13620 # To prevent recursion we set host and build for the new
13621 # invocation of configure to the build for this invocation
13628 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13629 *) realsrcdir
=..
/${srcdir};;
13631 saved_CFLAGS
="${CFLAGS}"
13632 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13633 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13634 ${realsrcdir}/configure \
13635 --enable-languages=${enable_languages-all} \
13636 --target=$target_alias --host=$build_alias --build=$build_alias
13637 CFLAGS
="${saved_CFLAGS}"
13639 # We just finished tests for the build machine, so rename
13640 # the file auto-build.h in the gcc directory.
13641 mv auto-host.h ..
/auto-build.h
13644 build_auto
=auto-build.h
13648 tm_file
="${tm_file} defaults.h"
13649 tm_p_file
="${tm_p_file} tm-preds.h"
13650 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13651 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13652 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13653 # put this back in temporarily.
13654 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13660 # Compile in configure arguments.
13661 if test -f configargs.h
; then
13662 # Being re-configured.
13663 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13664 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13666 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13669 # Double all backslashes and backslash all quotes to turn
13670 # gcc_config_arguments into a C string.
13671 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13672 $gcc_config_arguments
13674 gcc_config_arguments_str
=`cat conftest.out`
13677 cat > configargs.h
<<EOF
13678 /* Generated automatically. */
13679 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13680 static const char thread_model[] = "$thread_file";
13682 static const struct {
13683 const char *name, *value;
13684 } configure_default_options[] = $configure_default_options;
13687 # Internationalization
13688 # If we haven't got the data from the intl directory,
13689 # assume NLS is disabled.
13698 if test -f ..
/intl
/config.intl
; then
13699 . ..
/intl
/config.intl
13701 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13702 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13703 if test x
"$USE_NLS" != xyes
; then
13704 echo "$as_me:$LINENO: result: no" >&5
13705 echo "${ECHO_T}no" >&6
13707 echo "$as_me:$LINENO: result: yes" >&5
13708 echo "${ECHO_T}yes" >&6
13710 cat >>confdefs.h
<<\_ACEOF
13711 #define ENABLE_NLS 1
13715 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13716 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13717 # Look for .po and .gmo files in the source directory.
13720 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13721 # If there aren't any .gmo files the shell will give us the
13722 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13724 case "$cat" in *\
**)
13727 # The quadruple backslash is collapsed to a double backslash
13728 # by the backticks, then collapsed again by the double quotes,
13729 # leaving us with one backslash in the sed expression (right
13730 # before the dot that mustn't act as a wildcard).
13731 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13732 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13733 # The user is allowed to set LINGUAS to a list of languages to
13734 # install catalogs for. If it's empty that means "all of them."
13735 if test "x$LINGUAS" = x
; then
13736 CATALOGS
="$CATALOGS $cat"
13737 XLINGUAS
="$XLINGUAS $lang"
13739 case "$LINGUAS" in *$lang*)
13740 CATALOGS
="$CATALOGS $cat"
13741 XLINGUAS
="$XLINGUAS $lang"
13746 LINGUAS
="$XLINGUAS"
13747 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13748 echo "${ECHO_T}$LINGUAS" >&6
13761 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13762 # -liconv on the link line twice.
13763 case "$LIBINTL" in *$LIBICONV*)
13767 # Check whether --enable-secureplt or --disable-secureplt was given.
13768 if test "${enable_secureplt+set}" = set; then
13769 enableval
="$enable_secureplt"
13773 # Check whether --enable-cld or --disable-cld was given.
13774 if test "${enable_cld+set}" = set; then
13775 enableval
="$enable_cld"
13781 # Windows32 Registry support for specifying GCC installation paths.
13782 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13783 if test "${enable_win32_registry+set}" = set; then
13784 enableval
="$enable_win32_registry"
13789 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13790 if test "x$enable_win32_registry" != xno
; then
13791 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13792 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13793 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_func_search_save_LIBS
=$LIBS
13797 ac_cv_search_RegOpenKeyExA
=no
13798 cat >conftest.
$ac_ext <<_ACEOF
13801 cat confdefs.h
>>conftest.
$ac_ext
13802 cat >>conftest.
$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13805 /* Override any gcc2 internal prototype to avoid an error. */
13809 /* We use char because int might match the return type of a gcc2
13810 builtin and then its argument prototype would still apply. */
13811 char RegOpenKeyExA ();
13820 rm -f conftest.
$ac_objext conftest
$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>conftest.er1
13824 grep -v '^ *+' conftest.er1
>conftest.err
13826 cat conftest.err
>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try
='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try
='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_search_RegOpenKeyExA
="none required"
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.
$ac_ext >&5
13848 rm -f conftest.err conftest.
$ac_objext \
13849 conftest
$ac_exeext conftest.
$ac_ext
13850 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13851 for ac_lib
in advapi32
; do
13852 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13853 cat >conftest.
$ac_ext <<_ACEOF
13856 cat confdefs.h
>>conftest.
$ac_ext
13857 cat >>conftest.
$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 /* Override any gcc2 internal prototype to avoid an error. */
13864 /* We use char because int might match the return type of a gcc2
13865 builtin and then its argument prototype would still apply. */
13866 char RegOpenKeyExA ();
13875 rm -f conftest.
$ac_objext conftest
$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13879 grep -v '^ *+' conftest.er1
>conftest.err
13881 cat conftest.err
>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try
='test -z "$ac_c_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try
='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.
$ac_ext >&5
13904 rm -f conftest.err conftest.
$ac_objext \
13905 conftest
$ac_exeext conftest.
$ac_ext
13908 LIBS
=$ac_func_search_save_LIBS
13910 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13911 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13912 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13913 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13916 enable_win32_registry
=no
13921 if test "x$enable_win32_registry" != xno
; then
13923 cat >>confdefs.h
<<\_ACEOF
13924 #define ENABLE_WIN32_REGISTRY 1
13928 if test "x$enable_win32_registry" != xyes \
13929 && test "x$enable_win32_registry" != x
; then
13931 cat >>confdefs.h
<<_ACEOF
13932 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13940 # Get an absolute path to the GCC top-level source directory
13941 holddir
=`${PWDCMD-pwd}`
13943 topdir
=`${PWDCMD-pwd}`
13946 # Conditionalize the makefile for this host machine.
13948 for f
in ${host_xmake_file}
13950 if test -f ${srcdir}/config
/$f
13952 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13956 # Conditionalize the makefile for this target machine.
13958 for f
in ${tmake_file}
13960 if test -f ${srcdir}/config
/$f
13962 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13965 tmake_file
="${tmake_file_}"
13967 # This is a terrible hack which will go away some day.
13968 host_cc_for_libada
=${CC}
13971 out_object_file
=`basename $out_file .c`.o
13973 tm_file_list
="options.h"
13974 tm_include_list
="options.h"
13975 for f
in $tm_file; do
13978 f
=`echo $f | sed 's/^..//'`
13979 tm_file_list
="${tm_file_list} $f"
13980 tm_include_list
="${tm_include_list} $f"
13983 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13984 tm_include_list
="${tm_include_list} $f"
13987 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13988 tm_include_list
="${tm_include_list} config/$f"
13995 for f
in $tm_p_file; do
13998 tm_p_file_list
="${tm_p_file_list} $f"
13999 tm_p_include_list
="${tm_p_include_list} $f"
14002 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
14003 tm_p_include_list
="${tm_p_include_list} config/$f"
14009 for f
in $xm_file; do
14012 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
14013 xm_include_list
="${xm_include_list} $f"
14016 xm_file_list
="${xm_file_list} $f"
14017 xm_include_list
="${xm_include_list} $f"
14020 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
14021 xm_include_list
="${xm_include_list} config/$f"
14027 host_xm_include_list
=
14028 for f
in $host_xm_file; do
14031 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
14032 host_xm_include_list
="${host_xm_include_list} $f"
14035 host_xm_file_list
="${host_xm_file_list} $f"
14036 host_xm_include_list
="${host_xm_include_list} $f"
14039 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
14040 host_xm_include_list
="${host_xm_include_list} config/$f"
14045 build_xm_file_list
=
14046 for f
in $build_xm_file; do
14049 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
14050 build_xm_include_list
="${build_xm_include_list} $f"
14052 auto-build.h | auto-host.h
)
14053 build_xm_file_list
="${build_xm_file_list} $f"
14054 build_xm_include_list
="${build_xm_include_list} $f"
14057 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
14058 build_xm_include_list
="${build_xm_include_list} config/$f"
14063 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14064 # cross-compiler which does not use the native headers and libraries.
14065 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14068 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14070 if test "x$with_build_sysroot" != x
; then
14071 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14073 # This value is used, even on a native system, because
14074 # CROSS_SYSTEM_HEADER_DIR is just
14075 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14076 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
14079 if test x
$host != x
$target
14081 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
14083 SYSTEM_HEADER_DIR
=$build_system_header_dir
14084 case "$host","$target" in
14085 # Darwin crosses can use the host system's libraries and headers,
14086 # because of the fat library support. Of course, it must be the
14087 # same version of Darwin on both sides. Allow the user to
14088 # just say --target=foo-darwin without a version number to mean
14089 # "the version on this system".
14090 *-*-darwin*,*-*-darwin*)
14091 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
14092 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
14093 if test $hostos = $targetos -o $targetos = darwin
; then
14095 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
14100 i?
86-*-*,x86_64-
*-* \
14101 | powerpc
*-*-*,powerpc64
*-*-*)
14102 CROSS
="$CROSS -DNATIVE_CROSS" ;;
14104 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
14105 SYSTEM_HEADER_DIR
=$build_system_header_dir
14108 # If this is a cross-compiler that does not
14109 # have its own set of headers then define
14112 # If this is using newlib, without having the headers available now,
14113 # then define inhibit_libc in LIBGCC2_CFLAGS.
14114 # This prevents libgcc2 from containing any code which requires libc
14116 : ${inhibit_libc=false}
14117 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
14118 test x
$with_newlib = xyes
; } &&
14119 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
14124 # When building gcc with a cross-compiler, we need to adjust things so
14125 # that the generator programs are still built with the native compiler.
14126 # Also, we cannot run fixincludes or fix-header.
14128 # These are the normal (build=host) settings:
14129 CC_FOR_BUILD
='$(CC)'
14130 BUILD_CFLAGS
='$(ALL_CFLAGS)'
14131 BUILD_LDFLAGS
='$(LDFLAGS)'
14132 STMP_FIXINC
=stmp-fixinc
14134 # Possibly disable fixproto, on a per-target basis.
14135 case ${use_fixproto} in
14140 STMP_FIXPROTO
=stmp-fixproto
14145 # And these apply if build != host, or we are generating coverage data
14146 if test x
$build != x
$host ||
test "x$coverage_flags" != x
14148 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14149 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
14151 if test "x$TARGET_SYSTEM_ROOT" = x
; then
14152 if test "x$STMP_FIXPROTO" != x
; then
14153 STMP_FIXPROTO
=stmp-install-fixproto
14158 # Expand extra_headers to include complete path.
14159 # This substitutes for lots of t-* files.
14160 extra_headers_list
=
14161 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14162 for file in ${extra_headers} ; do
14163 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14166 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14167 if test x
"$use_gcc_tgmath" = xyes
14168 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14171 # Define collect2 in Makefile.
14172 case $host_can_use_collect2 in
14174 *) collect2
='collect2$(exeext)' ;;
14178 # Add a definition of USE_COLLECT2 if system wants one.
14179 case $use_collect2 in
14180 no
) use_collect2
= ;;
14183 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
14184 xm_defines
="${xm_defines} USE_COLLECT2"
14185 case $host_can_use_collect2 in
14187 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14188 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14189 { (exit 1); exit 1; }; }
14195 # ---------------------------
14196 # Assembler & linker features
14197 # ---------------------------
14199 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14200 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14201 # However when ld-new is first executed from the build tree, libtool will
14202 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14203 # to the build tree. While doing this we need to use the previous-stage
14204 # linker, or we have an infinite loop. The presence of a shell script as
14205 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14206 # the gcc/collect-ld script. So we need to know how libtool works, or
14207 # exec-tool will fail.
14212 macro_version
='2.1a'
14213 macro_revision
='1.2435'
14226 ltmain
="$ac_aux_dir/ltmain.sh"
14233 enable_win32_dll
=no
14236 # Check whether --enable-shared or --disable-shared was given.
14237 if test "${enable_shared+set}" = set; then
14238 enableval
="$enable_shared"
14239 p
=${PACKAGE-default}
14241 yes) enable_shared
=yes ;;
14242 no
) enable_shared
=no
;;
14245 # Look at the argument we got. We use all the common list separators.
14246 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14247 for pkg
in $enableval; do
14249 if test "X$pkg" = "X$p"; then
14267 # Check whether --enable-static or --disable-static was given.
14268 if test "${enable_static+set}" = set; then
14269 enableval
="$enable_static"
14270 p
=${PACKAGE-default}
14272 yes) enable_static
=yes ;;
14273 no
) enable_static
=no
;;
14276 # Look at the argument we got. We use all the common list separators.
14277 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14278 for pkg
in $enableval; do
14280 if test "X$pkg" = "X$p"; then
14299 # Check whether --with-pic or --without-pic was given.
14300 if test "${with_pic+set}" = set; then
14301 withval
="$with_pic"
14302 pic_mode
="$withval"
14307 test -z "$pic_mode" && pic_mode
=default
14315 # Check whether --enable-fast-install or --disable-fast-install was given.
14316 if test "${enable_fast_install+set}" = set; then
14317 enableval
="$enable_fast_install"
14318 p
=${PACKAGE-default}
14320 yes) enable_fast_install
=yes ;;
14321 no
) enable_fast_install
=no
;;
14323 enable_fast_install
=no
14324 # Look at the argument we got. We use all the common list separators.
14325 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
14326 for pkg
in $enableval; do
14328 if test "X$pkg" = "X$p"; then
14329 enable_fast_install
=yes
14336 enable_fast_install
=yes
14346 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14347 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14348 if test "${lt_cv_path_SED+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 # Loop through the user's path and test for sed and gsed.
14352 # Then use that list of sed's as ones to test for truncation.
14353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14354 for as_dir
in $PATH
14357 test -z "$as_dir" && as_dir
=.
14358 for lt_ac_prog
in sed gsed
; do
14359 for ac_exec_ext
in '' $ac_executable_extensions; do
14360 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14361 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14369 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14370 # along with /bin/sed that truncates output.
14371 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14372 test ! -f $lt_ac_sed && continue
14373 cat /dev
/null
> conftest.
in
14375 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14376 # Check for GNU sed and select it if it is found.
14377 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14378 lt_cv_path_SED
=$lt_ac_sed
14382 cat conftest.
in conftest.
in >conftest.tmp
14383 mv conftest.tmp conftest.
in
14384 cp conftest.
in conftest.
nl
14386 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14387 cmp -s conftest.out conftest.
nl ||
break
14388 # 10000 chars as input seems more than enough
14389 test $lt_ac_count -gt 10 && break
14390 lt_ac_count
=`expr $lt_ac_count + 1`
14391 if test $lt_ac_count -gt $lt_ac_max; then
14392 lt_ac_max
=$lt_ac_count
14393 lt_cv_path_SED
=$lt_ac_sed
14400 SED
=$lt_cv_path_SED
14402 echo "$as_me:$LINENO: result: $SED" >&5
14403 echo "${ECHO_T}$SED" >&6
14405 test -z "$SED" && SED
=sed
14406 Xsed
="$SED -e 1s/^X//"
14418 echo "$as_me:$LINENO: checking for fgrep" >&5
14419 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14420 if test "${ac_cv_prog_fgrep+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14424 then ac_cv_prog_fgrep
='grep -F'
14425 else ac_cv_prog_fgrep
='fgrep'
14428 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14429 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14430 FGREP
=$ac_cv_prog_fgrep
14433 test -z "$GREP" && GREP
=grep
14453 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14454 if test "${with_gnu_ld+set}" = set; then
14455 withval
="$with_gnu_ld"
14456 test "$withval" = no || with_gnu_ld
=yes
14461 if test "$GCC" = yes; then
14462 # Check if gcc -print-prog-name=ld gives a path.
14463 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14464 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14467 # gcc leaves a trailing carriage return which upsets mingw
14468 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14470 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14473 # Accept absolute paths.
14475 re_direlt
='/[^/][^/]*/\.\./'
14476 # Canonicalize the pathname of ld
14477 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14478 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14479 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14481 test -z "$LD" && LD
="$ac_prog"
14484 # If it fails, then pretend we aren't using GCC.
14488 # If it is relative, then search for the first ld in PATH.
14489 with_gnu_ld
=unknown
14492 elif test "$with_gnu_ld" = yes; then
14493 echo "$as_me:$LINENO: checking for GNU ld" >&5
14494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14496 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14499 if test "${lt_cv_path_LD+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 if test -z "$LD"; then
14503 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14504 for ac_dir
in $PATH; do
14506 test -z "$ac_dir" && ac_dir
=.
14507 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14508 lt_cv_path_LD
="$ac_dir/$ac_prog"
14509 # Check to see if the program is GNU ld. I'd rather use --version,
14510 # but apparently some variants of GNU ld only accept -v.
14511 # Break only if it was the GNU/non-GNU ld that we prefer.
14512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14513 *GNU
* |
*'with BFD'*)
14514 test "$with_gnu_ld" != no
&& break
14517 test "$with_gnu_ld" != yes && break
14524 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14528 LD
="$lt_cv_path_LD"
14529 if test -n "$LD"; then
14530 echo "$as_me:$LINENO: result: $LD" >&5
14531 echo "${ECHO_T}$LD" >&6
14533 echo "$as_me:$LINENO: result: no" >&5
14534 echo "${ECHO_T}no" >&6
14536 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14537 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14538 { (exit 1); exit 1; }; }
14539 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14540 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14541 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14545 case `$LD -v 2>&1 </dev/null` in
14546 *GNU
* |
*'with BFD'*)
14547 lt_cv_prog_gnu_ld
=yes
14550 lt_cv_prog_gnu_ld
=no
14554 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14555 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14556 with_gnu_ld
=$lt_cv_prog_gnu_ld
14567 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14568 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14569 if test "${lt_cv_path_NM+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 if test -n "$NM"; then
14573 # Let the user override the test.
14574 lt_cv_path_NM
="$NM"
14576 lt_nm_to_check
="${ac_tool_prefix}nm"
14577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14578 lt_nm_to_check
="$lt_nm_to_check nm"
14580 for lt_tmp_nm
in $lt_nm_to_check; do
14581 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14582 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14584 test -z "$ac_dir" && ac_dir
=.
14585 tmp_nm
="$ac_dir/$lt_tmp_nm"
14586 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14587 # Check to see if the nm accepts a BSD-compat flag.
14588 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14589 # nm: unknown option "B" ignored
14590 # Tru64's nm complains that /dev/null is an invalid object file
14591 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14592 */dev
/null
* |
*'Invalid file or object type'*)
14593 lt_cv_path_NM
="$tmp_nm -B"
14597 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14599 lt_cv_path_NM
="$tmp_nm -p"
14603 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14604 continue # so that we can try to find one that supports BSD flags
14613 : ${lt_cv_path_NM=no}
14616 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14617 echo "${ECHO_T}$lt_cv_path_NM" >&6
14618 if test "$lt_cv_path_NM" != "no"; then
14619 NM
="$lt_cv_path_NM"
14621 # Didn't find any BSD compatible name lister, look for dumpbin.
14622 if test -n "$ac_tool_prefix"; then
14623 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14626 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14627 echo "$as_me:$LINENO: checking for $ac_word" >&5
14628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14629 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 if test -n "$DUMPBIN"; then
14633 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14636 for as_dir
in $PATH
14639 test -z "$as_dir" && as_dir
=.
14640 for ac_exec_ext
in '' $ac_executable_extensions; do
14641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14642 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14651 DUMPBIN
=$ac_cv_prog_DUMPBIN
14652 if test -n "$DUMPBIN"; then
14653 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14654 echo "${ECHO_T}$DUMPBIN" >&6
14656 echo "$as_me:$LINENO: result: no" >&5
14657 echo "${ECHO_T}no" >&6
14660 test -n "$DUMPBIN" && break
14663 if test -z "$DUMPBIN"; then
14664 ac_ct_DUMPBIN
=$DUMPBIN
14665 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14667 # Extract the first word of "$ac_prog", so it can be a program name with args.
14668 set dummy
$ac_prog; ac_word
=$2
14669 echo "$as_me:$LINENO: checking for $ac_word" >&5
14670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14671 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 if test -n "$ac_ct_DUMPBIN"; then
14675 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14678 for as_dir
in $PATH
14681 test -z "$as_dir" && as_dir
=.
14682 for ac_exec_ext
in '' $ac_executable_extensions; do
14683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14684 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14694 if test -n "$ac_ct_DUMPBIN"; then
14695 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14696 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14698 echo "$as_me:$LINENO: result: no" >&5
14699 echo "${ECHO_T}no" >&6
14702 test -n "$ac_ct_DUMPBIN" && break
14704 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14706 DUMPBIN
=$ac_ct_DUMPBIN
14710 if test "$DUMPBIN" != ":"; then
14714 test -z "$NM" && NM
=nm
14721 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14722 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14723 if test "${lt_cv_nm_interface+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 lt_cv_nm_interface
="BSD nm"
14727 echo "int some_variable = 0;" > conftest.
$ac_ext
14728 (eval echo "\"\$as_me:14728: $ac_compile\"" >&5)
14729 (eval "$ac_compile" 2>conftest.err
)
14730 cat conftest.err
>&5
14731 (eval echo "\"\$as_me:14731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14733 cat conftest.err
>&5
14734 (eval echo "\"\$as_me:14734: output\"" >&5)
14735 cat conftest.out
>&5
14736 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14737 lt_cv_nm_interface
="MS dumpbin"
14741 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14742 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14744 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14747 if test "$LN_S" = "ln -s"; then
14748 echo "$as_me:$LINENO: result: yes" >&5
14749 echo "${ECHO_T}yes" >&6
14751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14752 echo "${ECHO_T}no, using $LN_S" >&6
14755 # find the maximum length of command line arguments
14756 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14757 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14758 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 # On DJGPP, this test can blow up pretty badly due to problems in libc
14767 # (any single argument exceeding 2000 bytes causes a buffer overrun
14768 # during glob expansion). Even if it were fixed, the result of this
14769 # check would be larger than it should be.
14770 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14774 # Under GNU Hurd, this test is not required because there is
14775 # no limit to the length of command line arguments.
14776 # Libtool will interpret -1 as no limit whatsoever
14777 lt_cv_sys_max_cmd_len
=-1;
14781 # On Win9x/ME, this test blows up -- it succeeds, but takes
14782 # about 5 minutes as the teststring grows exponentially.
14783 # Worse, since 9x/ME are not pre-emptively multitasking,
14784 # you end up with a "frozen" computer, even though with patience
14785 # the test eventually succeeds (with a max line length of 256k).
14786 # Instead, let's just punt: use the minimum linelength reported by
14787 # all of the supported platforms: 8192 (on NT/2K/XP).
14788 lt_cv_sys_max_cmd_len
=8192;
14792 # On AmigaOS with pdksh, this test takes hours, literally.
14793 # So we just punt and use a minimum line length of 8192.
14794 lt_cv_sys_max_cmd_len
=8192;
14797 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14798 # This has been around since 386BSD, at least. Likely further.
14799 if test -x /sbin
/sysctl
; then
14800 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14801 elif test -x /usr
/sbin
/sysctl
; then
14802 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14804 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14806 # And add a safety zone
14807 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14808 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14813 lt_cv_sys_max_cmd_len
=196608
14817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14819 # nice to cause kernel panics so lets avoid the loop below.
14820 # First set a reasonable default.
14821 lt_cv_sys_max_cmd_len
=16384
14823 if test -x /sbin
/sysconfig
; then
14824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14825 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14830 lt_cv_sys_max_cmd_len
=102400
14832 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14833 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14834 if test -n "$kargmax"; then
14835 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14837 lt_cv_sys_max_cmd_len
=32768
14841 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
14842 if test -n $lt_cv_sys_max_cmd_len; then
14843 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14844 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14846 # Make teststring a little bigger before we do anything with it.
14847 # a 1K string should be a reasonable start.
14848 for i
in 1 2 3 4 5 6 7 8 ; do
14849 teststring
=$teststring$teststring
14851 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14852 # If test is not a shell built-in, we'll probably end up computing a
14853 # maximum length that is only half of the actual maximum length, but
14855 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14856 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14857 test $i != 17 # 1/2 MB should be enough
14860 teststring
=$teststring$teststring
14862 # Only check the string length outside the loop.
14863 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14865 # Add a significant safety factor because C++ compilers can tack on
14866 # massive amounts of additional arguments before passing them to the
14867 # linker. It appears as though 1/2 is a usable value.
14868 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14875 if test -n $lt_cv_sys_max_cmd_len ; then
14876 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14877 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14879 echo "$as_me:$LINENO: result: none" >&5
14880 echo "${ECHO_T}none" >&6
14882 max_cmd_len
=$lt_cv_sys_max_cmd_len
14894 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14895 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14896 # Try some XSI features
14898 ( _lt_dummy
="a/b/c"
14899 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14900 = c,a/b,, ) >/dev/null 2>&1 \
14902 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14903 echo "${ECHO_T}$xsi_shell" >&6
14906 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14907 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14909 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14911 && lt_shell_append=yes
14912 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14913 echo "${ECHO_T}$lt_shell_append" >&6
14916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14926 # test EBCDIC or ASCII
14927 case `echo X|tr X '\101'` in
14928 A) # ASCII based system
14929 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14930 lt_SP2NL='tr \040 \012'
14931 lt_NL2SP='tr \015\012 \040\040'
14933 *) # EBCDIC based system
14934 lt_SP2NL='tr \100 \n'
14935 lt_NL2SP='tr \r\n \100\100'
14947 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14948 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14949 if test "${lt_cv_ld_reload_flag+set}" = set; then
14950 echo $ECHO_N "(cached
) $ECHO_C" >&6
14952 lt_cv_ld_reload_flag='-r'
14954 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14955 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14956 reload_flag=$lt_cv_ld_reload_flag
14957 case $reload_flag in
14959 *) reload_flag=" $reload_flag" ;;
14961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14964 if test "$GCC" = yes; then
14965 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14981 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14982 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14983 if test "${lt_cv_deplibs_check_method+set}" = set; then
14984 echo $ECHO_N "(cached
) $ECHO_C" >&6
14986 lt_cv_file_magic_cmd='$MAGIC_CMD'
14987 lt_cv_file_magic_test_file=
14988 lt_cv_deplibs_check_method='unknown'
14989 # Need to set the preceding variable on all platforms that support
14990 # interlibrary dependencies.
14991 # 'none' -- dependencies not supported.
14992 # `unknown' -- same as none, but documents that we really don't know.
14993 # 'pass_all' -- all dependencies passed with no checks.
14994 # 'test_compile' -- check by making test program.
14995 # 'file_magic [[regex]]' -- check by looking for files in library path
14996 # which responds to the $file_magic_cmd with a given extended regex.
14997 # If you have `file' or equivalent on your system and you're not sure
14998 # whether `pass_all' will *always* work, you probably want this one.
15002 lt_cv_deplibs_check_method=pass_all
15006 lt_cv_deplibs_check_method=pass_all
15010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15011 lt_cv_file_magic_cmd='/usr/bin/file -L'
15012 lt_cv_file_magic_test_file=/shlib/libc.so
15016 # func_win32_libid is a shell function defined in ltmain.sh
15017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15018 lt_cv_file_magic_cmd='func_win32_libid'
15022 # Base MSYS/MinGW do not provide the 'file' command needed by
15023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15024 # unless we find 'file', for example because we are cross-compiling.
15025 if ( file / ) >/dev/null 2>&1; then
15026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15027 lt_cv_file_magic_cmd='func_win32_libid'
15029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15030 lt_cv_file_magic_cmd='$OBJDUMP -f'
15034 darwin* | rhapsody*)
15035 lt_cv_deplibs_check_method=pass_all
15038 freebsd* | dragonfly*)
15039 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15042 # Not sure whether the presence of OpenBSD here was a mistake.
15043 # Let's accept both of them until this is cleared up.
15044 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15045 lt_cv_file_magic_cmd=/usr/bin/file
15046 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15050 lt_cv_deplibs_check_method=pass_all
15055 lt_cv_deplibs_check_method=pass_all
15058 hpux10.20* | hpux11*)
15059 lt_cv_file_magic_cmd=/usr/bin/file
15062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15063 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15066 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]'
15067 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15071 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15077 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15081 irix5* | irix6* | nonstopux*)
15083 *-32|*"-32 ") libmagic=32-bit;;
15084 *-n32|*"-n32 ") libmagic=N32;;
15085 *-64|*"-64 ") libmagic=64-bit;;
15086 *) libmagic=never-match;;
15088 lt_cv_deplibs_check_method=pass_all
15091 # This must be Linux ELF.
15092 linux* | k*bsd*-gnu)
15093 lt_cv_deplibs_check_method=pass_all
15097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15106 lt_cv_file_magic_cmd=/usr/bin/file
15107 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15111 lt_cv_deplibs_check_method=pass_all
15115 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
15116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15122 osf3* | osf4* | osf5*)
15123 lt_cv_deplibs_check_method=pass_all
15127 lt_cv_deplibs_check_method=pass_all
15131 lt_cv_deplibs_check_method=pass_all
15134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15135 lt_cv_deplibs_check_method=pass_all
15139 case $host_vendor in
15141 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]'
15142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15145 lt_cv_deplibs_check_method=pass_all
15148 lt_cv_file_magic_cmd='/bin/file'
15149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15152 lt_cv_file_magic_cmd='/bin/file'
15153 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
15154 lt_cv_file_magic_test_file=/lib/libc.so
15157 lt_cv_deplibs_check_method=pass_all
15160 lt_cv_deplibs_check_method=pass_all
15166 lt_cv_deplibs_check_method=pass_all
15171 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
15172 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15173 file_magic_cmd=$lt_cv_file_magic_cmd
15174 deplibs_check_method=$lt_cv_deplibs_check_method
15175 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15188 if test -n "$ac_tool_prefix"; then
15189 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15190 set dummy ${ac_tool_prefix}ar; ac_word=$2
15191 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15192 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15193 if test "${ac_cv_prog_AR+set}" = set; then
15194 echo $ECHO_N "(cached
) $ECHO_C" >&6
15196 if test -n "$AR"; then
15197 ac_cv_prog_AR="$AR" # Let the user override the test.
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $PATH
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_prog_AR="${ac_tool_prefix}ar"
15207 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15216 if test -n "$AR"; then
15217 echo "$as_me:$LINENO: result
: $AR" >&5
15218 echo "${ECHO_T}$AR" >&6
15220 echo "$as_me:$LINENO: result
: no
" >&5
15221 echo "${ECHO_T}no
" >&6
15225 if test -z "$ac_cv_prog_AR"; then
15227 # Extract the first word of "ar", so it can be a program name with args.
15228 set dummy ar; ac_word=$2
15229 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15230 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15231 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15232 echo $ECHO_N "(cached
) $ECHO_C" >&6
15234 if test -n "$ac_ct_AR"; then
15235 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_prog_ac_ct_AR="ar"
15245 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15251 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15254 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15255 if test -n "$ac_ct_AR"; then
15256 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15257 echo "${ECHO_T}$ac_ct_AR" >&6
15259 echo "$as_me:$LINENO: result
: no
" >&5
15260 echo "${ECHO_T}no
" >&6
15265 AR="$ac_cv_prog_AR"
15268 test -z "$AR" && AR=ar
15269 test -z "$AR_FLAGS" && AR_FLAGS=cru
15281 if test -n "$ac_tool_prefix"; then
15282 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15283 set dummy ${ac_tool_prefix}strip; ac_word=$2
15284 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15285 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15286 if test "${ac_cv_prog_STRIP+set}" = set; then
15287 echo $ECHO_N "(cached
) $ECHO_C" >&6
15289 if test -n "$STRIP"; then
15290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293 for as_dir in $PATH
15296 test -z "$as_dir" && as_dir=.
15297 for ac_exec_ext in '' $ac_executable_extensions; do
15298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15299 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15300 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15308 STRIP=$ac_cv_prog_STRIP
15309 if test -n "$STRIP"; then
15310 echo "$as_me:$LINENO: result
: $STRIP" >&5
15311 echo "${ECHO_T}$STRIP" >&6
15313 echo "$as_me:$LINENO: result
: no
" >&5
15314 echo "${ECHO_T}no
" >&6
15318 if test -z "$ac_cv_prog_STRIP"; then
15320 # Extract the first word of "strip
", so it can be a program name with args.
15321 set dummy strip; ac_word=$2
15322 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15323 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15324 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15325 echo $ECHO_N "(cached
) $ECHO_C" >&6
15327 if test -n "$ac_ct_STRIP"; then
15328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_prog_ac_ct_STRIP="strip
"
15338 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15344 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15348 if test -n "$ac_ct_STRIP"; then
15349 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15350 echo "${ECHO_T}$ac_ct_STRIP" >&6
15352 echo "$as_me:$LINENO: result
: no
" >&5
15353 echo "${ECHO_T}no
" >&6
15358 STRIP="$ac_cv_prog_STRIP"
15361 test -z "$STRIP" && STRIP=:
15368 if test -n "$ac_tool_prefix"; then
15369 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15371 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15372 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15373 if test "${ac_cv_prog_RANLIB+set}" = set; then
15374 echo $ECHO_N "(cached
) $ECHO_C" >&6
15376 if test -n "$RANLIB"; then
15377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $PATH
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
15385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15387 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15395 RANLIB=$ac_cv_prog_RANLIB
15396 if test -n "$RANLIB"; then
15397 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15398 echo "${ECHO_T}$RANLIB" >&6
15400 echo "$as_me:$LINENO: result
: no
" >&5
15401 echo "${ECHO_T}no
" >&6
15405 if test -z "$ac_cv_prog_RANLIB"; then
15406 ac_ct_RANLIB=$RANLIB
15407 # Extract the first word of "ranlib
", so it can be a program name with args.
15408 set dummy ranlib; ac_word=$2
15409 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15410 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15412 echo $ECHO_N "(cached
) $ECHO_C" >&6
15414 if test -n "$ac_ct_RANLIB"; then
15415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15421 test -z "$as_dir" && as_dir=.
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15424 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15425 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15435 if test -n "$ac_ct_RANLIB"; then
15436 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15439 echo "$as_me:$LINENO: result
: no
" >&5
15440 echo "${ECHO_T}no
" >&6
15443 RANLIB=$ac_ct_RANLIB
15445 RANLIB="$ac_cv_prog_RANLIB"
15448 test -z "$RANLIB" && RANLIB=:
15455 # Determine commands to create old-style static archives.
15456 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15457 old_postinstall_cmds='chmod 644 $oldlib'
15458 old_postuninstall_cmds=
15460 if test -n "$RANLIB"; then
15463 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15466 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15469 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15505 # If no C compiler was specified, use CC.
15508 # If no C compiler flags were specified, use CFLAGS.
15509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15511 # Allow CC to be a program name with arguments.
15515 # Check for command to grab the raw symbol name followed by C symbol from nm.
15516 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15517 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15518 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15519 echo $ECHO_N "(cached
) $ECHO_C" >&6
15522 # These are sane defaults that work on at least a few old systems.
15523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15525 # Character class describing NM global symbol codes.
15526 symcode='[BCDEGRST]'
15528 # Regexp to match symbols that can be accessed directly from C.
15529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15531 # Define system-specific variables.
15536 cygwin* | mingw* | pw32*)
15537 symcode='[ABCDGISTW]'
15540 if test "$host_cpu" = ia64; then
15541 symcode='[ABCDEGRST]'
15544 irix* | nonstopux*)
15545 symcode='[BCDEGRST]'
15548 symcode='[BCDEGQRST]'
15559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15567 # If we're using GNU nm, then use its standard symbol codes.
15568 case `$NM -V 2>&1` in
15569 *GNU* | *'with BFD'*)
15570 symcode='[ABCDGIRSTW]' ;;
15573 # Transform an extracted symbol line into a proper C declaration.
15574 # Some systems (esp. on ia64) link data and code symbols differently,
15575 # so use this general approach.
15576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15578 # Transform an extracted symbol line into symbol name and symbol address
15579 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15581 # Handle CRLF in mingw tool chain
15585 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15589 # Try without a prefix underscore, then with it.
15590 for ac_symprfx in "" "_
"; do
15592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15593 symxfrm="\\1 $ac_symprfx\\2 \\2"
15595 # Write the raw and C identifiers.
15596 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15597 # Fake it for dumpbin and say T for any non-static function
15598 # and D for any global variable.
15599 # Also find C++ and __fastcall symbols from MSVC++,
15600 # which start with @ or ?.
15601 lt_cv_sys_global_symbol_pipe="$AWK '"\
15602 " {last_section=section; section=\$ 3};"\
15603 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15604 " \$ 0!~/External *\|/{next};"\
15605 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15606 " {if(hide[section]) next};"\
15607 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15608 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15609 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15610 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15611 " ' prfx
=^
$ac_symprfx"
15613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15616 # Check to see that the pipe works correctly.
15620 cat > conftest.$ac_ext <<_LT_EOF
15625 void nm_test_func(void);
15626 void nm_test_func(void){}
15630 int main(){nm_test_var='a';nm_test_func();return(0);}
15633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634 (eval $ac_compile) 2>&5
15636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15637 (exit $ac_status); }; then
15638 # Now try to grab the symbols.
15640 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15641 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15644 (exit $ac_status); } && test -s "$nlist"; then
15645 # Try sorting and uniquifying the output.
15646 if sort "$nlist" | uniq > "$nlist"T; then
15647 mv -f "$nlist"T "$nlist"
15652 # Make sure that we snagged all the symbols we need.
15653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15655 cat <<_LT_EOF > conftest.$ac_ext
15661 # Now generate the symbol file.
15662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15664 cat <<_LT_EOF >> conftest.$ac_ext
15666 /* The mapping between symbol names and symbols. */
15671 lt__PROGRAM__LTX_preloaded_symbols[] =
15673 { "@PROGRAM@
", (void *) 0 },
15675 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15676 cat <<\_LT_EOF >> conftest.$ac_ext
15680 /* This works around a problem in FreeBSD linker */
15681 #ifdef FREEBSD_WORKAROUND
15682 static const void *lt_preloaded_setup() {
15683 return lt__PROGRAM__LTX_preloaded_symbols;
15691 # Now try linking the two files.
15692 mv conftest.$ac_objext conftstm.$ac_objext
15693 lt_save_LIBS="$LIBS"
15694 lt_save_CFLAGS="$CFLAGS"
15695 LIBS="conftstm.
$ac_objext"
15696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15698 (eval $ac_link) 2>&5
15700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15701 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15704 LIBS="$lt_save_LIBS"
15705 CFLAGS="$lt_save_CFLAGS"
15707 echo "cannot
find nm_test_func
in $nlist" >&5
15710 echo "cannot
find nm_test_var
in $nlist" >&5
15713 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15716 echo "$progname: failed program was
:" >&5
15717 cat conftest.$ac_ext >&5
15719 rm -f conftest* conftst*
15721 # Do not use the global_symbol_pipe unless it works.
15722 if test "$pipe_works" = yes; then
15725 lt_cv_sys_global_symbol_pipe=
15731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15732 lt_cv_sys_global_symbol_to_cdecl=
15734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15735 echo "$as_me:$LINENO: result
: failed
" >&5
15736 echo "${ECHO_T}failed
" >&6
15738 echo "$as_me:$LINENO: result
: ok
" >&5
15739 echo "${ECHO_T}ok
" >&6
15758 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15759 if test "${enable_libtool_lock+set}" = set; then
15760 enableval="$enable_libtool_lock"
15763 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15765 # Some flags need to be propagated to the compiler or linker for good
15769 # Find out which ABI we are using.
15770 echo 'int i;' > conftest.$ac_ext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772 (eval $ac_compile) 2>&5
15774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15775 (exit $ac_status); }; then
15776 case `/usr/bin/file conftest.$ac_objext` in
15778 HPUX_IA64_MODE="32"
15781 HPUX_IA64_MODE="64"
15788 # Find out which ABI we are using.
15789 echo '#line 15789 "configure
"' > conftest.$ac_ext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15794 (exit $ac_status); }; then
15795 if test "$lt_cv_prog_gnu_ld" = yes; then
15796 case `/usr/bin/file conftest.$ac_objext` in
15798 LD="${LD-ld} -melf32bsmip"
15801 LD="${LD-ld} -melf32bmipn32"
15804 LD="${LD-ld} -melf64bmip"
15808 case `/usr/bin/file conftest.$ac_objext` in
15824 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15825 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15826 # Find out which ABI we are using.
15827 echo 'int i;' > conftest.$ac_ext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>&5
15831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15832 (exit $ac_status); }; then
15833 case `/usr/bin/file conftest.o` in
15836 x86_64-*kfreebsd*-gnu)
15837 LD="${LD-ld} -m elf_i386_fbsd
"
15840 LD="${LD-ld} -m elf_i386
"
15842 ppc64-*linux*|powerpc64-*linux*)
15843 LD="${LD-ld} -m elf32ppclinux
"
15846 LD="${LD-ld} -m elf_s390
"
15849 LD="${LD-ld} -m elf32_sparc
"
15855 x86_64-*kfreebsd*-gnu)
15856 LD="${LD-ld} -m elf_x86_64_fbsd
"
15859 LD="${LD-ld} -m elf_x86_64
"
15861 ppc*-*linux*|powerpc*-*linux*)
15862 LD="${LD-ld} -m elf64ppc
"
15864 s390*-*linux*|s390*-*tpf*)
15865 LD="${LD-ld} -m elf64_s390
"
15868 LD="${LD-ld} -m elf64_sparc
"
15878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15879 SAVE_CFLAGS="$CFLAGS"
15880 CFLAGS="$CFLAGS -belf"
15881 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15882 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15883 if test "${lt_cv_cc_needs_belf+set}" = set; then
15884 echo $ECHO_N "(cached
) $ECHO_C" >&6
15887 ac_cpp='$CPP $CPPFLAGS'
15888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 lt_cv_cc_needs_belf=yes
15931 echo "$as_me: failed program was
:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 lt_cv_cc_needs_belf=no
15936 rm -f conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15939 ac_cpp='$CPP $CPPFLAGS'
15940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15945 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15946 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15947 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15949 CFLAGS="$SAVE_CFLAGS"
15953 # Find out which ABI we are using.
15954 echo 'int i;' > conftest.$ac_ext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956 (eval $ac_compile) 2>&5
15958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15959 (exit $ac_status); }; then
15960 case `/usr/bin/file conftest.o` in
15962 case $lt_cv_prog_gnu_ld in
15963 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15964 *) LD="${LD-ld} -64" ;;
15973 need_locks="$enable_libtool_lock"
15976 for ac_header in dlfcn.h
15978 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15979 echo "$as_me:$LINENO: checking
for $ac_header" >&5
15980 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
15981 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
15982 echo $ECHO_N "(cached
) $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <$ac_header>
15992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
15993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009 if test -z "$ac_cpp_err"; then
16010 eval "$as_ac_Header=yes"
16012 echo "$as_me: failed program was
:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 eval "$as_ac_Header=no
"
16017 rm -f conftest.err conftest.$ac_ext
16019 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
16020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16031 # This can be used to rebuild libtool when needed
16032 LIBTOOL_DEPS="$ltmain"
16034 # Always use our own libtool.
16035 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16061 test -z "$LN_S" && LN_S="ln -s"
16076 if test -n "${ZSH_VERSION+set}" ; then
16077 setopt NO_GLOB_SUBST
16080 echo "$as_me:$LINENO: checking
for objdir
" >&5
16081 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16082 if test "${lt_cv_objdir+set}" = set; then
16083 echo $ECHO_N "(cached
) $ECHO_C" >&6
16085 rm -f .libs 2>/dev/null
16086 mkdir .libs 2>/dev/null
16087 if test -d .libs; then
16090 # MS-DOS does not allow filenames that begin with a dot.
16093 rmdir .libs 2>/dev/null
16095 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16096 echo "${ECHO_T}$lt_cv_objdir" >&6
16097 objdir=$lt_cv_objdir
16103 cat >>confdefs.h <<_ACEOF
16104 #define LT_OBJDIR "$lt_cv_objdir/"
16125 # AIX sometimes has problems with the GCC collect2 program. For some
16126 # reason, if we set the COLLECT_NAMES environment variable, the problems
16127 # vanish in a puff of smoke.
16128 if test "X
${COLLECT_NAMES+set}" != Xset; then
16130 export COLLECT_NAMES
16135 # Sed substitution that helps us do robust quoting. It backslashifies
16136 # metacharacters that are still active within double-quoted strings.
16137 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16139 # Same as above, but do not quote variable references.
16140 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16142 # Sed substitution to delay expansion of an escaped shell variable in a
16143 # double_quote_subst'ed string.
16144 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16146 # Sed substitution to delay expansion of an escaped single quote.
16147 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16149 # Sed substitution to avoid accidental globbing in evaled expressions
16150 no_glob_subst
='s/\*/\\\*/g'
16152 # Global variables:
16154 can_build_shared
=yes
16156 # All known linkers require a `.a' archive for static linking (except MSVC,
16157 # which needs '.lib').
16160 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16163 old_CFLAGS
="$CFLAGS"
16165 # Set sane defaults for various variables
16166 test -z "$CC" && CC
=cc
16167 test -z "$LTCC" && LTCC
=$CC
16168 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16169 test -z "$LD" && LD
=ld
16170 test -z "$ac_objext" && ac_objext
=o
16172 for cc_temp
in $compiler""; do
16174 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16175 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16180 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16183 # Only perform the check for file, if the check method requires it
16184 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16185 case $deplibs_check_method in
16187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16188 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16189 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16198 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16199 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16200 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16201 for ac_dir
in $ac_dummy; do
16203 test -z "$ac_dir" && ac_dir
=.
16204 if test -f $ac_dir/${ac_tool_prefix}file; then
16205 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16206 if test -n "$file_magic_test_file"; then
16207 case $deplibs_check_method in
16209 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16210 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16211 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16212 $EGREP "$file_magic_regex" > /dev
/null
; then
16217 *** Warning: the command libtool uses to detect shared libraries,
16218 *** $file_magic_cmd, produces output that libtool cannot recognize.
16219 *** The result is that libtool may fail to recognize shared libraries
16220 *** as such. This will affect the creation of libtool libraries that
16221 *** depend on shared libraries, but programs linked with such libtool
16222 *** libraries will work regardless of this problem. Nevertheless, you
16223 *** may want to report the problem to your system manager and/or to
16224 *** bug-libtool@gnu.org
16234 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16239 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16240 if test -n "$MAGIC_CMD"; then
16241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16242 echo "${ECHO_T}$MAGIC_CMD" >&6
16244 echo "$as_me:$LINENO: result: no" >&5
16245 echo "${ECHO_T}no" >&6
16252 if test -z "$lt_cv_path_MAGIC_CMD"; then
16253 if test -n "$ac_tool_prefix"; then
16254 echo "$as_me:$LINENO: checking for file" >&5
16255 echo $ECHO_N "checking for file... $ECHO_C" >&6
16256 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16264 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16265 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16266 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16267 for ac_dir
in $ac_dummy; do
16269 test -z "$ac_dir" && ac_dir
=.
16270 if test -f $ac_dir/file; then
16271 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16272 if test -n "$file_magic_test_file"; then
16273 case $deplibs_check_method in
16275 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16276 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16277 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16278 $EGREP "$file_magic_regex" > /dev
/null
; then
16283 *** Warning: the command libtool uses to detect shared libraries,
16284 *** $file_magic_cmd, produces output that libtool cannot recognize.
16285 *** The result is that libtool may fail to recognize shared libraries
16286 *** as such. This will affect the creation of libtool libraries that
16287 *** depend on shared libraries, but programs linked with such libtool
16288 *** libraries will work regardless of this problem. Nevertheless, you
16289 *** may want to report the problem to your system manager and/or to
16290 *** bug-libtool@gnu.org
16300 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16305 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16306 if test -n "$MAGIC_CMD"; then
16307 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16308 echo "${ECHO_T}$MAGIC_CMD" >&6
16310 echo "$as_me:$LINENO: result: no" >&5
16311 echo "${ECHO_T}no" >&6
16324 # Use C for the default configuration in the libtool script
16328 ac_cpp
='$CPP $CPPFLAGS'
16329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16334 # Source file extension for C test sources.
16337 # Object file extension for compiled C test sources.
16341 # Code to be used in simple compile tests
16342 lt_simple_compile_test_code
="int some_variable = 0;"
16344 # Code to be used in simple link tests
16345 lt_simple_link_test_code
='int main(){return(0);}'
16353 # If no C compiler was specified, use CC.
16356 # If no C compiler flags were specified, use CFLAGS.
16357 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16359 # Allow CC to be a program name with arguments.
16362 # Save the default compiler, since it gets overwritten when the other
16363 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16364 compiler_DEFAULT
=$CC
16366 # save warnings/boilerplate of simple test code
16367 ac_outfile
=conftest.
$ac_objext
16368 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16369 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_compiler_boilerplate
=`cat conftest.err`
16373 ac_outfile
=conftest.
$ac_objext
16374 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16375 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16376 _lt_linker_boilerplate
=`cat conftest.err`
16381 ## There is no encapsulation within the following macros, do not change
16382 ## the running order or otherwise move them around unless you know exactly
16383 ## what you are doing...
16384 if test -n "$compiler"; then
16386 lt_prog_compiler_no_builtin_flag
=
16388 if test "$GCC" = yes; then
16389 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16391 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16392 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16393 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 lt_cv_prog_compiler_rtti_exceptions
=no
16397 ac_outfile
=conftest.
$ac_objext
16398 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16399 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16400 # Insert the option either (1) after the last *FLAGS variable, or
16401 # (2) before a word containing "conftest.", or (3) at the end.
16402 # Note that $ac_compile itself does not contain backslashes and begins
16403 # with a dollar sign (not a hyphen), so the echo should work correctly.
16404 # The option is referenced via a variable to avoid confusing sed.
16405 lt_compile
=`echo "$ac_compile" | $SED \
16406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16408 -e 's:$: $lt_compiler_flag:'`
16409 (eval echo "\"\$as_me:16409: $lt_compile\"" >&5)
16410 (eval "$lt_compile" 2>conftest.err
)
16412 cat conftest.err
>&5
16413 echo "$as_me:16413: \$? = $ac_status" >&5
16414 if (exit $ac_status) && test -s "$ac_outfile"; then
16415 # The compiler can only warn and ignore the option if not recognized
16416 # So say no if there are warnings other than the usual output.
16417 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16418 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16419 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16420 lt_cv_prog_compiler_rtti_exceptions
=yes
16426 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16427 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16429 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16430 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16442 lt_prog_compiler_wl
=
16443 lt_prog_compiler_pic
=
16444 lt_prog_compiler_static
=
16446 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16449 if test "$GCC" = yes; then
16450 lt_prog_compiler_wl
='-Wl,'
16451 lt_prog_compiler_static
='-static'
16455 # All AIX code is PIC.
16456 if test "$host_cpu" = ia64
; then
16457 # AIX 5 now supports IA64 processor
16458 lt_prog_compiler_static
='-Bstatic'
16463 if test "$host_cpu" = m68k
; then
16464 # FIXME: we need at least 68020 code to build shared libraries, but
16465 # adding the `-m68020' flag to GCC prevents building anything better,
16467 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16471 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16472 # PIC is the default for these OSes.
16475 mingw
* | cygwin
* | pw32
* | os2
*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16479 # (--disable-auto-import) libraries
16480 lt_prog_compiler_pic
='-DDLL_EXPORT'
16483 darwin
* | rhapsody
*)
16484 # PIC is the default on this platform
16485 # Common symbols not allowed in MH_DYLIB files
16486 lt_prog_compiler_pic
='-fno-common'
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
='-fPIC'
16503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16504 # Instead, we relocate shared libraries at runtime.
16508 # Just because we use GCC doesn't mean we suddenly get shared libraries
16509 # on systems that don't support them.
16510 lt_prog_compiler_can_build_shared
=no
16515 # QNX uses GNU C++, but need to define -shared option too, otherwise
16516 # it will coredump.
16517 lt_prog_compiler_pic
='-fPIC -shared'
16521 if test -d /usr
/nec
; then
16522 lt_prog_compiler_pic
=-Kconform_pic
16527 lt_prog_compiler_pic
='-fPIC'
16531 # PORTME Check for flag to pass linker flags through the system compiler.
16534 lt_prog_compiler_wl
='-Wl,'
16535 if test "$host_cpu" = ia64
; then
16536 # AIX 5 now supports IA64 processor
16537 lt_prog_compiler_static
='-Bstatic'
16539 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16543 # PIC is the default on this platform
16544 # Common symbols not allowed in MH_DYLIB files
16545 case $cc_basename in
16547 lt_prog_compiler_pic
='-qnocommon'
16548 lt_prog_compiler_wl
='-Wl,'
16553 mingw
* | cygwin
* | pw32
* | os2
*)
16554 # This hack is so that the source file can tell whether it is being
16555 # built for inclusion in a dll (and should export symbols for example).
16556 lt_prog_compiler_pic
='-DDLL_EXPORT'
16559 hpux9
* | hpux10
* | hpux11
*)
16560 lt_prog_compiler_wl
='-Wl,'
16561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16562 # not for PA HP-UX.
16568 lt_prog_compiler_pic
='+Z'
16571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16572 lt_prog_compiler_static
='${wl}-a ${wl}archive'
16575 irix5
* | irix6
* | nonstopux
*)
16576 lt_prog_compiler_wl
='-Wl,'
16577 # PIC (with -KPIC) is the default.
16578 lt_prog_compiler_static
='-non_shared'
16581 linux
* | k
*bsd
*-gnu)
16582 case $cc_basename in
16584 lt_prog_compiler_wl
='-Wl,'
16585 lt_prog_compiler_pic
='-KPIC'
16586 lt_prog_compiler_static
='-static'
16588 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl
='-Wl,'
16592 lt_prog_compiler_pic
='-fpic'
16593 lt_prog_compiler_static
='-Bstatic'
16596 lt_prog_compiler_wl
='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static
='-non_shared'
16601 case `$CC -V 2>&1 | sed 5q` in
16604 lt_prog_compiler_pic
='-KPIC'
16605 lt_prog_compiler_static
='-Bstatic'
16606 lt_prog_compiler_wl
='-Wl,'
16609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16610 lt_prog_compiler_pic
='-KPIC'
16611 lt_prog_compiler_static
='-Bstatic'
16612 lt_prog_compiler_wl
=''
16620 lt_prog_compiler_pic
='-KPIC'
16621 lt_prog_compiler_static
='-Bstatic'
16625 # QNX uses GNU C++, but need to define -shared option too, otherwise
16626 # it will coredump.
16627 lt_prog_compiler_pic
='-fPIC -shared'
16630 osf3
* | osf4
* | osf5
*)
16631 lt_prog_compiler_wl
='-Wl,'
16632 # All OSF/1 code is PIC.
16633 lt_prog_compiler_static
='-non_shared'
16637 lt_prog_compiler_static
='-non_shared'
16641 lt_prog_compiler_pic
='-KPIC'
16642 lt_prog_compiler_static
='-Bstatic'
16643 case $cc_basename in
16644 f77
* | f90
* | f95
*)
16645 lt_prog_compiler_wl
='-Qoption ld ';;
16647 lt_prog_compiler_wl
='-Wl,';;
16652 lt_prog_compiler_wl
='-Qoption ld '
16653 lt_prog_compiler_pic
='-PIC'
16654 lt_prog_compiler_static
='-Bstatic'
16657 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16658 lt_prog_compiler_wl
='-Wl,'
16659 lt_prog_compiler_pic
='-KPIC'
16660 lt_prog_compiler_static
='-Bstatic'
16664 if test -d /usr
/nec
;then
16665 lt_prog_compiler_pic
='-Kconform_pic'
16666 lt_prog_compiler_static
='-Bstatic'
16670 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16671 lt_prog_compiler_wl
='-Wl,'
16672 lt_prog_compiler_pic
='-KPIC'
16673 lt_prog_compiler_static
='-Bstatic'
16677 lt_prog_compiler_wl
='-Wl,'
16678 lt_prog_compiler_can_build_shared
=no
16682 lt_prog_compiler_pic
='-pic'
16683 lt_prog_compiler_static
='-Bstatic'
16687 lt_prog_compiler_can_build_shared
=no
16693 # For platforms which do not support PIC, -DPIC is meaningless:
16695 lt_prog_compiler_pic
=
16698 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
16701 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16710 # Check to make sure the PIC flag actually works.
16712 if test -n "$lt_prog_compiler_pic"; then
16713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16714 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16715 if test "${lt_prog_compiler_pic_works+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 lt_prog_compiler_pic_works
=no
16719 ac_outfile
=conftest.
$ac_objext
16720 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16721 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
16722 # Insert the option either (1) after the last *FLAGS variable, or
16723 # (2) before a word containing "conftest.", or (3) at the end.
16724 # Note that $ac_compile itself does not contain backslashes and begins
16725 # with a dollar sign (not a hyphen), so the echo should work correctly.
16726 # The option is referenced via a variable to avoid confusing sed.
16727 lt_compile
=`echo "$ac_compile" | $SED \
16728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730 -e 's:$: $lt_compiler_flag:'`
16731 (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732 (eval "$lt_compile" 2>conftest.err
)
16734 cat conftest.err
>&5
16735 echo "$as_me:16735: \$? = $ac_status" >&5
16736 if (exit $ac_status) && test -s "$ac_outfile"; then
16737 # The compiler can only warn and ignore the option if not recognized
16738 # So say no if there are warnings other than the usual output.
16739 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16740 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16741 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16742 lt_prog_compiler_pic_works
=yes
16748 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16749 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16751 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
16752 case $lt_prog_compiler_pic in
16754 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
16757 lt_prog_compiler_pic
=
16758 lt_prog_compiler_can_build_shared
=no
16769 # Check to make sure the static flag actually works.
16771 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
16772 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16773 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16774 if test "${lt_prog_compiler_static_works+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 lt_prog_compiler_static_works
=no
16778 save_LDFLAGS
="$LDFLAGS"
16779 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16780 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16781 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16782 # The linker can only warn and ignore the option if not recognized
16783 # So say no if there are warnings
16784 if test -s conftest.err
; then
16785 # Append any errors to the config.log.
16786 cat conftest.err
1>&5
16787 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16788 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16789 if diff conftest.exp conftest.er2
>/dev
/null
; then
16790 lt_prog_compiler_static_works
=yes
16793 lt_prog_compiler_static_works
=yes
16797 LDFLAGS
="$save_LDFLAGS"
16800 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16801 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16803 if test x
"$lt_prog_compiler_static_works" = xyes
; then
16806 lt_prog_compiler_static
=
16815 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 lt_cv_prog_compiler_c_o
=no
16821 $RM -r conftest
2>/dev
/null
16825 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16827 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16828 # Insert the option either (1) after the last *FLAGS variable, or
16829 # (2) before a word containing "conftest.", or (3) at the end.
16830 # Note that $ac_compile itself does not contain backslashes and begins
16831 # with a dollar sign (not a hyphen), so the echo should work correctly.
16832 lt_compile
=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837 (eval "$lt_compile" 2>out
/conftest.err
)
16839 cat out
/conftest.err
>&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16843 # The compiler can only warn and ignore the option if not recognized
16844 # So say no if there are warnings
16845 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16846 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16847 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16848 lt_cv_prog_compiler_c_o
=yes
16853 # SGI C++ compiler will create directory out/ii_files/ for
16854 # template instantiation
16855 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16856 $RM out
/* && rmdir out
16862 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16870 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 lt_cv_prog_compiler_c_o
=no
16876 $RM -r conftest
2>/dev
/null
16880 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16882 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16883 # Insert the option either (1) after the last *FLAGS variable, or
16884 # (2) before a word containing "conftest.", or (3) at the end.
16885 # Note that $ac_compile itself does not contain backslashes and begins
16886 # with a dollar sign (not a hyphen), so the echo should work correctly.
16887 lt_compile
=`echo "$ac_compile" | $SED \
16888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16890 -e 's:$: $lt_compiler_flag:'`
16891 (eval echo "\"\$as_me:16891: $lt_compile\"" >&5)
16892 (eval "$lt_compile" 2>out
/conftest.err
)
16894 cat out
/conftest.err
>&5
16895 echo "$as_me:16895: \$? = $ac_status" >&5
16896 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16898 # The compiler can only warn and ignore the option if not recognized
16899 # So say no if there are warnings
16900 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16901 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16902 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16903 lt_cv_prog_compiler_c_o
=yes
16908 # SGI C++ compiler will create directory out/ii_files/ for
16909 # template instantiation
16910 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
16911 $RM out
/* && rmdir out
16917 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16923 hard_links
="nottested"
16924 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
16925 # do not overwrite the value of need_locks provided by the user
16926 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16927 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16930 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16932 ln conftest.a conftest.b
2>&5 || hard_links
=no
16933 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16934 echo "$as_me:$LINENO: result: $hard_links" >&5
16935 echo "${ECHO_T}$hard_links" >&6
16936 if test "$hard_links" = no
; then
16937 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16938 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16950 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16954 allow_undefined_flag
=
16955 always_export_symbols
=no
16957 archive_expsym_cmds
=
16958 compiler_needs_object
=no
16959 enable_shared_with_static_runtimes
=no
16960 export_dynamic_flag_spec
=
16961 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16962 hardcode_automatic
=no
16964 hardcode_direct_absolute
=no
16965 hardcode_libdir_flag_spec
=
16966 hardcode_libdir_flag_spec_ld
=
16967 hardcode_libdir_separator
=
16968 hardcode_minus_L
=no
16969 hardcode_shlibpath_var
=unsupported
16971 link_all_deplibs
=unknown
16973 module_expsym_cmds
=
16974 old_archive_from_new_cmds
=
16975 old_archive_from_expsyms_cmds
=
16976 thread_safe_flag_spec
=
16977 whole_archive_flag_spec
=
16978 # include_expsyms should be a list of space-separated symbols to be *always*
16979 # included in the symbol list
16981 # exclude_expsyms can be an extended regexp of symbols to exclude
16982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16984 # as well as any symbol that contains `d'.
16985 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
16986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16987 # platforms (ab)use it in PIC code, but their linkers get confused if
16988 # the symbol is explicitly referenced. Since portable code cannot
16989 # rely on this symbol name, it's probably fine to never include it in
16990 # preloaded symbol tables.
16991 extract_expsyms_cmds
=
16994 cygwin
* | mingw
* | pw32
*)
16995 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16996 # When not using gcc, we currently assume that we are using
16997 # Microsoft Visual C++.
16998 if test "$GCC" != yes; then
17003 # we just hope/assume this is gcc and not c89 (= MSVC++)
17012 if test "$with_gnu_ld" = yes; then
17013 # If archive_cmds runs LD, not CC, wlarc should be empty
17016 # Set some defaults for GNU ld with shared library support. These
17017 # are reset later if shared libraries are not supported. Putting them
17018 # here allows them to be overridden if necessary.
17019 runpath_var
=LD_RUN_PATH
17020 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17021 export_dynamic_flag_spec
='${wl}--export-dynamic'
17022 # ancient GNU ld didn't support --whole-archive et. al.
17023 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
17024 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17026 whole_archive_flag_spec
=
17028 supports_anon_versioning
=no
17029 case `$LD -v 2>&1` in
17030 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17031 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17032 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17033 *\
2.11.
*) ;; # other 2.11 versions
17034 *) supports_anon_versioning
=yes ;;
17037 # See if GNU ld supports shared libraries.
17040 # On AIX/PPC, the GNU linker is very broken
17041 if test "$host_cpu" != ia64
; then
17045 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17046 *** to be unable to reliably create shared libraries on AIX.
17047 *** Therefore, libtool is disabling shared libraries support. If you
17048 *** really care for shared libraries, you may want to modify your PATH
17049 *** so that a non-GNU linker is found, and then restart.
17056 if test "$host_cpu" = m68k
; then
17057 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)'
17058 hardcode_libdir_flag_spec
='-L$libdir'
17059 hardcode_minus_L
=yes
17062 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17063 # that the semantics of dynamic libraries on AmigaOS, at least up
17064 # to version 4, is to share data among multiple programs linked
17065 # with the same dynamic library. Since this doesn't match the
17066 # behavior of shared libraries on other platforms, we can't use
17072 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17073 allow_undefined_flag
=unsupported
17074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17075 # support --undefined. This deserves some investigation. FIXME
17076 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082 cygwin
* | mingw
* | pw32
*)
17083 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17084 # as there is no search path for DLLs.
17085 hardcode_libdir_flag_spec
='-L$libdir'
17086 allow_undefined_flag
=unsupported
17087 always_export_symbols
=no
17088 enable_shared_with_static_runtimes
=yes
17089 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17091 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17092 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17093 # If the export-symbols file already is a .def file (1st line
17094 # is EXPORTS), use it as is; otherwise, prepend...
17095 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17096 cp $export_symbols $output_objdir/$soname.def;
17098 echo EXPORTS > $output_objdir/$soname.def;
17099 cat $export_symbols >> $output_objdir/$soname.def;
17101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17109 hardcode_shlibpath_var
=no
17110 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17111 export_dynamic_flag_spec
='${wl}-E'
17112 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17113 # Instead, shared libraries are loaded at an image base (0x10000000 by
17114 # default) and relocated if they conflict, which is a slow very memory
17115 # consuming and fragmenting process. To avoid this, we pick a random,
17116 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17117 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17118 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17119 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'
17122 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
17124 if test "$host_os" = linux-dietlibc
; then
17125 case $cc_basename in
17126 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17129 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17130 && test "$tmp_diet" = no
17133 case $cc_basename,$host_cpu in
17134 pgcc
*) # Portland Group C compiler
17135 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'
17136 tmp_addflag
=' $pic_flag'
17138 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17139 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'
17140 tmp_addflag
=' $pic_flag -Mnomain' ;;
17141 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17142 tmp_addflag
=' -i_dynamic' ;;
17143 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17144 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17145 ifc
* | ifort
*) # Intel Fortran compiler
17146 tmp_addflag
=' -nofor_main' ;;
17148 case `$CC -V 2>&1 | sed 5q` in
17149 *Sun\ C
*) # Sun C 5.9
17150 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'
17151 compiler_needs_object
=yes
17152 tmp_sharedflag
='-G' ;;
17153 *Sun\ F
*) # Sun Fortran 8.3
17154 tmp_sharedflag
='-G' ;;
17156 tmp_sharedflag
='-shared' ;;
17158 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160 if test "x$supports_anon_versioning" = xyes
; then
17161 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17163 echo "local: *; };" >> $output_objdir/$libname.ver~
17164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17172 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17173 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17176 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17177 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17182 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17187 *** create shared libraries on Solaris systems. Therefore, libtool
17188 *** is disabling shared libraries support. We urge you to upgrade GNU
17189 *** binutils to release 2.9.1 or newer. Another option is to modify
17190 *** your PATH or compiler configuration so that the native linker is
17191 *** used, and then restart.
17194 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17195 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17202 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17203 case `$LD -v 2>&1` in
17204 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17208 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17209 *** reliably create shared libraries on SCO systems. Therefore, libtool
17210 *** is disabling shared libraries support. We urge you to upgrade GNU
17211 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17212 *** your PATH or compiler configuration so that the native linker is
17213 *** used, and then restart.
17218 # For security reasons, it is highly recommended that you always
17219 # use absolute paths for naming shared libraries, and exclude the
17220 # DT_RUNPATH tag from executables and libraries. But doing so
17221 # requires that you compile everything twice, which is a pain.
17222 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17223 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17225 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17234 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_direct
=yes
17237 hardcode_shlibpath_var
=no
17241 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17242 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17243 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17250 if test "$ld_shlibs" = no
; then
17252 hardcode_libdir_flag_spec
=
17253 export_dynamic_flag_spec
=
17254 whole_archive_flag_spec
=
17257 # PORTME fill in a description of your system's linker (not GNU ld)
17260 allow_undefined_flag
=unsupported
17261 always_export_symbols
=yes
17262 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'
17263 # Note: this linker hardcodes the directories in LIBPATH if there
17264 # are no directories specified by -L.
17265 hardcode_minus_L
=yes
17266 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17267 # Neither direct hardcoding nor static linking is supported with a
17269 hardcode_direct
=unsupported
17274 if test "$host_cpu" = ia64
; then
17275 # On IA64, the linker does run time linking by default, so we don't
17276 # have to do anything special.
17277 aix_use_runtimelinking
=no
17278 exp_sym_flag
='-Bexport'
17281 # If we're using GNU nm, then we don't want the "-C" option.
17282 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17283 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17284 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'
17286 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'
17288 aix_use_runtimelinking
=no
17290 # Test if we are trying to use run time linking or normal
17291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17292 # need to do runtime linking.
17293 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17294 for ld_flag
in $LDFLAGS; do
17295 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17296 aix_use_runtimelinking
=yes
17303 exp_sym_flag
='-bexport'
17304 no_entry_flag
='-bnoentry'
17307 # When large executables or shared objects are built, AIX ld can
17308 # have problems creating the table of contents. If linking a library
17309 # or program results in "error TOC overflow" add -mminimal-toc to
17310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17314 hardcode_direct
=yes
17315 hardcode_direct_absolute
=yes
17316 hardcode_libdir_separator
=':'
17317 link_all_deplibs
=yes
17318 file_list_spec
='${wl}-f,'
17320 if test "$GCC" = yes; then
17321 case $host_os in aix4.
[012]|aix4.
[012].
*)
17322 # We only want to do this on AIX 4.2 and lower, the check
17323 # below for broken collect2 doesn't work under 4.3+
17324 collect2name
=`${CC} -print-prog-name=collect2`
17325 if test -f "$collect2name" &&
17326 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17328 # We have reworked collect2
17331 # We have old collect2
17332 hardcode_direct
=unsupported
17333 # It fails to find uninstalled libraries when the uninstalled
17334 # path is not listed in the libpath. Setting hardcode_minus_L
17335 # to unsupported forces relinking
17336 hardcode_minus_L
=yes
17337 hardcode_libdir_flag_spec
='-L$libdir'
17338 hardcode_libdir_separator
=
17342 shared_flag
='-shared'
17343 if test "$aix_use_runtimelinking" = yes; then
17344 shared_flag
="$shared_flag "'${wl}-G'
17348 if test "$host_cpu" = ia64
; then
17349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17350 # chokes on -Wl,-G. The following line is correct:
17353 if test "$aix_use_runtimelinking" = yes; then
17354 shared_flag
='${wl}-G'
17356 shared_flag
='${wl}-bM:SRE'
17361 # It seems that -bexpall does not export symbols beginning with
17362 # underscore (_), so it is better to generate a list of symbols to export.
17363 always_export_symbols
=yes
17364 if test "$aix_use_runtimelinking" = yes; then
17365 # Warning - without using the other runtime loading flags (-brtl),
17366 # -berok will link without error, but may produce a broken library.
17367 allow_undefined_flag
='-berok'
17368 # Determine the default libpath from the value encoded in an
17369 # empty executable.
17370 cat >conftest.
$ac_ext <<_ACEOF
17373 cat confdefs.h
>>conftest.
$ac_ext
17374 cat >>conftest.
$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17385 rm -f conftest.
$ac_objext conftest
$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387 (eval $ac_link) 2>conftest.er1
17389 grep -v '^ *+' conftest.er1
>conftest.err
17391 cat conftest.err
>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } &&
17394 { ac_try
='test -z "$ac_c_werror_flag"
17395 || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try
='test -s conftest$ac_exeext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17408 lt_aix_libpath_sed
='
17409 /Import File Strings/,/^$/ {
17415 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17416 # Check for a 64-bit object if we didn't find anything.
17417 if test -z "$aix_libpath"; then
17418 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.
$ac_ext >&5
17425 rm -f conftest.err conftest.
$ac_objext \
17426 conftest
$ac_exeext conftest.
$ac_ext
17427 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17429 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17430 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"
17432 if test "$host_cpu" = ia64
; then
17433 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17434 allow_undefined_flag
="-z nodefs"
17435 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"
17437 # Determine the default libpath from the value encoded in an
17438 # empty executable.
17439 cat >conftest.
$ac_ext <<_ACEOF
17442 cat confdefs.h
>>conftest.
$ac_ext
17443 cat >>conftest.
$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17454 rm -f conftest.
$ac_objext conftest
$ac_exeext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17456 (eval $ac_link) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1
>conftest.err
17460 cat conftest.err
>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try
='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try
='test -s conftest$ac_exeext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17477 lt_aix_libpath_sed
='
17478 /Import File Strings/,/^$/ {
17484 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17485 # Check for a 64-bit object if we didn't find anything.
17486 if test -z "$aix_libpath"; then
17487 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.
$ac_ext >&5
17494 rm -f conftest.err conftest.
$ac_objext \
17495 conftest
$ac_exeext conftest.
$ac_ext
17496 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17498 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17499 # Warning - without using the other run time loading flags,
17500 # -berok will link without error, but may produce a broken library.
17501 no_undefined_flag
=' ${wl}-bernotok'
17502 allow_undefined_flag
=' ${wl}-berok'
17503 # Exported symbols can be pulled into shared objects from archives
17504 whole_archive_flag_spec
='$convenience'
17505 archive_cmds_need_lc
=yes
17506 # This is similar to how AIX traditionally builds its shared libraries.
17507 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'
17513 if test "$host_cpu" = m68k
; then
17514 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)'
17515 hardcode_libdir_flag_spec
='-L$libdir'
17516 hardcode_minus_L
=yes
17518 # see comment about different semantics on the GNU ld section
17523 export_dynamic_flag_spec
=-rdynamic
17526 cygwin
* | mingw
* | pw32
*)
17527 # When not using gcc, we currently assume that we are using
17528 # Microsoft Visual C++.
17529 # hardcode_libdir_flag_spec is actually meaningless, as there is
17530 # no search path for DLLs.
17531 hardcode_libdir_flag_spec
=' '
17532 allow_undefined_flag
=unsupported
17533 # Tell ltmain to make .lib files, not .a files.
17535 # Tell ltmain to make .dll files, not .so files.
17537 # FIXME: Setting linknames here is a bad hack.
17538 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17539 # The linker will automatically build a .lib file if we build a DLL.
17540 old_archive_from_new_cmds
='true'
17541 # FIXME: Should let the user specify the lib program.
17542 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17543 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17544 enable_shared_with_static_runtimes
=yes
17547 darwin
* | rhapsody
*)
17549 rhapsody
* | darwin1.
[012])
17550 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
17553 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17555 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17558 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
17563 archive_cmds_need_lc
=no
17565 hardcode_automatic
=yes
17566 hardcode_shlibpath_var
=unsupported
17567 whole_archive_flag_spec
=''
17568 link_all_deplibs
=yes
17569 if test "$GCC" = yes ; then
17570 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 lt_cv_apple_cc_single_mod
=no
17574 if test -z "${LT_MULTI_MODULE}"; then
17575 # By default we will add the -single_module flag. You can override
17576 # by either setting the environment variable LT_MULTI_MODULE
17577 # non-empty at configure time, or by adding -multi-module to the
17579 echo "int foo(void){return 1;}" > conftest.c
17580 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17581 -dynamiclib ${wl}-single_module conftest.c
17582 if test -f libconftest.dylib
; then
17583 lt_cv_apple_cc_single_mod
=yes
17584 rm libconftest.dylib
17586 rm conftest.
$ac_ext
17590 output_verbose_link_cmd
=echo
17591 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
17592 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17593 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}'
17595 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17596 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}'
17598 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17599 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}'
17601 case $cc_basename in
17603 output_verbose_link_cmd
=echo
17604 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17605 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17607 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}'
17608 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}'
17618 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619 hardcode_libdir_flag_spec
='-L$libdir'
17620 hardcode_shlibpath_var
=no
17627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17628 # support. Future versions do this automatically, but an explicit c++rt0.o
17629 # does not break anything, and helps significantly (at the cost of a little
17632 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17633 hardcode_libdir_flag_spec
='-R$libdir'
17634 hardcode_direct
=yes
17635 hardcode_shlibpath_var
=no
17638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17640 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17641 hardcode_direct
=yes
17642 hardcode_minus_L
=yes
17643 hardcode_shlibpath_var
=no
17646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17647 freebsd
* | dragonfly
*)
17648 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17649 hardcode_libdir_flag_spec
='-R$libdir'
17650 hardcode_direct
=yes
17651 hardcode_shlibpath_var
=no
17655 if test "$GCC" = yes; then
17656 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'
17658 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'
17660 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17661 hardcode_libdir_separator
=:
17662 hardcode_direct
=yes
17664 # hardcode_minus_L: Not really in the search PATH,
17665 # but as the default location of the library.
17666 hardcode_minus_L
=yes
17667 export_dynamic_flag_spec
='${wl}-E'
17671 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17672 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17674 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17676 if test "$with_gnu_ld" = no
; then
17677 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17678 hardcode_libdir_flag_spec_ld
='+b $libdir'
17679 hardcode_libdir_separator
=:
17680 hardcode_direct
=yes
17681 hardcode_direct_absolute
=yes
17682 export_dynamic_flag_spec
='${wl}-E'
17683 # hardcode_minus_L: Not really in the search PATH,
17684 # but as the default location of the library.
17685 hardcode_minus_L
=yes
17690 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17693 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17696 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17699 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17715 if test "$with_gnu_ld" = no
; then
17716 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17717 hardcode_libdir_separator
=:
17722 hardcode_shlibpath_var
=no
17725 hardcode_direct
=yes
17726 hardcode_direct_absolute
=yes
17727 export_dynamic_flag_spec
='${wl}-E'
17729 # hardcode_minus_L: Not really in the search PATH,
17730 # but as the default location of the library.
17731 hardcode_minus_L
=yes
17737 irix5
* | irix6
* | nonstopux
*)
17738 if test "$GCC" = yes; then
17739 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'
17740 # Try to use the -exported_symbol ld option, if it does not
17741 # work, assume that -exports_file does not work either and
17742 # implicitly export all symbols.
17743 save_LDFLAGS
="$LDFLAGS"
17744 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17745 cat >conftest.
$ac_ext <<_ACEOF
17748 rm -f conftest.
$ac_objext conftest
$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1
>conftest.err
17754 cat conftest.err
>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try
='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try
='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 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'
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.
$ac_ext >&5
17777 rm -f conftest.err conftest.
$ac_objext \
17778 conftest
$ac_exeext conftest.
$ac_ext
17779 LDFLAGS
="$save_LDFLAGS"
17781 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'
17782 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'
17784 archive_cmds_need_lc
='no'
17785 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17786 hardcode_libdir_separator
=:
17788 link_all_deplibs
=yes
17792 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17793 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17795 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17797 hardcode_libdir_flag_spec
='-R$libdir'
17798 hardcode_direct
=yes
17799 hardcode_shlibpath_var
=no
17803 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17804 hardcode_direct
=yes
17805 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17806 hardcode_libdir_separator
=:
17807 hardcode_shlibpath_var
=no
17814 hardcode_direct
=yes
17815 hardcode_shlibpath_var
=no
17816 hardcode_direct_absolute
=yes
17817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17818 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17820 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17821 export_dynamic_flag_spec
='${wl}-E'
17824 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17825 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17826 hardcode_libdir_flag_spec
='-R$libdir'
17829 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17830 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17837 hardcode_libdir_flag_spec
='-L$libdir'
17838 hardcode_minus_L
=yes
17839 allow_undefined_flag
=unsupported
17840 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'
17841 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17845 if test "$GCC" = yes; then
17846 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17847 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'
17849 allow_undefined_flag
=' -expect_unresolved \*'
17850 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'
17852 archive_cmds_need_lc
='no'
17853 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator
=:
17857 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17858 if test "$GCC" = yes; then
17859 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17860 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'
17861 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17863 allow_undefined_flag
=' -expect_unresolved \*'
17864 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'
17865 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~
17866 $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'
17868 # Both c and cxx compiler support -rpath directly
17869 hardcode_libdir_flag_spec
='-rpath $libdir'
17871 archive_cmds_need_lc
='no'
17872 hardcode_libdir_separator
=:
17876 no_undefined_flag
=' -z defs'
17877 if test "$GCC" = yes; then
17879 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17880 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17881 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17883 case `$CC -V 2>&1` in
17886 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17887 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17892 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17894 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17898 hardcode_libdir_flag_spec
='-R$libdir'
17899 hardcode_shlibpath_var
=no
17901 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17903 # The compiler driver will combine and reorder linker options,
17904 # but understands `-z linker_flag'. GCC discards it without `$wl',
17905 # but is careful enough not to reorder.
17906 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907 if test "$GCC" = yes; then
17908 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17910 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17914 link_all_deplibs
=yes
17918 if test "x$host_vendor" = xsequent
; then
17919 # Use $CC to link under sequent, because it throws in some extra .o
17920 # files that make .init and .fini sections work.
17921 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17923 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17925 hardcode_libdir_flag_spec
='-L$libdir'
17926 hardcode_direct
=yes
17927 hardcode_minus_L
=yes
17928 hardcode_shlibpath_var
=no
17932 case $host_vendor in
17934 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17935 hardcode_direct
=yes # is this really true???
17938 ## LD is ld it makes a PLAMLIB
17939 ## CC just makes a GrossModule.
17940 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17941 reload_cmds
='$CC -r -o $output$reload_objs'
17945 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17946 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17949 runpath_var
='LD_RUN_PATH'
17950 hardcode_shlibpath_var
=no
17954 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17955 hardcode_shlibpath_var
=no
17956 export_dynamic_flag_spec
='-Bexport'
17960 if test -d /usr
/nec
; then
17961 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17962 hardcode_shlibpath_var
=no
17963 runpath_var
=LD_RUN_PATH
17964 hardcode_runpath_var
=yes
17969 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17970 no_undefined_flag
='${wl}-z,text'
17971 archive_cmds_need_lc
=no
17972 hardcode_shlibpath_var
=no
17973 runpath_var
='LD_RUN_PATH'
17975 if test "$GCC" = yes; then
17976 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 sysv5
* | sco3.2v5
* | sco5v6
*)
17985 # Note: We can NOT use -z defs as we might desire, because we do not
17986 # link with -lc, and that would cause any symbols used from libc to
17987 # always be unresolved, which means just about no library would
17988 # ever link correctly. If we're not using GNU ld we use -z text
17989 # though, which does catch some bad symbols but isn't as heavy-handed
17991 no_undefined_flag
='${wl}-z,text'
17992 allow_undefined_flag
='${wl}-z,nodefs'
17993 archive_cmds_need_lc
=no
17994 hardcode_shlibpath_var
=no
17995 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17996 hardcode_libdir_separator
=':'
17997 link_all_deplibs
=yes
17998 export_dynamic_flag_spec
='${wl}-Bexport'
17999 runpath_var
='LD_RUN_PATH'
18001 if test "$GCC" = yes; then
18002 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18012 hardcode_libdir_flag_spec
='-L$libdir'
18013 hardcode_shlibpath_var
=no
18021 if test x
$host_vendor = xsni
; then
18023 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18024 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18030 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18031 echo "${ECHO_T}$ld_shlibs" >&6
18032 test "$ld_shlibs" = no
&& can_build_shared
=no
18034 with_gnu_ld
=$with_gnu_ld
18051 # Do we need to explicitly link libc?
18053 case "x$archive_cmds_need_lc" in
18055 # Assume -lc should be added
18056 archive_cmds_need_lc
=yes
18058 if test "$enable_shared" = yes && test "$GCC" = yes; then
18059 case $archive_cmds in
18061 # FIXME: we may have to deal with multi-command sequences.
18064 # Test whether the compiler implicitly links with -lc since on some
18065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18066 # to ld, don't add -lc before -lgcc.
18067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18070 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073 (eval $ac_compile) 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } 2>conftest.err
; then
18079 libobjs
=conftest.
$ac_objext
18081 wl
=$lt_prog_compiler_wl
18082 pic_flag
=$lt_prog_compiler_pic
18088 lt_save_allow_undefined_flag
=$allow_undefined_flag
18089 allow_undefined_flag
=
18090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18091 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }
18096 archive_cmds_need_lc
=no
18098 archive_cmds_need_lc
=yes
18100 allow_undefined_flag
=$lt_save_allow_undefined_flag
18102 cat conftest.err
1>&5
18105 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18106 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18269 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18270 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18272 if test "$withGCC" = yes; then
18274 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18275 *) lt_awk_arg
="/^libraries:/" ;;
18277 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18278 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18279 # if the path contains ";" then we assume it to be the separator
18280 # otherwise default to the standard path separator (i.e. ":") - it is
18281 # assumed that no part of a normal pathname contains ";" but that should
18282 # okay in the real world where ";" in dirpaths is itself problematic.
18283 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18285 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18287 # Ok, now we have the path, separated by spaces, we can step through it
18288 # and add multilib dir if necessary.
18289 lt_tmp_lt_search_path_spec
=
18290 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18291 for lt_sys_path
in $lt_search_path_spec; do
18292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18293 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18295 test -d "$lt_sys_path" && \
18296 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18299 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18300 BEGIN {RS=" "; FS="/|\n";} {
18303 for (lt_i = NF; lt_i > 0; lt_i--) {
18304 if ($lt_i != "" && $lt_i != ".") {
18305 if ($lt_i == "..") {
18308 if (lt_count == 0) {
18309 lt_foo="/" $lt_i lt_foo;
18316 if (lt_foo != "") { lt_freq[lt_foo]++; }
18317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18319 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18321 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18323 library_names_spec
=
18324 libname_spec
='lib$name'
18328 postuninstall_cmds
=
18332 shlibpath_overrides_runpath
=unknown
18334 dynamic_linker
="$host_os ld.so"
18335 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18336 need_lib_prefix
=unknown
18337 hardcode_into_libs
=no
18339 # when you set need_version to no, make sure it does not cause -set_version
18340 # flags to be left without arguments
18341 need_version
=unknown
18346 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18347 shlibpath_var
=LIBPATH
18349 # AIX 3 has no versioning support, so we append a major version to the name.
18350 soname_spec
='${libname}${release}${shared_ext}$major'
18357 hardcode_into_libs
=yes
18358 if test "$host_cpu" = ia64
; then
18359 # AIX 5 supports IA64
18360 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18361 shlibpath_var
=LD_LIBRARY_PATH
18363 # With GCC up to 2.95.x, collect2 would create an import file
18364 # for dependence libraries. The import file would start with
18365 # the line `#! .'. This would cause the generated library to
18366 # depend on `.', always an invalid library. This was fixed in
18367 # development snapshots of GCC prior to 3.0.
18369 aix4 | aix4.
[01] | aix4.
[01].
*)
18370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18372 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18375 can_build_shared
=no
18379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18380 # soname into executable. Probably we can add versioning support to
18381 # collect2, so additional links can be useful in future.
18382 if test "$aix_use_runtimelinking" = yes; then
18383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18384 # instead of lib<name>.a to let people know that these are not
18385 # typical AIX shared libraries.
18386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 # We preserve .a as extension for shared libraries through AIX4.2
18389 # and later when we are not doing run time linking.
18390 library_names_spec
='${libname}${release}.a $libname.a'
18391 soname_spec
='${libname}${release}${shared_ext}$major'
18393 shlibpath_var
=LIBPATH
18398 if test "$host_cpu" = m68k
; then
18399 library_names_spec
='$libname.ixlibrary $libname.a'
18400 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18401 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'
18408 library_names_spec
='${libname}${shared_ext}'
18409 dynamic_linker
="$host_os ld.so"
18410 shlibpath_var
=LIBRARY_PATH
18416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417 soname_spec
='${libname}${release}${shared_ext}$major'
18418 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18419 shlibpath_var
=LD_LIBRARY_PATH
18420 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18421 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18422 # the default ld.so.conf also contains /usr/contrib/lib and
18423 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18424 # libtool to hard-code these into programs
18427 cygwin
* | mingw
* | pw32
*)
18428 version_type
=windows
18433 case $withGCC,$host_os in
18434 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18435 library_names_spec
='$libname.dll.a'
18436 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18437 postinstall_cmds
='base_file=`basename \${file}`~
18438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18439 dldir=$destdir/`dirname \$dlpath`~
18440 test -d \$dldir || mkdir -p \$dldir~
18441 $install_prog $dir/$dlname \$dldir/$dlname~
18442 chmod a+x \$dldir/$dlname~
18443 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18444 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18446 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18447 dlpath=$dir/\$dldll~
18449 shlibpath_overrides_runpath
=yes
18453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18454 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18455 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18458 # MinGW DLLs use traditional 'lib' prefix
18459 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18460 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18461 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18462 # It is most probably a Windows format PATH printed by
18463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18464 # path with ; separators, and with drive letters. We can handle the
18465 # drive letters (cygwin fileutils understands them), so leave them,
18466 # especially as we might pass files found there to a mingw objdump,
18467 # which wouldn't understand a cygwinified path. Ahh.
18468 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18470 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18474 # pw32 DLLs use 'pw' prefix rather than 'lib'
18475 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18481 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18484 dynamic_linker
='Win32 ld.exe'
18485 # FIXME: first we should search . and the directory the executable is in
18489 darwin
* | rhapsody
*)
18490 dynamic_linker
="$host_os dyld"
18491 version_type
=darwin
18494 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18495 soname_spec
='${libname}${release}${major}$shared_ext'
18496 shlibpath_overrides_runpath
=yes
18497 shlibpath_var
=DYLD_LIBRARY_PATH
18498 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18500 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18501 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18509 soname_spec
='${libname}${release}${shared_ext}$major'
18510 shlibpath_var
=LD_LIBRARY_PATH
18517 freebsd
* | dragonfly
*)
18518 # DragonFly does not have aout. When/if they implement a new
18519 # versioning mechanism, adjust this.
18520 if test -x /usr
/bin
/objformat
; then
18521 objformat
=`/usr/bin/objformat`
18524 freebsd
[123]*) objformat
=aout
;;
18525 *) objformat
=elf
;;
18528 version_type
=freebsd-
$objformat
18529 case $version_type in
18531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18536 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18540 shlibpath_var
=LD_LIBRARY_PATH
18543 shlibpath_overrides_runpath
=yes
18545 freebsd3.
[01]* | freebsdelf3.
[01]*)
18546 shlibpath_overrides_runpath
=yes
18547 hardcode_into_libs
=yes
18549 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18550 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18551 shlibpath_overrides_runpath
=no
18552 hardcode_into_libs
=yes
18554 *) # from 4.6 on, and DragonFly
18555 shlibpath_overrides_runpath
=yes
18556 hardcode_into_libs
=yes
18565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18566 soname_spec
='${libname}${release}${shared_ext}$major'
18567 shlibpath_var
=LD_LIBRARY_PATH
18568 hardcode_into_libs
=yes
18571 hpux9
* | hpux10
* | hpux11
*)
18572 # Give a soname corresponding to the major version so that dld.sl refuses to
18573 # link against other versions.
18580 hardcode_into_libs
=yes
18581 dynamic_linker
="$host_os dld.so"
18582 shlibpath_var
=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 soname_spec
='${libname}${release}${shared_ext}$major'
18586 if test "X$HPUX_IA64_MODE" = X32
; then
18587 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18589 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18591 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18595 hardcode_into_libs
=yes
18596 dynamic_linker
="$host_os dld.sl"
18597 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18598 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600 soname_spec
='${libname}${release}${shared_ext}$major'
18601 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18602 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18606 dynamic_linker
="$host_os dld.sl"
18607 shlibpath_var
=SHLIB_PATH
18608 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610 soname_spec
='${libname}${release}${shared_ext}$major'
18613 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18614 postinstall_cmds
='chmod 555 $lib'
18621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18622 soname_spec
='${libname}${release}${shared_ext}$major'
18623 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18624 shlibpath_var
=LD_LIBRARY_PATH
18625 shlibpath_overrides_runpath
=no
18626 hardcode_into_libs
=yes
18629 irix5
* | irix6
* | nonstopux
*)
18631 nonstopux
*) version_type
=nonstopux
;;
18633 if test "$lt_cv_prog_gnu_ld" = yes; then
18641 soname_spec
='${libname}${release}${shared_ext}$major'
18642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18644 irix5
* | nonstopux
*)
18645 libsuff
= shlibsuff
=
18648 case $LD in # libtool.m4 will add one of these switches to LD
18649 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18650 libsuff
= shlibsuff
= libmagic
=32-bit;;
18651 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18652 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18653 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18654 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18655 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18659 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18660 shlibpath_overrides_runpath
=no
18661 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18662 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18663 hardcode_into_libs
=yes
18666 # No shared lib support for Linux oldld, aout, or coff.
18667 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18671 # This must be Linux ELF.
18672 linux
* | k
*bsd
*-gnu)
18676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 soname_spec
='${libname}${release}${shared_ext}$major'
18678 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18679 shlibpath_var
=LD_LIBRARY_PATH
18680 shlibpath_overrides_runpath
=no
18681 # Some binutils ld are patched to set DT_RUNPATH
18682 save_LDFLAGS
=$LDFLAGS
18683 save_libdir
=$libdir
18684 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18685 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18686 cat >conftest.
$ac_ext <<_ACEOF
18689 cat confdefs.h
>>conftest.
$ac_ext
18690 cat >>conftest.
$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18701 rm -f conftest.
$ac_objext conftest
$ac_exeext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1
>conftest.err
18707 cat conftest.err
>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try
='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try
='test -s conftest$ac_exeext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
18724 shlibpath_overrides_runpath
=yes
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.
$ac_ext >&5
18732 rm -f conftest.err conftest.
$ac_objext \
18733 conftest
$ac_exeext conftest.
$ac_ext
18734 LDFLAGS
=$save_LDFLAGS
18735 libdir
=$save_libdir
18737 # This implies no fast_install, which is unacceptable.
18738 # Some rework will be needed to allow for fast_install
18739 # before this can be enabled.
18740 hardcode_into_libs
=yes
18742 # Append ld.so.conf contents to the search path
18743 if test -f /etc
/ld.so.conf
; then
18744 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' ' '`
18745 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18748 # We used to test for /lib/ld.so.1 and disable shared libraries on
18749 # powerpc, because MkLinux only supported shared libraries with the
18750 # GNU dynamic linker. Since this was broken with cross compilers,
18751 # most powerpc-linux boxes support dynamic linking these days and
18752 # people can always --disable-shared, the test was removed, and we
18753 # assume the GNU/Linux dynamic linker is in use.
18754 dynamic_linker
='GNU/Linux ld.so'
18761 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18763 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18764 dynamic_linker
='NetBSD (a.out) ld.so'
18766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18767 soname_spec
='${libname}${release}${shared_ext}$major'
18768 dynamic_linker
='NetBSD ld.elf_so'
18770 shlibpath_var
=LD_LIBRARY_PATH
18771 shlibpath_overrides_runpath
=yes
18772 hardcode_into_libs
=yes
18777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778 shlibpath_var
=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath
=yes
18786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787 soname_spec
='${libname}${release}${shared_ext}$major'
18788 shlibpath_var
=LD_LIBRARY_PATH
18789 shlibpath_overrides_runpath
=no
18790 hardcode_into_libs
=yes
18791 dynamic_linker
='ldqnx.so'
18796 sys_lib_dlsearch_path_spec
="/usr/lib"
18798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18800 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18801 *) need_version
=no
;;
18803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18804 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18805 shlibpath_var
=LD_LIBRARY_PATH
18806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18808 openbsd2.
[89] | openbsd2.
[89].
*)
18809 shlibpath_overrides_runpath
=no
18812 shlibpath_overrides_runpath
=yes
18816 shlibpath_overrides_runpath
=yes
18821 libname_spec
='$name'
18824 library_names_spec
='$libname${shared_ext} $libname.a'
18825 dynamic_linker
='OS/2 ld.exe'
18826 shlibpath_var
=LIBPATH
18829 osf3
* | osf4
* | osf5
*)
18833 soname_spec
='${libname}${release}${shared_ext}$major'
18834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18835 shlibpath_var
=LD_LIBRARY_PATH
18836 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18837 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18848 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 soname_spec
='${libname}${release}${shared_ext}$major'
18850 shlibpath_var
=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath
=yes
18852 hardcode_into_libs
=yes
18853 # ldd complains unless libraries are executable
18854 postinstall_cmds
='chmod +x $lib'
18859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18860 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18861 shlibpath_var
=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath
=yes
18863 if test "$with_gnu_ld" = yes; then
18871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec
='${libname}${release}${shared_ext}$major'
18873 shlibpath_var
=LD_LIBRARY_PATH
18874 case $host_vendor in
18876 shlibpath_overrides_runpath
=no
18878 runpath_var
=LD_RUN_PATH
18886 shlibpath_overrides_runpath
=no
18887 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18893 if test -d /usr
/nec
;then
18895 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18896 soname_spec
='$libname${shared_ext}.$major'
18897 shlibpath_var
=LD_LIBRARY_PATH
18901 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18902 version_type
=freebsd-elf
18905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18906 soname_spec
='${libname}${release}${shared_ext}$major'
18907 shlibpath_var
=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath
=yes
18909 hardcode_into_libs
=yes
18910 if test "$with_gnu_ld" = yes; then
18911 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18913 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18916 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18920 sys_lib_dlsearch_path_spec
='/usr/lib'
18924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18928 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 shlibpath_var
=LD_LIBRARY_PATH
18930 shlibpath_overrides_runpath
=no
18931 hardcode_into_libs
=yes
18936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18937 soname_spec
='${libname}${release}${shared_ext}$major'
18938 shlibpath_var
=LD_LIBRARY_PATH
18945 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18946 echo "${ECHO_T}$dynamic_linker" >&6
18947 test "$dynamic_linker" = no
&& can_build_shared
=no
18949 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18950 if test "$GCC" = yes; then
18951 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19040 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19041 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19043 if test -n "$hardcode_libdir_flag_spec" ||
19044 test -n "$runpath_var" ||
19045 test "X$hardcode_automatic" = "Xyes" ; then
19047 # We can hardcode non-existent directories.
19048 if test "$hardcode_direct" != no
&&
19049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19050 # have to relink, otherwise we might link with an installed library
19051 # when we should be linking with a yet-to-be-installed one
19052 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19053 test "$hardcode_minus_L" != no
; then
19054 # Linking always hardcodes the temporary library directory.
19055 hardcode_action
=relink
19057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19058 hardcode_action
=immediate
19061 # We cannot hardcode anything, or else we can only hardcode existing
19063 hardcode_action
=unsupported
19065 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19066 echo "${ECHO_T}$hardcode_action" >&6
19068 if test "$hardcode_action" = relink ||
19069 test "$inherit_rpath" = yes; then
19070 # Fast installation is not supported
19071 enable_fast_install
=no
19072 elif test "$shlibpath_overrides_runpath" = yes ||
19073 test "$enable_shared" = no
; then
19074 # Fast installation is not necessary
19075 enable_fast_install
=needless
19083 if test "x$enable_dlopen" != xyes
; then
19084 enable_dlopen
=unknown
19085 enable_dlopen_self
=unknown
19086 enable_dlopen_self_static
=unknown
19093 lt_cv_dlopen
="load_add_on"
19095 lt_cv_dlopen_self
=yes
19099 lt_cv_dlopen
="LoadLibrary"
19104 lt_cv_dlopen
="dlopen"
19109 # if libdl is installed we need to link against it
19110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 ac_check_lib_save_LIBS
=$LIBS
19117 cat >conftest.
$ac_ext <<_ACEOF
19120 cat confdefs.h
>>conftest.
$ac_ext
19121 cat >>conftest.
$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19139 rm -f conftest.
$ac_objext conftest
$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1
>conftest.err
19145 cat conftest.err
>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try
='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try
='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_dl_dlopen
=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.
$ac_ext >&5
19166 ac_cv_lib_dl_dlopen
=no
19168 rm -f conftest.err conftest.
$ac_objext \
19169 conftest
$ac_exeext conftest.
$ac_ext
19170 LIBS
=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19174 if test $ac_cv_lib_dl_dlopen = yes; then
19175 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19178 lt_cv_dlopen
="dyld"
19180 lt_cv_dlopen_self
=yes
19187 echo "$as_me:$LINENO: checking for shl_load" >&5
19188 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19189 if test "${ac_cv_func_shl_load+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 cat >conftest.
$ac_ext <<_ACEOF
19195 cat confdefs.h
>>conftest.
$ac_ext
19196 cat >>conftest.
$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19200 #define shl_load innocuous_shl_load
19202 /* System header to define __stub macros and hopefully few prototypes,
19203 which can conflict with char shl_load (); below.
19204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19205 <limits.h> exists even on freestanding compilers. */
19208 # include <limits.h>
19210 # include <assert.h>
19215 /* Override any gcc2 internal prototype to avoid an error. */
19220 /* We use char because int might match the return type of a gcc2
19221 builtin and then its argument prototype would still apply. */
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19229 char (*f) () = shl_load;
19238 return f != shl_load;
19243 rm -f conftest.
$ac_objext conftest
$ac_exeext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19245 (eval $ac_link) 2>conftest.er1
19247 grep -v '^ *+' conftest.er1
>conftest.err
19249 cat conftest.err
>&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try
='test -z "$ac_c_werror_flag"
19253 || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try
='test -s conftest$ac_exeext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_cv_func_shl_load
=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.
$ac_ext >&5
19270 ac_cv_func_shl_load
=no
19272 rm -f conftest.err conftest.
$ac_objext \
19273 conftest
$ac_exeext conftest.
$ac_ext
19275 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19276 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19277 if test $ac_cv_func_shl_load = yes; then
19278 lt_cv_dlopen
="shl_load"
19280 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19281 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19282 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 ac_check_lib_save_LIBS
=$LIBS
19287 cat >conftest.
$ac_ext <<_ACEOF
19290 cat confdefs.h
>>conftest.
$ac_ext
19291 cat >>conftest.
$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19294 /* Override any gcc2 internal prototype to avoid an error. */
19298 /* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19309 rm -f conftest.
$ac_objext conftest
$ac_exeext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19311 (eval $ac_link) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1
>conftest.err
19315 cat conftest.err
>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try
='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try
='test -s conftest$ac_exeext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_lib_dld_shl_load
=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.
$ac_ext >&5
19336 ac_cv_lib_dld_shl_load
=no
19338 rm -f conftest.err conftest.
$ac_objext \
19339 conftest
$ac_exeext conftest.
$ac_ext
19340 LIBS
=$ac_check_lib_save_LIBS
19342 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19343 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19344 if test $ac_cv_lib_dld_shl_load = yes; then
19345 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
19347 echo "$as_me:$LINENO: checking for dlopen" >&5
19348 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19349 if test "${ac_cv_func_dlopen+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 cat >conftest.
$ac_ext <<_ACEOF
19355 cat confdefs.h
>>conftest.
$ac_ext
19356 cat >>conftest.
$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19360 #define dlopen innocuous_dlopen
19362 /* System header to define __stub macros and hopefully few prototypes,
19363 which can conflict with char dlopen (); below.
19364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 <limits.h> exists even on freestanding compilers. */
19368 # include <limits.h>
19370 # include <assert.h>
19375 /* Override any gcc2 internal prototype to avoid an error. */
19380 /* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19383 /* The GNU C library defines this for functions which it implements
19384 to always fail with ENOSYS. Some functions are actually named
19385 something starting with __ and the normal name is an alias. */
19386 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19389 char (*f) () = dlopen;
19398 return f != dlopen;
19403 rm -f conftest.
$ac_objext conftest
$ac_exeext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19405 (eval $ac_link) 2>conftest.er1
19407 grep -v '^ *+' conftest.er1
>conftest.err
19409 cat conftest.err
>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try
='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try
='test -s conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_cv_func_dlopen
=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.
$ac_ext >&5
19430 ac_cv_func_dlopen
=no
19432 rm -f conftest.err conftest.
$ac_objext \
19433 conftest
$ac_exeext conftest.
$ac_ext
19435 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19436 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19437 if test $ac_cv_func_dlopen = yes; then
19438 lt_cv_dlopen
="dlopen"
19440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19441 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19442 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS
=$LIBS
19447 cat >conftest.
$ac_ext <<_ACEOF
19450 cat confdefs.h
>>conftest.
$ac_ext
19451 cat >>conftest.
$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any gcc2 internal prototype to avoid an error. */
19458 /* We use char because int might match the return type of a gcc2
19459 builtin and then its argument prototype would still apply. */
19469 rm -f conftest.
$ac_objext conftest
$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>conftest.er1
19473 grep -v '^ *+' conftest.er1
>conftest.err
19475 cat conftest.err
>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try
='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try
='test -s conftest$ac_exeext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_lib_dl_dlopen
=yes
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.
$ac_ext >&5
19496 ac_cv_lib_dl_dlopen
=no
19498 rm -f conftest.err conftest.
$ac_objext \
19499 conftest
$ac_exeext conftest.
$ac_ext
19500 LIBS
=$ac_check_lib_save_LIBS
19502 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19503 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19504 if test $ac_cv_lib_dl_dlopen = yes; then
19505 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19507 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19508 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19509 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 ac_check_lib_save_LIBS
=$LIBS
19513 LIBS
="-lsvld $LIBS"
19514 cat >conftest.
$ac_ext <<_ACEOF
19517 cat confdefs.h
>>conftest.
$ac_ext
19518 cat >>conftest.
$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19521 /* Override any gcc2 internal prototype to avoid an error. */
19525 /* We use char because int might match the return type of a gcc2
19526 builtin and then its argument prototype would still apply. */
19536 rm -f conftest.
$ac_objext conftest
$ac_exeext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19538 (eval $ac_link) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1
>conftest.err
19542 cat conftest.err
>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try
='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try
='test -s conftest$ac_exeext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_lib_svld_dlopen
=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.
$ac_ext >&5
19563 ac_cv_lib_svld_dlopen
=no
19565 rm -f conftest.err conftest.
$ac_objext \
19566 conftest
$ac_exeext conftest.
$ac_ext
19567 LIBS
=$ac_check_lib_save_LIBS
19569 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19570 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19571 if test $ac_cv_lib_svld_dlopen = yes; then
19572 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19574 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19575 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19576 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19577 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 ac_check_lib_save_LIBS
=$LIBS
19581 cat >conftest.
$ac_ext <<_ACEOF
19584 cat confdefs.h
>>conftest.
$ac_ext
19585 cat >>conftest.
$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19588 /* Override any gcc2 internal prototype to avoid an error. */
19592 /* We use char because int might match the return type of a gcc2
19593 builtin and then its argument prototype would still apply. */
19603 rm -f conftest.
$ac_objext conftest
$ac_exeext
19604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19605 (eval $ac_link) 2>conftest.er1
19607 grep -v '^ *+' conftest.er1
>conftest.err
19609 cat conftest.err
>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } &&
19612 { ac_try
='test -z "$ac_c_werror_flag"
19613 || test ! -s conftest.err'
19614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19615 (eval $ac_try) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try
='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_lib_dld_dld_link
=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.
$ac_ext >&5
19630 ac_cv_lib_dld_dld_link
=no
19632 rm -f conftest.err conftest.
$ac_objext \
19633 conftest
$ac_exeext conftest.
$ac_ext
19634 LIBS
=$ac_check_lib_save_LIBS
19636 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19638 if test $ac_cv_lib_dld_dld_link = yes; then
19639 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
19660 if test "x$lt_cv_dlopen" != xno
; then
19666 case $lt_cv_dlopen in
19668 save_CPPFLAGS
="$CPPFLAGS"
19669 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19671 save_LDFLAGS
="$LDFLAGS"
19672 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19675 LIBS
="$lt_cv_dlopen_libs $LIBS"
19677 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19679 if test "${lt_cv_dlopen_self+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 if test "$cross_compiling" = yes; then :
19683 lt_cv_dlopen_self
=cross
19685 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19686 lt_status
=$lt_dlunknown
19687 cat > conftest.
$ac_ext <<_LT_EOF
19688 #line 19688 "configure"
19689 #include "confdefs.h"
19698 # define LT_DLGLOBAL RTLD_GLOBAL
19701 # define LT_DLGLOBAL DL_GLOBAL
19703 # define LT_DLGLOBAL 0
19707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19708 find out it does not work in some platform. */
19709 #ifndef LT_DLLAZY_OR_NOW
19711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19714 # define LT_DLLAZY_OR_NOW DL_LAZY
19717 # define LT_DLLAZY_OR_NOW RTLD_NOW
19720 # define LT_DLLAZY_OR_NOW DL_NOW
19722 # define LT_DLLAZY_OR_NOW 0
19730 extern "C" void exit (int);
19733 void fnord() { int i=42;}
19736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19737 int status = $lt_dlunknown;
19741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19743 /* dlclose (self); */
19751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19752 (eval $ac_link) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19756 (.
/conftest
; exit; ) >&5 2>/dev
/null
19758 case x
$lt_status in
19759 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19760 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19761 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19764 # compilation failed
19765 lt_cv_dlopen_self
=no
19772 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19773 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19775 if test "x$lt_cv_dlopen_self" = xyes
; then
19776 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19777 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19778 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19779 if test "${lt_cv_dlopen_self_static+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 if test "$cross_compiling" = yes; then :
19783 lt_cv_dlopen_self_static
=cross
19785 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19786 lt_status
=$lt_dlunknown
19787 cat > conftest.
$ac_ext <<_LT_EOF
19788 #line 19788 "configure"
19789 #include "confdefs.h"
19798 # define LT_DLGLOBAL RTLD_GLOBAL
19801 # define LT_DLGLOBAL DL_GLOBAL
19803 # define LT_DLGLOBAL 0
19807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19808 find out it does not work in some platform. */
19809 #ifndef LT_DLLAZY_OR_NOW
19811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19814 # define LT_DLLAZY_OR_NOW DL_LAZY
19817 # define LT_DLLAZY_OR_NOW RTLD_NOW
19820 # define LT_DLLAZY_OR_NOW DL_NOW
19822 # define LT_DLLAZY_OR_NOW 0
19830 extern "C" void exit (int);
19833 void fnord() { int i=42;}
19836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19837 int status = $lt_dlunknown;
19841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19842 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19843 /* dlclose (self); */
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19856 (.
/conftest
; exit; ) >&5 2>/dev
/null
19858 case x
$lt_status in
19859 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19860 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19861 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19864 # compilation failed
19865 lt_cv_dlopen_self_static
=no
19872 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19873 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19876 CPPFLAGS
="$save_CPPFLAGS"
19877 LDFLAGS
="$save_LDFLAGS"
19882 case $lt_cv_dlopen_self in
19883 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19884 *) enable_dlopen_self
=unknown
;;
19887 case $lt_cv_dlopen_self_static in
19888 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19889 *) enable_dlopen_self_static
=unknown
;;
19911 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19912 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19913 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19914 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19915 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19916 echo "$as_me:$LINENO: result: yes" >&5
19917 echo "${ECHO_T}yes" >&6
19919 # FIXME - insert some real tests, host_os isn't really good enough
19922 if test -n "$STRIP" ; then
19923 striplib
="$STRIP -x"
19924 old_striplib
="$STRIP -S"
19925 echo "$as_me:$LINENO: result: yes" >&5
19926 echo "${ECHO_T}yes" >&6
19928 echo "$as_me:$LINENO: result: no" >&5
19929 echo "${ECHO_T}no" >&6
19933 echo "$as_me:$LINENO: result: no" >&5
19934 echo "${ECHO_T}no" >&6
19950 # Report which library types will actually be built
19951 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19952 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19953 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19954 echo "${ECHO_T}$can_build_shared" >&6
19956 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19957 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19958 test "$can_build_shared" = "no" && enable_shared
=no
19960 # On AIX, shared libraries and static libraries use the same namespace, and
19961 # are all built from PIC.
19964 test "$enable_shared" = yes && enable_static
=no
19965 if test -n "$RANLIB"; then
19966 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19967 postinstall_cmds
='$RANLIB $lib'
19972 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19973 test "$enable_shared" = yes && enable_static
=no
19977 echo "$as_me:$LINENO: result: $enable_shared" >&5
19978 echo "${ECHO_T}$enable_shared" >&6
19980 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19981 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19982 # Make sure either enable_shared or enable_static is yes.
19983 test "$enable_shared" = yes || enable_static
=yes
19984 echo "$as_me:$LINENO: result: $enable_static" >&5
19985 echo "${ECHO_T}$enable_static" >&6
19992 ac_cpp
='$CPP $CPPFLAGS'
19993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20014 # Only expand once:
20020 # Identify the assembler which will work hand-in-glove with the newly
20021 # built GCC, so that we can examine its features. This is the assembler
20022 # which will be driven by the driver program.
20024 # If build != host, and we aren't building gas in-tree, we identify a
20025 # build->target assembler and hope that it will have the same features
20026 # as the host->target assembler we'll be using.
20027 gcc_cv_gas_major_version
=
20028 gcc_cv_gas_minor_version
=
20029 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20031 if test "${gcc_cv_as+set}" = set; then
20035 if test -x "$DEFAULT_ASSEMBLER"; then
20036 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20037 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20038 && test -f ..
/gas
/Makefile \
20039 && test x
$build = x
$host; then
20040 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20041 elif test -x as
$build_exeext; then
20042 # Build using assembler in the current directory.
20043 gcc_cv_as
=.
/as
$build_exeext
20044 elif test -x $AS_FOR_TARGET; then
20045 gcc_cv_as
="$AS_FOR_TARGET"
20047 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20048 set dummy
$AS_FOR_TARGET; ac_word
=$2
20049 echo "$as_me:$LINENO: checking for $ac_word" >&5
20050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20051 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20060 for as_dir
in $PATH
20063 test -z "$as_dir" && as_dir
=.
20064 for ac_exec_ext
in '' $ac_executable_extensions; do
20065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20076 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20078 if test -n "$gcc_cv_as"; then
20079 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20080 echo "${ECHO_T}$gcc_cv_as" >&6
20082 echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6
20090 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20092 case "$ORIGINAL_AS_FOR_TARGET" in
20093 .
/as | .
/as
$build_exeext) ;;
20094 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20098 echo "$as_me:$LINENO: checking what assembler to use" >&5
20099 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20100 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20101 # Single tree build which includes gas. We want to prefer it
20102 # over whatever linker top-level may have detected, since
20103 # we'll use what we're building after installation anyway.
20104 echo "$as_me:$LINENO: result: newly built gas" >&5
20105 echo "${ECHO_T}newly built gas" >&6
20107 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20108 for f
in $gcc_cv_as_bfd_srcdir/configure \
20109 $gcc_cv_as_gas_srcdir/configure \
20110 $gcc_cv_as_gas_srcdir/configure.
in \
20111 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20112 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20113 if test x
$gcc_cv_gas_version != x
; then
20117 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20118 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20119 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20120 case $gcc_cv_gas_patch_version in
20121 "") gcc_cv_gas_patch_version
="0" ;;
20123 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20124 + $gcc_cv_gas_minor_version \) \* 1000 \
20125 + $gcc_cv_gas_patch_version`
20127 in_tree_gas_is_elf
=no
20128 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20129 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20130 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20132 in_tree_gas_is_elf
=yes
20135 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20136 echo "${ECHO_T}$gcc_cv_as" >&6
20140 # Identify the linker which will work hand-in-glove with the newly
20141 # built GCC, so that we can examine its features. This is the linker
20142 # which will be driven by the driver program.
20144 # If build != host, and we aren't building gas in-tree, we identify a
20145 # build->target linker and hope that it will have the same features
20146 # as the host->target linker we'll be using.
20147 gcc_cv_gld_major_version
=
20148 gcc_cv_gld_minor_version
=
20149 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20150 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20152 if test "${gcc_cv_ld+set}" = set; then
20156 if test -x "$DEFAULT_LINKER"; then
20157 gcc_cv_ld
="$DEFAULT_LINKER"
20158 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20159 && test -f ..
/ld
/Makefile \
20160 && test x
$build = x
$host; then
20161 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20162 elif test -x collect-ld
$build_exeext; then
20163 # Build using linker in the current directory.
20164 gcc_cv_ld
=.
/collect-ld
$build_exeext
20165 elif test -x $LD_FOR_TARGET; then
20166 gcc_cv_ld
="$LD_FOR_TARGET"
20168 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20169 set dummy
$LD_FOR_TARGET; ac_word
=$2
20170 echo "$as_me:$LINENO: checking for $ac_word" >&5
20171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20172 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20181 for as_dir
in $PATH
20184 test -z "$as_dir" && as_dir
=.
20185 for ac_exec_ext
in '' $ac_executable_extensions; do
20186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20187 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20197 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20199 if test -n "$gcc_cv_ld"; then
20200 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20201 echo "${ECHO_T}$gcc_cv_ld" >&6
20203 echo "$as_me:$LINENO: result: no" >&5
20204 echo "${ECHO_T}no" >&6
20211 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20213 case "$ORIGINAL_LD_FOR_TARGET" in
20214 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20215 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20219 echo "$as_me:$LINENO: checking what linker to use" >&5
20220 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20221 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20222 # Single tree build which includes ld. We want to prefer it
20223 # over whatever linker top-level may have detected, since
20224 # we'll use what we're building after installation anyway.
20225 echo "$as_me:$LINENO: result: newly built ld" >&5
20226 echo "${ECHO_T}newly built ld" >&6
20228 in_tree_ld_is_elf
=no
20229 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20230 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20231 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20232 in_tree_ld_is_elf
=yes
20234 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
20236 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20237 if test x
$gcc_cv_gld_version != x
; then
20241 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20242 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20244 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20245 echo "${ECHO_T}$gcc_cv_ld" >&6
20249 # Figure out what nm we will be using.
20250 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20251 if test "${gcc_cv_nm+set}" = set; then
20255 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20256 && test -f ..
/binutils
/Makefile \
20257 && test x
$build = x
$host; then
20258 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20259 elif test -x nm
$build_exeext; then
20260 gcc_cv_nm
=.
/nm
$build_exeext
20261 elif test -x $NM_FOR_TARGET; then
20262 gcc_cv_nm
="$NM_FOR_TARGET"
20264 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20265 set dummy
$NM_FOR_TARGET; ac_word
=$2
20266 echo "$as_me:$LINENO: checking for $ac_word" >&5
20267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20268 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20273 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20277 for as_dir
in $PATH
20280 test -z "$as_dir" && as_dir
=.
20281 for ac_exec_ext
in '' $ac_executable_extensions; do
20282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20283 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20293 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20295 if test -n "$gcc_cv_nm"; then
20296 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20297 echo "${ECHO_T}$gcc_cv_nm" >&6
20299 echo "$as_me:$LINENO: result: no" >&5
20300 echo "${ECHO_T}no" >&6
20307 echo "$as_me:$LINENO: checking what nm to use" >&5
20308 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20309 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20310 # Single tree build which includes binutils.
20311 echo "$as_me:$LINENO: result: newly built nm" >&5
20312 echo "${ECHO_T}newly built nm" >&6
20315 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20316 echo "${ECHO_T}$gcc_cv_nm" >&6
20320 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20322 case "$ORIGINAL_NM_FOR_TARGET" in
20323 .
/nm | .
/nm
$build_exeext) ;;
20324 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20329 # Figure out what objdump we will be using.
20330 if test "${gcc_cv_objdump+set}" = set; then
20334 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20335 && test -f ..
/binutils
/Makefile \
20336 && test x
$build = x
$host; then
20337 # Single tree build which includes binutils.
20338 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20339 elif test -x objdump
$build_exeext; then
20340 gcc_cv_objdump
=.
/objdump
$build_exeext
20341 elif test -x $OBJDUMP_FOR_TARGET; then
20342 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20344 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20345 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20346 echo "$as_me:$LINENO: checking for $ac_word" >&5
20347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20348 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 case $gcc_cv_objdump in
20353 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20357 for as_dir
in $PATH
20360 test -z "$as_dir" && as_dir
=.
20361 for ac_exec_ext
in '' $ac_executable_extensions; do
20362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20363 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20373 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20375 if test -n "$gcc_cv_objdump"; then
20376 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20377 echo "${ECHO_T}$gcc_cv_objdump" >&6
20379 echo "$as_me:$LINENO: result: no" >&5
20380 echo "${ECHO_T}no" >&6
20387 echo "$as_me:$LINENO: checking what objdump to use" >&5
20388 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20389 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20390 # Single tree build which includes binutils.
20391 echo "$as_me:$LINENO: result: newly built objdump" >&5
20392 echo "${ECHO_T}newly built objdump" >&6
20393 elif test x
$gcc_cv_objdump = x
; then
20394 echo "$as_me:$LINENO: result: not found" >&5
20395 echo "${ECHO_T}not found" >&6
20397 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20398 echo "${ECHO_T}$gcc_cv_objdump" >&6
20401 # Figure out what assembler alignment features are present.
20402 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20403 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20404 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 gcc_cv_as_balign_and_p2align
=no
20408 if test $in_tree_gas = yes; then
20409 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20410 then gcc_cv_as_balign_and_p2align
=yes
20412 elif test x
$gcc_cv_as != x
; then
20414 .p2align 2' > conftest.s
20415 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }
20422 gcc_cv_as_balign_and_p2align
=yes
20424 echo "configure: failed program was" >&5
20427 rm -f conftest.o conftest.s
20430 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20431 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20432 if test $gcc_cv_as_balign_and_p2align = yes; then
20434 cat >>confdefs.h
<<\_ACEOF
20435 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20440 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20441 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20442 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 gcc_cv_as_max_skip_p2align
=no
20446 if test $in_tree_gas = yes; then
20447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20448 then gcc_cv_as_max_skip_p2align
=yes
20450 elif test x
$gcc_cv_as != x
; then
20451 echo '.p2align 4,,7' > conftest.s
20452 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }
20459 gcc_cv_as_max_skip_p2align
=yes
20461 echo "configure: failed program was" >&5
20464 rm -f conftest.o conftest.s
20467 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20468 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20469 if test $gcc_cv_as_max_skip_p2align = yes; then
20471 cat >>confdefs.h
<<\_ACEOF
20472 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20477 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20478 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20479 if test "${gcc_cv_as_literal16+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 gcc_cv_as_literal16
=no
20483 if test $in_tree_gas = yes; then
20484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20485 then gcc_cv_as_literal16
=yes
20487 elif test x
$gcc_cv_as != x
; then
20488 echo '.literal16' > conftest.s
20489 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }
20496 gcc_cv_as_literal16
=yes
20498 echo "configure: failed program was" >&5
20501 rm -f conftest.o conftest.s
20504 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20505 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20506 if test $gcc_cv_as_literal16 = yes; then
20508 cat >>confdefs.h
<<\_ACEOF
20509 #define HAVE_GAS_LITERAL16 1
20514 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20515 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20516 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20519 gcc_cv_as_subsection_m1
=no
20520 if test $in_tree_gas = yes; then
20521 if test $in_tree_gas_is_elf = yes \
20522 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20523 then gcc_cv_as_subsection_m1
=yes
20525 elif test x
$gcc_cv_as != x
; then
20526 echo 'conftest_label1: .word 0
20528 conftest_label2: .word 0
20529 .previous' > conftest.s
20530 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }
20537 if test x
$gcc_cv_nm != x
; then
20538 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
20539 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
20540 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
20542 else gcc_cv_as_subsection_m1
=yes
20544 rm -f conftest.nm1 conftest.nm2
20547 echo "configure: failed program was" >&5
20550 rm -f conftest.o conftest.s
20553 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20554 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20555 if test $gcc_cv_as_subsection_m1 = yes; then
20557 cat >>confdefs.h
<<\_ACEOF
20558 #define HAVE_GAS_SUBSECTION_ORDERING 1
20563 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20564 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20565 if test "${gcc_cv_as_weak+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 if test $in_tree_gas = yes; then
20570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20571 then gcc_cv_as_weak
=yes
20573 elif test x
$gcc_cv_as != x
; then
20574 echo ' .weak foobar' > conftest.s
20575 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; }
20584 echo "configure: failed program was" >&5
20587 rm -f conftest.o conftest.s
20590 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20591 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20592 if test $gcc_cv_as_weak = yes; then
20594 cat >>confdefs.h
<<\_ACEOF
20595 #define HAVE_GAS_WEAK 1
20600 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20601 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20602 if test "${gcc_cv_as_weakref+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 gcc_cv_as_weakref
=no
20606 if test $in_tree_gas = yes; then
20607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20608 then gcc_cv_as_weakref
=yes
20610 elif test x
$gcc_cv_as != x
; then
20611 echo ' .weakref foobar, barfnot' > conftest.s
20612 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }
20619 gcc_cv_as_weakref
=yes
20621 echo "configure: failed program was" >&5
20624 rm -f conftest.o conftest.s
20627 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20628 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20629 if test $gcc_cv_as_weakref = yes; then
20631 cat >>confdefs.h
<<\_ACEOF
20632 #define HAVE_GAS_WEAKREF 1
20637 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20638 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20639 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 gcc_cv_as_nsubspa_comdat
=no
20643 if test $in_tree_gas = yes; then
20644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20645 then gcc_cv_as_nsubspa_comdat
=yes
20647 elif test x
$gcc_cv_as != x
; then
20648 echo ' .SPACE $TEXT$
20649 .NSUBSPA $CODE$,COMDAT' > conftest.s
20650 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }
20657 gcc_cv_as_nsubspa_comdat
=yes
20659 echo "configure: failed program was" >&5
20662 rm -f conftest.o conftest.s
20665 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20666 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20667 if test $gcc_cv_as_nsubspa_comdat = yes; then
20669 cat >>confdefs.h
<<\_ACEOF
20670 #define HAVE_GAS_NSUBSPA_COMDAT 1
20675 # .hidden needs to be supported in both the assembler and the linker,
20676 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20677 # This is irritatingly difficult to feature test for; we have to check the
20678 # date string after the version number. If we've got an in-tree
20679 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20681 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20682 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20683 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20684 if test "${gcc_cv_as_hidden+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 gcc_cv_as_hidden
=no
20688 if test $in_tree_gas = yes; then
20689 if test $in_tree_gas_is_elf = yes \
20690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20691 then gcc_cv_as_hidden
=yes
20693 elif test x
$gcc_cv_as != x
; then
20694 echo ' .hidden foobar
20695 foobar:' > conftest.s
20696 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }
20703 gcc_cv_as_hidden
=yes
20705 echo "configure: failed program was" >&5
20708 rm -f conftest.o conftest.s
20711 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20712 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20715 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20716 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20717 if test "${gcc_cv_ld_hidden+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 if test $in_tree_ld = yes ; then
20721 gcc_cv_ld_hidden
=no
20722 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 \
20723 && test $in_tree_ld_is_elf = yes; then
20724 gcc_cv_ld_hidden
=yes
20727 gcc_cv_ld_hidden
=yes
20728 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20729 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
20730 ld_vers
=`echo $ld_ver | sed -n \
20731 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20732 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'`
20733 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
20734 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20735 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20736 if test 0"$ld_date" -lt 20020404; then
20737 if test -n "$ld_date"; then
20738 # If there was date string, but was earlier than 2002-04-04, fail
20739 gcc_cv_ld_hidden
=no
20740 elif test -z "$ld_vers"; then
20741 # If there was no date string nor ld version number, something is wrong
20742 gcc_cv_ld_hidden
=no
20744 test -z "$ld_vers_patch" && ld_vers_patch
=0
20745 if test "$ld_vers_major" -lt 2; then
20746 gcc_cv_ld_hidden
=no
20747 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20748 gcc_cv_ld_hidden
="no"
20749 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20750 gcc_cv_ld_hidden
=no
20755 case "${target}" in
20756 hppa64
*-*-hpux* | ia64
*-*-hpux*)
20757 gcc_cv_ld_hidden
=yes
20760 gcc_cv_ld_hidden
=no
20766 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20767 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20768 libgcc_visibility
=no
20771 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20772 libgcc_visibility
=yes
20774 cat >>confdefs.h
<<\_ACEOF
20775 #define HAVE_GAS_HIDDEN 1
20780 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20781 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20782 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20783 if test "${gcc_cv_as_leb128+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 gcc_cv_as_leb128
=no
20787 if test $in_tree_gas = yes; then
20788 if test $in_tree_gas_is_elf = yes \
20789 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20790 then gcc_cv_as_leb128
=yes
20792 elif test x
$gcc_cv_as != x
; then
20799 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }
20806 # GAS versions before 2.11 do not support uleb128,
20807 # despite appearing to.
20808 # ??? There exists an elf-specific test that will crash
20809 # the assembler. Perhaps it's better to figure out whether
20810 # arbitrary sections are supported and try the test.
20811 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20812 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
20813 as_vers
=`echo $as_ver | sed -n \
20814 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20815 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
20816 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20817 if test $as_major -eq 2 && test $as_minor -lt 11
20819 else gcc_cv_as_leb128
=yes
20823 echo "configure: failed program was" >&5
20826 rm -f conftest.o conftest.s
20829 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20830 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20831 if test $gcc_cv_as_leb128 = yes; then
20833 cat >>confdefs.h
<<\_ACEOF
20834 #define HAVE_AS_LEB128 1
20839 # GAS versions up to and including 2.11.0 may mis-optimize
20841 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20842 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20843 if test "${gcc_cv_as_eh_frame+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 gcc_cv_as_eh_frame
=no
20847 if test $in_tree_gas = yes; then
20848 if test $in_tree_gas_is_elf = yes \
20849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20850 then gcc_cv_as_eh_frame
=yes
20852 elif test x
$gcc_cv_as != x
; then
20859 .section .eh_frame,"aw",@progbits
20861 .4byte .LECIE1-.LSCIE1
20875 .4byte .LEFDE1-.LASFDE1
20877 .4byte .LASFDE1-__FRAME_BEGIN__
20884 .LEFDE1:' > conftest.s
20885 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }
20892 cat > conftest.lit
<<EOF
20893 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20894 0010 01000000 12000000 18000000 00000000 ................
20895 0020 08000000 04080000 0044 .........D
20897 cat > conftest.big
<<EOF
20898 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20899 0010 00000001 00000012 00000018 00000000 ................
20900 0020 00000008 04000000 0844 .........D
20902 # If the assembler didn't choke, and we can objdump,
20903 # and we got the correct data, then succeed.
20904 # The text in the here-document typically retains its unix-style line
20905 # endings, while the output of objdump will use host line endings.
20906 # Therefore, use diff -b for the comparisons.
20907 if test x
$gcc_cv_objdump != x \
20908 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
20909 |
tail -3 > conftest.got \
20910 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
20911 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
20913 gcc_cv_as_eh_frame
=yes
20914 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 gcc_cv_as_eh_frame
=buggy
20922 # Uh oh, what do we do now?
20923 gcc_cv_as_eh_frame
=no
20926 echo "configure: failed program was" >&5
20929 rm -f conftest.o conftest.s
20932 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20933 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20936 if test $gcc_cv_as_eh_frame = buggy
; then
20938 cat >>confdefs.h
<<\_ACEOF
20939 #define USE_AS_TRADITIONAL_FORMAT 1
20944 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20945 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20946 if test "${gcc_cv_as_shf_merge+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 gcc_cv_as_shf_merge
=no
20950 if test $in_tree_gas = yes; then
20951 if test $in_tree_gas_is_elf = yes \
20952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20953 then gcc_cv_as_shf_merge
=yes
20955 elif test x
$gcc_cv_as != x
; then
20956 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20957 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }
20964 gcc_cv_as_shf_merge
=yes
20966 echo "configure: failed program was" >&5
20969 rm -f conftest.o conftest.s
20972 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20973 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20975 if test $gcc_cv_as_shf_merge = no
; then
20976 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20977 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20978 if test "${gcc_cv_as_shf_merge+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 gcc_cv_as_shf_merge
=no
20982 if test $in_tree_gas = yes; then
20983 if test $in_tree_gas_is_elf = yes \
20984 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20985 then gcc_cv_as_shf_merge
=yes
20987 elif test x
$gcc_cv_as != x
; then
20988 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20989 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }
20996 gcc_cv_as_shf_merge
=yes
20998 echo "configure: failed program was" >&5
21001 rm -f conftest.o conftest.s
21004 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21005 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21009 cat >>confdefs.h
<<_ACEOF
21010 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21014 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21015 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21016 if test "${gcc_cv_as_comdat_group+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 gcc_cv_as_comdat_group
=no
21020 if test $in_tree_gas = yes; then
21021 if test $in_tree_gas_is_elf = yes \
21022 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21023 then gcc_cv_as_comdat_group
=yes
21025 elif test x
$gcc_cv_as != x
; then
21026 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21027 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }
21034 gcc_cv_as_comdat_group
=yes
21036 echo "configure: failed program was" >&5
21039 rm -f conftest.o conftest.s
21042 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21043 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21045 if test $gcc_cv_as_comdat_group = yes; then
21046 gcc_cv_as_comdat_group_percent
=no
21048 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21049 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21050 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 gcc_cv_as_comdat_group_percent
=no
21054 if test $in_tree_gas = yes; then
21055 if test $in_tree_gas_is_elf = yes \
21056 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21057 then gcc_cv_as_comdat_group_percent
=yes
21059 elif test x
$gcc_cv_as != x
; then
21060 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21061 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }
21068 gcc_cv_as_comdat_group_percent
=yes
21070 echo "configure: failed program was" >&5
21073 rm -f conftest.o conftest.s
21076 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21077 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21080 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21082 if test 0"$ld_date" -lt 20050308; then
21083 if test -n "$ld_date"; then
21084 # If there was date string, but was earlier than 2005-03-08, fail
21086 elif test "$ld_vers_major" -lt 2; then
21088 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21093 # assume linkers other than GNU ld don't support COMDAT group
21096 if test $comdat_group = no
; then
21097 gcc_cv_as_comdat_group
=no
21098 gcc_cv_as_comdat_group_percent
=no
21101 cat >>confdefs.h
<<_ACEOF
21102 #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`
21106 # Thread-local storage - the check is heavily parametrized.
21114 .section ".tdata","awT",@progbits
21117 ldq $27,__tls_get_addr($29) !literal!1
21118 lda $16,foo($29) !tlsgd!1
21119 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21120 ldq $27,__tls_get_addr($29) !literal!2
21121 lda $16,foo($29) !tlsldm!2
21122 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21123 ldq $1,foo($29) !gotdtprel
21124 ldah $2,foo($29) !dtprelhi
21125 lda $3,foo($2) !dtprello
21126 lda $4,foo($29) !dtprel
21127 ldq $1,foo($29) !gottprel
21128 ldah $2,foo($29) !tprelhi
21129 lda $3,foo($2) !tprello
21130 lda $4,foo($29) !tprel'
21133 tls_as_opt
=--fatal-warnings
21137 .section ".tdata","awT",@progbits
21140 call #gettlsoff(x)'
21149 .section ".tdata","awT",@progbits
21153 addil LT%foo-$tls_gdidx$,gp
21154 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21157 addil LT%foo-$tls_ldidx$,gp
21159 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21160 addil LR%foo-$tls_dtpoff$,%ret0
21161 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21163 addil LT%foo-$tls_ieoff$,gp
21164 ldw RT%foo-$tls_ieoff$(%r1),%t2
21167 addil LR%foo-$tls_leoff$,%t1
21168 ldo RR%foo-$tls_leoff$(%r1),%t2'
21171 tls_as_opt
=--fatal-warnings
21175 .section ".tdata","awT",%progbits
21178 .word foo(gottpoff)
21188 .section ".tdata","awT",@progbits
21192 leal foo@TLSGD(,%ebx,1), %eax
21193 leal foo@TLSLDM(%ebx), %eax
21194 leal foo@DTPOFF(%eax), %edx
21195 movl foo@GOTTPOFF(%ebx), %eax
21196 subl foo@GOTTPOFF(%ebx), %eax
21197 addl foo@GOTNTPOFF(%ebx), %eax
21198 movl foo@INDNTPOFF, %eax
21199 movl $foo@TPOFF, %eax
21200 subl $foo@TPOFF, %eax
21201 leal foo@NTPOFF(%ecx), %eax'
21204 tls_as_opt
=--fatal-warnings
21208 .section ".tdata","awT",@progbits
21212 leaq foo@TLSGD(%rip), %rdi
21213 leaq foo@TLSLD(%rip), %rdi
21214 leaq foo@DTPOFF(%rax), %rdx
21215 movq foo@GOTTPOFF(%rip), %rax
21216 movq $foo@TPOFF, %rax'
21219 tls_as_opt
=--fatal-warnings
21223 .section ".tdata","awT",@progbits
21226 addl r16 = @ltoff(@dtpmod(foo#)), gp
21227 addl r17 = @ltoff(@dtprel(foo#)), gp
21228 addl r18 = @ltoff(@tprel(foo#)), gp
21229 addl r19 = @dtprel(foo#), gp
21230 adds r21 = @dtprel(foo#), r13
21231 movl r23 = @dtprel(foo#)
21232 addl r20 = @tprel(foo#), gp
21233 adds r22 = @tprel(foo#), r13
21234 movl r24 = @tprel(foo#)'
21237 tls_as_opt
=--fatal-warnings
21241 .section .tdata,"awT",@progbits
21245 addiu $4, $28, %tlsgd(x)
21246 addiu $4, $28, %tlsldm(x)
21247 lui $4, %dtprel_hi(x)
21248 addiu $4, $4, %dtprel_lo(x)
21249 lw $4, %gottprel(x)($28)
21250 lui $4, %tprel_hi(x)
21251 addiu $4, $4, %tprel_lo(x)'
21254 tls_as_opt
='-32 --fatal-warnings'
21258 .section ".tdata","awT",@progbits
21266 addi 3,31,ld0@got@tlsgd
21268 addi 3,31,x1@got@tlsld
21271 addis 9,3,x2@dtprel@ha
21272 addi 9,9,x2@dtprel@l
21273 lwz 9,x3@got@tprel(31)
21276 addis 9,2,x2@tprel@ha
21277 addi 9,9,x2@tprel@l'
21280 tls_as_opt
="-a32 --fatal-warnings"
21284 .section ".tdata","awT",@progbits
21292 addi 3,2,ld0@got@tlsgd
21298 addi 3,2,x1@got@tlsld
21304 addis 9,3,x2@dtprel@ha
21305 addi 9,9,x2@dtprel@l
21308 ld 9,x3@got@dtprel(2)
21314 tls_as_opt
="-a64 --fatal-warnings"
21318 .section ".tdata","awT",@progbits
21325 .long foo@GOTNTPOFF
21326 .long foo@INDNTPOFF
21327 l %r1,foo@GOTNTPOFF(%r12)
21328 l %r1,0(%r1):tls_load:foo
21329 bas %r14,0(%r1,%r13):tls_gdcall:foo
21330 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21333 tls_as_opt
="-m31 --fatal-warnings"
21337 .section ".tdata","awT",@progbits
21344 .quad foo@GOTNTPOFF
21345 lg %r1,foo@GOTNTPOFF(%r12)
21346 larl %r1,foo@INDNTPOFF
21347 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21348 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21351 tls_as_opt
="-m64 -Aesame --fatal-warnings"
21353 sh-
*-* | sh
[34]-*-*)
21355 .section ".tdata","awT",@progbits
21365 tls_as_opt
=--fatal-warnings
21369 sparc
*-sun-solaris2.
[56789]*)
21370 # TLS was introduced in the Solaris 9 4/04 release but
21371 # we do not enable it by default on Solaris 9 either.
21372 if test "x$enable_tls" = xyes
; then
21378 sparc
*-sun-solaris2.
*)
21385 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
21387 .section ".tdata",#alloc,#write,#tls
21390 sethi %tgd_hi22(foo), %o0
21391 add %o0, %tgd_lo10(foo), %o1
21392 add %l7, %o1, %o0, %tgd_add(foo)
21393 call __tls_get_addr, %tgd_call(foo)
21394 sethi %tldm_hi22(foo), %l1
21395 add %l1, %tldm_lo10(foo), %l2
21396 add %l7, %l2, %o0, %tldm_add(foo)
21397 call __tls_get_addr, %tldm_call(foo)
21398 sethi %tldo_hix22(foo), %l3
21399 xor %l3, %tldo_lox10(foo), %l4
21400 add %o0, %l4, %l5, %tldo_add(foo)
21401 sethi %tie_hi22(foo), %o3
21402 add %o3, %tie_lo10(foo), %o3
21403 ld [%l7 + %o3], %o2, %tie_ld(foo)
21404 add %g7, %o2, %o4, %tie_add(foo)
21405 sethi %tle_hix22(foo), %l1
21406 xor %l1, %tle_lox10(foo), %o5
21407 ld [%g7 + %o5], %o1'
21412 .section ".tdata","awT",@progbits
21415 sethi %tgd_hi22(foo), %o0
21416 add %o0, %tgd_lo10(foo), %o1
21417 add %l7, %o1, %o0, %tgd_add(foo)
21418 call __tls_get_addr, %tgd_call(foo)
21419 sethi %tldm_hi22(foo), %l1
21420 add %l1, %tldm_lo10(foo), %l2
21421 add %l7, %l2, %o0, %tldm_add(foo)
21422 call __tls_get_addr, %tldm_call(foo)
21423 sethi %tldo_hix22(foo), %l3
21424 xor %l3, %tldo_lox10(foo), %l4
21425 add %o0, %l4, %l5, %tldo_add(foo)
21426 sethi %tie_hi22(foo), %o3
21427 add %o3, %tie_lo10(foo), %o3
21428 ld [%l7 + %o3], %o2, %tie_ld(foo)
21429 add %g7, %o2, %o4, %tie_add(foo)
21430 sethi %tle_hix22(foo), %l1
21431 xor %l1, %tle_lox10(foo), %o5
21432 ld [%g7 + %o5], %o1'
21435 tls_as_opt
="-32 --fatal-warnings"
21440 if test "x$enable_tls" = xno
; then
21441 : # TLS explicitly disabled.
21442 elif test "x$enable_tls" = xyes
; then
21443 set_have_as_tls
=yes # TLS explicitly enabled.
21444 elif test -z "$tls_first_major"; then
21445 : # If we don't have a check, assume no support.
21447 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21448 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21449 if test "${gcc_cv_as_tls+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21453 if test $in_tree_gas = yes; then
21454 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21455 then gcc_cv_as_tls
=yes
21457 elif test x
$gcc_cv_as != x
; then
21458 echo "$conftest_s" > conftest.s
21459 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }
21468 echo "configure: failed program was" >&5
21471 rm -f conftest.o conftest.s
21474 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21475 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21476 if test $gcc_cv_as_tls = yes; then
21477 set_have_as_tls
=yes
21480 if test $set_have_as_tls = yes ; then
21482 cat >>confdefs.h
<<\_ACEOF
21483 #define HAVE_AS_TLS 1
21488 # Target-specific assembler checks.
21490 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21491 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21492 gcc_cv_ld_static_dynamic
=no
21493 if test $in_tree_ld = yes ; then
21494 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21495 gcc_cv_ld_static_dynamic
=yes
21497 elif test x
$gcc_cv_ld != x
; then
21498 # Check if linker supports -Bstatic/-Bdynamic option
21499 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
21500 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
21501 gcc_cv_ld_static_dynamic
=yes
21504 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
21506 cat >>confdefs.h
<<\_ACEOF
21507 #define HAVE_LD_STATIC_DYNAMIC 1
21511 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21512 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21514 if test x
"$demangler_in_ld" = xyes
; then
21515 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21516 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21517 gcc_cv_ld_demangle
=no
21518 if test $in_tree_ld = yes; then
21519 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 \
21520 gcc_cv_ld_demangle
=yes
21522 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
21523 # Check if the GNU linker supports --demangle option
21524 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
21525 gcc_cv_ld_demangle
=yes
21528 if test x
"$gcc_cv_ld_demangle" = xyes
; then
21530 cat >>confdefs.h
<<\_ACEOF
21531 #define HAVE_LD_DEMANGLE 1
21535 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21536 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21540 # All TARGET_ABI_OSF targets.
21541 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
21542 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21543 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21544 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 gcc_cv_as_alpha_explicit_relocs
=no
21548 if test $in_tree_gas = yes; then
21549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21550 then gcc_cv_as_alpha_explicit_relocs
=yes
21552 elif test x
$gcc_cv_as != x
; then
21553 echo ' .set nomacro
21555 extbl $3, $2, $3 !lituse_bytoff!1
21556 ldq $2, a($29) !literal!1
21557 ldq $4, b($29) !literal!2
21558 ldq_u $3, 0($2) !lituse_base!1
21559 ldq $27, f($29) !literal!5
21560 jsr $26, ($27), f !lituse_jsr!5
21561 ldah $29, 0($26) !gpdisp!3
21562 lda $0, c($29) !gprel
21563 ldah $1, d($29) !gprelhigh
21564 lda $1, d($1) !gprellow
21565 lda $29, 0($29) !gpdisp!3' > conftest.s
21566 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }
21573 gcc_cv_as_alpha_explicit_relocs
=yes
21575 echo "configure: failed program was" >&5
21578 rm -f conftest.o conftest.s
21581 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21582 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21583 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21585 cat >>confdefs.h
<<\_ACEOF
21586 #define HAVE_AS_EXPLICIT_RELOCS 1
21590 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21591 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21592 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 gcc_cv_as_alpha_jsrdirect_relocs
=no
21596 if test $in_tree_gas = yes; then
21597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21598 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
21600 elif test x
$gcc_cv_as != x
; then
21601 echo ' .set nomacro
21603 ldq $27, a($29) !literal!1
21604 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21605 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }
21612 gcc_cv_as_alpha_jsrdirect_relocs
=yes
21614 echo "configure: failed program was" >&5
21617 rm -f conftest.o conftest.s
21620 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21621 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21622 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21624 cat >>confdefs.h
<<\_ACEOF
21625 #define HAVE_AS_JSRDIRECT_RELOCS 1
21632 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21633 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21634 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 gcc_cv_as_cris_no_mul_bug
=no
21638 if test $in_tree_gas = yes; then
21639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21640 then gcc_cv_as_cris_no_mul_bug
=yes
21642 elif test x
$gcc_cv_as != x
; then
21643 echo '.text' > conftest.s
21644 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }
21651 gcc_cv_as_cris_no_mul_bug
=yes
21653 echo "configure: failed program was" >&5
21656 rm -f conftest.o conftest.s
21659 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21660 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21661 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21663 cat >>confdefs.h
<<\_ACEOF
21664 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21671 echo "$as_me:$LINENO: checking assembler for .register" >&5
21672 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21673 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 gcc_cv_as_sparc_register_op
=no
21677 if test x
$gcc_cv_as != x
; then
21678 echo '.register %g2, #scratch' > conftest.s
21679 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }
21686 gcc_cv_as_sparc_register_op
=yes
21688 echo "configure: failed program was" >&5
21691 rm -f conftest.o conftest.s
21694 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21695 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21696 if test $gcc_cv_as_sparc_register_op = yes; then
21698 cat >>confdefs.h
<<\_ACEOF
21699 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21704 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21705 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21706 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 gcc_cv_as_sparc_relax
=no
21710 if test x
$gcc_cv_as != x
; then
21711 echo '.text' > conftest.s
21712 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; }
21719 gcc_cv_as_sparc_relax
=yes
21721 echo "configure: failed program was" >&5
21724 rm -f conftest.o conftest.s
21727 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21728 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21729 if test $gcc_cv_as_sparc_relax = yes; then
21731 cat >>confdefs.h
<<\_ACEOF
21732 #define HAVE_AS_RELAX_OPTION 1
21737 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21738 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21739 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 gcc_cv_as_sparc_ua_pcrel
=no
21743 if test x
$gcc_cv_as != x
; then
21750 .uaword %r_disp32(foo)' > conftest.s
21751 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }
21758 if test x
$gcc_cv_ld != x \
21759 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
21760 gcc_cv_as_sparc_ua_pcrel
=yes
21764 echo "configure: failed program was" >&5
21767 rm -f conftest.o conftest.s
21770 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21771 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21772 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21774 cat >>confdefs.h
<<\_ACEOF
21775 #define HAVE_AS_SPARC_UA_PCREL 1
21779 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21780 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21781 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 gcc_cv_as_sparc_ua_pcrel_hidden
=no
21785 if test x
$gcc_cv_as != x
; then
21789 .uaword %r_disp32(foo)
21790 .byte 0x32, 0x33, 0x34
21794 .skip 4' > conftest.s
21795 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }
21802 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
21803 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
21804 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
21805 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
21806 if $gcc_cv_objdump -R conftest
2> /dev
/null \
21807 |
grep 'DISP32' > /dev
/null
2>&1; then
21810 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
21815 echo "configure: failed program was" >&5
21818 rm -f conftest.o conftest.s
21821 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21822 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21823 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21825 cat >>confdefs.h
<<\_ACEOF
21826 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21831 fi # unaligned pcrel relocs
21833 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21834 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21835 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 gcc_cv_as_sparc_offsetable_lo10
=no
21839 if test x
$gcc_cv_as != x
; then
21841 or %g1, %lo(ab) + 12, %g1
21842 or %g1, %lo(ab + 12), %g1' > conftest.s
21843 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }
21850 if test x
$gcc_cv_objdump != x \
21851 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
21852 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
21853 gcc_cv_as_sparc_offsetable_lo10
=yes
21856 echo "configure: failed program was" >&5
21859 rm -f conftest.o conftest.s
21862 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21863 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21864 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21866 cat >>confdefs.h
<<\_ACEOF
21867 #define HAVE_AS_OFFSETABLE_LO10 1
21873 i
[34567]86-*-* | x86_64-
*-*)
21875 cygwin
* | pe | mingw32
*)
21876 # Used for DWARF 2 in PE
21877 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21878 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21879 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 gcc_cv_as_ix86_pe_secrel32
=no
21883 if test $in_tree_gas = yes; then
21884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21885 then gcc_cv_as_ix86_pe_secrel32
=yes
21887 elif test x
$gcc_cv_as != x
; then
21891 .secrel32 foo' > conftest.s
21892 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }
21899 if test x
$gcc_cv_ld != x \
21900 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
21901 gcc_cv_as_ix86_pe_secrel32
=yes
21905 echo "configure: failed program was" >&5
21908 rm -f conftest.o conftest.s
21911 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21912 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21913 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21915 cat >>confdefs.h
<<\_ACEOF
21916 #define HAVE_GAS_PE_SECREL32_RELOC 1
21923 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21924 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21925 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 gcc_cv_as_ix86_filds_fists
=no
21929 if test $in_tree_gas = yes; then
21930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21931 then gcc_cv_as_ix86_filds_fists
=yes
21933 elif test x
$gcc_cv_as != x
; then
21934 echo 'filds mem; fists mem' > conftest.s
21935 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }
21942 gcc_cv_as_ix86_filds_fists
=yes
21944 echo "configure: failed program was" >&5
21947 rm -f conftest.o conftest.s
21950 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21951 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21952 if test $gcc_cv_as_ix86_filds_fists = yes; then
21954 cat >>confdefs.h
<<\_ACEOF
21955 #define HAVE_GAS_FILDS_FISTS 1
21960 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21961 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21962 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 gcc_cv_as_ix86_cmov_sun_syntax
=no
21966 if test x
$gcc_cv_as != x
; then
21967 echo 'cmovl.l %edx, %eax' > conftest.s
21968 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }
21975 gcc_cv_as_ix86_cmov_sun_syntax
=yes
21977 echo "configure: failed program was" >&5
21980 rm -f conftest.o conftest.s
21983 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21984 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21985 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21987 cat >>confdefs.h
<<\_ACEOF
21988 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21993 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21994 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21995 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 gcc_cv_as_ix86_ffreep
=no
21999 if test x
$gcc_cv_as != x
; then
22000 echo 'ffreep %st(1)' > conftest.s
22001 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }
22008 gcc_cv_as_ix86_ffreep
=yes
22010 echo "configure: failed program was" >&5
22013 rm -f conftest.o conftest.s
22016 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22017 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22018 if test $gcc_cv_as_ix86_ffreep = yes; then
22020 cat >>confdefs.h
<<\_ACEOF
22021 #define HAVE_AS_IX86_FFREEP 1
22026 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22027 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22028 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 gcc_cv_as_ix86_sahf
=no
22032 if test x
$gcc_cv_as != x
; then
22033 echo 'sahf' > conftest.s
22034 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }
22041 gcc_cv_as_ix86_sahf
=yes
22043 echo "configure: failed program was" >&5
22046 rm -f conftest.o conftest.s
22049 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22050 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22051 if test $gcc_cv_as_ix86_sahf = yes; then
22053 cat >>confdefs.h
<<\_ACEOF
22054 #define HAVE_AS_IX86_SAHF 1
22059 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22060 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22061 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 gcc_cv_as_ix86_diff_sect_delta
=no
22065 if test x
$gcc_cv_as != x
; then
22066 echo '.section .rodata
22072 .L2: nop' > conftest.s
22073 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }; }
22080 gcc_cv_as_ix86_diff_sect_delta
=yes
22082 echo "configure: failed program was" >&5
22085 rm -f conftest.o conftest.s
22088 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22089 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22090 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22092 cat >>confdefs.h
<<\_ACEOF
22093 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22098 # This one is used unconditionally by i386.[ch]; it is to be defined
22099 # to 1 if the feature is present, 0 otherwise.
22100 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22101 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22102 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 gcc_cv_as_ix86_gotoff_in_data
=no
22106 if test $in_tree_gas = yes; then
22107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22108 then gcc_cv_as_ix86_gotoff_in_data
=yes
22110 elif test x
$gcc_cv_as != x
; then
22115 .long .L0@GOTOFF' > conftest.s
22116 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }
22123 gcc_cv_as_ix86_gotoff_in_data
=yes
22125 echo "configure: failed program was" >&5
22128 rm -f conftest.o conftest.s
22131 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22132 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22135 cat >>confdefs.h
<<_ACEOF
22136 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22142 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22143 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22144 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22148 if test $in_tree_gas = yes; then
22149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22150 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22152 elif test x
$gcc_cv_as != x
; then
22154 addl r15 = @ltoffx(x#), gp
22156 ld8.mov r16 = [r15], x#' > conftest.s
22157 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }
22164 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22166 echo "configure: failed program was" >&5
22169 rm -f conftest.o conftest.s
22172 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22173 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22174 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22176 cat >>confdefs.h
<<\_ACEOF
22177 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22186 *-*-aix*) conftest_s
=' .machine "pwr5"
22190 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22191 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22192 if test "${gcc_cv_as_machine_directive+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 gcc_cv_as_machine_directive
=no
22196 if test x
$gcc_cv_as != x
; then
22197 echo ' .machine ppc7400' > conftest.s
22198 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }
22205 gcc_cv_as_machine_directive
=yes
22207 echo "configure: failed program was" >&5
22210 rm -f conftest.o conftest.s
22213 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22214 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22216 if test x
$gcc_cv_as_machine_directive != xyes
; then
22217 echo "*** This target requires an assembler supporting \".machine\"" >&2
22218 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22219 test x
$build = x
$target && exit 1
22223 *) conftest_s
=' .machine power4
22228 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22229 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22230 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 gcc_cv_as_powerpc_mfcrf
=no
22234 if test $in_tree_gas = yes; then
22235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22236 then gcc_cv_as_powerpc_mfcrf
=yes
22238 elif test x
$gcc_cv_as != x
; then
22239 echo "$conftest_s" > conftest.s
22240 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }
22247 gcc_cv_as_powerpc_mfcrf
=yes
22249 echo "configure: failed program was" >&5
22252 rm -f conftest.o conftest.s
22255 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22256 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22257 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22259 cat >>confdefs.h
<<\_ACEOF
22260 #define HAVE_AS_MFCRF 1
22266 *-*-aix*) conftest_s
=' .machine "pwr5"
22269 *) conftest_s
=' .machine power5
22274 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22275 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22276 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 gcc_cv_as_powerpc_popcntb
=no
22280 if test $in_tree_gas = yes; then
22281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22282 then gcc_cv_as_powerpc_popcntb
=yes
22284 elif test x
$gcc_cv_as != x
; then
22285 echo "$conftest_s" > conftest.s
22286 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }
22293 gcc_cv_as_powerpc_popcntb
=yes
22295 echo "configure: failed program was" >&5
22298 rm -f conftest.o conftest.s
22301 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22302 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22303 if test $gcc_cv_as_powerpc_popcntb = yes; then
22305 cat >>confdefs.h
<<\_ACEOF
22306 #define HAVE_AS_POPCNTB 1
22312 *-*-aix*) conftest_s
=' .machine "pwr5x"
22315 *) conftest_s
=' .machine power5
22320 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22321 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22322 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 gcc_cv_as_powerpc_fprnd
=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22328 then gcc_cv_as_powerpc_fprnd
=yes
22330 elif test x
$gcc_cv_as != x
; then
22331 echo "$conftest_s" > conftest.s
22332 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }
22339 gcc_cv_as_powerpc_fprnd
=yes
22341 echo "configure: failed program was" >&5
22344 rm -f conftest.o conftest.s
22347 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22348 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22349 if test $gcc_cv_as_powerpc_fprnd = yes; then
22351 cat >>confdefs.h
<<\_ACEOF
22352 #define HAVE_AS_FPRND 1
22358 *-*-aix*) conftest_s
=' .machine "pwr6"
22361 *) conftest_s
=' .machine power6
22366 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22367 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22368 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 gcc_cv_as_powerpc_mfpgpr
=no
22372 if test $in_tree_gas = yes; then
22373 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22374 then gcc_cv_as_powerpc_mfpgpr
=yes
22376 elif test x
$gcc_cv_as != x
; then
22377 echo "$conftest_s" > conftest.s
22378 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380 (eval $ac_try) 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); }; }
22385 gcc_cv_as_powerpc_mfpgpr
=yes
22387 echo "configure: failed program was" >&5
22390 rm -f conftest.o conftest.s
22393 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22394 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22395 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22397 cat >>confdefs.h
<<\_ACEOF
22398 #define HAVE_AS_MFPGPR 1
22404 *-*-aix*) conftest_s
=' .csect .text[PR]
22406 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22410 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22411 *) conftest_s
=' .text
22413 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22416 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22417 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22418 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 gcc_cv_as_powerpc_rel16
=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22424 then gcc_cv_as_powerpc_rel16
=yes
22426 elif test x
$gcc_cv_as != x
; then
22427 echo "$conftest_s" > conftest.s
22428 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }
22435 gcc_cv_as_powerpc_rel16
=yes
22437 echo "configure: failed program was" >&5
22440 rm -f conftest.o conftest.s
22443 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22444 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22445 if test $gcc_cv_as_powerpc_rel16 = yes; then
22447 cat >>confdefs.h
<<\_ACEOF
22448 #define HAVE_AS_REL16 1
22454 *-*-aix*) conftest_s
=' .machine "pwr6"
22457 *) conftest_s
=' .machine power6
22462 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22463 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22464 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 gcc_cv_as_powerpc_cmpb
=no
22468 if test $in_tree_gas = yes; then
22469 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22470 then gcc_cv_as_powerpc_cmpb
=yes
22472 elif test x
$gcc_cv_as != x
; then
22473 echo "$conftest_s" > conftest.s
22474 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; }
22481 gcc_cv_as_powerpc_cmpb
=yes
22483 echo "configure: failed program was" >&5
22486 rm -f conftest.o conftest.s
22489 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22490 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22491 if test $gcc_cv_as_powerpc_cmpb = yes; then
22493 cat >>confdefs.h
<<\_ACEOF
22494 #define HAVE_AS_CMPB 1
22500 *-*-aix*) conftest_s
=' .machine "pwr6"
22503 *) conftest_s
=' .machine power6
22508 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22509 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22510 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 gcc_cv_as_powerpc_dfp
=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22516 then gcc_cv_as_powerpc_dfp
=yes
22518 elif test x
$gcc_cv_as != x
; then
22519 echo "$conftest_s" > conftest.s
22520 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }
22527 gcc_cv_as_powerpc_dfp
=yes
22529 echo "configure: failed program was" >&5
22532 rm -f conftest.o conftest.s
22535 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22536 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22537 if test $gcc_cv_as_powerpc_dfp = yes; then
22539 cat >>confdefs.h
<<\_ACEOF
22540 #define HAVE_AS_DFP 1
22545 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22546 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22547 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22550 gcc_cv_as_powerpc_gnu_attribute
=no
22551 if test $in_tree_gas = yes; then
22552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22553 then gcc_cv_as_powerpc_gnu_attribute
=yes
22555 elif test x
$gcc_cv_as != x
; then
22556 echo '.gnu_attribute 4,1' > conftest.s
22557 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }
22564 gcc_cv_as_powerpc_gnu_attribute
=yes
22566 echo "configure: failed program was" >&5
22569 rm -f conftest.o conftest.s
22572 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22573 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22574 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22576 cat >>confdefs.h
<<\_ACEOF
22577 #define HAVE_AS_GNU_ATTRIBUTE 1
22584 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22585 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22586 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 gcc_cv_as_mips_explicit_relocs
=no
22590 if test $in_tree_gas = yes; then
22591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22592 then gcc_cv_as_mips_explicit_relocs
=yes
22594 elif test x
$gcc_cv_as != x
; then
22595 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22596 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }
22603 gcc_cv_as_mips_explicit_relocs
=yes
22605 echo "configure: failed program was" >&5
22608 rm -f conftest.o conftest.s
22611 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22612 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22613 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22614 if test x
$target_cpu_default = x
22615 then target_cpu_default
=MASK_EXPLICIT_RELOCS
22616 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22619 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22620 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22621 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 gcc_cv_as_mips_no_shared
=no
22625 if test $in_tree_gas = yes; then
22626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22627 then gcc_cv_as_mips_no_shared
=yes
22629 elif test x
$gcc_cv_as != x
; then
22630 echo 'nop' > conftest.s
22631 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }
22638 gcc_cv_as_mips_no_shared
=yes
22640 echo "configure: failed program was" >&5
22643 rm -f conftest.o conftest.s
22646 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22647 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22648 if test $gcc_cv_as_mips_no_shared = yes; then
22650 cat >>confdefs.h
<<\_ACEOF
22651 #define HAVE_AS_NO_SHARED 1
22656 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22657 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22658 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 gcc_cv_as_mips_gnu_attribute
=no
22662 if test $in_tree_gas = yes; then
22663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22664 then gcc_cv_as_mips_gnu_attribute
=yes
22666 elif test x
$gcc_cv_as != x
; then
22667 echo '.gnu_attribute 4,1' > conftest.s
22668 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }
22675 gcc_cv_as_mips_gnu_attribute
=yes
22677 echo "configure: failed program was" >&5
22680 rm -f conftest.o conftest.s
22683 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22684 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22685 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22687 cat >>confdefs.h
<<\_ACEOF
22688 #define HAVE_AS_GNU_ATTRIBUTE 1
22693 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22694 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22695 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 gcc_cv_as_mips_dtprelword
=no
22699 if test $in_tree_gas = yes; then
22700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22701 then gcc_cv_as_mips_dtprelword
=yes
22703 elif test x
$gcc_cv_as != x
; then
22704 echo '.section .tdata,"awT",@progbits
22708 .dtprelword x+0x8000' > conftest.s
22709 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; }
22716 gcc_cv_as_mips_dtprelword
=yes
22718 echo "configure: failed program was" >&5
22721 rm -f conftest.o conftest.s
22724 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22725 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22726 if test $gcc_cv_as_mips_dtprelword = yes; then
22728 cat >>confdefs.h
<<\_ACEOF
22729 #define HAVE_AS_DTPRELWORD 1
22736 # Mips and HP-UX need the GNU assembler.
22737 # Linux on IA64 might be able to use the Intel assembler.
22740 mips
*-*-* |
*-*-hpux* )
22741 if test x
$gas_flag = xyes \
22742 ||
test x
"$host" != x
"$build" \
22743 ||
test ! -x "$gcc_cv_as" \
22744 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
22747 echo "*** This configuration requires the GNU assembler" >&2
22753 # ??? Not all targets support dwarf2 debug_line, even within a version
22754 # of gas. Moreover, we need to emit a valid instruction to trigger any
22755 # info to the output file. So, as supported targets are added to gas 2.11,
22756 # add some instruction here to (also) show we expect this might work.
22757 # ??? Once 2.11 is released, probably need to add first known working
22758 # version to the per-target configury.
22760 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
22761 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
22762 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* \
22763 | spu-
*-* | fido
*-*-*)
22766 ia64
*-*-* | s390
*-*-*)
22773 if test x
"$insn" != x
; then
22775 .file 1 \"conftest.s\"
22778 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22779 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22780 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 gcc_cv_as_dwarf2_debug_line
=no
22784 if test $in_tree_gas = yes; then
22785 if test $in_tree_gas_is_elf = yes \
22786 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22787 then gcc_cv_as_dwarf2_debug_line
=yes
22789 elif test x
$gcc_cv_as != x
; then
22790 echo "$conftest_s" > conftest.s
22791 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }
22798 if test x
$gcc_cv_objdump != x \
22799 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
22800 |
grep debug_line
> /dev
/null
2>&1; then
22801 gcc_cv_as_dwarf2_debug_line
=yes
22804 echo "configure: failed program was" >&5
22807 rm -f conftest.o conftest.s
22810 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22811 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22814 # The .debug_line file table must be in the exact order that
22815 # we specified the files, since these indices are also used
22816 # by DW_AT_decl_file. Approximate this test by testing if
22817 # the assembler bitches if the same index is assigned twice.
22818 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22819 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22820 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 gcc_cv_as_dwarf2_file_buggy
=no
22824 if test x
$gcc_cv_as != x
; then
22825 echo ' .file 1 "foo.s"
22826 .file 1 "bar.s"' > conftest.s
22827 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }
22834 gcc_cv_as_dwarf2_file_buggy
=yes
22836 echo "configure: failed program was" >&5
22839 rm -f conftest.o conftest.s
22842 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22843 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22846 if test $gcc_cv_as_dwarf2_debug_line = yes \
22847 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
22849 cat >>confdefs.h
<<\_ACEOF
22850 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22855 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22856 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22857 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 gcc_cv_as_gdwarf2_flag
=no
22861 if test $in_tree_gas = yes; then
22862 if test $in_tree_gas_is_elf = yes \
22863 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22864 then gcc_cv_as_gdwarf2_flag
=yes
22866 elif test x
$gcc_cv_as != x
; then
22867 echo "$insn" > conftest.s
22868 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }
22875 gcc_cv_as_gdwarf2_flag
=yes
22877 echo "configure: failed program was" >&5
22880 rm -f conftest.o conftest.s
22883 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22884 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22885 if test $gcc_cv_as_gdwarf2_flag = yes; then
22887 cat >>confdefs.h
<<\_ACEOF
22888 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22893 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22894 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22895 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 gcc_cv_as_gstabs_flag
=no
22899 if test $in_tree_gas = yes; then
22900 if test $in_tree_gas_is_elf = yes \
22901 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22902 then gcc_cv_as_gstabs_flag
=yes
22904 elif test x
$gcc_cv_as != x
; then
22905 echo "$insn" > conftest.s
22906 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }
22913 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22914 # and warns about it, but still exits successfully. So check for
22916 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; }
22923 else gcc_cv_as_gstabs_flag
=yes
22926 echo "configure: failed program was" >&5
22929 rm -f conftest.o conftest.s
22932 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22933 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22934 if test $gcc_cv_as_gstabs_flag = yes; then
22936 cat >>confdefs.h
<<\_ACEOF
22937 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22942 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22943 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22944 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 gcc_cv_as_debug_prefix_map_flag
=no
22948 if test $in_tree_gas = yes; then
22949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22950 then gcc_cv_as_debug_prefix_map_flag
=yes
22952 elif test x
$gcc_cv_as != x
; then
22953 echo "$insn" > conftest.s
22954 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }
22961 gcc_cv_as_debug_prefix_map_flag
=yes
22963 echo "configure: failed program was" >&5
22966 rm -f conftest.o conftest.s
22969 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22970 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22971 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22973 cat >>confdefs.h
<<\_ACEOF
22974 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22980 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22981 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22982 if test "${gcc_cv_as_line_zero+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 gcc_cv_as_line_zero
=no
22986 if test $in_tree_gas = yes; then
22987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22988 then gcc_cv_as_line_zero
=yes
22990 elif test "x$gcc_cv_as" != x
; then
22991 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22992 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; } &&
22998 test "x`cat conftest.out`" = x
23000 gcc_cv_as_line_zero
=yes
23002 echo "configure: failed program was" >&5
23004 echo "configure: error output was" >&5
23005 cat conftest.out
>&5
23007 rm -f conftest.o conftest.s conftest.out
23010 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23011 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23012 if test "x$gcc_cv_as_line_zero" = xyes
; then
23014 cat >>confdefs.h
<<\_ACEOF
23015 #define HAVE_AS_LINE_ZERO 1
23020 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23021 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23022 gcc_cv_ld_ro_rw_mix
=unknown
23023 if test $in_tree_ld = yes ; then
23024 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 \
23025 && test $in_tree_ld_is_elf = yes; then
23026 gcc_cv_ld_ro_rw_mix
=read-write
23028 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23029 echo '.section myfoosect, "a"' > conftest1.s
23030 echo '.section myfoosect, "aw"' > conftest2.s
23031 echo '.byte 1' >> conftest2.s
23032 echo '.section myfoosect, "a"' > conftest3.s
23033 echo '.byte 0' >> conftest3.s
23034 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23035 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23036 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23037 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23038 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23039 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23040 | sed -e '/myfoosect/!d' -e N`
23041 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23042 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23043 gcc_cv_ld_ro_rw_mix
=read-only
23045 gcc_cv_ld_ro_rw_mix
=read-write
23049 rm -f conftest.
* conftest
[123].
*
23051 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23053 cat >>confdefs.h
<<\_ACEOF
23054 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23058 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23059 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23061 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23062 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23063 gcc_cv_ld_eh_frame_hdr
=no
23064 if test $in_tree_ld = yes ; then
23065 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 \
23066 && test $in_tree_ld_is_elf = yes; then
23067 gcc_cv_ld_eh_frame_hdr
=yes
23069 elif test x
$gcc_cv_ld != x
; then
23070 # Check if linker supports --eh-frame-hdr option
23071 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23072 gcc_cv_ld_eh_frame_hdr
=yes
23076 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23078 cat >>confdefs.h
<<\_ACEOF
23079 #define HAVE_LD_EH_FRAME_HDR 1
23083 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23084 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23086 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23087 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23089 if test $in_tree_ld = yes ; then
23090 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 \
23091 && test $in_tree_ld_is_elf = yes; then
23094 elif test x
$gcc_cv_ld != x
; then
23095 # Check if linker supports -pie option
23096 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23100 if test x
"$gcc_cv_ld_pie" = xyes
; then
23102 cat >>confdefs.h
<<\_ACEOF
23103 #define HAVE_LD_PIE 1
23107 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23108 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23110 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23111 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23112 gcc_cv_ld_eh_gc_sections
=no
23113 if test $in_tree_ld = yes ; then
23114 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 \
23115 && test $in_tree_ld_is_elf = yes; then
23116 gcc_cv_ld_eh_gc_sections
=yes
23118 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23119 cat > conftest.s
<<EOF
23122 .type _start, @function
23125 .size _start, .-_start
23126 .section .text.foo,"ax",@progbits
23127 .type foo, @function
23131 .section .gcc_except_table.foo,"a",@progbits
23134 .section .eh_frame,"a",@progbits
23137 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23138 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23139 |
grep "gc-sections option ignored" > /dev
/null
; then
23140 gcc_cv_ld_eh_gc_sections
=no
23141 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23142 gcc_cv_ld_eh_gc_sections
=yes
23143 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23144 if test x
$gcc_cv_as_comdat_group != xyes
; then
23145 gcc_cv_ld_eh_gc_sections
=no
23146 cat > conftest.s
<<EOF
23149 .type _start, @function
23152 .size _start, .-_start
23153 .section .gnu.linkonce.t.foo,"ax",@progbits
23154 .type foo, @function
23158 .section .gcc_except_table.foo,"a",@progbits
23161 .section .eh_frame,"a",@progbits
23164 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23165 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23166 |
grep "gc-sections option ignored" > /dev
/null
; then
23167 gcc_cv_ld_eh_gc_sections
=no
23168 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23169 gcc_cv_ld_eh_gc_sections
=yes
23175 rm -f conftest.s conftest.o conftest
23179 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23180 gcc_cv_ld_eh_gc_sections
=no
23183 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
23185 cat >>confdefs.h
<<\_ACEOF
23186 #define HAVE_LD_EH_GC_SECTIONS 1
23190 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23191 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23197 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23198 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23199 if test "${gcc_cv_ld_as_needed+set}" = set; then
23200 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 gcc_cv_ld_as_needed
=no
23203 if test $in_tree_ld = yes ; then
23204 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 \
23205 && test $in_tree_ld_is_elf = yes; then
23206 gcc_cv_ld_as_needed
=yes
23208 elif test x
$gcc_cv_ld != x
; then
23209 # Check if linker supports --as-needed and --no-as-needed options
23210 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
23211 gcc_cv_ld_as_needed
=yes
23216 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23217 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23218 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
23220 cat >>confdefs.h
<<\_ACEOF
23221 #define HAVE_LD_AS_NEEDED 1
23226 case "$target:$tm_file" in
23227 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
23228 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23229 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23230 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 gcc_cv_ld_no_dot_syms
=no
23234 if test $in_tree_ld = yes ; then
23235 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
23236 gcc_cv_ld_no_dot_syms
=yes
23238 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
23239 cat > conftest1.s
<<EOF
23243 cat > conftest2.s
<<EOF
23244 .section ".opd","aw"
23247 .type foo,@function
23249 .quad .LEfoo,.TOC.@tocbase,0
23255 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23256 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23257 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
23258 gcc_cv_ld_no_dot_syms
=yes
23260 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23264 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23265 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23266 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
23268 cat >>confdefs.h
<<\_ACEOF
23269 #define HAVE_LD_NO_DOT_SYMS 1
23276 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23277 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23278 if test "${gcc_cv_ld_sysroot+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 gcc_cv_ld_sysroot
=no
23282 if test $in_tree_ld = yes ; then
23283 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
23284 gcc_cv_ld_sysroot
=yes
23286 elif test x
$gcc_cv_ld != x
; then
23287 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
23288 gcc_cv_ld_sysroot
=yes
23292 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23293 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23294 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
23296 cat >>confdefs.h
<<\_ACEOF
23297 #define HAVE_LD_SYSROOT 1
23302 if test x
$with_sysroot = x
&& test x
$host = x
$target \
23303 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23304 && test "$prefix" != "NONE"; then
23306 cat >>confdefs.h
<<_ACEOF
23307 #define PREFIX_INCLUDE_DIR "$prefix/include"
23312 # Test for stack protector support in target C library.
23313 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23314 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23315 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23316 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 gcc_cv_libc_provides_ssp
=no
23321 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23322 if test "x$with_sysroot" = x
; then
23323 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23324 elif test "x$with_build_sysroot" != "x"; then
23325 glibc_header_dir
="${with_build_sysroot}/usr/include"
23326 elif test "x$with_sysroot" = xyes
; then
23327 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23329 glibc_header_dir
="${with_sysroot}/usr/include"
23332 glibc_header_dir
=/usr
/include
23334 # glibc 2.4 and later provides __stack_chk_fail and
23335 # either __stack_chk_guard, or TLS access to stack guard canary.
23336 if test -f $glibc_header_dir/features.h \
23337 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23338 $glibc_header_dir/features.h
> /dev
/null
; then
23339 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23340 $glibc_header_dir/features.h
> /dev
/null
; then
23341 gcc_cv_libc_provides_ssp
=yes
23342 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23343 $glibc_header_dir/features.h
> /dev
/null \
23344 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23345 $glibc_header_dir/features.h
> /dev
/null
; then
23346 gcc_cv_libc_provides_ssp
=yes
23347 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23348 $glibc_header_dir/features.h
> /dev
/null
&& \
23349 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
23350 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23351 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
23352 gcc_cv_libc_provides_ssp
=yes
23357 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23358 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23359 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 cat >conftest.
$ac_ext <<_ACEOF
23365 cat confdefs.h
>>conftest.
$ac_ext
23366 cat >>conftest.
$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23370 #define __stack_chk_fail innocuous___stack_chk_fail
23372 /* System header to define __stub macros and hopefully few prototypes,
23373 which can conflict with char __stack_chk_fail (); below.
23374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23375 <limits.h> exists even on freestanding compilers. */
23378 # include <limits.h>
23380 # include <assert.h>
23383 #undef __stack_chk_fail
23385 /* Override any gcc2 internal prototype to avoid an error. */
23390 /* We use char because int might match the return type of a gcc2
23391 builtin and then its argument prototype would still apply. */
23392 char __stack_chk_fail ();
23393 /* The GNU C library defines this for functions which it implements
23394 to always fail with ENOSYS. Some functions are actually named
23395 something starting with __ and the normal name is an alias. */
23396 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23399 char (*f) () = __stack_chk_fail;
23408 return f != __stack_chk_fail;
23413 rm -f conftest.
$ac_objext conftest
$ac_exeext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23415 (eval $ac_link) 2>conftest.er1
23417 grep -v '^ *+' conftest.er1
>conftest.err
23419 cat conftest.err
>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } &&
23422 { ac_try
='test -z "$ac_c_werror_flag"
23423 || test ! -s conftest.err'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; } &&
23429 { ac_try
='test -s conftest$ac_exeext'
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; }; then
23435 ac_cv_func___stack_chk_fail
=yes
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.
$ac_ext >&5
23440 ac_cv_func___stack_chk_fail
=no
23442 rm -f conftest.err conftest.
$ac_objext \
23443 conftest
$ac_exeext conftest.
$ac_ext
23445 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23446 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23447 if test $ac_cv_func___stack_chk_fail = yes; then
23448 gcc_cv_libc_provides_ssp
=yes
23450 echo "no __stack_chk_fail on this target"
23454 *) gcc_cv_libc_provides_ssp
=no
;;
23457 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23458 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23460 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
23462 cat >>confdefs.h
<<\_ACEOF
23463 #define TARGET_LIBC_PROVIDES_SSP 1
23468 # Check if TFmode long double should be used by default or not.
23469 # Some glibc targets used DFmode long double, but with glibc 2.4
23470 # and later they can use TFmode.
23472 powerpc
*-*-linux* | \
23473 powerpc
*-*-gnu* | \
23474 sparc
*-*-linux* | \
23478 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23479 if test "${with_long_double_128+set}" = set; then
23480 withval
="$with_long_double_128"
23481 gcc_cv_target_ldbl128
="$with_long_double_128"
23483 gcc_cv_target_ldbl128
=no
23484 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
23485 if test "x$with_sysroot" = x
; then
23486 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
23487 elif test "x$with_build_sysroot" != "x"; then
23488 glibc_header_dir
="${with_build_sysroot}/usr/include"
23489 elif test "x$with_sysroot" = xyes
; then
23490 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23492 glibc_header_dir
="${with_sysroot}/usr/include"
23495 glibc_header_dir
=/usr
/include
23497 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23498 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
23499 && gcc_cv_target_ldbl128
=yes
23504 if test x
$gcc_cv_target_ldbl128 = xyes
; then
23506 cat >>confdefs.h
<<\_ACEOF
23507 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23512 # Find out what GC implementation we want, or may, use.
23514 # Check whether --with-gc or --without-gc was given.
23515 if test "${with_gc+set}" = set; then
23524 cat >>confdefs.h
<<\_ACEOF
23530 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23531 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23532 { (exit 1); exit 1; }; }
23539 echo "Using $GGC for garbage collection."
23541 # Use the system's zlib library.
23543 zlibinc
="-I\$(srcdir)/../zlib"
23545 # Check whether --with-system-zlib or --without-system-zlib was given.
23546 if test "${with_system_zlib+set}" = set; then
23547 withval
="$with_system_zlib"
23556 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23557 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23559 if test "${enable_maintainer_mode+set}" = set; then
23560 enableval
="$enable_maintainer_mode"
23561 maintainer_mode
=$enableval
23566 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23567 echo "${ECHO_T}$maintainer_mode" >&6
23569 if test "$maintainer_mode" = "yes"; then
23579 # Make empty files to contain the specs and options for each language.
23580 # Then add #include lines to for a compiler that has specs and/or options.
23586 # These (without "all_") are set in each config-lang.in.
23587 # `language' must be a single word so is spelled singularly.
23590 all_outputs
='Makefile gccbug libada-mk'
23591 # List of language makefile fragments.
23592 all_lang_makefrags
=
23593 # List of language subdirectory makefiles. Deprecated.
23594 all_lang_makefiles
=
23595 # Additional files for gengtype
23596 all_gtfiles
="$target_gtfiles"
23598 # These are the languages that are set in --enable-languages,
23599 # and are available in the GCC tree.
23600 all_selected_languages
=
23602 # Add the language fragments.
23603 # Languages are added via two mechanisms. Some information must be
23604 # recorded in makefile variables, these are defined in config-lang.in.
23605 # We accumulate them and plug them into the main Makefile.
23606 # The other mechanism is a set of hooks for each of the main targets
23607 # like `clean', `install', etc.
23609 language_hooks
="Make-hooks"
23611 for lang
in ${srcdir}/*/config-lang.
in
23613 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23615 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23616 if test "x$lang_alias" = x
23618 echo "$lang doesn't set \$language." 1>&2
23621 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23622 subdirs
="$subdirs $subdir"
23624 # $gcc_subdir is where the gcc integration files are to be found
23625 # for a language, both for internal compiler purposes (compiler
23626 # sources implementing front-end to GCC tree converters), and for
23627 # build infrastructure purposes (Make-lang.in, etc.)
23629 # This will be <subdir> (relative to $srcdir) if a line like
23630 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23631 # is found in <langdir>/config-lang.in, and will remain <langdir>
23634 # Except for the language alias (fetched above), the regular
23635 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23636 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23637 # only this and the language alias.
23639 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23640 if [ "$gcc_subdir" = "" ]; then
23641 gcc_subdir
="$subdir"
23644 case ",$enable_languages," in
23646 all_selected_languages
="$all_selected_languages $lang_alias"
23647 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
23648 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23659 .
${srcdir}/$gcc_subdir/config-lang.
in
23660 if test "x$language" = x
23662 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23667 case ",$enable_languages," in
23668 *,$lang_alias,*) ;;
23670 for i
in $subdir_requires; do
23671 test -f "${srcdir}/$i/config-lang.in" && continue
23679 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23680 if test -f $srcdir/$gcc_subdir/lang.opt
; then
23681 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23683 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
23684 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23686 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
23687 then all_lang_makefiles
="$gcc_subdir/Makefile"
23689 all_languages
="$all_languages $language"
23690 all_compilers
="$all_compilers $compilers"
23691 all_outputs
="$all_outputs $outputs"
23692 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
23695 # Pick up gtfiles for c
23697 .
${srcdir}/c-config-lang.
in
23698 all_gtfiles
="$all_gtfiles [c] $gtfiles"
23701 for language
in $all_selected_languages
23703 check_languages
="$check_languages check-$language"
23706 # We link each language in with a set of hooks, reached indirectly via
23707 # lang.${target}. Only do so for selected languages.
23711 target_list
="all.cross start.encap rest.encap tags \
23712 install-common install-man install-info install-pdf dvi pdf \
23713 html uninstall info man srcextra srcman srcinfo \
23714 mostlyclean clean distclean maintainer-clean"
23716 for t
in $target_list
23719 for lang
in $all_selected_languages
23723 echo "lang.$t: $x" >> Make-hooks
23732 echo "dir ." > .gdbinit
23733 echo "dir ${srcdir}" >> .gdbinit
23734 if test x
$gdb_needs_out_file_path = xyes
23736 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23738 if test "x$subdirs" != x
; then
23741 echo "dir ${srcdir}/$s" >> .gdbinit
23744 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23746 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23750 # Find a directory in which to install a shared libgcc.
23752 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23753 if test "${enable_version_specific_runtime_libs+set}" = set; then
23754 enableval
="$enable_version_specific_runtime_libs"
23759 # Check whether --with-slibdir or --without-slibdir was given.
23760 if test "${with_slibdir+set}" = set; then
23761 withval
="$with_slibdir"
23762 slibdir
="$with_slibdir"
23764 if test "${enable_version_specific_runtime_libs+set}" = set; then
23765 slibdir
='$(libsubdir)'
23766 elif test "$host" != "$target"; then
23767 slibdir
='$(build_tooldir)/lib'
23769 slibdir
='$(libdir)'
23775 # Check whether --with-datarootdir or --without-datarootdir was given.
23776 if test "${with_datarootdir+set}" = set; then
23777 withval
="$with_datarootdir"
23778 datarootdir
="\${prefix}/$with_datarootdir"
23780 datarootdir
='$(prefix)/share'
23785 # Check whether --with-docdir or --without-docdir was given.
23786 if test "${with_docdir+set}" = set; then
23787 withval
="$with_docdir"
23788 docdir
="\${prefix}/$with_docdir"
23790 docdir
='$(datarootdir)'
23795 # Check whether --with-htmldir or --without-htmldir was given.
23796 if test "${with_htmldir+set}" = set; then
23797 withval
="$with_htmldir"
23798 htmldir
="\${prefix}/$with_htmldir"
23800 htmldir
='$(docdir)'
23804 # Substitute configuration variables
23863 if test x
${build} = x
${host} ; then
23864 if test x
${host} = x
${target} ; then
23865 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23867 echo "Links are now set up to build a cross-compiler" 1>&2
23868 echo " from ${host} to ${target}." 1>&2
23871 if test x
${host} = x
${target} ; then
23872 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23873 echo " for ${target}." 1>&2
23875 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23876 echo " from ${host} to ${target}." 1>&2
23883 # Configure the subdirectories
23884 # AC_CONFIG_SUBDIRS($subdirs)
23886 # Create the Makefile
23887 # and configure language subdirectories
23888 ac_config_files
="$ac_config_files $all_outputs"
23891 ac_config_commands
="$ac_config_commands default"
23893 cat >confcache
<<\_ACEOF
23894 # This file is a shell script that caches the results of configure
23895 # tests run on this system so they can be shared between configure
23896 # scripts and configure runs, see configure's option --config-cache.
23897 # It is not useful on other systems. If it contains results you don't
23898 # want to keep, you may remove or edit it.
23900 # config.status only pays attention to the cache file if you give it
23901 # the --recheck option to rerun configure.
23903 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23904 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23905 # following values.
23909 # The following way of writing the cache mishandles newlines in values,
23910 # but we know of no workaround that is simple, portable, and efficient.
23911 # So, don't put newlines in cache variables' values.
23912 # Ultrix sh set writes to stderr and can't be redirected directly,
23913 # and sets the high bit in the cache file unless we assign to the vars.
23916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23918 # `set' does not quote correctly, so add quotes (double-quote
23919 # substitution turns \\\\ into \\, and sed turns \\ into \).
23922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23925 # `set' quotes correctly as required by POSIX, so do not add quotes.
23927 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23936 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23938 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23939 if test -w $cache_file; then
23940 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23941 cat confcache
>$cache_file
23943 echo "not updating unwritable cache $cache_file"
23948 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23949 # Let make expand exec_prefix.
23950 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23954 # trailing colons and then remove the whole line if VPATH becomes empty
23955 # (actually we leave an empty line to preserve line numbers).
23956 if test "x$srcdir" = x.
; then
23957 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23958 s/:*\$(srcdir):*/:/;
23959 s/:*\${srcdir}:*/:/;
23961 s/^\([^=]*=[ ]*\):*/\1/;
23967 DEFS
=-DHAVE_CONFIG_H
23971 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23972 # 1. Remove the extension, and $U if already installed.
23973 ac_i
=`echo "$ac_i" |
23974 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23976 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23977 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23979 LIBOBJS
=$ac_libobjs
23981 LTLIBOBJS
=$ac_ltlibobjs
23985 : ${CONFIG_STATUS=./config.status}
23986 ac_clean_files_save
=$ac_clean_files
23987 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23988 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23989 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23990 cat >$CONFIG_STATUS <<_ACEOF
23992 # Generated by $as_me.
23993 # Run this file to recreate the current configuration.
23994 # Compiler output produced by configure, useful for debugging
23995 # configure, is in config.log if it exists.
23998 ac_cs_recheck=false
24000 SHELL=\${CONFIG_SHELL-$SHELL}
24003 cat >>$CONFIG_STATUS <<\_ACEOF
24004 ## --------------------- ##
24005 ## M4sh Initialization. ##
24006 ## --------------------- ##
24008 # Be Bourne compatible
24009 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24013 # is contrary to our usage. Disable this feature.
24014 alias -g '${1+"$@"}'='"$@"'
24015 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24018 DUALCASE
=1; export DUALCASE
# for MKS sh
24020 # Support unset when possible.
24021 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24028 # Work around bugs in pre-3.0 UWIN ksh.
24029 $as_unset ENV MAIL MAILPATH
24036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24038 LC_TELEPHONE LC_TIME
24040 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24041 eval $as_var=C
; export $as_var
24047 # Required to use basename.
24048 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24054 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
24055 as_basename
=basename
24061 # Name of the executable.
24062 as_me
=`$as_basename "$0" ||
24063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24064 X"$0" : 'X\(//\)$' \| \
24065 X"$0" : 'X\(/\)$' \| \
24066 . : '\(.\)' 2>/dev/null ||
24068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24069 /^X\/\(\/\/\)$/{ s//\1/; q; }
24070 /^X\/\(\/\).*/{ s//\1/; q; }
24074 # PATH needs CR, and LINENO needs CR and PATH.
24075 # Avoid depending upon Character Ranges.
24076 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24077 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24078 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24079 as_cr_digits
='0123456789'
24080 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24082 # The user is always right.
24083 if test "${PATH_SEPARATOR+set}" != set; then
24084 echo "#! /bin/sh" >conf$$.sh
24085 echo "exit 0" >>conf$$.sh
24087 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24096 as_lineno_1
=$LINENO
24097 as_lineno_2
=$LINENO
24098 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099 test "x$as_lineno_1" != "x$as_lineno_2" &&
24100 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
24101 # Find who we are. Look in the path if we contain no path at all
24104 *[\\/]* ) as_myself
=$0 ;;
24105 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24106 for as_dir
in $PATH
24109 test -z "$as_dir" && as_dir
=.
24110 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24115 # We did not find ourselves, most probably we were run as `sh COMMAND'
24116 # in which case we are not to be found in the path.
24117 if test "x$as_myself" = x
; then
24120 if test ! -f "$as_myself"; then
24121 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24122 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24123 { (exit 1); exit 1; }; }
24125 case $CONFIG_SHELL in
24127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
24131 test -z "$as_dir" && as_dir
=.
24132 for as_base
in sh bash ksh sh5
; do
24135 if ("$as_dir/$as_base" -c '
24136 as_lineno_1=$LINENO
24137 as_lineno_2=$LINENO
24138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24139 test "x$as_lineno_1" != "x$as_lineno_2" &&
24140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24141 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24142 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24143 CONFIG_SHELL
=$as_dir/$as_base
24144 export CONFIG_SHELL
24145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24154 # uniformly replaced by the line number. The first 'sed' inserts a
24155 # line-number line before each line; the second 'sed' does the real
24156 # work. The second script uses 'N' to pair each line-number line
24157 # with the numbered line, and appends trailing '-' during
24158 # substitution so that $LINENO is not a special case at line end.
24159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24161 sed '=' <$as_myself |
24166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24169 s,^['$as_cr_digits']*\n,,
24170 ' >$as_me.lineno
&&
24171 chmod +x
$as_me.lineno ||
24172 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24173 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24174 { (exit 1); exit 1; }; }
24176 # Don't try to exec as it changes $[0], causing all sort of problems
24177 # (the dirname of $[0] is not the place where we might find the
24178 # original and so on. Autoconf is especially sensible to this).
24180 # Exit status is that of the last command.
24185 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24186 *c
*,-n*) ECHO_N
= ECHO_C
='
24188 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24189 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24192 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24198 rm -f conf$$ conf$$.exe conf$$.
file
24200 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24201 # We could just check for DJGPP; but this test a) works b) is more generic
24202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24203 if test -f conf$$.exe
; then
24204 # Don't use ln at all; we don't have any links
24209 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24214 rm -f conf$$ conf$$.exe conf$$.
file
24216 if mkdir
-p .
2>/dev
/null
; then
24219 test -d .
/-p && rmdir .
/-p
24223 as_executable_p
="test -f"
24225 # Sed expression to map a string onto a valid CPP name.
24226 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24228 # Sed expression to map a string onto a valid variable name.
24229 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24233 # We need space, tab and new line, in precisely that order.
24243 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24244 # report actual input values of CONFIG_FILES etc. instead of their
24245 # values after options handling. Logging --version etc. is OK.
24249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24250 ## Running $as_me. ##
24255 This file was extended by $as_me, which was
24256 generated by GNU Autoconf 2.59. Invocation command line was
24258 CONFIG_FILES = $CONFIG_FILES
24259 CONFIG_HEADERS = $CONFIG_HEADERS
24260 CONFIG_LINKS = $CONFIG_LINKS
24261 CONFIG_COMMANDS = $CONFIG_COMMANDS
24265 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24269 # Files that config.status was made for.
24270 if test -n "$ac_config_files"; then
24271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24274 if test -n "$ac_config_headers"; then
24275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24278 if test -n "$ac_config_links"; then
24279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24282 if test -n "$ac_config_commands"; then
24283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24286 cat >>$CONFIG_STATUS <<\_ACEOF
24289 \`$as_me' instantiates files from templates according to the
24290 current configuration.
24292 Usage: $0 [OPTIONS] [FILE]...
24294 -h, --help print this help, then exit
24295 -V, --version print version number, then exit
24296 -q, --quiet do not print progress messages
24297 -d, --debug don't remove temporary files
24298 --recheck update $as_me by reconfiguring in the same conditions
24299 --file=FILE[:TEMPLATE]
24300 instantiate the configuration file FILE
24301 --header=FILE[:TEMPLATE]
24302 instantiate the configuration header FILE
24304 Configuration files:
24307 Configuration headers:
24310 Configuration commands:
24313 Report bugs to <bug-autoconf@gnu.org>."
24316 cat >>$CONFIG_STATUS <<_ACEOF
24319 configured by $0, generated by GNU Autoconf 2.59,
24320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24322 Copyright (C) 2003 Free Software Foundation, Inc.
24323 This config.status script is free software; the Free Software Foundation
24324 gives unlimited permission to copy, distribute and modify it."
24328 cat >>$CONFIG_STATUS <<\_ACEOF
24329 # If no file are specified by the user, then we need to provide default
24330 # value. By we need to know if files were specified by the user.
24336 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24337 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24345 *) # This is not an option, so the user has probably given explicit
24348 ac_need_defaults
=false
;;
24352 # Handling of the options.
24354 cat >>$CONFIG_STATUS <<\_ACEOF
24355 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24357 --version |
--vers* |
-V )
24358 echo "$ac_cs_version"; exit 0 ;;
24360 # Conflict between --help and --header
24361 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24362 Try \`$0 --help' for more information." >&5
24363 echo "$as_me: error: ambiguous option: $1
24364 Try \`$0 --help' for more information." >&2;}
24365 { (exit 1); exit 1; }; };;
24366 --help |
--hel |
-h )
24367 echo "$ac_cs_usage"; exit 0 ;;
24368 --debug |
--d* |
-d )
24370 --file |
--fil |
--fi |
--f )
24372 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24373 ac_need_defaults
=false
;;
24374 --header |
--heade |
--head |
--hea )
24376 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24377 ac_need_defaults
=false
;;
24378 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24379 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24382 # This is an error.
24383 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24384 Try \`$0 --help' for more information." >&5
24385 echo "$as_me: error: unrecognized option: $1
24386 Try \`$0 --help' for more information." >&2;}
24387 { (exit 1); exit 1; }; } ;;
24389 *) ac_config_targets
="$ac_config_targets $1" ;;
24395 ac_configure_extra_args
=
24397 if $ac_cs_silent; then
24399 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24403 cat >>$CONFIG_STATUS <<_ACEOF
24404 if \$ac_cs_recheck; then
24405 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24406 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24411 cat >>$CONFIG_STATUS <<_ACEOF
24413 # INIT-COMMANDS section.
24422 cat >>$CONFIG_STATUS <<\_ACEOF
24423 for ac_config_target
in $ac_config_targets
24425 case "$ac_config_target" in
24426 # Handling of arguments.
24427 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
24428 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24429 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
24430 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
24431 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24432 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
24433 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24434 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24435 { (exit 1); exit 1; }; };;
24439 # If the user did not use the arguments to specify the items to instantiate,
24440 # then the envvar interface is used. Set only those that are not.
24441 # We use the long form for the default assignment because of an extremely
24442 # bizarre bug on SunOS 4.1.3.
24443 if $ac_need_defaults; then
24444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24449 # Have a temporary directory for convenience. Make it in the build tree
24450 # simply because there is no reason to put it here, and in addition,
24451 # creating and moving files from /tmp can sometimes cause problems.
24452 # Create a temporary directory, and hook for its removal unless debugging.
24455 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24456 trap '{ (exit 1); exit 1; }' 1 2 13 15
24459 # Create a (secure) tmp directory for tmp files.
24462 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24463 test -n "$tmp" && test -d "$tmp"
24466 tmp
=.
/confstat$$
-$RANDOM
24467 (umask 077 && mkdir
$tmp)
24470 echo "$me: cannot create a temporary directory in ." >&2
24471 { (exit 1); exit 1; }
24476 cat >>$CONFIG_STATUS <<_ACEOF
24479 # CONFIG_FILES section.
24482 # No need to generate the scripts if there are no CONFIG_FILES.
24483 # This happens for instance when ./config.status config.h
24484 if test -n "\$CONFIG_FILES"; then
24485 # Protect against being on the right side of a sed subst in config.status.
24486 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24487 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24488 s,@SHELL@,$SHELL,;t t
24489 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24490 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24491 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24492 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24493 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24494 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24495 s,@exec_prefix@,$exec_prefix,;t t
24496 s,@prefix@,$prefix,;t t
24497 s,@program_transform_name@,$program_transform_name,;t t
24498 s,@bindir@,$bindir,;t t
24499 s,@sbindir@,$sbindir,;t t
24500 s,@libexecdir@,$libexecdir,;t t
24501 s,@datadir@,$datadir,;t t
24502 s,@sysconfdir@,$sysconfdir,;t t
24503 s,@sharedstatedir@,$sharedstatedir,;t t
24504 s,@localstatedir@,$localstatedir,;t t
24505 s,@libdir@,$libdir,;t t
24506 s,@includedir@,$includedir,;t t
24507 s,@oldincludedir@,$oldincludedir,;t t
24508 s,@infodir@,$infodir,;t t
24509 s,@mandir@,$mandir,;t t
24510 s,@build_alias@,$build_alias,;t t
24511 s,@host_alias@,$host_alias,;t t
24512 s,@target_alias@,$target_alias,;t t
24513 s,@DEFS@,$DEFS,;t t
24514 s,@ECHO_C@,$ECHO_C,;t t
24515 s,@ECHO_N@,$ECHO_N,;t t
24516 s,@ECHO_T@,$ECHO_T,;t t
24517 s,@LIBS@,$LIBS,;t t
24518 s,@build@,$build,;t t
24519 s,@build_cpu@,$build_cpu,;t t
24520 s,@build_vendor@,$build_vendor,;t t
24521 s,@build_os@,$build_os,;t t
24522 s,@host@,$host,;t t
24523 s,@host_cpu@,$host_cpu,;t t
24524 s,@host_vendor@,$host_vendor,;t t
24525 s,@host_os@,$host_os,;t t
24526 s,@target@,$target,;t t
24527 s,@target_cpu@,$target_cpu,;t t
24528 s,@target_vendor@,$target_vendor,;t t
24529 s,@target_os@,$target_os,;t t
24530 s,@target_noncanonical@,$target_noncanonical,;t t
24531 s,@build_libsubdir@,$build_libsubdir,;t t
24532 s,@build_subdir@,$build_subdir,;t t
24533 s,@host_subdir@,$host_subdir,;t t
24534 s,@target_subdir@,$target_subdir,;t t
24535 s,@GENINSRC@,$GENINSRC,;t t
24537 s,@CFLAGS@,$CFLAGS,;t t
24538 s,@LDFLAGS@,$LDFLAGS,;t t
24539 s,@CPPFLAGS@,$CPPFLAGS,;t t
24540 s,@ac_ct_CC@,$ac_ct_CC,;t t
24541 s,@EXEEXT@,$EXEEXT,;t t
24542 s,@OBJEXT@,$OBJEXT,;t t
24543 s,@GNATBIND@,$GNATBIND,;t t
24544 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24545 s,@GNATMAKE@,$GNATMAKE,;t t
24546 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24547 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24548 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24550 s,@EGREP@,$EGREP,;t t
24551 s,@loose_warn@,$loose_warn,;t t
24552 s,@strict_warn@,$strict_warn,;t t
24553 s,@warn_cflags@,$warn_cflags,;t t
24554 s,@nocommon_flag@,$nocommon_flag,;t t
24555 s,@TREEBROWSER@,$TREEBROWSER,;t t
24556 s,@valgrind_path@,$valgrind_path,;t t
24557 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24558 s,@valgrind_command@,$valgrind_command,;t t
24559 s,@coverage_flags@,$coverage_flags,;t t
24560 s,@enable_multilib@,$enable_multilib,;t t
24561 s,@enable_decimal_float@,$enable_decimal_float,;t t
24562 s,@enable_fixed_point@,$enable_fixed_point,;t t
24563 s,@enable_shared@,$enable_shared,;t t
24564 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24565 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24566 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24567 s,@onestep@,$onestep,;t t
24568 s,@PKGVERSION@,$PKGVERSION,;t t
24569 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24570 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24571 s,@datarootdir@,$datarootdir,;t t
24572 s,@docdir@,$docdir,;t t
24573 s,@htmldir@,$htmldir,;t t
24574 s,@SET_MAKE@,$SET_MAKE,;t t
24576 s,@LN_S@,$LN_S,;t t
24578 s,@RANLIB@,$RANLIB,;t t
24579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24580 s,@ranlib_flags@,$ranlib_flags,;t t
24581 s,@INSTALL@,$INSTALL,;t t
24582 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24583 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24584 s,@make_compare_target@,$make_compare_target,;t t
24585 s,@have_mktemp_command@,$have_mktemp_command,;t t
24586 s,@MAKEINFO@,$MAKEINFO,;t t
24587 s,@BUILD_INFO@,$BUILD_INFO,;t t
24588 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24589 s,@FLEX@,$FLEX,;t t
24590 s,@BISON@,$BISON,;t t
24593 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24594 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24595 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24596 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24597 s,@LIBICONV@,$LIBICONV,;t t
24598 s,@LTLIBICONV@,$LTLIBICONV,;t t
24599 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24600 s,@manext@,$manext,;t t
24601 s,@objext@,$objext,;t t
24602 s,@gthread_flags@,$gthread_flags,;t t
24603 s,@extra_modes_file@,$extra_modes_file,;t t
24604 s,@extra_opt_files@,$extra_opt_files,;t t
24605 s,@USE_NLS@,$USE_NLS,;t t
24606 s,@LIBINTL@,$LIBINTL,;t t
24607 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24608 s,@INCINTL@,$INCINTL,;t t
24609 s,@XGETTEXT@,$XGETTEXT,;t t
24610 s,@GMSGFMT@,$GMSGFMT,;t t
24611 s,@POSUB@,$POSUB,;t t
24612 s,@CATALOGS@,$CATALOGS,;t t
24613 s,@DATADIRNAME@,$DATADIRNAME,;t t
24614 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24615 s,@GENCAT@,$GENCAT,;t t
24616 s,@CATOBJEXT@,$CATOBJEXT,;t t
24617 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24618 s,@CROSS@,$CROSS,;t t
24620 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24621 s,@inhibit_libc@,$inhibit_libc,;t t
24622 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24623 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24624 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24625 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24626 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24627 s,@collect2@,$collect2,;t t
24628 s,@LIBTOOL@,$LIBTOOL,;t t
24630 s,@FGREP@,$FGREP,;t t
24631 s,@GREP@,$GREP,;t t
24633 s,@DUMPBIN@,$DUMPBIN,;t t
24634 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24635 s,@ac_ct_AR@,$ac_ct_AR,;t t
24636 s,@STRIP@,$STRIP,;t t
24637 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24638 s,@lt_ECHO@,$lt_ECHO,;t t
24639 s,@objdir@,$objdir,;t t
24640 s,@enable_fast_install@,$enable_fast_install,;t t
24641 s,@gcc_cv_as@,$gcc_cv_as,;t t
24642 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24643 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24644 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24645 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24646 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24647 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24648 s,@libgcc_visibility@,$libgcc_visibility,;t t
24650 s,@zlibdir@,$zlibdir,;t t
24651 s,@zlibinc@,$zlibinc,;t t
24652 s,@MAINT@,$MAINT,;t t
24653 s,@gcc_tooldir@,$gcc_tooldir,;t t
24654 s,@dollar@,$dollar,;t t
24655 s,@slibdir@,$slibdir,;t t
24656 s,@subdirs@,$subdirs,;t t
24657 s,@srcdir@,$srcdir,;t t
24658 s,@all_compilers@,$all_compilers,;t t
24659 s,@all_gtfiles@,$all_gtfiles,;t t
24660 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24661 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24662 s,@all_languages@,$all_languages,;t t
24663 s,@all_selected_languages@,$all_selected_languages,;t t
24664 s,@build_exeext@,$build_exeext,;t t
24665 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24666 s,@build_xm_file_list@,$build_xm_file_list,;t t
24667 s,@build_xm_include_list@,$build_xm_include_list,;t t
24668 s,@build_xm_defines@,$build_xm_defines,;t t
24669 s,@build_file_translate@,$build_file_translate,;t t
24670 s,@check_languages@,$check_languages,;t t
24671 s,@cpp_install_dir@,$cpp_install_dir,;t t
24672 s,@xmake_file@,$xmake_file,;t t
24673 s,@tmake_file@,$tmake_file,;t t
24674 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24675 s,@extra_headers_list@,$extra_headers_list,;t t
24676 s,@extra_objs@,$extra_objs,;t t
24677 s,@extra_parts@,$extra_parts,;t t
24678 s,@extra_passes@,$extra_passes,;t t
24679 s,@extra_programs@,$extra_programs,;t t
24680 s,@float_h_file@,$float_h_file,;t t
24681 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24682 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24683 s,@host_exeext@,$host_exeext,;t t
24684 s,@host_xm_file_list@,$host_xm_file_list,;t t
24685 s,@host_xm_include_list@,$host_xm_include_list,;t t
24686 s,@host_xm_defines@,$host_xm_defines,;t t
24687 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24688 s,@install@,$install,;t t
24689 s,@lang_opt_files@,$lang_opt_files,;t t
24690 s,@lang_specs_files@,$lang_specs_files,;t t
24691 s,@lang_tree_files@,$lang_tree_files,;t t
24692 s,@local_prefix@,$local_prefix,;t t
24693 s,@md_file@,$md_file,;t t
24694 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24695 s,@out_file@,$out_file,;t t
24696 s,@out_object_file@,$out_object_file,;t t
24697 s,@thread_file@,$thread_file,;t t
24698 s,@tm_file_list@,$tm_file_list,;t t
24699 s,@tm_include_list@,$tm_include_list,;t t
24700 s,@tm_defines@,$tm_defines,;t t
24701 s,@tm_p_file_list@,$tm_p_file_list,;t t
24702 s,@tm_p_include_list@,$tm_p_include_list,;t t
24703 s,@xm_file_list@,$xm_file_list,;t t
24704 s,@xm_include_list@,$xm_include_list,;t t
24705 s,@xm_defines@,$xm_defines,;t t
24706 s,@c_target_objs@,$c_target_objs,;t t
24707 s,@cxx_target_objs@,$cxx_target_objs,;t t
24708 s,@fortran_target_objs@,$fortran_target_objs,;t t
24709 s,@target_cpu_default@,$target_cpu_default,;t t
24710 s,@GMPLIBS@,$GMPLIBS,;t t
24711 s,@GMPINC@,$GMPINC,;t t
24712 s,@LIBOBJS@,$LIBOBJS,;t t
24713 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24714 /@language_hooks@/r $language_hooks
24715 s,@language_hooks@,,;t t
24720 cat >>$CONFIG_STATUS <<\_ACEOF
24721 # Split the substitutions into bite-sized pieces for seds with
24722 # small command number limits, like on Digital OSF/1 and HP-UX.
24723 ac_max_sed_lines
=48
24724 ac_sed_frag
=1 # Number of current file.
24725 ac_beg
=1 # First line for current file.
24726 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24729 while $ac_more_lines; do
24730 if test $ac_beg -gt 1; then
24731 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24733 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24735 if test ! -s $tmp/subs.frag
; then
24736 ac_more_lines
=false
24738 # The purpose of the label and of the branching condition is to
24739 # speed up the sed processing (if there are no `@' at all, there
24740 # is no need to browse any of the substitutions).
24741 # These are the two extra sed commands mentioned above.
24743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24744 if test -z "$ac_sed_cmds"; then
24745 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24747 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24749 ac_sed_frag
=`expr $ac_sed_frag + 1`
24751 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24754 if test -z "$ac_sed_cmds"; then
24757 fi # test -n "$CONFIG_FILES"
24760 cat >>$CONFIG_STATUS <<\_ACEOF
24761 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24764 - |
*:- |
*:-:* ) # input from stdin
24766 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24767 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24768 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24769 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24770 * ) ac_file_in
=$ac_file.
in ;;
24773 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24774 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24776 X"$ac_file" : 'X\(//\)[^/]' \| \
24777 X"$ac_file" : 'X\(//\)$' \| \
24778 X"$ac_file" : 'X\(/\)' \| \
24779 . : '\(.\)' 2>/dev/null ||
24781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24783 /^X\(\/\/\)$/{ s//\1/; q; }
24784 /^X\(\/\).*/{ s//\1/; q; }
24786 { if $as_mkdir_p; then
24791 while test ! -d "$as_dir"; do
24792 as_dirs
="$as_dir $as_dirs"
24793 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24795 X"$as_dir" : 'X\(//\)[^/]' \| \
24796 X"$as_dir" : 'X\(//\)$' \| \
24797 X"$as_dir" : 'X\(/\)' \| \
24798 . : '\(.\)' 2>/dev/null ||
24800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24802 /^X\(\/\/\)$/{ s//\1/; q; }
24803 /^X\(\/\).*/{ s//\1/; q; }
24806 test ! -n "$as_dirs" || mkdir
$as_dirs
24807 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24808 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24809 { (exit 1); exit 1; }; }; }
24813 if test "$ac_dir" != .
; then
24814 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24815 # A "../" for each directory in $ac_dir_suffix.
24816 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24818 ac_dir_suffix
= ac_top_builddir
=
24822 .
) # No --srcdir option. We are building in place.
24824 if test -z "$ac_top_builddir"; then
24827 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24829 [\\/]* | ?
:[\\/]* ) # Absolute path.
24830 ac_srcdir
=$srcdir$ac_dir_suffix;
24831 ac_top_srcdir
=$srcdir ;;
24832 *) # Relative path.
24833 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24834 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24837 # Do not use `cd foo && pwd` to compute absolute paths, because
24838 # the directories may not exist.
24840 .
) ac_abs_builddir
="$ac_dir";;
24843 .
) ac_abs_builddir
=`pwd`;;
24844 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24845 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24848 case $ac_abs_builddir in
24849 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24851 case ${ac_top_builddir}.
in
24852 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24853 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24854 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24857 case $ac_abs_builddir in
24858 .
) ac_abs_srcdir
=$ac_srcdir;;
24861 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24862 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24863 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24866 case $ac_abs_builddir in
24867 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24869 case $ac_top_srcdir in
24870 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24871 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24872 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24878 if test x
"$ac_file" != x-
; then
24879 { echo "$as_me:$LINENO: creating $ac_file" >&5
24880 echo "$as_me: creating $ac_file" >&6;}
24883 # Let's still pretend it is `configure' which instantiates (i.e., don't
24884 # use $as_me), people would be surprised to read:
24885 # /* config.h. Generated by config.status. */
24886 if test x
"$ac_file" = x-
; then
24889 configure_input
="$ac_file. "
24891 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24892 sed 's,.*/,,'` by configure."
24894 # First look for the input files in the build tree, otherwise in the
24896 ac_file_inputs
=`IFS=:
24897 for f in $ac_file_in; do
24899 -) echo $tmp/stdin ;;
24901 # Absolute (can't be DOS-style, as IFS=:)
24902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24903 echo "$as_me: error: cannot find input file: $f" >&2;}
24904 { (exit 1); exit 1; }; }
24907 if test -f "$f"; then
24910 elif test -f "$srcdir/$f"; then
24915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24916 echo "$as_me: error: cannot find input file: $f" >&2;}
24917 { (exit 1); exit 1; }; }
24920 done` ||
{ (exit 1); exit 1; }
24922 cat >>$CONFIG_STATUS <<_ACEOF
24926 cat >>$CONFIG_STATUS <<\_ACEOF
24928 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24929 s
,@configure_input@
,$configure_input,;t t
24930 s
,@srcdir@
,$ac_srcdir,;t t
24931 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24932 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24933 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24934 s
,@builddir@
,$ac_builddir,;t t
24935 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24936 s
,@top_builddir@
,$ac_top_builddir,;t t
24937 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24938 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24940 if test x"$ac_file" != x-; then
24941 mv $tmp/out $ac_file
24947 # Run the commands associated with the file.
24949 as ) chmod +x as ;;
24950 collect-ld ) chmod +x collect-ld ;;
24951 nm ) chmod +x nm ;;
24955 cat >>$CONFIG_STATUS <<\_ACEOF
24958 # CONFIG_HEADER section.
24961 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24962 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24964 # ac_d sets the value in "#define NAME VALUE" lines.
24965 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24966 ac_dB
='[ ].*$,\1#\2'
24969 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24970 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24971 ac_uB
='$,\1#\2define\3'
24975 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24978 - |
*:- |
*:-:* ) # input from stdin
24980 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24981 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24982 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24983 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24984 * ) ac_file_in
=$ac_file.
in ;;
24987 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24988 echo "$as_me: creating $ac_file" >&6;}
24990 # First look for the input files in the build tree, otherwise in the
24992 ac_file_inputs
=`IFS=:
24993 for f in $ac_file_in; do
24995 -) echo $tmp/stdin ;;
24997 # Absolute (can't be DOS-style, as IFS=:)
24998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24999 echo "$as_me: error: cannot find input file: $f" >&2;}
25000 { (exit 1); exit 1; }; }
25001 # Do quote $f, to prevent DOS paths from being IFS'd.
25004 if test -f "$f"; then
25007 elif test -f "$srcdir/$f"; then
25012 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25013 echo "$as_me: error: cannot find input file: $f" >&2;}
25014 { (exit 1); exit 1; }; }
25017 done` ||
{ (exit 1); exit 1; }
25018 # Remove the trailing spaces.
25019 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25023 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25024 # `conftest.undefs', that substitutes the proper values into
25025 # config.h.in to produce config.h. The first handles `#define'
25026 # templates, and the second `#undef' templates.
25027 # And first: Protect against being on the right side of a sed subst in
25028 # config.status. Protect against being in an unquoted here document
25029 # in config.status.
25030 rm -f conftest.defines conftest.undefs
25031 # Using a here document instead of a string reduces the quoting nightmare.
25032 # Putting comments in sed scripts is not portable.
25034 # `end' is used to avoid that the second main sed command (meant for
25035 # 0-ary CPP macros) applies to n-ary macro definitions.
25036 # See the Autoconf documentation for `clear'.
25037 cat >confdef2sed.
sed <<\_ACEOF
25042 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25044 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25047 # If some macros were called several times there might be several times
25048 # the same #defines, which is useless. Nevertheless, we may not want to
25049 # sort them, since we want the *last* AC-DEFINE to be honored.
25050 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25051 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25052 rm -f confdef2sed.sed
25054 # This sed command replaces #undef with comments. This is necessary, for
25055 # example, in the case of _POSIX_SOURCE, which is predefined and required
25056 # on some systems where configure will not decide to define it.
25057 cat >>conftest.undefs <<\_ACEOF
25058 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25061 # Break up conftest.defines because some shells have a limit on the size
25062 # of here documents, and old seds have small limits too (100 cmds).
25063 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25064 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25065 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25066 echo ' :' >>$CONFIG_STATUS
25067 rm -f conftest.tail
25068 while grep . conftest.defines >/dev/null
25070 # Write a limited-size here document to $tmp/defines.sed.
25071 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25072 # Speed up: don't consider the non `#define' lines.
25073 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25074 # Work around the forget-to-reset-the-flag bug.
25075 echo 't clr' >>$CONFIG_STATUS
25076 echo ': clr' >>$CONFIG_STATUS
25077 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
25079 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25081 mv $tmp/out $tmp/in
25083 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
25084 rm -f conftest.defines
25085 mv conftest.
tail conftest.defines
25087 rm -f conftest.defines
25088 echo ' fi # grep' >>$CONFIG_STATUS
25089 echo >>$CONFIG_STATUS
25091 # Break up conftest.undefs because some shells have a limit on the size
25092 # of here documents, and old seds have small limits too (100 cmds).
25093 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25094 rm -f conftest.
tail
25095 while grep . conftest.undefs
>/dev
/null
25097 # Write a limited-size here document to $tmp/undefs.sed.
25098 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25099 # Speed up: don't consider the non
`#undef'
25100 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25101 # Work around the forget-to-reset-the-flag bug.
25102 echo 't clr' >>$CONFIG_STATUS
25103 echo ': clr' >>$CONFIG_STATUS
25104 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25106 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25108 mv $tmp/out $tmp/in
25110 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25111 rm -f conftest.undefs
25112 mv conftest.tail conftest.undefs
25114 rm -f conftest.undefs
25116 cat >>$CONFIG_STATUS <<\_ACEOF
25117 # Let's still pretend it is `configure
' which instantiates (i.e., don't
25118 # use $as_me), people would be surprised to read:
25119 # /* config.h. Generated by config.status. */
25120 if test x
"$ac_file" = x-
; then
25121 echo "/* Generated by configure. */" >$tmp/config.h
25123 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25125 cat $tmp/in >>$tmp/config.h
25127 if test x
"$ac_file" != x-
; then
25128 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
25129 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25130 echo "$as_me: $ac_file is unchanged" >&6;}
25132 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25134 X"$ac_file" : 'X\(//\)[^/]' \| \
25135 X"$ac_file" : 'X\(//\)$' \| \
25136 X"$ac_file" : 'X\(/\)' \| \
25137 . : '\(.\)' 2>/dev/null ||
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25141 /^X\(\/\/\)$/{ s//\1/; q; }
25142 /^X\(\/\).*/{ s//\1/; q; }
25144 { if $as_mkdir_p; then
25149 while test ! -d "$as_dir"; do
25150 as_dirs
="$as_dir $as_dirs"
25151 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25153 X"$as_dir" : 'X\(//\)[^/]' \| \
25154 X"$as_dir" : 'X\(//\)$' \| \
25155 X"$as_dir" : 'X\(/\)' \| \
25156 . : '\(.\)' 2>/dev/null ||
25158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25160 /^X\(\/\/\)$/{ s//\1/; q; }
25161 /^X\(\/\).*/{ s//\1/; q; }
25164 test ! -n "$as_dirs" || mkdir
$as_dirs
25165 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25167 { (exit 1); exit 1; }; }; }
25170 mv $tmp/config.h
$ac_file
25174 rm -f $tmp/config.h
25178 cat >>$CONFIG_STATUS <<\_ACEOF
25181 # CONFIG_COMMANDS section.
25183 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
25184 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25185 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25186 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25187 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25188 X"$ac_dest" : 'X\(//\)[^/]' \| \
25189 X"$ac_dest" : 'X\(//\)$' \| \
25190 X"$ac_dest" : 'X\(/\)' \| \
25191 . : '\(.\)' 2>/dev/null ||
25193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25195 /^X\(\/\/\)$/{ s//\1/; q; }
25196 /^X\(\/\).*/{ s//\1/; q; }
25198 { if $as_mkdir_p; then
25203 while test ! -d "$as_dir"; do
25204 as_dirs
="$as_dir $as_dirs"
25205 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25207 X"$as_dir" : 'X\(//\)[^/]' \| \
25208 X"$as_dir" : 'X\(//\)$' \| \
25209 X"$as_dir" : 'X\(/\)' \| \
25210 . : '\(.\)' 2>/dev/null ||
25212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25214 /^X\(\/\/\)$/{ s//\1/; q; }
25215 /^X\(\/\).*/{ s//\1/; q; }
25218 test ! -n "$as_dirs" || mkdir
$as_dirs
25219 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25221 { (exit 1); exit 1; }; }; }
25225 if test "$ac_dir" != .
; then
25226 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25227 # A "../" for each directory in $ac_dir_suffix.
25228 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25230 ac_dir_suffix
= ac_top_builddir
=
25234 .
) # No --srcdir option. We are building in place.
25236 if test -z "$ac_top_builddir"; then
25239 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25241 [\\/]* | ?
:[\\/]* ) # Absolute path.
25242 ac_srcdir
=$srcdir$ac_dir_suffix;
25243 ac_top_srcdir
=$srcdir ;;
25244 *) # Relative path.
25245 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25246 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25249 # Do not use `cd foo && pwd` to compute absolute paths, because
25250 # the directories may not exist.
25252 .
) ac_abs_builddir
="$ac_dir";;
25255 .
) ac_abs_builddir
=`pwd`;;
25256 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25257 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25260 case $ac_abs_builddir in
25261 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25263 case ${ac_top_builddir}.
in
25264 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25265 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25266 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25269 case $ac_abs_builddir in
25270 .
) ac_abs_srcdir
=$ac_srcdir;;
25273 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25274 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25275 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25278 case $ac_abs_builddir in
25279 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25281 case $ac_top_srcdir in
25282 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25283 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25284 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25289 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25290 echo "$as_me: executing $ac_dest commands" >&6;}
25293 case ${CONFIG_HEADERS} in
25294 *auto-host.h
:config.
in*)
25297 # Make sure all the subdirs exist.
25298 for d
in $subdirs doc build
25300 test -d $d || mkdir
$d
25307 cat >>$CONFIG_STATUS <<\_ACEOF
25309 { (exit 0); exit 0; }
25311 chmod +x
$CONFIG_STATUS
25312 ac_clean_files
=$ac_clean_files_save
25315 # configure is writing to config.log, and then calls config.status.
25316 # config.status does its own redirection, appending to config.log.
25317 # Unfortunately, on DOS this fails, as config.log is still kept open
25318 # by configure, so config.status won't be able to write to it; its
25319 # output is simply discarded. So we exec the FD to /dev/null,
25320 # effectively closing config.log, so it can be properly (re)opened and
25321 # appended to by config.status. When coming back to configure, we
25322 # need to make the FD available again.
25323 if test "$no_create" != yes; then
25325 ac_config_status_args
=
25326 test "$silent" = yes &&
25327 ac_config_status_args
="$ac_config_status_args --quiet"
25329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25332 # would make configure fail if this is the last instruction.
25333 $ac_cs_success ||
{ (exit 1); exit 1; }