2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
308 for dir
in $PATH /usr
/ucb
; do
310 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho
; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL
=/bin
/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
349 SHELL
="$CONFIG_SHELL"
351 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string
=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix
=/usr
/local
404 ac_config_libobj_dir
=.
409 SHELL
=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file
="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default
="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files
='language_hooks'
465 # Initialize some variables set by options.
467 ac_init_version
=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name
=s
,x
,x
,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir
='${exec_prefix}/bin'
491 sbindir
='${exec_prefix}/sbin'
492 libexecdir
='${exec_prefix}/libexec'
493 datadir
='${prefix}/share'
494 sysconfdir
='${prefix}/etc'
495 sharedstatedir
='${prefix}/com'
496 localstatedir
='${prefix}/var'
497 libdir
='${exec_prefix}/lib'
498 includedir
='${prefix}/include'
499 oldincludedir
='/usr/include'
500 infodir
='${prefix}/info'
501 mandir
='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
521 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
524 -build |
--build |
--buil |
--bui |
--bu)
525 ac_prev
=build_alias
;;
526 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
527 build_alias
=$ac_optarg ;;
529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
531 ac_prev
=cache_file
;;
532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
534 cache_file
=$ac_optarg ;;
537 cache_file
=config.cache
;;
539 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
541 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
543 datadir
=$ac_optarg ;;
545 -disable-* |
--disable-*)
546 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* |
--enable-*)
555 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
568 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
569 |
--exec |
--exe |
--ex)
570 ac_prev
=exec_prefix
;;
571 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
572 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
573 |
--exec=* |
--exe=* |
--ex=*)
574 exec_prefix
=$ac_optarg ;;
576 -gas |
--gas |
--ga |
--g)
577 # Obsolete; use --with-gas.
580 -help |
--help |
--hel |
--he |
-h)
582 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
583 ac_init_help
=recursive
;;
584 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
585 ac_init_help
=short
;;
587 -host |
--host |
--hos |
--ho)
588 ac_prev
=host_alias
;;
589 -host=* |
--host=* |
--hos=* |
--ho=*)
590 host_alias
=$ac_optarg ;;
592 -includedir |
--includedir |
--includedi |
--included |
--include \
593 |
--includ |
--inclu |
--incl |
--inc)
594 ac_prev
=includedir
;;
595 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
596 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
597 includedir
=$ac_optarg ;;
599 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
601 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
602 infodir
=$ac_optarg ;;
604 -libdir |
--libdir |
--libdi |
--libd)
606 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
609 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
610 |
--libexe |
--libex |
--libe)
611 ac_prev
=libexecdir
;;
612 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
613 |
--libexe=* |
--libex=* |
--libe=*)
614 libexecdir
=$ac_optarg ;;
616 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
617 |
--localstate |
--localstat |
--localsta |
--localst \
618 |
--locals |
--local |
--loca |
--loc |
--lo)
619 ac_prev
=localstatedir
;;
620 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
621 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
622 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
623 localstatedir
=$ac_optarg ;;
625 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
627 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
631 # Obsolete; use --without-fp.
634 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
635 |
--no-cr |
--no-c |
-n)
638 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
639 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
642 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
643 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
644 |
--oldin |
--oldi |
--old |
--ol |
--o)
645 ac_prev
=oldincludedir
;;
646 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
647 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
648 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
649 oldincludedir
=$ac_optarg ;;
651 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
653 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
656 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
657 |
--program-pre |
--program-pr |
--program-p)
658 ac_prev
=program_prefix
;;
659 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
660 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
661 program_prefix
=$ac_optarg ;;
663 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
664 |
--program-suf |
--program-su |
--program-s)
665 ac_prev
=program_suffix
;;
666 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
667 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
668 program_suffix
=$ac_optarg ;;
670 -program-transform-name |
--program-transform-name \
671 |
--program-transform-nam |
--program-transform-na \
672 |
--program-transform-n |
--program-transform- \
673 |
--program-transform |
--program-transfor \
674 |
--program-transfo |
--program-transf \
675 |
--program-trans |
--program-tran \
676 |
--progr-tra |
--program-tr |
--program-t)
677 ac_prev
=program_transform_name
;;
678 -program-transform-name=* |
--program-transform-name=* \
679 |
--program-transform-nam=* |
--program-transform-na=* \
680 |
--program-transform-n=* |
--program-transform-=* \
681 |
--program-transform=* |
--program-transfor=* \
682 |
--program-transfo=* |
--program-transf=* \
683 |
--program-trans=* |
--program-tran=* \
684 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
685 program_transform_name
=$ac_optarg ;;
687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
688 |
-silent |
--silent |
--silen |
--sile |
--sil)
691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
695 sbindir
=$ac_optarg ;;
697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
701 ac_prev
=sharedstatedir
;;
702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
706 sharedstatedir
=$ac_optarg ;;
708 -site |
--site |
--sit)
710 -site=* |
--site=* |
--sit=*)
713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
720 ac_prev
=sysconfdir
;;
721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
723 sysconfdir
=$ac_optarg ;;
725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
726 ac_prev
=target_alias
;;
727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
728 target_alias
=$ac_optarg ;;
730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
733 -version |
--version |
--versio |
--versi |
--vers |
-V)
737 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package
=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* |
--without-*)
750 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package
=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
763 |
--x-incl |
--x-inc |
--x-in |
--x-i)
764 ac_prev
=x_includes
;;
765 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
766 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
767 x_includes
=$ac_optarg ;;
769 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
770 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
771 ac_prev
=x_libraries
;;
772 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
773 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
774 x_libraries
=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var
in exec_prefix prefix
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val
=$
`echo $ac_var`
825 [\\/$
]* | ?
:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x
; then
840 if test "x$build_alias" = x
; then
841 cross_compiling
=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
852 test "$silent" = yes && exec 6>/dev
/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted
=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir
=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted
=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set
=${build_alias+set}
892 ac_env_build_alias_value
=$build_alias
893 ac_cv_env_build_alias_set
=${build_alias+set}
894 ac_cv_env_build_alias_value
=$build_alias
895 ac_env_host_alias_set
=${host_alias+set}
896 ac_env_host_alias_value
=$host_alias
897 ac_cv_env_host_alias_set
=${host_alias+set}
898 ac_cv_env_host_alias_value
=$host_alias
899 ac_env_target_alias_set
=${target_alias+set}
900 ac_env_target_alias_value
=$target_alias
901 ac_cv_env_target_alias_set
=${target_alias+set}
902 ac_cv_env_target_alias_value
=$target_alias
903 ac_env_CC_set
=${CC+set}
905 ac_cv_env_CC_set
=${CC+set}
906 ac_cv_env_CC_value
=$CC
907 ac_env_CFLAGS_set
=${CFLAGS+set}
908 ac_env_CFLAGS_value
=$CFLAGS
909 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value
=$CFLAGS
911 ac_env_LDFLAGS_set
=${LDFLAGS+set}
912 ac_env_LDFLAGS_value
=$LDFLAGS
913 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value
=$LDFLAGS
915 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value
=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
919 ac_env_CPP_set
=${CPP+set}
920 ac_env_CPP_value
=$CPP
921 ac_cv_env_CPP_set
=${CPP+set}
922 ac_cv_env_CPP_value
=$CPP
923 ac_env_GMPLIBS_set
=${GMPLIBS+set}
924 ac_env_GMPLIBS_value
=$GMPLIBS
925 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value
=$GMPLIBS
927 ac_env_GMPINC_set
=${GMPINC+set}
928 ac_env_GMPINC_value
=$GMPINC
929 ac_cv_env_GMPINC_set
=${GMPINC+set}
930 ac_cv_env_GMPINC_value
=$GMPINC
931 ac_env_PPLLIBS_set
=${PPLLIBS+set}
932 ac_env_PPLLIBS_value
=$PPLLIBS
933 ac_cv_env_PPLLIBS_set
=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value
=$PPLLIBS
935 ac_env_PPLINC_set
=${PPLINC+set}
936 ac_env_PPLINC_value
=$PPLINC
937 ac_cv_env_PPLINC_set
=${PPLINC+set}
938 ac_cv_env_PPLINC_value
=$PPLINC
939 ac_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value
=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set
=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value
=$CLOOGLIBS
943 ac_env_CLOOGINC_set
=${CLOOGINC+set}
944 ac_env_CLOOGINC_value
=$CLOOGINC
945 ac_cv_env_CLOOGINC_set
=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value
=$CLOOGINC
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1014 --build=BUILD configure
for building on BUILD
[guessed
]
1015 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1016 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1026 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1027 --enable-generated-files-in-srcdir
1028 put copies of generated files
in source dir
1029 intended
for creating
source tarballs
for users
1030 without texinfo bison or flex.
1031 --enable-werror-always enable -Werror despite compiler version
1032 --enable-checking=LIST
1033 enable expensive run-time checks. With LIST
,
1034 enable only specific categories of checks.
1035 Categories are
: yes,no
,all
,none
,release.
1036 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1037 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1038 --enable-coverage=LEVEL
1039 enable compiler
's code coverage collection.
1040 Use to measure compiler performance and locate
1041 unused parts of the compiler. With LEVEL, specify
1042 optimization. Values are opt, noopt,
1044 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1045 --enable-multilib enable library support for multiple ABIs
1046 --enable-__cxa_atexit enable __cxa_atexit for C++
1047 --enable-decimal-float={no,yes,bid,dpd}
1048 enable decimal float extension to C. Selecting 'bid
'
1049 or 'dpd
' choses which decimal floating point format
1051 --enable-fixed-point enable fixed-point arithmetic extension to C
1052 --enable-threads enable thread usage for target GCC
1053 --enable-threads=LIB use LIB thread package for target GCC
1054 --enable-tls enable or disable generation of tls code
1055 overriding the assembler check for tls support
1056 --enable-objc-gc enable the use of Boehm's garbage collector with
1057 the GNU Objective-C runtime
1058 --disable-shared don
't provide a shared libgcc
1059 --enable-intermodule build the compiler in one step
1060 --enable-languages=LIST specify which front-ends to build
1061 --disable-rpath do not hardcode runtime library paths
1062 --enable-initfini-array use .init_array/.fini_array sections
1063 --enable-sjlj-exceptions
1064 arrange to use setjmp/longjmp exception handling
1065 --enable-secureplt enable -msecure-plt by default for PowerPC
1066 --enable-cld enable -mcld by default for 32bit x86
1067 --disable-win32-registry
1068 disable lookup of installation paths in the
1069 Registry on Windows hosts
1070 --enable-win32-registry enable registry lookup (default)
1071 --enable-win32-registry=KEY
1072 use KEY instead of GCC version as the last portion
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --enable-linker-build-id
1082 compiler will always pass --build-id to linker
1083 --enable-maintainer-mode
1084 enable make rules and dependencies not useful
1085 (and sometimes confusing) to the casual installer
1086 --enable-version-specific-runtime-libs
1087 specify that runtime libraries should be
1088 installed in a compiler-specific directory
1089 --enable-plugin enable plugin support
1092 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1093 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1094 --with-build-libsubdir=DIR Directory where to find libraries for build system
1095 --with-local-prefix=DIR specifies directory to put local include
1096 --with-gxx-include-dir=DIR
1097 specifies directory to put g++ header files
1098 --with-cpp-install-dir=DIR
1099 install the user visible C preprocessor in DIR
1100 (relative to PREFIX) as well as PREFIX/bin
1101 --with-gnu-ld arrange to work with GNU ld.
1102 --with-ld arrange to use the specified ld (full pathname)
1103 --with-demangler-in-ld try to use demangler in GNU ld.
1104 --with-gnu-as arrange to work with GNU as
1105 --with-as arrange to use the specified as (full pathname)
1106 --with-stabs arrange to use stabs instead of host debug format
1107 --with-dwarf2 force the default debug format to be DWARF 2
1108 --with-build-sysroot=sysroot
1109 use sysroot as the system root during the build
1110 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1111 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1112 --with-bugurl=URL Direct users to URL to report a bug
1113 --with-multilib-list Select multilibs (SH only)
1114 --with-gnu-ld assume the C compiler uses GNU ld default=no
1115 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1116 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1117 --with-system-libunwind use installed libunwind
1118 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1120 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1121 --with-long-double-128 Use
128-bit long double by default.
1122 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1124 --with-system-zlib use installed libz
1125 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1126 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1127 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1128 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1130 Some influential environment variables
:
1131 CC C compiler
command
1132 CFLAGS C compiler flags
1133 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1134 nonstandard directory
<lib dir
>
1135 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1136 headers
in a nonstandard directory
<include dir
>
1138 GMPLIBS How to link GMP
1139 GMPINC How to
find GMP include files
1140 PPLLIBS How to link PPL
1141 PPLINC How to
find PPL include files
1142 CLOOGLIBS How to link CLOOG
1143 CLOOGINC How to
find CLOOG include files
1145 Use these variables to override the choices made by
`configure' or to help
1146 it to find libraries and programs with nonstandard names/locations.
1151 if test "$ac_init_help" = "recursive"; then
1152 # If there are subdirs, report their specific --help.
1154 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1155 test -d $ac_dir || continue
1158 if test "$ac_dir" != .; then
1159 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1160 # A "../" for each directory in $ac_dir_suffix.
1161 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1163 ac_dir_suffix= ac_top_builddir=
1167 .) # No --srcdir option. We are building in place.
1169 if test -z "$ac_top_builddir"; then
1172 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1174 [\\/]* | ?:[\\/]* ) # Absolute path.
1175 ac_srcdir=$srcdir$ac_dir_suffix;
1176 ac_top_srcdir=$srcdir ;;
1178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1183 # the directories may not exist.
1185 .) ac_abs_builddir="$ac_dir";;
1188 .) ac_abs_builddir=`pwd`;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193 case $ac_abs_builddir in
1194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1196 case ${ac_top_builddir}. in
1197 .) ac_abs_top_builddir=$ac_abs_builddir;;
1198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202 case $ac_abs_builddir in
1203 .) ac_abs_srcdir=$ac_srcdir;;
1206 .) ac_abs_srcdir=$ac_abs_builddir;;
1207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211 case $ac_abs_builddir in
1212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1214 case $ac_top_srcdir in
1215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1222 # Check for guested configure; otherwise get Cygnus style configure.
1223 if test -f $ac_srcdir/configure.gnu; then
1225 $SHELL $ac_srcdir/configure.gnu --help=recursive
1226 elif test -f $ac_srcdir/configure; then
1228 $SHELL $ac_srcdir/configure --help=recursive
1229 elif test -f $ac_srcdir/configure.ac ||
1230 test -f $ac_srcdir/configure.in; then
1232 $ac_configure --help
1234 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1240 test -n "$ac_init_help" && exit 0
1241 if $ac_init_version; then
1244 Copyright (C) 2003 Free Software Foundation, Inc.
1245 This configure script is free software; the Free Software Foundation
1246 gives unlimited permission to copy, distribute and modify it.
1252 This file contains any messages produced by compilers while
1253 running configure, to aid debugging if configure makes a mistake.
1255 It was created by $as_me, which was
1256 generated by GNU Autoconf 2.59. Invocation command line was
1267 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1268 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1269 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1270 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1271 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1273 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1274 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1276 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1277 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1278 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1279 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1280 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1281 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1282 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290 test -z "$as_dir" && as_dir=.
1291 echo "PATH: $as_dir"
1306 # Keep a trace of the command line.
1307 # Strip out --no-create and --no-recursion so they do not pile up.
1308 # Strip out --silent because we don't want to record it for future runs.
1309 # Also quote any args containing shell meta-characters.
1310 # Make two passes to allow for proper duplicate-argument suppression.
1315 ac_must_keep_next=false
1321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1329 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1331 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332 if test $ac_must_keep_next = true; then
1333 ac_must_keep_next=false # Got value, back to normal.
1336 *=* | --config-cache | -C | -disable-* | --disable-* \
1337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339 | -with-* | --with-* | -without-* | --without-* | --x)
1340 case "$ac_configure_args0 " in
1341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344 -* ) ac_must_keep_next=true ;;
1347 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348 # Get rid of the leading space.
1354 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1357 # When interrupted or exit'd, cleanup temporary files, and complete
1358 # config.log. We remove comments because anyway the quotes in there
1359 # would cause problems or look ugly.
1360 # WARNING: Be sure not to use single quotes in there, as some shells,
1361 # such as our DU 5.0 friend, will then `close
' the trap.
1362 trap 'exit_status
=$?
1363 # Save into config.log some information that might help in debugging.
1368 ## ---------------- ##
1369 ## Cache variables. ##
1370 ## ---------------- ##
1373 # The following way of writing the cache mishandles newlines in values,
1376 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1391 ## ----------------- ##
1392 ## Output variables. ##
1393 ## ----------------- ##
1396 for ac_var
in $ac_subst_vars
1398 eval ac_val
=$
`echo $ac_var`
1399 echo "$ac_var='"'"'$ac_val'"'"'"
1403 if test -n "$ac_subst_files"; then
1410 for ac_var
in $ac_subst_files
1412 eval ac_val
=$
`echo $ac_var`
1413 echo "$ac_var='"'"'$ac_val'"'"'"
1418 if test -s confdefs.h
; then
1425 sed "/^$/d" confdefs.h |
sort
1428 test "$ac_signal" != 0 &&
1429 echo "$as_me: caught signal $ac_signal"
1430 echo "$as_me: exit $exit_status"
1432 rm -f core
*.core
&&
1433 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1436 for ac_signal in 1 2 13 15; do
1437 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1442 rm -rf conftest* confdefs.h
1443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446 # Predefined preprocessor variables.
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_NAME "$PACKAGE_NAME"
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_STRING "$PACKAGE_STRING"
1468 cat >>confdefs.h <<_ACEOF
1469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473 # Let the site file select an alternate cache file if it wants to.
1474 # Prefer explicitly selected file to automatically selected ones.
1475 if test -z "$CONFIG_SITE"; then
1476 if test "x$prefix" != xNONE; then
1477 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1479 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482 for ac_site_file in $CONFIG_SITE; do
1483 if test -r "$ac_site_file"; then
1484 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485 echo "$as_me: loading site script $ac_site_file" >&6;}
1486 sed 's
/^
/|
/' "$ac_site_file" >&5
1491 if test -r "$cache_file"; then
1492 # Some versions of bash will fail to source /dev/null (special
1493 # files actually), so we avoid doing that.
1494 if test -f "$cache_file"; then
1495 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496 echo "$as_me: loading cache $cache_file" >&6;}
1498 [\\/]* | ?:[\\/]* ) . $cache_file;;
1499 *) . ./$cache_file;;
1503 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504 echo "$as_me: creating cache $cache_file" >&6;}
1508 # Check that the precious variables saved in the cache have kept the same
1510 ac_cache_corrupted=false
1511 for ac_var in `(set) 2>&1 |
1512 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514 eval ac_new_set=\$ac_env_${ac_var}_set
1515 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516 eval ac_new_val="\$ac_env_${ac_var}_value"
1517 case $ac_old_set,$ac_new_set in
1519 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1520 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1521 ac_cache_corrupted=: ;;
1523 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1524 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525 ac_cache_corrupted=: ;;
1528 if test "x$ac_old_val" != "x$ac_new_val"; then
1529 # differences in whitespace do not lead to failure.
1530 ac_old_val_w=`echo x $ac_old_val`
1531 ac_new_val_w=`echo x $ac_new_val`
1532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1533 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1534 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1535 ac_cache_corrupted=:
1537 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1538 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1539 eval $ac_var=\$ac_old_val
1541 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1542 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1543 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1544 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1547 # Pass precious variables to config.status.
1548 if test "$ac_new_set" = set; then
1550 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1551 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1552 *) ac_arg=$ac_var=$ac_new_val ;;
1554 case " $ac_configure_args " in
1555 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1556 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1560 if $ac_cache_corrupted; then
1561 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1563 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1564 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1565 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1566 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1567 { (exit 1); exit 1; }; }
1571 ac_cpp='$CPP $CPPFLAGS'
1572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1601 gcc_version=`cat $srcdir/BASE-VER
`
1603 # Determine the host, build, and target systems
1605 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1606 if test -f $ac_dir/install-sh; then
1608 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 elif test -f $ac_dir/install.sh; then
1612 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 elif test -f $ac_dir/shtool; then
1616 ac_install_sh="$ac_aux_dir/shtool install -c"
1620 if test -z "$ac_aux_dir"; then
1621 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1622 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1623 { (exit 1); exit 1; }; }
1625 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1626 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1627 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629 # Make sure we can run config.sub.
1630 $ac_config_sub sun4 >/dev/null 2>&1 ||
1631 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: checking build system type" >&5
1636 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637 if test "${ac_cv_build+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_build_alias=$build_alias
1641 test -z "$ac_cv_build_alias" &&
1642 ac_cv_build_alias=`$ac_config_guess`
1643 test -z "$ac_cv_build_alias" &&
1644 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646 { (exit 1); exit 1; }; }
1647 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650 { (exit 1); exit 1; }; }
1653 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654 echo "${ECHO_T}$ac_cv_build" >&6
1656 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661 echo "$as_me:$LINENO: checking host system type" >&5
1662 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663 if test "${ac_cv_host+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 ac_cv_host_alias=$host_alias
1667 test -z "$ac_cv_host_alias" &&
1668 ac_cv_host_alias=$ac_cv_build_alias
1669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672 { (exit 1); exit 1; }; }
1675 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676 echo "${ECHO_T}$ac_cv_host" >&6
1678 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$as_me:$LINENO: checking target system type" >&5
1684 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685 if test "${ac_cv_target+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 ac_cv_target_alias=$target_alias
1689 test "x$ac_cv_target_alias" = "x" &&
1690 ac_cv_target_alias=$ac_cv_host_alias
1691 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698 echo "${ECHO_T}$ac_cv_target" >&6
1699 target=$ac_cv_target
1700 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 test -n "$target_alias" &&
1708 test "$program_prefix$program_suffix$program_transform_name" = \
1710 program_prefix=${target_alias}-
1712 # Determine the noncanonical target name, for directory use.
1713 case ${build_alias} in
1714 "") build_noncanonical=${build} ;;
1715 *) build_noncanonical=${build_alias} ;;
1718 case ${host_alias} in
1719 "") host_noncanonical=${build_noncanonical} ;;
1720 *) host_noncanonical=${host_alias} ;;
1723 case ${target_alias} in
1724 "") target_noncanonical=${host_noncanonical} ;;
1725 *) target_noncanonical=${target_alias} ;;
1731 # Determine the target- and build-specific subdirectories
1733 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1734 # have matching libraries, they should use host libraries: Makefile.tpl
1735 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1736 # However, they still use the build modules, because the corresponding
1737 # host modules (e.g. bison) are only built for the host when bootstrap
1739 # - build_subdir is where we find build modules, and never changes.
1740 # - build_libsubdir is where we find build libraries, and can be overridden.
1742 # Prefix 'build-' so this never conflicts with target_subdir.
1743 build_subdir="build-${build_noncanonical}"
1745 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1746 if test "${with_build_libsubdir+set}" = set; then
1747 withval="$with_build_libsubdir"
1748 build_libsubdir="$withval"
1750 build_libsubdir="$build_subdir"
1752 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1753 if ( test $srcdir = . && test -d gcc ) \
1754 || test -d $srcdir/../host-${host_noncanonical}; then
1755 host_subdir="host-${host_noncanonical}"
1760 target_subdir=${target_noncanonical}
1763 # Set program_transform_name
1764 test "$program_prefix" != NONE &&
1765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766 # Use a double $ so make ignores it.
1767 test "$program_suffix" != NONE &&
1768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769 # Double any \ or $. echo might interpret backslashes.
1770 # By default was `s
,x
,x
', remove it if useless.
1771 cat <<\_ACEOF >conftest.sed
1772 s/[\\$]/&&/g;s/;s,x,x,$//
1774 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1778 # Check for bogus environment variables.
1779 # Test if LIBRARY_PATH contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # LIBRARY_PATH contains the current directory if one of the following
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1787 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1788 case ${LIBRARY_PATH} in
1789 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1790 library_path_setting="contains current directory"
1793 library_path_setting="ok"
1796 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1797 echo "${ECHO_T}$library_path_setting" >&6
1798 if test "$library_path_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** LIBRARY_PATH shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again.
" >&5
1803 echo "$as_me: error
:
1804 *** LIBRARY_PATH shouldn
't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807 { (exit 1); exit 1; }; }
1810 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1811 # since this would lead to problems installing/building glibc.
1812 # GCC_EXEC_PREFIX contains the current directory if one of the following
1814 # - one of the terminals (":" and ";") is the first or last sign
1815 # - two terminals occur directly after each other
1816 # - the path contains an element with a dot in it
1817 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1818 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1819 case ${GCC_EXEC_PREFIX} in
1820 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1821 gcc_exec_prefix_setting="contains current directory"
1824 gcc_exec_prefix_setting="ok"
1827 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1828 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1829 if test "$gcc_exec_prefix_setting" != "ok"; then
1830 { { echo "$as_me:$LINENO: error:
1831 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1832 *** building gcc. Please change the environment variable
1833 *** and run configure again.
" >&5
1834 echo "$as_me: error
:
1835 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
1836 *** building gcc. Please change the environment variable
1837 *** and run configure again." >&2;}
1838 { (exit 1); exit 1; }; }
1845 # Specify the local prefix
1848 # Check whether --with-local-prefix or --without-local-prefix was given.
1849 if test "${with_local_prefix+set}" = set; then
1850 withval="$with_local_prefix"
1851 case "${withval}" in
1852 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1853 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1854 { (exit 1); exit 1; }; } ;;
1856 *) local_prefix=$with_local_prefix ;;
1860 # Default local prefix if it is empty
1861 if test x$local_prefix = x; then
1862 local_prefix=/usr/local
1865 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
1866 # passed in by the toplevel make and thus we'd get different behavior
1867 # depending on where we built the sources.
1868 gcc_gxx_include_dir
=
1869 # Specify the g++ header file directory
1871 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1872 if test "${with_gxx_include_dir+set}" = set; then
1873 withval
="$with_gxx_include_dir"
1874 case "${withval}" in
1875 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1876 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1877 { (exit 1); exit 1; }; } ;;
1879 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1883 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1884 if test x
${gcc_gxx_include_dir} = x
; then
1885 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1886 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1888 libstdcxx_incdir
='include/c++/$(version)'
1889 if test x
$host != x
$target; then
1890 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1892 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1897 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1898 if test "${with_cpp_install_dir+set}" = set; then
1899 withval
="$with_cpp_install_dir"
1900 if test x
$withval = xyes
; then
1901 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1902 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1903 { (exit 1); exit 1; }; }
1904 elif test x
$withval != xno
; then
1905 cpp_install_dir
=$withval
1909 # We would like to our source tree to be readonly. However when releases or
1910 # pre-releases are generated, the flex/bison generated files as well as the
1911 # various formats of manuals need to be included along with the rest of the
1912 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1915 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1916 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1917 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1918 if test "${enable_generated_files_in_srcdir+set}" = set; then
1919 enableval
="$enable_generated_files_in_srcdir"
1920 generated_files_in_srcdir
=$enableval
1922 generated_files_in_srcdir
=no
1925 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1926 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1928 if test "$generated_files_in_srcdir" = "yes"; then
1935 # -------------------
1936 # Find default linker
1937 # -------------------
1941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1942 if test "${with_gnu_ld+set}" = set; then
1943 withval
="$with_gnu_ld"
1944 gnu_ld_flag
="$with_gnu_ld"
1949 # With pre-defined ld
1951 # Check whether --with-ld or --without-ld was given.
1952 if test "${with_ld+set}" = set; then
1954 DEFAULT_LINKER
="$with_ld"
1956 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1957 if test ! -x "$DEFAULT_LINKER"; then
1958 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1959 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1960 { (exit 1); exit 1; }; }
1961 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1965 cat >>confdefs.h
<<_ACEOF
1966 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1971 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1973 cat >>confdefs.h
<<_ACEOF
1974 #define HAVE_GNU_LD $gnu_ld
1978 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1979 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1980 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1981 if test x
"$gnu_ld_flag" = x
"no"; then
1982 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1983 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1985 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1986 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1993 # With demangler in GNU ld
1995 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1996 if test "${with_demangler_in_ld+set}" = set; then
1997 withval
="$with_demangler_in_ld"
1998 demangler_in_ld
="$with_demangler_in_ld"
2003 # ----------------------
2004 # Find default assembler
2005 # ----------------------
2009 # Check whether --with-gnu-as or --without-gnu-as was given.
2010 if test "${with_gnu_as+set}" = set; then
2011 withval
="$with_gnu_as"
2012 gas_flag
="$with_gnu_as"
2018 # Check whether --with-as or --without-as was given.
2019 if test "${with_as+set}" = set; then
2021 DEFAULT_ASSEMBLER
="$with_as"
2023 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2024 if test ! -x "$DEFAULT_ASSEMBLER"; then
2025 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2026 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2027 { (exit 1); exit 1; }; }
2028 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2032 cat >>confdefs.h
<<_ACEOF
2033 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2038 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2040 cat >>confdefs.h
<<_ACEOF
2041 #define HAVE_GNU_AS $gnu_as
2045 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2046 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2047 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2048 if test x
"$gas_flag" = x
"no"; then
2049 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2050 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2052 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2053 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2064 # If a non-executable a.out is present (e.g. created by GNU as above even if
2065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2066 # file, even when creating an executable, so an execution test fails.
2067 # Remove possible default executable files to avoid this.
2069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2070 # Autoconf includes it.
2071 rm -f a.out a.exe b.out
2073 # Find the native compiler
2075 ac_cpp
='$CPP $CPPFLAGS'
2076 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2081 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC
="$CC" # Let the user override the test.
2090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2094 test -z "$as_dir" && as_dir
=.
2095 for ac_exec_ext
in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 if test -n "$CC"; then
2108 echo "$as_me:$LINENO: result: $CC" >&5
2109 echo "${ECHO_T}$CC" >&6
2111 echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6
2116 if test -z "$ac_cv_prog_CC"; then
2118 # Extract the first word of "gcc", so it can be a program name with args.
2119 set dummy gcc
; ac_word
=$2
2120 echo "$as_me:$LINENO: checking for $ac_word" >&5
2121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 if test -n "$ac_ct_CC"; then
2126 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2132 test -z "$as_dir" && as_dir
=.
2133 for ac_exec_ext
in '' $ac_executable_extensions; do
2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2135 ac_cv_prog_ac_ct_CC
="gcc"
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2145 if test -n "$ac_ct_CC"; then
2146 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2147 echo "${ECHO_T}$ac_ct_CC" >&6
2149 echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2161 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC
="$CC" # Let the user override the test.
2170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir
=.
2175 for ac_exec_ext
in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2196 if test -z "$ac_cv_prog_CC"; then
2198 # Extract the first word of "cc", so it can be a program name with args.
2199 set dummy cc
; ac_word
=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir
=.
2213 for ac_exec_ext
in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC
="cc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2239 if test -z "$CC"; then
2240 # Extract the first word of "cc", so it can be a program name with args.
2241 set dummy cc
; ac_word
=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC
="$CC" # Let the user override the test.
2251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir
=.
2256 for ac_exec_ext
in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2259 ac_prog_rejected
=yes
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 if test $ac_prog_rejected = yes; then
2270 # We found a bogon in the path, so make sure we never use it.
2271 set dummy
$ac_cv_prog_CC
2273 if test $# != 0; then
2274 # We chose a different compiler from the bogus one.
2275 # However, it has the same basename, so the bogon will be chosen
2276 # first if we set CC to just the basename; use the full file name.
2278 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2284 if test -n "$CC"; then
2285 echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC
="$CC" # Let the user override the test.
2307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir
=.
2312 for ac_exec_ext
in '' $ac_executable_extensions; do
2313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 if test -n "$CC"; then
2325 echo "$as_me:$LINENO: result: $CC" >&5
2326 echo "${ECHO_T}$CC" >&6
2328 echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2332 test -n "$CC" && break
2335 if test -z "$CC"; then
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy
$ac_prog; ac_word
=$2
2341 echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$ac_ct_CC"; then
2347 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir
=.
2354 for ac_exec_ext
in '' $ac_executable_extensions; do
2355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356 ac_cv_prog_ac_ct_CC
="$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2366 if test -n "$ac_ct_CC"; then
2367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368 echo "${ECHO_T}$ac_ct_CC" >&6
2370 echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2374 test -n "$ac_ct_CC" && break
2383 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2384 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: no acceptable C compiler found in \$PATH
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }; }
2391 # Provide some information about the compiler.
2392 echo "$as_me:$LINENO:" \
2393 "checking for C compiler version" >&5
2394 ac_compiler
=`set X $ac_compile; echo $2`
2395 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2396 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2401 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2405 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2406 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2411 cat >conftest.
$ac_ext <<_ACEOF
2414 cat confdefs.h
>>conftest.
$ac_ext
2415 cat >>conftest.
$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2426 ac_clean_files_save
=$ac_clean_files
2427 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2428 # Try to create an executable without -o first, disregard a.out.
2429 # It will help us diagnose broken compilers, and finding out an intuition
2431 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2433 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2434 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2435 (eval $ac_link_default) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 # Find the output, starting from the most likely. This scheme is
2440 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2443 # Be careful to initialize this variable, since it used to be cached.
2444 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2446 # b.out is created by i960 compilers.
2447 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2449 test -f "$ac_file" ||
continue
2451 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2454 # This is the source file.
2457 # We found the default executable, but exeext='' is most
2461 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 # FIXME: I believe we export ac_cv_exeext for Libtool,
2463 # but it would be cool to find out if it's true. Does anybody
2464 # maintain Libtool? --akim.
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.
$ac_ext >&5
2475 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2476 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&2;}
2481 { (exit 77); exit 77; }; }; }
2484 ac_exeext
=$ac_cv_exeext
2485 echo "$as_me:$LINENO: result: $ac_file" >&5
2486 echo "${ECHO_T}$ac_file" >&6
2488 # Check the compiler produces executables we can run. If not, either
2489 # the compiler is broken, or we cross compile.
2490 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2492 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493 # If not cross compiling, check that we can run a simple program.
2494 if test "$cross_compiling" != yes; then
2495 if { ac_try
='./$ac_file'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 if test "$cross_compiling" = maybe
; then
2506 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot run C compiled programs.
2512 If you meant to cross compile, use \`--host'.
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }; }
2518 echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2521 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2522 ac_clean_files
=$ac_clean_files_save
2523 # Check the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2527 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528 echo "${ECHO_T}$cross_compiling" >&6
2530 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 for ac_file
in conftest.exe conftest conftest.
*; do
2542 test -f "$ac_file" ||
continue
2544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2545 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }; }
2561 rm -f conftest
$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6
2565 rm -f conftest.
$ac_ext
2566 EXEEXT
=$ac_cv_exeext
2568 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 cat >conftest.
$ac_ext <<_ACEOF
2576 cat confdefs.h
>>conftest.
$ac_ext
2577 cat >>conftest.
$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2588 rm -f conftest.o conftest.obj
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2596 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2597 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.
$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }; }
2614 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2616 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2617 echo "${ECHO_T}$ac_cv_objext" >&6
2618 OBJEXT
=$ac_cv_objext
2620 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.
$ac_ext <<_ACEOF
2628 cat confdefs.h
>>conftest.
$ac_ext
2629 cat >>conftest.
$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2643 rm -f conftest.
$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2647 grep -v '^ *+' conftest.er1
>conftest.err
2649 cat conftest.err
>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try
='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try
='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.
$ac_ext >&5
2672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2673 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2676 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2678 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS
=${CFLAGS+set}
2680 ac_save_CFLAGS
=$CFLAGS
2682 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.
$ac_ext <<_ACEOF
2690 cat confdefs.h
>>conftest.
$ac_ext
2691 cat >>conftest.
$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try
='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try
='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.
$ac_ext >&5
2731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2734 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2735 if test "$ac_test_CFLAGS" = set; then
2736 CFLAGS
=$ac_save_CFLAGS
2737 elif test $ac_cv_prog_cc_g = yes; then
2738 if test "$GCC" = yes; then
2744 if test "$GCC" = yes; then
2750 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2751 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2752 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 ac_cv_prog_cc_stdc
=no
2757 cat >conftest.
$ac_ext <<_ACEOF
2760 cat confdefs.h
>>conftest.
$ac_ext
2761 cat >>conftest.
$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2765 #include <sys/types.h>
2766 #include <sys/stat.h>
2767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2768 struct buf { int x; };
2769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2770 static char *e (p, i)
2776 static char *f (char * (*g) (char **, int), char **p, ...)
2781 s = g (p, va_arg (v,int));
2786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2787 function prototypes and stuff, but not '\xHH' hex character constants.
2788 These don't provoke an error unfortunately, instead are silently treated
2789 as 'x'. The following induces an error, until -std1 is added to get
2790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2791 array size at least. It's necessary to write '\x00'==0 to get something
2792 that's true only with -std1. */
2793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2809 # Don't try gcc -ansi; that turns off useful extensions and
2810 # breaks some systems' header files.
2811 # AIX -qlanglvl=ansi
2812 # Ultrix and OSF/1 -std1
2813 # HP-UX 10.20 and later -Ae
2814 # HP-UX older versions -Aa -D_HPUX_SOURCE
2815 # SVR4 -Xc -D__EXTENSIONS__
2816 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2818 CC
="$ac_save_CC $ac_arg"
2819 rm -f conftest.
$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1
>conftest.err
2825 cat conftest.err
>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try
='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try
='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 ac_cv_prog_cc_stdc
=$ac_arg
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.
$ac_ext >&5
2848 rm -f conftest.err conftest.
$ac_objext
2850 rm -f conftest.
$ac_ext conftest.
$ac_objext
2855 case "x$ac_cv_prog_cc_stdc" in
2857 echo "$as_me:$LINENO: result: none needed" >&5
2858 echo "${ECHO_T}none needed" >&6 ;;
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2862 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2865 # Some people use a C++ compiler to compile C. Since we use `exit',
2866 # in C++ we need to declare it. In case someone uses the same compiler
2867 # for both compiling C and C++ we need to have the C++ compiler decide
2868 # the declaration of exit, since it's the most demanding environment.
2869 cat >conftest.
$ac_ext <<_ACEOF
2874 rm -f conftest.
$ac_objext
2875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>conftest.er1
2878 grep -v '^ *+' conftest.er1
>conftest.err
2880 cat conftest.err
>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 { ac_try
='test -z "$ac_c_werror_flag"
2884 || test ! -s conftest.err'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try
='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 for ac_declaration
in \
2898 'extern "C" void std::exit (int) throw (); using std::exit;' \
2899 'extern "C" void std::exit (int); using std::exit;' \
2900 'extern "C" void exit (int) throw ();' \
2901 'extern "C" void exit (int);' \
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2920 rm -f conftest.
$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1
>conftest.err
2926 cat conftest.err
>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try
='test -z "$ac_c_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try
='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2950 cat >conftest.
$ac_ext <<_ACEOF
2953 cat confdefs.h
>>conftest.
$ac_ext
2954 cat >>conftest.
$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2965 rm -f conftest.
$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967 (eval $ac_compile) 2>conftest.er1
2969 grep -v '^ *+' conftest.er1
>conftest.err
2971 cat conftest.err
>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try
='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try
='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.
$ac_ext >&5
2993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2996 if test -n "$ac_declaration"; then
2997 echo '#ifdef __cplusplus' >>confdefs.h
2998 echo $ac_declaration >>confdefs.h
2999 echo '#endif' >>confdefs.h
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.
$ac_ext >&5
3007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3009 ac_cpp
='$CPP $CPPFLAGS'
3010 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3014 if test "x$CC" != xcc
; then
3015 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3016 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3018 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3019 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3021 set dummy
$CC; ac_cc
=`echo $2 |
3022 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3023 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.
$ac_ext <<_ACEOF
3029 cat confdefs.h
>>conftest.
$ac_ext
3030 cat >>conftest.
$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 # Make sure it works both with $CC and with simple cc.
3042 # We do the test twice because some compilers refuse to overwrite an
3043 # existing .o file with -o, though they will create one.
3044 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3045 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); };
3056 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3057 if test "x$CC" != xcc
; then
3058 # Test first that cc exists at all.
3059 if { ac_try
='cc -c conftest.$ac_ext >&5'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3066 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); };
3080 # cc exists but doesn't like -o.
3081 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3086 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3098 cat >>confdefs.h
<<\_ACEOF
3099 #define NO_MINUS_C_MINUS_O 1
3104 # expand $ac_aux_dir to an absolute path
3105 am_aux_dir
=`cd $ac_aux_dir && pwd`
3107 # FIXME: we rely on the cache variable name because
3108 # there is no other way.
3110 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3111 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3112 # Losing compiler, so override with the script.
3113 # FIXME: It is wrong to rewrite CC.
3114 # But if we don't then we get into trouble of one sort or another.
3115 # A longer-term fix would be to have automake use am__CC in this case,
3116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3117 CC
="$am_aux_dir/compile $CC"
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3125 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3126 echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 if test -n "$GNATBIND"; then
3132 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir
=.
3139 for ac_exec_ext
in '' $ac_executable_extensions; do
3140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 GNATBIND
=$ac_cv_prog_GNATBIND
3151 if test -n "$GNATBIND"; then
3152 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3153 echo "${ECHO_T}$GNATBIND" >&6
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3160 if test -z "$ac_cv_prog_GNATBIND"; then
3161 ac_ct_GNATBIND
=$GNATBIND
3162 # Extract the first word of "gnatbind", so it can be a program name with args.
3163 set dummy gnatbind
; ac_word
=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$ac_ct_GNATBIND"; then
3170 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3189 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3190 if test -n "$ac_ct_GNATBIND"; then
3191 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3192 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3194 echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3198 GNATBIND
=$ac_ct_GNATBIND
3200 GNATBIND
="$ac_cv_prog_GNATBIND"
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3205 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$GNATMAKE"; then
3212 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir
=.
3219 for ac_exec_ext
in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 GNATMAKE
=$ac_cv_prog_GNATMAKE
3231 if test -n "$GNATMAKE"; then
3232 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3233 echo "${ECHO_T}$GNATMAKE" >&6
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3240 if test -z "$ac_cv_prog_GNATMAKE"; then
3241 ac_ct_GNATMAKE
=$GNATMAKE
3242 # Extract the first word of "gnatmake", so it can be a program name with args.
3243 set dummy gnatmake
; ac_word
=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$ac_ct_GNATMAKE"; then
3250 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3269 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3270 if test -n "$ac_ct_GNATMAKE"; then
3271 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3272 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3274 echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6
3278 GNATMAKE
=$ac_ct_GNATMAKE
3280 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3283 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3284 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3285 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.adb
<<EOF
3289 procedure conftest is begin null; end conftest;
3291 acx_cv_cc_gcc_supports_ada
=no
3292 # There is a bug in old released versions of GCC which causes the
3293 # driver to exit successfully when the appropriate language module
3294 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3295 # Therefore we must check for the error message as well as an
3296 # unsuccessful exit.
3297 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3298 # given a .adb file, but produce no object file. So we must check
3299 # if an object file was really produced to guard against this.
3300 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3301 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3302 acx_cv_cc_gcc_supports_ada
=yes
3306 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3307 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3309 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3316 # autoconf is lame and doesn't give us any substitution variable for this.
3317 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3318 NO_MINUS_C_MINUS_O
=yes
3320 OUTPUT_OPTION
='-o $@'
3325 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3326 # optimizations to be activated explicitly by the toplevel.
3328 */prev-gcc
/xgcc
*) ;;
3329 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3333 # -------------------------
3334 # Check C compiler features
3335 # -------------------------
3339 ac_cpp
='$CPP $CPPFLAGS'
3340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3345 # On Suns, sometimes $CPP names a directory.
3346 if test -n "$CPP" && test -d "$CPP"; then
3349 if test -z "$CPP"; then
3350 if test "${ac_cv_prog_CPP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 # Double quotes because CPP needs to be expanded
3354 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 for ac_c_preproc_warn_flag
in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.
$ac_ext <<_ACEOF
3368 cat confdefs.h
>>conftest.
$ac_ext
3369 cat >>conftest.
$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3379 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3381 grep -v '^ *+' conftest.er1
>conftest.err
3383 cat conftest.err
>&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev
/null
; then
3386 if test -s conftest.err
; then
3387 ac_cpp_err
=$ac_c_preproc_warn_flag
3388 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3395 if test -z "$ac_cpp_err"; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.
$ac_ext >&5
3401 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.
$ac_ext
3406 # OK, works on sane cases. Now check whether non-existent headers
3407 # can be detected and how.
3408 cat >conftest.
$ac_ext <<_ACEOF
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3419 grep -v '^ *+' conftest.er1
>conftest.err
3421 cat conftest.err
>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev
/null
; then
3424 if test -s conftest.err
; then
3425 ac_cpp_err
=$ac_c_preproc_warn_flag
3426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3433 if test -z "$ac_cpp_err"; then
3434 # Broken: success on invalid input.
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.
$ac_ext >&5
3440 # Passes both tests.
3444 rm -f conftest.err conftest.
$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.
$ac_ext
3449 if $ac_preproc_ok; then
3461 echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6
3464 for ac_c_preproc_warn_flag
in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.
$ac_ext <<_ACEOF
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3479 # include <limits.h>
3481 # include <assert.h>
3485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev
/null
; then
3493 if test -s conftest.err
; then
3494 ac_cpp_err
=$ac_c_preproc_warn_flag
3495 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3502 if test -z "$ac_cpp_err"; then
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.
$ac_ext >&5
3508 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.
$ac_ext
3513 # OK, works on sane cases. Now check whether non-existent headers
3514 # can be detected and how.
3515 cat >conftest.
$ac_ext <<_ACEOF
3518 cat confdefs.h
>>conftest.
$ac_ext
3519 cat >>conftest.
$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <ac_nonexistent.h>
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev
/null
; then
3531 if test -s conftest.err
; then
3532 ac_cpp_err
=$ac_c_preproc_warn_flag
3533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3540 if test -z "$ac_cpp_err"; then
3541 # Broken: success on invalid input.
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.
$ac_ext >&5
3547 # Passes both tests.
3551 rm -f conftest.err conftest.
$ac_ext
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.err conftest.
$ac_ext
3556 if $ac_preproc_ok; then
3559 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }; }
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3575 echo "$as_me:$LINENO: checking for egrep" >&5
3576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3577 if test "${ac_cv_prog_egrep+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3581 then ac_cv_prog_egrep
='grep -E'
3582 else ac_cv_prog_egrep
='egrep'
3585 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3586 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3587 EGREP
=$ac_cv_prog_egrep
3590 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.
$ac_ext <<_ACEOF
3598 cat confdefs.h
>>conftest.
$ac_ext
3599 cat >>conftest.
$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3614 rm -f conftest.
$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>conftest.er1
3618 grep -v '^ *+' conftest.er1
>conftest.err
3620 cat conftest.err
>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try
='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try
='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_cv_header_stdc
=yes
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.
$ac_ext >&5
3641 ac_cv_header_stdc
=no
3643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3645 if test $ac_cv_header_stdc = yes; then
3646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3647 cat >conftest.
$ac_ext <<_ACEOF
3650 cat confdefs.h
>>conftest.
$ac_ext
3651 cat >>conftest.
$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657 $EGREP "memchr" >/dev
/null
2>&1; then
3660 ac_cv_header_stdc
=no
3666 if test $ac_cv_header_stdc = yes; then
3667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3668 cat >conftest.
$ac_ext <<_ACEOF
3671 cat confdefs.h
>>conftest.
$ac_ext
3672 cat >>conftest.
$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3678 $EGREP "free" >/dev
/null
2>&1; then
3681 ac_cv_header_stdc
=no
3687 if test $ac_cv_header_stdc = yes; then
3688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3689 if test "$cross_compiling" = yes; then
3692 cat >conftest.
$ac_ext <<_ACEOF
3695 cat confdefs.h
>>conftest.
$ac_ext
3696 cat >>conftest.
$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3699 #if ((' ' & 0x0FF) == 0x020)
3700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3703 # define ISLOWER(c) \
3704 (('a' <= (c) && (c) <= 'i') \
3705 || ('j' <= (c) && (c) <= 'r') \
3706 || ('s' <= (c) && (c) <= 'z'))
3707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715 for (i = 0; i < 256; i++)
3716 if (XOR (islower (i), ISLOWER (i))
3717 || toupper (i) != TOUPPER (i))
3722 rm -f conftest
$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 echo "$as_me: program exited with status $ac_status" >&5
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.
$ac_ext >&5
3740 ac_cv_header_stdc
=no
3742 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3746 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3748 if test $ac_cv_header_stdc = yes; then
3750 cat >>confdefs.h
<<\_ACEOF
3751 #define STDC_HEADERS 1
3756 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3766 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3767 inttypes.h stdint.h unistd.h
3769 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3770 echo "$as_me:$LINENO: checking for $ac_header" >&5
3771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 $ac_includes_default
3783 #include <$ac_header>
3785 rm -f conftest.
$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3789 grep -v '^ *+' conftest.er1
>conftest.err
3791 cat conftest.err
>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try
='test -z "$ac_c_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try
='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 eval "$as_ac_Header=yes"
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.
$ac_ext >&5
3812 eval "$as_ac_Header=no"
3814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819 cat >>confdefs.h
<<_ACEOF
3820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3831 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3832 if test "${ac_cv_header_minix_config_h+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3836 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3838 # Is the header compilable?
3839 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3840 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 $ac_includes_default
3848 #include <minix/config.h>
3850 rm -f conftest.
$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3854 grep -v '^ *+' conftest.er1
>conftest.err
3856 cat conftest.err
>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try
='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try
='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_header_compiler
=yes
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.
$ac_ext >&5
3877 ac_header_compiler
=no
3879 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3881 echo "${ECHO_T}$ac_header_compiler" >&6
3883 # Is the header present?
3884 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3885 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <minix/config.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 ac_header_preproc
=yes
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.
$ac_ext >&5
3917 ac_header_preproc
=no
3919 rm -f conftest.err conftest.
$ac_ext
3920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3921 echo "${ECHO_T}$ac_header_preproc" >&6
3923 # So? What about this header?
3924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3926 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3927 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3929 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3930 ac_header_preproc
=yes
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3934 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3936 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3938 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3940 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3942 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3944 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3947 ## ------------------------------------------ ##
3948 ## Report this to the AC_PACKAGE_NAME lists. ##
3949 ## ------------------------------------------ ##
3952 sed "s/^/$as_me: WARNING: /" >&2
3955 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3956 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3957 if test "${ac_cv_header_minix_config_h+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 ac_cv_header_minix_config_h
=$ac_header_preproc
3962 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3963 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3966 if test $ac_cv_header_minix_config_h = yes; then
3973 if test "$MINIX" = yes; then
3975 cat >>confdefs.h
<<\_ACEOF
3976 #define _POSIX_SOURCE 1
3980 cat >>confdefs.h
<<\_ACEOF
3981 #define _POSIX_1_SOURCE 2
3985 cat >>confdefs.h
<<\_ACEOF
3993 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3994 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3995 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 # define __EXTENSIONS__ 1
4006 $ac_includes_default
4015 rm -f conftest.
$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try
='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try
='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_cv_safe_to_define___extensions__
=yes
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.
$ac_ext >&5
4042 ac_cv_safe_to_define___extensions__
=no
4044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4046 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4047 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4048 test $ac_cv_safe_to_define___extensions__ = yes &&
4049 cat >>confdefs.h
<<\_ACEOF
4050 #define __EXTENSIONS__ 1
4053 cat >>confdefs.h
<<\_ACEOF
4054 #define _ALL_SOURCE 1
4057 cat >>confdefs.h
<<\_ACEOF
4058 #define _GNU_SOURCE 1
4061 cat >>confdefs.h
<<\_ACEOF
4062 #define _POSIX_PTHREAD_SEMANTICS 1
4065 cat >>confdefs.h
<<\_ACEOF
4066 #define _TANDEM_SOURCE 1
4071 ac_cpp
='$CPP $CPPFLAGS'
4072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4077 # On Suns, sometimes $CPP names a directory.
4078 if test -n "$CPP" && test -d "$CPP"; then
4081 if test -z "$CPP"; then
4082 if test "${ac_cv_prog_CPP+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 # Double quotes because CPP needs to be expanded
4086 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4089 for ac_c_preproc_warn_flag
in '' yes
4091 # Use a header file that comes with gcc, so configuring glibc
4092 # with a fresh cross-compiler works.
4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094 # <limits.h> exists even on freestanding compilers.
4095 # On the NeXT, cc -E runs the code through the compiler's parser,
4096 # not just through cpp. "Syntax error" is here to catch this case.
4097 cat >conftest.
$ac_ext <<_ACEOF
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4104 # include <limits.h>
4106 # include <assert.h>
4110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4113 grep -v '^ *+' conftest.er1
>conftest.err
4115 cat conftest.err
>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev
/null
; then
4118 if test -s conftest.err
; then
4119 ac_cpp_err
=$ac_c_preproc_warn_flag
4120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4127 if test -z "$ac_cpp_err"; then
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.
$ac_ext >&5
4133 # Broken: fails on valid input.
4136 rm -f conftest.err conftest.
$ac_ext
4138 # OK, works on sane cases. Now check whether non-existent headers
4139 # can be detected and how.
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <ac_nonexistent.h>
4148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4149 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4151 grep -v '^ *+' conftest.er1
>conftest.err
4153 cat conftest.err
>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev
/null
; then
4156 if test -s conftest.err
; then
4157 ac_cpp_err
=$ac_c_preproc_warn_flag
4158 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4165 if test -z "$ac_cpp_err"; then
4166 # Broken: success on invalid input.
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.
$ac_ext >&5
4172 # Passes both tests.
4176 rm -f conftest.err conftest.
$ac_ext
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.
$ac_ext
4181 if $ac_preproc_ok; then
4193 echo "$as_me:$LINENO: result: $CPP" >&5
4194 echo "${ECHO_T}$CPP" >&6
4196 for ac_c_preproc_warn_flag
in '' yes
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
4202 # On the NeXT, cc -E runs the code through the compiler's parser,
4203 # not just through cpp. "Syntax error" is here to catch this case.
4204 cat >conftest.
$ac_ext <<_ACEOF
4207 cat confdefs.h
>>conftest.
$ac_ext
4208 cat >>conftest.
$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 # include <limits.h>
4213 # include <assert.h>
4217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4218 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1
>conftest.err
4222 cat conftest.err
>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev
/null
; then
4225 if test -s conftest.err
; then
4226 ac_cpp_err
=$ac_c_preproc_warn_flag
4227 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4234 if test -z "$ac_cpp_err"; then
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.
$ac_ext >&5
4240 # Broken: fails on valid input.
4243 rm -f conftest.err conftest.
$ac_ext
4245 # OK, works on sane cases. Now check whether non-existent headers
4246 # can be detected and how.
4247 cat >conftest.
$ac_ext <<_ACEOF
4250 cat confdefs.h
>>conftest.
$ac_ext
4251 cat >>conftest.
$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ac_nonexistent.h>
4255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1
>conftest.err
4260 cat conftest.err
>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev
/null
; then
4263 if test -s conftest.err
; then
4264 ac_cpp_err
=$ac_c_preproc_warn_flag
4265 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4272 if test -z "$ac_cpp_err"; then
4273 # Broken: success on invalid input.
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.
$ac_ext >&5
4279 # Passes both tests.
4283 rm -f conftest.err conftest.
$ac_ext
4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4287 rm -f conftest.err conftest.
$ac_ext
4288 if $ac_preproc_ok; then
4291 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4292 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details." >&2;}
4297 { (exit 1); exit 1; }; }; }
4301 ac_cpp
='$CPP $CPPFLAGS'
4302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4306 echo "$as_me:$LINENO: checking for inline" >&5
4307 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4308 if test "${ac_cv_c_inline+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 for ac_kw
in inline __inline__ __inline
; do
4313 cat >conftest.
$ac_ext <<_ACEOF
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4321 static $ac_kw foo_t static_foo () {return 0; }
4322 $ac_kw foo_t foo () {return 0; }
4326 rm -f conftest.
$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1
>conftest.err
4332 cat conftest.err
>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try
='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_c_inline
=$ac_kw; break
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4359 echo "${ECHO_T}$ac_cv_c_inline" >&6
4362 case $ac_cv_c_inline in
4365 case $ac_cv_c_inline in
4367 *) ac_val
=$ac_cv_c_inline;;
4369 cat >>confdefs.h
<<_ACEOF
4371 #define inline $ac_val
4378 # sizeof(char) is 1 by definition.
4379 echo "$as_me:$LINENO: checking for void *" >&5
4380 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4381 if test "${ac_cv_type_void_p+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 cat >conftest.
$ac_ext <<_ACEOF
4387 cat confdefs.h
>>conftest.
$ac_ext
4388 cat >>conftest.
$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 $ac_includes_default
4396 if (sizeof (void *))
4402 rm -f conftest.
$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4406 grep -v '^ *+' conftest.er1
>conftest.err
4408 cat conftest.err
>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try
='test -z "$ac_c_werror_flag"
4412 || test ! -s conftest.err'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try
='test -s conftest.$ac_objext'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_type_void_p
=yes
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.
$ac_ext >&5
4429 ac_cv_type_void_p
=no
4431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4434 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4436 echo "$as_me:$LINENO: checking size of void *" >&5
4437 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4438 if test "${ac_cv_sizeof_void_p+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test "$ac_cv_type_void_p" = yes; then
4442 # The cast to unsigned long works around a bug in the HP C Compiler
4443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4445 # This bug is HP SR number 8606223364.
4446 if test "$cross_compiling" = yes; then
4447 # Depending upon the size, compute the lo and hi bounds.
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4458 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4465 rm -f conftest.
$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try
='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try
='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4489 cat >conftest.
$ac_ext <<_ACEOF
4492 cat confdefs.h
>>conftest.
$ac_ext
4493 cat >>conftest.
$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4499 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4506 rm -f conftest.
$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1
>conftest.err
4512 cat conftest.err
>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try
='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_hi
=$ac_mid; break
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4533 ac_lo
=`expr $ac_mid + 1`
4534 if test $ac_lo -le $ac_mid; then
4538 ac_mid
=`expr 2 '*' $ac_mid + 1`
4540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 cat >conftest.
$ac_ext <<_ACEOF
4549 cat confdefs.h
>>conftest.
$ac_ext
4550 cat >>conftest.
$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4556 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4563 rm -f conftest.
$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1
>conftest.err
4569 cat conftest.err
>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try
='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try
='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4587 cat >conftest.
$ac_ext <<_ACEOF
4590 cat confdefs.h
>>conftest.
$ac_ext
4591 cat >>conftest.
$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 $ac_includes_default
4597 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4604 rm -f conftest.
$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4608 grep -v '^ *+' conftest.er1
>conftest.err
4610 cat conftest.err
>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try
='test -z "$ac_c_werror_flag"
4614 || test ! -s conftest.err'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; } &&
4620 { ac_try
='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_lo
=$ac_mid; break
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.
$ac_ext >&5
4631 ac_hi
=`expr '(' $ac_mid ')' - 1`
4632 if test $ac_mid -le $ac_hi; then
4636 ac_mid
=`expr 2 '*' $ac_mid`
4638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.
$ac_ext >&5
4646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4649 # Binary search between lo and hi bounds.
4650 while test "x$ac_lo" != "x$ac_hi"; do
4651 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4669 rm -f conftest.
$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1
>conftest.err
4675 cat conftest.err
>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try
='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try
='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.
$ac_ext >&5
4696 ac_lo
=`expr '(' $ac_mid ')' + 1`
4698 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4701 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4702 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4703 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (void *), 77
4707 See \`config.log' for more details." >&2;}
4708 { (exit 1); exit 1; }; }; } ;;
4711 if test "$cross_compiling" = yes; then
4712 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4713 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: cannot run test program while cross compiling
4717 See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }; }
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 $ac_includes_default
4727 long longval () { return (long) (sizeof (void *)); }
4728 unsigned long ulongval () { return (long) (sizeof (void *)); }
4735 FILE *f = fopen ("conftest.val", "w");
4738 if (((long) (sizeof (void *))) < 0)
4740 long i = longval ();
4741 if (i != ((long) (sizeof (void *))))
4743 fprintf (f, "%ld\n", i);
4747 unsigned long i = ulongval ();
4748 if (i != ((long) (sizeof (void *))))
4750 fprintf (f, "%lu\n", i);
4752 exit (ferror (f) || fclose (f) != 0);
4758 rm -f conftest
$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 ac_cv_sizeof_void_p
=`cat conftest.val`
4771 echo "$as_me: program exited with status $ac_status" >&5
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.
$ac_ext >&5
4776 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4777 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4779 See \`config.log' for more details." >&5
4780 echo "$as_me: error: cannot compute sizeof (void *), 77
4781 See \`config.log' for more details." >&2;}
4782 { (exit 1); exit 1; }; }; }
4784 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4789 ac_cv_sizeof_void_p
=0
4792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4793 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4794 cat >>confdefs.h
<<_ACEOF
4795 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4799 echo "$as_me:$LINENO: checking for short" >&5
4800 echo $ECHO_N "checking for short... $ECHO_C" >&6
4801 if test "${ac_cv_type_short+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cat >conftest.
$ac_ext <<_ACEOF
4807 cat confdefs.h
>>conftest.
$ac_ext
4808 cat >>conftest.
$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 $ac_includes_default
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_short
=yes
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4854 echo "${ECHO_T}$ac_cv_type_short" >&6
4856 echo "$as_me:$LINENO: checking size of short" >&5
4857 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4858 if test "${ac_cv_sizeof_short+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test "$ac_cv_type_short" = yes; then
4862 # The cast to unsigned long works around a bug in the HP C Compiler
4863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4865 # This bug is HP SR number 8606223364.
4866 if test "$cross_compiling" = yes; then
4867 # Depending upon the size, compute the lo and hi bounds.
4868 cat >conftest.
$ac_ext <<_ACEOF
4871 cat confdefs.h
>>conftest.
$ac_ext
4872 cat >>conftest.
$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 $ac_includes_default
4878 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4885 rm -f conftest.
$ac_objext
4886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887 (eval $ac_compile) 2>conftest.er1
4889 grep -v '^ *+' conftest.er1
>conftest.err
4891 cat conftest.err
>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try
='test -z "$ac_c_werror_flag"
4895 || test ! -s conftest.err'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; } &&
4901 { ac_try
='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 $ac_includes_default
4919 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4926 rm -f conftest.
$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4930 grep -v '^ *+' conftest.er1
>conftest.err
4932 cat conftest.err
>&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try
='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try
='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_hi
=$ac_mid; break
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.
$ac_ext >&5
4953 ac_lo
=`expr $ac_mid + 1`
4954 if test $ac_lo -le $ac_mid; then
4958 ac_mid
=`expr 2 '*' $ac_mid + 1`
4960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.
$ac_ext >&5
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 $ac_includes_default
4976 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4983 rm -f conftest.
$ac_objext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try
='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try
='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5007 cat >conftest.
$ac_ext <<_ACEOF
5010 cat confdefs.h
>>conftest.
$ac_ext
5011 cat >>conftest.
$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5017 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5024 rm -f conftest.
$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1
>conftest.err
5030 cat conftest.err
>&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try
='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try
='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_lo
=$ac_mid; break
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.
$ac_ext >&5
5051 ac_hi
=`expr '(' $ac_mid ')' - 1`
5052 if test $ac_mid -le $ac_hi; then
5056 ac_mid
=`expr 2 '*' $ac_mid`
5058 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5068 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5069 # Binary search between lo and hi bounds.
5070 while test "x$ac_lo" != "x$ac_hi"; do
5071 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5072 cat >conftest.
$ac_ext <<_ACEOF
5075 cat confdefs.h
>>conftest.
$ac_ext
5076 cat >>conftest.
$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 $ac_includes_default
5082 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5089 rm -f conftest.
$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1
>conftest.err
5095 cat conftest.err
>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try
='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.
$ac_ext >&5
5116 ac_lo
=`expr '(' $ac_mid ')' + 1`
5118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5121 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5122 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5123 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5125 See \`config.log' for more details." >&5
5126 echo "$as_me: error: cannot compute sizeof (short), 77
5127 See \`config.log' for more details." >&2;}
5128 { (exit 1); exit 1; }; }; } ;;
5131 if test "$cross_compiling" = yes; then
5132 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot run test program while cross compiling
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; }; }
5140 cat >conftest.
$ac_ext <<_ACEOF
5143 cat confdefs.h
>>conftest.
$ac_ext
5144 cat >>conftest.
$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 $ac_includes_default
5147 long longval () { return (long) (sizeof (short)); }
5148 unsigned long ulongval () { return (long) (sizeof (short)); }
5155 FILE *f = fopen ("conftest.val", "w");
5158 if (((long) (sizeof (short))) < 0)
5160 long i = longval ();
5161 if (i != ((long) (sizeof (short))))
5163 fprintf (f, "%ld\n", i);
5167 unsigned long i = ulongval ();
5168 if (i != ((long) (sizeof (short))))
5170 fprintf (f, "%lu\n", i);
5172 exit (ferror (f) || fclose (f) != 0);
5178 rm -f conftest
$ac_exeext
5179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_sizeof_short
=`cat conftest.val`
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.
$ac_ext >&5
5196 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5197 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5199 See \`config.log' for more details." >&5
5200 echo "$as_me: error: cannot compute sizeof (short), 77
5201 See \`config.log' for more details." >&2;}
5202 { (exit 1); exit 1; }; }; }
5204 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5209 ac_cv_sizeof_short
=0
5212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5213 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5214 cat >>confdefs.h
<<_ACEOF
5215 #define SIZEOF_SHORT $ac_cv_sizeof_short
5219 echo "$as_me:$LINENO: checking for int" >&5
5220 echo $ECHO_N "checking for int... $ECHO_C" >&6
5221 if test "${ac_cv_type_int+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 cat >conftest.
$ac_ext <<_ACEOF
5227 cat confdefs.h
>>conftest.
$ac_ext
5228 cat >>conftest.
$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5242 rm -f conftest.
$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1
>conftest.err
5248 cat conftest.err
>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try
='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try
='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.
$ac_ext >&5
5271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5273 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5274 echo "${ECHO_T}$ac_cv_type_int" >&6
5276 echo "$as_me:$LINENO: checking size of int" >&5
5277 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5278 if test "${ac_cv_sizeof_int+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test "$ac_cv_type_int" = yes; then
5282 # The cast to unsigned long works around a bug in the HP C Compiler
5283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5285 # This bug is HP SR number 8606223364.
5286 if test "$cross_compiling" = yes; then
5287 # Depending upon the size, compute the lo and hi bounds.
5288 cat >conftest.
$ac_ext <<_ACEOF
5291 cat confdefs.h
>>conftest.
$ac_ext
5292 cat >>conftest.
$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5298 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5305 rm -f conftest.
$ac_objext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5307 (eval $ac_compile) 2>conftest.er1
5309 grep -v '^ *+' conftest.er1
>conftest.err
5311 cat conftest.err
>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try
='test -z "$ac_c_werror_flag"
5315 || test ! -s conftest.err'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; } &&
5321 { ac_try
='test -s conftest.$ac_objext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5329 cat >conftest.
$ac_ext <<_ACEOF
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5339 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5346 rm -f conftest.
$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348 (eval $ac_compile) 2>conftest.er1
5350 grep -v '^ *+' conftest.er1
>conftest.err
5352 cat conftest.err
>&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } &&
5355 { ac_try
='test -z "$ac_c_werror_flag"
5356 || test ! -s conftest.err'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; } &&
5362 { ac_try
='test -s conftest.$ac_objext'
5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; }; then
5368 ac_hi
=$ac_mid; break
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.
$ac_ext >&5
5373 ac_lo
=`expr $ac_mid + 1`
5374 if test $ac_lo -le $ac_mid; then
5378 ac_mid
=`expr 2 '*' $ac_mid + 1`
5380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.
$ac_ext >&5
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5396 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5403 rm -f conftest.
$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5407 grep -v '^ *+' conftest.er1
>conftest.err
5409 cat conftest.err
>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try
='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try
='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5427 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5437 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5444 rm -f conftest.
$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1
>conftest.err
5450 cat conftest.err
>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try
='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try
='test -s conftest.$ac_objext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_lo
=$ac_mid; break
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5471 ac_hi
=`expr '(' $ac_mid ')' - 1`
5472 if test $ac_mid -le $ac_hi; then
5476 ac_mid
=`expr 2 '*' $ac_mid`
5478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.
$ac_ext >&5
5486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5489 # Binary search between lo and hi bounds.
5490 while test "x$ac_lo" != "x$ac_hi"; do
5491 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5492 cat >conftest.
$ac_ext <<_ACEOF
5495 cat confdefs.h
>>conftest.
$ac_ext
5496 cat >>conftest.
$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5502 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5509 rm -f conftest.
$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5513 grep -v '^ *+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try
='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.
$ac_ext >&5
5536 ac_lo
=`expr '(' $ac_mid ')' + 1`
5538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5541 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5542 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5543 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot compute sizeof (int), 77
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }; } ;;
5551 if test "$cross_compiling" = yes; then
5552 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5555 See \`config.log' for more details." >&5
5556 echo "$as_me: error: cannot run test program while cross compiling
5557 See \`config.log' for more details." >&2;}
5558 { (exit 1); exit 1; }; }; }
5560 cat >conftest.
$ac_ext <<_ACEOF
5563 cat confdefs.h
>>conftest.
$ac_ext
5564 cat >>conftest.
$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 long longval () { return (long) (sizeof (int)); }
5568 unsigned long ulongval () { return (long) (sizeof (int)); }
5575 FILE *f = fopen ("conftest.val", "w");
5578 if (((long) (sizeof (int))) < 0)
5580 long i = longval ();
5581 if (i != ((long) (sizeof (int))))
5583 fprintf (f, "%ld\n", i);
5587 unsigned long i = ulongval ();
5588 if (i != ((long) (sizeof (int))))
5590 fprintf (f, "%lu\n", i);
5592 exit (ferror (f) || fclose (f) != 0);
5598 rm -f conftest
$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_sizeof_int
=`cat conftest.val`
5611 echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.
$ac_ext >&5
5616 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5617 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5619 See \`config.log' for more details." >&5
5620 echo "$as_me: error: cannot compute sizeof (int), 77
5621 See \`config.log' for more details." >&2;}
5622 { (exit 1); exit 1; }; }; }
5624 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5633 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5634 cat >>confdefs.h
<<_ACEOF
5635 #define SIZEOF_INT $ac_cv_sizeof_int
5639 echo "$as_me:$LINENO: checking for long" >&5
5640 echo $ECHO_N "checking for long... $ECHO_C" >&6
5641 if test "${ac_cv_type_long+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.
$ac_ext <<_ACEOF
5647 cat confdefs.h
>>conftest.
$ac_ext
5648 cat >>conftest.
$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 $ac_includes_default
5662 rm -f conftest.
$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1
>conftest.err
5668 cat conftest.err
>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5691 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5694 echo "${ECHO_T}$ac_cv_type_long" >&6
5696 echo "$as_me:$LINENO: checking size of long" >&5
5697 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5698 if test "${ac_cv_sizeof_long+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if test "$ac_cv_type_long" = yes; then
5702 # The cast to unsigned long works around a bug in the HP C Compiler
5703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5705 # This bug is HP SR number 8606223364.
5706 if test "$cross_compiling" = yes; then
5707 # Depending upon the size, compute the lo and hi bounds.
5708 cat >conftest.
$ac_ext <<_ACEOF
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 $ac_includes_default
5718 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5725 rm -f conftest.
$ac_objext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5729 grep -v '^ *+' conftest.er1
>conftest.err
5731 cat conftest.err
>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try
='test -z "$ac_c_werror_flag"
5735 || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try
='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5749 cat >conftest.
$ac_ext <<_ACEOF
5752 cat confdefs.h
>>conftest.
$ac_ext
5753 cat >>conftest.
$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5759 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5766 rm -f conftest.
$ac_objext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5770 grep -v '^ *+' conftest.er1
>conftest.err
5772 cat conftest.err
>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try
='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try
='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_hi
=$ac_mid; break
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 ac_lo
=`expr $ac_mid + 1`
5794 if test $ac_lo -le $ac_mid; then
5798 ac_mid
=`expr 2 '*' $ac_mid + 1`
5800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5806 cat >conftest.
$ac_ext <<_ACEOF
5809 cat confdefs.h
>>conftest.
$ac_ext
5810 cat >>conftest.
$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5816 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5823 rm -f conftest.
$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825 (eval $ac_compile) 2>conftest.er1
5827 grep -v '^ *+' conftest.er1
>conftest.err
5829 cat conftest.err
>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try
='test -z "$ac_c_werror_flag"
5833 || test ! -s conftest.err'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try
='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5857 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5864 rm -f conftest.
$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
5870 cat conftest.err
>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try
='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try
='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_lo
=$ac_mid; break
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5891 ac_hi
=`expr '(' $ac_mid ')' - 1`
5892 if test $ac_mid -le $ac_hi; then
5896 ac_mid
=`expr 2 '*' $ac_mid`
5898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.
$ac_ext >&5
5906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5909 # Binary search between lo and hi bounds.
5910 while test "x$ac_lo" != "x$ac_hi"; do
5911 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5912 cat >conftest.
$ac_ext <<_ACEOF
5915 cat confdefs.h
>>conftest.
$ac_ext
5916 cat >>conftest.
$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5922 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5929 rm -f conftest.
$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1
>conftest.err
5935 cat conftest.err
>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try
='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try
='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5956 ac_lo
=`expr '(' $ac_mid ')' + 1`
5958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5961 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5962 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5963 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5965 See \`config.log' for more details." >&5
5966 echo "$as_me: error: cannot compute sizeof (long), 77
5967 See \`config.log' for more details." >&2;}
5968 { (exit 1); exit 1; }; }; } ;;
5971 if test "$cross_compiling" = yes; then
5972 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5973 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&5
5976 echo "$as_me: error: cannot run test program while cross compiling
5977 See \`config.log' for more details." >&2;}
5978 { (exit 1); exit 1; }; }; }
5980 cat >conftest.
$ac_ext <<_ACEOF
5983 cat confdefs.h
>>conftest.
$ac_ext
5984 cat >>conftest.
$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 $ac_includes_default
5987 long longval () { return (long) (sizeof (long)); }
5988 unsigned long ulongval () { return (long) (sizeof (long)); }
5995 FILE *f = fopen ("conftest.val", "w");
5998 if (((long) (sizeof (long))) < 0)
6000 long i = longval ();
6001 if (i != ((long) (sizeof (long))))
6003 fprintf (f, "%ld\n", i);
6007 unsigned long i = ulongval ();
6008 if (i != ((long) (sizeof (long))))
6010 fprintf (f, "%lu\n", i);
6012 exit (ferror (f) || fclose (f) != 0);
6018 rm -f conftest
$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020 (eval $ac_link) 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_sizeof_long
=`cat conftest.val`
6031 echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.
$ac_ext >&5
6036 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6037 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6039 See \`config.log' for more details." >&5
6040 echo "$as_me: error: cannot compute sizeof (long), 77
6041 See \`config.log' for more details." >&2;}
6042 { (exit 1); exit 1; }; }; }
6044 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6053 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6054 cat >>confdefs.h
<<_ACEOF
6055 #define SIZEOF_LONG $ac_cv_sizeof_long
6059 echo "$as_me:$LINENO: checking for long long" >&5
6060 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6061 if test "${ac_cv_type_long_long+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6074 if ((long long *) 0)
6076 if (sizeof (long long))
6082 rm -f conftest.
$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6086 grep -v '^ *+' conftest.er1
>conftest.err
6088 cat conftest.err
>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try
='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try
='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_type_long_long
=yes
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.
$ac_ext >&5
6109 ac_cv_type_long_long
=no
6111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6114 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6115 if test $ac_cv_type_long_long = yes; then
6117 cat >>confdefs.h
<<_ACEOF
6118 #define HAVE_LONG_LONG 1
6121 echo "$as_me:$LINENO: checking for long long" >&5
6122 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6123 if test "${ac_cv_type_long_long+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6136 if ((long long *) 0)
6138 if (sizeof (long long))
6144 rm -f conftest.
$ac_objext
6145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6146 (eval $ac_compile) 2>conftest.er1
6148 grep -v '^ *+' conftest.er1
>conftest.err
6150 cat conftest.err
>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } &&
6153 { ac_try
='test -z "$ac_c_werror_flag"
6154 || test ! -s conftest.err'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try
='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_type_long_long
=yes
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.
$ac_ext >&5
6171 ac_cv_type_long_long
=no
6173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6175 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6176 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6178 echo "$as_me:$LINENO: checking size of long long" >&5
6179 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6180 if test "${ac_cv_sizeof_long_long+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test "$ac_cv_type_long_long" = yes; then
6184 # The cast to unsigned long works around a bug in the HP C Compiler
6185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6187 # This bug is HP SR number 8606223364.
6188 if test "$cross_compiling" = yes; then
6189 # Depending upon the size, compute the lo and hi bounds.
6190 cat >conftest.
$ac_ext <<_ACEOF
6193 cat confdefs.h
>>conftest.
$ac_ext
6194 cat >>conftest.
$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6200 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6207 rm -f conftest.
$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try
='test -z "$ac_c_werror_flag"
6217 || test ! -s conftest.err'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; } &&
6223 { ac_try
='test -s conftest.$ac_objext'
6224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6241 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6248 rm -f conftest.
$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6252 grep -v '^ *+' conftest.er1
>conftest.err
6254 cat conftest.err
>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try
='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try
='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_hi
=$ac_mid; break
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.
$ac_ext >&5
6275 ac_lo
=`expr $ac_mid + 1`
6276 if test $ac_lo -le $ac_mid; then
6280 ac_mid
=`expr 2 '*' $ac_mid + 1`
6282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.
$ac_ext >&5
6288 cat >conftest.
$ac_ext <<_ACEOF
6291 cat confdefs.h
>>conftest.
$ac_ext
6292 cat >>conftest.
$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6298 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6305 rm -f conftest.
$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1
>conftest.err
6311 cat conftest.err
>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try
='test -z "$ac_c_werror_flag"
6315 || test ! -s conftest.err'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try
='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 $ac_includes_default
6339 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6346 rm -f conftest.
$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1
>conftest.err
6352 cat conftest.err
>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try
='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try
='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_lo
=$ac_mid; break
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.
$ac_ext >&5
6373 ac_hi
=`expr '(' $ac_mid ')' - 1`
6374 if test $ac_mid -le $ac_hi; then
6378 ac_mid
=`expr 2 '*' $ac_mid`
6380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.
$ac_ext >&5
6388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6391 # Binary search between lo and hi bounds.
6392 while test "x$ac_lo" != "x$ac_hi"; do
6393 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6394 cat >conftest.
$ac_ext <<_ACEOF
6397 cat confdefs.h
>>conftest.
$ac_ext
6398 cat >>conftest.
$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6404 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6411 rm -f conftest.
$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try
='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try
='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 ac_lo
=`expr '(' $ac_mid ')' + 1`
6440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6444 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6445 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&5
6448 echo "$as_me: error: cannot compute sizeof (long long), 77
6449 See \`config.log' for more details." >&2;}
6450 { (exit 1); exit 1; }; }; } ;;
6453 if test "$cross_compiling" = yes; then
6454 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6455 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6457 See \`config.log' for more details." >&5
6458 echo "$as_me: error: cannot run test program while cross compiling
6459 See \`config.log' for more details." >&2;}
6460 { (exit 1); exit 1; }; }; }
6462 cat >conftest.
$ac_ext <<_ACEOF
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6469 long longval () { return (long) (sizeof (long long)); }
6470 unsigned long ulongval () { return (long) (sizeof (long long)); }
6477 FILE *f = fopen ("conftest.val", "w");
6480 if (((long) (sizeof (long long))) < 0)
6482 long i = longval ();
6483 if (i != ((long) (sizeof (long long))))
6485 fprintf (f, "%ld\n", i);
6489 unsigned long i = ulongval ();
6490 if (i != ((long) (sizeof (long long))))
6492 fprintf (f, "%lu\n", i);
6494 exit (ferror (f) || fclose (f) != 0);
6500 rm -f conftest
$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_sizeof_long_long
=`cat conftest.val`
6513 echo "$as_me: program exited with status $ac_status" >&5
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.
$ac_ext >&5
6518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6521 See \`config.log' for more details." >&5
6522 echo "$as_me: error: cannot compute sizeof (long long), 77
6523 See \`config.log' for more details." >&2;}
6524 { (exit 1); exit 1; }; }; }
6526 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6531 ac_cv_sizeof_long_long
=0
6534 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6535 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6536 cat >>confdefs.h
<<_ACEOF
6537 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6543 echo "$as_me:$LINENO: checking for __int64" >&5
6544 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6545 if test "${ac_cv_type___int64+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 cat >conftest.
$ac_ext <<_ACEOF
6551 cat confdefs.h
>>conftest.
$ac_ext
6552 cat >>conftest.
$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 $ac_includes_default
6560 if (sizeof (__int64))
6566 rm -f conftest.
$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1
>conftest.err
6572 cat conftest.err
>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try
='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try
='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_type___int64
=yes
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.
$ac_ext >&5
6593 ac_cv_type___int64
=no
6595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6598 echo "${ECHO_T}$ac_cv_type___int64" >&6
6599 if test $ac_cv_type___int64 = yes; then
6601 cat >>confdefs.h
<<_ACEOF
6602 #define HAVE___INT64 1
6605 echo "$as_me:$LINENO: checking for __int64" >&5
6606 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6607 if test "${ac_cv_type___int64+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6622 if (sizeof (__int64))
6628 rm -f conftest.
$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6632 grep -v '^ *+' conftest.er1
>conftest.err
6634 cat conftest.err
>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try
='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try
='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 ac_cv_type___int64
=yes
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.
$ac_ext >&5
6655 ac_cv_type___int64
=no
6657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6660 echo "${ECHO_T}$ac_cv_type___int64" >&6
6662 echo "$as_me:$LINENO: checking size of __int64" >&5
6663 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6664 if test "${ac_cv_sizeof___int64+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 if test "$ac_cv_type___int64" = yes; then
6668 # The cast to unsigned long works around a bug in the HP C Compiler
6669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6671 # This bug is HP SR number 8606223364.
6672 if test "$cross_compiling" = yes; then
6673 # Depending upon the size, compute the lo and hi bounds.
6674 cat >conftest.
$ac_ext <<_ACEOF
6677 cat confdefs.h
>>conftest.
$ac_ext
6678 cat >>conftest.
$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6684 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try
='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try
='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6715 cat >conftest.
$ac_ext <<_ACEOF
6718 cat confdefs.h
>>conftest.
$ac_ext
6719 cat >>conftest.
$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6725 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6732 rm -f conftest.
$ac_objext
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>conftest.er1
6736 grep -v '^ *+' conftest.er1
>conftest.err
6738 cat conftest.err
>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } &&
6741 { ac_try
='test -z "$ac_c_werror_flag"
6742 || test ! -s conftest.err'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try
='test -s conftest.$ac_objext'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; }; then
6754 ac_hi
=$ac_mid; break
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.
$ac_ext >&5
6759 ac_lo
=`expr $ac_mid + 1`
6760 if test $ac_lo -le $ac_mid; then
6764 ac_mid
=`expr 2 '*' $ac_mid + 1`
6766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.
$ac_ext >&5
6772 cat >conftest.
$ac_ext <<_ACEOF
6775 cat confdefs.h
>>conftest.
$ac_ext
6776 cat >>conftest.
$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6782 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6789 rm -f conftest.
$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6793 grep -v '^ *+' conftest.er1
>conftest.err
6795 cat conftest.err
>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try
='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try
='test -s conftest.$ac_objext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6813 cat >conftest.
$ac_ext <<_ACEOF
6816 cat confdefs.h
>>conftest.
$ac_ext
6817 cat >>conftest.
$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6823 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6830 rm -f conftest.
$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6834 grep -v '^ *+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try
='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try
='test -s conftest.$ac_objext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_lo
=$ac_mid; break
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.
$ac_ext >&5
6857 ac_hi
=`expr '(' $ac_mid ')' - 1`
6858 if test $ac_mid -le $ac_hi; then
6862 ac_mid
=`expr 2 '*' $ac_mid`
6864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.
$ac_ext >&5
6872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6875 # Binary search between lo and hi bounds.
6876 while test "x$ac_lo" != "x$ac_hi"; do
6877 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6888 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6895 rm -f conftest.
$ac_objext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1
>conftest.err
6901 cat conftest.err
>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try
='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_lo
=`expr '(' $ac_mid ')' + 1`
6924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6927 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6928 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6931 See \`config.log' for more details." >&5
6932 echo "$as_me: error: cannot compute sizeof (__int64), 77
6933 See \`config.log' for more details." >&2;}
6934 { (exit 1); exit 1; }; }; } ;;
6937 if test "$cross_compiling" = yes; then
6938 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot run test program while cross compiling
6943 See \`config.log' for more details." >&2;}
6944 { (exit 1); exit 1; }; }; }
6946 cat >conftest.
$ac_ext <<_ACEOF
6949 cat confdefs.h
>>conftest.
$ac_ext
6950 cat >>conftest.
$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 $ac_includes_default
6953 long longval () { return (long) (sizeof (__int64)); }
6954 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6961 FILE *f = fopen ("conftest.val", "w");
6964 if (((long) (sizeof (__int64))) < 0)
6966 long i = longval ();
6967 if (i != ((long) (sizeof (__int64))))
6969 fprintf (f, "%ld\n", i);
6973 unsigned long i = ulongval ();
6974 if (i != ((long) (sizeof (__int64))))
6976 fprintf (f, "%lu\n", i);
6978 exit (ferror (f) || fclose (f) != 0);
6984 rm -f conftest
$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_sizeof___int64
=`cat conftest.val`
6997 echo "$as_me: program exited with status $ac_status" >&5
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.
$ac_ext >&5
7002 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7003 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot compute sizeof (__int64), 77
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; }; }
7010 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7015 ac_cv_sizeof___int64
=0
7018 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7019 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7020 cat >>confdefs.h
<<_ACEOF
7021 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7028 # ---------------------
7029 # Warnings and checking
7030 # ---------------------
7032 # Check $CC warning features (if it's GCC).
7033 # We want to use -pedantic, but we don't want warnings about
7036 # * overlong strings
7037 # So, we only use -pedantic if we can disable those warnings.
7040 save_CFLAGS
="$CFLAGS"
7041 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7042 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7044 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7045 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7046 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7065 rm -f conftest.
$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try
='test -z "$ac_c_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try
='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 eval "$as_acx_Woption=yes"
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 eval "$as_acx_Woption=no"
7094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7098 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7099 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7100 loose_warn
="$loose_warn${loose_warn:+ }$option"
7104 CFLAGS
="$save_CFLAGS"
7107 save_CFLAGS
="$CFLAGS"
7108 for option
in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7109 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7111 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7112 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7113 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 cat >conftest.
$ac_ext <<_ACEOF
7120 cat confdefs.h
>>conftest.
$ac_ext
7121 cat >>conftest.
$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7132 rm -f conftest.
$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try
='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try
='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 eval "$as_acx_Woption=yes"
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.
$ac_ext >&5
7159 eval "$as_acx_Woption=no"
7161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7165 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7166 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7167 strict_warn
="$strict_warn${strict_warn:+ }$option"
7171 CFLAGS
="$save_CFLAGS"
7173 if test "$GCC" = yes; then
7174 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7175 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7176 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 save_CFLAGS
="$CFLAGS"
7180 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7181 cat >conftest.
$ac_ext <<_ACEOF
7184 cat confdefs.h
>>conftest.
$ac_ext
7185 cat >>conftest.
$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7196 rm -f conftest.
$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1
>conftest.err
7202 cat conftest.err
>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try
='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try
='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.
$ac_ext >&5
7223 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
7225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7226 CFLAGS
="$save_CFLAGS"
7228 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7229 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7230 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7231 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7238 # Check whether --enable-werror-always or --disable-werror-always was given.
7239 if test "${enable_werror_always+set}" = set; then
7240 enableval
="$enable_werror_always"
7243 enable_werror_always
=no
7245 if test $enable_werror_always = yes; then
7246 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7252 # The above macros do nothing if the compiler is not GCC. However, the
7253 # Makefile has more goo to add other flags, so this variabl is used to
7254 # enables warnings only for GCC.
7256 if test "x$GCC" = "xyes"; then
7257 warn_cflags
='$(GCC_WARN_CFLAGS)'
7261 # Enable expensive internal checks
7263 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7267 # Check whether --enable-checking or --disable-checking was given.
7268 if test "${enable_checking+set}" = set; then
7269 enableval
="$enable_checking"
7270 ac_checking_flags
="${enableval}"
7273 # Determine the default checks.
7274 if test x
$is_release = x
; then
7275 ac_checking_flags
=yes
7277 ac_checking_flags
=release
7280 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7281 for check
in release
$ac_checking_flags
7284 # these set all the flags to specific states
7285 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7286 ac_fold_checking
= ; ac_gc_checking
=1 ;
7287 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7288 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7289 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7290 ac_types_checking
=1 ;;
7291 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7292 ac_fold_checking
= ; ac_gc_checking
= ;
7293 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7294 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7295 ac_tree_checking
= ; ac_valgrind_checking
= ;
7296 ac_types_checking
= ;;
7297 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7298 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7299 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7300 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7301 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7302 ac_types_checking
=1 ;;
7303 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7304 ac_fold_checking
= ; ac_gc_checking
= ;
7305 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7306 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7307 ac_tree_checking
= ; ac_valgrind_checking
= ;
7308 ac_types_checking
= ;;
7309 # these enable particular checks
7310 assert
) ac_assert_checking
=1 ;;
7311 df
) ac_df_checking
=1 ;;
7312 fold) ac_fold_checking
=1 ;;
7313 gc
) ac_gc_checking
=1 ;;
7314 gcac
) ac_gc_always_collect
=1 ;;
7315 gimple
) ac_gimple_checking
=1 ;;
7316 misc
) ac_checking
=1 ;;
7317 rtl
) ac_rtl_checking
=1 ;;
7318 rtlflag
) ac_rtlflag_checking
=1 ;;
7319 runtime
) ac_runtime_checking
=1 ;;
7320 tree
) ac_tree_checking
=1 ;;
7321 types
) ac_types_checking
=1 ;;
7322 valgrind
) ac_valgrind_checking
=1 ;;
7323 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7324 echo "$as_me: error: unknown check category $check" >&2;}
7325 { (exit 1); exit 1; }; } ;;
7331 if test x
$ac_checking != x
; then
7333 cat >>confdefs.h
<<\_ACEOF
7334 #define ENABLE_CHECKING 1
7337 nocommon_flag
=-fno-common
7340 if test x
$ac_df_checking != x
; then
7342 cat >>confdefs.h
<<\_ACEOF
7343 #define ENABLE_DF_CHECKING 1
7347 if test x
$ac_assert_checking != x
; then
7349 cat >>confdefs.h
<<\_ACEOF
7350 #define ENABLE_ASSERT_CHECKING 1
7354 if test x
$ac_gimple_checking != x
; then
7356 cat >>confdefs.h
<<\_ACEOF
7357 #define ENABLE_GIMPLE_CHECKING 1
7362 if test x
$ac_runtime_checking != x
; then
7364 cat >>confdefs.h
<<\_ACEOF
7365 #define ENABLE_RUNTIME_CHECKING 1
7369 if test x
$ac_tree_checking != x
; then
7371 cat >>confdefs.h
<<\_ACEOF
7372 #define ENABLE_TREE_CHECKING 1
7375 TREEBROWSER
=tree-browser.o
7377 if test x
$ac_types_checking != x
; then
7379 cat >>confdefs.h
<<\_ACEOF
7380 #define ENABLE_TYPES_CHECKING 1
7385 if test x
$ac_rtl_checking != x
; then
7387 cat >>confdefs.h
<<\_ACEOF
7388 #define ENABLE_RTL_CHECKING 1
7392 if test x
$ac_rtlflag_checking != x
; then
7394 cat >>confdefs.h
<<\_ACEOF
7395 #define ENABLE_RTL_FLAG_CHECKING 1
7399 if test x
$ac_gc_checking != x
; then
7401 cat >>confdefs.h
<<\_ACEOF
7402 #define ENABLE_GC_CHECKING 1
7406 if test x
$ac_gc_always_collect != x
; then
7408 cat >>confdefs.h
<<\_ACEOF
7409 #define ENABLE_GC_ALWAYS_COLLECT 1
7413 if test x
$ac_fold_checking != x
; then
7415 cat >>confdefs.h
<<\_ACEOF
7416 #define ENABLE_FOLD_CHECKING 1
7420 valgrind_path_defines
=
7423 if test "${ac_cv_header_valgrind_h+set}" = set; then
7424 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7425 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7426 if test "${ac_cv_header_valgrind_h+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7430 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7432 # Is the header compilable?
7433 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7434 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7435 cat >conftest.
$ac_ext <<_ACEOF
7438 cat confdefs.h
>>conftest.
$ac_ext
7439 cat >>conftest.
$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #include <valgrind.h>
7444 rm -f conftest.
$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>conftest.er1
7448 grep -v '^ *+' conftest.er1
>conftest.err
7450 cat conftest.err
>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try
='test -z "$ac_c_werror_flag"
7454 || test ! -s conftest.err'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; } &&
7460 { ac_try
='test -s conftest.$ac_objext'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7466 ac_header_compiler
=yes
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.
$ac_ext >&5
7471 ac_header_compiler
=no
7473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7475 echo "${ECHO_T}$ac_header_compiler" >&6
7477 # Is the header present?
7478 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7479 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7480 cat >conftest.
$ac_ext <<_ACEOF
7483 cat confdefs.h
>>conftest.
$ac_ext
7484 cat >>conftest.
$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <valgrind.h>
7488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7489 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7491 grep -v '^ *+' conftest.er1
>conftest.err
7493 cat conftest.err
>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } >/dev
/null
; then
7496 if test -s conftest.err
; then
7497 ac_cpp_err
=$ac_c_preproc_warn_flag
7498 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7505 if test -z "$ac_cpp_err"; then
7506 ac_header_preproc
=yes
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.
$ac_ext >&5
7511 ac_header_preproc
=no
7513 rm -f conftest.err conftest.
$ac_ext
7514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7515 echo "${ECHO_T}$ac_header_preproc" >&6
7517 # So? What about this header?
7518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7521 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7523 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7524 ac_header_preproc
=yes
7527 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7528 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7530 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7532 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7534 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7536 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7538 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7541 ## ------------------------------------------ ##
7542 ## Report this to the AC_PACKAGE_NAME lists. ##
7543 ## ------------------------------------------ ##
7546 sed "s/^/$as_me: WARNING: /" >&2
7549 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7550 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7551 if test "${ac_cv_header_valgrind_h+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_header_valgrind_h
=$ac_header_preproc
7556 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7557 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7560 if test $ac_cv_header_valgrind_h = yes; then
7568 if test x
$ac_valgrind_checking != x
; then
7569 # It is certainly possible that there's valgrind but no valgrind.h.
7570 # GCC relies on making annotations so we must have both.
7571 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7572 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7573 cat >conftest.
$ac_ext <<_ACEOF
7576 cat confdefs.h
>>conftest.
$ac_ext
7577 cat >>conftest.
$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 #include <valgrind/memcheck.h>
7580 #ifndef VALGRIND_DISCARD
7581 #error VALGRIND_DISCARD not defined
7584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1
>conftest.err
7589 cat conftest.err
>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev
/null
; then
7592 if test -s conftest.err
; then
7593 ac_cpp_err
=$ac_c_preproc_warn_flag
7594 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7601 if test -z "$ac_cpp_err"; then
7602 gcc_cv_header_valgrind_memcheck_h
=yes
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 gcc_cv_header_valgrind_memcheck_h
=no
7609 rm -f conftest.err conftest.
$ac_ext
7610 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7611 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7612 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7613 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7614 cat >conftest.
$ac_ext <<_ACEOF
7617 cat confdefs.h
>>conftest.
$ac_ext
7618 cat >>conftest.
$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <memcheck.h>
7621 #ifndef VALGRIND_DISCARD
7622 #error VALGRIND_DISCARD not defined
7625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7626 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7628 grep -v '^ *+' conftest.er1
>conftest.err
7630 cat conftest.err
>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } >/dev
/null
; then
7633 if test -s conftest.err
; then
7634 ac_cpp_err
=$ac_c_preproc_warn_flag
7635 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7642 if test -z "$ac_cpp_err"; then
7643 gcc_cv_header_memcheck_h
=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.
$ac_ext >&5
7648 gcc_cv_header_memcheck_h
=no
7650 rm -f conftest.err conftest.
$ac_ext
7651 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7652 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7654 # Prepare PATH_SEPARATOR.
7655 # The user is always right.
7656 if test "${PATH_SEPARATOR+set}" != set; then
7657 echo "#! /bin/sh" >conf$$.sh
7658 echo "exit 0" >>conf$$.sh
7660 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7668 # Find out how to test for executable files. Don't use a zero-byte file,
7669 # as systems may use methods other than mode bits to determine executability.
7670 cat >conf$$.
file <<_ASEOF
7674 chmod +x conf$$.
file
7675 if test -x conf$$.
file >/dev
/null
2>&1; then
7676 ac_executable_p
="test -x"
7678 ac_executable_p
="test -f"
7682 # Extract the first word of "valgrind", so it can be a program name with args.
7683 set dummy valgrind
; ac_word
=$2
7684 echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 if test "${ac_cv_path_valgrind_path+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 case "$valgrind_path" in
7691 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7694 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7695 for ac_dir
in $PATH; do
7697 test -z "$ac_dir" && ac_dir
=.
7698 for ac_exec_ext
in '' $ac_executable_extensions; do
7699 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7700 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7701 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7711 valgrind_path
="$ac_cv_path_valgrind_path"
7712 if test -n "$valgrind_path"; then
7713 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7714 echo "${ECHO_T}$valgrind_path" >&6
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7720 if test "x$valgrind_path" = "x" \
7721 ||
(test $have_valgrind_h = no \
7722 && test $gcc_cv_header_memcheck_h = no \
7723 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7724 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7725 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7726 { (exit 1); exit 1; }; }
7728 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7729 valgrind_command
="$valgrind_path -q"
7731 cat >>confdefs.h
<<\_ACEOF
7732 #define ENABLE_VALGRIND_CHECKING 1
7735 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7737 cat >>confdefs.h
<<\_ACEOF
7738 #define HAVE_VALGRIND_MEMCHECK_H 1
7742 if test $gcc_cv_header_memcheck_h = yes; then
7744 cat >>confdefs.h
<<\_ACEOF
7745 #define HAVE_MEMCHECK_H 1
7753 # Enable code coverage collection
7754 # Check whether --enable-coverage or --disable-coverage was given.
7755 if test "${enable_coverage+set}" = set; then
7756 enableval
="$enable_coverage"
7757 case "${enableval}" in
7759 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7762 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7765 # a.k.a. --disable-coverage
7769 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7770 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7771 { (exit 1); exit 1; }; }
7779 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7780 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7781 enableval
="$enable_gather_detailed_mem_stats"
7784 enable_gather_detailed_mem_stats
=no
7786 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7788 cat >>confdefs.h
<<\_ACEOF
7789 #define GATHER_STATISTICS 1
7794 # -------------------------------
7795 # Miscenalleous configure options
7796 # -------------------------------
7800 # Check whether --with-stabs or --without-stabs was given.
7801 if test "${with_stabs+set}" = set; then
7802 withval
="$with_stabs"
7808 # Determine whether or not multilibs are enabled.
7809 # Check whether --enable-multilib or --disable-multilib was given.
7810 if test "${enable_multilib+set}" = set; then
7811 enableval
="$enable_multilib"
7818 # Enable __cxa_atexit for C++.
7819 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7820 if test "${enable___cxa_atexit+set}" = set; then
7821 enableval
="$enable___cxa_atexit"
7825 # Enable C extension for decimal float if target supports it.
7826 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7827 if test "${enable_decimal_float+set}" = set; then
7828 enableval
="$enable_decimal_float"
7830 case $enable_decimal_float in
7831 yes | no | bid | dpd
) ;;
7832 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7833 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7834 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7835 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7836 { (exit 1); exit 1; }; } ;;
7842 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7843 enable_decimal_float
=yes
7846 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7847 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7848 enable_decimal_float
=no
7854 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7856 cat >>confdefs.h
<<_ACEOF
7857 #define ENABLE_DECIMAL_FLOAT $dfp
7861 # x86's use BID format instead of DPD
7862 case x
$enable_decimal_float in
7865 i?
86*-*-linux* | x86_64
*-*-linux*)
7866 enable_decimal_float
=bid
7869 enable_decimal_float
=dpd
7874 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7875 # dependency on libdecnumber.
7876 enable_decimal_float
=dpd
7881 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7883 cat >>confdefs.h
<<_ACEOF
7884 #define ENABLE_DECIMAL_BID_FORMAT $bid
7888 # Enable C extension for fixed-point arithmetic.
7889 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7890 if test "${enable_fixed_point+set}" = set; then
7891 enableval
="$enable_fixed_point"
7900 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7901 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7902 enable_fixed_point
=no
7905 enable_fixed_point
=yes
7910 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7911 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7912 enable_fixed_point
=no
7919 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7921 cat >>confdefs.h
<<_ACEOF
7922 #define ENABLE_FIXED_POINT $fixedpoint
7927 # Pass with no value to take the default
7928 # Pass with a value to specify a thread package
7929 # Check whether --enable-threads or --disable-threads was given.
7930 if test "${enable_threads+set}" = set; then
7931 enableval
="$enable_threads"
7937 # Check whether --enable-tls or --disable-tls was given.
7938 if test "${enable_tls+set}" = set; then
7939 enableval
="$enable_tls"
7943 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7944 Valid choices are 'yes' and 'no'." >&5
7945 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7946 Valid choices are 'yes' and 'no'." >&2;}
7947 { (exit 1); exit 1; }; } ;;
7954 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7955 if test "${enable_objc_gc+set}" = set; then
7956 enableval
="$enable_objc_gc"
7957 if test x
$enable_objc_gc = xno
; then
7967 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7968 if test "${with_dwarf2+set}" = set; then
7969 withval
="$with_dwarf2"
7970 dwarf2
="$with_dwarf2"
7975 # Check whether --enable-shared or --disable-shared was given.
7976 if test "${enable_shared+set}" = set; then
7977 enableval
="$enable_shared"
7979 case $enable_shared in
7983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7984 for pkg
in $enableval; do
7985 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7999 # Check whether --with-build-sysroot or --without-build-sysroot was given.
8000 if test "${with_build_sysroot+set}" = set; then
8001 withval
="$with_build_sysroot"
8006 # Check whether --with-sysroot or --without-sysroot was given.
8007 if test "${with_sysroot+set}" = set; then
8008 withval
="$with_sysroot"
8010 case ${with_sysroot} in
8011 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8012 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8015 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8016 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8018 if test "x$prefix" = xNONE
; then
8019 test_prefix
=/usr
/local
8023 if test "x$exec_prefix" = xNONE
; then
8024 test_exec_prefix
=$test_prefix
8026 test_exec_prefix
=$exec_prefix
8028 case ${TARGET_SYSTEM_ROOT} in
8029 "${test_prefix}"|
"${test_prefix}/"*|\
8030 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8031 '${prefix}'|
'${prefix}/'*|\
8032 '${exec_prefix}'|
'${exec_prefix}/'*)
8033 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8034 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8041 TARGET_SYSTEM_ROOT_DEFINE
=
8042 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8049 # Build with intermodule optimisations
8050 # Check whether --enable-intermodule or --disable-intermodule was given.
8051 if test "${enable_intermodule+set}" = set; then
8052 enableval
="$enable_intermodule"
8053 case ${enable_intermodule} in
8054 yes) onestep
="-onestep";;
8064 # Check whether --with-pkgversion or --without-pkgversion was given.
8065 if test "${with_pkgversion+set}" = set; then
8066 withval
="$with_pkgversion"
8068 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8069 echo "$as_me: error: package version not specified" >&2;}
8070 { (exit 1); exit 1; }; } ;;
8072 *) PKGVERSION
="($withval) " ;;
8082 # Check whether --with-bugurl or --without-bugurl was given.
8083 if test "${with_bugurl+set}" = set; then
8084 withval
="$with_bugurl"
8086 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8087 echo "$as_me: error: bug URL not specified" >&2;}
8088 { (exit 1); exit 1; }; } ;;
8091 *) BUGURL
="$withval"
8095 BUGURL
="http://gcc.gnu.org/bugs.html"
8104 REPORT_BUGS_TO
="<$BUGURL>"
8105 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8112 # Sanity check enable_languages in case someone does not run the toplevel
8113 # configure # script.
8114 # Check whether --enable-languages or --disable-languages was given.
8115 if test "${enable_languages+set}" = set; then
8116 enableval
="$enable_languages"
8117 case ,${enable_languages}, in
8119 # go safe -- we cannot be much sure without the toplevel
8121 # analysis of which target libs are present and usable
8125 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8126 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8127 { (exit 1); exit 1; }; }
8132 enable_languages
=c
,${enable_languages}
8139 # Used by documentation targets
8145 # Check whether --with-multilib-list or --without-multilib-list was given.
8146 if test "${with_multilib_list+set}" = set; then
8147 withval
="$with_multilib_list"
8150 with_multilib_list
=default
8153 # -------------------------
8154 # Checks for other programs
8155 # -------------------------
8157 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8158 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8159 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8160 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 cat >conftest.
make <<\_ACEOF
8165 @
echo 'ac_maketemp="$(MAKE)"'
8167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8168 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8169 if test -n "$ac_maketemp"; then
8170 eval ac_cv_prog_make_
${ac_make}_set
=yes
8172 eval ac_cv_prog_make_
${ac_make}_set
=no
8176 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8177 echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8183 SET_MAKE
="MAKE=${MAKE-make}"
8187 # Find some useful tools
8188 for ac_prog
in gawk mawk nawk
awk
8190 # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy
$ac_prog; ac_word
=$2
8192 echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194 if test "${ac_cv_prog_AWK+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 if test -n "$AWK"; then
8198 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8204 test -z "$as_dir" && as_dir
=.
8205 for ac_exec_ext
in '' $ac_executable_extensions; do
8206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_AWK
="$ac_prog"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 if test -n "$AWK"; then
8218 echo "$as_me:$LINENO: result: $AWK" >&5
8219 echo "${ECHO_T}$AWK" >&6
8221 echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6
8225 test -n "$AWK" && break
8228 # We need awk to create options.c and options.h.
8229 # Bail out if it's missing.
8231 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8232 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8233 { (exit 1); exit 1; }; } ;;
8236 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8237 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8238 if test "${gcc_cv_prog_LN_S+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 rm -f conftestdata_t
8242 echo >conftestdata_f
8243 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8245 gcc_cv_prog_LN_S
="ln -s"
8247 if ln conftestdata_f conftestdata_t
2>/dev
/null
8251 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8253 gcc_cv_prog_LN_S
="cp -p"
8259 rm -f conftestdata_f conftestdata_t
8262 LN_S
="$gcc_cv_prog_LN_S"
8263 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8264 echo "$as_me:$LINENO: result: yes" >&5
8265 echo "${ECHO_T}yes" >&6
8267 if test "$gcc_cv_prog_LN_S" = "ln"; then
8268 echo "$as_me:$LINENO: result: no, using ln" >&5
8269 echo "${ECHO_T}no, using ln" >&6
8271 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8272 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8276 echo "$as_me:$LINENO: checking whether ln works" >&5
8277 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8278 if test "${acx_cv_prog_LN+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 rm -f conftestdata_t
8282 echo >conftestdata_f
8283 if ln conftestdata_f conftestdata_t
2>/dev
/null
8289 rm -f conftestdata_f conftestdata_t
8292 if test $acx_cv_prog_LN = no
; then
8294 echo "$as_me:$LINENO: result: no, using $LN" >&5
8295 echo "${ECHO_T}no, using $LN" >&6
8297 LN
="$acx_cv_prog_LN"
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8304 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8305 echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8307 if test "${ac_cv_prog_RANLIB+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 if test -n "$RANLIB"; then
8311 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir
=.
8318 for ac_exec_ext
in '' $ac_executable_extensions; do
8319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 RANLIB
=$ac_cv_prog_RANLIB
8330 if test -n "$RANLIB"; then
8331 echo "$as_me:$LINENO: result: $RANLIB" >&5
8332 echo "${ECHO_T}$RANLIB" >&6
8334 echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6
8339 if test -z "$ac_cv_prog_RANLIB"; then
8340 ac_ct_RANLIB
=$RANLIB
8341 # Extract the first word of "ranlib", so it can be a program name with args.
8342 set dummy ranlib
; ac_word
=$2
8343 echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 if test -n "$ac_ct_RANLIB"; then
8349 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir
=.
8356 for ac_exec_ext
in '' $ac_executable_extensions; do
8357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8368 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8369 if test -n "$ac_ct_RANLIB"; then
8370 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8373 echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8377 RANLIB
=$ac_ct_RANLIB
8379 RANLIB
="$ac_cv_prog_RANLIB"
8384 # By default, the Darwin ranlib will not treat common symbols as
8385 # definitions when building the archive table of contents. Other
8386 # ranlibs do that; pass an option to the Darwin ranlib that makes
8387 # it behave similarly.
8395 # Find a good install program. We prefer a C program (faster),
8396 # so one script is as good as another. But avoid the broken or
8397 # incompatible versions:
8398 # SysV /etc/install, /usr/sbin/install
8399 # SunOS /usr/etc/install
8400 # IRIX /sbin/install
8402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8404 # ./install, which can be erroneously created by make from ./install.sh.
8405 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8406 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8407 if test -z "$INSTALL"; then
8408 if test "${ac_cv_path_install+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8412 for ac_dir
in $PATH; do
8413 # Account for people who put trailing slashes in PATH elements.
8415 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8417 # OSF1 and SCO ODT 3.0 have their own names for install.
8418 for ac_prog
in ginstall scoinst
install; do
8419 if test -f $ac_dir/$ac_prog; then
8420 if test $ac_prog = install &&
8421 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8422 # AIX install. It has an incompatible calling convention.
8423 # OSF/1 installbsd also uses dspmsg, but is usable.
8426 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8437 if test "${ac_cv_path_install+set}" = set; then
8438 INSTALL
="$ac_cv_path_install"
8440 # As a last resort, use the slow shell script. We don't cache a
8441 # path for INSTALL within a source directory, because that will
8442 # break other packages using the cache if that directory is
8443 # removed, or if the path is relative.
8444 INSTALL
="$ac_install_sh"
8447 echo "$as_me:$LINENO: result: $INSTALL" >&5
8448 echo "${ECHO_T}$INSTALL" >&6
8450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8451 # It thinks the first close brace ends the variable substitution.
8452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8454 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8457 # See if cmp has --ignore-initial.
8458 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8459 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8460 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 gcc_cv_prog_cmp_skip
=slowcompare
8466 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8467 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8470 gcc_cv_prog_cmp_skip
=gnucompare
8473 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8474 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8475 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8478 gcc_cv_prog_cmp_skip
=fastcompare
8485 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8486 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8487 make_compare_target
=$gcc_cv_prog_cmp_skip
8491 # See if we have the mktemp command.
8492 # Extract the first word of "mktemp", so it can be a program name with args.
8493 set dummy mktemp
; ac_word
=$2
8494 echo "$as_me:$LINENO: checking for $ac_word" >&5
8495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8496 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 if test -n "$have_mktemp_command"; then
8500 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir
=.
8507 for ac_exec_ext
in '' $ac_executable_extensions; do
8508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_have_mktemp_command
="yes"
8510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8519 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8520 if test -n "$have_mktemp_command"; then
8521 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8522 echo "${ECHO_T}$have_mktemp_command" >&6
8524 echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8529 # See if makeinfo has been installed and is modern enough
8530 # that we can use it.
8532 # Extract the first word of "makeinfo", so it can be a program name with args.
8533 set dummy makeinfo
; ac_word
=$2
8534 echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8536 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 if test -n "$MAKEINFO"; then
8540 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8546 test -z "$as_dir" && as_dir
=.
8547 for ac_exec_ext
in '' $ac_executable_extensions; do
8548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_MAKEINFO
="makeinfo"
8550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 MAKEINFO
=$ac_cv_prog_MAKEINFO
8559 if test -n "$MAKEINFO"; then
8560 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8561 echo "${ECHO_T}$MAKEINFO" >&6
8563 echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6
8567 if test -n "$MAKEINFO"; then
8568 # Found it, now check the version.
8569 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8570 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8571 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8575 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8577 case $ac_prog_version in
8578 '') gcc_cv_prog_makeinfo_modern
=no
;;
8579 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8580 *) gcc_cv_prog_makeinfo_modern
=no
;;
8584 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8585 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8587 gcc_cv_prog_makeinfo_modern
=no
8589 if test $gcc_cv_prog_makeinfo_modern = no
; then
8590 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8593 if test $gcc_cv_prog_makeinfo_modern = no
; then
8594 { echo "$as_me:$LINENO: WARNING:
8595 *** Makeinfo is missing or too old.
8596 *** Info documentation will not be built." >&5
8597 echo "$as_me: WARNING:
8598 *** Makeinfo is missing or too old.
8599 *** Info documentation will not be built." >&2;}
8606 # Is pod2man recent enough to regenerate manpages?
8607 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8608 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8609 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611 echo "${ECHO_T}yes" >&6
8612 GENERATED_MANPAGES
=generated-manpages
8614 echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6
8620 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8625 # Extract the first word of "$ac_prog", so it can be a program name with args.
8626 set dummy
$ac_prog; ac_word
=$2
8627 echo "$as_me:$LINENO: checking for $ac_word" >&5
8628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8629 if test "${ac_cv_prog_FLEX+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 if test -n "$FLEX"; then
8633 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir
=.
8640 for ac_exec_ext
in '' $ac_executable_extensions; do
8641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_FLEX
="$ac_prog"
8643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 FLEX
=$ac_cv_prog_FLEX
8652 if test -n "$FLEX"; then
8653 echo "$as_me:$LINENO: result: $FLEX" >&5
8654 echo "${ECHO_T}$FLEX" >&6
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8660 test -n "$FLEX" && break
8662 test -n "$FLEX" || FLEX
="$MISSING flex"
8666 for ac_prog
in bison
8668 # Extract the first word of "$ac_prog", so it can be a program name with args.
8669 set dummy
$ac_prog; ac_word
=$2
8670 echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672 if test "${ac_cv_prog_BISON+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 if test -n "$BISON"; then
8676 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir
=.
8683 for ac_exec_ext
in '' $ac_executable_extensions; do
8684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685 ac_cv_prog_BISON
="$ac_prog"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 BISON
=$ac_cv_prog_BISON
8695 if test -n "$BISON"; then
8696 echo "$as_me:$LINENO: result: $BISON" >&5
8697 echo "${ECHO_T}$BISON" >&6
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8703 test -n "$BISON" && break
8705 test -n "$BISON" || BISON
="$MISSING bison"
8708 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8709 # check for build == host before using them.
8712 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8713 && test -d ..
/binutils
; then
8714 NM
='$(objdir)/../binutils/nm-new'
8716 # Extract the first word of "nm", so it can be a program name with args.
8717 set dummy nm
; ac_word
=$2
8718 echo "$as_me:$LINENO: checking for $ac_word" >&5
8719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8720 if test "${ac_cv_prog_NM+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 if test -n "$NM"; then
8724 ac_cv_prog_NM
="$NM" # Let the user override the test.
8726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir
=.
8731 for ac_exec_ext
in '' $ac_executable_extensions; do
8732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8744 if test -n "$NM"; then
8745 echo "$as_me:$LINENO: result: $NM" >&5
8746 echo "${ECHO_T}$NM" >&6
8748 echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6
8755 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8756 && test -d ..
/binutils
; then
8757 AR
='$(objdir)/../binutils/ar'
8759 # Extract the first word of "ar", so it can be a program name with args.
8760 set dummy
ar; ac_word
=$2
8761 echo "$as_me:$LINENO: checking for $ac_word" >&5
8762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8763 if test "${ac_cv_prog_AR+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 if test -n "$AR"; then
8767 ac_cv_prog_AR
="$AR" # Let the user override the test.
8769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8773 test -z "$as_dir" && as_dir
=.
8774 for ac_exec_ext
in '' $ac_executable_extensions; do
8775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8787 if test -n "$AR"; then
8788 echo "$as_me:$LINENO: result: $AR" >&5
8789 echo "${ECHO_T}$AR" >&6
8791 echo "$as_me:$LINENO: result: no" >&5
8792 echo "${ECHO_T}no" >&6
8798 # --------------------
8799 # Checks for C headers
8800 # --------------------
8802 # Need to reject headers which give warnings, so that the -Werror bootstrap
8803 # works later. *sigh* This needs to come before all header checks.
8805 ac_c_preproc_warn_flag
=yes
8807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8809 if test "${ac_cv_header_stdc+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 cat >conftest.
$ac_ext <<_ACEOF
8815 cat confdefs.h
>>conftest.
$ac_ext
8816 cat >>conftest.
$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8831 rm -f conftest.
$ac_objext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8833 (eval $ac_compile) 2>conftest.er1
8835 grep -v '^ *+' conftest.er1
>conftest.err
8837 cat conftest.err
>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try
='test -z "$ac_c_werror_flag"
8841 || test ! -s conftest.err'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try
='test -s conftest.$ac_objext'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; }; then
8853 ac_cv_header_stdc
=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.
$ac_ext >&5
8858 ac_cv_header_stdc
=no
8860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8862 if test $ac_cv_header_stdc = yes; then
8863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8864 cat >conftest.
$ac_ext <<_ACEOF
8867 cat confdefs.h
>>conftest.
$ac_ext
8868 cat >>conftest.
$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874 $EGREP "memchr" >/dev
/null
2>&1; then
8877 ac_cv_header_stdc
=no
8883 if test $ac_cv_header_stdc = yes; then
8884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 $EGREP "free" >/dev
/null
2>&1; then
8898 ac_cv_header_stdc
=no
8904 if test $ac_cv_header_stdc = yes; then
8905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8906 if test "$cross_compiling" = yes; then
8909 cat >conftest.
$ac_ext <<_ACEOF
8912 cat confdefs.h
>>conftest.
$ac_ext
8913 cat >>conftest.
$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8916 #if ((' ' & 0x0FF) == 0x020)
8917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8920 # define ISLOWER(c) \
8921 (('a' <= (c) && (c) <= 'i') \
8922 || ('j' <= (c) && (c) <= 'r') \
8923 || ('s' <= (c) && (c) <= 'z'))
8924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8932 for (i = 0; i < 256; i++)
8933 if (XOR (islower (i), ISLOWER (i))
8934 || toupper (i) != TOUPPER (i))
8939 rm -f conftest
$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8952 echo "$as_me: program exited with status $ac_status" >&5
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8957 ac_cv_header_stdc
=no
8959 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8965 if test $ac_cv_header_stdc = yes; then
8967 cat >>confdefs.h
<<\_ACEOF
8968 #define STDC_HEADERS 1
8973 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8975 if test "${ac_cv_header_time+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/time.h>
8991 if ((struct tm *) 0)
8997 rm -f conftest.
$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1
>conftest.err
9003 cat conftest.err
>&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try
='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try
='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_cv_header_time
=yes
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.
$ac_ext >&5
9024 ac_cv_header_time
=no
9026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9029 echo "${ECHO_T}$ac_cv_header_time" >&6
9030 if test $ac_cv_header_time = yes; then
9032 cat >>confdefs.h
<<\_ACEOF
9033 #define TIME_WITH_SYS_TIME 1
9038 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9039 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9040 if test "${gcc_cv_header_string+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 cat >conftest.
$ac_ext <<_ACEOF
9046 cat confdefs.h
>>conftest.
$ac_ext
9047 cat >>conftest.
$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9050 #include <strings.h>
9059 rm -f conftest.
$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9063 grep -v '^ *+' conftest.er1
>conftest.err
9065 cat conftest.err
>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try
='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try
='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 gcc_cv_header_string
=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.
$ac_ext >&5
9086 gcc_cv_header_string
=no
9088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9090 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9091 echo "${ECHO_T}$gcc_cv_header_string" >&6
9092 if test $gcc_cv_header_string = yes; then
9094 cat >>confdefs.h
<<\_ACEOF
9095 #define STRING_WITH_STRINGS 1
9100 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9101 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9102 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.
$ac_ext <<_ACEOF
9108 cat confdefs.h
>>conftest.
$ac_ext
9109 cat >>conftest.
$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/wait.h>
9114 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9117 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9125 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9130 rm -f conftest.
$ac_objext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9132 (eval $ac_compile) 2>conftest.er1
9134 grep -v '^ *+' conftest.er1
>conftest.err
9136 cat conftest.err
>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } &&
9139 { ac_try
='test -z "$ac_c_werror_flag"
9140 || test ! -s conftest.err'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; } &&
9146 { ac_try
='test -s conftest.$ac_objext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_header_sys_wait_h
=yes
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 ac_cv_header_sys_wait_h
=no
9159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9161 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9163 if test $ac_cv_header_sys_wait_h = yes; then
9165 cat >>confdefs.h
<<\_ACEOF
9166 #define HAVE_SYS_WAIT_H 1
9193 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9194 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9195 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9196 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9198 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199 echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 cat >conftest.
$ac_ext <<_ACEOF
9207 cat confdefs.h
>>conftest.
$ac_ext
9208 cat >>conftest.
$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <$ac_header>
9212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9213 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1
>conftest.err
9217 cat conftest.err
>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } >/dev
/null
; then
9220 if test -s conftest.err
; then
9221 ac_cpp_err
=$ac_c_preproc_warn_flag
9222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9229 if test -z "$ac_cpp_err"; then
9230 eval "$as_ac_Header=yes"
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.
$ac_ext >&5
9235 eval "$as_ac_Header=no"
9237 rm -f conftest.err conftest.
$ac_ext
9239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242 cat >>confdefs.h
<<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250 # Check for thread headers.
9251 echo "$as_me:$LINENO: checking for thread.h" >&5
9252 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9253 if test "${ac_cv_header_thread_h+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 cat >conftest.
$ac_ext <<_ACEOF
9259 cat confdefs.h
>>conftest.
$ac_ext
9260 cat >>conftest.
$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev
/null
; then
9272 if test -s conftest.err
; then
9273 ac_cpp_err
=$ac_c_preproc_warn_flag
9274 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9281 if test -z "$ac_cpp_err"; then
9282 ac_cv_header_thread_h
=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.
$ac_ext >&5
9287 ac_cv_header_thread_h
=no
9289 rm -f conftest.err conftest.
$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9292 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9293 if test $ac_cv_header_thread_h = yes; then
9299 echo "$as_me:$LINENO: checking for pthread.h" >&5
9300 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9301 if test "${ac_cv_header_pthread_h+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 cat >conftest.
$ac_ext <<_ACEOF
9307 cat confdefs.h
>>conftest.
$ac_ext
9308 cat >>conftest.
$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <pthread.h>
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1
>conftest.err
9317 cat conftest.err
>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev
/null
; then
9320 if test -s conftest.err
; then
9321 ac_cpp_err
=$ac_c_preproc_warn_flag
9322 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9329 if test -z "$ac_cpp_err"; then
9330 ac_cv_header_pthread_h
=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.
$ac_ext >&5
9335 ac_cv_header_pthread_h
=no
9337 rm -f conftest.err conftest.
$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9340 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9341 if test $ac_cv_header_pthread_h = yes; then
9348 # These tests can't be done till we know if we have limits.h.
9349 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9350 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9351 if test "${gcc_cv_decl_char_bit+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.
$ac_ext <<_ACEOF
9357 cat confdefs.h
>>conftest.
$ac_ext
9358 cat >>conftest.
$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #ifdef HAVE_LIMITS_H
9367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9368 $EGREP "found" >/dev
/null
2>&1; then
9369 gcc_cv_decl_char_bit
=yes
9371 gcc_cv_decl_char_bit
=no
9377 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9378 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9379 if test $gcc_cv_decl_char_bit = no
; then
9380 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9381 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9382 if test "${gcc_cv_c_nbby+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 while test $i -lt 65; do
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9399 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9400 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9406 rm -f conftest.
$ac_objext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>conftest.er1
9410 grep -v '^ *+' conftest.er1
>conftest.err
9412 cat conftest.err
>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try
='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try
='test -s conftest.$ac_objext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 gcc_cv_c_nbby
=$i; break
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.
$ac_ext >&5
9434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9437 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9440 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9441 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9442 if test $gcc_cv_c_nbby = failed
; then
9443 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9444 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9445 { (exit 1); exit 1; }; }
9448 cat >>confdefs.h
<<_ACEOF
9449 #define CHAR_BIT $gcc_cv_c_nbby
9454 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9455 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9456 if test "${ac_cv_c_bigendian+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 # See if sys/param.h defines the BYTE_ORDER macro.
9460 cat >conftest.
$ac_ext <<_ACEOF
9463 cat confdefs.h
>>conftest.
$ac_ext
9464 cat >>conftest.
$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <sys/types.h>
9467 #include <sys/param.h>
9472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9480 rm -f conftest.
$ac_objext
9481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9482 (eval $ac_compile) 2>conftest.er1
9484 grep -v '^ *+' conftest.er1
>conftest.err
9486 cat conftest.err
>&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } &&
9489 { ac_try
='test -z "$ac_c_werror_flag"
9490 || test ! -s conftest.err'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; } &&
9496 { ac_try
='test -s conftest.$ac_objext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 # It does; now see whether it defined to BIG_ENDIAN or not.
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <sys/types.h>
9510 #include <sys/param.h>
9515 #if BYTE_ORDER != BIG_ENDIAN
9523 rm -f conftest.
$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>conftest.er1
9527 grep -v '^ *+' conftest.er1
>conftest.err
9529 cat conftest.err
>&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try
='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try
='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_c_bigendian
=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.
$ac_ext >&5
9550 ac_cv_c_bigendian
=no
9552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.
$ac_ext >&5
9557 # It does not; compile a test program.
9558 if test "$cross_compiling" = yes; then
9559 # try to guess the endianness by grepping values into an object file
9560 ac_cv_c_bigendian
=unknown
9561 cat >conftest.
$ac_ext <<_ACEOF
9564 cat confdefs.h
>>conftest.
$ac_ext
9565 cat >>conftest.
$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9568 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9569 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9570 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9571 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9572 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9576 _ascii (); _ebcdic ();
9581 rm -f conftest.
$ac_objext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9583 (eval $ac_compile) 2>conftest.er1
9585 grep -v '^ *+' conftest.er1
>conftest.err
9587 cat conftest.err
>&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try
='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try
='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9604 ac_cv_c_bigendian
=yes
9606 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9607 if test "$ac_cv_c_bigendian" = unknown
; then
9608 ac_cv_c_bigendian
=no
9610 # finding both strings is unlikely to happen, but who knows?
9611 ac_cv_c_bigendian
=unknown
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.
$ac_ext >&5
9619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9621 cat >conftest.
$ac_ext <<_ACEOF
9624 cat confdefs.h
>>conftest.
$ac_ext
9625 cat >>conftest.
$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9630 /* Are we little or big endian? From Harbison&Steele. */
9634 char c[sizeof (long)];
9637 exit (u.c[sizeof (long) - 1] == 1);
9640 rm -f conftest
$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_c_bigendian
=no
9653 echo "$as_me: program exited with status $ac_status" >&5
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.
$ac_ext >&5
9658 ac_cv_c_bigendian
=yes
9660 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9665 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9667 case $ac_cv_c_bigendian in
9670 cat >>confdefs.h
<<\_ACEOF
9671 #define WORDS_BIGENDIAN 1
9677 { { echo "$as_me:$LINENO: error: unknown endianness
9678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9679 echo "$as_me: error: unknown endianness
9680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9681 { (exit 1); exit 1; }; } ;;
9690 # These libraries may be used by collect2.
9691 # We may need a special search path to get them linked.
9692 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9693 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9694 if test "${gcc_cv_collect2_libs+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 for libs
in '' -lld -lmld \
9699 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9700 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9703 cat >conftest.
$ac_ext <<_ACEOF
9706 cat confdefs.h
>>conftest.
$ac_ext
9707 cat >>conftest.
$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9710 /* Override any gcc2 internal prototype to avoid an error. */
9714 /* We use char because int might match the return type of a gcc2
9715 builtin and then its argument prototype would still apply. */
9725 rm -f conftest.
$ac_objext conftest
$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9729 grep -v '^ *+' conftest.er1
>conftest.err
9731 cat conftest.err
>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try
='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try
='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 gcc_cv_collect2_libs
="$libs"; break
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.
$ac_ext >&5
9753 rm -f conftest.err conftest.
$ac_objext \
9754 conftest
$ac_exeext conftest.
$ac_ext
9757 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9759 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9760 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9761 case $gcc_cv_collect2_libs in
9763 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9767 # When building Ada code on Alpha, we need exc_resume which is usually in
9768 # -lexc. So test for it.
9771 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9772 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9773 if test "${ac_cv_search_exc_resume+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 ac_func_search_save_LIBS
=$LIBS
9777 ac_cv_search_exc_resume
=no
9778 cat >conftest.
$ac_ext <<_ACEOF
9781 cat confdefs.h
>>conftest.
$ac_ext
9782 cat >>conftest.
$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9785 /* Override any gcc2 internal prototype to avoid an error. */
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9800 rm -f conftest.
$ac_objext conftest
$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>conftest.er1
9804 grep -v '^ *+' conftest.er1
>conftest.err
9806 cat conftest.err
>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try
='test -z "$ac_c_werror_flag"
9810 || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try
='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_search_exc_resume
="none required"
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.
$ac_ext >&5
9828 rm -f conftest.err conftest.
$ac_objext \
9829 conftest
$ac_exeext conftest.
$ac_ext
9830 if test "$ac_cv_search_exc_resume" = no
; then
9831 for ac_lib
in exc
; do
9832 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 /* Override any gcc2 internal prototype to avoid an error. */
9844 /* We use char because int might match the return type of a gcc2
9845 builtin and then its argument prototype would still apply. */
9855 rm -f conftest.
$ac_objext conftest
$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1
>conftest.err
9861 cat conftest.err
>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try
='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try
='test -s conftest$ac_exeext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_search_exc_resume
="-l$ac_lib"
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.
$ac_ext >&5
9884 rm -f conftest.err conftest.
$ac_objext \
9885 conftest
$ac_exeext conftest.
$ac_ext
9888 LIBS
=$ac_func_search_save_LIBS
9890 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9891 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9892 if test "$ac_cv_search_exc_resume" != no
; then
9893 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9901 # Some systems put ldexp and frexp in libm instead of libc; assume
9902 # they're both in the same place. jcf-dump needs them.
9905 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9906 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9907 if test "${ac_cv_search_ldexp+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 ac_func_search_save_LIBS
=$LIBS
9911 ac_cv_search_ldexp
=no
9912 cat >conftest.
$ac_ext <<_ACEOF
9915 cat confdefs.h
>>conftest.
$ac_ext
9916 cat >>conftest.
$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9919 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9934 rm -f conftest.
$ac_objext conftest
$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9938 grep -v '^ *+' conftest.er1
>conftest.err
9940 cat conftest.err
>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try
='test -z "$ac_c_werror_flag"
9944 || test ! -s conftest.err'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try
='test -s conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 ac_cv_search_ldexp
="none required"
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.
$ac_ext >&5
9962 rm -f conftest.err conftest.
$ac_objext \
9963 conftest
$ac_exeext conftest.
$ac_ext
9964 if test "$ac_cv_search_ldexp" = no
; then
9966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9967 cat >conftest.
$ac_ext <<_ACEOF
9970 cat confdefs.h
>>conftest.
$ac_ext
9971 cat >>conftest.
$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.
$ac_objext conftest
$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>conftest.er1
9993 grep -v '^ *+' conftest.er1
>conftest.err
9995 cat conftest.err
>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try
='test -z "$ac_c_werror_flag"
9999 || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try
='test -s conftest$ac_exeext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_search_ldexp
="-l$ac_lib"
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.
$ac_ext >&5
10018 rm -f conftest.err conftest.
$ac_objext \
10019 conftest
$ac_exeext conftest.
$ac_ext
10022 LIBS
=$ac_func_search_save_LIBS
10024 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10025 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10026 if test "$ac_cv_search_ldexp" != no
; then
10027 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10035 # Use <inttypes.h> only if it exists,
10036 # doesn't clash with <sys/types.h>, and declares intmax_t.
10037 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10038 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10039 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.
$ac_ext <<_ACEOF
10045 cat confdefs.h
>>conftest.
$ac_ext
10046 cat >>conftest.
$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <sys/types.h>
10049 #include <inttypes.h>
10058 rm -f conftest.
$ac_objext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10060 (eval $ac_compile) 2>conftest.er1
10062 grep -v '^ *+' conftest.er1
>conftest.err
10064 cat conftest.err
>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try
='test -z "$ac_c_werror_flag"
10068 || test ! -s conftest.err'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try
='test -s conftest.$ac_objext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 gcc_cv_header_inttypes_h
=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 gcc_cv_header_inttypes_h
=no
10087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10090 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10091 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10092 if test $gcc_cv_header_inttypes_h = yes; then
10094 cat >>confdefs.h
<<\_ACEOF
10095 #define HAVE_INTTYPES_H 1
10135 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10136 sysconf strsignal getrusage nl_langinfo \
10137 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10138 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
10140 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10141 echo "$as_me:$LINENO: checking for $ac_func" >&5
10142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10143 if eval "test \"\${$as_ac_var+set}\" = set"; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 cat >conftest.
$ac_ext <<_ACEOF
10149 cat confdefs.h
>>conftest.
$ac_ext
10150 cat >>conftest.
$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154 #define $ac_func innocuous_$ac_func
10156 /* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char $ac_func (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10162 # include <limits.h>
10164 # include <assert.h>
10169 /* Override any gcc2 internal prototype to avoid an error. */
10174 /* We use char because int might match the return type of a gcc2
10175 builtin and then its argument prototype would still apply. */
10177 /* The GNU C library defines this for functions which it implements
10178 to always fail with ENOSYS. Some functions are actually named
10179 something starting with __ and the normal name is an alias. */
10180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10183 char (*f) () = $ac_func;
10192 return f != $ac_func;
10197 rm -f conftest.
$ac_objext conftest
$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10201 grep -v '^ *+' conftest.er1
>conftest.err
10203 cat conftest.err
>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try
='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try
='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 eval "$as_ac_var=yes"
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.
$ac_ext >&5
10224 eval "$as_ac_var=no"
10226 rm -f conftest.err conftest.
$ac_objext \
10227 conftest
$ac_exeext conftest.
$ac_ext
10229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10231 if test `eval echo '${'$as_ac_var'}'` = yes; then
10232 cat >>confdefs.h
<<_ACEOF
10233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 if test x
$ac_cv_func_mbstowcs = xyes
; then
10241 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10242 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10243 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 if test "$cross_compiling" = yes; then
10247 gcc_cv_func_mbstowcs_works
=yes
10249 cat >conftest.
$ac_ext <<_ACEOF
10252 cat confdefs.h
>>conftest.
$ac_ext
10253 cat >>conftest.
$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255 #include <stdlib.h>
10258 mbstowcs(0, "", 0);
10262 rm -f conftest
$ac_exeext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 gcc_cv_func_mbstowcs_works
=yes
10275 echo "$as_me: program exited with status $ac_status" >&5
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.
$ac_ext >&5
10279 ( exit $ac_status )
10280 gcc_cv_func_mbstowcs_works
=no
10282 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10285 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10286 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10287 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10289 cat >>confdefs.h
<<\_ACEOF
10290 #define HAVE_WORKING_MBSTOWCS 1
10296 echo "$as_me:$LINENO: checking for ssize_t" >&5
10297 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10298 if test "${ac_cv_type_ssize_t+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 cat >conftest.
$ac_ext <<_ACEOF
10304 cat confdefs.h
>>conftest.
$ac_ext
10305 cat >>conftest.
$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 $ac_includes_default
10313 if (sizeof (ssize_t))
10319 rm -f conftest.
$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>conftest.er1
10323 grep -v '^ *+' conftest.er1
>conftest.err
10325 cat conftest.err
>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try
='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try
='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_type_ssize_t
=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.
$ac_ext >&5
10346 ac_cv_type_ssize_t
=no
10348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10350 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10351 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10352 if test $ac_cv_type_ssize_t = yes; then
10356 cat >>confdefs.h
<<_ACEOF
10357 #define ssize_t int
10362 echo "$as_me:$LINENO: checking for caddr_t" >&5
10363 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10364 if test "${ac_cv_type_caddr_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 cat >conftest.
$ac_ext <<_ACEOF
10370 cat confdefs.h
>>conftest.
$ac_ext
10371 cat >>conftest.
$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10379 if (sizeof (caddr_t))
10385 rm -f conftest.
$ac_objext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10387 (eval $ac_compile) 2>conftest.er1
10389 grep -v '^ *+' conftest.er1
>conftest.err
10391 cat conftest.err
>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try
='test -z "$ac_c_werror_flag"
10395 || test ! -s conftest.err'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; } &&
10401 { ac_try
='test -s conftest.$ac_objext'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_cv_type_caddr_t
=yes
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.
$ac_ext >&5
10412 ac_cv_type_caddr_t
=no
10414 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10417 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10418 if test $ac_cv_type_caddr_t = yes; then
10422 cat >>confdefs.h
<<_ACEOF
10423 #define caddr_t char *
10430 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10431 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10432 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.
$ac_ext <<_ACEOF
10438 cat confdefs.h
>>conftest.
$ac_ext
10439 cat >>conftest.
$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/mman.h>
10443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10444 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1
>conftest.err
10448 cat conftest.err
>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } >/dev
/null
; then
10451 if test -s conftest.err
; then
10452 ac_cpp_err
=$ac_c_preproc_warn_flag
10453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10460 if test -z "$ac_cpp_err"; then
10461 ac_cv_header_sys_mman_h
=yes
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.
$ac_ext >&5
10466 ac_cv_header_sys_mman_h
=no
10468 rm -f conftest.err conftest.
$ac_ext
10470 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10471 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10472 if test $ac_cv_header_sys_mman_h = yes; then
10473 gcc_header_sys_mman_h
=yes
10475 gcc_header_sys_mman_h
=no
10478 echo "$as_me:$LINENO: checking for mmap" >&5
10479 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10480 if test "${ac_cv_func_mmap+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 cat >conftest.
$ac_ext <<_ACEOF
10486 cat confdefs.h
>>conftest.
$ac_ext
10487 cat >>conftest.
$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10491 #define mmap innocuous_mmap
10493 /* System header to define __stub macros and hopefully few prototypes,
10494 which can conflict with char mmap (); below.
10495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10496 <limits.h> exists even on freestanding compilers. */
10499 # include <limits.h>
10501 # include <assert.h>
10506 /* Override any gcc2 internal prototype to avoid an error. */
10511 /* We use char because int might match the return type of a gcc2
10512 builtin and then its argument prototype would still apply. */
10514 /* The GNU C library defines this for functions which it implements
10515 to always fail with ENOSYS. Some functions are actually named
10516 something starting with __ and the normal name is an alias. */
10517 #if defined (__stub_mmap) || defined (__stub___mmap)
10520 char (*f) () = mmap;
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>conftest.er1
10538 grep -v '^ *+' conftest.er1
>conftest.err
10540 cat conftest.err
>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try
='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try
='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_func_mmap
=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.
$ac_ext >&5
10563 rm -f conftest.err conftest.
$ac_objext \
10564 conftest
$ac_exeext conftest.
$ac_ext
10566 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10567 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10568 if test $ac_cv_func_mmap = yes; then
10574 if test "$gcc_header_sys_mman_h" != yes \
10575 ||
test "$gcc_func_mmap" != yes; then
10576 gcc_cv_func_mmap_file
=no
10577 gcc_cv_func_mmap_dev_zero
=no
10578 gcc_cv_func_mmap_anon
=no
10580 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10581 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10582 if test "${gcc_cv_func_mmap_file+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 # Add a system to this blacklist if
10586 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10587 # memory area containing the same data that you'd get if you applied
10588 # read() to the same fd. The only system known to have a problem here
10589 # is VMS, where text files have record structure.
10592 gcc_cv_func_mmap_file
=no
;;
10594 gcc_cv_func_mmap_file
=yes;;
10597 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10598 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10599 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10600 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10601 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 # Add a system to this blacklist if it has mmap() but /dev/zero
10605 # does not exist, or if mmapping /dev/zero does not give anonymous
10606 # zeroed pages with both the following properties:
10607 # 1. If you map N consecutive pages in with one call, and then
10608 # unmap any subset of those pages, the pages that were not
10609 # explicitly unmapped remain accessible.
10610 # 2. If you map two adjacent blocks of memory and then unmap them
10611 # both at once, they must both go away.
10612 # Systems known to be in this category are Windows (all variants),
10615 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10616 gcc_cv_func_mmap_dev_zero
=no
;;
10618 gcc_cv_func_mmap_dev_zero
=yes;;
10621 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10622 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10624 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10625 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10626 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10627 if test "${gcc_cv_decl_map_anon+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 cat >conftest.
$ac_ext <<_ACEOF
10633 cat confdefs.h
>>conftest.
$ac_ext
10634 cat >>conftest.
$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 #include <sys/mman.h>
10638 #include <unistd.h>
10640 #ifndef MAP_ANONYMOUS
10641 #define MAP_ANONYMOUS MAP_ANON
10647 int n = MAP_ANONYMOUS;
10652 rm -f conftest.
$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1
>conftest.err
10658 cat conftest.err
>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try
='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try
='test -s conftest.$ac_objext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 gcc_cv_decl_map_anon
=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.
$ac_ext >&5
10679 gcc_cv_decl_map_anon
=no
10681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10683 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10684 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10686 if test $gcc_cv_decl_map_anon = no
; then
10687 gcc_cv_func_mmap_anon
=no
10689 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10690 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10691 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10695 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10696 # doesn't give anonymous zeroed pages with the same properties listed
10697 # above for use of /dev/zero.
10698 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10700 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10701 gcc_cv_func_mmap_anon
=no
;;
10703 gcc_cv_func_mmap_anon
=yes;;
10706 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10707 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10711 if test $gcc_cv_func_mmap_file = yes; then
10713 cat >>confdefs.h
<<\_ACEOF
10714 #define HAVE_MMAP_FILE 1
10718 if test $gcc_cv_func_mmap_dev_zero = yes; then
10720 cat >>confdefs.h
<<\_ACEOF
10721 #define HAVE_MMAP_DEV_ZERO 1
10725 if test $gcc_cv_func_mmap_anon = yes; then
10727 cat >>confdefs.h
<<\_ACEOF
10728 #define HAVE_MMAP_ANON 1
10736 # Under VMS, vfork works very differently than on Unix. The standard test
10737 # won't work, and it isn't easily adaptable. It makes more sense to
10739 ac_cv_func_vfork_works
=yes
10742 echo "$as_me:$LINENO: checking for pid_t" >&5
10743 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10744 if test "${ac_cv_type_pid_t+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 cat >conftest.
$ac_ext <<_ACEOF
10750 cat confdefs.h
>>conftest.
$ac_ext
10751 cat >>conftest.
$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 $ac_includes_default
10759 if (sizeof (pid_t))
10765 rm -f conftest.
$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>conftest.er1
10769 grep -v '^ *+' conftest.er1
>conftest.err
10771 cat conftest.err
>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try
='test -z "$ac_c_werror_flag"
10775 || test ! -s conftest.err'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try
='test -s conftest.$ac_objext'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_type_pid_t
=yes
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.
$ac_ext >&5
10792 ac_cv_type_pid_t
=no
10794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10798 if test $ac_cv_type_pid_t = yes; then
10802 cat >>confdefs.h
<<_ACEOF
10810 for ac_header
in unistd.h vfork.h
10812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 echo "$as_me:$LINENO: checking for $ac_header" >&5
10814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.
$ac_ext <<_ACEOF
10821 cat confdefs.h
>>conftest.
$ac_ext
10822 cat >>conftest.
$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <$ac_header>
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10829 grep -v '^ *+' conftest.er1
>conftest.err
10831 cat conftest.err
>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev
/null
; then
10834 if test -s conftest.err
; then
10835 ac_cpp_err
=$ac_c_preproc_warn_flag
10836 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10843 if test -z "$ac_cpp_err"; then
10844 eval "$as_ac_Header=yes"
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 eval "$as_ac_Header=no"
10851 rm -f conftest.err conftest.
$ac_ext
10853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856 cat >>confdefs.h
<<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10865 for ac_func
in fork vfork
10867 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10868 echo "$as_me:$LINENO: checking for $ac_func" >&5
10869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_var+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.
$ac_ext <<_ACEOF
10876 cat confdefs.h
>>conftest.
$ac_ext
10877 cat >>conftest.
$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10881 #define $ac_func innocuous_$ac_func
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func (); below.
10885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10886 <limits.h> exists even on freestanding compilers. */
10889 # include <limits.h>
10891 # include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10904 /* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10910 char (*f) () = $ac_func;
10919 return f != $ac_func;
10924 rm -f conftest.
$ac_objext conftest
$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10928 grep -v '^ *+' conftest.er1
>conftest.err
10930 cat conftest.err
>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try
='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try
='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 eval "$as_ac_var=yes"
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.
$ac_ext >&5
10951 eval "$as_ac_var=no"
10953 rm -f conftest.err conftest.
$ac_objext \
10954 conftest
$ac_exeext conftest.
$ac_ext
10956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10958 if test `eval echo '${'$as_ac_var'}'` = yes; then
10959 cat >>confdefs.h
<<_ACEOF
10960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966 if test "x$ac_cv_func_fork" = xyes
; then
10967 echo "$as_me:$LINENO: checking for working fork" >&5
10968 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10969 if test "${ac_cv_func_fork_works+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 if test "$cross_compiling" = yes; then
10973 ac_cv_func_fork_works
=cross
10975 cat >conftest.
$ac_ext <<_ACEOF
10976 /* By Ruediger Kuhlmann. */
10977 #include <sys/types.h>
10979 # include <unistd.h>
10981 /* Some systems only have a dummy stub for fork() */
10989 rm -f conftest
$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_func_fork_works
=yes
11002 echo "$as_me: program exited with status $ac_status" >&5
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 ( exit $ac_status )
11007 ac_cv_func_fork_works
=no
11009 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11013 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11016 ac_cv_func_fork_works
=$ac_cv_func_fork
11018 if test "x$ac_cv_func_fork_works" = xcross
; then
11020 *-*-amigaos* |
*-*-msdosdjgpp*)
11021 # Override, as these systems have only a dummy fork() stub
11022 ac_cv_func_fork_works
=no
11025 ac_cv_func_fork_works
=yes
11028 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11029 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11031 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11032 if test "x$ac_cv_func_vfork" = xyes
; then
11033 echo "$as_me:$LINENO: checking for working vfork" >&5
11034 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11035 if test "${ac_cv_func_vfork_works+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 if test "$cross_compiling" = yes; then
11039 ac_cv_func_vfork_works
=cross
11041 cat >conftest.
$ac_ext <<_ACEOF
11044 cat confdefs.h
>>conftest.
$ac_ext
11045 cat >>conftest.
$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 /* Thanks to Paul Eggert for this test. */
11049 #include <stdlib.h>
11050 #include <sys/types.h>
11051 #include <sys/stat.h>
11052 #include <sys/wait.h>
11054 # include <unistd.h>
11057 # include <vfork.h>
11059 /* On some sparc systems, changes by the child to local and incoming
11060 argument registers are propagated back to the parent. The compiler
11061 is told about this with #include <vfork.h>, but some compilers
11062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11063 static variable whose address is put into a register that is
11064 clobbered by the vfork. */
11067 sparc_address_test (int arg)
11069 sparc_address_test (arg) int arg;
11072 static pid_t child;
11090 pid_t parent = getpid ();
11093 sparc_address_test (0);
11098 /* Here is another test for sparc vfork register problems. This
11099 test uses lots of local variables, at least as many local
11100 variables as main has allocated so far including compiler
11101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11103 reuse the register of parent for one of the local variables,
11104 since it will think that parent can't possibly be used any more
11105 in this routine. Assigning to the local variable will thus
11106 munge parent in the parent process. */
11108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11110 /* Convince the compiler that p..p7 are live; otherwise, it might
11111 use the same hardware register for all 8 local variables. */
11112 if (p != p1 || p != p2 || p != p3 || p != p4
11113 || p != p5 || p != p6 || p != p7)
11116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11117 from child file descriptors. If the child closes a descriptor
11118 before it execs or exits, this munges the parent's descriptor
11119 as well. Test for this by closing stdout in the child. */
11120 _exit(close(fileno(stdout)) != 0);
11125 while (wait(&status) != child)
11128 /* Was there some problem with vforking? */
11131 /* Did the child fail? (This shouldn't happen.) */
11134 /* Did the vfork/compiler bug occur? */
11135 || parent != getpid()
11137 /* Did the file descriptor bug occur? */
11138 || fstat(fileno(stdout), &st) != 0
11143 rm -f conftest
$ac_exeext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11145 (eval $ac_link) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_func_vfork_works
=yes
11156 echo "$as_me: program exited with status $ac_status" >&5
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.
$ac_ext >&5
11160 ( exit $ac_status )
11161 ac_cv_func_vfork_works
=no
11163 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11167 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11170 if test "x$ac_cv_func_fork_works" = xcross
; then
11171 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11172 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11173 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11176 if test "x$ac_cv_func_vfork_works" = xyes
; then
11178 cat >>confdefs.h
<<\_ACEOF
11179 #define HAVE_WORKING_VFORK 1
11184 cat >>confdefs.h
<<\_ACEOF
11189 if test "x$ac_cv_func_fork_works" = xyes
; then
11191 cat >>confdefs.h
<<\_ACEOF
11192 #define HAVE_WORKING_FORK 1
11199 if test "X$prefix" = "XNONE"; then
11200 acl_final_prefix
="$ac_default_prefix"
11202 acl_final_prefix
="$prefix"
11204 if test "X$exec_prefix" = "XNONE"; then
11205 acl_final_exec_prefix
='${prefix}'
11207 acl_final_exec_prefix
="$exec_prefix"
11209 acl_save_prefix
="$prefix"
11210 prefix
="$acl_final_prefix"
11211 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11212 prefix
="$acl_save_prefix"
11215 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11216 if test "${with_gnu_ld+set}" = set; then
11217 withval
="$with_gnu_ld"
11218 test "$withval" = no || with_gnu_ld
=yes
11222 # Prepare PATH_SEPARATOR.
11223 # The user is always right.
11224 if test "${PATH_SEPARATOR+set}" != set; then
11225 echo "#! /bin/sh" >conf$$.sh
11226 echo "exit 0" >>conf$$.sh
11228 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11236 if test "$GCC" = yes; then
11237 # Check if gcc -print-prog-name=ld gives a path.
11238 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11239 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11242 # gcc leaves a trailing carriage return which upsets mingw
11243 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11245 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11248 # Accept absolute paths.
11249 [\\/]* |
[A-Za-z
]:[\\/]*)
11250 re_direlt
='/[^/][^/]*/\.\./'
11251 # Canonicalize the path of ld
11252 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11253 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11254 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11256 test -z "$LD" && LD
="$ac_prog"
11259 # If it fails, then pretend we aren't using GCC.
11263 # If it is relative, then search for the first ld in PATH.
11264 with_gnu_ld
=unknown
11267 elif test "$with_gnu_ld" = yes; then
11268 echo "$as_me:$LINENO: checking for GNU ld" >&5
11269 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11271 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11272 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11274 if test "${acl_cv_path_LD+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 if test -z "$LD"; then
11278 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11279 for ac_dir
in $PATH; do
11280 test -z "$ac_dir" && ac_dir
=.
11281 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11282 acl_cv_path_LD
="$ac_dir/$ac_prog"
11283 # Check to see if the program is GNU ld. I'd rather use --version,
11284 # but apparently some GNU ld's only accept -v.
11285 # Break only if it was the GNU/non-GNU ld that we prefer.
11286 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11287 test "$with_gnu_ld" != no
&& break
11289 test "$with_gnu_ld" != yes && break
11295 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11299 LD
="$acl_cv_path_LD"
11300 if test -n "$LD"; then
11301 echo "$as_me:$LINENO: result: $LD" >&5
11302 echo "${ECHO_T}$LD" >&6
11304 echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6
11307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11309 { (exit 1); exit 1; }; }
11310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11312 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11316 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11317 acl_cv_prog_gnu_ld
=yes
11319 acl_cv_prog_gnu_ld
=no
11322 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11323 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11324 with_gnu_ld
=$acl_cv_prog_gnu_ld
11328 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11329 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11330 if test "${acl_cv_rpath+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11335 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11337 rm -f .
/conftest.sh
11341 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11342 echo "${ECHO_T}$acl_cv_rpath" >&6
11344 libext
="$acl_cv_libext"
11345 shlibext
="$acl_cv_shlibext"
11346 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11347 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11348 hardcode_direct
="$acl_cv_hardcode_direct"
11349 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11350 # Check whether --enable-rpath or --disable-rpath was given.
11351 if test "${enable_rpath+set}" = set; then
11352 enableval
="$enable_rpath"
11366 acl_save_prefix
="$prefix"
11367 prefix
="$acl_final_prefix"
11368 acl_save_exec_prefix
="$exec_prefix"
11369 exec_prefix
="$acl_final_exec_prefix"
11371 eval additional_includedir
=\"$includedir\"
11372 eval additional_libdir
=\"$libdir\"
11374 exec_prefix
="$acl_save_exec_prefix"
11375 prefix
="$acl_save_prefix"
11378 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11379 if test "${with_libiconv_prefix+set}" = set; then
11380 withval
="$with_libiconv_prefix"
11382 if test "X$withval" = "Xno"; then
11385 if test "X$withval" = "X"; then
11387 acl_save_prefix
="$prefix"
11388 prefix
="$acl_final_prefix"
11389 acl_save_exec_prefix
="$exec_prefix"
11390 exec_prefix
="$acl_final_exec_prefix"
11392 eval additional_includedir
=\"$includedir\"
11393 eval additional_libdir
=\"$libdir\"
11395 exec_prefix
="$acl_save_exec_prefix"
11396 prefix
="$acl_save_prefix"
11399 additional_includedir
="$withval/include"
11400 additional_libdir
="$withval/lib"
11410 names_already_handled
=
11411 names_next_round
='iconv '
11412 while test -n "$names_next_round"; do
11413 names_this_round
="$names_next_round"
11415 for name
in $names_this_round; do
11417 for n
in $names_already_handled; do
11418 if test "$n" = "$name"; then
11419 already_handled
=yes
11423 if test -z "$already_handled"; then
11424 names_already_handled
="$names_already_handled $name"
11425 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11426 eval value
=\"\
$HAVE_LIB$uppername\"
11427 if test -n "$value"; then
11428 if test "$value" = yes; then
11429 eval value
=\"\
$LIB$uppername\"
11430 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11431 eval value
=\"\
$LTLIB$uppername\"
11432 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11441 if test $use_additional = yes; then
11442 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11443 found_dir
="$additional_libdir"
11444 found_so
="$additional_libdir/lib$name.$shlibext"
11445 if test -f "$additional_libdir/lib$name.la"; then
11446 found_la
="$additional_libdir/lib$name.la"
11449 if test -f "$additional_libdir/lib$name.$libext"; then
11450 found_dir
="$additional_libdir"
11451 found_a
="$additional_libdir/lib$name.$libext"
11452 if test -f "$additional_libdir/lib$name.la"; then
11453 found_la
="$additional_libdir/lib$name.la"
11458 if test "X$found_dir" = "X"; then
11459 for x
in $LDFLAGS $LTLIBICONV; do
11461 acl_save_prefix
="$prefix"
11462 prefix
="$acl_final_prefix"
11463 acl_save_exec_prefix
="$exec_prefix"
11464 exec_prefix
="$acl_final_exec_prefix"
11466 exec_prefix
="$acl_save_exec_prefix"
11467 prefix
="$acl_save_prefix"
11471 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11472 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11474 found_so
="$dir/lib$name.$shlibext"
11475 if test -f "$dir/lib$name.la"; then
11476 found_la
="$dir/lib$name.la"
11479 if test -f "$dir/lib$name.$libext"; then
11481 found_a
="$dir/lib$name.$libext"
11482 if test -f "$dir/lib$name.la"; then
11483 found_la
="$dir/lib$name.la"
11489 if test "X$found_dir" != "X"; then
11494 if test "X$found_dir" != "X"; then
11495 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11496 if test "X$found_so" != "X"; then
11497 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11498 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11501 for x
in $ltrpathdirs; do
11502 if test "X$x" = "X$found_dir"; then
11507 if test -z "$haveit"; then
11508 ltrpathdirs
="$ltrpathdirs $found_dir"
11510 if test "$hardcode_direct" = yes; then
11511 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11513 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11514 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11516 for x
in $rpathdirs; do
11517 if test "X$x" = "X$found_dir"; then
11522 if test -z "$haveit"; then
11523 rpathdirs
="$rpathdirs $found_dir"
11527 for x
in $LDFLAGS $LIBICONV; do
11529 acl_save_prefix
="$prefix"
11530 prefix
="$acl_final_prefix"
11531 acl_save_exec_prefix
="$exec_prefix"
11532 exec_prefix
="$acl_final_exec_prefix"
11534 exec_prefix
="$acl_save_exec_prefix"
11535 prefix
="$acl_save_prefix"
11537 if test "X$x" = "X-L$found_dir"; then
11542 if test -z "$haveit"; then
11543 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11545 if test "$hardcode_minus_L" != no
; then
11546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11548 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11554 if test "X$found_a" != "X"; then
11555 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11557 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11560 additional_includedir
=
11561 case "$found_dir" in
11563 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11564 additional_includedir
="$basedir/include"
11567 if test "X$additional_includedir" != "X"; then
11568 if test "X$additional_includedir" != "X/usr/include"; then
11570 if test "X$additional_includedir" = "X/usr/local/include"; then
11571 if test -n "$GCC"; then
11573 linux
*) haveit
=yes;;
11577 if test -z "$haveit"; then
11578 for x
in $CPPFLAGS $INCICONV; do
11580 acl_save_prefix
="$prefix"
11581 prefix
="$acl_final_prefix"
11582 acl_save_exec_prefix
="$exec_prefix"
11583 exec_prefix
="$acl_final_exec_prefix"
11585 exec_prefix
="$acl_save_exec_prefix"
11586 prefix
="$acl_save_prefix"
11588 if test "X$x" = "X-I$additional_includedir"; then
11593 if test -z "$haveit"; then
11594 if test -d "$additional_includedir"; then
11595 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11601 if test -n "$found_la"; then
11602 save_libdir
="$libdir"
11603 case "$found_la" in
11604 */* |
*\\*) .
"$found_la" ;;
11605 *) .
"./$found_la" ;;
11607 libdir
="$save_libdir"
11608 for dep
in $dependency_libs; do
11611 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11612 if test "X$additional_libdir" != "X/usr/lib"; then
11614 if test "X$additional_libdir" = "X/usr/local/lib"; then
11615 if test -n "$GCC"; then
11617 linux
*) haveit
=yes;;
11621 if test -z "$haveit"; then
11623 for x
in $LDFLAGS $LIBICONV; do
11625 acl_save_prefix
="$prefix"
11626 prefix
="$acl_final_prefix"
11627 acl_save_exec_prefix
="$exec_prefix"
11628 exec_prefix
="$acl_final_exec_prefix"
11630 exec_prefix
="$acl_save_exec_prefix"
11631 prefix
="$acl_save_prefix"
11633 if test "X$x" = "X-L$additional_libdir"; then
11638 if test -z "$haveit"; then
11639 if test -d "$additional_libdir"; then
11640 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11644 for x
in $LDFLAGS $LTLIBICONV; do
11646 acl_save_prefix
="$prefix"
11647 prefix
="$acl_final_prefix"
11648 acl_save_exec_prefix
="$exec_prefix"
11649 exec_prefix
="$acl_final_exec_prefix"
11651 exec_prefix
="$acl_save_exec_prefix"
11652 prefix
="$acl_save_prefix"
11654 if test "X$x" = "X-L$additional_libdir"; then
11659 if test -z "$haveit"; then
11660 if test -d "$additional_libdir"; then
11661 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11668 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11669 if test "$enable_rpath" != no
; then
11671 for x
in $rpathdirs; do
11672 if test "X$x" = "X$dir"; then
11677 if test -z "$haveit"; then
11678 rpathdirs
="$rpathdirs $dir"
11681 for x
in $ltrpathdirs; do
11682 if test "X$x" = "X$dir"; then
11687 if test -z "$haveit"; then
11688 ltrpathdirs
="$ltrpathdirs $dir"
11693 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11696 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11699 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11700 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11706 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11707 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11713 if test "X$rpathdirs" != "X"; then
11714 if test -n "$hardcode_libdir_separator"; then
11716 for found_dir
in $rpathdirs; do
11717 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11719 acl_save_libdir
="$libdir"
11721 eval flag
=\"$hardcode_libdir_flag_spec\"
11722 libdir
="$acl_save_libdir"
11723 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11725 for found_dir
in $rpathdirs; do
11726 acl_save_libdir
="$libdir"
11727 libdir
="$found_dir"
11728 eval flag
=\"$hardcode_libdir_flag_spec\"
11729 libdir
="$acl_save_libdir"
11730 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11734 if test "X$ltrpathdirs" != "X"; then
11735 for found_dir
in $ltrpathdirs; do
11736 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11746 am_save_CPPFLAGS
="$CPPFLAGS"
11748 for element
in $INCICONV; do
11750 for x
in $CPPFLAGS; do
11752 acl_save_prefix
="$prefix"
11753 prefix
="$acl_final_prefix"
11754 acl_save_exec_prefix
="$exec_prefix"
11755 exec_prefix
="$acl_final_exec_prefix"
11757 exec_prefix
="$acl_save_exec_prefix"
11758 prefix
="$acl_save_prefix"
11760 if test "X$x" = "X$element"; then
11765 if test -z "$haveit"; then
11766 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11771 echo "$as_me:$LINENO: checking for iconv" >&5
11772 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11773 if test "${am_cv_func_iconv+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 am_cv_func_iconv
="no, consider installing GNU libiconv"
11779 cat >conftest.
$ac_ext <<_ACEOF
11782 cat confdefs.h
>>conftest.
$ac_ext
11783 cat >>conftest.
$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 #include <stdlib.h>
11790 iconv_t cd = iconv_open("","");
11791 iconv(cd,NULL,NULL,NULL,NULL);
11797 rm -f conftest.
$ac_objext conftest
$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11801 grep -v '^ *+' conftest.er1
>conftest.err
11803 cat conftest.err
>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try
='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try
='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 am_cv_func_iconv
=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11825 rm -f conftest.err conftest.
$ac_objext \
11826 conftest
$ac_exeext conftest.
$ac_ext
11827 if test "$am_cv_func_iconv" != yes; then
11828 am_save_LIBS
="$LIBS"
11829 LIBS
="$LIBS $LIBICONV"
11830 cat >conftest.
$ac_ext <<_ACEOF
11833 cat confdefs.h
>>conftest.
$ac_ext
11834 cat >>conftest.
$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 #include <stdlib.h>
11841 iconv_t cd = iconv_open("","");
11842 iconv(cd,NULL,NULL,NULL,NULL);
11848 rm -f conftest.
$ac_objext conftest
$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850 (eval $ac_link) 2>conftest.er1
11852 grep -v '^ *+' conftest.er1
>conftest.err
11854 cat conftest.err
>&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try
='test -z "$ac_c_werror_flag"
11858 || test ! -s conftest.err'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try
='test -s conftest$ac_exeext'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; }; then
11870 am_cv_lib_iconv
=yes
11871 am_cv_func_iconv
=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.
$ac_ext >&5
11877 rm -f conftest.err conftest.
$ac_objext \
11878 conftest
$ac_exeext conftest.
$ac_ext
11879 LIBS
="$am_save_LIBS"
11883 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11884 echo "${ECHO_T}$am_cv_func_iconv" >&6
11885 if test "$am_cv_func_iconv" = yes; then
11887 cat >>confdefs.h
<<\_ACEOF
11888 #define HAVE_ICONV 1
11892 if test "$am_cv_lib_iconv" = yes; then
11893 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11894 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11895 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11896 echo "${ECHO_T}$LIBICONV" >&6
11898 CPPFLAGS
="$am_save_CPPFLAGS"
11905 if test "$am_cv_func_iconv" = yes; then
11906 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11907 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11908 if test "${am_cv_proto_iconv+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 cat >conftest.
$ac_ext <<_ACEOF
11915 cat confdefs.h
>>conftest.
$ac_ext
11916 cat >>conftest.
$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 #include <stdlib.h>
11925 #if defined(__STDC__) || defined(__cplusplus)
11926 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11939 rm -f conftest.
$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11943 grep -v '^ *+' conftest.er1
>conftest.err
11945 cat conftest.err
>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try
='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try
='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 am_cv_proto_iconv_arg1
=""
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.
$ac_ext >&5
11966 am_cv_proto_iconv_arg1
="const"
11968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11969 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);"
11972 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11973 echo "$as_me:$LINENO: result: ${ac_t:-
11974 }$am_cv_proto_iconv" >&5
11975 echo "${ECHO_T}${ac_t:-
11976 }$am_cv_proto_iconv" >&6
11978 cat >>confdefs.h
<<_ACEOF
11979 #define ICONV_CONST $am_cv_proto_iconv_arg1
11984 # Until we have in-tree GNU iconv:
11989 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11990 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11991 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 cat >conftest.
$ac_ext <<_ACEOF
11997 cat confdefs.h
>>conftest.
$ac_ext
11998 cat >>conftest.
$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 #include <locale.h>
12009 rm -f conftest.
$ac_objext conftest
$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>conftest.er1
12013 grep -v '^ *+' conftest.er1
>conftest.err
12015 cat conftest.err
>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try
='test -z "$ac_c_werror_flag"
12019 || test ! -s conftest.err'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; } &&
12025 { ac_try
='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 am_cv_val_LC_MESSAGES
=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.
$ac_ext >&5
12036 am_cv_val_LC_MESSAGES
=no
12038 rm -f conftest.err conftest.
$ac_objext \
12039 conftest
$ac_exeext conftest.
$ac_ext
12041 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12042 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12043 if test $am_cv_val_LC_MESSAGES = yes; then
12045 cat >>confdefs.h
<<\_ACEOF
12046 #define HAVE_LC_MESSAGES 1
12053 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12054 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12055 if test "${am_cv_langinfo_codeset+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.
$ac_ext <<_ACEOF
12061 cat confdefs.h
>>conftest.
$ac_ext
12062 cat >>conftest.
$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 #include <langinfo.h>
12068 char* cs = nl_langinfo(CODESET);
12073 rm -f conftest.
$ac_objext conftest
$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>conftest.er1
12077 grep -v '^ *+' conftest.er1
>conftest.err
12079 cat conftest.err
>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try
='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try
='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 am_cv_langinfo_codeset
=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.
$ac_ext >&5
12100 am_cv_langinfo_codeset
=no
12102 rm -f conftest.err conftest.
$ac_objext \
12103 conftest
$ac_exeext conftest.
$ac_ext
12106 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12107 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12108 if test $am_cv_langinfo_codeset = yes; then
12110 cat >>confdefs.h
<<\_ACEOF
12111 #define HAVE_LANGINFO_CODESET 1
12117 # We will need to find libiberty.h and ansidecl.h
12118 saved_CFLAGS
="$CFLAGS"
12119 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12159 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12160 strsignal strstr strverscmp \
12161 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12162 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
12164 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12165 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12166 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12167 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 #define $ac_tr_decl 1
12179 #include "ansidecl.h"
12180 #include "system.h"
12186 char *(*pfn) = (char *(*)) $ac_func ;
12192 rm -f conftest.
$ac_objext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194 (eval $ac_compile) 2>conftest.er1
12196 grep -v '^ *+' conftest.er1
>conftest.err
12198 cat conftest.err
>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try
='test -z "$ac_c_werror_flag"
12202 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try
='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 eval "gcc_cv_have_decl_$ac_func=yes"
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.
$ac_ext >&5
12219 eval "gcc_cv_have_decl_$ac_func=no"
12221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12224 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12225 echo "$as_me:$LINENO: result: yes" >&5
12226 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12227 #define $ac_tr_decl 1
12231 echo "$as_me:$LINENO: result: no" >&5
12232 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12233 #define $ac_tr_decl 0
12244 for ac_func
in getrlimit setrlimit getrusage
12246 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12247 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12248 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12249 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >conftest.
$ac_ext <<_ACEOF
12255 cat confdefs.h
>>conftest.
$ac_ext
12256 cat >>conftest.
$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12259 #define $ac_tr_decl 1
12261 #include "ansidecl.h"
12262 #include "system.h"
12263 #ifdef HAVE_SYS_RESOURCE_H
12264 #include <sys/resource.h>
12272 char *(*pfn) = (char *(*)) $ac_func ;
12278 rm -f conftest.
$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280 (eval $ac_compile) 2>conftest.er1
12282 grep -v '^ *+' conftest.er1
>conftest.err
12284 cat conftest.err
>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try
='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try
='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 eval "gcc_cv_have_decl_$ac_func=yes"
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.
$ac_ext >&5
12305 eval "gcc_cv_have_decl_$ac_func=no"
12307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12310 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12311 echo "$as_me:$LINENO: result: yes" >&5
12312 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12313 #define $ac_tr_decl 1
12317 echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12319 #define $ac_tr_decl 0
12327 cat >conftest.
$ac_ext <<_ACEOF
12330 cat confdefs.h
>>conftest.
$ac_ext
12331 cat >>conftest.
$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 #include "ansidecl.h"
12335 #include "system.h"
12336 #ifdef HAVE_SYS_RESOURCE_H
12337 #include <sys/resource.h>
12348 rm -f conftest.
$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
12352 grep -v '^ *+' conftest.er1
>conftest.err
12354 cat conftest.err
>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try
='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try
='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.
$ac_ext >&5
12376 cat >>confdefs.h
<<\_ACEOF
12377 #define rlim_t long
12381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12383 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12384 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12385 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12386 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12388 for ac_func
in ldgetname
12390 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12391 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12392 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12393 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 cat >conftest.
$ac_ext <<_ACEOF
12399 cat confdefs.h
>>conftest.
$ac_ext
12400 cat >>conftest.
$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 #define $ac_tr_decl 1
12405 #include "ansidecl.h"
12406 #include "system.h"
12407 #ifdef HAVE_LDFCN_H
12418 char *(*pfn) = (char *(*)) $ac_func ;
12424 rm -f conftest.
$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12428 grep -v '^ *+' conftest.er1
>conftest.err
12430 cat conftest.err
>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try
='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try
='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 eval "gcc_cv_have_decl_$ac_func=yes"
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.
$ac_ext >&5
12451 eval "gcc_cv_have_decl_$ac_func=no"
12453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12456 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12457 echo "$as_me:$LINENO: result: yes" >&5
12458 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12459 #define $ac_tr_decl 1
12463 echo "$as_me:$LINENO: result: no" >&5
12464 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12465 #define $ac_tr_decl 0
12474 for ac_func
in times
12476 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12477 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12478 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12479 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.
$ac_ext <<_ACEOF
12485 cat confdefs.h
>>conftest.
$ac_ext
12486 cat >>conftest.
$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 #define $ac_tr_decl 1
12491 #include "ansidecl.h"
12492 #include "system.h"
12493 #ifdef HAVE_SYS_TIMES_H
12494 #include <sys/times.h>
12502 char *(*pfn) = (char *(*)) $ac_func ;
12508 rm -f conftest.
$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12512 grep -v '^ *+' conftest.er1
>conftest.err
12514 cat conftest.err
>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try
='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try
='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 eval "gcc_cv_have_decl_$ac_func=yes"
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.
$ac_ext >&5
12535 eval "gcc_cv_have_decl_$ac_func=no"
12537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12540 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12541 echo "$as_me:$LINENO: result: yes" >&5
12542 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12543 #define $ac_tr_decl 1
12547 echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12549 #define $ac_tr_decl 0
12558 for ac_func
in sigaltstack
12560 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12561 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12562 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12563 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 cat >conftest.
$ac_ext <<_ACEOF
12569 cat confdefs.h
>>conftest.
$ac_ext
12570 cat >>conftest.
$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 #define $ac_tr_decl 1
12575 #include "ansidecl.h"
12576 #include "system.h"
12577 #include <signal.h>
12584 char *(*pfn) = (char *(*)) $ac_func ;
12590 rm -f conftest.
$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1
>conftest.err
12596 cat conftest.err
>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try
='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try
='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 eval "gcc_cv_have_decl_$ac_func=yes"
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.
$ac_ext >&5
12617 eval "gcc_cv_have_decl_$ac_func=no"
12619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12622 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12623 echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12625 #define $ac_tr_decl 1
12629 echo "$as_me:$LINENO: result: no" >&5
12630 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12631 #define $ac_tr_decl 0
12639 # More time-related stuff.
12640 echo "$as_me:$LINENO: checking for struct tms" >&5
12641 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12642 if test "${ac_cv_struct_tms+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 cat >conftest.
$ac_ext <<_ACEOF
12649 cat confdefs.h
>>conftest.
$ac_ext
12650 cat >>conftest.
$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 #include "ansidecl.h"
12654 #include "system.h"
12655 #ifdef HAVE_SYS_TIMES_H
12656 #include <sys/times.h>
12667 rm -f conftest.
$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>conftest.er1
12671 grep -v '^ *+' conftest.er1
>conftest.err
12673 cat conftest.err
>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try
='test -z "$ac_c_werror_flag"
12677 || test ! -s conftest.err'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; } &&
12683 { ac_try
='test -s conftest.$ac_objext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_cv_struct_tms
=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.
$ac_ext >&5
12694 ac_cv_struct_tms
=no
12696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12699 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12700 if test $ac_cv_struct_tms = yes; then
12702 cat >>confdefs.h
<<\_ACEOF
12703 #define HAVE_STRUCT_TMS 1
12708 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12709 # revisit after autoconf 2.50.
12710 echo "$as_me:$LINENO: checking for clock_t" >&5
12711 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12712 if test "${gcc_cv_type_clock_t+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 cat >conftest.
$ac_ext <<_ACEOF
12719 cat confdefs.h
>>conftest.
$ac_ext
12720 cat >>conftest.
$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 #include "ansidecl.h"
12724 #include "system.h"
12734 rm -f conftest.
$ac_objext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12736 (eval $ac_compile) 2>conftest.er1
12738 grep -v '^ *+' conftest.er1
>conftest.err
12740 cat conftest.err
>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try
='test -z "$ac_c_werror_flag"
12744 || test ! -s conftest.err'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; } &&
12750 { ac_try
='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 gcc_cv_type_clock_t
=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.
$ac_ext >&5
12761 gcc_cv_type_clock_t
=no
12763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12765 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12766 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12767 if test $gcc_cv_type_clock_t = yes; then
12769 cat >>confdefs.h
<<\_ACEOF
12770 #define HAVE_CLOCK_T 1
12775 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12776 CFLAGS
="$saved_CFLAGS"
12778 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12779 if test "${enable_initfini_array+set}" = set; then
12780 enableval
="$enable_initfini_array"
12784 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12785 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12786 if test "${gcc_cv_initfini_array+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 if test "$cross_compiling" = yes; then
12790 gcc_cv_initfini_array
=no
12792 cat >conftest.
$ac_ext <<_ACEOF
12795 cat confdefs.h
>>conftest.
$ac_ext
12796 cat >>conftest.
$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12800 int main (void) { return x; }
12801 int foo (void) { x = 0; }
12802 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12804 rm -f conftest
$ac_exeext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12806 (eval $ac_link) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 gcc_cv_initfini_array
=yes
12817 echo "$as_me: program exited with status $ac_status" >&5
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.
$ac_ext >&5
12821 ( exit $ac_status )
12822 gcc_cv_initfini_array
=no
12824 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12827 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12828 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12829 enable_initfini_array
=$gcc_cv_initfini_array
12832 if test $enable_initfini_array = yes; then
12834 cat >>confdefs.h
<<\_ACEOF
12835 #define HAVE_INITFINI_ARRAY 1
12840 # mkdir takes a single argument on some systems.
12841 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12842 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12843 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 cat >conftest.
$ac_ext <<_ACEOF
12849 cat confdefs.h
>>conftest.
$ac_ext
12850 cat >>conftest.
$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12853 #include <sys/types.h>
12854 #ifdef HAVE_SYS_STAT_H
12855 # include <sys/stat.h>
12857 #ifdef HAVE_UNISTD_H
12858 # include <unistd.h>
12860 #ifdef HAVE_DIRECT_H
12861 # include <direct.h>
12871 rm -f conftest.
$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873 (eval $ac_compile) 2>conftest.er1
12875 grep -v '^ *+' conftest.er1
>conftest.err
12877 cat conftest.err
>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try
='test -z "$ac_c_werror_flag"
12881 || test ! -s conftest.err'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; } &&
12887 { ac_try
='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 gcc_cv_mkdir_takes_one_arg
=no
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.
$ac_ext >&5
12898 gcc_cv_mkdir_takes_one_arg
=yes
12900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12902 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12903 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12904 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12906 cat >>confdefs.h
<<\_ACEOF
12907 #define MKDIR_TAKES_ONE_ARG 1
12919 # With Setjmp/Longjmp based exception handling.
12920 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12921 if test "${enable_sjlj_exceptions+set}" = set; then
12922 enableval
="$enable_sjlj_exceptions"
12925 if test $enableval != yes; then
12926 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12927 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12932 force_sjlj_exceptions
=yes
12936 force_sjlj_exceptions
=yes
12940 force_sjlj_exceptions
=no
12944 if test $force_sjlj_exceptions = yes; then
12945 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12947 cat >>confdefs.h
<<_ACEOF
12948 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12953 # For platforms with the unwind ABI which includes an unwind library,
12954 # libunwind, we can choose to use the system libunwind.
12955 # config.gcc also contains tests of with_system_libunwind.
12958 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12959 if test "${with_system_libunwind+set}" = set; then
12960 withval
="$with_system_libunwind"
12963 # If system-libunwind was not specifically set, pick a default setting.
12964 if test x
$with_system_libunwind = x
; then
12966 ia64-
*-hpux*) with_system_libunwind
=yes ;;
12967 *) with_system_libunwind
=no
;;
12970 # Based on system-libunwind and target, do we have ipinfo?
12971 if test x
$with_system_libunwind = xyes
; then
12973 ia64-
*-*) have_unwind_getipinfo
=no
;;
12974 *) have_unwind_getipinfo
=yes ;;
12977 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12980 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
12981 *) have_unwind_getipinfo
=yes ;;
12986 if test x
$have_unwind_getipinfo = xyes
; then
12988 cat >>confdefs.h
<<\_ACEOF
12989 #define HAVE_GETIPINFO 1
12995 # --------------------------------------------------------
12996 # Build, host, and target specific configuration fragments
12997 # --------------------------------------------------------
12999 # Collect build-machine-specific information.
13000 .
${srcdir}/config.build
13002 # Collect host-machine-specific information.
13003 .
${srcdir}/config.
host
13007 # Collect target-machine-specific information.
13008 .
${srcdir}/config.gcc
13010 extra_objs
="${host_extra_objs} ${extra_objs}"
13011 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13013 # Default the target-machine variables that were not explicitly set.
13014 if test x
"$tm_file" = x
13015 then tm_file
=$cpu_type/$cpu_type.h
; fi
13017 if test x
"$extra_headers" = x
13018 then extra_headers
=; fi
13020 if test x
$md_file = x
13021 then md_file
=$cpu_type/$cpu_type.md
; fi
13023 if test x
$out_file = x
13024 then out_file
=$cpu_type/$cpu_type.c
; fi
13026 if test x
"$tmake_file" = x
13027 then tmake_file
=$cpu_type/t-
$cpu_type
13030 if test x
"$dwarf2" = xyes
13031 then tm_file
="$tm_file tm-dwarf2.h"
13034 # Say what files are being used for the output code and MD file.
13035 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13036 echo "Using \`$srcdir/config/$md_file' as machine description file."
13038 # If any of the xm_file variables contain nonexistent files, warn
13039 # about them and drop them.
13042 for x
in $build_xm_file; do
13043 if test -f $srcdir/config
/$x
13045 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13046 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13049 build_xm_file
="$bx"
13052 for x
in $host_xm_file; do
13053 if test -f $srcdir/config
/$x
13055 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13056 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13062 for x
in $xm_file; do
13063 if test -f $srcdir/config
/$x
13065 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13066 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13072 for f
in $tm_file; do
13075 if test $count = ax
; then
13076 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13078 echo "Using the following target machine macro files:"
13079 for f
in $tm_file; do
13080 echo " $srcdir/config/$f"
13084 if test x
$need_64bit_hwint = xyes
; then
13086 cat >>confdefs.h
<<\_ACEOF
13087 #define NEED_64BIT_HOST_WIDE_INT 1
13092 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13094 cat >>confdefs.h
<<\_ACEOF
13095 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13101 for f
in $host_xm_file; do
13104 if test $count = a
; then
13106 elif test $count = ax
; then
13107 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13109 echo "Using the following host machine macro files:"
13110 for f
in $host_xm_file; do
13111 echo " $srcdir/config/$f"
13114 echo "Using ${out_host_hook_obj} for host machine hooks."
13116 if test "$host_xm_file" != "$build_xm_file"; then
13118 for f
in $build_xm_file; do
13121 if test $count = a
; then
13123 elif test $count = ax
; then
13124 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13126 echo "Using the following build machine macro files:"
13127 for f
in $build_xm_file; do
13128 echo " $srcdir/config/$f"
13134 powerpc
*-*-darwin*)
13135 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13136 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13137 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 cat >conftest.
$ac_ext <<_ACEOF
13142 #include <sys/cdefs.h>
13143 #include <sys/signal.h>
13144 #include <ucontext.h>
13145 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13148 rm -f conftest.
$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13152 grep -v '^ *+' conftest.er1
>conftest.err
13154 cat conftest.err
>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try
='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try
='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 gcc_cv_mcontext_underscores
=no
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.
$ac_ext >&5
13175 gcc_cv_mcontext_underscores
=yes
13177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13179 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13180 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13181 if test $gcc_cv_mcontext_underscores = yes; then
13183 cat >>confdefs.h
<<\_ACEOF
13184 #define HAS_MCONTEXT_T_UNDERSCORES
13195 # Check if a valid thread package
13196 case ${enable_threads} in
13199 target_thread_file
='single'
13203 target_thread_file
='single'
13205 aix | dce | gnat | irix | posix | posix95 | rtems | \
13206 single | solaris | vxworks | win32 | mipssde
)
13207 target_thread_file
=${enable_threads}
13210 echo "${enable_threads} is an unknown thread package" 1>&2
13215 if test x
${thread_file} = x
; then
13216 # No thread file set by target-specific clauses in config.gcc,
13217 # so use file chosen by default logic above
13218 thread_file
=${target_thread_file}
13221 # Make gthr-default.h if we have a thread file.
13223 if test $thread_file != single
; then
13224 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13225 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
13226 rm -f gthr-default.h-t
13228 mv -f gthr-default.h-t gthr-default.h
13230 gthread_flags
=-DHAVE_GTHR_DEFAULT
13239 if test x
$enable___cxa_atexit = xyes || \
13240 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13241 if test x
$host = x
$target; then
13243 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13244 # keyed to flag_use_cxa_atexit
13249 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13250 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13251 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.
$ac_ext <<_ACEOF
13257 cat confdefs.h
>>conftest.
$ac_ext
13258 cat >>conftest.
$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13262 #define __cxa_atexit innocuous___cxa_atexit
13264 /* System header to define __stub macros and hopefully few prototypes,
13265 which can conflict with char __cxa_atexit (); below.
13266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 <limits.h> exists even on freestanding compilers. */
13270 # include <limits.h>
13272 # include <assert.h>
13275 #undef __cxa_atexit
13277 /* Override any gcc2 internal prototype to avoid an error. */
13282 /* We use char because int might match the return type of a gcc2
13283 builtin and then its argument prototype would still apply. */
13284 char __cxa_atexit ();
13285 /* The GNU C library defines this for functions which it implements
13286 to always fail with ENOSYS. Some functions are actually named
13287 something starting with __ and the normal name is an alias. */
13288 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13291 char (*f) () = __cxa_atexit;
13300 return f != __cxa_atexit;
13305 rm -f conftest.
$ac_objext conftest
$ac_exeext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307 (eval $ac_link) 2>conftest.er1
13309 grep -v '^ *+' conftest.er1
>conftest.err
13311 cat conftest.err
>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try
='test -z "$ac_c_werror_flag"
13315 || test ! -s conftest.err'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try
='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_func___cxa_atexit
=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.
$ac_ext >&5
13332 ac_cv_func___cxa_atexit
=no
13334 rm -f conftest.err conftest.
$ac_objext \
13335 conftest
$ac_exeext conftest.
$ac_ext
13337 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13338 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13339 if test $ac_cv_func___cxa_atexit = yes; then
13342 echo "__cxa_atexit can't be enabled on this target"
13348 # We can't check for __cxa_atexit when building a cross, so assume
13352 if test x
$use_cxa_atexit = xyes
; then
13354 cat >>confdefs.h
<<\_ACEOF
13355 #define DEFAULT_USE_CXA_ATEXIT 2
13361 # Look for a file containing extra machine modes.
13362 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13363 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13366 cat >>confdefs.h
<<_ACEOF
13367 #define EXTRA_MODES_FILE "config/$extra_modes"
13372 # Convert extra_options into a form suitable for Makefile use.
13374 for f
in $extra_options; do
13375 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13379 # auto-host.h is the file containing items generated by autoconf and is
13380 # the first file included by config.h.
13381 # If host=build, it is correct to have bconfig include auto-host.h
13382 # as well. If host!=build, we are in error and need to do more
13383 # work to find out the build config parameters.
13384 if test x
$host = x
$build
13386 build_auto
=auto-host.h
13388 # We create a subdir, then run autoconf in the subdir.
13389 # To prevent recursion we set host and build for the new
13390 # invocation of configure to the build for this invocation
13397 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13398 *) realsrcdir
=..
/${srcdir};;
13400 saved_CFLAGS
="${CFLAGS}"
13401 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13402 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13403 ${realsrcdir}/configure \
13404 --enable-languages=${enable_languages-all} \
13405 --target=$target_alias --host=$build_alias --build=$build_alias
13406 CFLAGS
="${saved_CFLAGS}"
13408 # We just finished tests for the build machine, so rename
13409 # the file auto-build.h in the gcc directory.
13410 mv auto-host.h ..
/auto-build.h
13413 build_auto
=auto-build.h
13417 tm_file
="${tm_file} defaults.h"
13418 tm_p_file
="${tm_p_file} tm-preds.h"
13419 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13420 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13421 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13422 # put this back in temporarily.
13423 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13429 # Compile in configure arguments.
13430 if test -f configargs.h
; then
13431 # Being re-configured.
13432 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13433 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13435 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13438 # Double all backslashes and backslash all quotes to turn
13439 # gcc_config_arguments into a C string.
13440 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13441 $gcc_config_arguments
13443 gcc_config_arguments_str
=`cat conftest.out`
13446 cat > configargs.h
<<EOF
13447 /* Generated automatically. */
13448 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13449 static const char thread_model[] = "$thread_file";
13451 static const struct {
13452 const char *name, *value;
13453 } configure_default_options[] = $configure_default_options;
13456 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13457 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13458 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13459 if test -f $srcdir/REVISION
; then
13460 gcc_REVISION
=`cat $srcdir/REVISION`
13464 cat > plugin-version.h
<<EOF
13465 #include "configargs.h"
13467 static char basever[] = "$gcc_BASEVER";
13468 static char datestamp[] = "$gcc_DATESTAMP";
13469 static char devphase[] = "$gcc_DEVPHASE";
13470 static char revision[] = "$gcc_REVISION";
13472 /* FIXME plugins: We should make the version information more precise.
13473 One way to do is to add a checksum. */
13475 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13476 devphase, revision,
13477 configuration_arguments};
13480 # Internationalization
13481 # If we haven't got the data from the intl directory,
13482 # assume NLS is disabled.
13491 if test -f ..
/intl
/config.intl
; then
13492 . ..
/intl
/config.intl
13494 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13495 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13496 if test x
"$USE_NLS" != xyes
; then
13497 echo "$as_me:$LINENO: result: no" >&5
13498 echo "${ECHO_T}no" >&6
13500 echo "$as_me:$LINENO: result: yes" >&5
13501 echo "${ECHO_T}yes" >&6
13503 cat >>confdefs.h
<<\_ACEOF
13504 #define ENABLE_NLS 1
13508 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13509 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13510 # Look for .po and .gmo files in the source directory.
13513 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13514 # If there aren't any .gmo files the shell will give us the
13515 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13517 case "$cat" in *\
**)
13520 # The quadruple backslash is collapsed to a double backslash
13521 # by the backticks, then collapsed again by the double quotes,
13522 # leaving us with one backslash in the sed expression (right
13523 # before the dot that mustn't act as a wildcard).
13524 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13525 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13526 # The user is allowed to set LINGUAS to a list of languages to
13527 # install catalogs for. If it's empty that means "all of them."
13528 if test "x$LINGUAS" = x
; then
13529 CATALOGS
="$CATALOGS $cat"
13530 XLINGUAS
="$XLINGUAS $lang"
13532 case "$LINGUAS" in *$lang*)
13533 CATALOGS
="$CATALOGS $cat"
13534 XLINGUAS
="$XLINGUAS $lang"
13539 LINGUAS
="$XLINGUAS"
13540 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13541 echo "${ECHO_T}$LINGUAS" >&6
13554 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13555 # -liconv on the link line twice.
13556 case "$LIBINTL" in *$LIBICONV*)
13560 # Check whether --enable-secureplt or --disable-secureplt was given.
13561 if test "${enable_secureplt+set}" = set; then
13562 enableval
="$enable_secureplt"
13566 # Check whether --enable-cld or --disable-cld was given.
13567 if test "${enable_cld+set}" = set; then
13568 enableval
="$enable_cld"
13574 # Windows32 Registry support for specifying GCC installation paths.
13575 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13576 if test "${enable_win32_registry+set}" = set; then
13577 enableval
="$enable_win32_registry"
13582 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13583 if test "x$enable_win32_registry" != xno
; then
13584 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13585 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13586 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 ac_func_search_save_LIBS
=$LIBS
13590 ac_cv_search_RegOpenKeyExA
=no
13591 cat >conftest.
$ac_ext <<_ACEOF
13594 cat confdefs.h
>>conftest.
$ac_ext
13595 cat >>conftest.
$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 /* Override any gcc2 internal prototype to avoid an error. */
13602 /* We use char because int might match the return type of a gcc2
13603 builtin and then its argument prototype would still apply. */
13604 char RegOpenKeyExA ();
13613 rm -f conftest.
$ac_objext conftest
$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13617 grep -v '^ *+' conftest.er1
>conftest.err
13619 cat conftest.err
>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try
='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try
='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_search_RegOpenKeyExA
="none required"
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.
$ac_ext >&5
13641 rm -f conftest.err conftest.
$ac_objext \
13642 conftest
$ac_exeext conftest.
$ac_ext
13643 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13644 for ac_lib
in advapi32
; do
13645 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13646 cat >conftest.
$ac_ext <<_ACEOF
13649 cat confdefs.h
>>conftest.
$ac_ext
13650 cat >>conftest.
$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13653 /* Override any gcc2 internal prototype to avoid an error. */
13657 /* We use char because int might match the return type of a gcc2
13658 builtin and then its argument prototype would still apply. */
13659 char RegOpenKeyExA ();
13668 rm -f conftest.
$ac_objext conftest
$ac_exeext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13670 (eval $ac_link) 2>conftest.er1
13672 grep -v '^ *+' conftest.er1
>conftest.err
13674 cat conftest.err
>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try
='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try
='test -s conftest$ac_exeext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.
$ac_ext >&5
13697 rm -f conftest.err conftest.
$ac_objext \
13698 conftest
$ac_exeext conftest.
$ac_ext
13701 LIBS
=$ac_func_search_save_LIBS
13703 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13704 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13705 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13706 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13709 enable_win32_registry
=no
13714 if test "x$enable_win32_registry" != xno
; then
13716 cat >>confdefs.h
<<\_ACEOF
13717 #define ENABLE_WIN32_REGISTRY 1
13721 if test "x$enable_win32_registry" != xyes \
13722 && test "x$enable_win32_registry" != x
; then
13724 cat >>confdefs.h
<<_ACEOF
13725 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13733 # Get an absolute path to the GCC top-level source directory
13734 holddir
=`${PWDCMD-pwd}`
13736 topdir
=`${PWDCMD-pwd}`
13739 # Conditionalize the makefile for this host machine.
13741 for f
in ${host_xmake_file}
13743 if test -f ${srcdir}/config
/$f
13745 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13749 # Conditionalize the makefile for this target machine.
13751 for f
in ${tmake_file}
13753 if test -f ${srcdir}/config
/$f
13755 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13758 tmake_file
="${tmake_file_}"
13760 out_object_file
=`basename $out_file .c`.o
13762 tm_file_list
="options.h"
13763 tm_include_list
="options.h"
13764 for f
in $tm_file; do
13767 f
=`echo $f | sed 's/^..//'`
13768 tm_file_list
="${tm_file_list} $f"
13769 tm_include_list
="${tm_include_list} $f"
13772 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13773 tm_include_list
="${tm_include_list} $f"
13776 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13777 tm_include_list
="${tm_include_list} config/$f"
13784 for f
in $tm_p_file; do
13787 tm_p_file_list
="${tm_p_file_list} $f"
13788 tm_p_include_list
="${tm_p_include_list} $f"
13791 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13792 tm_p_include_list
="${tm_p_include_list} config/$f"
13798 for f
in $xm_file; do
13801 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13802 xm_include_list
="${xm_include_list} $f"
13805 xm_file_list
="${xm_file_list} $f"
13806 xm_include_list
="${xm_include_list} $f"
13809 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13810 xm_include_list
="${xm_include_list} config/$f"
13816 host_xm_include_list
=
13817 for f
in $host_xm_file; do
13820 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13821 host_xm_include_list
="${host_xm_include_list} $f"
13824 host_xm_file_list
="${host_xm_file_list} $f"
13825 host_xm_include_list
="${host_xm_include_list} $f"
13828 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13829 host_xm_include_list
="${host_xm_include_list} config/$f"
13834 build_xm_file_list
=
13835 for f
in $build_xm_file; do
13838 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13839 build_xm_include_list
="${build_xm_include_list} $f"
13841 auto-build.h | auto-host.h
)
13842 build_xm_file_list
="${build_xm_file_list} $f"
13843 build_xm_include_list
="${build_xm_include_list} $f"
13846 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13847 build_xm_include_list
="${build_xm_include_list} config/$f"
13852 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13853 # cross-compiler which does not use the native headers and libraries.
13854 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13857 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13859 if test "x$with_build_sysroot" != x
; then
13860 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13862 # This value is used, even on a native system, because
13863 # CROSS_SYSTEM_HEADER_DIR is just
13864 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13865 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13868 if test x
$host != x
$target
13870 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13872 SYSTEM_HEADER_DIR
=$build_system_header_dir
13873 case "$host","$target" in
13874 # Darwin crosses can use the host system's libraries and headers,
13875 # because of the fat library support. Of course, it must be the
13876 # same version of Darwin on both sides. Allow the user to
13877 # just say --target=foo-darwin without a version number to mean
13878 # "the version on this system".
13879 *-*-darwin*,*-*-darwin*)
13880 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13881 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13882 if test $hostos = $targetos -o $targetos = darwin
; then
13884 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13889 i?
86-*-*,x86_64-
*-* \
13890 | powerpc
*-*-*,powerpc64
*-*-*)
13891 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13893 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13894 SYSTEM_HEADER_DIR
=$build_system_header_dir
13897 # If this is a cross-compiler that does not
13898 # have its own set of headers then define
13901 # If this is using newlib, without having the headers available now,
13902 # then define inhibit_libc in LIBGCC2_CFLAGS.
13903 # This prevents libgcc2 from containing any code which requires libc
13905 : ${inhibit_libc=false}
13906 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13907 test x
$with_newlib = xyes
; } &&
13908 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13913 # When building gcc with a cross-compiler, we need to adjust things so
13914 # that the generator programs are still built with the native compiler.
13915 # Also, we cannot run fixincludes.
13917 # These are the normal (build=host) settings:
13918 CC_FOR_BUILD
='$(CC)'
13919 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13920 BUILD_LDFLAGS
='$(LDFLAGS)'
13921 STMP_FIXINC
=stmp-fixinc
13923 # And these apply if build != host, or we are generating coverage data
13924 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13926 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13927 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13930 # Expand extra_headers to include complete path.
13931 # This substitutes for lots of t-* files.
13932 extra_headers_list
=
13933 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13934 for file in ${extra_headers} ; do
13935 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13938 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13939 if test x
"$use_gcc_tgmath" = xyes
13940 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13943 # Define collect2 in Makefile.
13944 case $host_can_use_collect2 in
13946 *) collect2
='collect2$(exeext)' ;;
13950 # Add a definition of USE_COLLECT2 if system wants one.
13951 case $use_collect2 in
13952 no
) use_collect2
= ;;
13955 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13956 xm_defines
="${xm_defines} USE_COLLECT2"
13957 case $host_can_use_collect2 in
13959 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13960 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13961 { (exit 1); exit 1; }; }
13967 # ---------------------------
13968 # Assembler & linker features
13969 # ---------------------------
13971 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13972 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13973 # However when ld-new is first executed from the build tree, libtool will
13974 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13975 # to the build tree. While doing this we need to use the previous-stage
13976 # linker, or we have an infinite loop. The presence of a shell script as
13977 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13978 # the gcc/collect-ld script. So we need to know how libtool works, or
13979 # exec-tool will fail.
13984 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13985 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13990 macro_version
='2.2.6'
13991 macro_revision
='1.3012'
14005 ltmain
="$ac_aux_dir/ltmain.sh"
14007 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14008 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14009 if test "${lt_cv_path_SED+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 # Loop through the user's path and test for sed and gsed.
14013 # Then use that list of sed's as ones to test for truncation.
14014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14015 for as_dir
in $PATH
14018 test -z "$as_dir" && as_dir
=.
14019 for lt_ac_prog
in sed gsed
; do
14020 for ac_exec_ext
in '' $ac_executable_extensions; do
14021 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14022 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14030 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14031 # along with /bin/sed that truncates output.
14032 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14033 test ! -f $lt_ac_sed && continue
14034 cat /dev
/null
> conftest.
in
14036 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14037 # Check for GNU sed and select it if it is found.
14038 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14039 lt_cv_path_SED
=$lt_ac_sed
14043 cat conftest.
in conftest.
in >conftest.tmp
14044 mv conftest.tmp conftest.
in
14045 cp conftest.
in conftest.
nl
14047 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14048 cmp -s conftest.out conftest.
nl ||
break
14049 # 10000 chars as input seems more than enough
14050 test $lt_ac_count -gt 10 && break
14051 lt_ac_count
=`expr $lt_ac_count + 1`
14052 if test $lt_ac_count -gt $lt_ac_max; then
14053 lt_ac_max
=$lt_ac_count
14054 lt_cv_path_SED
=$lt_ac_sed
14061 SED
=$lt_cv_path_SED
14063 echo "$as_me:$LINENO: result: $SED" >&5
14064 echo "${ECHO_T}$SED" >&6
14066 test -z "$SED" && SED
=sed
14067 Xsed
="$SED -e 1s/^X//"
14079 echo "$as_me:$LINENO: checking for fgrep" >&5
14080 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14081 if test "${ac_cv_prog_fgrep+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14085 then ac_cv_prog_fgrep
='grep -F'
14086 else ac_cv_prog_fgrep
='fgrep'
14089 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14090 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14091 FGREP
=$ac_cv_prog_fgrep
14094 test -z "$GREP" && GREP
=grep
14114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14115 if test "${with_gnu_ld+set}" = set; then
14116 withval
="$with_gnu_ld"
14117 test "$withval" = no || with_gnu_ld
=yes
14122 if test "$GCC" = yes; then
14123 # Check if gcc -print-prog-name=ld gives a path.
14124 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14128 # gcc leaves a trailing carriage return which upsets mingw
14129 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14131 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14134 # Accept absolute paths.
14136 re_direlt
='/[^/][^/]*/\.\./'
14137 # Canonicalize the pathname of ld
14138 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14139 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14140 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14142 test -z "$LD" && LD
="$ac_prog"
14145 # If it fails, then pretend we aren't using GCC.
14149 # If it is relative, then search for the first ld in PATH.
14150 with_gnu_ld
=unknown
14153 elif test "$with_gnu_ld" = yes; then
14154 echo "$as_me:$LINENO: checking for GNU ld" >&5
14155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14157 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14160 if test "${lt_cv_path_LD+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 if test -z "$LD"; then
14164 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14165 for ac_dir
in $PATH; do
14167 test -z "$ac_dir" && ac_dir
=.
14168 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14169 lt_cv_path_LD
="$ac_dir/$ac_prog"
14170 # Check to see if the program is GNU ld. I'd rather use --version,
14171 # but apparently some variants of GNU ld only accept -v.
14172 # Break only if it was the GNU/non-GNU ld that we prefer.
14173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14174 *GNU
* |
*'with BFD'*)
14175 test "$with_gnu_ld" != no
&& break
14178 test "$with_gnu_ld" != yes && break
14185 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14189 LD
="$lt_cv_path_LD"
14190 if test -n "$LD"; then
14191 echo "$as_me:$LINENO: result: $LD" >&5
14192 echo "${ECHO_T}$LD" >&6
14194 echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6
14197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14199 { (exit 1); exit 1; }; }
14200 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14206 case `$LD -v 2>&1 </dev/null` in
14207 *GNU
* |
*'with BFD'*)
14208 lt_cv_prog_gnu_ld
=yes
14211 lt_cv_prog_gnu_ld
=no
14215 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14217 with_gnu_ld
=$lt_cv_prog_gnu_ld
14227 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14228 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14229 if test "${lt_cv_path_NM+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 if test -n "$NM"; then
14233 # Let the user override the test.
14234 lt_cv_path_NM
="$NM"
14236 lt_nm_to_check
="${ac_tool_prefix}nm"
14237 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14238 lt_nm_to_check
="$lt_nm_to_check nm"
14240 for lt_tmp_nm
in $lt_nm_to_check; do
14241 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14242 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14244 test -z "$ac_dir" && ac_dir
=.
14245 tmp_nm
="$ac_dir/$lt_tmp_nm"
14246 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14247 # Check to see if the nm accepts a BSD-compat flag.
14248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14249 # nm: unknown option "B" ignored
14250 # Tru64's nm complains that /dev/null is an invalid object file
14251 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14252 */dev
/null
* |
*'Invalid file or object type'*)
14253 lt_cv_path_NM
="$tmp_nm -B"
14257 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14259 lt_cv_path_NM
="$tmp_nm -p"
14263 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14264 continue # so that we can try to find one that supports BSD flags
14273 : ${lt_cv_path_NM=no}
14276 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14277 echo "${ECHO_T}$lt_cv_path_NM" >&6
14278 if test "$lt_cv_path_NM" != "no"; then
14279 NM
="$lt_cv_path_NM"
14281 # Didn't find any BSD compatible name lister, look for dumpbin.
14282 if test -n "$ac_tool_prefix"; then
14283 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14286 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14287 echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14289 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 if test -n "$DUMPBIN"; then
14293 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14296 for as_dir
in $PATH
14299 test -z "$as_dir" && as_dir
=.
14300 for ac_exec_ext
in '' $ac_executable_extensions; do
14301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14302 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 DUMPBIN
=$ac_cv_prog_DUMPBIN
14312 if test -n "$DUMPBIN"; then
14313 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14314 echo "${ECHO_T}$DUMPBIN" >&6
14316 echo "$as_me:$LINENO: result: no" >&5
14317 echo "${ECHO_T}no" >&6
14320 test -n "$DUMPBIN" && break
14323 if test -z "$DUMPBIN"; then
14324 ac_ct_DUMPBIN
=$DUMPBIN
14325 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14327 # Extract the first word of "$ac_prog", so it can be a program name with args.
14328 set dummy
$ac_prog; ac_word
=$2
14329 echo "$as_me:$LINENO: checking for $ac_word" >&5
14330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14331 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 if test -n "$ac_ct_DUMPBIN"; then
14335 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14338 for as_dir
in $PATH
14341 test -z "$as_dir" && as_dir
=.
14342 for ac_exec_ext
in '' $ac_executable_extensions; do
14343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14344 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14354 if test -n "$ac_ct_DUMPBIN"; then
14355 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14356 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14358 echo "$as_me:$LINENO: result: no" >&5
14359 echo "${ECHO_T}no" >&6
14362 test -n "$ac_ct_DUMPBIN" && break
14364 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14366 DUMPBIN
=$ac_ct_DUMPBIN
14370 if test "$DUMPBIN" != ":"; then
14374 test -z "$NM" && NM
=nm
14381 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14382 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14383 if test "${lt_cv_nm_interface+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 lt_cv_nm_interface
="BSD nm"
14387 echo "int some_variable = 0;" > conftest.
$ac_ext
14388 (eval echo "\"\$as_me:14388: $ac_compile\"" >&5)
14389 (eval "$ac_compile" 2>conftest.err
)
14390 cat conftest.err
>&5
14391 (eval echo "\"\$as_me:14391: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14392 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14393 cat conftest.err
>&5
14394 (eval echo "\"\$as_me:14394: output\"" >&5)
14395 cat conftest.out
>&5
14396 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14397 lt_cv_nm_interface
="MS dumpbin"
14401 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14402 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14404 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14405 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14407 if test "$LN_S" = "ln -s"; then
14408 echo "$as_me:$LINENO: result: yes" >&5
14409 echo "${ECHO_T}yes" >&6
14411 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14412 echo "${ECHO_T}no, using $LN_S" >&6
14415 # find the maximum length of command line arguments
14416 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14417 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14418 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 # On DJGPP, this test can blow up pretty badly due to problems in libc
14427 # (any single argument exceeding 2000 bytes causes a buffer overrun
14428 # during glob expansion). Even if it were fixed, the result of this
14429 # check would be larger than it should be.
14430 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14434 # Under GNU Hurd, this test is not required because there is
14435 # no limit to the length of command line arguments.
14436 # Libtool will interpret -1 as no limit whatsoever
14437 lt_cv_sys_max_cmd_len
=-1;
14440 cygwin
* | mingw
* | cegcc
*)
14441 # On Win9x/ME, this test blows up -- it succeeds, but takes
14442 # about 5 minutes as the teststring grows exponentially.
14443 # Worse, since 9x/ME are not pre-emptively multitasking,
14444 # you end up with a "frozen" computer, even though with patience
14445 # the test eventually succeeds (with a max line length of 256k).
14446 # Instead, let's just punt: use the minimum linelength reported by
14447 # all of the supported platforms: 8192 (on NT/2K/XP).
14448 lt_cv_sys_max_cmd_len
=8192;
14452 # On AmigaOS with pdksh, this test takes hours, literally.
14453 # So we just punt and use a minimum line length of 8192.
14454 lt_cv_sys_max_cmd_len
=8192;
14457 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14458 # This has been around since 386BSD, at least. Likely further.
14459 if test -x /sbin
/sysctl
; then
14460 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14461 elif test -x /usr
/sbin
/sysctl
; then
14462 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14464 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14466 # And add a safety zone
14467 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14468 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14472 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14473 lt_cv_sys_max_cmd_len
=196608
14477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14479 # nice to cause kernel panics so lets avoid the loop below.
14480 # First set a reasonable default.
14481 lt_cv_sys_max_cmd_len
=16384
14483 if test -x /sbin
/sysconfig
; then
14484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14485 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14490 lt_cv_sys_max_cmd_len
=102400
14492 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14493 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14494 if test -n "$kargmax"; then
14495 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14497 lt_cv_sys_max_cmd_len
=32768
14501 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14502 if test -n "$lt_cv_sys_max_cmd_len"; then
14503 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14504 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14506 # Make teststring a little bigger before we do anything with it.
14507 # a 1K string should be a reasonable start.
14508 for i
in 1 2 3 4 5 6 7 8 ; do
14509 teststring
=$teststring$teststring
14511 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14512 # If test is not a shell built-in, we'll probably end up computing a
14513 # maximum length that is only half of the actual maximum length, but
14515 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14516 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14517 test $i != 17 # 1/2 MB should be enough
14520 teststring
=$teststring$teststring
14522 # Only check the string length outside the loop.
14523 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14525 # Add a significant safety factor because C++ compilers can tack on
14526 # massive amounts of additional arguments before passing them to the
14527 # linker. It appears as though 1/2 is a usable value.
14528 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14535 if test -n $lt_cv_sys_max_cmd_len ; then
14536 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14537 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14539 echo "$as_me:$LINENO: result: none" >&5
14540 echo "${ECHO_T}none" >&6
14542 max_cmd_len
=$lt_cv_sys_max_cmd_len
14553 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14554 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14555 # Try some XSI features
14557 ( _lt_dummy
="a/b/c"
14558 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14560 && eval 'test $(( 1 + 1 )) -eq 2 \
14561 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14563 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14564 echo "${ECHO_T}$xsi_shell" >&6
14567 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14568 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14570 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14572 && lt_shell_append=yes
14573 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14574 echo "${ECHO_T}$lt_shell_append" >&6
14577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14587 # test EBCDIC or ASCII
14588 case `echo X|tr X '\101'` in
14589 A) # ASCII based system
14590 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14591 lt_SP2NL='tr \040 \012'
14592 lt_NL2SP='tr \015\012 \040\040'
14594 *) # EBCDIC based system
14595 lt_SP2NL='tr \100 \n'
14596 lt_NL2SP='tr \r\n \100\100'
14608 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14609 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14610 if test "${lt_cv_ld_reload_flag+set}" = set; then
14611 echo $ECHO_N "(cached
) $ECHO_C" >&6
14613 lt_cv_ld_reload_flag='-r'
14615 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14616 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14617 reload_flag=$lt_cv_ld_reload_flag
14618 case $reload_flag in
14620 *) reload_flag=" $reload_flag" ;;
14622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14625 if test "$GCC" = yes; then
14626 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14641 if test -n "$ac_tool_prefix"; then
14642 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14644 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14645 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14646 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14647 echo $ECHO_N "(cached
) $ECHO_C" >&6
14649 if test -n "$OBJDUMP"; then
14650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14653 for as_dir in $PATH
14656 test -z "$as_dir" && as_dir=.
14657 for ac_exec_ext in '' $ac_executable_extensions; do
14658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14660 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14668 OBJDUMP=$ac_cv_prog_OBJDUMP
14669 if test -n "$OBJDUMP"; then
14670 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
14671 echo "${ECHO_T}$OBJDUMP" >&6
14673 echo "$as_me:$LINENO: result
: no
" >&5
14674 echo "${ECHO_T}no
" >&6
14678 if test -z "$ac_cv_prog_OBJDUMP"; then
14679 ac_ct_OBJDUMP=$OBJDUMP
14680 # Extract the first word of "objdump
", so it can be a program name with args.
14681 set dummy objdump; ac_word=$2
14682 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14683 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14684 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14685 echo $ECHO_N "(cached
) $ECHO_C" >&6
14687 if test -n "$ac_ct_OBJDUMP"; then
14688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14698 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14704 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false
"
14707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14708 if test -n "$ac_ct_OBJDUMP"; then
14709 echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
14710 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14712 echo "$as_me:$LINENO: result
: no
" >&5
14713 echo "${ECHO_T}no
" >&6
14716 OBJDUMP=$ac_ct_OBJDUMP
14718 OBJDUMP="$ac_cv_prog_OBJDUMP"
14721 test -z "$OBJDUMP" && OBJDUMP=objdump
14731 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14732 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14733 if test "${lt_cv_deplibs_check_method+set}" = set; then
14734 echo $ECHO_N "(cached
) $ECHO_C" >&6
14736 lt_cv_file_magic_cmd='$MAGIC_CMD'
14737 lt_cv_file_magic_test_file=
14738 lt_cv_deplibs_check_method='unknown'
14739 # Need to set the preceding variable on all platforms that support
14740 # interlibrary dependencies.
14741 # 'none' -- dependencies not supported.
14742 # `unknown' -- same as none, but documents that we really don't know.
14743 # 'pass_all' -- all dependencies passed with no checks.
14744 # 'test_compile' -- check by making test program.
14745 # 'file_magic [[regex]]' -- check by looking for files in library path
14746 # which responds to the $file_magic_cmd with a given extended regex.
14747 # If you have `file' or equivalent on your system and you're not sure
14748 # whether `pass_all' will *always* work, you probably want this one.
14752 lt_cv_deplibs_check_method=pass_all
14756 lt_cv_deplibs_check_method=pass_all
14760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14761 lt_cv_file_magic_cmd='/usr/bin/file -L'
14762 lt_cv_file_magic_test_file=/shlib/libc.so
14766 # func_win32_libid is a shell function defined in ltmain.sh
14767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14768 lt_cv_file_magic_cmd='func_win32_libid'
14772 # Base MSYS/MinGW do not provide the 'file' command needed by
14773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14774 # unless we find 'file', for example because we are cross-compiling.
14775 if ( file / ) >/dev/null 2>&1; then
14776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14777 lt_cv_file_magic_cmd='func_win32_libid'
14779 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14780 lt_cv_file_magic_cmd='$OBJDUMP -f'
14785 # use the weaker test based on 'objdump'. See mingw*.
14786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14787 lt_cv_file_magic_cmd='$OBJDUMP -f'
14790 darwin* | rhapsody*)
14791 lt_cv_deplibs_check_method=pass_all
14794 freebsd* | dragonfly*)
14795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14798 # Not sure whether the presence of OpenBSD here was a mistake.
14799 # Let's accept both of them until this is cleared up.
14800 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14801 lt_cv_file_magic_cmd=/usr/bin/file
14802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14806 lt_cv_deplibs_check_method=pass_all
14811 lt_cv_deplibs_check_method=pass_all
14814 hpux10.20* | hpux11*)
14815 lt_cv_file_magic_cmd=/usr/bin/file
14818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14819 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14822 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]'
14823 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14826 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14827 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14833 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14837 irix5* | irix6* | nonstopux*)
14839 *-32|*"-32 ") libmagic=32-bit;;
14840 *-n32|*"-n32 ") libmagic=N32;;
14841 *-64|*"-64 ") libmagic=64-bit;;
14842 *) libmagic=never-match;;
14844 lt_cv_deplibs_check_method=pass_all
14847 # This must be Linux ELF.
14848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14849 lt_cv_deplibs_check_method=pass_all
14853 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14862 lt_cv_file_magic_cmd=/usr/bin/file
14863 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14867 lt_cv_deplibs_check_method=pass_all
14871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14878 osf3* | osf4* | osf5*)
14879 lt_cv_deplibs_check_method=pass_all
14883 lt_cv_deplibs_check_method=pass_all
14887 lt_cv_deplibs_check_method=pass_all
14890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14891 lt_cv_deplibs_check_method=pass_all
14895 case $host_vendor in
14897 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]'
14898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14901 lt_cv_deplibs_check_method=pass_all
14904 lt_cv_file_magic_cmd='/bin/file'
14905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14908 lt_cv_file_magic_cmd='/bin/file'
14909 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14910 lt_cv_file_magic_test_file=/lib/libc.so
14913 lt_cv_deplibs_check_method=pass_all
14916 lt_cv_deplibs_check_method=pass_all
14922 lt_cv_deplibs_check_method=pass_all
14927 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
14928 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14929 file_magic_cmd=$lt_cv_file_magic_cmd
14930 deplibs_check_method=$lt_cv_deplibs_check_method
14931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14944 if test -n "$ac_tool_prefix"; then
14945 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14946 set dummy ${ac_tool_prefix}ar; ac_word=$2
14947 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14948 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14949 if test "${ac_cv_prog_AR+set}" = set; then
14950 echo $ECHO_N "(cached
) $ECHO_C" >&6
14952 if test -n "$AR"; then
14953 ac_cv_prog_AR="$AR" # Let the user override the test.
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_prog_AR="${ac_tool_prefix}ar"
14963 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14972 if test -n "$AR"; then
14973 echo "$as_me:$LINENO: result
: $AR" >&5
14974 echo "${ECHO_T}$AR" >&6
14976 echo "$as_me:$LINENO: result
: no
" >&5
14977 echo "${ECHO_T}no
" >&6
14981 if test -z "$ac_cv_prog_AR"; then
14983 # Extract the first word of "ar", so it can be a program name with args.
14984 set dummy ar; ac_word=$2
14985 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14986 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14988 echo $ECHO_N "(cached
) $ECHO_C" >&6
14990 if test -n "$ac_ct_AR"; then
14991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14997 test -z "$as_dir" && as_dir=.
14998 for ac_exec_ext in '' $ac_executable_extensions; do
14999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15000 ac_cv_prog_ac_ct_AR="ar"
15001 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15007 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
15010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15011 if test -n "$ac_ct_AR"; then
15012 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
15013 echo "${ECHO_T}$ac_ct_AR" >&6
15015 echo "$as_me:$LINENO: result
: no
" >&5
15016 echo "${ECHO_T}no
" >&6
15021 AR="$ac_cv_prog_AR"
15024 test -z "$AR" && AR=ar
15025 test -z "$AR_FLAGS" && AR_FLAGS=cru
15037 if test -n "$ac_tool_prefix"; then
15038 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15039 set dummy ${ac_tool_prefix}strip; ac_word=$2
15040 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15041 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15042 if test "${ac_cv_prog_STRIP+set}" = set; then
15043 echo $ECHO_N "(cached
) $ECHO_C" >&6
15045 if test -n "$STRIP"; then
15046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15056 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15064 STRIP=$ac_cv_prog_STRIP
15065 if test -n "$STRIP"; then
15066 echo "$as_me:$LINENO: result
: $STRIP" >&5
15067 echo "${ECHO_T}$STRIP" >&6
15069 echo "$as_me:$LINENO: result
: no
" >&5
15070 echo "${ECHO_T}no
" >&6
15074 if test -z "$ac_cv_prog_STRIP"; then
15076 # Extract the first word of "strip
", so it can be a program name with args.
15077 set dummy strip; ac_word=$2
15078 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15079 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15080 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15081 echo $ECHO_N "(cached
) $ECHO_C" >&6
15083 if test -n "$ac_ct_STRIP"; then
15084 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_ac_ct_STRIP="strip
"
15094 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15100 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15104 if test -n "$ac_ct_STRIP"; then
15105 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15106 echo "${ECHO_T}$ac_ct_STRIP" >&6
15108 echo "$as_me:$LINENO: result
: no
" >&5
15109 echo "${ECHO_T}no
" >&6
15114 STRIP="$ac_cv_prog_STRIP"
15117 test -z "$STRIP" && STRIP=:
15124 if test -n "$ac_tool_prefix"; then
15125 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15127 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15128 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15129 if test "${ac_cv_prog_RANLIB+set}" = set; then
15130 echo $ECHO_N "(cached
) $ECHO_C" >&6
15132 if test -n "$RANLIB"; then
15133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15143 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15151 RANLIB=$ac_cv_prog_RANLIB
15152 if test -n "$RANLIB"; then
15153 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15154 echo "${ECHO_T}$RANLIB" >&6
15156 echo "$as_me:$LINENO: result
: no
" >&5
15157 echo "${ECHO_T}no
" >&6
15161 if test -z "$ac_cv_prog_RANLIB"; then
15162 ac_ct_RANLIB=$RANLIB
15163 # Extract the first word of "ranlib
", so it can be a program name with args.
15164 set dummy ranlib; ac_word=$2
15165 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15166 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15168 echo $ECHO_N "(cached
) $ECHO_C" >&6
15170 if test -n "$ac_ct_RANLIB"; then
15171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15181 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15187 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15191 if test -n "$ac_ct_RANLIB"; then
15192 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15195 echo "$as_me:$LINENO: result
: no
" >&5
15196 echo "${ECHO_T}no
" >&6
15199 RANLIB=$ac_ct_RANLIB
15201 RANLIB="$ac_cv_prog_RANLIB"
15204 test -z "$RANLIB" && RANLIB=:
15211 # Determine commands to create old-style static archives.
15212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15213 old_postinstall_cmds='chmod 644 $oldlib'
15214 old_postuninstall_cmds=
15216 if test -n "$RANLIB"; then
15219 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15222 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15225 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15261 # If no C compiler was specified, use CC.
15264 # If no C compiler flags were specified, use CFLAGS.
15265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15267 # Allow CC to be a program name with arguments.
15271 # Check for command to grab the raw symbol name followed by C symbol from nm.
15272 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15273 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15274 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15275 echo $ECHO_N "(cached
) $ECHO_C" >&6
15278 # These are sane defaults that work on at least a few old systems.
15279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15281 # Character class describing NM global symbol codes.
15282 symcode='[BCDEGRST]'
15284 # Regexp to match symbols that can be accessed directly from C.
15285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15287 # Define system-specific variables.
15292 cygwin* | mingw* | pw32* | cegcc*)
15293 symcode='[ABCDGISTW]'
15296 if test "$host_cpu" = ia64; then
15297 symcode='[ABCDEGRST]'
15300 irix* | nonstopux*)
15301 symcode='[BCDEGRST]'
15304 symcode='[BCDEGQRST]'
15315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15323 # If we're using GNU nm, then use its standard symbol codes.
15324 case `$NM -V 2>&1` in
15325 *GNU* | *'with BFD'*)
15326 symcode='[ABCDGIRSTW]' ;;
15329 # Transform an extracted symbol line into a proper C declaration.
15330 # Some systems (esp. on ia64) link data and code symbols differently,
15331 # so use this general approach.
15332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15334 # Transform an extracted symbol line into symbol name and symbol address
15335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
15338 # Handle CRLF in mingw tool chain
15342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15346 # Try without a prefix underscore, then with it.
15347 for ac_symprfx in "" "_
"; do
15349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15350 symxfrm="\\1 $ac_symprfx\\2 \\2"
15352 # Write the raw and C identifiers.
15353 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15354 # Fake it for dumpbin and say T for any non-static function
15355 # and D for any global variable.
15356 # Also find C++ and __fastcall symbols from MSVC++,
15357 # which start with @ or ?.
15358 lt_cv_sys_global_symbol_pipe="$AWK '"\
15359 " {last_section=section; section=\$ 3};"\
15360 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15361 " \$ 0!~/External *\|/{next};"\
15362 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15363 " {if(hide[section]) next};"\
15364 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15365 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15366 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15367 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15368 " ' prfx
=^
$ac_symprfx"
15370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15373 # Check to see that the pipe works correctly.
15377 cat > conftest.$ac_ext <<_LT_EOF
15382 void nm_test_func(void);
15383 void nm_test_func(void){}
15387 int main(){nm_test_var='a';nm_test_func();return(0);}
15390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15391 (eval $ac_compile) 2>&5
15393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15394 (exit $ac_status); }; then
15395 # Now try to grab the symbols.
15397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15401 (exit $ac_status); } && test -s "$nlist"; then
15402 # Try sorting and uniquifying the output.
15403 if sort "$nlist" | uniq > "$nlist"T; then
15404 mv -f "$nlist"T "$nlist"
15409 # Make sure that we snagged all the symbols we need.
15410 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15411 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15412 cat <<_LT_EOF > conftest.$ac_ext
15418 # Now generate the symbol file.
15419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15421 cat <<_LT_EOF >> conftest.$ac_ext
15423 /* The mapping between symbol names and symbols. */
15428 lt__PROGRAM__LTX_preloaded_symbols[] =
15430 { "@PROGRAM@
", (void *) 0 },
15432 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15433 cat <<\_LT_EOF >> conftest.$ac_ext
15437 /* This works around a problem in FreeBSD linker */
15438 #ifdef FREEBSD_WORKAROUND
15439 static const void *lt_preloaded_setup() {
15440 return lt__PROGRAM__LTX_preloaded_symbols;
15448 # Now try linking the two files.
15449 mv conftest.$ac_objext conftstm.$ac_objext
15450 lt_save_LIBS="$LIBS"
15451 lt_save_CFLAGS="$CFLAGS"
15452 LIBS="conftstm.
$ac_objext"
15453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15455 (eval $ac_link) 2>&5
15457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15458 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15461 LIBS="$lt_save_LIBS"
15462 CFLAGS="$lt_save_CFLAGS"
15464 echo "cannot
find nm_test_func
in $nlist" >&5
15467 echo "cannot
find nm_test_var
in $nlist" >&5
15470 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15473 echo "$progname: failed program was
:" >&5
15474 cat conftest.$ac_ext >&5
15476 rm -rf conftest* conftst*
15478 # Do not use the global_symbol_pipe unless it works.
15479 if test "$pipe_works" = yes; then
15482 lt_cv_sys_global_symbol_pipe=
15488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15489 lt_cv_sys_global_symbol_to_cdecl=
15491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15492 echo "$as_me:$LINENO: result
: failed
" >&5
15493 echo "${ECHO_T}failed
" >&6
15495 echo "$as_me:$LINENO: result
: ok
" >&5
15496 echo "${ECHO_T}ok
" >&6
15520 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15521 if test "${enable_libtool_lock+set}" = set; then
15522 enableval="$enable_libtool_lock"
15525 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15527 # Some flags need to be propagated to the compiler or linker for good
15531 # Find out which ABI we are using.
15532 echo 'int i;' > conftest.$ac_ext
15533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15534 (eval $ac_compile) 2>&5
15536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15537 (exit $ac_status); }; then
15538 case `/usr/bin/file conftest.$ac_objext` in
15540 HPUX_IA64_MODE="32"
15543 HPUX_IA64_MODE="64"
15550 # Find out which ABI we are using.
15551 echo '#line 15551 "configure
"' > conftest.$ac_ext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15556 (exit $ac_status); }; then
15557 if test "$lt_cv_prog_gnu_ld" = yes; then
15558 case `/usr/bin/file conftest.$ac_objext` in
15560 LD="${LD-ld} -melf32bsmip"
15563 LD="${LD-ld} -melf32bmipn32"
15566 LD="${LD-ld} -melf64bmip"
15570 case `/usr/bin/file conftest.$ac_objext` in
15586 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15587 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15588 # Find out which ABI we are using.
15589 echo 'int i;' > conftest.$ac_ext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>&5
15593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15594 (exit $ac_status); }; then
15595 case `/usr/bin/file conftest.o` in
15598 x86_64-*kfreebsd*-gnu)
15599 LD="${LD-ld} -m elf_i386_fbsd
"
15602 LD="${LD-ld} -m elf_i386
"
15604 ppc64-*linux*|powerpc64-*linux*)
15605 LD="${LD-ld} -m elf32ppclinux
"
15608 LD="${LD-ld} -m elf_s390
"
15611 LD="${LD-ld} -m elf32_sparc
"
15617 x86_64-*kfreebsd*-gnu)
15618 LD="${LD-ld} -m elf_x86_64_fbsd
"
15621 LD="${LD-ld} -m elf_x86_64
"
15623 ppc*-*linux*|powerpc*-*linux*)
15624 LD="${LD-ld} -m elf64ppc
"
15626 s390*-*linux*|s390*-*tpf*)
15627 LD="${LD-ld} -m elf64_s390
"
15630 LD="${LD-ld} -m elf64_sparc
"
15640 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15641 SAVE_CFLAGS="$CFLAGS"
15642 CFLAGS="$CFLAGS -belf"
15643 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15644 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15645 if test "${lt_cv_cc_needs_belf+set}" = set; then
15646 echo $ECHO_N "(cached
) $ECHO_C" >&6
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 lt_cv_cc_needs_belf=yes
15693 echo "$as_me: failed program was
:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 lt_cv_cc_needs_belf=no
15698 rm -f conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15701 ac_cpp='$CPP $CPPFLAGS'
15702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15707 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15708 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15711 CFLAGS="$SAVE_CFLAGS"
15715 # Find out which ABI we are using.
15716 echo 'int i;' > conftest.$ac_ext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15718 (eval $ac_compile) 2>&5
15720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15721 (exit $ac_status); }; then
15722 case `/usr/bin/file conftest.o` in
15724 case $lt_cv_prog_gnu_ld in
15725 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15739 need_locks="$enable_libtool_lock"
15743 rhapsody* | darwin*)
15744 if test -n "$ac_tool_prefix"; then
15745 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15746 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15747 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15748 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15749 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15750 echo $ECHO_N "(cached
) $ECHO_C" >&6
15752 if test -n "$DSYMUTIL"; then
15753 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15756 for as_dir in $PATH
15759 test -z "$as_dir" && as_dir=.
15760 for ac_exec_ext in '' $ac_executable_extensions; do
15761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15762 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15763 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15771 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15772 if test -n "$DSYMUTIL"; then
15773 echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
15774 echo "${ECHO_T}$DSYMUTIL" >&6
15776 echo "$as_me:$LINENO: result
: no
" >&5
15777 echo "${ECHO_T}no
" >&6
15781 if test -z "$ac_cv_prog_DSYMUTIL"; then
15782 ac_ct_DSYMUTIL=$DSYMUTIL
15783 # Extract the first word of "dsymutil
", so it can be a program name with args.
15784 set dummy dsymutil; ac_word=$2
15785 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15786 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15787 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15788 echo $ECHO_N "(cached
) $ECHO_C" >&6
15790 if test -n "$ac_ct_DSYMUTIL"; then
15791 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15801 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15807 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15810 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15811 if test -n "$ac_ct_DSYMUTIL"; then
15812 echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
15813 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15815 echo "$as_me:$LINENO: result
: no
" >&5
15816 echo "${ECHO_T}no
" >&6
15819 DSYMUTIL=$ac_ct_DSYMUTIL
15821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15824 if test -n "$ac_tool_prefix"; then
15825 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15827 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15828 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15829 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15830 echo $ECHO_N "(cached
) $ECHO_C" >&6
15832 if test -n "$NMEDIT"; then
15833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15843 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15851 NMEDIT=$ac_cv_prog_NMEDIT
15852 if test -n "$NMEDIT"; then
15853 echo "$as_me:$LINENO: result
: $NMEDIT" >&5
15854 echo "${ECHO_T}$NMEDIT" >&6
15856 echo "$as_me:$LINENO: result
: no
" >&5
15857 echo "${ECHO_T}no
" >&6
15861 if test -z "$ac_cv_prog_NMEDIT"; then
15862 ac_ct_NMEDIT=$NMEDIT
15863 # Extract the first word of "nmedit
", so it can be a program name with args.
15864 set dummy nmedit; ac_word=$2
15865 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15866 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15868 echo $ECHO_N "(cached
) $ECHO_C" >&6
15870 if test -n "$ac_ct_NMEDIT"; then
15871 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15877 test -z "$as_dir" && as_dir=.
15878 for ac_exec_ext in '' $ac_executable_extensions; do
15879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15880 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15881 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15887 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15891 if test -n "$ac_ct_NMEDIT"; then
15892 echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
15893 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15895 echo "$as_me:$LINENO: result
: no
" >&5
15896 echo "${ECHO_T}no
" >&6
15899 NMEDIT=$ac_ct_NMEDIT
15901 NMEDIT="$ac_cv_prog_NMEDIT"
15904 if test -n "$ac_tool_prefix"; then
15905 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15907 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15908 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15909 if test "${ac_cv_prog_LIPO+set}" = set; then
15910 echo $ECHO_N "(cached
) $ECHO_C" >&6
15912 if test -n "$LIPO"; then
15913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15923 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15931 LIPO=$ac_cv_prog_LIPO
15932 if test -n "$LIPO"; then
15933 echo "$as_me:$LINENO: result
: $LIPO" >&5
15934 echo "${ECHO_T}$LIPO" >&6
15936 echo "$as_me:$LINENO: result
: no
" >&5
15937 echo "${ECHO_T}no
" >&6
15941 if test -z "$ac_cv_prog_LIPO"; then
15943 # Extract the first word of "lipo
", so it can be a program name with args.
15944 set dummy lipo; ac_word=$2
15945 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15946 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15947 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15948 echo $ECHO_N "(cached
) $ECHO_C" >&6
15950 if test -n "$ac_ct_LIPO"; then
15951 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15957 test -z "$as_dir" && as_dir=.
15958 for ac_exec_ext in '' $ac_executable_extensions; do
15959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15960 ac_cv_prog_ac_ct_LIPO="lipo
"
15961 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15967 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15970 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15971 if test -n "$ac_ct_LIPO"; then
15972 echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
15973 echo "${ECHO_T}$ac_ct_LIPO" >&6
15975 echo "$as_me:$LINENO: result
: no
" >&5
15976 echo "${ECHO_T}no
" >&6
15981 LIPO="$ac_cv_prog_LIPO"
15984 if test -n "$ac_tool_prefix"; then
15985 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15986 set dummy ${ac_tool_prefix}otool; ac_word=$2
15987 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15988 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15989 if test "${ac_cv_prog_OTOOL+set}" = set; then
15990 echo $ECHO_N "(cached
) $ECHO_C" >&6
15992 if test -n "$OTOOL"; then
15993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16003 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16011 OTOOL=$ac_cv_prog_OTOOL
16012 if test -n "$OTOOL"; then
16013 echo "$as_me:$LINENO: result
: $OTOOL" >&5
16014 echo "${ECHO_T}$OTOOL" >&6
16016 echo "$as_me:$LINENO: result
: no
" >&5
16017 echo "${ECHO_T}no
" >&6
16021 if test -z "$ac_cv_prog_OTOOL"; then
16023 # Extract the first word of "otool
", so it can be a program name with args.
16024 set dummy otool; ac_word=$2
16025 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16026 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16027 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16028 echo $ECHO_N "(cached
) $ECHO_C" >&6
16030 if test -n "$ac_ct_OTOOL"; then
16031 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_ac_ct_OTOOL="otool
"
16041 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16047 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16050 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16051 if test -n "$ac_ct_OTOOL"; then
16052 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
16053 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16055 echo "$as_me:$LINENO: result
: no
" >&5
16056 echo "${ECHO_T}no
" >&6
16061 OTOOL="$ac_cv_prog_OTOOL"
16064 if test -n "$ac_tool_prefix"; then
16065 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16067 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16068 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16069 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16070 echo $ECHO_N "(cached
) $ECHO_C" >&6
16072 if test -n "$OTOOL64"; then
16073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16076 for as_dir in $PATH
16079 test -z "$as_dir" && as_dir=.
16080 for ac_exec_ext in '' $ac_executable_extensions; do
16081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16083 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16091 OTOOL64=$ac_cv_prog_OTOOL64
16092 if test -n "$OTOOL64"; then
16093 echo "$as_me:$LINENO: result
: $OTOOL64" >&5
16094 echo "${ECHO_T}$OTOOL64" >&6
16096 echo "$as_me:$LINENO: result
: no
" >&5
16097 echo "${ECHO_T}no
" >&6
16101 if test -z "$ac_cv_prog_OTOOL64"; then
16102 ac_ct_OTOOL64=$OTOOL64
16103 # Extract the first word of "otool64
", so it can be a program name with args.
16104 set dummy otool64; ac_word=$2
16105 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16106 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16107 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16108 echo $ECHO_N "(cached
) $ECHO_C" >&6
16110 if test -n "$ac_ct_OTOOL64"; then
16111 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16121 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16127 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16130 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16131 if test -n "$ac_ct_OTOOL64"; then
16132 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
16133 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16135 echo "$as_me:$LINENO: result
: no
" >&5
16136 echo "${ECHO_T}no
" >&6
16139 OTOOL64=$ac_ct_OTOOL64
16141 OTOOL64="$ac_cv_prog_OTOOL64"
16170 echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
16171 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6
16172 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16173 echo $ECHO_N "(cached
) $ECHO_C" >&6
16175 lt_cv_apple_cc_single_mod=no
16176 if test -z "${LT_MULTI_MODULE}"; then
16177 # By default we will add the -single_module flag. You can override
16178 # by either setting the environment variable LT_MULTI_MODULE
16179 # non-empty at configure time, or by adding -multi_module to the
16181 rm -rf libconftest.dylib*
16182 echo "int foo
(void
){return 1;}" > conftest.c
16183 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16184 -dynamiclib -Wl,-single_module conftest.c
" >&5
16185 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16186 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16188 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16189 lt_cv_apple_cc_single_mod=yes
16191 cat conftest.err >&5
16193 rm -rf libconftest.dylib*
16197 echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
16198 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16199 echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
16200 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6
16201 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16202 echo $ECHO_N "(cached
) $ECHO_C" >&6
16204 lt_cv_ld_exported_symbols_list=no
16205 save_LDFLAGS=$LDFLAGS
16206 echo "_main
" > conftest.sym
16207 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225 (eval $ac_link) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 lt_cv_ld_exported_symbols_list=yes
16247 echo "$as_me: failed program was
:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 lt_cv_ld_exported_symbols_list=no
16252 rm -f conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 LDFLAGS="$save_LDFLAGS"
16257 echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
16258 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16260 rhapsody* | darwin1.[012])
16261 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16264 darwin*) # darwin 5.x on
16265 # if running on 10.5 or later, the deployment target defaults
16266 # to the OS version, if on x86, and 10.4, the deployment
16267 # target defaults to 10.4. Don't you love it?
16268 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16269 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16270 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16278 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16279 _lt_dar_single_mod='$single_module'
16281 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16282 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16284 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16286 if test "$DSYMUTIL" != ":"; then
16287 _lt_dsymutil='~$DSYMUTIL $lib || :'
16295 for ac_header in dlfcn.h
16297 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16298 echo "$as_me:$LINENO: checking
for $ac_header" >&5
16299 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
16300 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
16301 echo $ECHO_N "(cached
) $ECHO_C" >&6
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <$ac_header>
16311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
16312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16318 (exit $ac_status); } >/dev/null; then
16319 if test -s conftest.err; then
16320 ac_cpp_err=$ac_c_preproc_warn_flag
16321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16328 if test -z "$ac_cpp_err"; then
16329 eval "$as_ac_Header=yes"
16331 echo "$as_me: failed program was
:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 eval "$as_ac_Header=no
"
16336 rm -f conftest.err conftest.$ac_ext
16338 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
16339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16357 enable_win32_dll=no
16360 # Check whether --enable-shared or --disable-shared was given.
16361 if test "${enable_shared+set}" = set; then
16362 enableval="$enable_shared"
16363 p=${PACKAGE-default}
16365 yes) enable_shared=yes ;;
16366 no) enable_shared=no ;;
16369 # Look at the argument we got. We use all the common list separators.
16370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16371 for pkg in $enableval; do
16373 if test "X
$pkg" = "X
$p"; then
16391 # Check whether --enable-static or --disable-static was given.
16392 if test "${enable_static+set}" = set; then
16393 enableval="$enable_static"
16394 p=${PACKAGE-default}
16396 yes) enable_static=yes ;;
16397 no) enable_static=no ;;
16400 # Look at the argument we got. We use all the common list separators.
16401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16402 for pkg in $enableval; do
16404 if test "X
$pkg" = "X
$p"; then
16423 # Check whether --with-pic or --without-pic was given.
16424 if test "${with_pic+set}" = set; then
16425 withval="$with_pic"
16426 pic_mode="$withval"
16431 test -z "$pic_mode" && pic_mode=default
16439 # Check whether --enable-fast-install or --disable-fast-install was given.
16440 if test "${enable_fast_install+set}" = set; then
16441 enableval="$enable_fast_install"
16442 p=${PACKAGE-default}
16444 yes) enable_fast_install=yes ;;
16445 no) enable_fast_install=no ;;
16447 enable_fast_install=no
16448 # Look at the argument we got. We use all the common list separators.
16449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16450 for pkg in $enableval; do
16452 if test "X
$pkg" = "X
$p"; then
16453 enable_fast_install=yes
16460 enable_fast_install=yes
16472 # This can be used to rebuild libtool when needed
16473 LIBTOOL_DEPS="$ltmain"
16475 # Always use our own libtool.
16476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16502 test -z "$LN_S" && LN_S="ln -s"
16517 if test -n "${ZSH_VERSION+set}" ; then
16518 setopt NO_GLOB_SUBST
16521 echo "$as_me:$LINENO: checking
for objdir
" >&5
16522 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16523 if test "${lt_cv_objdir+set}" = set; then
16524 echo $ECHO_N "(cached
) $ECHO_C" >&6
16526 rm -f .libs 2>/dev/null
16527 mkdir .libs 2>/dev/null
16528 if test -d .libs; then
16531 # MS-DOS does not allow filenames that begin with a dot.
16534 rmdir .libs 2>/dev/null
16536 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16537 echo "${ECHO_T}$lt_cv_objdir" >&6
16538 objdir=$lt_cv_objdir
16544 cat >>confdefs.h <<_ACEOF
16545 #define LT_OBJDIR "$lt_cv_objdir/"
16566 # AIX sometimes has problems with the GCC collect2 program. For some
16567 # reason, if we set the COLLECT_NAMES environment variable, the problems
16568 # vanish in a puff of smoke.
16569 if test "X
${COLLECT_NAMES+set}" != Xset; then
16571 export COLLECT_NAMES
16576 # Sed substitution that helps us do robust quoting. It backslashifies
16577 # metacharacters that are still active within double-quoted strings.
16578 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16580 # Same as above, but do not quote variable references.
16581 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16583 # Sed substitution to delay expansion of an escaped shell variable in a
16584 # double_quote_subst'ed string.
16585 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16587 # Sed substitution to delay expansion of an escaped single quote.
16588 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16590 # Sed substitution to avoid accidental globbing in evaled expressions
16591 no_glob_subst
='s/\*/\\\*/g'
16593 # Global variables:
16595 can_build_shared
=yes
16597 # All known linkers require a `.a' archive for static linking (except MSVC,
16598 # which needs '.lib').
16601 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16604 old_CFLAGS
="$CFLAGS"
16606 # Set sane defaults for various variables
16607 test -z "$CC" && CC
=cc
16608 test -z "$LTCC" && LTCC
=$CC
16609 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16610 test -z "$LD" && LD
=ld
16611 test -z "$ac_objext" && ac_objext
=o
16613 for cc_temp
in $compiler""; do
16615 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16616 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16621 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624 # Only perform the check for file, if the check method requires it
16625 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16626 case $deplibs_check_method in
16628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16629 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16630 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16639 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16640 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16641 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16642 for ac_dir
in $ac_dummy; do
16644 test -z "$ac_dir" && ac_dir
=.
16645 if test -f $ac_dir/${ac_tool_prefix}file; then
16646 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16647 if test -n "$file_magic_test_file"; then
16648 case $deplibs_check_method in
16650 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16651 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16652 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16653 $EGREP "$file_magic_regex" > /dev
/null
; then
16658 *** Warning: the command libtool uses to detect shared libraries,
16659 *** $file_magic_cmd, produces output that libtool cannot recognize.
16660 *** The result is that libtool may fail to recognize shared libraries
16661 *** as such. This will affect the creation of libtool libraries that
16662 *** depend on shared libraries, but programs linked with such libtool
16663 *** libraries will work regardless of this problem. Nevertheless, you
16664 *** may want to report the problem to your system manager and/or to
16665 *** bug-libtool@gnu.org
16675 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16680 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16681 if test -n "$MAGIC_CMD"; then
16682 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16683 echo "${ECHO_T}$MAGIC_CMD" >&6
16685 echo "$as_me:$LINENO: result: no" >&5
16686 echo "${ECHO_T}no" >&6
16693 if test -z "$lt_cv_path_MAGIC_CMD"; then
16694 if test -n "$ac_tool_prefix"; then
16695 echo "$as_me:$LINENO: checking for file" >&5
16696 echo $ECHO_N "checking for file... $ECHO_C" >&6
16697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16705 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16706 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16707 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16708 for ac_dir
in $ac_dummy; do
16710 test -z "$ac_dir" && ac_dir
=.
16711 if test -f $ac_dir/file; then
16712 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16713 if test -n "$file_magic_test_file"; then
16714 case $deplibs_check_method in
16716 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16717 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16718 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16719 $EGREP "$file_magic_regex" > /dev
/null
; then
16724 *** Warning: the command libtool uses to detect shared libraries,
16725 *** $file_magic_cmd, produces output that libtool cannot recognize.
16726 *** The result is that libtool may fail to recognize shared libraries
16727 *** as such. This will affect the creation of libtool libraries that
16728 *** depend on shared libraries, but programs linked with such libtool
16729 *** libraries will work regardless of this problem. Nevertheless, you
16730 *** may want to report the problem to your system manager and/or to
16731 *** bug-libtool@gnu.org
16741 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16746 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16747 if test -n "$MAGIC_CMD"; then
16748 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16749 echo "${ECHO_T}$MAGIC_CMD" >&6
16751 echo "$as_me:$LINENO: result: no" >&5
16752 echo "${ECHO_T}no" >&6
16765 # Use C for the default configuration in the libtool script
16769 ac_cpp
='$CPP $CPPFLAGS'
16770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16775 # Source file extension for C test sources.
16778 # Object file extension for compiled C test sources.
16782 # Code to be used in simple compile tests
16783 lt_simple_compile_test_code
="int some_variable = 0;"
16785 # Code to be used in simple link tests
16786 lt_simple_link_test_code
='int main(){return(0);}'
16794 # If no C compiler was specified, use CC.
16797 # If no C compiler flags were specified, use CFLAGS.
16798 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16800 # Allow CC to be a program name with arguments.
16803 # Save the default compiler, since it gets overwritten when the other
16804 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16805 compiler_DEFAULT
=$CC
16807 # save warnings/boilerplate of simple test code
16808 ac_outfile
=conftest.
$ac_objext
16809 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16810 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16811 _lt_compiler_boilerplate
=`cat conftest.err`
16814 ac_outfile
=conftest.
$ac_objext
16815 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16816 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16817 _lt_linker_boilerplate
=`cat conftest.err`
16822 ## There is no encapsulation within the following macros, do not change
16823 ## the running order or otherwise move them around unless you know exactly
16824 ## what you are doing...
16825 if test -n "$compiler"; then
16827 lt_prog_compiler_no_builtin_flag
=
16829 if test "$GCC" = yes; then
16830 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16832 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16833 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16834 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 lt_cv_prog_compiler_rtti_exceptions
=no
16838 ac_outfile
=conftest.
$ac_objext
16839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16840 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16841 # Insert the option either (1) after the last *FLAGS variable, or
16842 # (2) before a word containing "conftest.", or (3) at the end.
16843 # Note that $ac_compile itself does not contain backslashes and begins
16844 # with a dollar sign (not a hyphen), so the echo should work correctly.
16845 # The option is referenced via a variable to avoid confusing sed.
16846 lt_compile
=`echo "$ac_compile" | $SED \
16847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849 -e 's:$: $lt_compiler_flag:'`
16850 (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851 (eval "$lt_compile" 2>conftest.err
)
16853 cat conftest.err
>&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 if (exit $ac_status) && test -s "$ac_outfile"; then
16856 # The compiler can only warn and ignore the option if not recognized
16857 # So say no if there are warnings other than the usual output.
16858 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16859 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16860 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16861 lt_cv_prog_compiler_rtti_exceptions
=yes
16867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16868 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16870 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16871 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16883 lt_prog_compiler_wl
=
16884 lt_prog_compiler_pic
=
16885 lt_prog_compiler_static
=
16887 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16890 if test "$GCC" = yes; then
16891 lt_prog_compiler_wl
='-Wl,'
16892 lt_prog_compiler_static
='-static'
16896 # All AIX code is PIC.
16897 if test "$host_cpu" = ia64
; then
16898 # AIX 5 now supports IA64 processor
16899 lt_prog_compiler_static
='-Bstatic'
16906 # see comment about AmigaOS4 .so support
16907 lt_prog_compiler_pic
='-fPIC'
16910 # FIXME: we need at least 68020 code to build shared libraries, but
16911 # adding the `-m68020' flag to GCC prevents building anything better,
16913 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16918 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16919 # PIC is the default for these OSes.
16922 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
16923 # This hack is so that the source file can tell whether it is being
16924 # built for inclusion in a dll (and should export symbols for example).
16925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16926 # (--disable-auto-import) libraries
16927 lt_prog_compiler_pic
='-DDLL_EXPORT'
16930 darwin
* | rhapsody
*)
16931 # PIC is the default on this platform
16932 # Common symbols not allowed in MH_DYLIB files
16933 lt_prog_compiler_pic
='-fno-common'
16937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16939 # sets the default TLS model and affects inlining.
16945 lt_prog_compiler_pic
='-fPIC'
16951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16952 # Instead, we relocate shared libraries at runtime.
16956 # Just because we use GCC doesn't mean we suddenly get shared libraries
16957 # on systems that don't support them.
16958 lt_prog_compiler_can_build_shared
=no
16963 # QNX uses GNU C++, but need to define -shared option too, otherwise
16964 # it will coredump.
16965 lt_prog_compiler_pic
='-fPIC -shared'
16969 if test -d /usr
/nec
; then
16970 lt_prog_compiler_pic
=-Kconform_pic
16975 lt_prog_compiler_pic
='-fPIC'
16979 # PORTME Check for flag to pass linker flags through the system compiler.
16982 lt_prog_compiler_wl
='-Wl,'
16983 if test "$host_cpu" = ia64
; then
16984 # AIX 5 now supports IA64 processor
16985 lt_prog_compiler_static
='-Bstatic'
16987 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16991 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
16992 # This hack is so that the source file can tell whether it is being
16993 # built for inclusion in a dll (and should export symbols for example).
16994 lt_prog_compiler_pic
='-DDLL_EXPORT'
16997 hpux9
* | hpux10
* | hpux11
*)
16998 lt_prog_compiler_wl
='-Wl,'
16999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17000 # not for PA HP-UX.
17006 lt_prog_compiler_pic
='+Z'
17009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17010 lt_prog_compiler_static
='${wl}-a ${wl}archive'
17013 irix5
* | irix6
* | nonstopux
*)
17014 lt_prog_compiler_wl
='-Wl,'
17015 # PIC (with -KPIC) is the default.
17016 lt_prog_compiler_static
='-non_shared'
17019 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17020 case $cc_basename in
17021 # old Intel for x86_64 which still supported -KPIC.
17023 lt_prog_compiler_wl
='-Wl,'
17024 lt_prog_compiler_pic
='-KPIC'
17025 lt_prog_compiler_static
='-static'
17027 # icc used to be incompatible with GCC.
17028 # ICC 10 doesn't accept -KPIC any more.
17030 lt_prog_compiler_wl
='-Wl,'
17031 lt_prog_compiler_pic
='-fPIC'
17032 lt_prog_compiler_static
='-static'
17034 # Lahey Fortran 8.1.
17036 lt_prog_compiler_wl
='-Wl,'
17037 lt_prog_compiler_pic
='--shared'
17038 lt_prog_compiler_static
='--static'
17040 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17041 # Portland Group compilers (*not* the Pentium gcc compiler,
17042 # which looks to be a dead project)
17043 lt_prog_compiler_wl
='-Wl,'
17044 lt_prog_compiler_pic
='-fpic'
17045 lt_prog_compiler_static
='-Bstatic'
17048 lt_prog_compiler_wl
='-Wl,'
17049 # All Alpha code is PIC.
17050 lt_prog_compiler_static
='-non_shared'
17053 # IBM XL C 8.0/Fortran 10.1 on PPC
17054 lt_prog_compiler_wl
='-Wl,'
17055 lt_prog_compiler_pic
='-qpic'
17056 lt_prog_compiler_static
='-qstaticlink'
17059 case `$CC -V 2>&1 | sed 5q` in
17062 lt_prog_compiler_pic
='-KPIC'
17063 lt_prog_compiler_static
='-Bstatic'
17064 lt_prog_compiler_wl
='-Wl,'
17067 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17068 lt_prog_compiler_pic
='-KPIC'
17069 lt_prog_compiler_static
='-Bstatic'
17070 lt_prog_compiler_wl
=''
17078 lt_prog_compiler_pic
='-KPIC'
17079 lt_prog_compiler_static
='-Bstatic'
17083 # QNX uses GNU C++, but need to define -shared option too, otherwise
17084 # it will coredump.
17085 lt_prog_compiler_pic
='-fPIC -shared'
17088 osf3
* | osf4
* | osf5
*)
17089 lt_prog_compiler_wl
='-Wl,'
17090 # All OSF/1 code is PIC.
17091 lt_prog_compiler_static
='-non_shared'
17095 lt_prog_compiler_static
='-non_shared'
17099 lt_prog_compiler_pic
='-KPIC'
17100 lt_prog_compiler_static
='-Bstatic'
17101 case $cc_basename in
17102 f77
* | f90
* | f95
*)
17103 lt_prog_compiler_wl
='-Qoption ld ';;
17105 lt_prog_compiler_wl
='-Wl,';;
17110 lt_prog_compiler_wl
='-Qoption ld '
17111 lt_prog_compiler_pic
='-PIC'
17112 lt_prog_compiler_static
='-Bstatic'
17115 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17116 lt_prog_compiler_wl
='-Wl,'
17117 lt_prog_compiler_pic
='-KPIC'
17118 lt_prog_compiler_static
='-Bstatic'
17122 if test -d /usr
/nec
;then
17123 lt_prog_compiler_pic
='-Kconform_pic'
17124 lt_prog_compiler_static
='-Bstatic'
17128 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17129 lt_prog_compiler_wl
='-Wl,'
17130 lt_prog_compiler_pic
='-KPIC'
17131 lt_prog_compiler_static
='-Bstatic'
17135 lt_prog_compiler_wl
='-Wl,'
17136 lt_prog_compiler_can_build_shared
=no
17140 lt_prog_compiler_pic
='-pic'
17141 lt_prog_compiler_static
='-Bstatic'
17145 lt_prog_compiler_can_build_shared
=no
17151 # For platforms which do not support PIC, -DPIC is meaningless:
17153 lt_prog_compiler_pic
=
17156 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
17159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17168 # Check to make sure the PIC flag actually works.
17170 if test -n "$lt_prog_compiler_pic"; then
17171 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17172 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17173 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 lt_cv_prog_compiler_pic_works
=no
17177 ac_outfile
=conftest.
$ac_objext
17178 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17179 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
17180 # Insert the option either (1) after the last *FLAGS variable, or
17181 # (2) before a word containing "conftest.", or (3) at the end.
17182 # Note that $ac_compile itself does not contain backslashes and begins
17183 # with a dollar sign (not a hyphen), so the echo should work correctly.
17184 # The option is referenced via a variable to avoid confusing sed.
17185 lt_compile
=`echo "$ac_compile" | $SED \
17186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17188 -e 's:$: $lt_compiler_flag:'`
17189 (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
17190 (eval "$lt_compile" 2>conftest.err
)
17192 cat conftest.err
>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 if (exit $ac_status) && test -s "$ac_outfile"; then
17195 # The compiler can only warn and ignore the option if not recognized
17196 # So say no if there are warnings other than the usual output.
17197 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17198 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17199 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17200 lt_cv_prog_compiler_pic_works
=yes
17206 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17207 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17209 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
17210 case $lt_prog_compiler_pic in
17212 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
17215 lt_prog_compiler_pic
=
17216 lt_prog_compiler_can_build_shared
=no
17227 # Check to make sure the static flag actually works.
17229 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
17230 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17232 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 lt_cv_prog_compiler_static_works
=no
17236 save_LDFLAGS
="$LDFLAGS"
17237 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17238 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17239 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17240 # The linker can only warn and ignore the option if not recognized
17241 # So say no if there are warnings
17242 if test -s conftest.err
; then
17243 # Append any errors to the config.log.
17244 cat conftest.err
1>&5
17245 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17246 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17247 if diff conftest.exp conftest.er2
>/dev
/null
; then
17248 lt_cv_prog_compiler_static_works
=yes
17251 lt_cv_prog_compiler_static_works
=yes
17255 LDFLAGS
="$save_LDFLAGS"
17258 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17259 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17261 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
17264 lt_prog_compiler_static
=
17273 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17274 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 lt_cv_prog_compiler_c_o
=no
17279 $RM -r conftest
2>/dev
/null
17283 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17285 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17286 # Insert the option either (1) after the last *FLAGS variable, or
17287 # (2) before a word containing "conftest.", or (3) at the end.
17288 # Note that $ac_compile itself does not contain backslashes and begins
17289 # with a dollar sign (not a hyphen), so the echo should work correctly.
17290 lt_compile
=`echo "$ac_compile" | $SED \
17291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17293 -e 's:$: $lt_compiler_flag:'`
17294 (eval echo "\"\$as_me:17294: $lt_compile\"" >&5)
17295 (eval "$lt_compile" 2>out
/conftest.err
)
17297 cat out
/conftest.err
>&5
17298 echo "$as_me:17298: \$? = $ac_status" >&5
17299 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17301 # The compiler can only warn and ignore the option if not recognized
17302 # So say no if there are warnings
17303 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17304 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17305 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17306 lt_cv_prog_compiler_c_o
=yes
17311 # SGI C++ compiler will create directory out/ii_files/ for
17312 # template instantiation
17313 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17314 $RM out
/* && rmdir out
17320 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17321 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17328 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 lt_cv_prog_compiler_c_o
=no
17334 $RM -r conftest
2>/dev
/null
17338 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17340 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17341 # Insert the option either (1) after the last *FLAGS variable, or
17342 # (2) before a word containing "conftest.", or (3) at the end.
17343 # Note that $ac_compile itself does not contain backslashes and begins
17344 # with a dollar sign (not a hyphen), so the echo should work correctly.
17345 lt_compile
=`echo "$ac_compile" | $SED \
17346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348 -e 's:$: $lt_compiler_flag:'`
17349 (eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350 (eval "$lt_compile" 2>out
/conftest.err
)
17352 cat out
/conftest.err
>&5
17353 echo "$as_me:17353: \$? = $ac_status" >&5
17354 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17356 # The compiler can only warn and ignore the option if not recognized
17357 # So say no if there are warnings
17358 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17359 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17360 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17361 lt_cv_prog_compiler_c_o
=yes
17366 # SGI C++ compiler will create directory out/ii_files/ for
17367 # template instantiation
17368 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17369 $RM out
/* && rmdir out
17375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17381 hard_links
="nottested"
17382 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
17383 # do not overwrite the value of need_locks provided by the user
17384 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17385 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17388 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17390 ln conftest.a conftest.b
2>&5 || hard_links
=no
17391 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17392 echo "$as_me:$LINENO: result: $hard_links" >&5
17393 echo "${ECHO_T}$hard_links" >&6
17394 if test "$hard_links" = no
; then
17395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17396 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17412 allow_undefined_flag
=
17413 always_export_symbols
=no
17415 archive_expsym_cmds
=
17416 compiler_needs_object
=no
17417 enable_shared_with_static_runtimes
=no
17418 export_dynamic_flag_spec
=
17419 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17420 hardcode_automatic
=no
17422 hardcode_direct_absolute
=no
17423 hardcode_libdir_flag_spec
=
17424 hardcode_libdir_flag_spec_ld
=
17425 hardcode_libdir_separator
=
17426 hardcode_minus_L
=no
17427 hardcode_shlibpath_var
=unsupported
17429 link_all_deplibs
=unknown
17431 module_expsym_cmds
=
17432 old_archive_from_new_cmds
=
17433 old_archive_from_expsyms_cmds
=
17434 thread_safe_flag_spec
=
17435 whole_archive_flag_spec
=
17436 # include_expsyms should be a list of space-separated symbols to be *always*
17437 # included in the symbol list
17439 # exclude_expsyms can be an extended regexp of symbols to exclude
17440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17442 # as well as any symbol that contains `d'.
17443 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17445 # platforms (ab)use it in PIC code, but their linkers get confused if
17446 # the symbol is explicitly referenced. Since portable code cannot
17447 # rely on this symbol name, it's probably fine to never include it in
17448 # preloaded symbol tables.
17449 # Exclude shared library initialization/finalization symbols.
17450 extract_expsyms_cmds
=
17453 cygwin
* | mingw
* | pw32
* | cegcc
*)
17454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17455 # When not using gcc, we currently assume that we are using
17456 # Microsoft Visual C++.
17457 if test "$GCC" != yes; then
17462 # we just hope/assume this is gcc and not c89 (= MSVC++)
17471 if test "$with_gnu_ld" = yes; then
17472 # If archive_cmds runs LD, not CC, wlarc should be empty
17475 # Set some defaults for GNU ld with shared library support. These
17476 # are reset later if shared libraries are not supported. Putting them
17477 # here allows them to be overridden if necessary.
17478 runpath_var
=LD_RUN_PATH
17479 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17480 export_dynamic_flag_spec
='${wl}--export-dynamic'
17481 # ancient GNU ld didn't support --whole-archive et. al.
17482 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
17483 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17485 whole_archive_flag_spec
=
17487 supports_anon_versioning
=no
17488 case `$LD -v 2>&1` in
17489 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17490 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17491 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17492 *\
2.11.
*) ;; # other 2.11 versions
17493 *) supports_anon_versioning
=yes ;;
17496 # See if GNU ld supports shared libraries.
17499 # On AIX/PPC, the GNU linker is very broken
17500 if test "$host_cpu" != ia64
; then
17504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505 *** to be unable to reliably create shared libraries on AIX.
17506 *** Therefore, libtool is disabling shared libraries support. If you
17507 *** really care for shared libraries, you may want to modify your PATH
17508 *** so that a non-GNU linker is found, and then restart.
17517 # see comment about AmigaOS4 .so support
17518 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519 archive_expsym_cmds
=''
17522 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)'
17523 hardcode_libdir_flag_spec
='-L$libdir'
17524 hardcode_minus_L
=yes
17530 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17531 allow_undefined_flag
=unsupported
17532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17533 # support --undefined. This deserves some investigation. FIXME
17534 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17540 cygwin
* | mingw
* | pw32
* | cegcc
*)
17541 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17542 # as there is no search path for DLLs.
17543 hardcode_libdir_flag_spec
='-L$libdir'
17544 allow_undefined_flag
=unsupported
17545 always_export_symbols
=no
17546 enable_shared_with_static_runtimes
=yes
17547 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17549 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17550 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17551 # If the export-symbols file already is a .def file (1st line
17552 # is EXPORTS), use it as is; otherwise, prepend...
17553 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17554 cp $export_symbols $output_objdir/$soname.def;
17556 echo EXPORTS > $output_objdir/$soname.def;
17557 cat $export_symbols >> $output_objdir/$soname.def;
17559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17567 hardcode_shlibpath_var
=no
17568 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17569 export_dynamic_flag_spec
='${wl}-E'
17570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17571 # Instead, shared libraries are loaded at an image base (0x10000000 by
17572 # default) and relocated if they conflict, which is a slow very memory
17573 # consuming and fragmenting process. To avoid this, we pick a random,
17574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17576 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17577 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'
17580 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17582 if test "$host_os" = linux-dietlibc
; then
17583 case $cc_basename in
17584 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17587 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17588 && test "$tmp_diet" = no
17591 tmp_sharedflag
='-shared'
17592 case $cc_basename,$host_cpu in
17593 pgcc
*) # Portland Group C compiler
17594 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'
17595 tmp_addflag
=' $pic_flag'
17597 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17598 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'
17599 tmp_addflag
=' $pic_flag -Mnomain' ;;
17600 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17601 tmp_addflag
=' -i_dynamic' ;;
17602 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17603 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17604 ifc
* | ifort
*) # Intel Fortran compiler
17605 tmp_addflag
=' -nofor_main' ;;
17606 lf95
*) # Lahey Fortran 8.1
17607 whole_archive_flag_spec
=
17608 tmp_sharedflag
='--shared' ;;
17609 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17610 tmp_sharedflag
='-qmkshrobj'
17613 case `$CC -V 2>&1 | sed 5q` in
17614 *Sun\ C
*) # Sun C 5.9
17615 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'
17616 compiler_needs_object
=yes
17617 tmp_sharedflag
='-G' ;;
17618 *Sun\ F
*) # Sun Fortran 8.3
17619 tmp_sharedflag
='-G' ;;
17621 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 if test "x$supports_anon_versioning" = xyes
; then
17624 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17626 echo "local: *; };" >> $output_objdir/$libname.ver~
17627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17630 case $cc_basename in
17632 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17633 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17634 hardcode_libdir_flag_spec
=
17635 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17636 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17637 if test "x$supports_anon_versioning" = xyes
; then
17638 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17640 echo "local: *; };" >> $output_objdir/$libname.ver~
17641 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17651 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17652 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17655 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17656 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17661 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17666 *** create shared libraries on Solaris systems. Therefore, libtool
17667 *** is disabling shared libraries support. We urge you to upgrade GNU
17668 *** binutils to release 2.9.1 or newer. Another option is to modify
17669 *** your PATH or compiler configuration so that the native linker is
17670 *** used, and then restart.
17673 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17674 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17675 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17681 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17682 case `$LD -v 2>&1` in
17683 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17688 *** reliably create shared libraries on SCO systems. Therefore, libtool
17689 *** is disabling shared libraries support. We urge you to upgrade GNU
17690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17691 *** your PATH or compiler configuration so that the native linker is
17692 *** used, and then restart.
17697 # For security reasons, it is highly recommended that you always
17698 # use absolute paths for naming shared libraries, and exclude the
17699 # DT_RUNPATH tag from executables and libraries. But doing so
17700 # requires that you compile everything twice, which is a pain.
17701 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17702 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17703 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17713 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_direct
=yes
17716 hardcode_shlibpath_var
=no
17720 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17721 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17722 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17729 if test "$ld_shlibs" = no
; then
17731 hardcode_libdir_flag_spec
=
17732 export_dynamic_flag_spec
=
17733 whole_archive_flag_spec
=
17736 # PORTME fill in a description of your system's linker (not GNU ld)
17739 allow_undefined_flag
=unsupported
17740 always_export_symbols
=yes
17741 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'
17742 # Note: this linker hardcodes the directories in LIBPATH if there
17743 # are no directories specified by -L.
17744 hardcode_minus_L
=yes
17745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17746 # Neither direct hardcoding nor static linking is supported with a
17748 hardcode_direct
=unsupported
17753 if test "$host_cpu" = ia64
; then
17754 # On IA64, the linker does run time linking by default, so we don't
17755 # have to do anything special.
17756 aix_use_runtimelinking
=no
17757 exp_sym_flag
='-Bexport'
17760 # If we're using GNU nm, then we don't want the "-C" option.
17761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17762 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17763 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'
17765 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'
17767 aix_use_runtimelinking
=no
17769 # Test if we are trying to use run time linking or normal
17770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17771 # need to do runtime linking.
17772 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17773 for ld_flag
in $LDFLAGS; do
17774 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17775 aix_use_runtimelinking
=yes
17782 exp_sym_flag
='-bexport'
17783 no_entry_flag
='-bnoentry'
17786 # When large executables or shared objects are built, AIX ld can
17787 # have problems creating the table of contents. If linking a library
17788 # or program results in "error TOC overflow" add -mminimal-toc to
17789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17793 hardcode_direct
=yes
17794 hardcode_direct_absolute
=yes
17795 hardcode_libdir_separator
=':'
17796 link_all_deplibs
=yes
17797 file_list_spec
='${wl}-f,'
17799 if test "$GCC" = yes; then
17800 case $host_os in aix4.
[012]|aix4.
[012].
*)
17801 # We only want to do this on AIX 4.2 and lower, the check
17802 # below for broken collect2 doesn't work under 4.3+
17803 collect2name
=`${CC} -print-prog-name=collect2`
17804 if test -f "$collect2name" &&
17805 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17807 # We have reworked collect2
17810 # We have old collect2
17811 hardcode_direct
=unsupported
17812 # It fails to find uninstalled libraries when the uninstalled
17813 # path is not listed in the libpath. Setting hardcode_minus_L
17814 # to unsupported forces relinking
17815 hardcode_minus_L
=yes
17816 hardcode_libdir_flag_spec
='-L$libdir'
17817 hardcode_libdir_separator
=
17821 shared_flag
='-shared'
17822 if test "$aix_use_runtimelinking" = yes; then
17823 shared_flag
="$shared_flag "'${wl}-G'
17827 if test "$host_cpu" = ia64
; then
17828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17829 # chokes on -Wl,-G. The following line is correct:
17832 if test "$aix_use_runtimelinking" = yes; then
17833 shared_flag
='${wl}-G'
17835 shared_flag
='${wl}-bM:SRE'
17840 export_dynamic_flag_spec
='${wl}-bexpall'
17841 # It seems that -bexpall does not export symbols beginning with
17842 # underscore (_), so it is better to generate a list of symbols to export.
17843 always_export_symbols
=yes
17844 if test "$aix_use_runtimelinking" = yes; then
17845 # Warning - without using the other runtime loading flags (-brtl),
17846 # -berok will link without error, but may produce a broken library.
17847 allow_undefined_flag
='-berok'
17848 # Determine the default libpath from the value encoded in an
17849 # empty executable.
17850 cat >conftest.
$ac_ext <<_ACEOF
17853 cat confdefs.h
>>conftest.
$ac_ext
17854 cat >>conftest.
$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17865 rm -f conftest.
$ac_objext conftest
$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1
>conftest.err
17871 cat conftest.err
>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try
='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try
='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17888 lt_aix_libpath_sed
='
17889 /Import File Strings/,/^$/ {
17895 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17896 # Check for a 64-bit object if we didn't find anything.
17897 if test -z "$aix_libpath"; then
17898 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.
$ac_ext >&5
17905 rm -f conftest.err conftest.
$ac_objext \
17906 conftest
$ac_exeext conftest.
$ac_ext
17907 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17909 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17910 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"
17912 if test "$host_cpu" = ia64
; then
17913 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17914 allow_undefined_flag
="-z nodefs"
17915 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"
17917 # Determine the default libpath from the value encoded in an
17918 # empty executable.
17919 cat >conftest.
$ac_ext <<_ACEOF
17922 cat confdefs.h
>>conftest.
$ac_ext
17923 cat >>conftest.
$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17934 rm -f conftest.
$ac_objext conftest
$ac_exeext
17935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17936 (eval $ac_link) 2>conftest.er1
17938 grep -v '^ *+' conftest.er1
>conftest.err
17940 cat conftest.err
>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try
='test -z "$ac_c_werror_flag"
17944 || test ! -s conftest.err'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try
='test -s conftest$ac_exeext'
17951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952 (eval $ac_try) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17957 lt_aix_libpath_sed
='
17958 /Import File Strings/,/^$/ {
17964 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 # Check for a 64-bit object if we didn't find anything.
17966 if test -z "$aix_libpath"; then
17967 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.
$ac_ext >&5
17974 rm -f conftest.err conftest.
$ac_objext \
17975 conftest
$ac_exeext conftest.
$ac_ext
17976 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17978 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17979 # Warning - without using the other run time loading flags,
17980 # -berok will link without error, but may produce a broken library.
17981 no_undefined_flag
=' ${wl}-bernotok'
17982 allow_undefined_flag
=' ${wl}-berok'
17983 # Exported symbols can be pulled into shared objects from archives
17984 whole_archive_flag_spec
='$convenience'
17985 archive_cmds_need_lc
=yes
17986 # This is similar to how AIX traditionally builds its shared libraries.
17987 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'
17995 # see comment about AmigaOS4 .so support
17996 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17997 archive_expsym_cmds
=''
18000 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)'
18001 hardcode_libdir_flag_spec
='-L$libdir'
18002 hardcode_minus_L
=yes
18008 export_dynamic_flag_spec
=-rdynamic
18011 cygwin
* | mingw
* | pw32
* | cegcc
*)
18012 # When not using gcc, we currently assume that we are using
18013 # Microsoft Visual C++.
18014 # hardcode_libdir_flag_spec is actually meaningless, as there is
18015 # no search path for DLLs.
18016 hardcode_libdir_flag_spec
=' '
18017 allow_undefined_flag
=unsupported
18018 # Tell ltmain to make .lib files, not .a files.
18020 # Tell ltmain to make .dll files, not .so files.
18022 # FIXME: Setting linknames here is a bad hack.
18023 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18024 # The linker will automatically build a .lib file if we build a DLL.
18025 old_archive_from_new_cmds
='true'
18026 # FIXME: Should let the user specify the lib program.
18027 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18028 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18029 enable_shared_with_static_runtimes
=yes
18032 darwin
* | rhapsody
*)
18035 archive_cmds_need_lc
=no
18037 hardcode_automatic
=yes
18038 hardcode_shlibpath_var
=unsupported
18039 whole_archive_flag_spec
=''
18040 link_all_deplibs
=yes
18041 allow_undefined_flag
="$_lt_dar_allow_undefined"
18042 case $cc_basename in
18043 ifort
*) _lt_dar_can_shared
=yes ;;
18044 *) _lt_dar_can_shared
=$GCC ;;
18046 if test "$_lt_dar_can_shared" = "yes"; then
18047 output_verbose_link_cmd
=echo
18048 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18049 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18050 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18051 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18060 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_libdir_flag_spec
='-L$libdir'
18062 hardcode_shlibpath_var
=no
18069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18070 # support. Future versions do this automatically, but an explicit c++rt0.o
18071 # does not break anything, and helps significantly (at the cost of a little
18074 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18075 hardcode_libdir_flag_spec
='-R$libdir'
18076 hardcode_direct
=yes
18077 hardcode_shlibpath_var
=no
18080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18082 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_direct
=yes
18084 hardcode_minus_L
=yes
18085 hardcode_shlibpath_var
=no
18088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18089 freebsd
* | dragonfly
*)
18090 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18091 hardcode_libdir_flag_spec
='-R$libdir'
18092 hardcode_direct
=yes
18093 hardcode_shlibpath_var
=no
18097 if test "$GCC" = yes; then
18098 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'
18100 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'
18102 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18103 hardcode_libdir_separator
=:
18104 hardcode_direct
=yes
18106 # hardcode_minus_L: Not really in the search PATH,
18107 # but as the default location of the library.
18108 hardcode_minus_L
=yes
18109 export_dynamic_flag_spec
='${wl}-E'
18113 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18114 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18118 if test "$with_gnu_ld" = no
; then
18119 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18120 hardcode_libdir_flag_spec_ld
='+b $libdir'
18121 hardcode_libdir_separator
=:
18122 hardcode_direct
=yes
18123 hardcode_direct_absolute
=yes
18124 export_dynamic_flag_spec
='${wl}-E'
18125 # hardcode_minus_L: Not really in the search PATH,
18126 # but as the default location of the library.
18127 hardcode_minus_L
=yes
18132 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18135 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18147 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18153 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18157 if test "$with_gnu_ld" = no
; then
18158 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18159 hardcode_libdir_separator
=:
18164 hardcode_shlibpath_var
=no
18167 hardcode_direct
=yes
18168 hardcode_direct_absolute
=yes
18169 export_dynamic_flag_spec
='${wl}-E'
18171 # hardcode_minus_L: Not really in the search PATH,
18172 # but as the default location of the library.
18173 hardcode_minus_L
=yes
18179 irix5
* | irix6
* | nonstopux
*)
18180 if test "$GCC" = yes; then
18181 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'
18182 # Try to use the -exported_symbol ld option, if it does not
18183 # work, assume that -exports_file does not work either and
18184 # implicitly export all symbols.
18185 save_LDFLAGS
="$LDFLAGS"
18186 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18187 cat >conftest.
$ac_ext <<_ACEOF
18190 rm -f conftest.
$ac_objext conftest
$ac_exeext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18192 (eval $ac_link) 2>conftest.er1
18194 grep -v '^ *+' conftest.er1
>conftest.err
18196 cat conftest.err
>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try
='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try
='test -s conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 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'
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.
$ac_ext >&5
18219 rm -f conftest.err conftest.
$ac_objext \
18220 conftest
$ac_exeext conftest.
$ac_ext
18221 LDFLAGS
="$save_LDFLAGS"
18223 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'
18224 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'
18226 archive_cmds_need_lc
='no'
18227 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18228 hardcode_libdir_separator
=:
18230 link_all_deplibs
=yes
18234 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18235 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18237 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18239 hardcode_libdir_flag_spec
='-R$libdir'
18240 hardcode_direct
=yes
18241 hardcode_shlibpath_var
=no
18245 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246 hardcode_direct
=yes
18247 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18248 hardcode_libdir_separator
=:
18249 hardcode_shlibpath_var
=no
18256 if test -f /usr
/libexec
/ld.so
; then
18257 hardcode_direct
=yes
18258 hardcode_shlibpath_var
=no
18259 hardcode_direct_absolute
=yes
18260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18261 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18262 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18263 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18264 export_dynamic_flag_spec
='${wl}-E'
18267 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18268 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18269 hardcode_libdir_flag_spec
='-R$libdir'
18272 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18273 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18283 hardcode_libdir_flag_spec
='-L$libdir'
18284 hardcode_minus_L
=yes
18285 allow_undefined_flag
=unsupported
18286 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'
18287 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18291 if test "$GCC" = yes; then
18292 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18293 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'
18295 allow_undefined_flag
=' -expect_unresolved \*'
18296 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'
18298 archive_cmds_need_lc
='no'
18299 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18300 hardcode_libdir_separator
=:
18303 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18304 if test "$GCC" = yes; then
18305 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18306 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'
18307 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18309 allow_undefined_flag
=' -expect_unresolved \*'
18310 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'
18311 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~
18312 $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'
18314 # Both c and cxx compiler support -rpath directly
18315 hardcode_libdir_flag_spec
='-rpath $libdir'
18317 archive_cmds_need_lc
='no'
18318 hardcode_libdir_separator
=:
18322 no_undefined_flag
=' -z defs'
18323 if test "$GCC" = yes; then
18325 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18326 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18327 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18329 case `$CC -V 2>&1` in
18332 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18333 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18338 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18339 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18340 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18344 hardcode_libdir_flag_spec
='-R$libdir'
18345 hardcode_shlibpath_var
=no
18347 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18349 # The compiler driver will combine and reorder linker options,
18350 # but understands `-z linker_flag'. GCC discards it without `$wl',
18351 # but is careful enough not to reorder.
18352 # Supported since Solaris 2.6 (maybe 2.5.1?)
18353 if test "$GCC" = yes; then
18354 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18356 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18360 link_all_deplibs
=yes
18364 if test "x$host_vendor" = xsequent
; then
18365 # Use $CC to link under sequent, because it throws in some extra .o
18366 # files that make .init and .fini sections work.
18367 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18371 hardcode_libdir_flag_spec
='-L$libdir'
18372 hardcode_direct
=yes
18373 hardcode_minus_L
=yes
18374 hardcode_shlibpath_var
=no
18378 case $host_vendor in
18380 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18381 hardcode_direct
=yes # is this really true???
18384 ## LD is ld it makes a PLAMLIB
18385 ## CC just makes a GrossModule.
18386 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18387 reload_cmds
='$CC -r -o $output$reload_objs'
18391 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18395 runpath_var
='LD_RUN_PATH'
18396 hardcode_shlibpath_var
=no
18400 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401 hardcode_shlibpath_var
=no
18402 export_dynamic_flag_spec
='-Bexport'
18406 if test -d /usr
/nec
; then
18407 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18408 hardcode_shlibpath_var
=no
18409 runpath_var
=LD_RUN_PATH
18410 hardcode_runpath_var
=yes
18415 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18416 no_undefined_flag
='${wl}-z,text'
18417 archive_cmds_need_lc
=no
18418 hardcode_shlibpath_var
=no
18419 runpath_var
='LD_RUN_PATH'
18421 if test "$GCC" = yes; then
18422 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18423 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18425 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18426 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18430 sysv5
* | sco3.2v5
* | sco5v6
*)
18431 # Note: We can NOT use -z defs as we might desire, because we do not
18432 # link with -lc, and that would cause any symbols used from libc to
18433 # always be unresolved, which means just about no library would
18434 # ever link correctly. If we're not using GNU ld we use -z text
18435 # though, which does catch some bad symbols but isn't as heavy-handed
18437 no_undefined_flag
='${wl}-z,text'
18438 allow_undefined_flag
='${wl}-z,nodefs'
18439 archive_cmds_need_lc
=no
18440 hardcode_shlibpath_var
=no
18441 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18442 hardcode_libdir_separator
=':'
18443 link_all_deplibs
=yes
18444 export_dynamic_flag_spec
='${wl}-Bexport'
18445 runpath_var
='LD_RUN_PATH'
18447 if test "$GCC" = yes; then
18448 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18449 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18451 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18452 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18458 hardcode_libdir_flag_spec
='-L$libdir'
18459 hardcode_shlibpath_var
=no
18467 if test x
$host_vendor = xsni
; then
18469 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18470 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18476 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18477 echo "${ECHO_T}$ld_shlibs" >&6
18478 test "$ld_shlibs" = no
&& can_build_shared
=no
18480 with_gnu_ld
=$with_gnu_ld
18497 # Do we need to explicitly link libc?
18499 case "x$archive_cmds_need_lc" in
18501 # Assume -lc should be added
18502 archive_cmds_need_lc
=yes
18504 if test "$enable_shared" = yes && test "$GCC" = yes; then
18505 case $archive_cmds in
18507 # FIXME: we may have to deal with multi-command sequences.
18510 # Test whether the compiler implicitly links with -lc since on some
18511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18512 # to ld, don't add -lc before -lgcc.
18513 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18514 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18515 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18522 (eval $ac_compile) 2>&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } 2>conftest.err
; then
18528 libobjs
=conftest.
$ac_objext
18530 wl
=$lt_prog_compiler_wl
18531 pic_flag
=$lt_prog_compiler_pic
18537 lt_save_allow_undefined_flag
=$allow_undefined_flag
18538 allow_undefined_flag
=
18539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18540 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }
18545 lt_cv_archive_cmds_need_lc
=no
18547 lt_cv_archive_cmds_need_lc
=yes
18549 allow_undefined_flag
=$lt_save_allow_undefined_flag
18551 cat conftest.err
1>&5
18556 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18557 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18558 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18721 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18724 if test "$GCC" = yes; then
18726 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18727 *) lt_awk_arg
="/^libraries:/" ;;
18729 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18730 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18731 # if the path contains ";" then we assume it to be the separator
18732 # otherwise default to the standard path separator (i.e. ":") - it is
18733 # assumed that no part of a normal pathname contains ";" but that should
18734 # okay in the real world where ";" in dirpaths is itself problematic.
18735 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18737 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18739 # Ok, now we have the path, separated by spaces, we can step through it
18740 # and add multilib dir if necessary.
18741 lt_tmp_lt_search_path_spec
=
18742 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18743 for lt_sys_path
in $lt_search_path_spec; do
18744 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18745 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18747 test -d "$lt_sys_path" && \
18748 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18751 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18752 BEGIN {RS=" "; FS="/|\n";} {
18755 for (lt_i = NF; lt_i > 0; lt_i--) {
18756 if ($lt_i != "" && $lt_i != ".") {
18757 if ($lt_i == "..") {
18760 if (lt_count == 0) {
18761 lt_foo="/" $lt_i lt_foo;
18768 if (lt_foo != "") { lt_freq[lt_foo]++; }
18769 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18771 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18773 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18775 library_names_spec
=
18776 libname_spec
='lib$name'
18780 postuninstall_cmds
=
18784 shlibpath_overrides_runpath
=unknown
18786 dynamic_linker
="$host_os ld.so"
18787 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18788 need_lib_prefix
=unknown
18789 hardcode_into_libs
=no
18791 # when you set need_version to no, make sure it does not cause -set_version
18792 # flags to be left without arguments
18793 need_version
=unknown
18798 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18799 shlibpath_var
=LIBPATH
18801 # AIX 3 has no versioning support, so we append a major version to the name.
18802 soname_spec
='${libname}${release}${shared_ext}$major'
18809 hardcode_into_libs
=yes
18810 if test "$host_cpu" = ia64
; then
18811 # AIX 5 supports IA64
18812 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18813 shlibpath_var
=LD_LIBRARY_PATH
18815 # With GCC up to 2.95.x, collect2 would create an import file
18816 # for dependence libraries. The import file would start with
18817 # the line `#! .'. This would cause the generated library to
18818 # depend on `.', always an invalid library. This was fixed in
18819 # development snapshots of GCC prior to 3.0.
18821 aix4 | aix4.
[01] | aix4.
[01].
*)
18822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18824 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18827 can_build_shared
=no
18831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18832 # soname into executable. Probably we can add versioning support to
18833 # collect2, so additional links can be useful in future.
18834 if test "$aix_use_runtimelinking" = yes; then
18835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18836 # instead of lib<name>.a to let people know that these are not
18837 # typical AIX shared libraries.
18838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840 # We preserve .a as extension for shared libraries through AIX4.2
18841 # and later when we are not doing run time linking.
18842 library_names_spec
='${libname}${release}.a $libname.a'
18843 soname_spec
='${libname}${release}${shared_ext}$major'
18845 shlibpath_var
=LIBPATH
18852 # Since July 2007 AmigaOS4 officially supports .so libraries.
18853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18854 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857 library_names_spec
='$libname.ixlibrary $libname.a'
18858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18859 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'
18865 library_names_spec
='${libname}${shared_ext}'
18866 dynamic_linker
="$host_os ld.so"
18867 shlibpath_var
=LIBRARY_PATH
18873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 soname_spec
='${libname}${release}${shared_ext}$major'
18875 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18876 shlibpath_var
=LD_LIBRARY_PATH
18877 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18878 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18879 # the default ld.so.conf also contains /usr/contrib/lib and
18880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18881 # libtool to hard-code these into programs
18884 cygwin
* | mingw
* | pw32
* | cegcc
*)
18885 version_type
=windows
18890 case $GCC,$host_os in
18891 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18892 library_names_spec
='$libname.dll.a'
18893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18894 postinstall_cmds
='base_file=`basename \${file}`~
18895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18896 dldir=$destdir/`dirname \$dlpath`~
18897 test -d \$dldir || mkdir -p \$dldir~
18898 $install_prog $dir/$dlname \$dldir/$dlname~
18899 chmod a+x \$dldir/$dlname~
18900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18903 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18904 dlpath=$dir/\$dldll~
18906 shlibpath_overrides_runpath
=yes
18910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18911 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18912 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18915 # MinGW DLLs use traditional 'lib' prefix
18916 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18917 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18918 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18919 # It is most probably a Windows format PATH printed by
18920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18921 # path with ; separators, and with drive letters. We can handle the
18922 # drive letters (cygwin fileutils understands them), so leave them,
18923 # especially as we might pass files found there to a mingw objdump,
18924 # which wouldn't understand a cygwinified path. Ahh.
18925 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18927 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18931 # pw32 DLLs use 'pw' prefix rather than 'lib'
18932 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18938 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18941 dynamic_linker
='Win32 ld.exe'
18942 # FIXME: first we should search . and the directory the executable is in
18946 darwin
* | rhapsody
*)
18947 dynamic_linker
="$host_os dyld"
18948 version_type
=darwin
18951 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18952 soname_spec
='${libname}${release}${major}$shared_ext'
18953 shlibpath_overrides_runpath
=yes
18954 shlibpath_var
=DYLD_LIBRARY_PATH
18955 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18957 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18958 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18966 soname_spec
='${libname}${release}${shared_ext}$major'
18967 shlibpath_var
=LD_LIBRARY_PATH
18974 freebsd
* | dragonfly
*)
18975 # DragonFly does not have aout. When/if they implement a new
18976 # versioning mechanism, adjust this.
18977 if test -x /usr
/bin
/objformat
; then
18978 objformat
=`/usr/bin/objformat`
18981 freebsd
[123]*) objformat
=aout
;;
18982 *) objformat
=elf
;;
18985 version_type
=freebsd-
$objformat
18986 case $version_type in
18988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18993 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18997 shlibpath_var
=LD_LIBRARY_PATH
19000 shlibpath_overrides_runpath
=yes
19002 freebsd3.
[01]* | freebsdelf3.
[01]*)
19003 shlibpath_overrides_runpath
=yes
19004 hardcode_into_libs
=yes
19006 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19007 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19008 shlibpath_overrides_runpath
=no
19009 hardcode_into_libs
=yes
19011 *) # from 4.6 on, and DragonFly
19012 shlibpath_overrides_runpath
=yes
19013 hardcode_into_libs
=yes
19022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19023 soname_spec
='${libname}${release}${shared_ext}$major'
19024 shlibpath_var
=LD_LIBRARY_PATH
19025 hardcode_into_libs
=yes
19028 hpux9
* | hpux10
* | hpux11
*)
19029 # Give a soname corresponding to the major version so that dld.sl refuses to
19030 # link against other versions.
19037 hardcode_into_libs
=yes
19038 dynamic_linker
="$host_os dld.so"
19039 shlibpath_var
=LD_LIBRARY_PATH
19040 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 soname_spec
='${libname}${release}${shared_ext}$major'
19043 if test "X$HPUX_IA64_MODE" = X32
; then
19044 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19046 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19048 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19052 hardcode_into_libs
=yes
19053 dynamic_linker
="$host_os dld.sl"
19054 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19055 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19057 soname_spec
='${libname}${release}${shared_ext}$major'
19058 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19059 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19063 dynamic_linker
="$host_os dld.sl"
19064 shlibpath_var
=SHLIB_PATH
19065 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19067 soname_spec
='${libname}${release}${shared_ext}$major'
19070 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19071 postinstall_cmds
='chmod 555 $lib'
19078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19079 soname_spec
='${libname}${release}${shared_ext}$major'
19080 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19081 shlibpath_var
=LD_LIBRARY_PATH
19082 shlibpath_overrides_runpath
=no
19083 hardcode_into_libs
=yes
19086 irix5
* | irix6
* | nonstopux
*)
19088 nonstopux
*) version_type
=nonstopux
;;
19090 if test "$lt_cv_prog_gnu_ld" = yes; then
19098 soname_spec
='${libname}${release}${shared_ext}$major'
19099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19101 irix5
* | nonstopux
*)
19102 libsuff
= shlibsuff
=
19105 case $LD in # libtool.m4 will add one of these switches to LD
19106 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19107 libsuff
= shlibsuff
= libmagic
=32-bit;;
19108 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19109 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19110 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19111 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19112 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19116 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19117 shlibpath_overrides_runpath
=no
19118 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19119 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19120 hardcode_into_libs
=yes
19123 # No shared lib support for Linux oldld, aout, or coff.
19124 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19128 # This must be Linux ELF.
19129 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19134 soname_spec
='${libname}${release}${shared_ext}$major'
19135 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19136 shlibpath_var
=LD_LIBRARY_PATH
19137 shlibpath_overrides_runpath
=no
19139 # Some binutils ld are patched to set DT_RUNPATH
19140 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 lt_cv_shlibpath_overrides_runpath
=no
19144 save_LDFLAGS
=$LDFLAGS
19145 save_libdir
=$libdir
19146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19148 cat >conftest.
$ac_ext <<_ACEOF
19151 cat confdefs.h
>>conftest.
$ac_ext
19152 cat >>conftest.
$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19163 rm -f conftest.
$ac_objext conftest
$ac_exeext
19164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19165 (eval $ac_link) 2>conftest.er1
19167 grep -v '^ *+' conftest.er1
>conftest.err
19169 cat conftest.err
>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try
='test -z "$ac_c_werror_flag"
19173 || test ! -s conftest.err'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } &&
19179 { ac_try
='test -s conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
19186 lt_cv_shlibpath_overrides_runpath
=yes
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.
$ac_ext >&5
19194 rm -f conftest.err conftest.
$ac_objext \
19195 conftest
$ac_exeext conftest.
$ac_ext
19196 LDFLAGS
=$save_LDFLAGS
19197 libdir
=$save_libdir
19201 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19203 # This implies no fast_install, which is unacceptable.
19204 # Some rework will be needed to allow for fast_install
19205 # before this can be enabled.
19206 hardcode_into_libs
=yes
19208 # Append ld.so.conf contents to the search path
19209 if test -f /etc
/ld.so.conf
; then
19210 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19211 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19214 # We used to test for /lib/ld.so.1 and disable shared libraries on
19215 # powerpc, because MkLinux only supported shared libraries with the
19216 # GNU dynamic linker. Since this was broken with cross compilers,
19217 # most powerpc-linux boxes support dynamic linking these days and
19218 # people can always --disable-shared, the test was removed, and we
19219 # assume the GNU/Linux dynamic linker is in use.
19220 dynamic_linker
='GNU/Linux ld.so'
19227 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19229 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19230 dynamic_linker
='NetBSD (a.out) ld.so'
19232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19233 soname_spec
='${libname}${release}${shared_ext}$major'
19234 dynamic_linker
='NetBSD ld.elf_so'
19236 shlibpath_var
=LD_LIBRARY_PATH
19237 shlibpath_overrides_runpath
=yes
19238 hardcode_into_libs
=yes
19243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244 shlibpath_var
=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath
=yes
19252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19253 soname_spec
='${libname}${release}${shared_ext}$major'
19254 shlibpath_var
=LD_LIBRARY_PATH
19255 shlibpath_overrides_runpath
=no
19256 hardcode_into_libs
=yes
19257 dynamic_linker
='ldqnx.so'
19262 sys_lib_dlsearch_path_spec
="/usr/lib"
19264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19266 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19267 *) need_version
=no
;;
19269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19270 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19271 shlibpath_var
=LD_LIBRARY_PATH
19272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19274 openbsd2.
[89] | openbsd2.
[89].
*)
19275 shlibpath_overrides_runpath
=no
19278 shlibpath_overrides_runpath
=yes
19282 shlibpath_overrides_runpath
=yes
19287 libname_spec
='$name'
19290 library_names_spec
='$libname${shared_ext} $libname.a'
19291 dynamic_linker
='OS/2 ld.exe'
19292 shlibpath_var
=LIBPATH
19295 osf3
* | osf4
* | osf5
*)
19299 soname_spec
='${libname}${release}${shared_ext}$major'
19300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301 shlibpath_var
=LD_LIBRARY_PATH
19302 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19303 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315 soname_spec
='${libname}${release}${shared_ext}$major'
19316 shlibpath_var
=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath
=yes
19318 hardcode_into_libs
=yes
19319 # ldd complains unless libraries are executable
19320 postinstall_cmds
='chmod +x $lib'
19325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19327 shlibpath_var
=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath
=yes
19329 if test "$with_gnu_ld" = yes; then
19337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec
='${libname}${release}${shared_ext}$major'
19339 shlibpath_var
=LD_LIBRARY_PATH
19340 case $host_vendor in
19342 shlibpath_overrides_runpath
=no
19344 runpath_var
=LD_RUN_PATH
19352 shlibpath_overrides_runpath
=no
19353 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19359 if test -d /usr
/nec
;then
19361 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19362 soname_spec
='$libname${shared_ext}.$major'
19363 shlibpath_var
=LD_LIBRARY_PATH
19367 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19368 version_type
=freebsd-elf
19371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19372 soname_spec
='${libname}${release}${shared_ext}$major'
19373 shlibpath_var
=LD_LIBRARY_PATH
19374 shlibpath_overrides_runpath
=yes
19375 hardcode_into_libs
=yes
19376 if test "$with_gnu_ld" = yes; then
19377 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19379 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19382 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19386 sys_lib_dlsearch_path_spec
='/usr/lib'
19390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19395 shlibpath_var
=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath
=no
19397 hardcode_into_libs
=yes
19402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec
='${libname}${release}${shared_ext}$major'
19404 shlibpath_var
=LD_LIBRARY_PATH
19411 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19412 echo "${ECHO_T}$dynamic_linker" >&6
19413 test "$dynamic_linker" = no
&& can_build_shared
=no
19415 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19416 if test "$GCC" = yes; then
19417 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19421 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19424 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19513 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19516 if test -n "$hardcode_libdir_flag_spec" ||
19517 test -n "$runpath_var" ||
19518 test "X$hardcode_automatic" = "Xyes" ; then
19520 # We can hardcode non-existent directories.
19521 if test "$hardcode_direct" != no
&&
19522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19523 # have to relink, otherwise we might link with an installed library
19524 # when we should be linking with a yet-to-be-installed one
19525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19526 test "$hardcode_minus_L" != no
; then
19527 # Linking always hardcodes the temporary library directory.
19528 hardcode_action
=relink
19530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19531 hardcode_action
=immediate
19534 # We cannot hardcode anything, or else we can only hardcode existing
19536 hardcode_action
=unsupported
19538 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19539 echo "${ECHO_T}$hardcode_action" >&6
19541 if test "$hardcode_action" = relink ||
19542 test "$inherit_rpath" = yes; then
19543 # Fast installation is not supported
19544 enable_fast_install
=no
19545 elif test "$shlibpath_overrides_runpath" = yes ||
19546 test "$enable_shared" = no
; then
19547 # Fast installation is not necessary
19548 enable_fast_install
=needless
19556 if test "x$enable_dlopen" != xyes
; then
19557 enable_dlopen
=unknown
19558 enable_dlopen_self
=unknown
19559 enable_dlopen_self_static
=unknown
19566 lt_cv_dlopen
="load_add_on"
19568 lt_cv_dlopen_self
=yes
19571 mingw
* | pw32
* | cegcc
*)
19572 lt_cv_dlopen
="LoadLibrary"
19577 lt_cv_dlopen
="dlopen"
19582 # if libdl is installed we need to link against it
19583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 ac_check_lib_save_LIBS
=$LIBS
19590 cat >conftest.
$ac_ext <<_ACEOF
19593 cat confdefs.h
>>conftest.
$ac_ext
19594 cat >>conftest.
$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19597 /* Override any gcc2 internal prototype to avoid an error. */
19601 /* We use char because int might match the return type of a gcc2
19602 builtin and then its argument prototype would still apply. */
19612 rm -f conftest.
$ac_objext conftest
$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>conftest.er1
19616 grep -v '^ *+' conftest.er1
>conftest.err
19618 cat conftest.err
>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try
='test -z "$ac_c_werror_flag"
19622 || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try
='test -s conftest$ac_exeext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_lib_dl_dlopen
=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.
$ac_ext >&5
19639 ac_cv_lib_dl_dlopen
=no
19641 rm -f conftest.err conftest.
$ac_objext \
19642 conftest
$ac_exeext conftest.
$ac_ext
19643 LIBS
=$ac_check_lib_save_LIBS
19645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19647 if test $ac_cv_lib_dl_dlopen = yes; then
19648 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19651 lt_cv_dlopen
="dyld"
19653 lt_cv_dlopen_self
=yes
19660 echo "$as_me:$LINENO: checking for shl_load" >&5
19661 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19662 if test "${ac_cv_func_shl_load+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 cat >conftest.
$ac_ext <<_ACEOF
19668 cat confdefs.h
>>conftest.
$ac_ext
19669 cat >>conftest.
$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19673 #define shl_load innocuous_shl_load
19675 /* System header to define __stub macros and hopefully few prototypes,
19676 which can conflict with char shl_load (); below.
19677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19678 <limits.h> exists even on freestanding compilers. */
19681 # include <limits.h>
19683 # include <assert.h>
19688 /* Override any gcc2 internal prototype to avoid an error. */
19693 /* We use char because int might match the return type of a gcc2
19694 builtin and then its argument prototype would still apply. */
19696 /* The GNU C library defines this for functions which it implements
19697 to always fail with ENOSYS. Some functions are actually named
19698 something starting with __ and the normal name is an alias. */
19699 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19702 char (*f) () = shl_load;
19711 return f != shl_load;
19716 rm -f conftest.
$ac_objext conftest
$ac_exeext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19718 (eval $ac_link) 2>conftest.er1
19720 grep -v '^ *+' conftest.er1
>conftest.err
19722 cat conftest.err
>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try
='test -z "$ac_c_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try
='test -s conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_func_shl_load
=yes
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.
$ac_ext >&5
19743 ac_cv_func_shl_load
=no
19745 rm -f conftest.err conftest.
$ac_objext \
19746 conftest
$ac_exeext conftest.
$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19749 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19750 if test $ac_cv_func_shl_load = yes; then
19751 lt_cv_dlopen
="shl_load"
19753 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 ac_check_lib_save_LIBS
=$LIBS
19760 cat >conftest.
$ac_ext <<_ACEOF
19763 cat confdefs.h
>>conftest.
$ac_ext
19764 cat >>conftest.
$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19767 /* Override any gcc2 internal prototype to avoid an error. */
19771 /* We use char because int might match the return type of a gcc2
19772 builtin and then its argument prototype would still apply. */
19782 rm -f conftest.
$ac_objext conftest
$ac_exeext
19783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>conftest.er1
19786 grep -v '^ *+' conftest.er1
>conftest.err
19788 cat conftest.err
>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try
='test -z "$ac_c_werror_flag"
19792 || test ! -s conftest.err'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; } &&
19798 { ac_try
='test -s conftest$ac_exeext'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 ac_cv_lib_dld_shl_load
=yes
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.
$ac_ext >&5
19809 ac_cv_lib_dld_shl_load
=no
19811 rm -f conftest.err conftest.
$ac_objext \
19812 conftest
$ac_exeext conftest.
$ac_ext
19813 LIBS
=$ac_check_lib_save_LIBS
19815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19817 if test $ac_cv_lib_dld_shl_load = yes; then
19818 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19820 echo "$as_me:$LINENO: checking for dlopen" >&5
19821 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19822 if test "${ac_cv_func_dlopen+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 cat >conftest.
$ac_ext <<_ACEOF
19828 cat confdefs.h
>>conftest.
$ac_ext
19829 cat >>conftest.
$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19833 #define dlopen innocuous_dlopen
19835 /* System header to define __stub macros and hopefully few prototypes,
19836 which can conflict with char dlopen (); below.
19837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19838 <limits.h> exists even on freestanding compilers. */
19841 # include <limits.h>
19843 # include <assert.h>
19848 /* Override any gcc2 internal prototype to avoid an error. */
19853 /* We use char because int might match the return type of a gcc2
19854 builtin and then its argument prototype would still apply. */
19856 /* The GNU C library defines this for functions which it implements
19857 to always fail with ENOSYS. Some functions are actually named
19858 something starting with __ and the normal name is an alias. */
19859 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19862 char (*f) () = dlopen;
19871 return f != dlopen;
19876 rm -f conftest.
$ac_objext conftest
$ac_exeext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19878 (eval $ac_link) 2>conftest.er1
19880 grep -v '^ *+' conftest.er1
>conftest.err
19882 cat conftest.err
>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try
='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try
='test -s conftest$ac_exeext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_dlopen
=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.
$ac_ext >&5
19903 ac_cv_func_dlopen
=no
19905 rm -f conftest.err conftest.
$ac_objext \
19906 conftest
$ac_exeext conftest.
$ac_ext
19908 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19909 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19910 if test $ac_cv_func_dlopen = yes; then
19911 lt_cv_dlopen
="dlopen"
19913 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_check_lib_save_LIBS
=$LIBS
19920 cat >conftest.
$ac_ext <<_ACEOF
19923 cat confdefs.h
>>conftest.
$ac_ext
19924 cat >>conftest.
$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19927 /* Override any gcc2 internal prototype to avoid an error. */
19931 /* We use char because int might match the return type of a gcc2
19932 builtin and then its argument prototype would still apply. */
19942 rm -f conftest.
$ac_objext conftest
$ac_exeext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19944 (eval $ac_link) 2>conftest.er1
19946 grep -v '^ *+' conftest.er1
>conftest.err
19948 cat conftest.err
>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try
='test -z "$ac_c_werror_flag"
19952 || test ! -s conftest.err'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try
='test -s conftest$ac_exeext'
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_cv_lib_dl_dlopen
=yes
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.
$ac_ext >&5
19969 ac_cv_lib_dl_dlopen
=no
19971 rm -f conftest.err conftest.
$ac_objext \
19972 conftest
$ac_exeext conftest.
$ac_ext
19973 LIBS
=$ac_check_lib_save_LIBS
19975 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19977 if test $ac_cv_lib_dl_dlopen = yes; then
19978 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19980 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19981 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19982 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_check_lib_save_LIBS
=$LIBS
19986 LIBS
="-lsvld $LIBS"
19987 cat >conftest.
$ac_ext <<_ACEOF
19990 cat confdefs.h
>>conftest.
$ac_ext
19991 cat >>conftest.
$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19994 /* Override any gcc2 internal prototype to avoid an error. */
19998 /* We use char because int might match the return type of a gcc2
19999 builtin and then its argument prototype would still apply. */
20009 rm -f conftest.
$ac_objext conftest
$ac_exeext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20011 (eval $ac_link) 2>conftest.er1
20013 grep -v '^ *+' conftest.er1
>conftest.err
20015 cat conftest.err
>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try
='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try
='test -s conftest$ac_exeext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_svld_dlopen
=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.
$ac_ext >&5
20036 ac_cv_lib_svld_dlopen
=no
20038 rm -f conftest.err conftest.
$ac_objext \
20039 conftest
$ac_exeext conftest.
$ac_ext
20040 LIBS
=$ac_check_lib_save_LIBS
20042 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20043 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20044 if test $ac_cv_lib_svld_dlopen = yes; then
20045 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
20047 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20048 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 ac_check_lib_save_LIBS
=$LIBS
20054 cat >conftest.
$ac_ext <<_ACEOF
20057 cat confdefs.h
>>conftest.
$ac_ext
20058 cat >>conftest.
$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 /* Override any gcc2 internal prototype to avoid an error. */
20065 /* We use char because int might match the return type of a gcc2
20066 builtin and then its argument prototype would still apply. */
20076 rm -f conftest.
$ac_objext conftest
$ac_exeext
20077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20078 (eval $ac_link) 2>conftest.er1
20080 grep -v '^ *+' conftest.er1
>conftest.err
20082 cat conftest.err
>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } &&
20085 { ac_try
='test -z "$ac_c_werror_flag"
20086 || test ! -s conftest.err'
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; } &&
20092 { ac_try
='test -s conftest$ac_exeext'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098 ac_cv_lib_dld_dld_link
=yes
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.
$ac_ext >&5
20103 ac_cv_lib_dld_dld_link
=no
20105 rm -f conftest.err conftest.
$ac_objext \
20106 conftest
$ac_exeext conftest.
$ac_ext
20107 LIBS
=$ac_check_lib_save_LIBS
20109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20110 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20111 if test $ac_cv_lib_dld_dld_link = yes; then
20112 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
20133 if test "x$lt_cv_dlopen" != xno
; then
20139 case $lt_cv_dlopen in
20141 save_CPPFLAGS
="$CPPFLAGS"
20142 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
20144 save_LDFLAGS
="$LDFLAGS"
20145 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
20148 LIBS
="$lt_cv_dlopen_libs $LIBS"
20150 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20151 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20152 if test "${lt_cv_dlopen_self+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 if test "$cross_compiling" = yes; then :
20156 lt_cv_dlopen_self
=cross
20158 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20159 lt_status
=$lt_dlunknown
20160 cat > conftest.
$ac_ext <<_LT_EOF
20161 #line 20161 "configure"
20162 #include "confdefs.h"
20171 # define LT_DLGLOBAL RTLD_GLOBAL
20174 # define LT_DLGLOBAL DL_GLOBAL
20176 # define LT_DLGLOBAL 0
20180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20181 find out it does not work in some platform. */
20182 #ifndef LT_DLLAZY_OR_NOW
20184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20187 # define LT_DLLAZY_OR_NOW DL_LAZY
20190 # define LT_DLLAZY_OR_NOW RTLD_NOW
20193 # define LT_DLLAZY_OR_NOW DL_NOW
20195 # define LT_DLLAZY_OR_NOW 0
20202 void fnord() { int i=42;}
20205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20206 int status = $lt_dlunknown;
20210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20212 /* dlclose (self); */
20220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20221 (eval $ac_link) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20225 (.
/conftest
; exit; ) >&5 2>/dev
/null
20227 case x
$lt_status in
20228 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20229 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20230 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20233 # compilation failed
20234 lt_cv_dlopen_self
=no
20241 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20242 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20244 if test "x$lt_cv_dlopen_self" = xyes
; then
20245 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20246 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20247 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20248 if test "${lt_cv_dlopen_self_static+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 if test "$cross_compiling" = yes; then :
20252 lt_cv_dlopen_self_static
=cross
20254 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20255 lt_status
=$lt_dlunknown
20256 cat > conftest.
$ac_ext <<_LT_EOF
20257 #line 20257 "configure"
20258 #include "confdefs.h"
20267 # define LT_DLGLOBAL RTLD_GLOBAL
20270 # define LT_DLGLOBAL DL_GLOBAL
20272 # define LT_DLGLOBAL 0
20276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20277 find out it does not work in some platform. */
20278 #ifndef LT_DLLAZY_OR_NOW
20280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20283 # define LT_DLLAZY_OR_NOW DL_LAZY
20286 # define LT_DLLAZY_OR_NOW RTLD_NOW
20289 # define LT_DLLAZY_OR_NOW DL_NOW
20291 # define LT_DLLAZY_OR_NOW 0
20298 void fnord() { int i=42;}
20301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20302 int status = $lt_dlunknown;
20306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20308 /* dlclose (self); */
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20321 (.
/conftest
; exit; ) >&5 2>/dev
/null
20323 case x
$lt_status in
20324 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20325 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20326 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20329 # compilation failed
20330 lt_cv_dlopen_self_static
=no
20337 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20338 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20341 CPPFLAGS
="$save_CPPFLAGS"
20342 LDFLAGS
="$save_LDFLAGS"
20347 case $lt_cv_dlopen_self in
20348 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20349 *) enable_dlopen_self
=unknown
;;
20352 case $lt_cv_dlopen_self_static in
20353 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20354 *) enable_dlopen_self_static
=unknown
;;
20376 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20377 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20378 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20379 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20380 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20381 echo "$as_me:$LINENO: result: yes" >&5
20382 echo "${ECHO_T}yes" >&6
20384 # FIXME - insert some real tests, host_os isn't really good enough
20387 if test -n "$STRIP" ; then
20388 striplib
="$STRIP -x"
20389 old_striplib
="$STRIP -S"
20390 echo "$as_me:$LINENO: result: yes" >&5
20391 echo "${ECHO_T}yes" >&6
20393 echo "$as_me:$LINENO: result: no" >&5
20394 echo "${ECHO_T}no" >&6
20398 echo "$as_me:$LINENO: result: no" >&5
20399 echo "${ECHO_T}no" >&6
20415 # Report which library types will actually be built
20416 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20418 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20419 echo "${ECHO_T}$can_build_shared" >&6
20421 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20423 test "$can_build_shared" = "no" && enable_shared
=no
20425 # On AIX, shared libraries and static libraries use the same namespace, and
20426 # are all built from PIC.
20429 test "$enable_shared" = yes && enable_static
=no
20430 if test -n "$RANLIB"; then
20431 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20432 postinstall_cmds
='$RANLIB $lib'
20437 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20438 test "$enable_shared" = yes && enable_static
=no
20442 echo "$as_me:$LINENO: result: $enable_shared" >&5
20443 echo "${ECHO_T}$enable_shared" >&6
20445 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20446 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20447 # Make sure either enable_shared or enable_static is yes.
20448 test "$enable_shared" = yes || enable_static
=yes
20449 echo "$as_me:$LINENO: result: $enable_static" >&5
20450 echo "${ECHO_T}$enable_static" >&6
20457 ac_cpp
='$CPP $CPPFLAGS'
20458 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20479 # Only expand once:
20485 # Identify the assembler which will work hand-in-glove with the newly
20486 # built GCC, so that we can examine its features. This is the assembler
20487 # which will be driven by the driver program.
20489 # If build != host, and we aren't building gas in-tree, we identify a
20490 # build->target assembler and hope that it will have the same features
20491 # as the host->target assembler we'll be using.
20492 gcc_cv_gas_major_version
=
20493 gcc_cv_gas_minor_version
=
20494 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20496 if test "${gcc_cv_as+set}" = set; then
20500 if test -x "$DEFAULT_ASSEMBLER"; then
20501 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20502 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20503 && test -f ..
/gas
/Makefile \
20504 && test x
$build = x
$host; then
20505 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20506 elif test -x as
$build_exeext; then
20507 # Build using assembler in the current directory.
20508 gcc_cv_as
=.
/as
$build_exeext
20509 elif test -x $AS_FOR_TARGET; then
20510 gcc_cv_as
="$AS_FOR_TARGET"
20512 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20513 set dummy
$AS_FOR_TARGET; ac_word
=$2
20514 echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20516 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20525 for as_dir
in $PATH
20528 test -z "$as_dir" && as_dir
=.
20529 for ac_exec_ext
in '' $ac_executable_extensions; do
20530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20531 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20541 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20543 if test -n "$gcc_cv_as"; then
20544 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20545 echo "${ECHO_T}$gcc_cv_as" >&6
20547 echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6
20555 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20557 case "$ORIGINAL_AS_FOR_TARGET" in
20558 .
/as | .
/as
$build_exeext) ;;
20559 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20563 echo "$as_me:$LINENO: checking what assembler to use" >&5
20564 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20565 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20566 # Single tree build which includes gas. We want to prefer it
20567 # over whatever linker top-level may have detected, since
20568 # we'll use what we're building after installation anyway.
20569 echo "$as_me:$LINENO: result: newly built gas" >&5
20570 echo "${ECHO_T}newly built gas" >&6
20572 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20573 for f
in $gcc_cv_as_bfd_srcdir/configure \
20574 $gcc_cv_as_gas_srcdir/configure \
20575 $gcc_cv_as_gas_srcdir/configure.
in \
20576 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20577 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20578 if test x
$gcc_cv_gas_version != x
; then
20582 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20583 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20584 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20585 case $gcc_cv_gas_patch_version in
20586 "") gcc_cv_gas_patch_version
="0" ;;
20588 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20589 + $gcc_cv_gas_minor_version \) \* 1000 \
20590 + $gcc_cv_gas_patch_version`
20592 in_tree_gas_is_elf
=no
20593 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20594 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20595 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20597 in_tree_gas_is_elf
=yes
20600 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20601 echo "${ECHO_T}$gcc_cv_as" >&6
20605 # Identify the linker which will work hand-in-glove with the newly
20606 # built GCC, so that we can examine its features. This is the linker
20607 # which will be driven by the driver program.
20609 # If build != host, and we aren't building gas in-tree, we identify a
20610 # build->target linker and hope that it will have the same features
20611 # as the host->target linker we'll be using.
20612 gcc_cv_gld_major_version
=
20613 gcc_cv_gld_minor_version
=
20614 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20615 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20617 if test "${gcc_cv_ld+set}" = set; then
20621 if test -x "$DEFAULT_LINKER"; then
20622 gcc_cv_ld
="$DEFAULT_LINKER"
20623 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20624 && test -f ..
/ld
/Makefile \
20625 && test x
$build = x
$host; then
20626 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20627 elif test -x collect-ld
$build_exeext; then
20628 # Build using linker in the current directory.
20629 gcc_cv_ld
=.
/collect-ld
$build_exeext
20630 elif test -x $LD_FOR_TARGET; then
20631 gcc_cv_ld
="$LD_FOR_TARGET"
20633 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20634 set dummy
$LD_FOR_TARGET; ac_word
=$2
20635 echo "$as_me:$LINENO: checking for $ac_word" >&5
20636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20637 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20646 for as_dir
in $PATH
20649 test -z "$as_dir" && as_dir
=.
20650 for ac_exec_ext
in '' $ac_executable_extensions; do
20651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20652 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20662 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20664 if test -n "$gcc_cv_ld"; then
20665 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20666 echo "${ECHO_T}$gcc_cv_ld" >&6
20668 echo "$as_me:$LINENO: result: no" >&5
20669 echo "${ECHO_T}no" >&6
20676 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20678 case "$ORIGINAL_LD_FOR_TARGET" in
20679 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20680 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20684 echo "$as_me:$LINENO: checking what linker to use" >&5
20685 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20686 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20687 # Single tree build which includes ld. We want to prefer it
20688 # over whatever linker top-level may have detected, since
20689 # we'll use what we're building after installation anyway.
20690 echo "$as_me:$LINENO: result: newly built ld" >&5
20691 echo "${ECHO_T}newly built ld" >&6
20693 in_tree_ld_is_elf
=no
20694 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20695 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20696 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20697 in_tree_ld_is_elf
=yes
20699 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
20701 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20702 if test x
$gcc_cv_gld_version != x
; then
20706 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20707 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20709 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20710 echo "${ECHO_T}$gcc_cv_ld" >&6
20714 # Figure out what nm we will be using.
20715 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20716 if test "${gcc_cv_nm+set}" = set; then
20720 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20721 && test -f ..
/binutils
/Makefile \
20722 && test x
$build = x
$host; then
20723 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20724 elif test -x nm
$build_exeext; then
20725 gcc_cv_nm
=.
/nm
$build_exeext
20726 elif test -x $NM_FOR_TARGET; then
20727 gcc_cv_nm
="$NM_FOR_TARGET"
20729 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20730 set dummy
$NM_FOR_TARGET; ac_word
=$2
20731 echo "$as_me:$LINENO: checking for $ac_word" >&5
20732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20733 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20742 for as_dir
in $PATH
20745 test -z "$as_dir" && as_dir
=.
20746 for ac_exec_ext
in '' $ac_executable_extensions; do
20747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20748 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20758 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20760 if test -n "$gcc_cv_nm"; then
20761 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20762 echo "${ECHO_T}$gcc_cv_nm" >&6
20764 echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6
20772 echo "$as_me:$LINENO: checking what nm to use" >&5
20773 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20774 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20775 # Single tree build which includes binutils.
20776 echo "$as_me:$LINENO: result: newly built nm" >&5
20777 echo "${ECHO_T}newly built nm" >&6
20780 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20781 echo "${ECHO_T}$gcc_cv_nm" >&6
20785 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20787 case "$ORIGINAL_NM_FOR_TARGET" in
20788 .
/nm | .
/nm
$build_exeext) ;;
20789 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20794 # Figure out what objdump we will be using.
20795 if test "${gcc_cv_objdump+set}" = set; then
20799 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20800 && test -f ..
/binutils
/Makefile \
20801 && test x
$build = x
$host; then
20802 # Single tree build which includes binutils.
20803 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20804 elif test -x objdump
$build_exeext; then
20805 gcc_cv_objdump
=.
/objdump
$build_exeext
20806 elif test -x $OBJDUMP_FOR_TARGET; then
20807 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20809 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20810 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20811 echo "$as_me:$LINENO: checking for $ac_word" >&5
20812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20813 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 case $gcc_cv_objdump in
20818 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20822 for as_dir
in $PATH
20825 test -z "$as_dir" && as_dir
=.
20826 for ac_exec_ext
in '' $ac_executable_extensions; do
20827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20828 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20838 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20840 if test -n "$gcc_cv_objdump"; then
20841 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20842 echo "${ECHO_T}$gcc_cv_objdump" >&6
20844 echo "$as_me:$LINENO: result: no" >&5
20845 echo "${ECHO_T}no" >&6
20852 echo "$as_me:$LINENO: checking what objdump to use" >&5
20853 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20854 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20855 # Single tree build which includes binutils.
20856 echo "$as_me:$LINENO: result: newly built objdump" >&5
20857 echo "${ECHO_T}newly built objdump" >&6
20858 elif test x
$gcc_cv_objdump = x
; then
20859 echo "$as_me:$LINENO: result: not found" >&5
20860 echo "${ECHO_T}not found" >&6
20862 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20863 echo "${ECHO_T}$gcc_cv_objdump" >&6
20866 # Figure out what readelf we will be using.
20867 if test "${gcc_cv_readelf+set}" = set; then
20871 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20872 && test -f ..
/binutils
/Makefile \
20873 && test x
$build = x
$host; then
20874 # Single tree build which includes binutils.
20875 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20876 elif test -x readelf
$build_exeext; then
20877 gcc_cv_readelf
=.
/readelf
$build_exeext
20879 # Extract the first word of "readelf", so it can be a program name with args.
20880 set dummy readelf
; ac_word
=$2
20881 echo "$as_me:$LINENO: checking for $ac_word" >&5
20882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20883 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 case $gcc_cv_readelf in
20888 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20892 for as_dir
in $PATH
20895 test -z "$as_dir" && as_dir
=.
20896 for ac_exec_ext
in '' $ac_executable_extensions; do
20897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20898 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20908 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20910 if test -n "$gcc_cv_readelf"; then
20911 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20912 echo "${ECHO_T}$gcc_cv_readelf" >&6
20914 echo "$as_me:$LINENO: result: no" >&5
20915 echo "${ECHO_T}no" >&6
20922 echo "$as_me:$LINENO: checking what readelf to use" >&5
20923 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20924 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20925 # Single tree build which includes binutils.
20926 echo "$as_me:$LINENO: result: newly built readelf" >&5
20927 echo "${ECHO_T}newly built readelf" >&6
20928 elif test x
$gcc_cv_readelf = x
; then
20929 echo "$as_me:$LINENO: result: not found" >&5
20930 echo "${ECHO_T}not found" >&6
20932 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20933 echo "${ECHO_T}$gcc_cv_readelf" >&6
20936 # Figure out what assembler alignment features are present.
20937 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20938 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20939 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 gcc_cv_as_balign_and_p2align
=no
20943 if test $in_tree_gas = yes; then
20944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20945 then gcc_cv_as_balign_and_p2align
=yes
20947 elif test x
$gcc_cv_as != x
; then
20949 .p2align 2' > conftest.s
20950 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }
20957 gcc_cv_as_balign_and_p2align
=yes
20959 echo "configure: failed program was" >&5
20962 rm -f conftest.o conftest.s
20965 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20966 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20967 if test $gcc_cv_as_balign_and_p2align = yes; then
20969 cat >>confdefs.h
<<\_ACEOF
20970 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20975 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20976 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20977 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 gcc_cv_as_max_skip_p2align
=no
20981 if test $in_tree_gas = yes; then
20982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20983 then gcc_cv_as_max_skip_p2align
=yes
20985 elif test x
$gcc_cv_as != x
; then
20986 echo '.p2align 4,,7' > conftest.s
20987 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }
20994 gcc_cv_as_max_skip_p2align
=yes
20996 echo "configure: failed program was" >&5
20999 rm -f conftest.o conftest.s
21002 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
21003 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
21004 if test $gcc_cv_as_max_skip_p2align = yes; then
21006 cat >>confdefs.h
<<\_ACEOF
21007 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
21012 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
21013 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
21014 if test "${gcc_cv_as_literal16+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 gcc_cv_as_literal16
=no
21018 if test $in_tree_gas = yes; then
21019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21020 then gcc_cv_as_literal16
=yes
21022 elif test x
$gcc_cv_as != x
; then
21023 echo '.literal16' > conftest.s
21024 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }
21031 gcc_cv_as_literal16
=yes
21033 echo "configure: failed program was" >&5
21036 rm -f conftest.o conftest.s
21039 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21040 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21041 if test $gcc_cv_as_literal16 = yes; then
21043 cat >>confdefs.h
<<\_ACEOF
21044 #define HAVE_GAS_LITERAL16 1
21049 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21050 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21051 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 gcc_cv_as_subsection_m1
=no
21055 if test $in_tree_gas = yes; then
21056 if test $in_tree_gas_is_elf = yes \
21057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21058 then gcc_cv_as_subsection_m1
=yes
21060 elif test x
$gcc_cv_as != x
; then
21061 echo 'conftest_label1: .word 0
21063 conftest_label2: .word 0
21064 .previous' > conftest.s
21065 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }
21072 if test x
$gcc_cv_nm != x
; then
21073 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21074 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21075 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21077 else gcc_cv_as_subsection_m1
=yes
21079 rm -f conftest.nm1 conftest.nm2
21082 echo "configure: failed program was" >&5
21085 rm -f conftest.o conftest.s
21088 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21089 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21090 if test $gcc_cv_as_subsection_m1 = yes; then
21092 cat >>confdefs.h
<<\_ACEOF
21093 #define HAVE_GAS_SUBSECTION_ORDERING 1
21098 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21099 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21100 if test "${gcc_cv_as_weak+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 if test $in_tree_gas = yes; then
21105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21106 then gcc_cv_as_weak
=yes
21108 elif test x
$gcc_cv_as != x
; then
21109 echo ' .weak foobar' > conftest.s
21110 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }
21119 echo "configure: failed program was" >&5
21122 rm -f conftest.o conftest.s
21125 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21126 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21127 if test $gcc_cv_as_weak = yes; then
21129 cat >>confdefs.h
<<\_ACEOF
21130 #define HAVE_GAS_WEAK 1
21135 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21136 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21137 if test "${gcc_cv_as_weakref+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 gcc_cv_as_weakref
=no
21141 if test $in_tree_gas = yes; then
21142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21143 then gcc_cv_as_weakref
=yes
21145 elif test x
$gcc_cv_as != x
; then
21146 echo ' .weakref foobar, barfnot' > conftest.s
21147 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }
21154 gcc_cv_as_weakref
=yes
21156 echo "configure: failed program was" >&5
21159 rm -f conftest.o conftest.s
21162 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21163 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21164 if test $gcc_cv_as_weakref = yes; then
21166 cat >>confdefs.h
<<\_ACEOF
21167 #define HAVE_GAS_WEAKREF 1
21172 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21173 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21174 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 gcc_cv_as_nsubspa_comdat
=no
21178 if test $in_tree_gas = yes; then
21179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21180 then gcc_cv_as_nsubspa_comdat
=yes
21182 elif test x
$gcc_cv_as != x
; then
21183 echo ' .SPACE $TEXT$
21184 .NSUBSPA $CODE$,COMDAT' > conftest.s
21185 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }
21192 gcc_cv_as_nsubspa_comdat
=yes
21194 echo "configure: failed program was" >&5
21197 rm -f conftest.o conftest.s
21200 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21201 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21202 if test $gcc_cv_as_nsubspa_comdat = yes; then
21204 cat >>confdefs.h
<<\_ACEOF
21205 #define HAVE_GAS_NSUBSPA_COMDAT 1
21210 # .hidden needs to be supported in both the assembler and the linker,
21211 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21212 # This is irritatingly difficult to feature test for; we have to check the
21213 # date string after the version number. If we've got an in-tree
21214 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21216 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21217 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21218 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21219 if test "${gcc_cv_as_hidden+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 gcc_cv_as_hidden
=no
21223 if test $in_tree_gas = yes; then
21224 if test $in_tree_gas_is_elf = yes \
21225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21226 then gcc_cv_as_hidden
=yes
21228 elif test x
$gcc_cv_as != x
; then
21229 echo ' .hidden foobar
21230 foobar:' > conftest.s
21231 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }
21238 gcc_cv_as_hidden
=yes
21240 echo "configure: failed program was" >&5
21243 rm -f conftest.o conftest.s
21246 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21247 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21250 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21251 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21252 if test "${gcc_cv_ld_hidden+set}" = set; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 if test $in_tree_ld = yes ; then
21256 gcc_cv_ld_hidden
=no
21257 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 \
21258 && test $in_tree_ld_is_elf = yes; then
21259 gcc_cv_ld_hidden
=yes
21262 gcc_cv_ld_hidden
=yes
21263 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21264 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21265 ld_vers
=`echo $ld_ver | sed -n \
21266 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21267 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'`
21268 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21269 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21270 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21271 if test 0"$ld_date" -lt 20020404; then
21272 if test -n "$ld_date"; then
21273 # If there was date string, but was earlier than 2002-04-04, fail
21274 gcc_cv_ld_hidden
=no
21275 elif test -z "$ld_vers"; then
21276 # If there was no date string nor ld version number, something is wrong
21277 gcc_cv_ld_hidden
=no
21279 test -z "$ld_vers_patch" && ld_vers_patch
=0
21280 if test "$ld_vers_major" -lt 2; then
21281 gcc_cv_ld_hidden
=no
21282 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21283 gcc_cv_ld_hidden
="no"
21284 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21285 gcc_cv_ld_hidden
=no
21290 case "${target}" in
21291 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21292 gcc_cv_ld_hidden
=yes
21294 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21295 gcc_cv_ld_hidden
=yes
21298 gcc_cv_ld_hidden
=no
21304 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21305 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21306 libgcc_visibility
=no
21309 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21310 libgcc_visibility
=yes
21312 cat >>confdefs.h
<<\_ACEOF
21313 #define HAVE_GAS_HIDDEN 1
21318 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21319 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21320 gcc_cv_ld_ro_rw_mix
=unknown
21321 if test $in_tree_ld = yes ; then
21322 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 \
21323 && test $in_tree_ld_is_elf = yes; then
21324 gcc_cv_ld_ro_rw_mix
=read-write
21326 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21327 echo '.section myfoosect, "a"' > conftest1.s
21328 echo '.section myfoosect, "aw"' > conftest2.s
21329 echo '.byte 1' >> conftest2.s
21330 echo '.section myfoosect, "a"' > conftest3.s
21331 echo '.byte 0' >> conftest3.s
21332 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21333 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21334 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21335 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21336 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21337 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21338 | sed -e '/myfoosect/!d' -e N`
21339 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21340 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21341 gcc_cv_ld_ro_rw_mix
=read-only
21343 gcc_cv_ld_ro_rw_mix
=read-write
21347 rm -f conftest.
* conftest
[123].
*
21349 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21351 cat >>confdefs.h
<<\_ACEOF
21352 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21356 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21357 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21359 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21360 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21361 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21362 if test "${gcc_cv_as_leb128+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 gcc_cv_as_leb128
=no
21366 if test $in_tree_gas = yes; then
21367 if test $in_tree_gas_is_elf = yes \
21368 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21369 then gcc_cv_as_leb128
=yes
21371 elif test x
$gcc_cv_as != x
; then
21378 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }
21385 # GAS versions before 2.11 do not support uleb128,
21386 # despite appearing to.
21387 # ??? There exists an elf-specific test that will crash
21388 # the assembler. Perhaps it's better to figure out whether
21389 # arbitrary sections are supported and try the test.
21390 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21391 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21392 as_vers
=`echo $as_ver | sed -n \
21393 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21394 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21395 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21396 if test $as_major -eq 2 && test $as_minor -lt 11
21398 else gcc_cv_as_leb128
=yes
21402 echo "configure: failed program was" >&5
21405 rm -f conftest.o conftest.s
21408 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21409 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21410 if test $gcc_cv_as_leb128 = yes; then
21412 cat >>confdefs.h
<<\_ACEOF
21413 #define HAVE_AS_LEB128 1
21418 # Check if we have assembler support for unwind directives.
21419 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21420 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21421 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 gcc_cv_as_cfi_directive
=no
21425 if test x
$gcc_cv_as != x
; then
21431 .cfi_escape 1, 2, 3, 4, 5
21432 .cfi_endproc' > conftest.s
21433 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }
21442 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21443 # read-only and read-write sections, we need to make sure that the
21444 # assembler used emits read-write .eh_frame sections.
21445 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21446 if test "x$gcc_cv_objdump" != x
; then
21447 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21448 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21449 gcc_cv_as_cfi_directive
=no
21451 gcc_cv_as_cfi_directive
=yes
21454 # no objdump, err on the side of caution
21455 gcc_cv_as_cfi_directive
=no
21458 gcc_cv_as_cfi_directive
=yes
21462 gcc_cv_as_cfi_directive
=yes
21466 echo "configure: failed program was" >&5
21469 rm -f conftest.o conftest.s
21472 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21473 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21475 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21476 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21477 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21478 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 gcc_cv_as_cfi_advance_working
=no
21482 if test x
$gcc_cv_as != x
; then
21485 .cfi_adjust_cfa_offset 64
21487 .cfi_adjust_cfa_offset 128
21488 .cfi_endproc' > conftest.s
21489 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }
21497 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21498 |
grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev
/null
; then
21499 gcc_cv_as_cfi_advance_working
=yes
21503 echo "configure: failed program was" >&5
21506 rm -f conftest.o conftest.s
21509 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21510 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21513 # no readelf, err on the side of caution
21514 gcc_cv_as_cfi_advance_working
=no
21517 cat >>confdefs.h
<<_ACEOF
21518 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21519 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21523 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21524 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21525 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 gcc_cv_as_cfi_personality_directive
=no
21529 if test x
$gcc_cv_as != x
; then
21532 .cfi_personality 0, symbol
21533 .cfi_endproc' > conftest.s
21534 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }
21541 gcc_cv_as_cfi_personality_directive
=yes
21543 echo "configure: failed program was" >&5
21546 rm -f conftest.o conftest.s
21549 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21550 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21553 cat >>confdefs.h
<<_ACEOF
21554 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21555 then echo 1; else echo 0; fi`
21559 # GAS versions up to and including 2.11.0 may mis-optimize
21561 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21562 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21563 if test "${gcc_cv_as_eh_frame+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 gcc_cv_as_eh_frame
=no
21567 if test $in_tree_gas = yes; then
21568 if test $in_tree_gas_is_elf = yes \
21569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21570 then gcc_cv_as_eh_frame
=yes
21572 elif test x
$gcc_cv_as != x
; then
21579 .section .eh_frame,"aw",@progbits
21581 .4byte .LECIE1-.LSCIE1
21595 .4byte .LEFDE1-.LASFDE1
21597 .4byte .LASFDE1-__FRAME_BEGIN__
21604 .LEFDE1:' > 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 cat > conftest.lit
<<EOF
21613 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21614 0010 01000000 12000000 18000000 00000000 ................
21615 0020 08000000 04080000 0044 .........D
21617 cat > conftest.big
<<EOF
21618 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21619 0010 00000001 00000012 00000018 00000000 ................
21620 0020 00000008 04000000 0844 .........D
21622 # If the assembler didn't choke, and we can objdump,
21623 # and we got the correct data, then succeed.
21624 # The text in the here-document typically retains its unix-style line
21625 # endings, while the output of objdump will use host line endings.
21626 # Therefore, use diff -b for the comparisons.
21627 if test x
$gcc_cv_objdump != x \
21628 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21629 |
tail -3 > conftest.got \
21630 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21631 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21633 gcc_cv_as_eh_frame
=yes
21634 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636 (eval $ac_try) 2>&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 gcc_cv_as_eh_frame
=buggy
21642 # Uh oh, what do we do now?
21643 gcc_cv_as_eh_frame
=no
21646 echo "configure: failed program was" >&5
21649 rm -f conftest.o conftest.s
21652 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21653 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21656 if test $gcc_cv_as_eh_frame = buggy
; then
21658 cat >>confdefs.h
<<\_ACEOF
21659 #define USE_AS_TRADITIONAL_FORMAT 1
21664 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21665 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21666 if test "${gcc_cv_as_shf_merge+set}" = set; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 gcc_cv_as_shf_merge
=no
21670 if test $in_tree_gas = yes; then
21671 if test $in_tree_gas_is_elf = yes \
21672 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21673 then gcc_cv_as_shf_merge
=yes
21675 elif test x
$gcc_cv_as != x
; then
21676 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21677 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }
21684 gcc_cv_as_shf_merge
=yes
21686 echo "configure: failed program was" >&5
21689 rm -f conftest.o conftest.s
21692 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21693 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21695 if test $gcc_cv_as_shf_merge = no
; then
21696 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21697 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21698 if test "${gcc_cv_as_shf_merge+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 gcc_cv_as_shf_merge
=no
21702 if test $in_tree_gas = yes; then
21703 if test $in_tree_gas_is_elf = yes \
21704 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21705 then gcc_cv_as_shf_merge
=yes
21707 elif test x
$gcc_cv_as != x
; then
21708 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21709 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }
21716 gcc_cv_as_shf_merge
=yes
21718 echo "configure: failed program was" >&5
21721 rm -f conftest.o conftest.s
21724 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21725 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21729 cat >>confdefs.h
<<_ACEOF
21730 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21734 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21735 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21736 if test "${gcc_cv_as_comdat_group+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 gcc_cv_as_comdat_group
=no
21740 if test $in_tree_gas = yes; then
21741 if test $in_tree_gas_is_elf = yes \
21742 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21743 then gcc_cv_as_comdat_group
=yes
21745 elif test x
$gcc_cv_as != x
; then
21746 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21747 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }
21754 gcc_cv_as_comdat_group
=yes
21756 echo "configure: failed program was" >&5
21759 rm -f conftest.o conftest.s
21762 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21763 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21765 if test $gcc_cv_as_comdat_group = yes; then
21766 gcc_cv_as_comdat_group_percent
=no
21768 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21769 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21770 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 gcc_cv_as_comdat_group_percent
=no
21774 if test $in_tree_gas = yes; then
21775 if test $in_tree_gas_is_elf = yes \
21776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21777 then gcc_cv_as_comdat_group_percent
=yes
21779 elif test x
$gcc_cv_as != x
; then
21780 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21781 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }
21788 gcc_cv_as_comdat_group_percent
=yes
21790 echo "configure: failed program was" >&5
21793 rm -f conftest.o conftest.s
21796 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21797 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21800 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21802 if test 0"$ld_date" -lt 20050308; then
21803 if test -n "$ld_date"; then
21804 # If there was date string, but was earlier than 2005-03-08, fail
21806 elif test "$ld_vers_major" -lt 2; then
21808 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21813 # assume linkers other than GNU ld don't support COMDAT group
21816 if test $comdat_group = no
; then
21817 gcc_cv_as_comdat_group
=no
21818 gcc_cv_as_comdat_group_percent
=no
21821 cat >>confdefs.h
<<_ACEOF
21822 #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`
21826 echo "$as_me:$LINENO: checking assembler for line table discriminator support" >&5
21827 echo $ECHO_N "checking assembler for line table discriminator support... $ECHO_C" >&6
21828 if test "${gcc_cv_as_discriminator+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 gcc_cv_as_discriminator
=no
21832 if test $in_tree_gas = yes; then
21833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21834 then gcc_cv_as_discriminator
=yes
21836 elif test x
$gcc_cv_as != x
; then
21839 .loc 1 1 0 discriminator 1' > conftest.s
21840 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842 (eval $ac_try) 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); }; }
21847 gcc_cv_as_discriminator
=yes
21849 echo "configure: failed program was" >&5
21852 rm -f conftest.o conftest.s
21855 echo "$as_me:$LINENO: result: $gcc_cv_as_discriminator" >&5
21856 echo "${ECHO_T}$gcc_cv_as_discriminator" >&6
21857 if test $gcc_cv_as_discriminator = yes; then
21859 cat >>confdefs.h
<<\_ACEOF
21860 #define HAVE_GAS_DISCRIMINATOR 1
21865 # Thread-local storage - the check is heavily parameterized.
21873 .section ".tdata","awT",@progbits
21876 ldq $27,__tls_get_addr($29) !literal!1
21877 lda $16,foo($29) !tlsgd!1
21878 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21879 ldq $27,__tls_get_addr($29) !literal!2
21880 lda $16,foo($29) !tlsldm!2
21881 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21882 ldq $1,foo($29) !gotdtprel
21883 ldah $2,foo($29) !dtprelhi
21884 lda $3,foo($2) !dtprello
21885 lda $4,foo($29) !dtprel
21886 ldq $1,foo($29) !gottprel
21887 ldah $2,foo($29) !tprelhi
21888 lda $3,foo($2) !tprello
21889 lda $4,foo($29) !tprel'
21892 tls_as_opt
=--fatal-warnings
21894 cris-
*-*|crisv32-
*-*)
21896 .section ".tdata","awT",@progbits
21903 tls_as_opt
=--fatal-warnings
21907 .section ".tdata","awT",@progbits
21910 call #gettlsoff(x)'
21919 .section ".tdata","awT",@progbits
21923 addil LT%foo-$tls_gdidx$,gp
21924 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21927 addil LT%foo-$tls_ldidx$,gp
21929 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21930 addil LR%foo-$tls_dtpoff$,%ret0
21931 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21933 addil LT%foo-$tls_ieoff$,gp
21934 ldw RT%foo-$tls_ieoff$(%r1),%t2
21937 addil LR%foo-$tls_leoff$,%t1
21938 ldo RR%foo-$tls_leoff$(%r1),%t2'
21941 tls_as_opt
=--fatal-warnings
21945 .section ".tdata","awT",%progbits
21948 .word foo(gottpoff)
21958 .section ".tdata","awT",@progbits
21962 leal foo@TLSGD(,%ebx,1), %eax
21963 leal foo@TLSLDM(%ebx), %eax
21964 leal foo@DTPOFF(%eax), %edx
21965 movl foo@GOTTPOFF(%ebx), %eax
21966 subl foo@GOTTPOFF(%ebx), %eax
21967 addl foo@GOTNTPOFF(%ebx), %eax
21968 movl foo@INDNTPOFF, %eax
21969 movl $foo@TPOFF, %eax
21970 subl $foo@TPOFF, %eax
21971 leal foo@NTPOFF(%ecx), %eax'
21974 tls_as_opt
=--fatal-warnings
21978 .section ".tdata","awT",@progbits
21982 leaq foo@TLSGD(%rip), %rdi
21983 leaq foo@TLSLD(%rip), %rdi
21984 leaq foo@DTPOFF(%rax), %rdx
21985 movq foo@GOTTPOFF(%rip), %rax
21986 movq $foo@TPOFF, %rax'
21989 tls_as_opt
=--fatal-warnings
21993 .section ".tdata","awT",@progbits
21996 addl r16 = @ltoff(@dtpmod(foo#)), gp
21997 addl r17 = @ltoff(@dtprel(foo#)), gp
21998 addl r18 = @ltoff(@tprel(foo#)), gp
21999 addl r19 = @dtprel(foo#), gp
22000 adds r21 = @dtprel(foo#), r13
22001 movl r23 = @dtprel(foo#)
22002 addl r20 = @tprel(foo#), gp
22003 adds r22 = @tprel(foo#), r13
22004 movl r24 = @tprel(foo#)'
22007 tls_as_opt
=--fatal-warnings
22011 .section .tdata,"awT",@progbits
22015 addiu $4, $28, %tlsgd(x)
22016 addiu $4, $28, %tlsldm(x)
22017 lui $4, %dtprel_hi(x)
22018 addiu $4, $4, %dtprel_lo(x)
22019 lw $4, %gottprel(x)($28)
22020 lui $4, %tprel_hi(x)
22021 addiu $4, $4, %tprel_lo(x)'
22024 tls_as_opt
='-32 --fatal-warnings'
22028 .section .tdata,"awT",@progbits
22033 move.l x@TLSGD(%a5),%a0
22034 move.l x@TLSLDM(%a5),%a0
22035 move.l x@TLSLDO(%a5),%a0
22036 move.l x@TLSIE(%a5),%a0
22037 move.l x@TLSLE(%a5),%a0'
22040 tls_as_opt
='--fatal-warnings'
22044 .section ".tdata","awT",@progbits
22052 addi 3,31,ld0@got@tlsgd
22054 addi 3,31,x1@got@tlsld
22057 addis 9,3,x2@dtprel@ha
22058 addi 9,9,x2@dtprel@l
22059 lwz 9,x3@got@tprel(31)
22062 addis 9,2,x2@tprel@ha
22063 addi 9,9,x2@tprel@l'
22066 tls_as_opt
="-a32 --fatal-warnings"
22070 .section ".tdata","awT",@progbits
22078 addi 3,2,ld0@got@tlsgd
22084 addi 3,2,x1@got@tlsld
22090 addis 9,3,x2@dtprel@ha
22091 addi 9,9,x2@dtprel@l
22094 ld 9,x3@got@dtprel(2)
22100 tls_as_opt
="-a64 --fatal-warnings"
22104 .section ".tdata","awT",@progbits
22111 .long foo@GOTNTPOFF
22112 .long foo@INDNTPOFF
22113 l %r1,foo@GOTNTPOFF(%r12)
22114 l %r1,0(%r1):tls_load:foo
22115 bas %r14,0(%r1,%r13):tls_gdcall:foo
22116 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22119 tls_as_opt
="-m31 --fatal-warnings"
22123 .section ".tdata","awT",@progbits
22130 .quad foo@GOTNTPOFF
22131 lg %r1,foo@GOTNTPOFF(%r12)
22132 larl %r1,foo@INDNTPOFF
22133 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22134 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22137 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22139 sh-
*-* | sh
[34]-*-*)
22141 .section ".tdata","awT",@progbits
22151 tls_as_opt
=--fatal-warnings
22155 sparc
*-sun-solaris2.
[56789]*)
22156 # TLS was introduced in the Solaris 9 4/04 release but
22157 # we do not enable it by default on Solaris 9 either.
22158 if test "x$enable_tls" = xyes
; then
22164 sparc
*-sun-solaris2.
*)
22171 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22173 .section ".tdata",#alloc,#write,#tls
22176 sethi %tgd_hi22(foo), %o0
22177 add %o0, %tgd_lo10(foo), %o1
22178 add %l7, %o1, %o0, %tgd_add(foo)
22179 call __tls_get_addr, %tgd_call(foo)
22180 sethi %tldm_hi22(foo), %l1
22181 add %l1, %tldm_lo10(foo), %l2
22182 add %l7, %l2, %o0, %tldm_add(foo)
22183 call __tls_get_addr, %tldm_call(foo)
22184 sethi %tldo_hix22(foo), %l3
22185 xor %l3, %tldo_lox10(foo), %l4
22186 add %o0, %l4, %l5, %tldo_add(foo)
22187 sethi %tie_hi22(foo), %o3
22188 add %o3, %tie_lo10(foo), %o3
22189 ld [%l7 + %o3], %o2, %tie_ld(foo)
22190 add %g7, %o2, %o4, %tie_add(foo)
22191 sethi %tle_hix22(foo), %l1
22192 xor %l1, %tle_lox10(foo), %o5
22193 ld [%g7 + %o5], %o1'
22198 .section ".tdata","awT",@progbits
22201 sethi %tgd_hi22(foo), %o0
22202 add %o0, %tgd_lo10(foo), %o1
22203 add %l7, %o1, %o0, %tgd_add(foo)
22204 call __tls_get_addr, %tgd_call(foo)
22205 sethi %tldm_hi22(foo), %l1
22206 add %l1, %tldm_lo10(foo), %l2
22207 add %l7, %l2, %o0, %tldm_add(foo)
22208 call __tls_get_addr, %tldm_call(foo)
22209 sethi %tldo_hix22(foo), %l3
22210 xor %l3, %tldo_lox10(foo), %l4
22211 add %o0, %l4, %l5, %tldo_add(foo)
22212 sethi %tie_hi22(foo), %o3
22213 add %o3, %tie_lo10(foo), %o3
22214 ld [%l7 + %o3], %o2, %tie_ld(foo)
22215 add %g7, %o2, %o4, %tie_add(foo)
22216 sethi %tle_hix22(foo), %l1
22217 xor %l1, %tle_lox10(foo), %o5
22218 ld [%g7 + %o5], %o1'
22221 tls_as_opt
="-32 --fatal-warnings"
22226 .section ".tdata","awT",@progbits
22229 movi a8, foo@TLSFUNC
22230 movi a10, foo@TLSARG
22231 callx8.tls a8, foo@TLSCALL'
22237 if test "x$enable_tls" = xno
; then
22238 : # TLS explicitly disabled.
22239 elif test "x$enable_tls" = xyes
; then
22240 set_have_as_tls
=yes # TLS explicitly enabled.
22241 elif test -z "$tls_first_major"; then
22242 : # If we don't have a check, assume no support.
22244 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22245 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22246 if test "${gcc_cv_as_tls+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 if test $in_tree_gas = yes; then
22251 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22252 then gcc_cv_as_tls
=yes
22254 elif test x
$gcc_cv_as != x
; then
22255 echo "$conftest_s" > conftest.s
22256 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }
22265 echo "configure: failed program was" >&5
22268 rm -f conftest.o conftest.s
22271 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22272 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22273 if test $gcc_cv_as_tls = yes; then
22274 set_have_as_tls
=yes
22277 if test $set_have_as_tls = yes ; then
22279 cat >>confdefs.h
<<\_ACEOF
22280 #define HAVE_AS_TLS 1
22285 # Target-specific assembler checks.
22287 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22288 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22289 gcc_cv_ld_static_dynamic
=no
22290 if test $in_tree_ld = yes ; then
22291 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; then
22292 gcc_cv_ld_static_dynamic
=yes
22294 elif test x
$gcc_cv_ld != x
; then
22295 # Check if linker supports -Bstatic/-Bdynamic option
22296 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22297 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22298 gcc_cv_ld_static_dynamic
=yes
22301 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22303 cat >>confdefs.h
<<\_ACEOF
22304 #define HAVE_LD_STATIC_DYNAMIC 1
22308 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22309 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22311 if test x
"$demangler_in_ld" = xyes
; then
22312 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22313 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22314 gcc_cv_ld_demangle
=no
22315 if test $in_tree_ld = yes; then
22316 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 \
22317 gcc_cv_ld_demangle
=yes
22319 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22320 # Check if the GNU linker supports --demangle option
22321 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22322 gcc_cv_ld_demangle
=yes
22325 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22327 cat >>confdefs.h
<<\_ACEOF
22328 #define HAVE_LD_DEMANGLE 1
22332 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22333 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22337 # All TARGET_ABI_OSF targets.
22338 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22339 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22340 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22341 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 gcc_cv_as_alpha_explicit_relocs
=no
22345 if test $in_tree_gas = yes; then
22346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22347 then gcc_cv_as_alpha_explicit_relocs
=yes
22349 elif test x
$gcc_cv_as != x
; then
22350 echo ' .set nomacro
22352 extbl $3, $2, $3 !lituse_bytoff!1
22353 ldq $2, a($29) !literal!1
22354 ldq $4, b($29) !literal!2
22355 ldq_u $3, 0($2) !lituse_base!1
22356 ldq $27, f($29) !literal!5
22357 jsr $26, ($27), f !lituse_jsr!5
22358 ldah $29, 0($26) !gpdisp!3
22359 lda $0, c($29) !gprel
22360 ldah $1, d($29) !gprelhigh
22361 lda $1, d($1) !gprellow
22362 lda $29, 0($29) !gpdisp!3' > conftest.s
22363 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }
22370 gcc_cv_as_alpha_explicit_relocs
=yes
22372 echo "configure: failed program was" >&5
22375 rm -f conftest.o conftest.s
22378 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22379 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22380 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22382 cat >>confdefs.h
<<\_ACEOF
22383 #define HAVE_AS_EXPLICIT_RELOCS 1
22387 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22388 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22389 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 gcc_cv_as_alpha_jsrdirect_relocs
=no
22393 if test $in_tree_gas = yes; then
22394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22395 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22397 elif test x
$gcc_cv_as != x
; then
22398 echo ' .set nomacro
22400 ldq $27, a($29) !literal!1
22401 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22402 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }
22409 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22411 echo "configure: failed program was" >&5
22414 rm -f conftest.o conftest.s
22417 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22418 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22419 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22421 cat >>confdefs.h
<<\_ACEOF
22422 #define HAVE_AS_JSRDIRECT_RELOCS 1
22429 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22430 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22431 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 gcc_cv_as_cris_no_mul_bug
=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22437 then gcc_cv_as_cris_no_mul_bug
=yes
22439 elif test x
$gcc_cv_as != x
; then
22440 echo '.text' > conftest.s
22441 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; }
22448 gcc_cv_as_cris_no_mul_bug
=yes
22450 echo "configure: failed program was" >&5
22453 rm -f conftest.o conftest.s
22456 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22457 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22458 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22460 cat >>confdefs.h
<<\_ACEOF
22461 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22468 echo "$as_me:$LINENO: checking assembler for .register" >&5
22469 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22470 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 gcc_cv_as_sparc_register_op
=no
22474 if test x
$gcc_cv_as != x
; then
22475 echo '.register %g2, #scratch' > conftest.s
22476 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }
22483 gcc_cv_as_sparc_register_op
=yes
22485 echo "configure: failed program was" >&5
22488 rm -f conftest.o conftest.s
22491 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22492 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22493 if test $gcc_cv_as_sparc_register_op = yes; then
22495 cat >>confdefs.h
<<\_ACEOF
22496 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22501 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22502 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22503 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 gcc_cv_as_sparc_relax
=no
22507 if test x
$gcc_cv_as != x
; then
22508 echo '.text' > conftest.s
22509 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; }
22516 gcc_cv_as_sparc_relax
=yes
22518 echo "configure: failed program was" >&5
22521 rm -f conftest.o conftest.s
22524 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22525 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22526 if test $gcc_cv_as_sparc_relax = yes; then
22528 cat >>confdefs.h
<<\_ACEOF
22529 #define HAVE_AS_RELAX_OPTION 1
22534 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22535 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22536 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22537 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 gcc_cv_as_sparc_ua_pcrel
=no
22540 if test x
$gcc_cv_as != x
; then
22547 .uaword %r_disp32(foo)' > conftest.s
22548 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }
22555 if test x
$gcc_cv_ld != x \
22556 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22557 gcc_cv_as_sparc_ua_pcrel
=yes
22561 echo "configure: failed program was" >&5
22564 rm -f conftest.o conftest.s
22567 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22568 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22569 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22571 cat >>confdefs.h
<<\_ACEOF
22572 #define HAVE_AS_SPARC_UA_PCREL 1
22576 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22577 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22578 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22582 if test x
$gcc_cv_as != x
; then
22586 .uaword %r_disp32(foo)
22587 .byte 0x32, 0x33, 0x34
22591 .skip 4' > conftest.s
22592 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; }
22599 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22600 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22601 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22602 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22603 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22604 |
grep 'DISP32' > /dev
/null
2>&1; then
22607 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22612 echo "configure: failed program was" >&5
22615 rm -f conftest.o conftest.s
22618 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22619 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22620 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22622 cat >>confdefs.h
<<\_ACEOF
22623 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22628 fi # unaligned pcrel relocs
22630 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22631 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22632 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 gcc_cv_as_sparc_offsetable_lo10
=no
22636 if test x
$gcc_cv_as != x
; then
22638 or %g1, %lo(ab) + 12, %g1
22639 or %g1, %lo(ab + 12), %g1' > conftest.s
22640 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }
22647 if test x
$gcc_cv_objdump != x \
22648 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22649 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22650 gcc_cv_as_sparc_offsetable_lo10
=yes
22653 echo "configure: failed program was" >&5
22656 rm -f conftest.o conftest.s
22659 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22660 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22661 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22663 cat >>confdefs.h
<<\_ACEOF
22664 #define HAVE_AS_OFFSETABLE_LO10 1
22670 i
[34567]86-*-* | x86_64-
*-*)
22672 cygwin
* | pe | mingw32
*)
22673 # Recent binutils allows the three-operand form of ".comm" on PE. This
22674 # definition is used unconditionally to initialise the default state of
22675 # the target option variable that governs usage of the feature.
22676 echo "$as_me:$LINENO: checking assembler for .comm with alignment" >&5
22677 echo $ECHO_N "checking assembler for .comm with alignment... $ECHO_C" >&6
22678 if test "${gcc_cv_as_comm_has_align+set}" = set; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22681 gcc_cv_as_comm_has_align
=no
22682 if test $in_tree_gas = yes; then
22683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22684 then gcc_cv_as_comm_has_align
=yes
22686 elif test x
$gcc_cv_as != x
; then
22687 echo '.comm foo,1,32' > conftest.s
22688 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }
22695 gcc_cv_as_comm_has_align
=yes
22697 echo "configure: failed program was" >&5
22700 rm -f conftest.o conftest.s
22703 echo "$as_me:$LINENO: result: $gcc_cv_as_comm_has_align" >&5
22704 echo "${ECHO_T}$gcc_cv_as_comm_has_align" >&6
22707 cat >>confdefs.h
<<_ACEOF
22708 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22711 # Used for DWARF 2 in PE
22712 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22713 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22714 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 gcc_cv_as_ix86_pe_secrel32
=no
22718 if test $in_tree_gas = yes; then
22719 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22720 then gcc_cv_as_ix86_pe_secrel32
=yes
22722 elif test x
$gcc_cv_as != x
; then
22726 .secrel32 foo' > conftest.s
22727 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }
22734 if test x
$gcc_cv_ld != x \
22735 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22736 gcc_cv_as_ix86_pe_secrel32
=yes
22740 echo "configure: failed program was" >&5
22743 rm -f conftest.o conftest.s
22746 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22747 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22748 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22750 cat >>confdefs.h
<<\_ACEOF
22751 #define HAVE_GAS_PE_SECREL32_RELOC 1
22758 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22759 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22760 if test "${gcc_cv_as_ix86_filds+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 gcc_cv_as_ix86_filds
=no
22764 if test x
$gcc_cv_as != x
; then
22765 echo 'filds mem; fists mem' > conftest.s
22766 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; }
22773 gcc_cv_as_ix86_filds
=yes
22775 echo "configure: failed program was" >&5
22778 rm -f conftest.o conftest.s
22781 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
22782 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
22783 if test $gcc_cv_as_ix86_filds = yes; then
22785 cat >>confdefs.h
<<\_ACEOF
22786 #define HAVE_AS_IX86_FILDS 1
22791 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
22792 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
22793 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 gcc_cv_as_ix86_fildq
=no
22797 if test x
$gcc_cv_as != x
; then
22798 echo 'fildq mem; fistpq mem' > conftest.s
22799 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; }
22806 gcc_cv_as_ix86_fildq
=yes
22808 echo "configure: failed program was" >&5
22811 rm -f conftest.o conftest.s
22814 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
22815 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
22816 if test $gcc_cv_as_ix86_fildq = yes; then
22818 cat >>confdefs.h
<<\_ACEOF
22819 #define HAVE_AS_IX86_FILDQ 1
22824 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22825 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22826 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 gcc_cv_as_ix86_cmov_sun_syntax
=no
22830 if test x
$gcc_cv_as != x
; then
22831 echo 'cmovl.l %edx, %eax' > conftest.s
22832 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }
22839 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22841 echo "configure: failed program was" >&5
22844 rm -f conftest.o conftest.s
22847 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22848 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22849 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22851 cat >>confdefs.h
<<\_ACEOF
22852 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22857 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22858 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22859 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 gcc_cv_as_ix86_ffreep
=no
22863 if test x
$gcc_cv_as != x
; then
22864 echo 'ffreep %st(1)' > conftest.s
22865 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; }
22872 gcc_cv_as_ix86_ffreep
=yes
22874 echo "configure: failed program was" >&5
22877 rm -f conftest.o conftest.s
22880 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22881 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22882 if test $gcc_cv_as_ix86_ffreep = yes; then
22884 cat >>confdefs.h
<<\_ACEOF
22885 #define HAVE_AS_IX86_FFREEP 1
22890 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22891 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22892 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 gcc_cv_as_ix86_sahf
=no
22896 if test x
$gcc_cv_as != x
; then
22897 echo 'sahf' > conftest.s
22898 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; }
22905 gcc_cv_as_ix86_sahf
=yes
22907 echo "configure: failed program was" >&5
22910 rm -f conftest.o conftest.s
22913 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22914 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22915 if test $gcc_cv_as_ix86_sahf = yes; then
22917 cat >>confdefs.h
<<\_ACEOF
22918 #define HAVE_AS_IX86_SAHF 1
22923 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22924 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22925 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22928 gcc_cv_as_ix86_diff_sect_delta
=no
22929 if test x
$gcc_cv_as != x
; then
22930 echo '.section .rodata
22936 .L2: nop' > conftest.s
22937 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; }
22944 gcc_cv_as_ix86_diff_sect_delta
=yes
22946 echo "configure: failed program was" >&5
22949 rm -f conftest.o conftest.s
22952 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22953 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22954 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22956 cat >>confdefs.h
<<\_ACEOF
22957 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22962 # This one is used unconditionally by i386.[ch]; it is to be defined
22963 # to 1 if the feature is present, 0 otherwise.
22964 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22965 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22966 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22969 gcc_cv_as_ix86_gotoff_in_data
=no
22970 if test $in_tree_gas = yes; then
22971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22972 then gcc_cv_as_ix86_gotoff_in_data
=yes
22974 elif test x
$gcc_cv_as != x
; then
22979 .long .L0@GOTOFF' > conftest.s
22980 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }
22987 gcc_cv_as_ix86_gotoff_in_data
=yes
22989 echo "configure: failed program was" >&5
22992 rm -f conftest.o conftest.s
22995 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22996 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22999 cat >>confdefs.h
<<_ACEOF
23000 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23006 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
23007 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
23008 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23011 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23012 if test $in_tree_gas = yes; then
23013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23014 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23016 elif test x
$gcc_cv_as != x
; then
23018 addl r15 = @ltoffx(x#), gp
23020 ld8.mov r16 = [r15], x#' > conftest.s
23021 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; }
23028 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23030 echo "configure: failed program was" >&5
23033 rm -f conftest.o conftest.s
23036 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23037 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
23038 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23040 cat >>confdefs.h
<<\_ACEOF
23041 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
23050 *-*-aix*) conftest_s
=' .machine "pwr5"
23054 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
23055 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
23056 if test "${gcc_cv_as_machine_directive+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23059 gcc_cv_as_machine_directive
=no
23060 if test x
$gcc_cv_as != x
; then
23061 echo ' .machine ppc7400' > conftest.s
23062 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; }
23069 gcc_cv_as_machine_directive
=yes
23071 echo "configure: failed program was" >&5
23074 rm -f conftest.o conftest.s
23077 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
23078 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
23080 if test x
$gcc_cv_as_machine_directive != xyes
; then
23081 echo "*** This target requires an assembler supporting \".machine\"" >&2
23082 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23083 test x
$build = x
$target && exit 1
23087 *) conftest_s
=' .machine power4
23092 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
23093 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
23094 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 gcc_cv_as_powerpc_mfcrf
=no
23098 if test $in_tree_gas = yes; then
23099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23100 then gcc_cv_as_powerpc_mfcrf
=yes
23102 elif test x
$gcc_cv_as != x
; then
23103 echo "$conftest_s" > conftest.s
23104 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }
23111 gcc_cv_as_powerpc_mfcrf
=yes
23113 echo "configure: failed program was" >&5
23116 rm -f conftest.o conftest.s
23119 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23120 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23121 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23123 cat >>confdefs.h
<<\_ACEOF
23124 #define HAVE_AS_MFCRF 1
23130 *-*-aix*) conftest_s
=' .machine "pwr5"
23133 *) conftest_s
=' .machine power5
23138 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23139 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23140 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 gcc_cv_as_powerpc_popcntb
=no
23144 if test $in_tree_gas = yes; then
23145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23146 then gcc_cv_as_powerpc_popcntb
=yes
23148 elif test x
$gcc_cv_as != x
; then
23149 echo "$conftest_s" > conftest.s
23150 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152 (eval $ac_try) 2>&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); }; }
23157 gcc_cv_as_powerpc_popcntb
=yes
23159 echo "configure: failed program was" >&5
23162 rm -f conftest.o conftest.s
23165 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23166 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23167 if test $gcc_cv_as_powerpc_popcntb = yes; then
23169 cat >>confdefs.h
<<\_ACEOF
23170 #define HAVE_AS_POPCNTB 1
23176 *-*-aix*) conftest_s
=' .machine "pwr5x"
23179 *) conftest_s
=' .machine power5
23184 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23185 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23186 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 gcc_cv_as_powerpc_fprnd
=no
23190 if test $in_tree_gas = yes; then
23191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23192 then gcc_cv_as_powerpc_fprnd
=yes
23194 elif test x
$gcc_cv_as != x
; then
23195 echo "$conftest_s" > conftest.s
23196 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }
23203 gcc_cv_as_powerpc_fprnd
=yes
23205 echo "configure: failed program was" >&5
23208 rm -f conftest.o conftest.s
23211 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23212 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23213 if test $gcc_cv_as_powerpc_fprnd = yes; then
23215 cat >>confdefs.h
<<\_ACEOF
23216 #define HAVE_AS_FPRND 1
23222 *-*-aix*) conftest_s
=' .machine "pwr6"
23225 *) conftest_s
=' .machine power6
23230 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23231 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23232 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 gcc_cv_as_powerpc_mfpgpr
=no
23236 if test $in_tree_gas = yes; then
23237 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23238 then gcc_cv_as_powerpc_mfpgpr
=yes
23240 elif test x
$gcc_cv_as != x
; then
23241 echo "$conftest_s" > conftest.s
23242 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }
23249 gcc_cv_as_powerpc_mfpgpr
=yes
23251 echo "configure: failed program was" >&5
23254 rm -f conftest.o conftest.s
23257 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23258 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23259 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23261 cat >>confdefs.h
<<\_ACEOF
23262 #define HAVE_AS_MFPGPR 1
23268 *-*-aix*) conftest_s
=' .csect .text[PR]
23270 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23274 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23275 *) conftest_s
=' .text
23277 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23280 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23281 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23282 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 gcc_cv_as_powerpc_rel16
=no
23286 if test $in_tree_gas = yes; then
23287 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23288 then gcc_cv_as_powerpc_rel16
=yes
23290 elif test x
$gcc_cv_as != x
; then
23291 echo "$conftest_s" > conftest.s
23292 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; }
23299 gcc_cv_as_powerpc_rel16
=yes
23301 echo "configure: failed program was" >&5
23304 rm -f conftest.o conftest.s
23307 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23308 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23309 if test $gcc_cv_as_powerpc_rel16 = yes; then
23311 cat >>confdefs.h
<<\_ACEOF
23312 #define HAVE_AS_REL16 1
23318 *-*-aix*) conftest_s
=' .machine "pwr6"
23321 *) conftest_s
=' .machine power6
23326 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23327 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23328 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23329 echo $ECHO_N "(cached) $ECHO_C" >&6
23331 gcc_cv_as_powerpc_cmpb
=no
23332 if test $in_tree_gas = yes; then
23333 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23334 then gcc_cv_as_powerpc_cmpb
=yes
23336 elif test x
$gcc_cv_as != x
; then
23337 echo "$conftest_s" > conftest.s
23338 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }
23345 gcc_cv_as_powerpc_cmpb
=yes
23347 echo "configure: failed program was" >&5
23350 rm -f conftest.o conftest.s
23353 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23354 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23355 if test $gcc_cv_as_powerpc_cmpb = yes; then
23357 cat >>confdefs.h
<<\_ACEOF
23358 #define HAVE_AS_CMPB 1
23364 *-*-aix*) conftest_s
=' .machine "pwr6"
23367 *) conftest_s
=' .machine power6
23372 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23373 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23374 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 gcc_cv_as_powerpc_dfp
=no
23378 if test $in_tree_gas = yes; then
23379 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23380 then gcc_cv_as_powerpc_dfp
=yes
23382 elif test x
$gcc_cv_as != x
; then
23383 echo "$conftest_s" > conftest.s
23384 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }
23391 gcc_cv_as_powerpc_dfp
=yes
23393 echo "configure: failed program was" >&5
23396 rm -f conftest.o conftest.s
23399 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23400 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23401 if test $gcc_cv_as_powerpc_dfp = yes; then
23403 cat >>confdefs.h
<<\_ACEOF
23404 #define HAVE_AS_DFP 1
23410 *-*-aix*) conftest_s
=' .machine "pwr7"
23413 *) conftest_s
=' .machine power7
23418 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23419 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23420 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 gcc_cv_as_powerpc_vsx
=no
23424 if test $in_tree_gas = yes; then
23425 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23426 then gcc_cv_as_powerpc_vsx
=yes
23428 elif test x
$gcc_cv_as != x
; then
23429 echo "$conftest_s" > conftest.s
23430 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }
23437 gcc_cv_as_powerpc_vsx
=yes
23439 echo "configure: failed program was" >&5
23442 rm -f conftest.o conftest.s
23445 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23446 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23447 if test $gcc_cv_as_powerpc_vsx = yes; then
23449 cat >>confdefs.h
<<\_ACEOF
23450 #define HAVE_AS_VSX 1
23455 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23456 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23457 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 gcc_cv_as_powerpc_gnu_attribute
=no
23461 if test $in_tree_gas = yes; then
23462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23463 then gcc_cv_as_powerpc_gnu_attribute
=yes
23465 elif test x
$gcc_cv_as != x
; then
23466 echo '.gnu_attribute 4,1' > conftest.s
23467 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }
23474 gcc_cv_as_powerpc_gnu_attribute
=yes
23476 echo "configure: failed program was" >&5
23479 rm -f conftest.o conftest.s
23482 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23483 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23484 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23486 cat >>confdefs.h
<<\_ACEOF
23487 #define HAVE_AS_GNU_ATTRIBUTE 1
23492 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23493 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23494 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23497 gcc_cv_as_powerpc_tls_markers
=no
23498 if test $in_tree_gas = yes; then
23499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23500 then gcc_cv_as_powerpc_tls_markers
=yes
23502 elif test x
$gcc_cv_as != x
; then
23503 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23504 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }
23511 gcc_cv_as_powerpc_tls_markers
=yes
23513 echo "configure: failed program was" >&5
23516 rm -f conftest.o conftest.s
23519 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23520 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23521 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23523 cat >>confdefs.h
<<\_ACEOF
23524 #define HAVE_AS_TLS_MARKERS 1
23531 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23532 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23533 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23534 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 gcc_cv_as_mips_explicit_relocs
=no
23537 if test $in_tree_gas = yes; then
23538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23539 then gcc_cv_as_mips_explicit_relocs
=yes
23541 elif test x
$gcc_cv_as != x
; then
23542 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23543 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }
23550 gcc_cv_as_mips_explicit_relocs
=yes
23552 echo "configure: failed program was" >&5
23555 rm -f conftest.o conftest.s
23558 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23559 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23560 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23561 if test x
$target_cpu_default = x
23562 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23563 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23566 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23567 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23568 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23569 echo $ECHO_N "(cached) $ECHO_C" >&6
23571 gcc_cv_as_mips_no_shared
=no
23572 if test $in_tree_gas = yes; then
23573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23574 then gcc_cv_as_mips_no_shared
=yes
23576 elif test x
$gcc_cv_as != x
; then
23577 echo 'nop' > conftest.s
23578 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }
23585 gcc_cv_as_mips_no_shared
=yes
23587 echo "configure: failed program was" >&5
23590 rm -f conftest.o conftest.s
23593 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23594 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23595 if test $gcc_cv_as_mips_no_shared = yes; then
23597 cat >>confdefs.h
<<\_ACEOF
23598 #define HAVE_AS_NO_SHARED 1
23603 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23604 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23605 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 gcc_cv_as_mips_gnu_attribute
=no
23609 if test $in_tree_gas = yes; then
23610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23611 then gcc_cv_as_mips_gnu_attribute
=yes
23613 elif test x
$gcc_cv_as != x
; then
23614 echo '.gnu_attribute 4,1' > conftest.s
23615 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }
23622 gcc_cv_as_mips_gnu_attribute
=yes
23624 echo "configure: failed program was" >&5
23627 rm -f conftest.o conftest.s
23630 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23631 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23632 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23634 cat >>confdefs.h
<<\_ACEOF
23635 #define HAVE_AS_GNU_ATTRIBUTE 1
23640 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23641 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23642 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23643 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 gcc_cv_as_mips_dtprelword
=no
23646 if test $in_tree_gas = yes; then
23647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23648 then gcc_cv_as_mips_dtprelword
=yes
23650 elif test x
$gcc_cv_as != x
; then
23651 echo '.section .tdata,"awT",@progbits
23655 .dtprelword x+0x8000' > conftest.s
23656 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }
23663 gcc_cv_as_mips_dtprelword
=yes
23665 echo "configure: failed program was" >&5
23668 rm -f conftest.o conftest.s
23671 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23672 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23673 if test $gcc_cv_as_mips_dtprelword = yes; then
23675 cat >>confdefs.h
<<\_ACEOF
23676 #define HAVE_AS_DTPRELWORD 1
23683 # Mips and HP-UX need the GNU assembler.
23684 # Linux on IA64 might be able to use the Intel assembler.
23687 mips
*-*-* |
*-*-hpux* )
23688 if test x
$gas_flag = xyes \
23689 ||
test x
"$host" != x
"$build" \
23690 ||
test ! -x "$gcc_cv_as" \
23691 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
23694 echo "*** This configuration requires the GNU assembler" >&2
23700 # ??? Not all targets support dwarf2 debug_line, even within a version
23701 # of gas. Moreover, we need to emit a valid instruction to trigger any
23702 # info to the output file. So, as supported targets are added to gas 2.11,
23703 # add some instruction here to (also) show we expect this might work.
23704 # ??? Once 2.11 is released, probably need to add first known working
23705 # version to the per-target configury.
23707 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
23708 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
23709 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
23710 | spu-
*-* | fido
*-*-* | m32c-
*-*)
23713 ia64
*-*-* | s390
*-*-*)
23720 if test x
"$insn" != x
; then
23722 .file 1 \"conftest.s\"
23725 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23726 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23727 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23728 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 gcc_cv_as_dwarf2_debug_line
=no
23731 if test $in_tree_gas = yes; then
23732 if test $in_tree_gas_is_elf = yes \
23733 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23734 then gcc_cv_as_dwarf2_debug_line
=yes
23736 elif test x
$gcc_cv_as != x
; then
23737 echo "$conftest_s" > conftest.s
23738 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; }
23745 if test x
$gcc_cv_objdump != x \
23746 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
23747 |
grep debug_line
> /dev
/null
2>&1; then
23748 gcc_cv_as_dwarf2_debug_line
=yes
23751 echo "configure: failed program was" >&5
23754 rm -f conftest.o conftest.s
23757 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23758 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23761 # The .debug_line file table must be in the exact order that
23762 # we specified the files, since these indices are also used
23763 # by DW_AT_decl_file. Approximate this test by testing if
23764 # the assembler bitches if the same index is assigned twice.
23765 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23766 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23767 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23768 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 gcc_cv_as_dwarf2_file_buggy
=no
23771 if test x
$gcc_cv_as != x
; then
23772 echo ' .file 1 "foo.s"
23773 .file 1 "bar.s"' > conftest.s
23774 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23776 (eval $ac_try) 2>&5
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); }; }
23781 gcc_cv_as_dwarf2_file_buggy
=yes
23783 echo "configure: failed program was" >&5
23786 rm -f conftest.o conftest.s
23789 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23790 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23793 if test $gcc_cv_as_dwarf2_debug_line = yes \
23794 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
23796 cat >>confdefs.h
<<\_ACEOF
23797 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23802 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23803 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23804 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 gcc_cv_as_gdwarf2_flag
=no
23808 if test $in_tree_gas = yes; then
23809 if test $in_tree_gas_is_elf = yes \
23810 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23811 then gcc_cv_as_gdwarf2_flag
=yes
23813 elif test x
$gcc_cv_as != x
; then
23814 echo "$insn" > conftest.s
23815 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }
23822 gcc_cv_as_gdwarf2_flag
=yes
23824 echo "configure: failed program was" >&5
23827 rm -f conftest.o conftest.s
23830 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23831 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23832 if test $gcc_cv_as_gdwarf2_flag = yes; then
23834 cat >>confdefs.h
<<\_ACEOF
23835 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23840 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23841 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23842 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 gcc_cv_as_gstabs_flag
=no
23846 if test $in_tree_gas = yes; then
23847 if test $in_tree_gas_is_elf = yes \
23848 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23849 then gcc_cv_as_gstabs_flag
=yes
23851 elif test x
$gcc_cv_as != x
; then
23852 echo "$insn" > conftest.s
23853 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855 (eval $ac_try) 2>&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); }; }
23860 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23861 # and warns about it, but still exits successfully. So check for
23863 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; }
23870 else gcc_cv_as_gstabs_flag
=yes
23873 echo "configure: failed program was" >&5
23876 rm -f conftest.o conftest.s
23879 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23880 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23881 if test $gcc_cv_as_gstabs_flag = yes; then
23883 cat >>confdefs.h
<<\_ACEOF
23884 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23889 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23890 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23891 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23894 gcc_cv_as_debug_prefix_map_flag
=no
23895 if test $in_tree_gas = yes; then
23896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23897 then gcc_cv_as_debug_prefix_map_flag
=yes
23899 elif test x
$gcc_cv_as != x
; then
23900 echo "$insn" > conftest.s
23901 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; }
23908 gcc_cv_as_debug_prefix_map_flag
=yes
23910 echo "configure: failed program was" >&5
23913 rm -f conftest.o conftest.s
23916 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23917 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23918 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23920 cat >>confdefs.h
<<\_ACEOF
23921 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23927 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23928 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23929 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 gcc_cv_as_lcomm_with_alignment
=no
23933 if test x
$gcc_cv_as != x
; then
23934 echo '.lcomm bar,4,16' > conftest.s
23935 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }
23942 gcc_cv_as_lcomm_with_alignment
=yes
23944 echo "configure: failed program was" >&5
23947 rm -f conftest.o conftest.s
23950 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23951 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23952 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23954 cat >>confdefs.h
<<\_ACEOF
23955 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23960 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23961 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23962 if test "${gcc_cv_as_line_zero+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23965 gcc_cv_as_line_zero
=no
23966 if test $in_tree_gas = yes; then
23967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23968 then gcc_cv_as_line_zero
=yes
23970 elif test "x$gcc_cv_as" != x
; then
23971 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23972 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; } &&
23978 test "x`cat conftest.out`" = x
23980 gcc_cv_as_line_zero
=yes
23982 echo "configure: failed program was" >&5
23984 echo "configure: error output was" >&5
23985 cat conftest.out
>&5
23987 rm -f conftest.o conftest.s conftest.out
23990 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23991 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23992 if test "x$gcc_cv_as_line_zero" = xyes
; then
23994 cat >>confdefs.h
<<\_ACEOF
23995 #define HAVE_AS_LINE_ZERO 1
24000 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
24001 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
24002 gcc_cv_ld_eh_frame_hdr
=no
24003 if test $in_tree_ld = yes ; then
24004 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 \
24005 && test $in_tree_ld_is_elf = yes; then
24006 gcc_cv_ld_eh_frame_hdr
=yes
24008 elif test x
$gcc_cv_ld != x
; then
24009 # Check if linker supports --eh-frame-hdr option
24010 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24011 gcc_cv_ld_eh_frame_hdr
=yes
24015 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24017 cat >>confdefs.h
<<\_ACEOF
24018 #define HAVE_LD_EH_FRAME_HDR 1
24022 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
24023 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
24025 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
24026 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
24028 if test $in_tree_ld = yes ; then
24029 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 \
24030 && test $in_tree_ld_is_elf = yes; then
24033 elif test x
$gcc_cv_ld != x
; then
24034 # Check if linker supports -pie option
24035 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24039 if test x
"$gcc_cv_ld_pie" = xyes
; then
24041 cat >>confdefs.h
<<\_ACEOF
24042 #define HAVE_LD_PIE 1
24046 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
24047 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
24049 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
24050 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
24051 gcc_cv_ld_eh_gc_sections
=no
24052 if test $in_tree_ld = yes ; then
24053 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 \
24054 && test $in_tree_ld_is_elf = yes; then
24055 gcc_cv_ld_eh_gc_sections
=yes
24057 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24058 cat > conftest.s
<<EOF
24061 .type _start, @function
24064 .size _start, .-_start
24065 .section .text.foo,"ax",@progbits
24066 .type foo, @function
24070 .section .gcc_except_table.foo,"a",@progbits
24073 .section .eh_frame,"a",@progbits
24076 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24077 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24078 |
grep "gc-sections option ignored" > /dev
/null
; then
24079 gcc_cv_ld_eh_gc_sections
=no
24080 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24081 gcc_cv_ld_eh_gc_sections
=yes
24082 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24083 if test x
$gcc_cv_as_comdat_group != xyes
; then
24084 gcc_cv_ld_eh_gc_sections
=no
24085 cat > conftest.s
<<EOF
24088 .type _start, @function
24091 .size _start, .-_start
24092 .section .gnu.linkonce.t.foo,"ax",@progbits
24093 .type foo, @function
24097 .section .gcc_except_table.foo,"a",@progbits
24100 .section .eh_frame,"a",@progbits
24103 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24104 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24105 |
grep "gc-sections option ignored" > /dev
/null
; then
24106 gcc_cv_ld_eh_gc_sections
=no
24107 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
24108 gcc_cv_ld_eh_gc_sections
=yes
24114 rm -f conftest.s conftest.o conftest
24118 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24119 gcc_cv_ld_eh_gc_sections
=no
24122 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24124 cat >>confdefs.h
<<\_ACEOF
24125 #define HAVE_LD_EH_GC_SECTIONS 1
24129 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24130 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24136 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24137 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24138 if test "${gcc_cv_ld_as_needed+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 gcc_cv_ld_as_needed
=no
24142 if test $in_tree_ld = yes ; then
24143 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 \
24144 && test $in_tree_ld_is_elf = yes; then
24145 gcc_cv_ld_as_needed
=yes
24147 elif test x
$gcc_cv_ld != x
; then
24148 # Check if linker supports --as-needed and --no-as-needed options
24149 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24150 gcc_cv_ld_as_needed
=yes
24155 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24156 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24157 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24159 cat >>confdefs.h
<<\_ACEOF
24160 #define HAVE_LD_AS_NEEDED 1
24165 case "$target:$tm_file" in
24166 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24167 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24168 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24169 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24172 gcc_cv_ld_no_dot_syms
=no
24173 if test $in_tree_ld = yes ; then
24174 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
24175 gcc_cv_ld_no_dot_syms
=yes
24177 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24178 cat > conftest1.s
<<EOF
24182 cat > conftest2.s
<<EOF
24183 .section ".opd","aw"
24186 .type foo,@function
24188 .quad .LEfoo,.TOC.@tocbase,0
24194 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24195 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24196 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24197 gcc_cv_ld_no_dot_syms
=yes
24199 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24203 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24204 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24205 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24207 cat >>confdefs.h
<<\_ACEOF
24208 #define HAVE_LD_NO_DOT_SYMS 1
24215 echo "$as_me:$LINENO: checking linker --build-id support" >&5
24216 echo $ECHO_N "checking linker --build-id support... $ECHO_C" >&6
24217 if test "${gcc_cv_ld_buildid+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24220 gcc_cv_ld_buildid
=no
24221 if test $in_tree_ld = yes ; then
24222 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24223 "$gcc_cv_gld_minor_version" -ge 18 -o \
24224 "$gcc_cv_gld_major_version" -gt 2 \
24225 && test $in_tree_ld_is_elf = yes; then
24226 gcc_cv_ld_buildid
=yes
24228 elif test x
$gcc_cv_ld != x
; then
24229 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
24230 gcc_cv_ld_buildid
=yes
24234 echo "$as_me:$LINENO: result: $gcc_cv_ld_buildid" >&5
24235 echo "${ECHO_T}$gcc_cv_ld_buildid" >&6
24236 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24238 cat >>confdefs.h
<<\_ACEOF
24239 #define HAVE_LD_BUILDID 1
24244 # Check whether --enable-linker-build-id or --disable-linker-build-id was given.
24245 if test "${enable_linker_build_id+set}" = set; then
24246 enableval
="$enable_linker_build_id"
24249 enable_linker_build_id
=no
24252 if test x
"$enable_linker_build_id" = xyes
; then
24253 if test x
"$gcc_cv_ld_buildid" = xyes
; then
24255 cat >>confdefs.h
<<\_ACEOF
24256 #define ENABLE_LD_BUILDID 1
24260 { echo "$as_me:$LINENO: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24261 echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24265 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24266 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24267 if test "${gcc_cv_ld_sysroot+set}" = set; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24270 gcc_cv_ld_sysroot
=no
24271 if test $in_tree_ld = yes ; then
24272 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
24273 gcc_cv_ld_sysroot
=yes
24275 elif test x
$gcc_cv_ld != x
; then
24276 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24277 gcc_cv_ld_sysroot
=yes
24281 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24282 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24283 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24285 cat >>confdefs.h
<<\_ACEOF
24286 #define HAVE_LD_SYSROOT 1
24291 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24292 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24293 && test "$prefix" != "NONE"; then
24295 cat >>confdefs.h
<<_ACEOF
24296 #define PREFIX_INCLUDE_DIR "$prefix/include"
24301 # Test for stack protector support in target C library.
24302 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24303 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24304 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24305 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 gcc_cv_libc_provides_ssp
=no
24309 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24310 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24311 if test "x$with_sysroot" = x
; then
24312 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24313 elif test "x$with_build_sysroot" != "x"; then
24314 glibc_header_dir
="${with_build_sysroot}/usr/include"
24315 elif test "x$with_sysroot" = xyes
; then
24316 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24318 glibc_header_dir
="${with_sysroot}/usr/include"
24321 glibc_header_dir
=/usr
/include
24323 # glibc 2.4 and later provides __stack_chk_fail and
24324 # either __stack_chk_guard, or TLS access to stack guard canary.
24325 if test -f $glibc_header_dir/features.h \
24326 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24327 $glibc_header_dir/features.h
> /dev
/null
; then
24328 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24329 $glibc_header_dir/features.h
> /dev
/null
; then
24330 gcc_cv_libc_provides_ssp
=yes
24331 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24332 $glibc_header_dir/features.h
> /dev
/null \
24333 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24334 $glibc_header_dir/features.h
> /dev
/null
; then
24335 gcc_cv_libc_provides_ssp
=yes
24336 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24337 $glibc_header_dir/features.h
> /dev
/null
&& \
24338 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24339 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24340 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24341 gcc_cv_libc_provides_ssp
=yes
24346 # Avoid complicated tests (see
24347 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24348 # simply assert that glibc does provide this, which is true for all
24349 # realistically usable GNU/Hurd configurations.
24350 gcc_cv_libc_provides_ssp
=yes;;
24352 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24353 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24354 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 cat >conftest.
$ac_ext <<_ACEOF
24360 cat confdefs.h
>>conftest.
$ac_ext
24361 cat >>conftest.
$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24365 #define __stack_chk_fail innocuous___stack_chk_fail
24367 /* System header to define __stub macros and hopefully few prototypes,
24368 which can conflict with char __stack_chk_fail (); below.
24369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24370 <limits.h> exists even on freestanding compilers. */
24373 # include <limits.h>
24375 # include <assert.h>
24378 #undef __stack_chk_fail
24380 /* Override any gcc2 internal prototype to avoid an error. */
24385 /* We use char because int might match the return type of a gcc2
24386 builtin and then its argument prototype would still apply. */
24387 char __stack_chk_fail ();
24388 /* The GNU C library defines this for functions which it implements
24389 to always fail with ENOSYS. Some functions are actually named
24390 something starting with __ and the normal name is an alias. */
24391 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24394 char (*f) () = __stack_chk_fail;
24403 return f != __stack_chk_fail;
24408 rm -f conftest.
$ac_objext conftest
$ac_exeext
24409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24410 (eval $ac_link) 2>conftest.er1
24412 grep -v '^ *+' conftest.er1
>conftest.err
24414 cat conftest.err
>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } &&
24417 { ac_try
='test -z "$ac_c_werror_flag"
24418 || test ! -s conftest.err'
24419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420 (eval $ac_try) 2>&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); }; } &&
24424 { ac_try
='test -s conftest$ac_exeext'
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; }; then
24430 ac_cv_func___stack_chk_fail
=yes
24432 echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.
$ac_ext >&5
24435 ac_cv_func___stack_chk_fail
=no
24437 rm -f conftest.err conftest.
$ac_objext \
24438 conftest
$ac_exeext conftest.
$ac_ext
24440 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24441 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24442 if test $ac_cv_func___stack_chk_fail = yes; then
24443 gcc_cv_libc_provides_ssp
=yes
24445 echo "no __stack_chk_fail on this target"
24449 *) gcc_cv_libc_provides_ssp
=no
;;
24452 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24453 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24455 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24457 cat >>confdefs.h
<<\_ACEOF
24458 #define TARGET_LIBC_PROVIDES_SSP 1
24463 # Check if TFmode long double should be used by default or not.
24464 # Some glibc targets used DFmode long double, but with glibc 2.4
24465 # and later they can use TFmode.
24467 powerpc
*-*-linux* | \
24468 powerpc
*-*-gnu* | \
24469 sparc
*-*-linux* | \
24473 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24474 if test "${with_long_double_128+set}" = set; then
24475 withval
="$with_long_double_128"
24476 gcc_cv_target_ldbl128
="$with_long_double_128"
24478 gcc_cv_target_ldbl128
=no
24479 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24480 if test "x$with_sysroot" = x
; then
24481 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24482 elif test "x$with_build_sysroot" != "x"; then
24483 glibc_header_dir
="${with_build_sysroot}/usr/include"
24484 elif test "x$with_sysroot" = xyes
; then
24485 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24487 glibc_header_dir
="${with_sysroot}/usr/include"
24490 glibc_header_dir
=/usr
/include
24492 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24493 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24494 && gcc_cv_target_ldbl128
=yes
24499 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24501 cat >>confdefs.h
<<\_ACEOF
24502 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24507 # Find out what GC implementation we want, or may, use.
24509 # Check whether --with-gc or --without-gc was given.
24510 if test "${with_gc+set}" = set; then
24519 cat >>confdefs.h
<<\_ACEOF
24525 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24526 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24527 { (exit 1); exit 1; }; }
24534 echo "Using $GGC for garbage collection."
24536 # Use the system's zlib library.
24538 zlibinc
="-I\$(srcdir)/../zlib"
24540 # Check whether --with-system-zlib or --without-system-zlib was given.
24541 if test "${with_system_zlib+set}" = set; then
24542 withval
="$with_system_zlib"
24551 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24552 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24553 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24554 if test "${enable_maintainer_mode+set}" = set; then
24555 enableval
="$enable_maintainer_mode"
24556 maintainer_mode
=$enableval
24561 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24562 echo "${ECHO_T}$maintainer_mode" >&6
24564 if test "$maintainer_mode" = "yes"; then
24574 # Make empty files to contain the specs and options for each language.
24575 # Then add #include lines to for a compiler that has specs and/or options.
24581 # These (without "all_") are set in each config-lang.in.
24582 # `language' must be a single word so is spelled singularly.
24585 all_outputs
='Makefile gccbug'
24586 # List of language makefile fragments.
24587 all_lang_makefrags
=
24588 # List of language subdirectory makefiles. Deprecated.
24589 all_lang_makefiles
=
24590 # Additional files for gengtype
24591 all_gtfiles
="$target_gtfiles"
24593 # These are the languages that are set in --enable-languages,
24594 # and are available in the GCC tree.
24595 all_selected_languages
=
24597 # Add the language fragments.
24598 # Languages are added via two mechanisms. Some information must be
24599 # recorded in makefile variables, these are defined in config-lang.in.
24600 # We accumulate them and plug them into the main Makefile.
24601 # The other mechanism is a set of hooks for each of the main targets
24602 # like `clean', `install', etc.
24604 language_hooks
="Make-hooks"
24606 for lang
in ${srcdir}/*/config-lang.
in
24608 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24610 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24611 if test "x$lang_alias" = x
24613 echo "$lang doesn't set \$language." 1>&2
24616 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24617 subdirs
="$subdirs $subdir"
24619 # $gcc_subdir is where the gcc integration files are to be found
24620 # for a language, both for internal compiler purposes (compiler
24621 # sources implementing front-end to GCC tree converters), and for
24622 # build infrastructure purposes (Make-lang.in, etc.)
24624 # This will be <subdir> (relative to $srcdir) if a line like
24625 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24626 # is found in <langdir>/config-lang.in, and will remain <langdir>
24629 # Except for the language alias (fetched above), the regular
24630 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24631 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24632 # only this and the language alias.
24634 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24635 if [ "$gcc_subdir" = "" ]; then
24636 gcc_subdir
="$subdir"
24639 case ",$enable_languages," in
24641 all_selected_languages
="$all_selected_languages $lang_alias"
24642 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24643 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24654 .
${srcdir}/$gcc_subdir/config-lang.
in
24655 if test "x$language" = x
24657 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24662 case ",$enable_languages," in
24663 *,$lang_alias,*) ;;
24665 for i
in $subdir_requires; do
24666 test -f "${srcdir}/$i/config-lang.in" && continue
24674 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24675 if test -f $srcdir/$gcc_subdir/lang.opt
; then
24676 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24678 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
24679 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24681 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
24682 then all_lang_makefiles
="$gcc_subdir/Makefile"
24684 all_languages
="$all_languages $language"
24685 all_compilers
="$all_compilers $compilers"
24686 all_outputs
="$all_outputs $outputs"
24687 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
24690 # Pick up gtfiles for c
24692 .
${srcdir}/c-config-lang.
in
24693 all_gtfiles
="$all_gtfiles [c] $gtfiles"
24696 for language
in $all_selected_languages
24698 check_languages
="$check_languages check-$language"
24701 # We link each language in with a set of hooks, reached indirectly via
24702 # lang.${target}. Only do so for selected languages.
24706 target_list
="all.cross start.encap rest.encap tags \
24707 install-common install-man install-info install-pdf dvi pdf \
24708 html uninstall info man srcextra srcman srcinfo \
24709 mostlyclean clean distclean maintainer-clean"
24711 for t
in $target_list
24714 for lang
in $all_selected_languages
24718 echo "lang.$t: $x" >> Make-hooks
24727 echo "dir ." > .gdbinit
24728 echo "dir ${srcdir}" >> .gdbinit
24729 if test x
$gdb_needs_out_file_path = xyes
24731 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24733 if test "x$subdirs" != x
; then
24736 echo "dir ${srcdir}/$s" >> .gdbinit
24739 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24741 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24745 # Find a directory in which to install a shared libgcc.
24747 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24748 if test "${enable_version_specific_runtime_libs+set}" = set; then
24749 enableval
="$enable_version_specific_runtime_libs"
24754 # Check whether --with-slibdir or --without-slibdir was given.
24755 if test "${with_slibdir+set}" = set; then
24756 withval
="$with_slibdir"
24757 slibdir
="$with_slibdir"
24759 if test "${enable_version_specific_runtime_libs+set}" = set; then
24760 slibdir
='$(libsubdir)'
24761 elif test "$host" != "$target"; then
24762 slibdir
='$(build_tooldir)/lib'
24764 slibdir
='$(libdir)'
24770 # Check whether --with-datarootdir or --without-datarootdir was given.
24771 if test "${with_datarootdir+set}" = set; then
24772 withval
="$with_datarootdir"
24773 datarootdir
="\${prefix}/$with_datarootdir"
24775 datarootdir
='$(prefix)/share'
24780 # Check whether --with-docdir or --without-docdir was given.
24781 if test "${with_docdir+set}" = set; then
24782 withval
="$with_docdir"
24783 docdir
="\${prefix}/$with_docdir"
24785 docdir
='$(datarootdir)'
24790 # Check whether --with-htmldir or --without-htmldir was given.
24791 if test "${with_htmldir+set}" = set; then
24792 withval
="$with_htmldir"
24793 htmldir
="\${prefix}/$with_htmldir"
24795 htmldir
='$(docdir)'
24799 # Substitute configuration variables
24862 if test x
${build} = x
${host} ; then
24863 if test x
${host} = x
${target} ; then
24864 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24866 echo "Links are now set up to build a cross-compiler" 1>&2
24867 echo " from ${host} to ${target}." 1>&2
24870 if test x
${host} = x
${target} ; then
24871 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24872 echo " for ${target}." 1>&2
24874 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24875 echo " from ${host} to ${target}." 1>&2
24882 case "${GMPLIBS}" in
24884 cat >>confdefs.h
<<\_ACEOF
24895 if test "x${CLOOGLIBS}" != "x" ; then
24897 cat >>confdefs.h
<<\_ACEOF
24898 #define HAVE_cloog 1
24903 # Check for plugin support
24904 # Check whether --enable-plugin or --disable-plugin was given.
24905 if test "${enable_plugin+set}" = set; then
24906 enableval
="$enable_plugin"
24907 enable_plugin
=$enableval
24909 enable_plugin
=yes; default_plugin
=yes
24913 if test x
"$enable_plugin" = x
"yes"; then
24914 # Check that the host supports -rdynamic and -ldl
24917 saved_LDFLAGS
="$LDFLAGS"
24922 LDFLAGS
="$LDFLAGS -rdynamic"
24923 echo "$as_me:$LINENO: checking for -rdynamic" >&5
24924 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24925 cat >conftest.
$ac_ext <<_ACEOF
24928 cat confdefs.h
>>conftest.
$ac_ext
24929 cat >>conftest.
$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24940 rm -f conftest.
$ac_objext conftest
$ac_exeext
24941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24942 (eval $ac_link) 2>conftest.er1
24944 grep -v '^ *+' conftest.er1
>conftest.err
24946 cat conftest.err
>&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } &&
24949 { ac_try
='test -z "$ac_c_werror_flag"
24950 || test ! -s conftest.err'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; } &&
24956 { ac_try
='test -s conftest$ac_exeext'
24957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958 (eval $ac_try) 2>&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 echo "$as_me:$LINENO: result: yes" >&5
24963 echo "${ECHO_T}yes" >&6; have_rdynamic
=yes
24965 echo "$as_me: failed program was:" >&5
24966 sed 's/^/| /' conftest.
$ac_ext >&5
24968 echo "$as_me:$LINENO: result: no" >&5
24969 echo "${ECHO_T}no" >&6
24971 rm -f conftest.err conftest.
$ac_objext \
24972 conftest
$ac_exeext conftest.
$ac_ext
24973 if test x
"$have_rdynamic" = x
"yes" ; then
24974 pluginlibs
="-rdynamic"
24978 LDFLAGS
="$LDFLAGS -ldl"
24979 echo "$as_me:$LINENO: checking for -ldl" >&5
24980 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24981 cat >conftest.
$ac_ext <<_ACEOF
24984 cat confdefs.h
>>conftest.
$ac_ext
24985 cat >>conftest.
$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24991 volatile int f = 0; if (f) dlopen ("dummy", 0);
24996 rm -f conftest.
$ac_objext conftest
$ac_exeext
24997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24998 (eval $ac_link) 2>conftest.er1
25000 grep -v '^ *+' conftest.er1
>conftest.err
25002 cat conftest.err
>&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); } &&
25005 { ac_try
='test -z "$ac_c_werror_flag"
25006 || test ! -s conftest.err'
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; } &&
25012 { ac_try
='test -s conftest$ac_exeext'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; }; then
25018 echo "$as_me:$LINENO: result: yes" >&5
25019 echo "${ECHO_T}yes" >&6; have_dl
=yes
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.
$ac_ext >&5
25024 echo "$as_me:$LINENO: result: no" >&5
25025 echo "${ECHO_T}no" >&6
25027 rm -f conftest.err conftest.
$ac_objext \
25028 conftest
$ac_exeext conftest.
$ac_ext
25029 if test x
"$have_dl" = x
"yes"; then
25030 pluginlibs
="$pluginlibs -ldl"
25033 # Check that we can build shared objects with -fPIC -shared
25034 LDFLAGS
="$LDFLAGS -fPIC -shared"
25035 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
25036 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
25037 cat >conftest.
$ac_ext <<_ACEOF
25040 cat confdefs.h
>>conftest.
$ac_ext
25041 cat >>conftest.
$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25052 rm -f conftest.
$ac_objext conftest
$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054 (eval $ac_link) 2>conftest.er1
25056 grep -v '^ *+' conftest.er1
>conftest.err
25058 cat conftest.err
>&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
25061 { ac_try
='test -z "$ac_c_werror_flag"
25062 || test ! -s conftest.err'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; } &&
25068 { ac_try
='test -s conftest$ac_exeext'
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; }; then
25074 echo "$as_me:$LINENO: result: yes" >&5
25075 echo "${ECHO_T}yes" >&6; have_pic_shared
=yes
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.
$ac_ext >&5
25080 echo "$as_me:$LINENO: result: no" >&5
25081 echo "${ECHO_T}no" >&6; have_pic_shared
=no
25083 rm -f conftest.err conftest.
$ac_objext \
25084 conftest
$ac_exeext conftest.
$ac_ext
25085 if test x
"$have_pic_shared" != x
"yes"; then
25090 # If plugin support had been requested but not available, fail.
25091 if test x
"$enable_plugin" = x
"no" ; then
25092 if test x
"$default_plugin" != x
"yes"; then
25093 { { echo "$as_me:$LINENO: error:
25094 Building GCC with plugin support requires a host that supports
25095 -fPIC, -shared, -ldl and -rdynamic." >&5
25096 echo "$as_me: error:
25097 Building GCC with plugin support requires a host that supports
25098 -fPIC, -shared, -ldl and -rdynamic." >&2;}
25099 { (exit 1); exit 1; }; }
25103 LDFLAGS
="$saved_LDFLAGS"
25109 if test x
"$enable_plugin" = x
"yes"; then
25111 cat >>confdefs.h
<<\_ACEOF
25112 #define ENABLE_PLUGIN 1
25117 # Configure the subdirectories
25118 # AC_CONFIG_SUBDIRS($subdirs)
25120 # Create the Makefile
25121 # and configure language subdirectories
25122 ac_config_files
="$ac_config_files $all_outputs"
25125 ac_config_commands
="$ac_config_commands default"
25127 cat >confcache
<<\_ACEOF
25128 # This file is a shell script that caches the results of configure
25129 # tests run on this system so they can be shared between configure
25130 # scripts and configure runs, see configure's option --config-cache.
25131 # It is not useful on other systems. If it contains results you don't
25132 # want to keep, you may remove or edit it.
25134 # config.status only pays attention to the cache file if you give it
25135 # the --recheck option to rerun configure.
25137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25139 # following values.
25143 # The following way of writing the cache mishandles newlines in values,
25144 # but we know of no workaround that is simple, portable, and efficient.
25145 # So, don't put newlines in cache variables' values.
25146 # Ultrix sh set writes to stderr and can't be redirected directly,
25147 # and sets the high bit in the cache file unless we assign to the vars.
25150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25152 # `set' does not quote correctly, so add quotes (double-quote
25153 # substitution turns \\\\ into \\, and sed turns \\ into \).
25156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25159 # `set' quotes correctly as required by POSIX, so do not add quotes.
25161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25170 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25172 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
25173 if test -w $cache_file; then
25174 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25175 cat confcache
>$cache_file
25177 echo "not updating unwritable cache $cache_file"
25182 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25183 # Let make expand exec_prefix.
25184 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25186 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25187 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25188 # trailing colons and then remove the whole line if VPATH becomes empty
25189 # (actually we leave an empty line to preserve line numbers).
25190 if test "x$srcdir" = x.
; then
25191 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25192 s/:*\$(srcdir):*/:/;
25193 s/:*\${srcdir}:*/:/;
25195 s/^\([^=]*=[ ]*\):*/\1/;
25201 DEFS
=-DHAVE_CONFIG_H
25205 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25206 # 1. Remove the extension, and $U if already installed.
25207 ac_i
=`echo "$ac_i" |
25208 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25210 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
25211 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
25213 LIBOBJS
=$ac_libobjs
25215 LTLIBOBJS
=$ac_ltlibobjs
25219 : ${CONFIG_STATUS=./config.status}
25220 ac_clean_files_save
=$ac_clean_files
25221 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25222 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25223 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25224 cat >$CONFIG_STATUS <<_ACEOF
25226 # Generated by $as_me.
25227 # Run this file to recreate the current configuration.
25228 # Compiler output produced by configure, useful for debugging
25229 # configure, is in config.log if it exists.
25232 ac_cs_recheck=false
25234 SHELL=\${CONFIG_SHELL-$SHELL}
25237 cat >>$CONFIG_STATUS <<\_ACEOF
25238 ## --------------------- ##
25239 ## M4sh Initialization. ##
25240 ## --------------------- ##
25242 # Be Bourne compatible
25243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25247 # is contrary to our usage. Disable this feature.
25248 alias -g '${1+"$@"}'='"$@"'
25249 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25252 DUALCASE
=1; export DUALCASE
# for MKS sh
25254 # Support unset when possible.
25255 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25262 # Work around bugs in pre-3.0 UWIN ksh.
25263 $as_unset ENV MAIL MAILPATH
25270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25272 LC_TELEPHONE LC_TIME
25274 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25275 eval $as_var=C
; export $as_var
25281 # Required to use basename.
25282 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25288 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
25289 as_basename
=basename
25295 # Name of the executable.
25296 as_me
=`$as_basename "$0" ||
25297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25298 X"$0" : 'X\(//\)$' \| \
25299 X"$0" : 'X\(/\)$' \| \
25300 . : '\(.\)' 2>/dev/null ||
25302 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25303 /^X\/\(\/\/\)$/{ s//\1/; q; }
25304 /^X\/\(\/\).*/{ s//\1/; q; }
25308 # PATH needs CR, and LINENO needs CR and PATH.
25309 # Avoid depending upon Character Ranges.
25310 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25311 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25312 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25313 as_cr_digits
='0123456789'
25314 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25316 # The user is always right.
25317 if test "${PATH_SEPARATOR+set}" != set; then
25318 echo "#! /bin/sh" >conf$$.sh
25319 echo "exit 0" >>conf$$.sh
25321 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25330 as_lineno_1
=$LINENO
25331 as_lineno_2
=$LINENO
25332 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
25333 test "x$as_lineno_1" != "x$as_lineno_2" &&
25334 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
25335 # Find who we are. Look in the path if we contain no path at all
25338 *[\\/]* ) as_myself
=$0 ;;
25339 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25340 for as_dir
in $PATH
25343 test -z "$as_dir" && as_dir
=.
25344 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25349 # We did not find ourselves, most probably we were run as `sh COMMAND'
25350 # in which case we are not to be found in the path.
25351 if test "x$as_myself" = x
; then
25354 if test ! -f "$as_myself"; then
25355 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25356 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25357 { (exit 1); exit 1; }; }
25359 case $CONFIG_SHELL in
25361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25362 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
25365 test -z "$as_dir" && as_dir
=.
25366 for as_base
in sh bash ksh sh5
; do
25369 if ("$as_dir/$as_base" -c '
25370 as_lineno_1=$LINENO
25371 as_lineno_2=$LINENO
25372 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25373 test "x$as_lineno_1" != "x$as_lineno_2" &&
25374 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
25375 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
25376 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
25377 CONFIG_SHELL
=$as_dir/$as_base
25378 export CONFIG_SHELL
25379 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25387 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25388 # uniformly replaced by the line number. The first 'sed' inserts a
25389 # line-number line before each line; the second 'sed' does the real
25390 # work. The second script uses 'N' to pair each line-number line
25391 # with the numbered line, and appends trailing '-' during
25392 # substitution so that $LINENO is not a special case at line end.
25393 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25394 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25395 sed '=' <$as_myself |
25400 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25403 s,^['$as_cr_digits']*\n,,
25404 ' >$as_me.lineno
&&
25405 chmod +x
$as_me.lineno ||
25406 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25407 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25408 { (exit 1); exit 1; }; }
25410 # Don't try to exec as it changes $[0], causing all sort of problems
25411 # (the dirname of $[0] is not the place where we might find the
25412 # original and so on. Autoconf is especially sensible to this).
25414 # Exit status is that of the last command.
25419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25420 *c
*,-n*) ECHO_N
= ECHO_C
='
25422 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
25423 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
25426 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25432 rm -f conf$$ conf$$.exe conf$$.
file
25434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25435 # We could just check for DJGPP; but this test a) works b) is more generic
25436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25437 if test -f conf$$.exe
; then
25438 # Don't use ln at all; we don't have any links
25443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25448 rm -f conf$$ conf$$.exe conf$$.
file
25450 if mkdir
-p .
2>/dev
/null
; then
25453 test -d .
/-p && rmdir .
/-p
25457 as_executable_p
="test -f"
25459 # Sed expression to map a string onto a valid CPP name.
25460 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25462 # Sed expression to map a string onto a valid variable name.
25463 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25467 # We need space, tab and new line, in precisely that order.
25477 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25478 # report actual input values of CONFIG_FILES etc. instead of their
25479 # values after options handling. Logging --version etc. is OK.
25483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25484 ## Running $as_me. ##
25489 This file was extended by $as_me, which was
25490 generated by GNU Autoconf 2.59. Invocation command line was
25492 CONFIG_FILES = $CONFIG_FILES
25493 CONFIG_HEADERS = $CONFIG_HEADERS
25494 CONFIG_LINKS = $CONFIG_LINKS
25495 CONFIG_COMMANDS = $CONFIG_COMMANDS
25499 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25503 # Files that config.status was made for.
25504 if test -n "$ac_config_files"; then
25505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25508 if test -n "$ac_config_headers"; then
25509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25512 if test -n "$ac_config_links"; then
25513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25516 if test -n "$ac_config_commands"; then
25517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25523 \`$as_me' instantiates files from templates according to the
25524 current configuration.
25526 Usage: $0 [OPTIONS] [FILE]...
25528 -h, --help print this help, then exit
25529 -V, --version print version number, then exit
25530 -q, --quiet do not print progress messages
25531 -d, --debug don't remove temporary files
25532 --recheck update $as_me by reconfiguring in the same conditions
25533 --file=FILE[:TEMPLATE]
25534 instantiate the configuration file FILE
25535 --header=FILE[:TEMPLATE]
25536 instantiate the configuration header FILE
25538 Configuration files:
25541 Configuration headers:
25544 Configuration commands:
25547 Report bugs to <bug-autoconf@gnu.org>."
25550 cat >>$CONFIG_STATUS <<_ACEOF
25553 configured by $0, generated by GNU Autoconf 2.59,
25554 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25556 Copyright (C) 2003 Free Software Foundation, Inc.
25557 This config.status script is free software; the Free Software Foundation
25558 gives unlimited permission to copy, distribute and modify it."
25562 cat >>$CONFIG_STATUS <<\_ACEOF
25563 # If no file are specified by the user, then we need to provide default
25564 # value. By we need to know if files were specified by the user.
25570 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25571 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25579 *) # This is not an option, so the user has probably given explicit
25582 ac_need_defaults
=false
;;
25586 # Handling of the options.
25588 cat >>$CONFIG_STATUS <<\_ACEOF
25589 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25591 --version |
--vers* |
-V )
25592 echo "$ac_cs_version"; exit 0 ;;
25594 # Conflict between --help and --header
25595 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25596 Try \`$0 --help' for more information." >&5
25597 echo "$as_me: error: ambiguous option: $1
25598 Try \`$0 --help' for more information." >&2;}
25599 { (exit 1); exit 1; }; };;
25600 --help |
--hel |
-h )
25601 echo "$ac_cs_usage"; exit 0 ;;
25602 --debug |
--d* |
-d )
25604 --file |
--fil |
--fi |
--f )
25606 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25607 ac_need_defaults
=false
;;
25608 --header |
--heade |
--head |
--hea )
25610 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25611 ac_need_defaults
=false
;;
25612 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25613 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25616 # This is an error.
25617 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25618 Try \`$0 --help' for more information." >&5
25619 echo "$as_me: error: unrecognized option: $1
25620 Try \`$0 --help' for more information." >&2;}
25621 { (exit 1); exit 1; }; } ;;
25623 *) ac_config_targets
="$ac_config_targets $1" ;;
25629 ac_configure_extra_args
=
25631 if $ac_cs_silent; then
25633 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25637 cat >>$CONFIG_STATUS <<_ACEOF
25638 if \$ac_cs_recheck; then
25639 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25640 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25645 cat >>$CONFIG_STATUS <<_ACEOF
25647 # INIT-COMMANDS section.
25656 cat >>$CONFIG_STATUS <<\_ACEOF
25657 for ac_config_target
in $ac_config_targets
25659 case "$ac_config_target" in
25660 # Handling of arguments.
25661 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
25662 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25663 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
25664 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
25665 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25666 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
25667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25669 { (exit 1); exit 1; }; };;
25673 # If the user did not use the arguments to specify the items to instantiate,
25674 # then the envvar interface is used. Set only those that are not.
25675 # We use the long form for the default assignment because of an extremely
25676 # bizarre bug on SunOS 4.1.3.
25677 if $ac_need_defaults; then
25678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25683 # Have a temporary directory for convenience. Make it in the build tree
25684 # simply because there is no reason to put it here, and in addition,
25685 # creating and moving files from /tmp can sometimes cause problems.
25686 # Create a temporary directory, and hook for its removal unless debugging.
25689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25690 trap '{ (exit 1); exit 1; }' 1 2 13 15
25693 # Create a (secure) tmp directory for tmp files.
25696 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25697 test -n "$tmp" && test -d "$tmp"
25700 tmp
=.
/confstat$$
-$RANDOM
25701 (umask 077 && mkdir
$tmp)
25704 echo "$me: cannot create a temporary directory in ." >&2
25705 { (exit 1); exit 1; }
25710 cat >>$CONFIG_STATUS <<_ACEOF
25713 # CONFIG_FILES section.
25716 # No need to generate the scripts if there are no CONFIG_FILES.
25717 # This happens for instance when ./config.status config.h
25718 if test -n "\$CONFIG_FILES"; then
25719 # Protect against being on the right side of a sed subst in config.status.
25720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25722 s,@SHELL@,$SHELL,;t t
25723 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25724 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25725 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25726 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25727 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25728 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25729 s,@exec_prefix@,$exec_prefix,;t t
25730 s,@prefix@,$prefix,;t t
25731 s,@program_transform_name@,$program_transform_name,;t t
25732 s,@bindir@,$bindir,;t t
25733 s,@sbindir@,$sbindir,;t t
25734 s,@libexecdir@,$libexecdir,;t t
25735 s,@datadir@,$datadir,;t t
25736 s,@sysconfdir@,$sysconfdir,;t t
25737 s,@sharedstatedir@,$sharedstatedir,;t t
25738 s,@localstatedir@,$localstatedir,;t t
25739 s,@libdir@,$libdir,;t t
25740 s,@includedir@,$includedir,;t t
25741 s,@oldincludedir@,$oldincludedir,;t t
25742 s,@infodir@,$infodir,;t t
25743 s,@mandir@,$mandir,;t t
25744 s,@build_alias@,$build_alias,;t t
25745 s,@host_alias@,$host_alias,;t t
25746 s,@target_alias@,$target_alias,;t t
25747 s,@DEFS@,$DEFS,;t t
25748 s,@ECHO_C@,$ECHO_C,;t t
25749 s,@ECHO_N@,$ECHO_N,;t t
25750 s,@ECHO_T@,$ECHO_T,;t t
25751 s,@LIBS@,$LIBS,;t t
25752 s,@build@,$build,;t t
25753 s,@build_cpu@,$build_cpu,;t t
25754 s,@build_vendor@,$build_vendor,;t t
25755 s,@build_os@,$build_os,;t t
25756 s,@host@,$host,;t t
25757 s,@host_cpu@,$host_cpu,;t t
25758 s,@host_vendor@,$host_vendor,;t t
25759 s,@host_os@,$host_os,;t t
25760 s,@target@,$target,;t t
25761 s,@target_cpu@,$target_cpu,;t t
25762 s,@target_vendor@,$target_vendor,;t t
25763 s,@target_os@,$target_os,;t t
25764 s,@target_noncanonical@,$target_noncanonical,;t t
25765 s,@build_libsubdir@,$build_libsubdir,;t t
25766 s,@build_subdir@,$build_subdir,;t t
25767 s,@host_subdir@,$host_subdir,;t t
25768 s,@target_subdir@,$target_subdir,;t t
25769 s,@GENINSRC@,$GENINSRC,;t t
25771 s,@CFLAGS@,$CFLAGS,;t t
25772 s,@LDFLAGS@,$LDFLAGS,;t t
25773 s,@CPPFLAGS@,$CPPFLAGS,;t t
25774 s,@ac_ct_CC@,$ac_ct_CC,;t t
25775 s,@EXEEXT@,$EXEEXT,;t t
25776 s,@OBJEXT@,$OBJEXT,;t t
25777 s,@GNATBIND@,$GNATBIND,;t t
25778 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25779 s,@GNATMAKE@,$GNATMAKE,;t t
25780 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25781 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25782 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25784 s,@EGREP@,$EGREP,;t t
25785 s,@loose_warn@,$loose_warn,;t t
25786 s,@strict_warn@,$strict_warn,;t t
25787 s,@warn_cflags@,$warn_cflags,;t t
25788 s,@nocommon_flag@,$nocommon_flag,;t t
25789 s,@TREEBROWSER@,$TREEBROWSER,;t t
25790 s,@valgrind_path@,$valgrind_path,;t t
25791 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25792 s,@valgrind_command@,$valgrind_command,;t t
25793 s,@coverage_flags@,$coverage_flags,;t t
25794 s,@enable_multilib@,$enable_multilib,;t t
25795 s,@enable_decimal_float@,$enable_decimal_float,;t t
25796 s,@enable_fixed_point@,$enable_fixed_point,;t t
25797 s,@enable_shared@,$enable_shared,;t t
25798 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25799 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25800 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25801 s,@onestep@,$onestep,;t t
25802 s,@PKGVERSION@,$PKGVERSION,;t t
25803 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25804 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25805 s,@datarootdir@,$datarootdir,;t t
25806 s,@docdir@,$docdir,;t t
25807 s,@htmldir@,$htmldir,;t t
25808 s,@SET_MAKE@,$SET_MAKE,;t t
25810 s,@LN_S@,$LN_S,;t t
25812 s,@RANLIB@,$RANLIB,;t t
25813 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25814 s,@ranlib_flags@,$ranlib_flags,;t t
25815 s,@INSTALL@,$INSTALL,;t t
25816 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25817 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25818 s,@make_compare_target@,$make_compare_target,;t t
25819 s,@have_mktemp_command@,$have_mktemp_command,;t t
25820 s,@MAKEINFO@,$MAKEINFO,;t t
25821 s,@BUILD_INFO@,$BUILD_INFO,;t t
25822 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25823 s,@FLEX@,$FLEX,;t t
25824 s,@BISON@,$BISON,;t t
25827 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25828 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25829 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25830 s,@LIBICONV@,$LIBICONV,;t t
25831 s,@LTLIBICONV@,$LTLIBICONV,;t t
25832 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25833 s,@manext@,$manext,;t t
25834 s,@objext@,$objext,;t t
25835 s,@gthread_flags@,$gthread_flags,;t t
25836 s,@extra_modes_file@,$extra_modes_file,;t t
25837 s,@extra_opt_files@,$extra_opt_files,;t t
25838 s,@USE_NLS@,$USE_NLS,;t t
25839 s,@LIBINTL@,$LIBINTL,;t t
25840 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25841 s,@INCINTL@,$INCINTL,;t t
25842 s,@XGETTEXT@,$XGETTEXT,;t t
25843 s,@GMSGFMT@,$GMSGFMT,;t t
25844 s,@POSUB@,$POSUB,;t t
25845 s,@CATALOGS@,$CATALOGS,;t t
25846 s,@DATADIRNAME@,$DATADIRNAME,;t t
25847 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25848 s,@GENCAT@,$GENCAT,;t t
25849 s,@CATOBJEXT@,$CATOBJEXT,;t t
25850 s,@CROSS@,$CROSS,;t t
25852 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25853 s,@inhibit_libc@,$inhibit_libc,;t t
25854 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25855 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25856 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25857 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25858 s,@collect2@,$collect2,;t t
25859 s,@LIBTOOL@,$LIBTOOL,;t t
25861 s,@FGREP@,$FGREP,;t t
25862 s,@GREP@,$GREP,;t t
25864 s,@DUMPBIN@,$DUMPBIN,;t t
25865 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25866 s,@OBJDUMP@,$OBJDUMP,;t t
25867 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25868 s,@ac_ct_AR@,$ac_ct_AR,;t t
25869 s,@STRIP@,$STRIP,;t t
25870 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25871 s,@lt_ECHO@,$lt_ECHO,;t t
25872 s,@DSYMUTIL@,$DSYMUTIL,;t t
25873 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25874 s,@NMEDIT@,$NMEDIT,;t t
25875 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25876 s,@LIPO@,$LIPO,;t t
25877 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25878 s,@OTOOL@,$OTOOL,;t t
25879 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25880 s,@OTOOL64@,$OTOOL64,;t t
25881 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25882 s,@objdir@,$objdir,;t t
25883 s,@enable_fast_install@,$enable_fast_install,;t t
25884 s,@gcc_cv_as@,$gcc_cv_as,;t t
25885 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25886 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25887 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25888 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25889 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25890 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25891 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25892 s,@libgcc_visibility@,$libgcc_visibility,;t t
25894 s,@zlibdir@,$zlibdir,;t t
25895 s,@zlibinc@,$zlibinc,;t t
25896 s,@MAINT@,$MAINT,;t t
25897 s,@gcc_tooldir@,$gcc_tooldir,;t t
25898 s,@dollar@,$dollar,;t t
25899 s,@slibdir@,$slibdir,;t t
25900 s,@subdirs@,$subdirs,;t t
25901 s,@srcdir@,$srcdir,;t t
25902 s,@all_compilers@,$all_compilers,;t t
25903 s,@all_gtfiles@,$all_gtfiles,;t t
25904 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25905 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25906 s,@all_languages@,$all_languages,;t t
25907 s,@all_selected_languages@,$all_selected_languages,;t t
25908 s,@build_exeext@,$build_exeext,;t t
25909 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25910 s,@build_xm_file_list@,$build_xm_file_list,;t t
25911 s,@build_xm_include_list@,$build_xm_include_list,;t t
25912 s,@build_xm_defines@,$build_xm_defines,;t t
25913 s,@build_file_translate@,$build_file_translate,;t t
25914 s,@check_languages@,$check_languages,;t t
25915 s,@cpp_install_dir@,$cpp_install_dir,;t t
25916 s,@xmake_file@,$xmake_file,;t t
25917 s,@tmake_file@,$tmake_file,;t t
25918 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
25919 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
25920 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
25921 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25922 s,@extra_headers_list@,$extra_headers_list,;t t
25923 s,@extra_objs@,$extra_objs,;t t
25924 s,@extra_parts@,$extra_parts,;t t
25925 s,@extra_passes@,$extra_passes,;t t
25926 s,@extra_programs@,$extra_programs,;t t
25927 s,@float_h_file@,$float_h_file,;t t
25928 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25929 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25930 s,@host_exeext@,$host_exeext,;t t
25931 s,@host_xm_file_list@,$host_xm_file_list,;t t
25932 s,@host_xm_include_list@,$host_xm_include_list,;t t
25933 s,@host_xm_defines@,$host_xm_defines,;t t
25934 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25935 s,@install@,$install,;t t
25936 s,@lang_opt_files@,$lang_opt_files,;t t
25937 s,@lang_specs_files@,$lang_specs_files,;t t
25938 s,@lang_tree_files@,$lang_tree_files,;t t
25939 s,@local_prefix@,$local_prefix,;t t
25940 s,@md_file@,$md_file,;t t
25941 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25942 s,@out_file@,$out_file,;t t
25943 s,@out_object_file@,$out_object_file,;t t
25944 s,@thread_file@,$thread_file,;t t
25945 s,@tm_file_list@,$tm_file_list,;t t
25946 s,@tm_include_list@,$tm_include_list,;t t
25947 s,@tm_defines@,$tm_defines,;t t
25948 s,@tm_p_file_list@,$tm_p_file_list,;t t
25949 s,@tm_p_include_list@,$tm_p_include_list,;t t
25950 s,@xm_file_list@,$xm_file_list,;t t
25951 s,@xm_include_list@,$xm_include_list,;t t
25952 s,@xm_defines@,$xm_defines,;t t
25953 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25954 s,@c_target_objs@,$c_target_objs,;t t
25955 s,@cxx_target_objs@,$cxx_target_objs,;t t
25956 s,@fortran_target_objs@,$fortran_target_objs,;t t
25957 s,@target_cpu_default@,$target_cpu_default,;t t
25958 s,@GMPLIBS@,$GMPLIBS,;t t
25959 s,@GMPINC@,$GMPINC,;t t
25960 s,@PPLLIBS@,$PPLLIBS,;t t
25961 s,@PPLINC@,$PPLINC,;t t
25962 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25963 s,@CLOOGINC@,$CLOOGINC,;t t
25964 s,@pluginlibs@,$pluginlibs,;t t
25965 s,@enable_plugin@,$enable_plugin,;t t
25966 s,@LIBOBJS@,$LIBOBJS,;t t
25967 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25968 /@language_hooks@/r $language_hooks
25969 s,@language_hooks@,,;t t
25974 cat >>$CONFIG_STATUS <<\_ACEOF
25975 # Split the substitutions into bite-sized pieces for seds with
25976 # small command number limits, like on Digital OSF/1 and HP-UX.
25977 ac_max_sed_lines
=48
25978 ac_sed_frag
=1 # Number of current file.
25979 ac_beg
=1 # First line for current file.
25980 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25983 while $ac_more_lines; do
25984 if test $ac_beg -gt 1; then
25985 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25987 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25989 if test ! -s $tmp/subs.frag
; then
25990 ac_more_lines
=false
25992 # The purpose of the label and of the branching condition is to
25993 # speed up the sed processing (if there are no `@' at all, there
25994 # is no need to browse any of the substitutions).
25995 # These are the two extra sed commands mentioned above.
25997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25998 if test -z "$ac_sed_cmds"; then
25999 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
26001 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26003 ac_sed_frag
=`expr $ac_sed_frag + 1`
26005 ac_end
=`expr $ac_end + $ac_max_sed_lines`
26008 if test -z "$ac_sed_cmds"; then
26011 fi # test -n "$CONFIG_FILES"
26014 cat >>$CONFIG_STATUS <<\_ACEOF
26015 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
26016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26018 - |
*:- |
*:-:* ) # input from stdin
26020 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26021 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26022 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26023 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26024 * ) ac_file_in
=$ac_file.
in ;;
26027 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26028 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
26029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26030 X"$ac_file" : 'X\(//\)[^/]' \| \
26031 X"$ac_file" : 'X\(//\)$' \| \
26032 X"$ac_file" : 'X\(/\)' \| \
26033 . : '\(.\)' 2>/dev/null ||
26035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26037 /^X\(\/\/\)$/{ s//\1/; q; }
26038 /^X\(\/\).*/{ s//\1/; q; }
26040 { if $as_mkdir_p; then
26045 while test ! -d "$as_dir"; do
26046 as_dirs
="$as_dir $as_dirs"
26047 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26049 X"$as_dir" : 'X\(//\)[^/]' \| \
26050 X"$as_dir" : 'X\(//\)$' \| \
26051 X"$as_dir" : 'X\(/\)' \| \
26052 . : '\(.\)' 2>/dev/null ||
26054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26056 /^X\(\/\/\)$/{ s//\1/; q; }
26057 /^X\(\/\).*/{ s//\1/; q; }
26060 test ! -n "$as_dirs" || mkdir
$as_dirs
26061 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26063 { (exit 1); exit 1; }; }; }
26067 if test "$ac_dir" != .
; then
26068 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26069 # A "../" for each directory in $ac_dir_suffix.
26070 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26072 ac_dir_suffix
= ac_top_builddir
=
26076 .
) # No --srcdir option. We are building in place.
26078 if test -z "$ac_top_builddir"; then
26081 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26083 [\\/]* | ?
:[\\/]* ) # Absolute path.
26084 ac_srcdir
=$srcdir$ac_dir_suffix;
26085 ac_top_srcdir
=$srcdir ;;
26086 *) # Relative path.
26087 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26088 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26091 # Do not use `cd foo && pwd` to compute absolute paths, because
26092 # the directories may not exist.
26094 .
) ac_abs_builddir
="$ac_dir";;
26097 .
) ac_abs_builddir
=`pwd`;;
26098 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26099 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26102 case $ac_abs_builddir in
26103 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26105 case ${ac_top_builddir}.
in
26106 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26107 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26108 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26111 case $ac_abs_builddir in
26112 .
) ac_abs_srcdir
=$ac_srcdir;;
26115 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26116 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26117 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26120 case $ac_abs_builddir in
26121 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26123 case $ac_top_srcdir in
26124 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26125 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26126 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26132 if test x
"$ac_file" != x-
; then
26133 { echo "$as_me:$LINENO: creating $ac_file" >&5
26134 echo "$as_me: creating $ac_file" >&6;}
26137 # Let's still pretend it is `configure' which instantiates (i.e., don't
26138 # use $as_me), people would be surprised to read:
26139 # /* config.h. Generated by config.status. */
26140 if test x
"$ac_file" = x-
; then
26143 configure_input
="$ac_file. "
26145 configure_input
=$configure_input"Generated from `echo $ac_file_in |
26146 sed 's,.*/,,'` by configure."
26148 # First look for the input files in the build tree, otherwise in the
26150 ac_file_inputs
=`IFS=:
26151 for f in $ac_file_in; do
26153 -) echo $tmp/stdin ;;
26155 # Absolute (can't be DOS-style, as IFS=:)
26156 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26157 echo "$as_me: error: cannot find input file: $f" >&2;}
26158 { (exit 1); exit 1; }; }
26161 if test -f "$f"; then
26164 elif test -f "$srcdir/$f"; then
26169 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26170 echo "$as_me: error: cannot find input file: $f" >&2;}
26171 { (exit 1); exit 1; }; }
26174 done` ||
{ (exit 1); exit 1; }
26176 cat >>$CONFIG_STATUS <<_ACEOF
26180 cat >>$CONFIG_STATUS <<\_ACEOF
26182 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26183 s
,@configure_input@
,$configure_input,;t t
26184 s
,@srcdir@
,$ac_srcdir,;t t
26185 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
26186 s
,@top_srcdir@
,$ac_top_srcdir,;t t
26187 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
26188 s
,@builddir@
,$ac_builddir,;t t
26189 s
,@abs_builddir@
,$ac_abs_builddir,;t t
26190 s
,@top_builddir@
,$ac_top_builddir,;t t
26191 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
26192 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26194 if test x"$ac_file" != x-; then
26195 mv $tmp/out $ac_file
26201 # Run the commands associated with the file.
26203 as ) chmod +x as ;;
26204 collect-ld ) chmod +x collect-ld ;;
26205 nm ) chmod +x nm ;;
26209 cat >>$CONFIG_STATUS <<\_ACEOF
26212 # CONFIG_HEADER section.
26215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
26216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26218 # ac_d sets the value in "#define NAME VALUE" lines.
26219 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26220 ac_dB
='[ ].*$,\1#\2'
26223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26224 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26225 ac_uB
='$,\1#\2define\3'
26229 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
26230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26232 - |
*:- |
*:-:* ) # input from stdin
26234 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26235 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26236 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26237 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26238 * ) ac_file_in
=$ac_file.
in ;;
26241 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
26242 echo "$as_me: creating $ac_file" >&6;}
26244 # First look for the input files in the build tree, otherwise in the
26246 ac_file_inputs
=`IFS=:
26247 for f in $ac_file_in; do
26249 -) echo $tmp/stdin ;;
26251 # Absolute (can't be DOS-style, as IFS=:)
26252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26253 echo "$as_me: error: cannot find input file: $f" >&2;}
26254 { (exit 1); exit 1; }; }
26255 # Do quote $f, to prevent DOS paths from being IFS'd.
26258 if test -f "$f"; then
26261 elif test -f "$srcdir/$f"; then
26266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26267 echo "$as_me: error: cannot find input file: $f" >&2;}
26268 { (exit 1); exit 1; }; }
26271 done` ||
{ (exit 1); exit 1; }
26272 # Remove the trailing spaces.
26273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26277 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26278 # `conftest.undefs', that substitutes the proper values into
26279 # config.h.in to produce config.h. The first handles `#define'
26280 # templates, and the second `#undef' templates.
26281 # And first: Protect against being on the right side of a sed subst in
26282 # config.status. Protect against being in an unquoted here document
26283 # in config.status.
26284 rm -f conftest.defines conftest.undefs
26285 # Using a here document instead of a string reduces the quoting nightmare.
26286 # Putting comments in sed scripts is not portable.
26288 # `end' is used to avoid that the second main sed command (meant for
26289 # 0-ary CPP macros) applies to n-ary macro definitions.
26290 # See the Autoconf documentation for `clear'.
26291 cat >confdef2sed.
sed <<\_ACEOF
26296 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26298 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26301 # If some macros were called several times there might be several times
26302 # the same #defines, which is useless. Nevertheless, we may not want to
26303 # sort them, since we want the *last* AC-DEFINE to be honored.
26304 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26305 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26306 rm -f confdef2sed.sed
26308 # This sed command replaces #undef with comments. This is necessary, for
26309 # example, in the case of _POSIX_SOURCE, which is predefined and required
26310 # on some systems where configure will not decide to define it.
26311 cat >>conftest.undefs <<\_ACEOF
26312 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26315 # Break up conftest.defines because some shells have a limit on the size
26316 # of here documents, and old seds have small limits too (100 cmds).
26317 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26318 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26319 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26320 echo ' :' >>$CONFIG_STATUS
26321 rm -f conftest.tail
26322 while grep . conftest.defines >/dev/null
26324 # Write a limited-size here document to $tmp/defines.sed.
26325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26326 # Speed up: don't consider the non `#define' lines.
26327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26328 # Work around the forget-to-reset-the-flag bug.
26329 echo 't clr' >>$CONFIG_STATUS
26330 echo ': clr' >>$CONFIG_STATUS
26331 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
26333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26335 mv $tmp/out $tmp/in
26337 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
26338 rm -f conftest.defines
26339 mv conftest.
tail conftest.defines
26341 rm -f conftest.defines
26342 echo ' fi # grep' >>$CONFIG_STATUS
26343 echo >>$CONFIG_STATUS
26345 # Break up conftest.undefs because some shells have a limit on the size
26346 # of here documents, and old seds have small limits too (100 cmds).
26347 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26348 rm -f conftest.
tail
26349 while grep . conftest.undefs
>/dev
/null
26351 # Write a limited-size here document to $tmp/undefs.sed.
26352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26353 # Speed up: don't consider the non
`#undef'
26354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26355 # Work around the forget-to-reset-the-flag bug.
26356 echo 't clr' >>$CONFIG_STATUS
26357 echo ': clr' >>$CONFIG_STATUS
26358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26362 mv $tmp/out $tmp/in
26364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26365 rm -f conftest.undefs
26366 mv conftest.tail conftest.undefs
26368 rm -f conftest.undefs
26370 cat >>$CONFIG_STATUS <<\_ACEOF
26371 # Let's still pretend it is `configure
' which instantiates (i.e., don't
26372 # use $as_me), people would be surprised to read:
26373 # /* config.h. Generated by config.status. */
26374 if test x
"$ac_file" = x-
; then
26375 echo "/* Generated by configure. */" >$tmp/config.h
26377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26379 cat $tmp/in >>$tmp/config.h
26381 if test x
"$ac_file" != x-
; then
26382 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
26383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26384 echo "$as_me: $ac_file is unchanged" >&6;}
26386 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
26387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26388 X"$ac_file" : 'X\(//\)[^/]' \| \
26389 X"$ac_file" : 'X\(//\)$' \| \
26390 X"$ac_file" : 'X\(/\)' \| \
26391 . : '\(.\)' 2>/dev/null ||
26393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26395 /^X\(\/\/\)$/{ s//\1/; q; }
26396 /^X\(\/\).*/{ s//\1/; q; }
26398 { if $as_mkdir_p; then
26403 while test ! -d "$as_dir"; do
26404 as_dirs
="$as_dir $as_dirs"
26405 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26407 X"$as_dir" : 'X\(//\)[^/]' \| \
26408 X"$as_dir" : 'X\(//\)$' \| \
26409 X"$as_dir" : 'X\(/\)' \| \
26410 . : '\(.\)' 2>/dev/null ||
26412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26414 /^X\(\/\/\)$/{ s//\1/; q; }
26415 /^X\(\/\).*/{ s//\1/; q; }
26418 test ! -n "$as_dirs" || mkdir
$as_dirs
26419 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26421 { (exit 1); exit 1; }; }; }
26424 mv $tmp/config.h
$ac_file
26428 rm -f $tmp/config.h
26432 cat >>$CONFIG_STATUS <<\_ACEOF
26435 # CONFIG_COMMANDS section.
26437 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
26438 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
26439 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26440 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
26441 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26442 X"$ac_dest" : 'X\(//\)[^/]' \| \
26443 X"$ac_dest" : 'X\(//\)$' \| \
26444 X"$ac_dest" : 'X\(/\)' \| \
26445 . : '\(.\)' 2>/dev/null ||
26447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26449 /^X\(\/\/\)$/{ s//\1/; q; }
26450 /^X\(\/\).*/{ s//\1/; q; }
26452 { if $as_mkdir_p; then
26457 while test ! -d "$as_dir"; do
26458 as_dirs
="$as_dir $as_dirs"
26459 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26461 X"$as_dir" : 'X\(//\)[^/]' \| \
26462 X"$as_dir" : 'X\(//\)$' \| \
26463 X"$as_dir" : 'X\(/\)' \| \
26464 . : '\(.\)' 2>/dev/null ||
26466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26468 /^X\(\/\/\)$/{ s//\1/; q; }
26469 /^X\(\/\).*/{ s//\1/; q; }
26472 test ! -n "$as_dirs" || mkdir
$as_dirs
26473 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26475 { (exit 1); exit 1; }; }; }
26479 if test "$ac_dir" != .
; then
26480 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26481 # A "../" for each directory in $ac_dir_suffix.
26482 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26484 ac_dir_suffix
= ac_top_builddir
=
26488 .
) # No --srcdir option. We are building in place.
26490 if test -z "$ac_top_builddir"; then
26493 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26495 [\\/]* | ?
:[\\/]* ) # Absolute path.
26496 ac_srcdir
=$srcdir$ac_dir_suffix;
26497 ac_top_srcdir
=$srcdir ;;
26498 *) # Relative path.
26499 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26500 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26503 # Do not use `cd foo && pwd` to compute absolute paths, because
26504 # the directories may not exist.
26506 .
) ac_abs_builddir
="$ac_dir";;
26509 .
) ac_abs_builddir
=`pwd`;;
26510 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26511 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26514 case $ac_abs_builddir in
26515 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26517 case ${ac_top_builddir}.
in
26518 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26519 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26520 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26523 case $ac_abs_builddir in
26524 .
) ac_abs_srcdir
=$ac_srcdir;;
26527 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26528 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26529 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26532 case $ac_abs_builddir in
26533 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26535 case $ac_top_srcdir in
26536 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26537 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26538 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26543 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26544 echo "$as_me: executing $ac_dest commands" >&6;}
26547 case ${CONFIG_HEADERS} in
26548 *auto-host.h
:config.
in*)
26551 # Make sure all the subdirs exist.
26552 for d
in $subdirs doc build
26554 test -d $d || mkdir
$d
26561 cat >>$CONFIG_STATUS <<\_ACEOF
26563 { (exit 0); exit 0; }
26565 chmod +x
$CONFIG_STATUS
26566 ac_clean_files
=$ac_clean_files_save
26569 # configure is writing to config.log, and then calls config.status.
26570 # config.status does its own redirection, appending to config.log.
26571 # Unfortunately, on DOS this fails, as config.log is still kept open
26572 # by configure, so config.status won't be able to write to it; its
26573 # output is simply discarded. So we exec the FD to /dev/null,
26574 # effectively closing config.log, so it can be properly (re)opened and
26575 # appended to by config.status. When coming back to configure, we
26576 # need to make the FD available again.
26577 if test "$no_create" != yes; then
26579 ac_config_status_args
=
26580 test "$silent" = yes &&
26581 ac_config_status_args
="$ac_config_status_args --quiet"
26583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26586 # would make configure fail if this is the last instruction.
26587 $ac_cs_success ||
{ (exit 1); exit 1; }