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-maintainer-mode
1082 enable make rules and dependencies not useful
1083 (and sometimes confusing) to the casual installer
1084 --enable-version-specific-runtime-libs
1085 specify that runtime libraries should be
1086 installed in a compiler-specific directory
1087 --enable-plugin enable plugin support
1090 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1091 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1092 --with-build-libsubdir=DIR Directory where to find libraries for build system
1093 --with-local-prefix=DIR specifies directory to put local include
1094 --with-gxx-include-dir=DIR
1095 specifies directory to put g++ header files
1096 --with-cpp-install-dir=DIR
1097 install the user visible C preprocessor in DIR
1098 (relative to PREFIX) as well as PREFIX/bin
1099 --with-gnu-ld arrange to work with GNU ld.
1100 --with-ld arrange to use the specified ld (full pathname)
1101 --with-demangler-in-ld try to use demangler in GNU ld.
1102 --with-gnu-as arrange to work with GNU as
1103 --with-as arrange to use the specified as (full pathname)
1104 --with-stabs arrange to use stabs instead of host debug format
1105 --with-dwarf2 force the default debug format to be DWARF 2
1106 --with-build-sysroot=sysroot
1107 use sysroot as the system root during the build
1108 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1109 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1110 --with-bugurl=URL Direct users to URL to report a bug
1111 --with-multilib-list Select multilibs (SH only)
1112 --with-gnu-ld assume the C compiler uses GNU ld default=no
1113 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1114 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1115 --with-system-libunwind use installed libunwind
1116 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1118 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1119 --with-long-double-128 Use
128-bit long double by default.
1120 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1122 --with-system-zlib use installed libz
1123 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1124 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
1125 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
1126 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
1128 Some influential environment variables
:
1129 CC C compiler
command
1130 CFLAGS C compiler flags
1131 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1132 nonstandard directory
<lib dir
>
1133 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1134 headers
in a nonstandard directory
<include dir
>
1136 GMPLIBS How to link GMP
1137 GMPINC How to
find GMP include files
1138 PPLLIBS How to link PPL
1139 PPLINC How to
find PPL include files
1140 CLOOGLIBS How to link CLOOG
1141 CLOOGINC How to
find CLOOG include files
1143 Use these variables to override the choices made by
`configure' or to help
1144 it to find libraries and programs with nonstandard names/locations.
1149 if test "$ac_init_help" = "recursive"; then
1150 # If there are subdirs, report their specific --help.
1152 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1153 test -d $ac_dir || continue
1156 if test "$ac_dir" != .; then
1157 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1158 # A "../" for each directory in $ac_dir_suffix.
1159 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1161 ac_dir_suffix= ac_top_builddir=
1165 .) # No --srcdir option. We are building in place.
1167 if test -z "$ac_top_builddir"; then
1170 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1172 [\\/]* | ?:[\\/]* ) # Absolute path.
1173 ac_srcdir=$srcdir$ac_dir_suffix;
1174 ac_top_srcdir=$srcdir ;;
1176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1180 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1181 # the directories may not exist.
1183 .) ac_abs_builddir="$ac_dir";;
1186 .) ac_abs_builddir=`pwd`;;
1187 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1188 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1191 case $ac_abs_builddir in
1192 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1194 case ${ac_top_builddir}. in
1195 .) ac_abs_top_builddir=$ac_abs_builddir;;
1196 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1197 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1200 case $ac_abs_builddir in
1201 .) ac_abs_srcdir=$ac_srcdir;;
1204 .) ac_abs_srcdir=$ac_abs_builddir;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1206 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1212 case $ac_top_srcdir in
1213 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1215 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220 # Check for guested configure; otherwise get Cygnus style configure.
1221 if test -f $ac_srcdir/configure.gnu; then
1223 $SHELL $ac_srcdir/configure.gnu --help=recursive
1224 elif test -f $ac_srcdir/configure; then
1226 $SHELL $ac_srcdir/configure --help=recursive
1227 elif test -f $ac_srcdir/configure.ac ||
1228 test -f $ac_srcdir/configure.in; then
1230 $ac_configure --help
1232 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1238 test -n "$ac_init_help" && exit 0
1239 if $ac_init_version; then
1242 Copyright (C) 2003 Free Software Foundation, Inc.
1243 This configure script is free software; the Free Software Foundation
1244 gives unlimited permission to copy, distribute and modify it.
1250 This file contains any messages produced by compilers while
1251 running configure, to aid debugging if configure makes a mistake.
1253 It was created by $as_me, which was
1254 generated by GNU Autoconf 2.59. Invocation command line was
1265 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1266 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1267 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1268 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1269 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1271 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1272 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1274 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1275 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1276 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1277 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1278 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1279 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1280 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1288 test -z "$as_dir" && as_dir=.
1289 echo "PATH: $as_dir"
1304 # Keep a trace of the command line.
1305 # Strip out --no-create and --no-recursion so they do not pile up.
1306 # Strip out --silent because we don't want to record it for future runs.
1307 # Also quote any args containing shell meta-characters.
1308 # Make two passes to allow for proper duplicate-argument suppression.
1313 ac_must_keep_next=false
1319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321 | -silent | --silent | --silen | --sile | --sil)
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1327 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1330 if test $ac_must_keep_next = true; then
1331 ac_must_keep_next=false # Got value, back to normal.
1334 *=* | --config-cache | -C | -disable-* | --disable-* \
1335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1337 | -with-* | --with-* | -without-* | --without-* | --x)
1338 case "$ac_configure_args0 " in
1339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342 -* ) ac_must_keep_next=true ;;
1345 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1346 # Get rid of the leading space.
1352 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1353 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355 # When interrupted or exit'd, cleanup temporary files, and complete
1356 # config.log. We remove comments because anyway the quotes in there
1357 # would cause problems or look ugly.
1358 # WARNING: Be sure not to use single quotes in there, as some shells,
1359 # such as our DU 5.0 friend, will then `close
' the trap.
1360 trap 'exit_status
=$?
1361 # Save into config.log some information that might help in debugging.
1366 ## ---------------- ##
1367 ## Cache variables. ##
1368 ## ---------------- ##
1371 # The following way of writing the cache mishandles newlines in values,
1374 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1389 ## ----------------- ##
1390 ## Output variables. ##
1391 ## ----------------- ##
1394 for ac_var
in $ac_subst_vars
1396 eval ac_val
=$
`echo $ac_var`
1397 echo "$ac_var='"'"'$ac_val'"'"'"
1401 if test -n "$ac_subst_files"; then
1408 for ac_var
in $ac_subst_files
1410 eval ac_val
=$
`echo $ac_var`
1411 echo "$ac_var='"'"'$ac_val'"'"'"
1416 if test -s confdefs.h
; then
1423 sed "/^$/d" confdefs.h |
sort
1426 test "$ac_signal" != 0 &&
1427 echo "$as_me: caught signal $ac_signal"
1428 echo "$as_me: exit $exit_status"
1430 rm -f core
*.core
&&
1431 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1434 for ac_signal in 1 2 13 15; do
1435 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1440 rm -rf conftest* confdefs.h
1441 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444 # Predefined preprocessor variables.
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_NAME "$PACKAGE_NAME"
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_STRING "$PACKAGE_STRING"
1466 cat >>confdefs.h <<_ACEOF
1467 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1471 # Let the site file select an alternate cache file if it wants to.
1472 # Prefer explicitly selected file to automatically selected ones.
1473 if test -z "$CONFIG_SITE"; then
1474 if test "x$prefix" != xNONE; then
1475 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480 for ac_site_file in $CONFIG_SITE; do
1481 if test -r "$ac_site_file"; then
1482 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1483 echo "$as_me: loading site script $ac_site_file" >&6;}
1484 sed 's
/^
/|
/' "$ac_site_file" >&5
1489 if test -r "$cache_file"; then
1490 # Some versions of bash will fail to source /dev/null (special
1491 # files actually), so we avoid doing that.
1492 if test -f "$cache_file"; then
1493 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1494 echo "$as_me: loading cache $cache_file" >&6;}
1496 [\\/]* | ?:[\\/]* ) . $cache_file;;
1497 *) . ./$cache_file;;
1501 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1502 echo "$as_me: creating cache $cache_file" >&6;}
1506 # Check that the precious variables saved in the cache have kept the same
1508 ac_cache_corrupted=false
1509 for ac_var in `(set) 2>&1 |
1510 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1512 eval ac_new_set=\$ac_env_${ac_var}_set
1513 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1514 eval ac_new_val="\$ac_env_${ac_var}_value"
1515 case $ac_old_set,$ac_new_set in
1517 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1518 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1519 ac_cache_corrupted=: ;;
1521 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1522 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1523 ac_cache_corrupted=: ;;
1526 if test "x$ac_old_val" != "x$ac_new_val"; then
1527 # differences in whitespace do not lead to failure.
1528 ac_old_val_w=`echo x $ac_old_val`
1529 ac_new_val_w=`echo x $ac_new_val`
1530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1531 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1532 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1533 ac_cache_corrupted=:
1535 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1536 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1537 eval $ac_var=\$ac_old_val
1539 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1540 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1541 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1542 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1545 # Pass precious variables to config.status.
1546 if test "$ac_new_set" = set; then
1548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1550 *) ac_arg=$ac_var=$ac_new_val ;;
1552 case " $ac_configure_args " in
1553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1554 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558 if $ac_cache_corrupted; then
1559 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1560 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1561 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1562 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1563 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1564 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1565 { (exit 1); exit 1; }; }
1569 ac_cpp='$CPP $CPPFLAGS'
1570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1599 gcc_version=`cat $srcdir/BASE-VER
`
1601 # Determine the host, build, and target systems
1603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1604 if test -f $ac_dir/install-sh; then
1606 ac_install_sh="$ac_aux_dir/install-sh -c"
1608 elif test -f $ac_dir/install.sh; then
1610 ac_install_sh="$ac_aux_dir/install.sh -c"
1612 elif test -f $ac_dir/shtool; then
1614 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 if test -z "$ac_aux_dir"; then
1619 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1620 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1621 { (exit 1); exit 1; }; }
1623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1625 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1627 # Make sure we can run config.sub.
1628 $ac_config_sub sun4 >/dev/null 2>&1 ||
1629 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1630 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1631 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: checking build system type" >&5
1634 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1635 if test "${ac_cv_build+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 ac_cv_build_alias=$build_alias
1639 test -z "$ac_cv_build_alias" &&
1640 ac_cv_build_alias=`$ac_config_guess`
1641 test -z "$ac_cv_build_alias" &&
1642 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1643 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1644 { (exit 1); exit 1; }; }
1645 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1652 echo "${ECHO_T}$ac_cv_build" >&6
1654 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking host system type" >&5
1660 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1661 if test "${ac_cv_host+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_host_alias=$host_alias
1665 test -z "$ac_cv_host_alias" &&
1666 ac_cv_host_alias=$ac_cv_build_alias
1667 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1674 echo "${ECHO_T}$ac_cv_host" >&6
1676 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 echo "$as_me:$LINENO: checking target system type" >&5
1682 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1683 if test "${ac_cv_target+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 ac_cv_target_alias=$target_alias
1687 test "x$ac_cv_target_alias" = "x" &&
1688 ac_cv_target_alias=$ac_cv_host_alias
1689 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1696 echo "${ECHO_T}$ac_cv_target" >&6
1697 target=$ac_cv_target
1698 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703 # The aliases save the names the user supplied, while $host etc.
1704 # will get canonicalized.
1705 test -n "$target_alias" &&
1706 test "$program_prefix$program_suffix$program_transform_name" = \
1708 program_prefix=${target_alias}-
1710 # Determine the noncanonical target name, for directory use.
1711 case ${build_alias} in
1712 "") build_noncanonical=${build} ;;
1713 *) build_noncanonical=${build_alias} ;;
1716 case ${host_alias} in
1717 "") host_noncanonical=${build_noncanonical} ;;
1718 *) host_noncanonical=${host_alias} ;;
1721 case ${target_alias} in
1722 "") target_noncanonical=${host_noncanonical} ;;
1723 *) target_noncanonical=${target_alias} ;;
1729 # Determine the target- and build-specific subdirectories
1731 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1732 # have matching libraries, they should use host libraries: Makefile.tpl
1733 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1734 # However, they still use the build modules, because the corresponding
1735 # host modules (e.g. bison) are only built for the host when bootstrap
1737 # - build_subdir is where we find build modules, and never changes.
1738 # - build_libsubdir is where we find build libraries, and can be overridden.
1740 # Prefix 'build-' so this never conflicts with target_subdir.
1741 build_subdir="build-${build_noncanonical}"
1743 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1744 if test "${with_build_libsubdir+set}" = set; then
1745 withval="$with_build_libsubdir"
1746 build_libsubdir="$withval"
1748 build_libsubdir="$build_subdir"
1750 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1751 if ( test $srcdir = . && test -d gcc ) \
1752 || test -d $srcdir/../host-${host_noncanonical}; then
1753 host_subdir="host-${host_noncanonical}"
1758 target_subdir=${target_noncanonical}
1761 # Set program_transform_name
1762 test "$program_prefix" != NONE &&
1763 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1764 # Use a double $ so make ignores it.
1765 test "$program_suffix" != NONE &&
1766 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1767 # Double any \ or $. echo might interpret backslashes.
1768 # By default was `s
,x
,x
', remove it if useless.
1769 cat <<\_ACEOF >conftest.sed
1770 s/[\\$]/&&/g;s/;s,x,x,$//
1772 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1776 # Check for bogus environment variables.
1777 # Test if LIBRARY_PATH contains the notation for the current directory
1778 # since this would lead to problems installing/building glibc.
1779 # LIBRARY_PATH contains the current directory if one of the following
1781 # - one of the terminals (":" and ";") is the first or last sign
1782 # - two terminals occur directly after each other
1783 # - the path contains an element with a dot in it
1784 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1785 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1786 case ${LIBRARY_PATH} in
1787 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1788 library_path_setting="contains current directory"
1791 library_path_setting="ok"
1794 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1795 echo "${ECHO_T}$library_path_setting" >&6
1796 if test "$library_path_setting" != "ok"; then
1797 { { echo "$as_me:$LINENO: error:
1798 *** LIBRARY_PATH shouldn't contain the current directory when
1799 *** building gcc. Please change the environment variable
1800 *** and run configure again.
" >&5
1801 echo "$as_me: error
:
1802 *** LIBRARY_PATH shouldn
't contain the current directory when
1803 *** building gcc. Please change the environment variable
1804 *** and run configure again." >&2;}
1805 { (exit 1); exit 1; }; }
1808 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1809 # since this would lead to problems installing/building glibc.
1810 # GCC_EXEC_PREFIX contains the current directory if one of the following
1812 # - one of the terminals (":" and ";") is the first or last sign
1813 # - two terminals occur directly after each other
1814 # - the path contains an element with a dot in it
1815 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1816 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1817 case ${GCC_EXEC_PREFIX} in
1818 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1819 gcc_exec_prefix_setting="contains current directory"
1822 gcc_exec_prefix_setting="ok"
1825 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1826 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1827 if test "$gcc_exec_prefix_setting" != "ok"; then
1828 { { echo "$as_me:$LINENO: error:
1829 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1830 *** building gcc. Please change the environment variable
1831 *** and run configure again.
" >&5
1832 echo "$as_me: error
:
1833 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
1834 *** building gcc. Please change the environment variable
1835 *** and run configure again." >&2;}
1836 { (exit 1); exit 1; }; }
1843 # Specify the local prefix
1846 # Check whether --with-local-prefix or --without-local-prefix was given.
1847 if test "${with_local_prefix+set}" = set; then
1848 withval="$with_local_prefix"
1849 case "${withval}" in
1850 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1851 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1852 { (exit 1); exit 1; }; } ;;
1854 *) local_prefix=$with_local_prefix ;;
1858 # Default local prefix if it is empty
1859 if test x$local_prefix = x; then
1860 local_prefix=/usr/local
1863 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
1864 # passed in by the toplevel make and thus we'd get different behavior
1865 # depending on where we built the sources.
1866 gcc_gxx_include_dir
=
1867 # Specify the g++ header file directory
1869 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1870 if test "${with_gxx_include_dir+set}" = set; then
1871 withval
="$with_gxx_include_dir"
1872 case "${withval}" in
1873 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1874 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1875 { (exit 1); exit 1; }; } ;;
1877 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1881 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1882 if test x
${gcc_gxx_include_dir} = x
; then
1883 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1884 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1886 libstdcxx_incdir
='include/c++/$(version)'
1887 if test x
$host != x
$target; then
1888 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1890 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1895 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1896 if test "${with_cpp_install_dir+set}" = set; then
1897 withval
="$with_cpp_install_dir"
1898 if test x
$withval = xyes
; then
1899 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1900 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1901 { (exit 1); exit 1; }; }
1902 elif test x
$withval != xno
; then
1903 cpp_install_dir
=$withval
1907 # We would like to our source tree to be readonly. However when releases or
1908 # pre-releases are generated, the flex/bison generated files as well as the
1909 # various formats of manuals need to be included along with the rest of the
1910 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1913 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1914 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1915 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1916 if test "${enable_generated_files_in_srcdir+set}" = set; then
1917 enableval
="$enable_generated_files_in_srcdir"
1918 generated_files_in_srcdir
=$enableval
1920 generated_files_in_srcdir
=no
1923 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1924 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1926 if test "$generated_files_in_srcdir" = "yes"; then
1933 # -------------------
1934 # Find default linker
1935 # -------------------
1939 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1940 if test "${with_gnu_ld+set}" = set; then
1941 withval
="$with_gnu_ld"
1942 gnu_ld_flag
="$with_gnu_ld"
1947 # With pre-defined ld
1949 # Check whether --with-ld or --without-ld was given.
1950 if test "${with_ld+set}" = set; then
1952 DEFAULT_LINKER
="$with_ld"
1954 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1955 if test ! -x "$DEFAULT_LINKER"; then
1956 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1957 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1958 { (exit 1); exit 1; }; }
1959 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1963 cat >>confdefs.h
<<_ACEOF
1964 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1969 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1971 cat >>confdefs.h
<<_ACEOF
1972 #define HAVE_GNU_LD $gnu_ld
1976 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1977 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1978 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1979 if test x
"$gnu_ld_flag" = x
"no"; then
1980 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1981 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1983 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1984 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1991 # With demangler in GNU ld
1993 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1994 if test "${with_demangler_in_ld+set}" = set; then
1995 withval
="$with_demangler_in_ld"
1996 demangler_in_ld
="$with_demangler_in_ld"
2001 # ----------------------
2002 # Find default assembler
2003 # ----------------------
2007 # Check whether --with-gnu-as or --without-gnu-as was given.
2008 if test "${with_gnu_as+set}" = set; then
2009 withval
="$with_gnu_as"
2010 gas_flag
="$with_gnu_as"
2016 # Check whether --with-as or --without-as was given.
2017 if test "${with_as+set}" = set; then
2019 DEFAULT_ASSEMBLER
="$with_as"
2021 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2022 if test ! -x "$DEFAULT_ASSEMBLER"; then
2023 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2024 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2025 { (exit 1); exit 1; }; }
2026 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
2030 cat >>confdefs.h
<<_ACEOF
2031 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2036 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2038 cat >>confdefs.h
<<_ACEOF
2039 #define HAVE_GNU_AS $gnu_as
2043 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2044 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2045 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2046 if test x
"$gas_flag" = x
"no"; then
2047 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2048 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2050 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2051 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2062 # If a non-executable a.out is present (e.g. created by GNU as above even if
2063 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2064 # file, even when creating an executable, so an execution test fails.
2065 # Remove possible default executable files to avoid this.
2067 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2068 # Autoconf includes it.
2069 rm -f a.out a.exe b.out
2071 # Find the native compiler
2073 ac_cpp
='$CPP $CPPFLAGS'
2074 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2079 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC
="$CC" # Let the user override the test.
2088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir
=.
2093 for ac_exec_ext
in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2114 if test -z "$ac_cv_prog_CC"; then
2116 # Extract the first word of "gcc", so it can be a program name with args.
2117 set dummy gcc
; ac_word
=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC
="gcc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2156 if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2159 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC
="$CC" # Let the user override the test.
2168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir
=.
2173 for ac_exec_ext
in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$CC"; then
2186 echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2194 if test -z "$ac_cv_prog_CC"; then
2196 # Extract the first word of "cc", so it can be a program name with args.
2197 set dummy cc
; ac_word
=$2
2198 echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$ac_ct_CC"; then
2204 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir
=.
2211 for ac_exec_ext
in '' $ac_executable_extensions; do
2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2213 ac_cv_prog_ac_ct_CC
="cc"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6
2227 echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2237 if test -z "$CC"; then
2238 # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc
; ac_word
=$2
2240 echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC
="$CC" # Let the user override the test.
2249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir
=.
2254 for ac_exec_ext
in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257 ac_prog_rejected
=yes
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test $ac_prog_rejected = yes; then
2268 # We found a bogon in the path, so make sure we never use it.
2269 set dummy
$ac_cv_prog_CC
2271 if test $# != 0; then
2272 # We chose a different compiler from the bogus one.
2273 # However, it has the same basename, so the bogon will be chosen
2274 # first if we set CC to just the basename; use the full file name.
2276 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2282 if test -n "$CC"; then
2283 echo "$as_me:$LINENO: result: $CC" >&5
2284 echo "${ECHO_T}$CC" >&6
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2296 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC
="$CC" # Let the user override the test.
2305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir
=.
2310 for ac_exec_ext
in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 if test -n "$CC"; then
2323 echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2330 test -n "$CC" && break
2333 if test -z "$CC"; then
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy
$ac_prog; ac_word
=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir
=.
2352 for ac_exec_ext
in '' $ac_executable_extensions; do
2353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_ac_ct_CC
="$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2372 test -n "$ac_ct_CC" && break
2381 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2382 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: no acceptable C compiler found in \$PATH
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }; }
2389 # Provide some information about the compiler.
2390 echo "$as_me:$LINENO:" \
2391 "checking for C compiler version" >&5
2392 ac_compiler
=`set X $ac_compile; echo $2`
2393 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2394 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2399 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2404 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }
2409 cat >conftest.
$ac_ext <<_ACEOF
2412 cat confdefs.h
>>conftest.
$ac_ext
2413 cat >>conftest.
$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2424 ac_clean_files_save
=$ac_clean_files
2425 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2426 # Try to create an executable without -o first, disregard a.out.
2427 # It will help us diagnose broken compilers, and finding out an intuition
2429 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2430 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2431 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2432 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2433 (eval $ac_link_default) 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; then
2437 # Find the output, starting from the most likely. This scheme is
2438 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2441 # Be careful to initialize this variable, since it used to be cached.
2442 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2444 # b.out is created by i960 compilers.
2445 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2447 test -f "$ac_file" ||
continue
2449 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2452 # This is the source file.
2455 # We found the default executable, but exeext='' is most
2459 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460 # FIXME: I believe we export ac_cv_exeext for Libtool,
2461 # but it would be cool to find out if it's true. Does anybody
2462 # maintain Libtool? --akim.
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.
$ac_ext >&5
2473 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2474 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&2;}
2479 { (exit 77); exit 77; }; }; }
2482 ac_exeext
=$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_file" >&5
2484 echo "${ECHO_T}$ac_file" >&6
2486 # Check the compiler produces executables we can run. If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2491 # If not cross compiling, check that we can run a simple program.
2492 if test "$cross_compiling" != yes; then
2493 if { ac_try
='./$ac_file'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 if test "$cross_compiling" = maybe
; then
2504 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }; }
2516 echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6
2519 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2520 ac_clean_files
=$ac_clean_files_save
2521 # Check the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2525 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6
2528 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531 (eval $ac_link) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2539 for ac_file
in conftest.exe conftest conftest.
*; do
2540 test -f "$ac_file" ||
continue
2542 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2543 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }; }
2559 rm -f conftest
$ac_cv_exeext
2560 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561 echo "${ECHO_T}$ac_cv_exeext" >&6
2563 rm -f conftest.
$ac_ext
2564 EXEEXT
=$ac_cv_exeext
2566 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2568 if test "${ac_cv_objext+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.
$ac_ext <<_ACEOF
2574 cat confdefs.h
>>conftest.
$ac_ext
2575 cat >>conftest.
$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.o conftest.obj
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2594 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2595 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.
$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2604 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }; }
2612 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2614 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6
2616 OBJEXT
=$ac_cv_objext
2618 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.
$ac_ext <<_ACEOF
2626 cat confdefs.h
>>conftest.
$ac_ext
2627 cat >>conftest.
$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2641 rm -f conftest.
$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1
>conftest.err
2647 cat conftest.err
>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try
='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try
='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2671 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2674 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2676 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2677 ac_test_CFLAGS
=${CFLAGS+set}
2678 ac_save_CFLAGS
=$CFLAGS
2680 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2682 if test "${ac_cv_prog_cc_g+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.
$ac_ext <<_ACEOF
2688 cat confdefs.h
>>conftest.
$ac_ext
2689 cat >>conftest.
$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.
$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1
>conftest.err
2706 cat conftest.err
>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try
='test -z "$ac_c_werror_flag"
2710 || test ! -s conftest.err'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; } &&
2716 { ac_try
='test -s conftest.$ac_objext'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.
$ac_ext >&5
2729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2731 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2733 if test "$ac_test_CFLAGS" = set; then
2734 CFLAGS
=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
2742 if test "$GCC" = yes; then
2748 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2749 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_cv_prog_cc_stdc
=no
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2779 s = g (p, va_arg (v,int));
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std1 is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std1. */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2807 # Don't try gcc -ansi; that turns off useful extensions and
2808 # breaks some systems' header files.
2809 # AIX -qlanglvl=ansi
2810 # Ultrix and OSF/1 -std1
2811 # HP-UX 10.20 and later -Ae
2812 # HP-UX older versions -Aa -D_HPUX_SOURCE
2813 # SVR4 -Xc -D__EXTENSIONS__
2814 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2816 CC
="$ac_save_CC $ac_arg"
2817 rm -f conftest.
$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1
>conftest.err
2823 cat conftest.err
>&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try
='test -z "$ac_c_werror_flag"
2827 || test ! -s conftest.err'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try
='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_prog_cc_stdc
=$ac_arg
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.
$ac_ext >&5
2846 rm -f conftest.err conftest.
$ac_objext
2848 rm -f conftest.
$ac_ext conftest.
$ac_objext
2853 case "x$ac_cv_prog_cc_stdc" in
2855 echo "$as_me:$LINENO: result: none needed" >&5
2856 echo "${ECHO_T}none needed" >&6 ;;
2858 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2860 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2863 # Some people use a C++ compiler to compile C. Since we use `exit',
2864 # in C++ we need to declare it. In case someone uses the same compiler
2865 # for both compiling C and C++ we need to have the C++ compiler decide
2866 # the declaration of exit, since it's the most demanding environment.
2867 cat >conftest.
$ac_ext <<_ACEOF
2872 rm -f conftest.
$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1
>conftest.err
2878 cat conftest.err
>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try
='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try
='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 for ac_declaration
in \
2896 'extern "C" void std::exit (int) throw (); using std::exit;' \
2897 'extern "C" void std::exit (int); using std::exit;' \
2898 'extern "C" void exit (int) throw ();' \
2899 'extern "C" void exit (int);' \
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2918 rm -f conftest.
$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2922 grep -v '^ *+' conftest.er1
>conftest.err
2924 cat conftest.err
>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try
='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try
='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.
$ac_ext >&5
2947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2948 cat >conftest.
$ac_ext <<_ACEOF
2951 cat confdefs.h
>>conftest.
$ac_ext
2952 cat >>conftest.
$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 rm -f conftest.
$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>conftest.er1
2967 grep -v '^ *+' conftest.er1
>conftest.err
2969 cat conftest.err
>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try
='test -z "$ac_c_werror_flag"
2973 || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try
='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.
$ac_ext >&5
2991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2994 if test -n "$ac_declaration"; then
2995 echo '#ifdef __cplusplus' >>confdefs.h
2996 echo $ac_declaration >>confdefs.h
2997 echo '#endif' >>confdefs.h
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.
$ac_ext >&5
3005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3007 ac_cpp
='$CPP $CPPFLAGS'
3008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3012 if test "x$CC" != xcc
; then
3013 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3014 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3016 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3017 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3019 set dummy
$CC; ac_cc
=`echo $2 |
3020 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3021 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 # Make sure it works both with $CC and with simple cc.
3040 # We do the test twice because some compilers refuse to overwrite an
3041 # existing .o file with -o, though they will create one.
3042 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3043 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); };
3054 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3055 if test "x$CC" != xcc
; then
3056 # Test first that cc exists at all.
3057 if { ac_try
='cc -c conftest.$ac_ext >&5'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3064 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); };
3078 # cc exists but doesn't like -o.
3079 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3084 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3089 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3096 cat >>confdefs.h
<<\_ACEOF
3097 #define NO_MINUS_C_MINUS_O 1
3102 # expand $ac_aux_dir to an absolute path
3103 am_aux_dir
=`cd $ac_aux_dir && pwd`
3105 # FIXME: we rely on the cache variable name because
3106 # there is no other way.
3108 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3109 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3110 # Losing compiler, so override with the script.
3111 # FIXME: It is wrong to rewrite CC.
3112 # But if we don't then we get into trouble of one sort or another.
3113 # A longer-term fix would be to have automake use am__CC in this case,
3114 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3115 CC
="$am_aux_dir/compile $CC"
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3123 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$GNATBIND"; then
3130 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 GNATBIND
=$ac_cv_prog_GNATBIND
3149 if test -n "$GNATBIND"; then
3150 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3151 echo "${ECHO_T}$GNATBIND" >&6
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3158 if test -z "$ac_cv_prog_GNATBIND"; then
3159 ac_ct_GNATBIND
=$GNATBIND
3160 # Extract the first word of "gnatbind", so it can be a program name with args.
3161 set dummy gnatbind
; ac_word
=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$ac_ct_GNATBIND"; then
3168 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir
=.
3175 for ac_exec_ext
in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3187 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3188 if test -n "$ac_ct_GNATBIND"; then
3189 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3190 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3196 GNATBIND
=$ac_ct_GNATBIND
3198 GNATBIND
="$ac_cv_prog_GNATBIND"
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3203 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$GNATMAKE"; then
3210 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
3212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir
=.
3217 for ac_exec_ext
in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 GNATMAKE
=$ac_cv_prog_GNATMAKE
3229 if test -n "$GNATMAKE"; then
3230 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3231 echo "${ECHO_T}$GNATMAKE" >&6
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3238 if test -z "$ac_cv_prog_GNATMAKE"; then
3239 ac_ct_GNATMAKE
=$GNATMAKE
3240 # Extract the first word of "gnatmake", so it can be a program name with args.
3241 set dummy gnatmake
; ac_word
=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$ac_ct_GNATMAKE"; then
3248 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
3250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir
=.
3255 for ac_exec_ext
in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE
="no"
3267 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
3268 if test -n "$ac_ct_GNATMAKE"; then
3269 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3270 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3272 echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6
3276 GNATMAKE
=$ac_ct_GNATMAKE
3278 GNATMAKE
="$ac_cv_prog_GNATMAKE"
3281 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3282 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3283 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 cat >conftest.adb
<<EOF
3287 procedure conftest is begin null; end conftest;
3289 acx_cv_cc_gcc_supports_ada
=no
3290 # There is a bug in old released versions of GCC which causes the
3291 # driver to exit successfully when the appropriate language module
3292 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3293 # Therefore we must check for the error message as well as an
3294 # unsuccessful exit.
3295 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3296 # given a .adb file, but produce no object file. So we must check
3297 # if an object file was really produced to guard against this.
3298 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3299 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
3300 acx_cv_cc_gcc_supports_ada
=yes
3304 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3305 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3307 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
3314 # autoconf is lame and doesn't give us any substitution variable for this.
3315 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3316 NO_MINUS_C_MINUS_O
=yes
3318 OUTPUT_OPTION
='-o $@'
3323 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3324 # optimizations to be activated explicitly by the toplevel.
3326 */prev-gcc
/xgcc
*) ;;
3327 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3331 # -------------------------
3332 # Check C compiler features
3333 # -------------------------
3337 ac_cpp
='$CPP $CPPFLAGS'
3338 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3341 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3342 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3343 # On Suns, sometimes $CPP names a directory.
3344 if test -n "$CPP" && test -d "$CPP"; then
3347 if test -z "$CPP"; then
3348 if test "${ac_cv_prog_CPP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 # Double quotes because CPP needs to be expanded
3352 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3355 for ac_c_preproc_warn_flag
in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.
$ac_ext <<_ACEOF
3366 cat confdefs.h
>>conftest.
$ac_ext
3367 cat >>conftest.
$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3379 grep -v '^ *+' conftest.er1
>conftest.err
3381 cat conftest.err
>&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev
/null
; then
3384 if test -s conftest.err
; then
3385 ac_cpp_err
=$ac_c_preproc_warn_flag
3386 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3399 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.
$ac_ext
3404 # OK, works on sane cases. Now check whether non-existent headers
3405 # can be detected and how.
3406 cat >conftest.
$ac_ext <<_ACEOF
3409 cat confdefs.h
>>conftest.
$ac_ext
3410 cat >>conftest.
$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1
>conftest.err
3419 cat conftest.err
>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev
/null
; then
3422 if test -s conftest.err
; then
3423 ac_cpp_err
=$ac_c_preproc_warn_flag
3424 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.
$ac_ext >&5
3438 # Passes both tests.
3442 rm -f conftest.err conftest.
$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.
$ac_ext
3447 if $ac_preproc_ok; then
3459 echo "$as_me:$LINENO: result: $CPP" >&5
3460 echo "${ECHO_T}$CPP" >&6
3462 for ac_c_preproc_warn_flag
in '' yes
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.
$ac_ext <<_ACEOF
3473 cat confdefs.h
>>conftest.
$ac_ext
3474 cat >>conftest.
$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3486 grep -v '^ *+' conftest.er1
>conftest.err
3488 cat conftest.err
>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev
/null
; then
3491 if test -s conftest.err
; then
3492 ac_cpp_err
=$ac_c_preproc_warn_flag
3493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3500 if test -z "$ac_cpp_err"; then
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.
$ac_ext >&5
3506 # Broken: fails on valid input.
3509 rm -f conftest.err conftest.
$ac_ext
3511 # OK, works on sane cases. Now check whether non-existent headers
3512 # can be detected and how.
3513 cat >conftest.
$ac_ext <<_ACEOF
3516 cat confdefs.h
>>conftest.
$ac_ext
3517 cat >>conftest.
$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev
/null
; then
3529 if test -s conftest.err
; then
3530 ac_cpp_err
=$ac_c_preproc_warn_flag
3531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3538 if test -z "$ac_cpp_err"; then
3539 # Broken: success on invalid input.
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.
$ac_ext >&5
3545 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&5
3561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&2;}
3563 { (exit 1); exit 1; }; }; }
3567 ac_cpp
='$CPP $CPPFLAGS'
3568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3573 echo "$as_me:$LINENO: checking for egrep" >&5
3574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3575 if test "${ac_cv_prog_egrep+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3579 then ac_cv_prog_egrep
='grep -E'
3580 else ac_cv_prog_egrep
='egrep'
3583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3585 EGREP
=$ac_cv_prog_egrep
3588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3590 if test "${ac_cv_header_stdc+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 cat >conftest.
$ac_ext <<_ACEOF
3596 cat confdefs.h
>>conftest.
$ac_ext
3597 cat >>conftest.
$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3612 rm -f conftest.
$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try
='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try
='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_cv_header_stdc
=yes
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 ac_cv_header_stdc
=no
3641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 if test $ac_cv_header_stdc = yes; then
3644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3645 cat >conftest.
$ac_ext <<_ACEOF
3648 cat confdefs.h
>>conftest.
$ac_ext
3649 cat >>conftest.
$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 $EGREP "memchr" >/dev
/null
2>&1; then
3658 ac_cv_header_stdc
=no
3664 if test $ac_cv_header_stdc = yes; then
3665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3666 cat >conftest.
$ac_ext <<_ACEOF
3669 cat confdefs.h
>>conftest.
$ac_ext
3670 cat >>conftest.
$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3676 $EGREP "free" >/dev
/null
2>&1; then
3679 ac_cv_header_stdc
=no
3685 if test $ac_cv_header_stdc = yes; then
3686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3687 if test "$cross_compiling" = yes; then
3690 cat >conftest.
$ac_ext <<_ACEOF
3693 cat confdefs.h
>>conftest.
$ac_ext
3694 cat >>conftest.
$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3697 #if ((' ' & 0x0FF) == 0x020)
3698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3701 # define ISLOWER(c) \
3702 (('a' <= (c) && (c) <= 'i') \
3703 || ('j' <= (c) && (c) <= 'r') \
3704 || ('s' <= (c) && (c) <= 'z'))
3705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3713 for (i = 0; i < 256; i++)
3714 if (XOR (islower (i), ISLOWER (i))
3715 || toupper (i) != TOUPPER (i))
3720 rm -f conftest
$ac_exeext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3738 ac_cv_header_stdc
=no
3740 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3744 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3745 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3746 if test $ac_cv_header_stdc = yes; then
3748 cat >>confdefs.h
<<\_ACEOF
3749 #define STDC_HEADERS 1
3754 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3764 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3765 inttypes.h stdint.h unistd.h
3767 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3768 echo "$as_me:$LINENO: checking for $ac_header" >&5
3769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 cat >conftest.
$ac_ext <<_ACEOF
3776 cat confdefs.h
>>conftest.
$ac_ext
3777 cat >>conftest.
$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 $ac_includes_default
3781 #include <$ac_header>
3783 rm -f conftest.
$ac_objext
3784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3787 grep -v '^ *+' conftest.er1
>conftest.err
3789 cat conftest.err
>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try
='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try
='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 eval "$as_ac_Header=yes"
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.
$ac_ext >&5
3810 eval "$as_ac_Header=no"
3812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h
<<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827 if test "${ac_cv_header_minix_config_h+set}" = set; then
3828 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3829 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3830 if test "${ac_cv_header_minix_config_h+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3834 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3836 # Is the header compilable?
3837 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3838 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3839 cat >conftest.
$ac_ext <<_ACEOF
3842 cat confdefs.h
>>conftest.
$ac_ext
3843 cat >>conftest.
$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 $ac_includes_default
3846 #include <minix/config.h>
3848 rm -f conftest.
$ac_objext
3849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3850 (eval $ac_compile) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } &&
3857 { ac_try
='test -z "$ac_c_werror_flag"
3858 || test ! -s conftest.err'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; } &&
3864 { ac_try
='test -s conftest.$ac_objext'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 ac_header_compiler
=yes
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 ac_header_compiler
=no
3877 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3879 echo "${ECHO_T}$ac_header_compiler" >&6
3881 # Is the header present?
3882 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3883 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3884 cat >conftest.
$ac_ext <<_ACEOF
3887 cat confdefs.h
>>conftest.
$ac_ext
3888 cat >>conftest.
$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <minix/config.h>
3892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3893 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3895 grep -v '^ *+' conftest.er1
>conftest.err
3897 cat conftest.err
>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } >/dev
/null
; then
3900 if test -s conftest.err
; then
3901 ac_cpp_err
=$ac_c_preproc_warn_flag
3902 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3909 if test -z "$ac_cpp_err"; then
3910 ac_header_preproc
=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.
$ac_ext >&5
3915 ac_header_preproc
=no
3917 rm -f conftest.err conftest.
$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3919 echo "${ECHO_T}$ac_header_preproc" >&6
3921 # So? What about this header?
3922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3924 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3925 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3927 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3928 ac_header_preproc
=yes
3931 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3932 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3934 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3936 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3938 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3940 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3942 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3945 ## ------------------------------------------ ##
3946 ## Report this to the AC_PACKAGE_NAME lists. ##
3947 ## ------------------------------------------ ##
3950 sed "s/^/$as_me: WARNING: /" >&2
3953 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3954 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3955 if test "${ac_cv_header_minix_config_h+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_cv_header_minix_config_h
=$ac_header_preproc
3960 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3961 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3964 if test $ac_cv_header_minix_config_h = yes; then
3971 if test "$MINIX" = yes; then
3973 cat >>confdefs.h
<<\_ACEOF
3974 #define _POSIX_SOURCE 1
3978 cat >>confdefs.h
<<\_ACEOF
3979 #define _POSIX_1_SOURCE 2
3983 cat >>confdefs.h
<<\_ACEOF
3991 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3992 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3993 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.
$ac_ext <<_ACEOF
3999 cat confdefs.h
>>conftest.
$ac_ext
4000 cat >>conftest.
$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4003 # define __EXTENSIONS__ 1
4004 $ac_includes_default
4013 rm -f conftest.
$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4017 grep -v '^ *+' conftest.er1
>conftest.err
4019 cat conftest.err
>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try
='test -z "$ac_c_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try
='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_safe_to_define___extensions__
=yes
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.
$ac_ext >&5
4040 ac_cv_safe_to_define___extensions__
=no
4042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4045 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4046 test $ac_cv_safe_to_define___extensions__ = yes &&
4047 cat >>confdefs.h
<<\_ACEOF
4048 #define __EXTENSIONS__ 1
4051 cat >>confdefs.h
<<\_ACEOF
4052 #define _ALL_SOURCE 1
4055 cat >>confdefs.h
<<\_ACEOF
4056 #define _GNU_SOURCE 1
4059 cat >>confdefs.h
<<\_ACEOF
4060 #define _POSIX_PTHREAD_SEMANTICS 1
4063 cat >>confdefs.h
<<\_ACEOF
4064 #define _TANDEM_SOURCE 1
4069 ac_cpp
='$CPP $CPPFLAGS'
4070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4073 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4074 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 # Double quotes because CPP needs to be expanded
4084 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087 for ac_c_preproc_warn_flag
in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat >conftest.
$ac_ext <<_ACEOF
4098 cat confdefs.h
>>conftest.
$ac_ext
4099 cat >>conftest.
$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1
>conftest.err
4113 cat conftest.err
>&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev
/null
; then
4116 if test -s conftest.err
; then
4117 ac_cpp_err
=$ac_c_preproc_warn_flag
4118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4125 if test -z "$ac_cpp_err"; then
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.
$ac_ext >&5
4131 # Broken: fails on valid input.
4134 rm -f conftest.err conftest.
$ac_ext
4136 # OK, works on sane cases. Now check whether non-existent headers
4137 # can be detected and how.
4138 cat >conftest.
$ac_ext <<_ACEOF
4141 cat confdefs.h
>>conftest.
$ac_ext
4142 cat >>conftest.
$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4147 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4149 grep -v '^ *+' conftest.er1
>conftest.err
4151 cat conftest.err
>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev
/null
; then
4154 if test -s conftest.err
; then
4155 ac_cpp_err
=$ac_c_preproc_warn_flag
4156 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4163 if test -z "$ac_cpp_err"; then
4164 # Broken: success on invalid input.
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.
$ac_ext >&5
4170 # Passes both tests.
4174 rm -f conftest.err conftest.
$ac_ext
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.
$ac_ext
4179 if $ac_preproc_ok; then
4191 echo "$as_me:$LINENO: result: $CPP" >&5
4192 echo "${ECHO_T}$CPP" >&6
4194 for ac_c_preproc_warn_flag
in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat >conftest.
$ac_ext <<_ACEOF
4205 cat confdefs.h
>>conftest.
$ac_ext
4206 cat >>conftest.
$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4216 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4218 grep -v '^ *+' conftest.er1
>conftest.err
4220 cat conftest.err
>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } >/dev
/null
; then
4223 if test -s conftest.err
; then
4224 ac_cpp_err
=$ac_c_preproc_warn_flag
4225 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4232 if test -z "$ac_cpp_err"; then
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.
$ac_ext >&5
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.
$ac_ext
4243 # OK, works on sane cases. Now check whether non-existent headers
4244 # can be detected and how.
4245 cat >conftest.
$ac_ext <<_ACEOF
4248 cat confdefs.h
>>conftest.
$ac_ext
4249 cat >>conftest.
$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4254 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4256 grep -v '^ *+' conftest.er1
>conftest.err
4258 cat conftest.err
>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } >/dev
/null
; then
4261 if test -s conftest.err
; then
4262 ac_cpp_err
=$ac_c_preproc_warn_flag
4263 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4270 if test -z "$ac_cpp_err"; then
4271 # Broken: success on invalid input.
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4277 # Passes both tests.
4281 rm -f conftest.err conftest.
$ac_ext
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.
$ac_ext
4286 if $ac_preproc_ok; then
4289 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4290 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&5
4293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&2;}
4295 { (exit 1); exit 1; }; }; }
4299 ac_cpp
='$CPP $CPPFLAGS'
4300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4304 echo "$as_me:$LINENO: checking for inline" >&5
4305 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4306 if test "${ac_cv_c_inline+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 for ac_kw
in inline __inline__ __inline
; do
4311 cat >conftest.
$ac_ext <<_ACEOF
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4319 static $ac_kw foo_t static_foo () {return 0; }
4320 $ac_kw foo_t foo () {return 0; }
4324 rm -f conftest.
$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>conftest.er1
4328 grep -v '^ *+' conftest.er1
>conftest.err
4330 cat conftest.err
>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try
='test -z "$ac_c_werror_flag"
4334 || test ! -s conftest.err'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try
='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_inline
=$ac_kw; break
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.
$ac_ext >&5
4352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4357 echo "${ECHO_T}$ac_cv_c_inline" >&6
4360 case $ac_cv_c_inline in
4363 case $ac_cv_c_inline in
4365 *) ac_val
=$ac_cv_c_inline;;
4367 cat >>confdefs.h
<<_ACEOF
4369 #define inline $ac_val
4376 # sizeof(char) is 1 by definition.
4377 echo "$as_me:$LINENO: checking for void *" >&5
4378 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4379 if test "${ac_cv_type_void_p+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.
$ac_ext <<_ACEOF
4385 cat confdefs.h
>>conftest.
$ac_ext
4386 cat >>conftest.
$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4394 if (sizeof (void *))
4400 rm -f conftest.
$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1
>conftest.err
4406 cat conftest.err
>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try
='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try
='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_type_void_p
=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.
$ac_ext >&5
4427 ac_cv_type_void_p
=no
4429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4432 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4434 echo "$as_me:$LINENO: checking size of void *" >&5
4435 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4436 if test "${ac_cv_sizeof_void_p+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test "$ac_cv_type_void_p" = yes; then
4440 # The cast to unsigned long works around a bug in the HP C Compiler
4441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4443 # This bug is HP SR number 8606223364.
4444 if test "$cross_compiling" = yes; then
4445 # Depending upon the size, compute the lo and hi bounds.
4446 cat >conftest.
$ac_ext <<_ACEOF
4449 cat confdefs.h
>>conftest.
$ac_ext
4450 cat >>conftest.
$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 $ac_includes_default
4456 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4463 rm -f conftest.
$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1
>conftest.err
4469 cat conftest.err
>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try
='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try
='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 cat >conftest.
$ac_ext <<_ACEOF
4490 cat confdefs.h
>>conftest.
$ac_ext
4491 cat >>conftest.
$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4504 rm -f conftest.
$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>conftest.er1
4508 grep -v '^ *+' conftest.er1
>conftest.err
4510 cat conftest.err
>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try
='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try
='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_hi
=$ac_mid; break
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.
$ac_ext >&5
4531 ac_lo
=`expr $ac_mid + 1`
4532 if test $ac_lo -le $ac_mid; then
4536 ac_mid
=`expr 2 '*' $ac_mid + 1`
4538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.
$ac_ext >&5
4544 cat >conftest.
$ac_ext <<_ACEOF
4547 cat confdefs.h
>>conftest.
$ac_ext
4548 cat >>conftest.
$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4561 rm -f conftest.
$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1
>conftest.err
4567 cat conftest.err
>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try
='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try
='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 cat >conftest.
$ac_ext <<_ACEOF
4588 cat confdefs.h
>>conftest.
$ac_ext
4589 cat >>conftest.
$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 $ac_includes_default
4595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4602 rm -f conftest.
$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1
>conftest.err
4608 cat conftest.err
>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try
='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try
='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_lo
=$ac_mid; break
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.
$ac_ext >&5
4629 ac_hi
=`expr '(' $ac_mid ')' - 1`
4630 if test $ac_mid -le $ac_hi; then
4634 ac_mid
=`expr 2 '*' $ac_mid`
4636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.
$ac_ext >&5
4644 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4647 # Binary search between lo and hi bounds.
4648 while test "x$ac_lo" != "x$ac_hi"; do
4649 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4650 cat >conftest.
$ac_ext <<_ACEOF
4653 cat confdefs.h
>>conftest.
$ac_ext
4654 cat >>conftest.
$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4667 rm -f conftest.
$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1
>conftest.err
4673 cat conftest.err
>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try
='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.
$ac_ext >&5
4694 ac_lo
=`expr '(' $ac_mid ')' + 1`
4696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4701 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4703 See \`config.log' for more details." >&5
4704 echo "$as_me: error: cannot compute sizeof (void *), 77
4705 See \`config.log' for more details." >&2;}
4706 { (exit 1); exit 1; }; }; } ;;
4709 if test "$cross_compiling" = yes; then
4710 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4711 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4713 See \`config.log' for more details." >&5
4714 echo "$as_me: error: cannot run test program while cross compiling
4715 See \`config.log' for more details." >&2;}
4716 { (exit 1); exit 1; }; }; }
4718 cat >conftest.
$ac_ext <<_ACEOF
4721 cat confdefs.h
>>conftest.
$ac_ext
4722 cat >>conftest.
$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4725 long longval () { return (long) (sizeof (void *)); }
4726 unsigned long ulongval () { return (long) (sizeof (void *)); }
4733 FILE *f = fopen ("conftest.val", "w");
4736 if (((long) (sizeof (void *))) < 0)
4738 long i = longval ();
4739 if (i != ((long) (sizeof (void *))))
4741 fprintf (f, "%ld\n", i);
4745 unsigned long i = ulongval ();
4746 if (i != ((long) (sizeof (void *))))
4748 fprintf (f, "%lu\n", i);
4750 exit (ferror (f) || fclose (f) != 0);
4756 rm -f conftest
$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_sizeof_void_p
=`cat conftest.val`
4769 echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.
$ac_ext >&5
4774 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4775 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4777 See \`config.log' for more details." >&5
4778 echo "$as_me: error: cannot compute sizeof (void *), 77
4779 See \`config.log' for more details." >&2;}
4780 { (exit 1); exit 1; }; }; }
4782 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4787 ac_cv_sizeof_void_p
=0
4790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4791 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4792 cat >>confdefs.h
<<_ACEOF
4793 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4797 echo "$as_me:$LINENO: checking for short" >&5
4798 echo $ECHO_N "checking for short... $ECHO_C" >&6
4799 if test "${ac_cv_type_short+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 cat >conftest.
$ac_ext <<_ACEOF
4805 cat confdefs.h
>>conftest.
$ac_ext
4806 cat >>conftest.
$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 $ac_includes_default
4820 rm -f conftest.
$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1
>conftest.err
4826 cat conftest.err
>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try
='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try
='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 ac_cv_type_short
=yes
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4852 echo "${ECHO_T}$ac_cv_type_short" >&6
4854 echo "$as_me:$LINENO: checking size of short" >&5
4855 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4856 if test "${ac_cv_sizeof_short+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test "$ac_cv_type_short" = yes; then
4860 # The cast to unsigned long works around a bug in the HP C Compiler
4861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4863 # This bug is HP SR number 8606223364.
4864 if test "$cross_compiling" = yes; then
4865 # Depending upon the size, compute the lo and hi bounds.
4866 cat >conftest.
$ac_ext <<_ACEOF
4869 cat confdefs.h
>>conftest.
$ac_ext
4870 cat >>conftest.
$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 $ac_includes_default
4876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4883 rm -f conftest.
$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1
>conftest.err
4889 cat conftest.err
>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try
='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try
='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 cat >conftest.
$ac_ext <<_ACEOF
4910 cat confdefs.h
>>conftest.
$ac_ext
4911 cat >>conftest.
$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4917 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4924 rm -f conftest.
$ac_objext
4925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4926 (eval $ac_compile) 2>conftest.er1
4928 grep -v '^ *+' conftest.er1
>conftest.err
4930 cat conftest.err
>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try
='test -z "$ac_c_werror_flag"
4934 || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try
='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_hi
=$ac_mid; break
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.
$ac_ext >&5
4951 ac_lo
=`expr $ac_mid + 1`
4952 if test $ac_lo -le $ac_mid; then
4956 ac_mid
=`expr 2 '*' $ac_mid + 1`
4958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.
$ac_ext >&5
4964 cat >conftest.
$ac_ext <<_ACEOF
4967 cat confdefs.h
>>conftest.
$ac_ext
4968 cat >>conftest.
$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4974 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4981 rm -f conftest.
$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1
>conftest.err
4987 cat conftest.err
>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try
='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try
='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 cat >conftest.
$ac_ext <<_ACEOF
5008 cat confdefs.h
>>conftest.
$ac_ext
5009 cat >>conftest.
$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5015 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_lo
=$ac_mid; break
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_hi
=`expr '(' $ac_mid ')' - 1`
5050 if test $ac_mid -le $ac_hi; then
5054 ac_mid
=`expr 2 '*' $ac_mid`
5056 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.
$ac_ext >&5
5064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5067 # Binary search between lo and hi bounds.
5068 while test "x$ac_lo" != "x$ac_hi"; do
5069 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5080 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5087 rm -f conftest.
$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>conftest.er1
5091 grep -v '^ *+' conftest.er1
>conftest.err
5093 cat conftest.err
>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try
='test -z "$ac_c_werror_flag"
5097 || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try
='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 ac_lo
=`expr '(' $ac_mid ')' + 1`
5116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5119 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5120 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5121 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: cannot compute sizeof (short), 77
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }; } ;;
5129 if test "$cross_compiling" = yes; then
5130 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5131 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot run test program while cross compiling
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }; }
5138 cat >conftest.
$ac_ext <<_ACEOF
5141 cat confdefs.h
>>conftest.
$ac_ext
5142 cat >>conftest.
$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5145 long longval () { return (long) (sizeof (short)); }
5146 unsigned long ulongval () { return (long) (sizeof (short)); }
5153 FILE *f = fopen ("conftest.val", "w");
5156 if (((long) (sizeof (short))) < 0)
5158 long i = longval ();
5159 if (i != ((long) (sizeof (short))))
5161 fprintf (f, "%ld\n", i);
5165 unsigned long i = ulongval ();
5166 if (i != ((long) (sizeof (short))))
5168 fprintf (f, "%lu\n", i);
5170 exit (ferror (f) || fclose (f) != 0);
5176 rm -f conftest
$ac_exeext
5177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178 (eval $ac_link) 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_sizeof_short
=`cat conftest.val`
5189 echo "$as_me: program exited with status $ac_status" >&5
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.
$ac_ext >&5
5194 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5197 See \`config.log' for more details." >&5
5198 echo "$as_me: error: cannot compute sizeof (short), 77
5199 See \`config.log' for more details." >&2;}
5200 { (exit 1); exit 1; }; }; }
5202 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5207 ac_cv_sizeof_short
=0
5210 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5211 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5212 cat >>confdefs.h
<<_ACEOF
5213 #define SIZEOF_SHORT $ac_cv_sizeof_short
5217 echo "$as_me:$LINENO: checking for int" >&5
5218 echo $ECHO_N "checking for int... $ECHO_C" >&6
5219 if test "${ac_cv_type_int+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 cat >conftest.
$ac_ext <<_ACEOF
5225 cat confdefs.h
>>conftest.
$ac_ext
5226 cat >>conftest.
$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 $ac_includes_default
5240 rm -f conftest.
$ac_objext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1
>conftest.err
5246 cat conftest.err
>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try
='test -z "$ac_c_werror_flag"
5250 || test ! -s conftest.err'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; } &&
5256 { ac_try
='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.
$ac_ext >&5
5269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5272 echo "${ECHO_T}$ac_cv_type_int" >&6
5274 echo "$as_me:$LINENO: checking size of int" >&5
5275 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5276 if test "${ac_cv_sizeof_int+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test "$ac_cv_type_int" = yes; then
5280 # The cast to unsigned long works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286 cat >conftest.
$ac_ext <<_ACEOF
5289 cat confdefs.h
>>conftest.
$ac_ext
5290 cat >>conftest.
$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5303 rm -f conftest.
$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5307 grep -v '^ *+' conftest.er1
>conftest.err
5309 cat conftest.err
>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try
='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try
='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5327 cat >conftest.
$ac_ext <<_ACEOF
5330 cat confdefs.h
>>conftest.
$ac_ext
5331 cat >>conftest.
$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5337 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5344 rm -f conftest.
$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1
>conftest.err
5350 cat conftest.err
>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try
='test -z "$ac_c_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try
='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_hi
=$ac_mid; break
5368 echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.
$ac_ext >&5
5371 ac_lo
=`expr $ac_mid + 1`
5372 if test $ac_lo -le $ac_mid; then
5376 ac_mid
=`expr 2 '*' $ac_mid + 1`
5378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.
$ac_ext >&5
5384 cat >conftest.
$ac_ext <<_ACEOF
5387 cat confdefs.h
>>conftest.
$ac_ext
5388 cat >>conftest.
$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5394 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5401 rm -f conftest.
$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
5407 cat conftest.err
>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try
='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try
='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5425 cat >conftest.
$ac_ext <<_ACEOF
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 $ac_includes_default
5435 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5442 rm -f conftest.
$ac_objext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444 (eval $ac_compile) 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -z "$ac_c_werror_flag"
5452 || test ! -s conftest.err'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try
='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_lo
=$ac_mid; break
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5469 ac_hi
=`expr '(' $ac_mid ')' - 1`
5470 if test $ac_mid -le $ac_hi; then
5474 ac_mid
=`expr 2 '*' $ac_mid`
5476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.
$ac_ext >&5
5484 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 # Binary search between lo and hi bounds.
5488 while test "x$ac_lo" != "x$ac_hi"; do
5489 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5490 cat >conftest.
$ac_ext <<_ACEOF
5493 cat confdefs.h
>>conftest.
$ac_ext
5494 cat >>conftest.
$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5500 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5507 rm -f conftest.
$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5511 grep -v '^ *+' conftest.er1
>conftest.err
5513 cat conftest.err
>&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try
='test -z "$ac_c_werror_flag"
5517 || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try
='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.
$ac_ext >&5
5534 ac_lo
=`expr '(' $ac_mid ')' + 1`
5536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5539 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5540 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5541 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot compute sizeof (int), 77
5545 See \`config.log' for more details." >&2;}
5546 { (exit 1); exit 1; }; }; } ;;
5549 if test "$cross_compiling" = yes; then
5550 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5551 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot run test program while cross compiling
5555 See \`config.log' for more details." >&2;}
5556 { (exit 1); exit 1; }; }; }
5558 cat >conftest.
$ac_ext <<_ACEOF
5561 cat confdefs.h
>>conftest.
$ac_ext
5562 cat >>conftest.
$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5565 long longval () { return (long) (sizeof (int)); }
5566 unsigned long ulongval () { return (long) (sizeof (int)); }
5573 FILE *f = fopen ("conftest.val", "w");
5576 if (((long) (sizeof (int))) < 0)
5578 long i = longval ();
5579 if (i != ((long) (sizeof (int))))
5581 fprintf (f, "%ld\n", i);
5585 unsigned long i = ulongval ();
5586 if (i != ((long) (sizeof (int))))
5588 fprintf (f, "%lu\n", i);
5590 exit (ferror (f) || fclose (f) != 0);
5596 rm -f conftest
$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_sizeof_int
=`cat conftest.val`
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.
$ac_ext >&5
5614 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5615 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: cannot compute sizeof (int), 77
5619 See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }; }
5622 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5632 cat >>confdefs.h
<<_ACEOF
5633 #define SIZEOF_INT $ac_cv_sizeof_int
5637 echo "$as_me:$LINENO: checking for long" >&5
5638 echo $ECHO_N "checking for long... $ECHO_C" >&6
5639 if test "${ac_cv_type_long+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5660 rm -f conftest.
$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1
>conftest.err
5666 cat conftest.err
>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try
='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try
='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.
$ac_ext >&5
5689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5692 echo "${ECHO_T}$ac_cv_type_long" >&6
5694 echo "$as_me:$LINENO: checking size of long" >&5
5695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof_long+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test "$ac_cv_type_long" = yes; then
5700 # The cast to unsigned long works around a bug in the HP C Compiler
5701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703 # This bug is HP SR number 8606223364.
5704 if test "$cross_compiling" = yes; then
5705 # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.
$ac_ext <<_ACEOF
5709 cat confdefs.h
>>conftest.
$ac_ext
5710 cat >>conftest.
$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 $ac_includes_default
5716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5723 rm -f conftest.
$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>conftest.er1
5727 grep -v '^ *+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try
='test -z "$ac_c_werror_flag"
5733 || test ! -s conftest.err'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; } &&
5739 { ac_try
='test -s conftest.$ac_objext'
5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 $ac_includes_default
5757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5764 rm -f conftest.
$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5768 grep -v '^ *+' conftest.er1
>conftest.err
5770 cat conftest.err
>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try
='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try
='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_hi
=$ac_mid; break
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.
$ac_ext >&5
5791 ac_lo
=`expr $ac_mid + 1`
5792 if test $ac_lo -le $ac_mid; then
5796 ac_mid
=`expr 2 '*' $ac_mid + 1`
5798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5804 cat >conftest.
$ac_ext <<_ACEOF
5807 cat confdefs.h
>>conftest.
$ac_ext
5808 cat >>conftest.
$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 $ac_includes_default
5814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5862 rm -f conftest.
$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } &&
5871 { ac_try
='test -z "$ac_c_werror_flag"
5872 || test ! -s conftest.err'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; } &&
5878 { ac_try
='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_lo
=$ac_mid; break
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.
$ac_ext >&5
5889 ac_hi
=`expr '(' $ac_mid ')' - 1`
5890 if test $ac_mid -le $ac_hi; then
5894 ac_mid
=`expr 2 '*' $ac_mid`
5896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 $ac_includes_default
5920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5927 rm -f conftest.
$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
5931 grep -v '^ *+' conftest.er1
>conftest.err
5933 cat conftest.err
>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try
='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try
='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.
$ac_ext >&5
5954 ac_lo
=`expr '(' $ac_mid ')' + 1`
5956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5959 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5963 See \`config.log' for more details." >&5
5964 echo "$as_me: error: cannot compute sizeof (long), 77
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }; } ;;
5969 if test "$cross_compiling" = yes; then
5970 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5971 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&2;}
5976 { (exit 1); exit 1; }; }; }
5978 cat >conftest.
$ac_ext <<_ACEOF
5981 cat confdefs.h
>>conftest.
$ac_ext
5982 cat >>conftest.
$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 long longval () { return (long) (sizeof (long)); }
5986 unsigned long ulongval () { return (long) (sizeof (long)); }
5993 FILE *f = fopen ("conftest.val", "w");
5996 if (((long) (sizeof (long))) < 0)
5998 long i = longval ();
5999 if (i != ((long) (sizeof (long))))
6001 fprintf (f, "%ld\n", i);
6005 unsigned long i = ulongval ();
6006 if (i != ((long) (sizeof (long))))
6008 fprintf (f, "%lu\n", i);
6010 exit (ferror (f) || fclose (f) != 0);
6016 rm -f conftest
$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_sizeof_long
=`cat conftest.val`
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.
$ac_ext >&5
6034 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6035 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6037 See \`config.log' for more details." >&5
6038 echo "$as_me: error: cannot compute sizeof (long), 77
6039 See \`config.log' for more details." >&2;}
6040 { (exit 1); exit 1; }; }; }
6042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6051 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6052 cat >>confdefs.h
<<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6057 echo "$as_me:$LINENO: checking for long long" >&5
6058 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6059 if test "${ac_cv_type_long_long+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 cat >conftest.
$ac_ext <<_ACEOF
6065 cat confdefs.h
>>conftest.
$ac_ext
6066 cat >>conftest.
$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6072 if ((long long *) 0)
6074 if (sizeof (long long))
6080 rm -f conftest.
$ac_objext
6081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082 (eval $ac_compile) 2>conftest.er1
6084 grep -v '^ *+' conftest.er1
>conftest.err
6086 cat conftest.err
>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try
='test -z "$ac_c_werror_flag"
6090 || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try
='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_type_long_long
=yes
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.
$ac_ext >&5
6107 ac_cv_type_long_long
=no
6109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6112 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6113 if test $ac_cv_type_long_long = yes; then
6115 cat >>confdefs.h
<<_ACEOF
6116 #define HAVE_LONG_LONG 1
6119 echo "$as_me:$LINENO: checking for long long" >&5
6120 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6121 if test "${ac_cv_type_long_long+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6134 if ((long long *) 0)
6136 if (sizeof (long long))
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_type_long_long
=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6169 ac_cv_type_long_long
=no
6171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6174 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6176 echo "$as_me:$LINENO: checking size of long long" >&5
6177 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6178 if test "${ac_cv_sizeof_long_long+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test "$ac_cv_type_long_long" = yes; then
6182 # The cast to unsigned long works around a bug in the HP C Compiler
6183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6185 # This bug is HP SR number 8606223364.
6186 if test "$cross_compiling" = yes; then
6187 # Depending upon the size, compute the lo and hi bounds.
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6198 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6205 rm -f conftest.
$ac_objext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6207 (eval $ac_compile) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1
>conftest.err
6211 cat conftest.err
>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try
='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try
='test -s conftest.$ac_objext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -z "$ac_c_werror_flag"
6256 || test ! -s conftest.err'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try
='test -s conftest.$ac_objext'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
6268 ac_hi
=$ac_mid; break
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6273 ac_lo
=`expr $ac_mid + 1`
6274 if test $ac_lo -le $ac_mid; then
6278 ac_mid
=`expr 2 '*' $ac_mid + 1`
6280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.
$ac_ext >&5
6286 cat >conftest.
$ac_ext <<_ACEOF
6289 cat confdefs.h
>>conftest.
$ac_ext
6290 cat >>conftest.
$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6296 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6303 rm -f conftest.
$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1
>conftest.err
6309 cat conftest.err
>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try
='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try
='test -s conftest.$ac_objext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6327 cat >conftest.
$ac_ext <<_ACEOF
6330 cat confdefs.h
>>conftest.
$ac_ext
6331 cat >>conftest.
$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 $ac_includes_default
6337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6344 rm -f conftest.
$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1
>conftest.err
6350 cat conftest.err
>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try
='test -z "$ac_c_werror_flag"
6354 || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try
='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_lo
=$ac_mid; break
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.
$ac_ext >&5
6371 ac_hi
=`expr '(' $ac_mid ')' - 1`
6372 if test $ac_mid -le $ac_hi; then
6376 ac_mid
=`expr 2 '*' $ac_mid`
6378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.
$ac_ext >&5
6386 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6389 # Binary search between lo and hi bounds.
6390 while test "x$ac_lo" != "x$ac_hi"; do
6391 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6392 cat >conftest.
$ac_ext <<_ACEOF
6395 cat confdefs.h
>>conftest.
$ac_ext
6396 cat >>conftest.
$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 $ac_includes_default
6402 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6409 rm -f conftest.
$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1
>conftest.err
6415 cat conftest.err
>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try
='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try
='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.
$ac_ext >&5
6436 ac_lo
=`expr '(' $ac_mid ')' + 1`
6438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6441 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6442 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6445 See \`config.log' for more details." >&5
6446 echo "$as_me: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&2;}
6448 { (exit 1); exit 1; }; }; } ;;
6451 if test "$cross_compiling" = yes; then
6452 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6453 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6454 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6455 See \`config.log' for more details." >&5
6456 echo "$as_me: error: cannot run test program while cross compiling
6457 See \`config.log' for more details." >&2;}
6458 { (exit 1); exit 1; }; }; }
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 long longval () { return (long) (sizeof (long long)); }
6468 unsigned long ulongval () { return (long) (sizeof (long long)); }
6475 FILE *f = fopen ("conftest.val", "w");
6478 if (((long) (sizeof (long long))) < 0)
6480 long i = longval ();
6481 if (i != ((long) (sizeof (long long))))
6483 fprintf (f, "%ld\n", i);
6487 unsigned long i = ulongval ();
6488 if (i != ((long) (sizeof (long long))))
6490 fprintf (f, "%lu\n", i);
6492 exit (ferror (f) || fclose (f) != 0);
6498 rm -f conftest
$ac_exeext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_sizeof_long_long
=`cat conftest.val`
6511 echo "$as_me: program exited with status $ac_status" >&5
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6516 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6517 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: cannot compute sizeof (long long), 77
6521 See \`config.log' for more details." >&2;}
6522 { (exit 1); exit 1; }; }; }
6524 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6529 ac_cv_sizeof_long_long
=0
6532 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6533 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6534 cat >>confdefs.h
<<_ACEOF
6535 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6541 echo "$as_me:$LINENO: checking for __int64" >&5
6542 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6543 if test "${ac_cv_type___int64+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 cat >conftest.
$ac_ext <<_ACEOF
6549 cat confdefs.h
>>conftest.
$ac_ext
6550 cat >>conftest.
$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6558 if (sizeof (__int64))
6564 rm -f conftest.
$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1
>conftest.err
6570 cat conftest.err
>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try
='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try
='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_type___int64
=yes
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.
$ac_ext >&5
6591 ac_cv_type___int64
=no
6593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6596 echo "${ECHO_T}$ac_cv_type___int64" >&6
6597 if test $ac_cv_type___int64 = yes; then
6599 cat >>confdefs.h
<<_ACEOF
6600 #define HAVE___INT64 1
6603 echo "$as_me:$LINENO: checking for __int64" >&5
6604 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6605 if test "${ac_cv_type___int64+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 cat >conftest.
$ac_ext <<_ACEOF
6611 cat confdefs.h
>>conftest.
$ac_ext
6612 cat >>conftest.
$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6620 if (sizeof (__int64))
6626 rm -f conftest.
$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try
='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try
='test -s conftest.$ac_objext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_type___int64
=yes
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.
$ac_ext >&5
6653 ac_cv_type___int64
=no
6655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6658 echo "${ECHO_T}$ac_cv_type___int64" >&6
6660 echo "$as_me:$LINENO: checking size of __int64" >&5
6661 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6662 if test "${ac_cv_sizeof___int64+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test "$ac_cv_type___int64" = yes; then
6666 # The cast to unsigned long works around a bug in the HP C Compiler
6667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6669 # This bug is HP SR number 8606223364.
6670 if test "$cross_compiling" = yes; then
6671 # Depending upon the size, compute the lo and hi bounds.
6672 cat >conftest.
$ac_ext <<_ACEOF
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6682 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6689 rm -f conftest.
$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6693 grep -v '^ *+' conftest.er1
>conftest.err
6695 cat conftest.err
>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try
='test -z "$ac_c_werror_flag"
6699 || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try
='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6713 cat >conftest.
$ac_ext <<_ACEOF
6716 cat confdefs.h
>>conftest.
$ac_ext
6717 cat >>conftest.
$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6723 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6730 rm -f conftest.
$ac_objext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732 (eval $ac_compile) 2>conftest.er1
6734 grep -v '^ *+' conftest.er1
>conftest.err
6736 cat conftest.err
>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try
='test -z "$ac_c_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try
='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_hi
=$ac_mid; break
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.
$ac_ext >&5
6757 ac_lo
=`expr $ac_mid + 1`
6758 if test $ac_lo -le $ac_mid; then
6762 ac_mid
=`expr 2 '*' $ac_mid + 1`
6764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.
$ac_ext >&5
6770 cat >conftest.
$ac_ext <<_ACEOF
6773 cat confdefs.h
>>conftest.
$ac_ext
6774 cat >>conftest.
$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 $ac_includes_default
6780 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6787 rm -f conftest.
$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1
>conftest.err
6793 cat conftest.err
>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try
='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try
='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6811 cat >conftest.
$ac_ext <<_ACEOF
6814 cat confdefs.h
>>conftest.
$ac_ext
6815 cat >>conftest.
$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 $ac_includes_default
6821 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6828 rm -f conftest.
$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1
>conftest.err
6834 cat conftest.err
>&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try
='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try
='test -s conftest.$ac_objext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_lo
=$ac_mid; break
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.
$ac_ext >&5
6855 ac_hi
=`expr '(' $ac_mid ')' - 1`
6856 if test $ac_mid -le $ac_hi; then
6860 ac_mid
=`expr 2 '*' $ac_mid`
6862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.
$ac_ext >&5
6870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6873 # Binary search between lo and hi bounds.
6874 while test "x$ac_lo" != "x$ac_hi"; do
6875 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6876 cat >conftest.
$ac_ext <<_ACEOF
6879 cat confdefs.h
>>conftest.
$ac_ext
6880 cat >>conftest.
$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6886 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6893 rm -f conftest.
$ac_objext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6895 (eval $ac_compile) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1
>conftest.err
6899 cat conftest.err
>&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try
='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try
='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.
$ac_ext >&5
6920 ac_lo
=`expr '(' $ac_mid ')' + 1`
6922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6925 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
6926 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6929 See \`config.log' for more details." >&5
6930 echo "$as_me: error: cannot compute sizeof (__int64), 77
6931 See \`config.log' for more details." >&2;}
6932 { (exit 1); exit 1; }; }; } ;;
6935 if test "$cross_compiling" = yes; then
6936 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6937 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6939 See \`config.log' for more details." >&5
6940 echo "$as_me: error: cannot run test program while cross compiling
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }; }
6944 cat >conftest.
$ac_ext <<_ACEOF
6947 cat confdefs.h
>>conftest.
$ac_ext
6948 cat >>conftest.
$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6951 long longval () { return (long) (sizeof (__int64)); }
6952 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6959 FILE *f = fopen ("conftest.val", "w");
6962 if (((long) (sizeof (__int64))) < 0)
6964 long i = longval ();
6965 if (i != ((long) (sizeof (__int64))))
6967 fprintf (f, "%ld\n", i);
6971 unsigned long i = ulongval ();
6972 if (i != ((long) (sizeof (__int64))))
6974 fprintf (f, "%lu\n", i);
6976 exit (ferror (f) || fclose (f) != 0);
6982 rm -f conftest
$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_sizeof___int64
=`cat conftest.val`
6995 echo "$as_me: program exited with status $ac_status" >&5
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.
$ac_ext >&5
7000 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7001 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7003 See \`config.log' for more details." >&5
7004 echo "$as_me: error: cannot compute sizeof (__int64), 77
7005 See \`config.log' for more details." >&2;}
7006 { (exit 1); exit 1; }; }; }
7008 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7013 ac_cv_sizeof___int64
=0
7016 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7017 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7018 cat >>confdefs.h
<<_ACEOF
7019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7026 # ---------------------
7027 # Warnings and checking
7028 # ---------------------
7030 # Check $CC warning features (if it's GCC).
7031 # We want to use -pedantic, but we don't want warnings about
7034 # * overlong strings
7035 # So, we only use -pedantic if we can disable those warnings.
7038 save_CFLAGS
="$CFLAGS"
7039 for option
in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7040 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7042 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7043 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7044 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cat >conftest.
$ac_ext <<_ACEOF
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7063 rm -f conftest.
$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1
>conftest.err
7069 cat conftest.err
>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try
='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try
='test -s conftest.$ac_objext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_acx_Woption=yes"
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.
$ac_ext >&5
7090 eval "$as_acx_Woption=no"
7092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7097 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7098 loose_warn
="$loose_warn${loose_warn:+ }$option"
7102 CFLAGS
="$save_CFLAGS"
7105 save_CFLAGS
="$CFLAGS"
7106 for option
in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7107 as_acx_Woption
=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7109 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7110 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7111 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.
$ac_ext <<_ACEOF
7118 cat confdefs.h
>>conftest.
$ac_ext
7119 cat >>conftest.
$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7130 rm -f conftest.
$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>conftest.er1
7134 grep -v '^ *+' conftest.er1
>conftest.err
7136 cat conftest.err
>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try
='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try
='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 eval "$as_acx_Woption=yes"
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.
$ac_ext >&5
7157 eval "$as_acx_Woption=no"
7159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7162 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7163 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7164 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7165 strict_warn
="$strict_warn${strict_warn:+ }$option"
7169 CFLAGS
="$save_CFLAGS"
7171 if test "$GCC" = yes; then
7172 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7173 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7174 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 save_CFLAGS
="$CFLAGS"
7178 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7179 cat >conftest.
$ac_ext <<_ACEOF
7182 cat confdefs.h
>>conftest.
$ac_ext
7183 cat >>conftest.
$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7194 rm -f conftest.
$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1
>conftest.err
7200 cat conftest.err
>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try
='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try
='test -s conftest.$ac_objext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.
$ac_ext >&5
7221 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
7223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 CFLAGS
="$save_CFLAGS"
7226 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7227 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7228 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7229 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7236 # Check whether --enable-werror-always or --disable-werror-always was given.
7237 if test "${enable_werror_always+set}" = set; then
7238 enableval
="$enable_werror_always"
7241 enable_werror_always
=no
7243 if test $enable_werror_always = yes; then
7244 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7250 # The above macros do nothing if the compiler is not GCC. However, the
7251 # Makefile has more goo to add other flags, so this variabl is used to
7252 # enables warnings only for GCC.
7254 if test "x$GCC" = "xyes"; then
7255 warn_cflags
='$(GCC_WARN_CFLAGS)'
7259 # Enable expensive internal checks
7261 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7265 # Check whether --enable-checking or --disable-checking was given.
7266 if test "${enable_checking+set}" = set; then
7267 enableval
="$enable_checking"
7268 ac_checking_flags
="${enableval}"
7271 # Determine the default checks.
7272 if test x
$is_release = x
; then
7273 ac_checking_flags
=yes
7275 ac_checking_flags
=release
7278 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7279 for check
in release
$ac_checking_flags
7282 # these set all the flags to specific states
7283 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7284 ac_fold_checking
= ; ac_gc_checking
=1 ;
7285 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7286 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7287 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7288 ac_types_checking
=1 ;;
7289 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7290 ac_fold_checking
= ; ac_gc_checking
= ;
7291 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7292 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7293 ac_tree_checking
= ; ac_valgrind_checking
= ;
7294 ac_types_checking
= ;;
7295 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7296 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7297 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7298 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7299 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7300 ac_types_checking
=1 ;;
7301 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7302 ac_fold_checking
= ; ac_gc_checking
= ;
7303 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7304 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7305 ac_tree_checking
= ; ac_valgrind_checking
= ;
7306 ac_types_checking
= ;;
7307 # these enable particular checks
7308 assert
) ac_assert_checking
=1 ;;
7309 df
) ac_df_checking
=1 ;;
7310 fold) ac_fold_checking
=1 ;;
7311 gc
) ac_gc_checking
=1 ;;
7312 gcac
) ac_gc_always_collect
=1 ;;
7313 gimple
) ac_gimple_checking
=1 ;;
7314 misc
) ac_checking
=1 ;;
7315 rtl
) ac_rtl_checking
=1 ;;
7316 rtlflag
) ac_rtlflag_checking
=1 ;;
7317 runtime
) ac_runtime_checking
=1 ;;
7318 tree
) ac_tree_checking
=1 ;;
7319 types
) ac_types_checking
=1 ;;
7320 valgrind
) ac_valgrind_checking
=1 ;;
7321 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7322 echo "$as_me: error: unknown check category $check" >&2;}
7323 { (exit 1); exit 1; }; } ;;
7329 if test x
$ac_checking != x
; then
7331 cat >>confdefs.h
<<\_ACEOF
7332 #define ENABLE_CHECKING 1
7335 nocommon_flag
=-fno-common
7338 if test x
$ac_df_checking != x
; then
7340 cat >>confdefs.h
<<\_ACEOF
7341 #define ENABLE_DF_CHECKING 1
7345 if test x
$ac_assert_checking != x
; then
7347 cat >>confdefs.h
<<\_ACEOF
7348 #define ENABLE_ASSERT_CHECKING 1
7352 if test x
$ac_gimple_checking != x
; then
7354 cat >>confdefs.h
<<\_ACEOF
7355 #define ENABLE_GIMPLE_CHECKING 1
7360 if test x
$ac_runtime_checking != x
; then
7362 cat >>confdefs.h
<<\_ACEOF
7363 #define ENABLE_RUNTIME_CHECKING 1
7367 if test x
$ac_tree_checking != x
; then
7369 cat >>confdefs.h
<<\_ACEOF
7370 #define ENABLE_TREE_CHECKING 1
7373 TREEBROWSER
=tree-browser.o
7375 if test x
$ac_types_checking != x
; then
7377 cat >>confdefs.h
<<\_ACEOF
7378 #define ENABLE_TYPES_CHECKING 1
7383 if test x
$ac_rtl_checking != x
; then
7385 cat >>confdefs.h
<<\_ACEOF
7386 #define ENABLE_RTL_CHECKING 1
7390 if test x
$ac_rtlflag_checking != x
; then
7392 cat >>confdefs.h
<<\_ACEOF
7393 #define ENABLE_RTL_FLAG_CHECKING 1
7397 if test x
$ac_gc_checking != x
; then
7399 cat >>confdefs.h
<<\_ACEOF
7400 #define ENABLE_GC_CHECKING 1
7404 if test x
$ac_gc_always_collect != x
; then
7406 cat >>confdefs.h
<<\_ACEOF
7407 #define ENABLE_GC_ALWAYS_COLLECT 1
7411 if test x
$ac_fold_checking != x
; then
7413 cat >>confdefs.h
<<\_ACEOF
7414 #define ENABLE_FOLD_CHECKING 1
7418 valgrind_path_defines
=
7421 if test "${ac_cv_header_valgrind_h+set}" = set; then
7422 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7423 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7424 if test "${ac_cv_header_valgrind_h+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7428 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7430 # Is the header compilable?
7431 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7432 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7433 cat >conftest.
$ac_ext <<_ACEOF
7436 cat confdefs.h
>>conftest.
$ac_ext
7437 cat >>conftest.
$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7440 #include <valgrind.h>
7442 rm -f conftest.
$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1
>conftest.err
7448 cat conftest.err
>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try
='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try
='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_header_compiler
=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7469 ac_header_compiler
=no
7471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473 echo "${ECHO_T}$ac_header_compiler" >&6
7475 # Is the header present?
7476 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7477 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7478 cat >conftest.
$ac_ext <<_ACEOF
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <valgrind.h>
7486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7489 grep -v '^ *+' conftest.er1
>conftest.err
7491 cat conftest.err
>&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } >/dev
/null
; then
7494 if test -s conftest.err
; then
7495 ac_cpp_err
=$ac_c_preproc_warn_flag
7496 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7503 if test -z "$ac_cpp_err"; then
7504 ac_header_preproc
=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.
$ac_ext >&5
7509 ac_header_preproc
=no
7511 rm -f conftest.err conftest.
$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513 echo "${ECHO_T}$ac_header_preproc" >&6
7515 # So? What about this header?
7516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7518 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7519 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7521 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7522 ac_header_preproc
=yes
7525 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7526 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7528 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7530 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7532 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7534 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7536 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7539 ## ------------------------------------------ ##
7540 ## Report this to the AC_PACKAGE_NAME lists. ##
7541 ## ------------------------------------------ ##
7544 sed "s/^/$as_me: WARNING: /" >&2
7547 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7548 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7549 if test "${ac_cv_header_valgrind_h+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_header_valgrind_h
=$ac_header_preproc
7554 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7555 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7558 if test $ac_cv_header_valgrind_h = yes; then
7566 if test x
$ac_valgrind_checking != x
; then
7567 # It is certainly possible that there's valgrind but no valgrind.h.
7568 # GCC relies on making annotations so we must have both.
7569 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7570 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7571 cat >conftest.
$ac_ext <<_ACEOF
7574 cat confdefs.h
>>conftest.
$ac_ext
7575 cat >>conftest.
$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 #include <valgrind/memcheck.h>
7578 #ifndef VALGRIND_DISCARD
7579 #error VALGRIND_DISCARD not defined
7582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7583 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } >/dev
/null
; then
7590 if test -s conftest.err
; then
7591 ac_cpp_err
=$ac_c_preproc_warn_flag
7592 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7599 if test -z "$ac_cpp_err"; then
7600 gcc_cv_header_valgrind_memcheck_h
=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.
$ac_ext >&5
7605 gcc_cv_header_valgrind_memcheck_h
=no
7607 rm -f conftest.err conftest.
$ac_ext
7608 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7609 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7610 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7611 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7612 cat >conftest.
$ac_ext <<_ACEOF
7615 cat confdefs.h
>>conftest.
$ac_ext
7616 cat >>conftest.
$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 #include <memcheck.h>
7619 #ifndef VALGRIND_DISCARD
7620 #error VALGRIND_DISCARD not defined
7623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7624 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7626 grep -v '^ *+' conftest.er1
>conftest.err
7628 cat conftest.err
>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } >/dev
/null
; then
7631 if test -s conftest.err
; then
7632 ac_cpp_err
=$ac_c_preproc_warn_flag
7633 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7640 if test -z "$ac_cpp_err"; then
7641 gcc_cv_header_memcheck_h
=yes
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.
$ac_ext >&5
7646 gcc_cv_header_memcheck_h
=no
7648 rm -f conftest.err conftest.
$ac_ext
7649 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7650 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7652 # Prepare PATH_SEPARATOR.
7653 # The user is always right.
7654 if test "${PATH_SEPARATOR+set}" != set; then
7655 echo "#! /bin/sh" >conf$$.sh
7656 echo "exit 0" >>conf$$.sh
7658 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7666 # Find out how to test for executable files. Don't use a zero-byte file,
7667 # as systems may use methods other than mode bits to determine executability.
7668 cat >conf$$.
file <<_ASEOF
7672 chmod +x conf$$.
file
7673 if test -x conf$$.
file >/dev
/null
2>&1; then
7674 ac_executable_p
="test -x"
7676 ac_executable_p
="test -f"
7680 # Extract the first word of "valgrind", so it can be a program name with args.
7681 set dummy valgrind
; ac_word
=$2
7682 echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684 if test "${ac_cv_path_valgrind_path+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 case "$valgrind_path" in
7689 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7692 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7693 for ac_dir
in $PATH; do
7695 test -z "$ac_dir" && ac_dir
=.
7696 for ac_exec_ext
in '' $ac_executable_extensions; do
7697 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7698 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7699 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7709 valgrind_path
="$ac_cv_path_valgrind_path"
7710 if test -n "$valgrind_path"; then
7711 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7712 echo "${ECHO_T}$valgrind_path" >&6
7714 echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7718 if test "x$valgrind_path" = "x" \
7719 ||
(test $have_valgrind_h = no \
7720 && test $gcc_cv_header_memcheck_h = no \
7721 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7722 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7723 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7724 { (exit 1); exit 1; }; }
7726 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7727 valgrind_command
="$valgrind_path -q"
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define ENABLE_VALGRIND_CHECKING 1
7733 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7735 cat >>confdefs.h
<<\_ACEOF
7736 #define HAVE_VALGRIND_MEMCHECK_H 1
7740 if test $gcc_cv_header_memcheck_h = yes; then
7742 cat >>confdefs.h
<<\_ACEOF
7743 #define HAVE_MEMCHECK_H 1
7751 # Enable code coverage collection
7752 # Check whether --enable-coverage or --disable-coverage was given.
7753 if test "${enable_coverage+set}" = set; then
7754 enableval
="$enable_coverage"
7755 case "${enableval}" in
7757 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7760 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7763 # a.k.a. --disable-coverage
7767 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7768 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7769 { (exit 1); exit 1; }; }
7777 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7778 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7779 enableval
="$enable_gather_detailed_mem_stats"
7782 enable_gather_detailed_mem_stats
=no
7784 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7786 cat >>confdefs.h
<<\_ACEOF
7787 #define GATHER_STATISTICS 1
7792 # -------------------------------
7793 # Miscenalleous configure options
7794 # -------------------------------
7798 # Check whether --with-stabs or --without-stabs was given.
7799 if test "${with_stabs+set}" = set; then
7800 withval
="$with_stabs"
7806 # Determine whether or not multilibs are enabled.
7807 # Check whether --enable-multilib or --disable-multilib was given.
7808 if test "${enable_multilib+set}" = set; then
7809 enableval
="$enable_multilib"
7816 # Enable __cxa_atexit for C++.
7817 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7818 if test "${enable___cxa_atexit+set}" = set; then
7819 enableval
="$enable___cxa_atexit"
7823 # Enable C extension for decimal float if target supports it.
7824 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7825 if test "${enable_decimal_float+set}" = set; then
7826 enableval
="$enable_decimal_float"
7828 case $enable_decimal_float in
7829 yes | no | bid | dpd
) ;;
7830 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7831 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7832 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7833 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7834 { (exit 1); exit 1; }; } ;;
7840 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
7841 enable_decimal_float
=yes
7844 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7845 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7846 enable_decimal_float
=no
7852 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7854 cat >>confdefs.h
<<_ACEOF
7855 #define ENABLE_DECIMAL_FLOAT $dfp
7859 # x86's use BID format instead of DPD
7860 case x
$enable_decimal_float in
7863 i?
86*-*-linux* | x86_64
*-*-linux*)
7864 enable_decimal_float
=bid
7867 enable_decimal_float
=dpd
7872 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7873 # dependency on libdecnumber.
7874 enable_decimal_float
=dpd
7879 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7881 cat >>confdefs.h
<<_ACEOF
7882 #define ENABLE_DECIMAL_BID_FORMAT $bid
7886 # Enable C extension for fixed-point arithmetic.
7887 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7888 if test "${enable_fixed_point+set}" = set; then
7889 enableval
="$enable_fixed_point"
7898 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7899 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7900 enable_fixed_point
=no
7903 enable_fixed_point
=yes
7908 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7909 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7910 enable_fixed_point
=no
7917 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7919 cat >>confdefs.h
<<_ACEOF
7920 #define ENABLE_FIXED_POINT $fixedpoint
7925 # Pass with no value to take the default
7926 # Pass with a value to specify a thread package
7927 # Check whether --enable-threads or --disable-threads was given.
7928 if test "${enable_threads+set}" = set; then
7929 enableval
="$enable_threads"
7935 # Check whether --enable-tls or --disable-tls was given.
7936 if test "${enable_tls+set}" = set; then
7937 enableval
="$enable_tls"
7941 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7942 Valid choices are 'yes' and 'no'." >&5
7943 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7944 Valid choices are 'yes' and 'no'." >&2;}
7945 { (exit 1); exit 1; }; } ;;
7952 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7953 if test "${enable_objc_gc+set}" = set; then
7954 enableval
="$enable_objc_gc"
7955 if test x
$enable_objc_gc = xno
; then
7965 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7966 if test "${with_dwarf2+set}" = set; then
7967 withval
="$with_dwarf2"
7968 dwarf2
="$with_dwarf2"
7973 # Check whether --enable-shared or --disable-shared was given.
7974 if test "${enable_shared+set}" = set; then
7975 enableval
="$enable_shared"
7977 case $enable_shared in
7981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7982 for pkg
in $enableval; do
7983 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7997 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7998 if test "${with_build_sysroot+set}" = set; then
7999 withval
="$with_build_sysroot"
8004 # Check whether --with-sysroot or --without-sysroot was given.
8005 if test "${with_sysroot+set}" = set; then
8006 withval
="$with_sysroot"
8008 case ${with_sysroot} in
8009 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8010 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8013 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8014 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8016 if test "x$prefix" = xNONE
; then
8017 test_prefix
=/usr
/local
8021 if test "x$exec_prefix" = xNONE
; then
8022 test_exec_prefix
=$test_prefix
8024 test_exec_prefix
=$exec_prefix
8026 case ${TARGET_SYSTEM_ROOT} in
8027 "${test_prefix}"|
"${test_prefix}/"*|\
8028 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
8029 '${prefix}'|
'${prefix}/'*|\
8030 '${exec_prefix}'|
'${exec_prefix}/'*)
8031 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8032 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8039 TARGET_SYSTEM_ROOT_DEFINE
=
8040 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
8047 # Build with intermodule optimisations
8048 # Check whether --enable-intermodule or --disable-intermodule was given.
8049 if test "${enable_intermodule+set}" = set; then
8050 enableval
="$enable_intermodule"
8051 case ${enable_intermodule} in
8052 yes) onestep
="-onestep";;
8062 # Check whether --with-pkgversion or --without-pkgversion was given.
8063 if test "${with_pkgversion+set}" = set; then
8064 withval
="$with_pkgversion"
8066 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8067 echo "$as_me: error: package version not specified" >&2;}
8068 { (exit 1); exit 1; }; } ;;
8070 *) PKGVERSION
="($withval) " ;;
8080 # Check whether --with-bugurl or --without-bugurl was given.
8081 if test "${with_bugurl+set}" = set; then
8082 withval
="$with_bugurl"
8084 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8085 echo "$as_me: error: bug URL not specified" >&2;}
8086 { (exit 1); exit 1; }; } ;;
8089 *) BUGURL
="$withval"
8093 BUGURL
="http://gcc.gnu.org/bugs.html"
8102 REPORT_BUGS_TO
="<$BUGURL>"
8103 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8110 # Sanity check enable_languages in case someone does not run the toplevel
8111 # configure # script.
8112 # Check whether --enable-languages or --disable-languages was given.
8113 if test "${enable_languages+set}" = set; then
8114 enableval
="$enable_languages"
8115 case ,${enable_languages}, in
8117 # go safe -- we cannot be much sure without the toplevel
8119 # analysis of which target libs are present and usable
8123 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8124 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8125 { (exit 1); exit 1; }; }
8130 enable_languages
=c
,${enable_languages}
8137 # Used by documentation targets
8143 # Check whether --with-multilib-list or --without-multilib-list was given.
8144 if test "${with_multilib_list+set}" = set; then
8145 withval
="$with_multilib_list"
8148 with_multilib_list
=default
8151 # -------------------------
8152 # Checks for other programs
8153 # -------------------------
8155 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8157 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8158 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 cat >conftest.
make <<\_ACEOF
8163 @
echo 'ac_maketemp="$(MAKE)"'
8165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8166 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8167 if test -n "$ac_maketemp"; then
8168 eval ac_cv_prog_make_
${ac_make}_set
=yes
8170 eval ac_cv_prog_make_
${ac_make}_set
=no
8174 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8175 echo "$as_me:$LINENO: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8179 echo "$as_me:$LINENO: result: no" >&5
8180 echo "${ECHO_T}no" >&6
8181 SET_MAKE
="MAKE=${MAKE-make}"
8185 # Find some useful tools
8186 for ac_prog
in gawk mawk nawk
awk
8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy
$ac_prog; ac_word
=$2
8190 echo "$as_me:$LINENO: checking for $ac_word" >&5
8191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8192 if test "${ac_cv_prog_AWK+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 if test -n "$AWK"; then
8196 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir
=.
8203 for ac_exec_ext
in '' $ac_executable_extensions; do
8204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_AWK
="$ac_prog"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 if test -n "$AWK"; then
8216 echo "$as_me:$LINENO: result: $AWK" >&5
8217 echo "${ECHO_T}$AWK" >&6
8219 echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8223 test -n "$AWK" && break
8226 # We need awk to create options.c and options.h.
8227 # Bail out if it's missing.
8229 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8230 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8231 { (exit 1); exit 1; }; } ;;
8234 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8236 if test "${gcc_cv_prog_LN_S+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 rm -f conftestdata_t
8240 echo >conftestdata_f
8241 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8243 gcc_cv_prog_LN_S
="ln -s"
8245 if ln conftestdata_f conftestdata_t
2>/dev
/null
8249 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8251 gcc_cv_prog_LN_S
="cp -p"
8257 rm -f conftestdata_f conftestdata_t
8260 LN_S
="$gcc_cv_prog_LN_S"
8261 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8265 if test "$gcc_cv_prog_LN_S" = "ln"; then
8266 echo "$as_me:$LINENO: result: no, using ln" >&5
8267 echo "${ECHO_T}no, using ln" >&6
8269 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8270 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8274 echo "$as_me:$LINENO: checking whether ln works" >&5
8275 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8276 if test "${acx_cv_prog_LN+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 rm -f conftestdata_t
8280 echo >conftestdata_f
8281 if ln conftestdata_f conftestdata_t
2>/dev
/null
8287 rm -f conftestdata_f conftestdata_t
8290 if test $acx_cv_prog_LN = no
; then
8292 echo "$as_me:$LINENO: result: no, using $LN" >&5
8293 echo "${ECHO_T}no, using $LN" >&6
8295 LN
="$acx_cv_prog_LN"
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8300 if test -n "$ac_tool_prefix"; then
8301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8302 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8303 echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8305 if test "${ac_cv_prog_RANLIB+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 if test -n "$RANLIB"; then
8309 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir
=.
8316 for ac_exec_ext
in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 RANLIB
=$ac_cv_prog_RANLIB
8328 if test -n "$RANLIB"; then
8329 echo "$as_me:$LINENO: result: $RANLIB" >&5
8330 echo "${ECHO_T}$RANLIB" >&6
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8337 if test -z "$ac_cv_prog_RANLIB"; then
8338 ac_ct_RANLIB
=$RANLIB
8339 # Extract the first word of "ranlib", so it can be a program name with args.
8340 set dummy ranlib
; ac_word
=$2
8341 echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test -n "$ac_ct_RANLIB"; then
8347 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir
=.
8354 for ac_exec_ext
in '' $ac_executable_extensions; do
8355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
8366 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8367 if test -n "$ac_ct_RANLIB"; then
8368 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8371 echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6
8375 RANLIB
=$ac_ct_RANLIB
8377 RANLIB
="$ac_cv_prog_RANLIB"
8382 # By default, the Darwin ranlib will not treat common symbols as
8383 # definitions when building the archive table of contents. Other
8384 # ranlibs do that; pass an option to the Darwin ranlib that makes
8385 # it behave similarly.
8393 # Find a good install program. We prefer a C program (faster),
8394 # so one script is as good as another. But avoid the broken or
8395 # incompatible versions:
8396 # SysV /etc/install, /usr/sbin/install
8397 # SunOS /usr/etc/install
8398 # IRIX /sbin/install
8400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8402 # ./install, which can be erroneously created by make from ./install.sh.
8403 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8404 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8405 if test -z "$INSTALL"; then
8406 if test "${ac_cv_path_install+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8410 for ac_dir
in $PATH; do
8411 # Account for people who put trailing slashes in PATH elements.
8413 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8415 # OSF1 and SCO ODT 3.0 have their own names for install.
8416 for ac_prog
in ginstall scoinst
install; do
8417 if test -f $ac_dir/$ac_prog; then
8418 if test $ac_prog = install &&
8419 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8420 # AIX install. It has an incompatible calling convention.
8421 # OSF/1 installbsd also uses dspmsg, but is usable.
8424 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8435 if test "${ac_cv_path_install+set}" = set; then
8436 INSTALL
="$ac_cv_path_install"
8438 # As a last resort, use the slow shell script. We don't cache a
8439 # path for INSTALL within a source directory, because that will
8440 # break other packages using the cache if that directory is
8441 # removed, or if the path is relative.
8442 INSTALL
="$ac_install_sh"
8445 echo "$as_me:$LINENO: result: $INSTALL" >&5
8446 echo "${ECHO_T}$INSTALL" >&6
8448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8449 # It thinks the first close brace ends the variable substitution.
8450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8452 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8455 # See if cmp has --ignore-initial.
8456 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8457 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8458 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 gcc_cv_prog_cmp_skip
=slowcompare
8464 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8465 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8468 gcc_cv_prog_cmp_skip
=gnucompare
8471 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8472 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8473 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8476 gcc_cv_prog_cmp_skip
=fastcompare
8483 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8484 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8485 make_compare_target
=$gcc_cv_prog_cmp_skip
8489 # See if we have the mktemp command.
8490 # Extract the first word of "mktemp", so it can be a program name with args.
8491 set dummy mktemp
; ac_word
=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 if test -n "$have_mktemp_command"; then
8498 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir
=.
8505 for ac_exec_ext
in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_have_mktemp_command
="yes"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8517 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8518 if test -n "$have_mktemp_command"; then
8519 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8520 echo "${ECHO_T}$have_mktemp_command" >&6
8522 echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8527 # See if makeinfo has been installed and is modern enough
8528 # that we can use it.
8530 # Extract the first word of "makeinfo", so it can be a program name with args.
8531 set dummy makeinfo
; ac_word
=$2
8532 echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8534 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 if test -n "$MAKEINFO"; then
8538 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir
=.
8545 for ac_exec_ext
in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_MAKEINFO
="makeinfo"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 MAKEINFO
=$ac_cv_prog_MAKEINFO
8557 if test -n "$MAKEINFO"; then
8558 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8559 echo "${ECHO_T}$MAKEINFO" >&6
8561 echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8565 if test -n "$MAKEINFO"; then
8566 # Found it, now check the version.
8567 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8568 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8569 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8573 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8575 case $ac_prog_version in
8576 '') gcc_cv_prog_makeinfo_modern
=no
;;
8577 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8578 *) gcc_cv_prog_makeinfo_modern
=no
;;
8582 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8583 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8585 gcc_cv_prog_makeinfo_modern
=no
8587 if test $gcc_cv_prog_makeinfo_modern = no
; then
8588 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8591 if test $gcc_cv_prog_makeinfo_modern = no
; then
8592 { echo "$as_me:$LINENO: WARNING:
8593 *** Makeinfo is missing or too old.
8594 *** Info documentation will not be built." >&5
8595 echo "$as_me: WARNING:
8596 *** Makeinfo is missing or too old.
8597 *** Info documentation will not be built." >&2;}
8604 # Is pod2man recent enough to regenerate manpages?
8605 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8606 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8607 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610 GENERATED_MANPAGES
=generated-manpages
8612 echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8618 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8623 # Extract the first word of "$ac_prog", so it can be a program name with args.
8624 set dummy
$ac_prog; ac_word
=$2
8625 echo "$as_me:$LINENO: checking for $ac_word" >&5
8626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8627 if test "${ac_cv_prog_FLEX+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 if test -n "$FLEX"; then
8631 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir
=.
8638 for ac_exec_ext
in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_FLEX
="$ac_prog"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 FLEX
=$ac_cv_prog_FLEX
8650 if test -n "$FLEX"; then
8651 echo "$as_me:$LINENO: result: $FLEX" >&5
8652 echo "${ECHO_T}$FLEX" >&6
8654 echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6
8658 test -n "$FLEX" && break
8660 test -n "$FLEX" || FLEX
="$MISSING flex"
8664 for ac_prog
in bison
8666 # Extract the first word of "$ac_prog", so it can be a program name with args.
8667 set dummy
$ac_prog; ac_word
=$2
8668 echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8670 if test "${ac_cv_prog_BISON+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 if test -n "$BISON"; then
8674 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8680 test -z "$as_dir" && as_dir
=.
8681 for ac_exec_ext
in '' $ac_executable_extensions; do
8682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_BISON
="$ac_prog"
8684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 BISON
=$ac_cv_prog_BISON
8693 if test -n "$BISON"; then
8694 echo "$as_me:$LINENO: result: $BISON" >&5
8695 echo "${ECHO_T}$BISON" >&6
8697 echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8701 test -n "$BISON" && break
8703 test -n "$BISON" || BISON
="$MISSING bison"
8706 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8707 # check for build == host before using them.
8710 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8711 && test -d ..
/binutils
; then
8712 NM
='$(objdir)/../binutils/nm-new'
8714 # Extract the first word of "nm", so it can be a program name with args.
8715 set dummy nm
; ac_word
=$2
8716 echo "$as_me:$LINENO: checking for $ac_word" >&5
8717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8718 if test "${ac_cv_prog_NM+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 if test -n "$NM"; then
8722 ac_cv_prog_NM
="$NM" # Let the user override the test.
8724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8728 test -z "$as_dir" && as_dir
=.
8729 for ac_exec_ext
in '' $ac_executable_extensions; do
8730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8742 if test -n "$NM"; then
8743 echo "$as_me:$LINENO: result: $NM" >&5
8744 echo "${ECHO_T}$NM" >&6
8746 echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8753 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8754 && test -d ..
/binutils
; then
8755 AR
='$(objdir)/../binutils/ar'
8757 # Extract the first word of "ar", so it can be a program name with args.
8758 set dummy
ar; ac_word
=$2
8759 echo "$as_me:$LINENO: checking for $ac_word" >&5
8760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8761 if test "${ac_cv_prog_AR+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 if test -n "$AR"; then
8765 ac_cv_prog_AR
="$AR" # Let the user override the test.
8767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8771 test -z "$as_dir" && as_dir
=.
8772 for ac_exec_ext
in '' $ac_executable_extensions; do
8773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8785 if test -n "$AR"; then
8786 echo "$as_me:$LINENO: result: $AR" >&5
8787 echo "${ECHO_T}$AR" >&6
8789 echo "$as_me:$LINENO: result: no" >&5
8790 echo "${ECHO_T}no" >&6
8796 # --------------------
8797 # Checks for C headers
8798 # --------------------
8800 # Need to reject headers which give warnings, so that the -Werror bootstrap
8801 # works later. *sigh* This needs to come before all header checks.
8803 ac_c_preproc_warn_flag
=yes
8805 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8807 if test "${ac_cv_header_stdc+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 cat >conftest.
$ac_ext <<_ACEOF
8813 cat confdefs.h
>>conftest.
$ac_ext
8814 cat >>conftest.
$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8829 rm -f conftest.
$ac_objext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>conftest.er1
8833 grep -v '^ *+' conftest.er1
>conftest.err
8835 cat conftest.err
>&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try
='test -z "$ac_c_werror_flag"
8839 || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try
='test -s conftest.$ac_objext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_header_stdc
=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.
$ac_ext >&5
8856 ac_cv_header_stdc
=no
8858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8860 if test $ac_cv_header_stdc = yes; then
8861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8862 cat >conftest.
$ac_ext <<_ACEOF
8865 cat confdefs.h
>>conftest.
$ac_ext
8866 cat >>conftest.
$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872 $EGREP "memchr" >/dev
/null
2>&1; then
8875 ac_cv_header_stdc
=no
8881 if test $ac_cv_header_stdc = yes; then
8882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8883 cat >conftest.
$ac_ext <<_ACEOF
8886 cat confdefs.h
>>conftest.
$ac_ext
8887 cat >>conftest.
$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893 $EGREP "free" >/dev
/null
2>&1; then
8896 ac_cv_header_stdc
=no
8902 if test $ac_cv_header_stdc = yes; then
8903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8904 if test "$cross_compiling" = yes; then
8907 cat >conftest.
$ac_ext <<_ACEOF
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 #if ((' ' & 0x0FF) == 0x020)
8915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8918 # define ISLOWER(c) \
8919 (('a' <= (c) && (c) <= 'i') \
8920 || ('j' <= (c) && (c) <= 'r') \
8921 || ('s' <= (c) && (c) <= 'z'))
8922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8930 for (i = 0; i < 256; i++)
8931 if (XOR (islower (i), ISLOWER (i))
8932 || toupper (i) != TOUPPER (i))
8937 rm -f conftest
$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8950 echo "$as_me: program exited with status $ac_status" >&5
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.
$ac_ext >&5
8955 ac_cv_header_stdc
=no
8957 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8963 if test $ac_cv_header_stdc = yes; then
8965 cat >>confdefs.h
<<\_ACEOF
8966 #define STDC_HEADERS 1
8971 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8972 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8973 if test "${ac_cv_header_time+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/time.h>
8989 if ((struct tm *) 0)
8995 rm -f conftest.
$ac_objext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>conftest.er1
8999 grep -v '^ *+' conftest.er1
>conftest.err
9001 cat conftest.err
>&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try
='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try
='test -s conftest.$ac_objext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_header_time
=yes
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.
$ac_ext >&5
9022 ac_cv_header_time
=no
9024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9027 echo "${ECHO_T}$ac_cv_header_time" >&6
9028 if test $ac_cv_header_time = yes; then
9030 cat >>confdefs.h
<<\_ACEOF
9031 #define TIME_WITH_SYS_TIME 1
9036 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9037 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9038 if test "${gcc_cv_header_string+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 #include <strings.h>
9057 rm -f conftest.
$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1
>conftest.err
9063 cat conftest.err
>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try
='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try
='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 gcc_cv_header_string
=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.
$ac_ext >&5
9084 gcc_cv_header_string
=no
9086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9088 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9089 echo "${ECHO_T}$gcc_cv_header_string" >&6
9090 if test $gcc_cv_header_string = yes; then
9092 cat >>confdefs.h
<<\_ACEOF
9093 #define STRING_WITH_STRINGS 1
9098 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.
$ac_ext <<_ACEOF
9106 cat confdefs.h
>>conftest.
$ac_ext
9107 cat >>conftest.
$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/wait.h>
9112 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9128 rm -f conftest.
$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>conftest.er1
9132 grep -v '^ *+' conftest.er1
>conftest.err
9134 cat conftest.err
>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try
='test -z "$ac_c_werror_flag"
9138 || test ! -s conftest.err'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try
='test -s conftest.$ac_objext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_header_sys_wait_h
=yes
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.
$ac_ext >&5
9155 ac_cv_header_sys_wait_h
=no
9157 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9161 if test $ac_cv_header_sys_wait_h = yes; then
9163 cat >>confdefs.h
<<\_ACEOF
9164 #define HAVE_SYS_WAIT_H 1
9191 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9192 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9193 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
9194 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9196 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 echo "$as_me:$LINENO: checking for $ac_header" >&5
9198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <$ac_header>
9210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9213 grep -v '^ *+' conftest.er1
>conftest.err
9215 cat conftest.err
>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } >/dev
/null
; then
9218 if test -s conftest.err
; then
9219 ac_cpp_err
=$ac_c_preproc_warn_flag
9220 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9227 if test -z "$ac_cpp_err"; then
9228 eval "$as_ac_Header=yes"
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.
$ac_ext >&5
9233 eval "$as_ac_Header=no"
9235 rm -f conftest.err conftest.
$ac_ext
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240 cat >>confdefs.h
<<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 # Check for thread headers.
9249 echo "$as_me:$LINENO: checking for thread.h" >&5
9250 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9251 if test "${ac_cv_header_thread_h+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 cat >conftest.
$ac_ext <<_ACEOF
9257 cat confdefs.h
>>conftest.
$ac_ext
9258 cat >>conftest.
$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1
>conftest.err
9267 cat conftest.err
>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev
/null
; then
9270 if test -s conftest.err
; then
9271 ac_cpp_err
=$ac_c_preproc_warn_flag
9272 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9279 if test -z "$ac_cpp_err"; then
9280 ac_cv_header_thread_h
=yes
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.
$ac_ext >&5
9285 ac_cv_header_thread_h
=no
9287 rm -f conftest.err conftest.
$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9290 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9291 if test $ac_cv_header_thread_h = yes; then
9297 echo "$as_me:$LINENO: checking for pthread.h" >&5
9298 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9299 if test "${ac_cv_header_pthread_h+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 cat >conftest.
$ac_ext <<_ACEOF
9305 cat confdefs.h
>>conftest.
$ac_ext
9306 cat >>conftest.
$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 #include <pthread.h>
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1
>conftest.err
9315 cat conftest.err
>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } >/dev
/null
; then
9318 if test -s conftest.err
; then
9319 ac_cpp_err
=$ac_c_preproc_warn_flag
9320 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9327 if test -z "$ac_cpp_err"; then
9328 ac_cv_header_pthread_h
=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9333 ac_cv_header_pthread_h
=no
9335 rm -f conftest.err conftest.
$ac_ext
9337 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9339 if test $ac_cv_header_pthread_h = yes; then
9346 # These tests can't be done till we know if we have limits.h.
9347 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9348 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9349 if test "${gcc_cv_decl_char_bit+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.
$ac_ext <<_ACEOF
9355 cat confdefs.h
>>conftest.
$ac_ext
9356 cat >>conftest.
$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 #ifdef HAVE_LIMITS_H
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "found" >/dev
/null
2>&1; then
9367 gcc_cv_decl_char_bit
=yes
9369 gcc_cv_decl_char_bit
=no
9375 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9376 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9377 if test $gcc_cv_decl_char_bit = no
; then
9378 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9379 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9380 if test "${gcc_cv_c_nbby+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 while test $i -lt 65; do
9386 cat >conftest.
$ac_ext <<_ACEOF
9389 cat confdefs.h
>>conftest.
$ac_ext
9390 cat >>conftest.
$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9397 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9398 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9404 rm -f conftest.
$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406 (eval $ac_compile) 2>conftest.er1
9408 grep -v '^ *+' conftest.er1
>conftest.err
9410 cat conftest.err
>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try
='test -z "$ac_c_werror_flag"
9414 || test ! -s conftest.err'
9415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); }; } &&
9420 { ac_try
='test -s conftest.$ac_objext'
9421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 gcc_cv_c_nbby
=$i; break
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.
$ac_ext >&5
9432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9435 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9438 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9439 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9440 if test $gcc_cv_c_nbby = failed
; then
9441 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9442 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9443 { (exit 1); exit 1; }; }
9446 cat >>confdefs.h
<<_ACEOF
9447 #define CHAR_BIT $gcc_cv_c_nbby
9452 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9453 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9454 if test "${ac_cv_c_bigendian+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 # See if sys/param.h defines the BYTE_ORDER macro.
9458 cat >conftest.
$ac_ext <<_ACEOF
9461 cat confdefs.h
>>conftest.
$ac_ext
9462 cat >>conftest.
$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 #include <sys/types.h>
9465 #include <sys/param.h>
9470 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9478 rm -f conftest.
$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try
='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 # It does; now see whether it defined to BIG_ENDIAN or not.
9501 cat >conftest.
$ac_ext <<_ACEOF
9504 cat confdefs.h
>>conftest.
$ac_ext
9505 cat >>conftest.
$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <sys/types.h>
9508 #include <sys/param.h>
9513 #if BYTE_ORDER != BIG_ENDIAN
9521 rm -f conftest.
$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9525 grep -v '^ *+' conftest.er1
>conftest.err
9527 cat conftest.err
>&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try
='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try
='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_c_bigendian
=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_c_bigendian
=no
9550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.
$ac_ext >&5
9555 # It does not; compile a test program.
9556 if test "$cross_compiling" = yes; then
9557 # try to guess the endianness by grepping values into an object file
9558 ac_cv_c_bigendian
=unknown
9559 cat >conftest.
$ac_ext <<_ACEOF
9562 cat confdefs.h
>>conftest.
$ac_ext
9563 cat >>conftest.
$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9566 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9567 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9568 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9569 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9570 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9574 _ascii (); _ebcdic ();
9579 rm -f conftest.
$ac_objext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9581 (eval $ac_compile) 2>conftest.er1
9583 grep -v '^ *+' conftest.er1
>conftest.err
9585 cat conftest.err
>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try
='test -z "$ac_c_werror_flag"
9589 || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try
='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9602 ac_cv_c_bigendian
=yes
9604 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9605 if test "$ac_cv_c_bigendian" = unknown
; then
9606 ac_cv_c_bigendian
=no
9608 # finding both strings is unlikely to happen, but who knows?
9609 ac_cv_c_bigendian
=unknown
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.
$ac_ext >&5
9617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9619 cat >conftest.
$ac_ext <<_ACEOF
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9628 /* Are we little or big endian? From Harbison&Steele. */
9632 char c[sizeof (long)];
9635 exit (u.c[sizeof (long) - 1] == 1);
9638 rm -f conftest
$ac_exeext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_c_bigendian
=no
9651 echo "$as_me: program exited with status $ac_status" >&5
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9656 ac_cv_c_bigendian
=yes
9658 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9665 case $ac_cv_c_bigendian in
9668 cat >>confdefs.h
<<\_ACEOF
9669 #define WORDS_BIGENDIAN 1
9675 { { echo "$as_me:$LINENO: error: unknown endianness
9676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9677 echo "$as_me: error: unknown endianness
9678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9679 { (exit 1); exit 1; }; } ;;
9688 # These libraries may be used by collect2.
9689 # We may need a special search path to get them linked.
9690 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9691 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9692 if test "${gcc_cv_collect2_libs+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 for libs
in '' -lld -lmld \
9697 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9698 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9701 cat >conftest.
$ac_ext <<_ACEOF
9704 cat confdefs.h
>>conftest.
$ac_ext
9705 cat >>conftest.
$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.
$ac_objext conftest
$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>conftest.er1
9727 grep -v '^ *+' conftest.er1
>conftest.err
9729 cat conftest.err
>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try
='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try
='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 gcc_cv_collect2_libs
="$libs"; break
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.
$ac_ext >&5
9751 rm -f conftest.err conftest.
$ac_objext \
9752 conftest
$ac_exeext conftest.
$ac_ext
9755 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9757 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9758 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9759 case $gcc_cv_collect2_libs in
9761 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9765 # When building Ada code on Alpha, we need exc_resume which is usually in
9766 # -lexc. So test for it.
9769 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9770 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9771 if test "${ac_cv_search_exc_resume+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 ac_func_search_save_LIBS
=$LIBS
9775 ac_cv_search_exc_resume
=no
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9783 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9798 rm -f conftest.
$ac_objext conftest
$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9802 grep -v '^ *+' conftest.er1
>conftest.err
9804 cat conftest.err
>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try
='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try
='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_search_exc_resume
="none required"
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.
$ac_ext >&5
9826 rm -f conftest.err conftest.
$ac_objext \
9827 conftest
$ac_exeext conftest.
$ac_ext
9828 if test "$ac_cv_search_exc_resume" = no
; then
9829 for ac_lib
in exc
; do
9830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9831 cat >conftest.
$ac_ext <<_ACEOF
9834 cat confdefs.h
>>conftest.
$ac_ext
9835 cat >>conftest.
$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.
$ac_objext conftest
$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1
>conftest.err
9859 cat conftest.err
>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try
='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try
='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_search_exc_resume
="-l$ac_lib"
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.
$ac_ext >&5
9882 rm -f conftest.err conftest.
$ac_objext \
9883 conftest
$ac_exeext conftest.
$ac_ext
9886 LIBS
=$ac_func_search_save_LIBS
9888 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9889 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9890 if test "$ac_cv_search_exc_resume" != no
; then
9891 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9899 # Some systems put ldexp and frexp in libm instead of libc; assume
9900 # they're both in the same place. jcf-dump needs them.
9903 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9904 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9905 if test "${ac_cv_search_ldexp+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_func_search_save_LIBS
=$LIBS
9909 ac_cv_search_ldexp
=no
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.
$ac_objext conftest
$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1
>conftest.err
9938 cat conftest.err
>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try
='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try
='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_ldexp
="none required"
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.
$ac_ext >&5
9960 rm -f conftest.err conftest.
$ac_objext \
9961 conftest
$ac_exeext conftest.
$ac_ext
9962 if test "$ac_cv_search_ldexp" = no
; then
9964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.
$ac_ext <<_ACEOF
9968 cat confdefs.h
>>conftest.
$ac_ext
9969 cat >>conftest.
$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.
$ac_objext conftest
$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1
>conftest.err
9993 cat conftest.err
>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try
='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try
='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_ldexp
="-l$ac_lib"
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.
$ac_ext >&5
10016 rm -f conftest.err conftest.
$ac_objext \
10017 conftest
$ac_exeext conftest.
$ac_ext
10020 LIBS
=$ac_func_search_save_LIBS
10022 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10023 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10024 if test "$ac_cv_search_ldexp" != no
; then
10025 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
10033 # Use <inttypes.h> only if it exists,
10034 # doesn't clash with <sys/types.h>, and declares intmax_t.
10035 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10036 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10037 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10043 cat confdefs.h
>>conftest.
$ac_ext
10044 cat >>conftest.
$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <sys/types.h>
10047 #include <inttypes.h>
10056 rm -f conftest.
$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>conftest.er1
10060 grep -v '^ *+' conftest.er1
>conftest.err
10062 cat conftest.err
>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try
='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try
='test -s conftest.$ac_objext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 gcc_cv_header_inttypes_h
=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10083 gcc_cv_header_inttypes_h
=no
10085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10088 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10089 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10090 if test $gcc_cv_header_inttypes_h = yes; then
10092 cat >>confdefs.h
<<\_ACEOF
10093 #define HAVE_INTTYPES_H 1
10133 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
10134 sysconf strsignal getrusage nl_langinfo \
10135 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10136 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
10138 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10139 echo "$as_me:$LINENO: checking for $ac_func" >&5
10140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_var+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.
$ac_ext <<_ACEOF
10147 cat confdefs.h
>>conftest.
$ac_ext
10148 cat >>conftest.
$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10152 #define $ac_func innocuous_$ac_func
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func (); below.
10156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10157 <limits.h> exists even on freestanding compilers. */
10160 # include <limits.h>
10162 # include <assert.h>
10167 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 char (*f) () = $ac_func;
10190 return f != $ac_func;
10195 rm -f conftest.
$ac_objext conftest
$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197 (eval $ac_link) 2>conftest.er1
10199 grep -v '^ *+' conftest.er1
>conftest.err
10201 cat conftest.err
>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try
='test -z "$ac_c_werror_flag"
10205 || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try
='test -s conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 eval "$as_ac_var=yes"
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.
$ac_ext >&5
10222 eval "$as_ac_var=no"
10224 rm -f conftest.err conftest.
$ac_objext \
10225 conftest
$ac_exeext conftest.
$ac_ext
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h
<<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 if test x
$ac_cv_func_mbstowcs = xyes
; then
10239 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10240 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10241 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 if test "$cross_compiling" = yes; then
10245 gcc_cv_func_mbstowcs_works
=yes
10247 cat >conftest.
$ac_ext <<_ACEOF
10250 cat confdefs.h
>>conftest.
$ac_ext
10251 cat >>conftest.
$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #include <stdlib.h>
10256 mbstowcs(0, "", 0);
10260 rm -f conftest
$ac_exeext
10261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10262 (eval $ac_link) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 gcc_cv_func_mbstowcs_works
=yes
10273 echo "$as_me: program exited with status $ac_status" >&5
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.
$ac_ext >&5
10277 ( exit $ac_status )
10278 gcc_cv_func_mbstowcs_works
=no
10280 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10283 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10284 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10285 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10287 cat >>confdefs.h
<<\_ACEOF
10288 #define HAVE_WORKING_MBSTOWCS 1
10294 echo "$as_me:$LINENO: checking for ssize_t" >&5
10295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10296 if test "${ac_cv_type_ssize_t+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 cat >conftest.
$ac_ext <<_ACEOF
10302 cat confdefs.h
>>conftest.
$ac_ext
10303 cat >>conftest.
$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10311 if (sizeof (ssize_t))
10317 rm -f conftest.
$ac_objext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10319 (eval $ac_compile) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_type_ssize_t
=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 ac_cv_type_ssize_t
=no
10346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10349 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10350 if test $ac_cv_type_ssize_t = yes; then
10354 cat >>confdefs.h
<<_ACEOF
10355 #define ssize_t int
10360 echo "$as_me:$LINENO: checking for caddr_t" >&5
10361 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10362 if test "${ac_cv_type_caddr_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 cat >conftest.
$ac_ext <<_ACEOF
10368 cat confdefs.h
>>conftest.
$ac_ext
10369 cat >>conftest.
$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10377 if (sizeof (caddr_t))
10383 rm -f conftest.
$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385 (eval $ac_compile) 2>conftest.er1
10387 grep -v '^ *+' conftest.er1
>conftest.err
10389 cat conftest.err
>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try
='test -z "$ac_c_werror_flag"
10393 || test ! -s conftest.err'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; } &&
10399 { ac_try
='test -s conftest.$ac_objext'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_type_caddr_t
=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10410 ac_cv_type_caddr_t
=no
10412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10414 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10416 if test $ac_cv_type_caddr_t = yes; then
10420 cat >>confdefs.h
<<_ACEOF
10421 #define caddr_t char *
10428 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10429 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.
$ac_ext <<_ACEOF
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <sys/mman.h>
10441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10444 grep -v '^ *+' conftest.er1
>conftest.err
10446 cat conftest.err
>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } >/dev
/null
; then
10449 if test -s conftest.err
; then
10450 ac_cpp_err
=$ac_c_preproc_warn_flag
10451 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10458 if test -z "$ac_cpp_err"; then
10459 ac_cv_header_sys_mman_h
=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.
$ac_ext >&5
10464 ac_cv_header_sys_mman_h
=no
10466 rm -f conftest.err conftest.
$ac_ext
10468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10469 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10470 if test $ac_cv_header_sys_mman_h = yes; then
10471 gcc_header_sys_mman_h
=yes
10473 gcc_header_sys_mman_h
=no
10476 echo "$as_me:$LINENO: checking for mmap" >&5
10477 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10478 if test "${ac_cv_func_mmap+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 cat >conftest.
$ac_ext <<_ACEOF
10484 cat confdefs.h
>>conftest.
$ac_ext
10485 cat >>conftest.
$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10489 #define mmap innocuous_mmap
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char mmap (); below.
10493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494 <limits.h> exists even on freestanding compilers. */
10497 # include <limits.h>
10499 # include <assert.h>
10504 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_mmap) || defined (__stub___mmap)
10518 char (*f) () = mmap;
10532 rm -f conftest.
$ac_objext conftest
$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1
>conftest.err
10538 cat conftest.err
>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try
='test -z "$ac_c_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try
='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_func_mmap
=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.
$ac_ext >&5
10561 rm -f conftest.err conftest.
$ac_objext \
10562 conftest
$ac_exeext conftest.
$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10565 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10566 if test $ac_cv_func_mmap = yes; then
10572 if test "$gcc_header_sys_mman_h" != yes \
10573 ||
test "$gcc_func_mmap" != yes; then
10574 gcc_cv_func_mmap_file
=no
10575 gcc_cv_func_mmap_dev_zero
=no
10576 gcc_cv_func_mmap_anon
=no
10578 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10579 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10580 if test "${gcc_cv_func_mmap_file+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 # Add a system to this blacklist if
10584 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10585 # memory area containing the same data that you'd get if you applied
10586 # read() to the same fd. The only system known to have a problem here
10587 # is VMS, where text files have record structure.
10590 gcc_cv_func_mmap_file
=no
;;
10592 gcc_cv_func_mmap_file
=yes;;
10595 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10596 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10597 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10598 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10599 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 # Add a system to this blacklist if it has mmap() but /dev/zero
10603 # does not exist, or if mmapping /dev/zero does not give anonymous
10604 # zeroed pages with both the following properties:
10605 # 1. If you map N consecutive pages in with one call, and then
10606 # unmap any subset of those pages, the pages that were not
10607 # explicitly unmapped remain accessible.
10608 # 2. If you map two adjacent blocks of memory and then unmap them
10609 # both at once, they must both go away.
10610 # Systems known to be in this category are Windows (all variants),
10613 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10614 gcc_cv_func_mmap_dev_zero
=no
;;
10616 gcc_cv_func_mmap_dev_zero
=yes;;
10619 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10620 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10622 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10623 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10624 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10625 if test "${gcc_cv_decl_map_anon+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 cat >conftest.
$ac_ext <<_ACEOF
10631 cat confdefs.h
>>conftest.
$ac_ext
10632 cat >>conftest.
$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 #include <sys/types.h>
10635 #include <sys/mman.h>
10636 #include <unistd.h>
10638 #ifndef MAP_ANONYMOUS
10639 #define MAP_ANONYMOUS MAP_ANON
10645 int n = MAP_ANONYMOUS;
10650 rm -f conftest.
$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>conftest.er1
10654 grep -v '^ *+' conftest.er1
>conftest.err
10656 cat conftest.err
>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try
='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try
='test -s conftest.$ac_objext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 gcc_cv_decl_map_anon
=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.
$ac_ext >&5
10677 gcc_cv_decl_map_anon
=no
10679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10681 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10682 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10684 if test $gcc_cv_decl_map_anon = no
; then
10685 gcc_cv_func_mmap_anon
=no
10687 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10688 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10689 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10693 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10694 # doesn't give anonymous zeroed pages with the same properties listed
10695 # above for use of /dev/zero.
10696 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10698 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10699 gcc_cv_func_mmap_anon
=no
;;
10701 gcc_cv_func_mmap_anon
=yes;;
10704 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10705 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10709 if test $gcc_cv_func_mmap_file = yes; then
10711 cat >>confdefs.h
<<\_ACEOF
10712 #define HAVE_MMAP_FILE 1
10716 if test $gcc_cv_func_mmap_dev_zero = yes; then
10718 cat >>confdefs.h
<<\_ACEOF
10719 #define HAVE_MMAP_DEV_ZERO 1
10723 if test $gcc_cv_func_mmap_anon = yes; then
10725 cat >>confdefs.h
<<\_ACEOF
10726 #define HAVE_MMAP_ANON 1
10734 # Under VMS, vfork works very differently than on Unix. The standard test
10735 # won't work, and it isn't easily adaptable. It makes more sense to
10737 ac_cv_func_vfork_works
=yes
10740 echo "$as_me:$LINENO: checking for pid_t" >&5
10741 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10742 if test "${ac_cv_type_pid_t+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.
$ac_ext <<_ACEOF
10748 cat confdefs.h
>>conftest.
$ac_ext
10749 cat >>conftest.
$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 $ac_includes_default
10757 if (sizeof (pid_t))
10763 rm -f conftest.
$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try
='test -z "$ac_c_werror_flag"
10773 || test ! -s conftest.err'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try
='test -s conftest.$ac_objext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_type_pid_t
=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 ac_cv_type_pid_t
=no
10792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10795 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10796 if test $ac_cv_type_pid_t = yes; then
10800 cat >>confdefs.h
<<_ACEOF
10808 for ac_header
in unistd.h vfork.h
10810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <$ac_header>
10824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10825 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10827 grep -v '^ *+' conftest.er1
>conftest.err
10829 cat conftest.err
>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } >/dev
/null
; then
10832 if test -s conftest.err
; then
10833 ac_cpp_err
=$ac_c_preproc_warn_flag
10834 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10841 if test -z "$ac_cpp_err"; then
10842 eval "$as_ac_Header=yes"
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 eval "$as_ac_Header=no"
10849 rm -f conftest.err conftest.
$ac_ext
10851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854 cat >>confdefs.h
<<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10863 for ac_func
in fork vfork
10865 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10866 echo "$as_me:$LINENO: checking for $ac_func" >&5
10867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10868 if eval "test \"\${$as_ac_var+set}\" = set"; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.
$ac_ext <<_ACEOF
10874 cat confdefs.h
>>conftest.
$ac_ext
10875 cat >>conftest.
$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879 #define $ac_func innocuous_$ac_func
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char $ac_func (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10887 # include <limits.h>
10889 # include <assert.h>
10894 /* Override any gcc2 internal prototype to avoid an error. */
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10902 /* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10908 char (*f) () = $ac_func;
10917 return f != $ac_func;
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>conftest.er1
10926 grep -v '^ *+' conftest.er1
>conftest.err
10928 cat conftest.err
>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try
='test -z "$ac_c_werror_flag"
10932 || test ! -s conftest.err'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; } &&
10938 { ac_try
='test -s conftest$ac_exeext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 eval "$as_ac_var=yes"
10946 echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.
$ac_ext >&5
10949 eval "$as_ac_var=no"
10951 rm -f conftest.err conftest.
$ac_objext \
10952 conftest
$ac_exeext conftest.
$ac_ext
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957 cat >>confdefs.h
<<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 if test "x$ac_cv_func_fork" = xyes
; then
10965 echo "$as_me:$LINENO: checking for working fork" >&5
10966 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10967 if test "${ac_cv_func_fork_works+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 if test "$cross_compiling" = yes; then
10971 ac_cv_func_fork_works
=cross
10973 cat >conftest.
$ac_ext <<_ACEOF
10974 /* By Ruediger Kuhlmann. */
10975 #include <sys/types.h>
10977 # include <unistd.h>
10979 /* Some systems only have a dummy stub for fork() */
10987 rm -f conftest
$ac_exeext
10988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989 (eval $ac_link) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_func_fork_works
=yes
11000 echo "$as_me: program exited with status $ac_status" >&5
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.
$ac_ext >&5
11004 ( exit $ac_status )
11005 ac_cv_func_fork_works
=no
11007 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11010 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11011 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11014 ac_cv_func_fork_works
=$ac_cv_func_fork
11016 if test "x$ac_cv_func_fork_works" = xcross
; then
11018 *-*-amigaos* |
*-*-msdosdjgpp*)
11019 # Override, as these systems have only a dummy fork() stub
11020 ac_cv_func_fork_works
=no
11023 ac_cv_func_fork_works
=yes
11026 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11027 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11029 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11030 if test "x$ac_cv_func_vfork" = xyes
; then
11031 echo "$as_me:$LINENO: checking for working vfork" >&5
11032 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11033 if test "${ac_cv_func_vfork_works+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 if test "$cross_compiling" = yes; then
11037 ac_cv_func_vfork_works
=cross
11039 cat >conftest.
$ac_ext <<_ACEOF
11042 cat confdefs.h
>>conftest.
$ac_ext
11043 cat >>conftest.
$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Thanks to Paul Eggert for this test. */
11047 #include <stdlib.h>
11048 #include <sys/types.h>
11049 #include <sys/stat.h>
11050 #include <sys/wait.h>
11052 # include <unistd.h>
11055 # include <vfork.h>
11057 /* On some sparc systems, changes by the child to local and incoming
11058 argument registers are propagated back to the parent. The compiler
11059 is told about this with #include <vfork.h>, but some compilers
11060 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11061 static variable whose address is put into a register that is
11062 clobbered by the vfork. */
11065 sparc_address_test (int arg)
11067 sparc_address_test (arg) int arg;
11070 static pid_t child;
11088 pid_t parent = getpid ();
11091 sparc_address_test (0);
11096 /* Here is another test for sparc vfork register problems. This
11097 test uses lots of local variables, at least as many local
11098 variables as main has allocated so far including compiler
11099 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11100 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11101 reuse the register of parent for one of the local variables,
11102 since it will think that parent can't possibly be used any more
11103 in this routine. Assigning to the local variable will thus
11104 munge parent in the parent process. */
11106 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11107 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11108 /* Convince the compiler that p..p7 are live; otherwise, it might
11109 use the same hardware register for all 8 local variables. */
11110 if (p != p1 || p != p2 || p != p3 || p != p4
11111 || p != p5 || p != p6 || p != p7)
11114 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11115 from child file descriptors. If the child closes a descriptor
11116 before it execs or exits, this munges the parent's descriptor
11117 as well. Test for this by closing stdout in the child. */
11118 _exit(close(fileno(stdout)) != 0);
11123 while (wait(&status) != child)
11126 /* Was there some problem with vforking? */
11129 /* Did the child fail? (This shouldn't happen.) */
11132 /* Did the vfork/compiler bug occur? */
11133 || parent != getpid()
11135 /* Did the file descriptor bug occur? */
11136 || fstat(fileno(stdout), &st) != 0
11141 rm -f conftest
$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func_vfork_works
=yes
11154 echo "$as_me: program exited with status $ac_status" >&5
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.
$ac_ext >&5
11158 ( exit $ac_status )
11159 ac_cv_func_vfork_works
=no
11161 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11164 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11165 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11168 if test "x$ac_cv_func_fork_works" = xcross
; then
11169 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11170 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11171 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11174 if test "x$ac_cv_func_vfork_works" = xyes
; then
11176 cat >>confdefs.h
<<\_ACEOF
11177 #define HAVE_WORKING_VFORK 1
11182 cat >>confdefs.h
<<\_ACEOF
11187 if test "x$ac_cv_func_fork_works" = xyes
; then
11189 cat >>confdefs.h
<<\_ACEOF
11190 #define HAVE_WORKING_FORK 1
11197 if test "X$prefix" = "XNONE"; then
11198 acl_final_prefix
="$ac_default_prefix"
11200 acl_final_prefix
="$prefix"
11202 if test "X$exec_prefix" = "XNONE"; then
11203 acl_final_exec_prefix
='${prefix}'
11205 acl_final_exec_prefix
="$exec_prefix"
11207 acl_save_prefix
="$prefix"
11208 prefix
="$acl_final_prefix"
11209 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11210 prefix
="$acl_save_prefix"
11213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11214 if test "${with_gnu_ld+set}" = set; then
11215 withval
="$with_gnu_ld"
11216 test "$withval" = no || with_gnu_ld
=yes
11220 # Prepare PATH_SEPARATOR.
11221 # The user is always right.
11222 if test "${PATH_SEPARATOR+set}" != set; then
11223 echo "#! /bin/sh" >conf$$.sh
11224 echo "exit 0" >>conf$$.sh
11226 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11234 if test "$GCC" = yes; then
11235 # Check if gcc -print-prog-name=ld gives a path.
11236 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11237 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11240 # gcc leaves a trailing carriage return which upsets mingw
11241 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11243 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11246 # Accept absolute paths.
11247 [\\/]* |
[A-Za-z
]:[\\/]*)
11248 re_direlt
='/[^/][^/]*/\.\./'
11249 # Canonicalize the path of ld
11250 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11251 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11252 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11254 test -z "$LD" && LD
="$ac_prog"
11257 # If it fails, then pretend we aren't using GCC.
11261 # If it is relative, then search for the first ld in PATH.
11262 with_gnu_ld
=unknown
11265 elif test "$with_gnu_ld" = yes; then
11266 echo "$as_me:$LINENO: checking for GNU ld" >&5
11267 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11269 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11270 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11272 if test "${acl_cv_path_LD+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 if test -z "$LD"; then
11276 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11277 for ac_dir
in $PATH; do
11278 test -z "$ac_dir" && ac_dir
=.
11279 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11280 acl_cv_path_LD
="$ac_dir/$ac_prog"
11281 # Check to see if the program is GNU ld. I'd rather use --version,
11282 # but apparently some GNU ld's only accept -v.
11283 # Break only if it was the GNU/non-GNU ld that we prefer.
11284 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11285 test "$with_gnu_ld" != no
&& break
11287 test "$with_gnu_ld" != yes && break
11293 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11297 LD
="$acl_cv_path_LD"
11298 if test -n "$LD"; then
11299 echo "$as_me:$LINENO: result: $LD" >&5
11300 echo "${ECHO_T}$LD" >&6
11302 echo "$as_me:$LINENO: result: no" >&5
11303 echo "${ECHO_T}no" >&6
11305 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11306 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11307 { (exit 1); exit 1; }; }
11308 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11309 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11310 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11314 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11315 acl_cv_prog_gnu_ld
=yes
11317 acl_cv_prog_gnu_ld
=no
11320 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11321 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11322 with_gnu_ld
=$acl_cv_prog_gnu_ld
11326 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11327 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11328 if test "${acl_cv_rpath+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11333 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11335 rm -f .
/conftest.sh
11339 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11340 echo "${ECHO_T}$acl_cv_rpath" >&6
11342 libext
="$acl_cv_libext"
11343 shlibext
="$acl_cv_shlibext"
11344 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11345 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11346 hardcode_direct
="$acl_cv_hardcode_direct"
11347 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11348 # Check whether --enable-rpath or --disable-rpath was given.
11349 if test "${enable_rpath+set}" = set; then
11350 enableval
="$enable_rpath"
11364 acl_save_prefix
="$prefix"
11365 prefix
="$acl_final_prefix"
11366 acl_save_exec_prefix
="$exec_prefix"
11367 exec_prefix
="$acl_final_exec_prefix"
11369 eval additional_includedir
=\"$includedir\"
11370 eval additional_libdir
=\"$libdir\"
11372 exec_prefix
="$acl_save_exec_prefix"
11373 prefix
="$acl_save_prefix"
11376 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11377 if test "${with_libiconv_prefix+set}" = set; then
11378 withval
="$with_libiconv_prefix"
11380 if test "X$withval" = "Xno"; then
11383 if test "X$withval" = "X"; then
11385 acl_save_prefix
="$prefix"
11386 prefix
="$acl_final_prefix"
11387 acl_save_exec_prefix
="$exec_prefix"
11388 exec_prefix
="$acl_final_exec_prefix"
11390 eval additional_includedir
=\"$includedir\"
11391 eval additional_libdir
=\"$libdir\"
11393 exec_prefix
="$acl_save_exec_prefix"
11394 prefix
="$acl_save_prefix"
11397 additional_includedir
="$withval/include"
11398 additional_libdir
="$withval/lib"
11408 names_already_handled
=
11409 names_next_round
='iconv '
11410 while test -n "$names_next_round"; do
11411 names_this_round
="$names_next_round"
11413 for name
in $names_this_round; do
11415 for n
in $names_already_handled; do
11416 if test "$n" = "$name"; then
11417 already_handled
=yes
11421 if test -z "$already_handled"; then
11422 names_already_handled
="$names_already_handled $name"
11423 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11424 eval value
=\"\
$HAVE_LIB$uppername\"
11425 if test -n "$value"; then
11426 if test "$value" = yes; then
11427 eval value
=\"\
$LIB$uppername\"
11428 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11429 eval value
=\"\
$LTLIB$uppername\"
11430 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11439 if test $use_additional = yes; then
11440 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11441 found_dir
="$additional_libdir"
11442 found_so
="$additional_libdir/lib$name.$shlibext"
11443 if test -f "$additional_libdir/lib$name.la"; then
11444 found_la
="$additional_libdir/lib$name.la"
11447 if test -f "$additional_libdir/lib$name.$libext"; then
11448 found_dir
="$additional_libdir"
11449 found_a
="$additional_libdir/lib$name.$libext"
11450 if test -f "$additional_libdir/lib$name.la"; then
11451 found_la
="$additional_libdir/lib$name.la"
11456 if test "X$found_dir" = "X"; then
11457 for x
in $LDFLAGS $LTLIBICONV; do
11459 acl_save_prefix
="$prefix"
11460 prefix
="$acl_final_prefix"
11461 acl_save_exec_prefix
="$exec_prefix"
11462 exec_prefix
="$acl_final_exec_prefix"
11464 exec_prefix
="$acl_save_exec_prefix"
11465 prefix
="$acl_save_prefix"
11469 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11470 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11472 found_so
="$dir/lib$name.$shlibext"
11473 if test -f "$dir/lib$name.la"; then
11474 found_la
="$dir/lib$name.la"
11477 if test -f "$dir/lib$name.$libext"; then
11479 found_a
="$dir/lib$name.$libext"
11480 if test -f "$dir/lib$name.la"; then
11481 found_la
="$dir/lib$name.la"
11487 if test "X$found_dir" != "X"; then
11492 if test "X$found_dir" != "X"; then
11493 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11494 if test "X$found_so" != "X"; then
11495 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11496 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11499 for x
in $ltrpathdirs; do
11500 if test "X$x" = "X$found_dir"; then
11505 if test -z "$haveit"; then
11506 ltrpathdirs
="$ltrpathdirs $found_dir"
11508 if test "$hardcode_direct" = yes; then
11509 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11511 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11512 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11514 for x
in $rpathdirs; do
11515 if test "X$x" = "X$found_dir"; then
11520 if test -z "$haveit"; then
11521 rpathdirs
="$rpathdirs $found_dir"
11525 for x
in $LDFLAGS $LIBICONV; do
11527 acl_save_prefix
="$prefix"
11528 prefix
="$acl_final_prefix"
11529 acl_save_exec_prefix
="$exec_prefix"
11530 exec_prefix
="$acl_final_exec_prefix"
11532 exec_prefix
="$acl_save_exec_prefix"
11533 prefix
="$acl_save_prefix"
11535 if test "X$x" = "X-L$found_dir"; then
11540 if test -z "$haveit"; then
11541 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11543 if test "$hardcode_minus_L" != no
; then
11544 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11546 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11552 if test "X$found_a" != "X"; then
11553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11555 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11558 additional_includedir
=
11559 case "$found_dir" in
11561 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11562 additional_includedir
="$basedir/include"
11565 if test "X$additional_includedir" != "X"; then
11566 if test "X$additional_includedir" != "X/usr/include"; then
11568 if test "X$additional_includedir" = "X/usr/local/include"; then
11569 if test -n "$GCC"; then
11571 linux
*) haveit
=yes;;
11575 if test -z "$haveit"; then
11576 for x
in $CPPFLAGS $INCICONV; do
11578 acl_save_prefix
="$prefix"
11579 prefix
="$acl_final_prefix"
11580 acl_save_exec_prefix
="$exec_prefix"
11581 exec_prefix
="$acl_final_exec_prefix"
11583 exec_prefix
="$acl_save_exec_prefix"
11584 prefix
="$acl_save_prefix"
11586 if test "X$x" = "X-I$additional_includedir"; then
11591 if test -z "$haveit"; then
11592 if test -d "$additional_includedir"; then
11593 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11599 if test -n "$found_la"; then
11600 save_libdir
="$libdir"
11601 case "$found_la" in
11602 */* |
*\\*) .
"$found_la" ;;
11603 *) .
"./$found_la" ;;
11605 libdir
="$save_libdir"
11606 for dep
in $dependency_libs; do
11609 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11610 if test "X$additional_libdir" != "X/usr/lib"; then
11612 if test "X$additional_libdir" = "X/usr/local/lib"; then
11613 if test -n "$GCC"; then
11615 linux
*) haveit
=yes;;
11619 if test -z "$haveit"; then
11621 for x
in $LDFLAGS $LIBICONV; do
11623 acl_save_prefix
="$prefix"
11624 prefix
="$acl_final_prefix"
11625 acl_save_exec_prefix
="$exec_prefix"
11626 exec_prefix
="$acl_final_exec_prefix"
11628 exec_prefix
="$acl_save_exec_prefix"
11629 prefix
="$acl_save_prefix"
11631 if test "X$x" = "X-L$additional_libdir"; then
11636 if test -z "$haveit"; then
11637 if test -d "$additional_libdir"; then
11638 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11642 for x
in $LDFLAGS $LTLIBICONV; do
11644 acl_save_prefix
="$prefix"
11645 prefix
="$acl_final_prefix"
11646 acl_save_exec_prefix
="$exec_prefix"
11647 exec_prefix
="$acl_final_exec_prefix"
11649 exec_prefix
="$acl_save_exec_prefix"
11650 prefix
="$acl_save_prefix"
11652 if test "X$x" = "X-L$additional_libdir"; then
11657 if test -z "$haveit"; then
11658 if test -d "$additional_libdir"; then
11659 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11666 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11667 if test "$enable_rpath" != no
; then
11669 for x
in $rpathdirs; do
11670 if test "X$x" = "X$dir"; then
11675 if test -z "$haveit"; then
11676 rpathdirs
="$rpathdirs $dir"
11679 for x
in $ltrpathdirs; do
11680 if test "X$x" = "X$dir"; then
11685 if test -z "$haveit"; then
11686 ltrpathdirs
="$ltrpathdirs $dir"
11691 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11694 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11697 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11698 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11704 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11705 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11711 if test "X$rpathdirs" != "X"; then
11712 if test -n "$hardcode_libdir_separator"; then
11714 for found_dir
in $rpathdirs; do
11715 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11717 acl_save_libdir
="$libdir"
11719 eval flag
=\"$hardcode_libdir_flag_spec\"
11720 libdir
="$acl_save_libdir"
11721 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11723 for found_dir
in $rpathdirs; do
11724 acl_save_libdir
="$libdir"
11725 libdir
="$found_dir"
11726 eval flag
=\"$hardcode_libdir_flag_spec\"
11727 libdir
="$acl_save_libdir"
11728 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11732 if test "X$ltrpathdirs" != "X"; then
11733 for found_dir
in $ltrpathdirs; do
11734 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11744 am_save_CPPFLAGS
="$CPPFLAGS"
11746 for element
in $INCICONV; do
11748 for x
in $CPPFLAGS; do
11750 acl_save_prefix
="$prefix"
11751 prefix
="$acl_final_prefix"
11752 acl_save_exec_prefix
="$exec_prefix"
11753 exec_prefix
="$acl_final_exec_prefix"
11755 exec_prefix
="$acl_save_exec_prefix"
11756 prefix
="$acl_save_prefix"
11758 if test "X$x" = "X$element"; then
11763 if test -z "$haveit"; then
11764 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11769 echo "$as_me:$LINENO: checking for iconv" >&5
11770 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11771 if test "${am_cv_func_iconv+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 am_cv_func_iconv
="no, consider installing GNU libiconv"
11777 cat >conftest.
$ac_ext <<_ACEOF
11780 cat confdefs.h
>>conftest.
$ac_ext
11781 cat >>conftest.
$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <stdlib.h>
11788 iconv_t cd = iconv_open("","");
11789 iconv(cd,NULL,NULL,NULL,NULL);
11795 rm -f conftest.
$ac_objext conftest
$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1
>conftest.err
11801 cat conftest.err
>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try
='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try
='test -s conftest$ac_exeext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 am_cv_func_iconv
=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.
$ac_ext >&5
11823 rm -f conftest.err conftest.
$ac_objext \
11824 conftest
$ac_exeext conftest.
$ac_ext
11825 if test "$am_cv_func_iconv" != yes; then
11826 am_save_LIBS
="$LIBS"
11827 LIBS
="$LIBS $LIBICONV"
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 #include <stdlib.h>
11839 iconv_t cd = iconv_open("","");
11840 iconv(cd,NULL,NULL,NULL,NULL);
11846 rm -f conftest.
$ac_objext conftest
$ac_exeext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11848 (eval $ac_link) 2>conftest.er1
11850 grep -v '^ *+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try
='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try
='test -s conftest$ac_exeext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 am_cv_lib_iconv
=yes
11869 am_cv_func_iconv
=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.
$ac_ext >&5
11875 rm -f conftest.err conftest.
$ac_objext \
11876 conftest
$ac_exeext conftest.
$ac_ext
11877 LIBS
="$am_save_LIBS"
11881 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11882 echo "${ECHO_T}$am_cv_func_iconv" >&6
11883 if test "$am_cv_func_iconv" = yes; then
11885 cat >>confdefs.h
<<\_ACEOF
11886 #define HAVE_ICONV 1
11890 if test "$am_cv_lib_iconv" = yes; then
11891 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11892 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11893 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11894 echo "${ECHO_T}$LIBICONV" >&6
11896 CPPFLAGS
="$am_save_CPPFLAGS"
11903 if test "$am_cv_func_iconv" = yes; then
11904 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11905 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11906 if test "${am_cv_proto_iconv+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.
$ac_ext <<_ACEOF
11913 cat confdefs.h
>>conftest.
$ac_ext
11914 cat >>conftest.
$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11917 #include <stdlib.h>
11923 #if defined(__STDC__) || defined(__cplusplus)
11924 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11937 rm -f conftest.
$ac_objext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11939 (eval $ac_compile) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1
>conftest.err
11943 cat conftest.err
>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try
='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try
='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 am_cv_proto_iconv_arg1
=""
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.
$ac_ext >&5
11964 am_cv_proto_iconv_arg1
="const"
11966 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11967 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);"
11970 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11971 echo "$as_me:$LINENO: result: ${ac_t:-
11972 }$am_cv_proto_iconv" >&5
11973 echo "${ECHO_T}${ac_t:-
11974 }$am_cv_proto_iconv" >&6
11976 cat >>confdefs.h
<<_ACEOF
11977 #define ICONV_CONST $am_cv_proto_iconv_arg1
11982 # Until we have in-tree GNU iconv:
11987 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11988 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11989 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.
$ac_ext <<_ACEOF
11995 cat confdefs.h
>>conftest.
$ac_ext
11996 cat >>conftest.
$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 #include <locale.h>
12007 rm -f conftest.
$ac_objext conftest
$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>conftest.er1
12011 grep -v '^ *+' conftest.er1
>conftest.err
12013 cat conftest.err
>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try
='test -z "$ac_c_werror_flag"
12017 || test ! -s conftest.err'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try
='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 am_cv_val_LC_MESSAGES
=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.
$ac_ext >&5
12034 am_cv_val_LC_MESSAGES
=no
12036 rm -f conftest.err conftest.
$ac_objext \
12037 conftest
$ac_exeext conftest.
$ac_ext
12039 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12040 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12041 if test $am_cv_val_LC_MESSAGES = yes; then
12043 cat >>confdefs.h
<<\_ACEOF
12044 #define HAVE_LC_MESSAGES 1
12051 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12052 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12053 if test "${am_cv_langinfo_codeset+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 cat >conftest.
$ac_ext <<_ACEOF
12059 cat confdefs.h
>>conftest.
$ac_ext
12060 cat >>conftest.
$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 #include <langinfo.h>
12066 char* cs = nl_langinfo(CODESET);
12071 rm -f conftest.
$ac_objext conftest
$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12075 grep -v '^ *+' conftest.er1
>conftest.err
12077 cat conftest.err
>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try
='test -z "$ac_c_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try
='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 am_cv_langinfo_codeset
=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 am_cv_langinfo_codeset
=no
12100 rm -f conftest.err conftest.
$ac_objext \
12101 conftest
$ac_exeext conftest.
$ac_ext
12104 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12105 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12106 if test $am_cv_langinfo_codeset = yes; then
12108 cat >>confdefs.h
<<\_ACEOF
12109 #define HAVE_LANGINFO_CODESET 1
12115 # We will need to find libiberty.h and ansidecl.h
12116 saved_CFLAGS
="$CFLAGS"
12117 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12157 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
12158 strsignal strstr strverscmp \
12159 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12160 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
12162 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12163 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12164 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12165 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.
$ac_ext <<_ACEOF
12171 cat confdefs.h
>>conftest.
$ac_ext
12172 cat >>conftest.
$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12175 #define $ac_tr_decl 1
12177 #include "ansidecl.h"
12178 #include "system.h"
12184 char *(*pfn) = (char *(*)) $ac_func ;
12190 rm -f conftest.
$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1
>conftest.err
12196 cat conftest.err
>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try
='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try
='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 eval "gcc_cv_have_decl_$ac_func=yes"
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.
$ac_ext >&5
12217 eval "gcc_cv_have_decl_$ac_func=no"
12219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12222 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12223 echo "$as_me:$LINENO: result: yes" >&5
12224 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12225 #define $ac_tr_decl 1
12229 echo "$as_me:$LINENO: result: no" >&5
12230 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12231 #define $ac_tr_decl 0
12242 for ac_func
in getrlimit setrlimit getrusage
12244 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12245 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12246 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12247 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 cat >conftest.
$ac_ext <<_ACEOF
12253 cat confdefs.h
>>conftest.
$ac_ext
12254 cat >>conftest.
$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 #define $ac_tr_decl 1
12259 #include "ansidecl.h"
12260 #include "system.h"
12261 #ifdef HAVE_SYS_RESOURCE_H
12262 #include <sys/resource.h>
12270 char *(*pfn) = (char *(*)) $ac_func ;
12276 rm -f conftest.
$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>conftest.er1
12280 grep -v '^ *+' conftest.er1
>conftest.err
12282 cat conftest.err
>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try
='test -z "$ac_c_werror_flag"
12286 || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try
='test -s conftest.$ac_objext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 eval "gcc_cv_have_decl_$ac_func=yes"
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.
$ac_ext >&5
12303 eval "gcc_cv_have_decl_$ac_func=no"
12305 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12308 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12309 echo "$as_me:$LINENO: result: yes" >&5
12310 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12311 #define $ac_tr_decl 1
12315 echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12317 #define $ac_tr_decl 0
12325 cat >conftest.
$ac_ext <<_ACEOF
12328 cat confdefs.h
>>conftest.
$ac_ext
12329 cat >>conftest.
$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 #include "ansidecl.h"
12333 #include "system.h"
12334 #ifdef HAVE_SYS_RESOURCE_H
12335 #include <sys/resource.h>
12346 rm -f conftest.
$ac_objext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1
>conftest.err
12352 cat conftest.err
>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try
='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try
='test -s conftest.$ac_objext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.
$ac_ext >&5
12374 cat >>confdefs.h
<<\_ACEOF
12375 #define rlim_t long
12379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12381 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12382 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12383 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12384 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12386 for ac_func
in ldgetname
12388 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12389 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12390 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12391 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 cat >conftest.
$ac_ext <<_ACEOF
12397 cat confdefs.h
>>conftest.
$ac_ext
12398 cat >>conftest.
$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 #define $ac_tr_decl 1
12403 #include "ansidecl.h"
12404 #include "system.h"
12405 #ifdef HAVE_LDFCN_H
12416 char *(*pfn) = (char *(*)) $ac_func ;
12422 rm -f conftest.
$ac_objext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>conftest.er1
12426 grep -v '^ *+' conftest.er1
>conftest.err
12428 cat conftest.err
>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try
='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try
='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 eval "gcc_cv_have_decl_$ac_func=yes"
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.
$ac_ext >&5
12449 eval "gcc_cv_have_decl_$ac_func=no"
12451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12454 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12455 echo "$as_me:$LINENO: result: yes" >&5
12456 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12457 #define $ac_tr_decl 1
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12463 #define $ac_tr_decl 0
12472 for ac_func
in times
12474 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12475 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12476 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12477 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 cat >conftest.
$ac_ext <<_ACEOF
12483 cat confdefs.h
>>conftest.
$ac_ext
12484 cat >>conftest.
$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 #define $ac_tr_decl 1
12489 #include "ansidecl.h"
12490 #include "system.h"
12491 #ifdef HAVE_SYS_TIMES_H
12492 #include <sys/times.h>
12500 char *(*pfn) = (char *(*)) $ac_func ;
12506 rm -f conftest.
$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1
>conftest.err
12512 cat conftest.err
>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try
='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try
='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 eval "gcc_cv_have_decl_$ac_func=yes"
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.
$ac_ext >&5
12533 eval "gcc_cv_have_decl_$ac_func=no"
12535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12539 echo "$as_me:$LINENO: result: yes" >&5
12540 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12541 #define $ac_tr_decl 1
12545 echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12547 #define $ac_tr_decl 0
12556 for ac_func
in sigaltstack
12558 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12559 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12560 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12561 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 cat >conftest.
$ac_ext <<_ACEOF
12567 cat confdefs.h
>>conftest.
$ac_ext
12568 cat >>conftest.
$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #define $ac_tr_decl 1
12573 #include "ansidecl.h"
12574 #include "system.h"
12575 #include <signal.h>
12582 char *(*pfn) = (char *(*)) $ac_func ;
12588 rm -f conftest.
$ac_objext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>conftest.er1
12592 grep -v '^ *+' conftest.er1
>conftest.err
12594 cat conftest.err
>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try
='test -z "$ac_c_werror_flag"
12598 || test ! -s conftest.err'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try
='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 eval "gcc_cv_have_decl_$ac_func=yes"
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.
$ac_ext >&5
12615 eval "gcc_cv_have_decl_$ac_func=no"
12617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12620 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12621 echo "$as_me:$LINENO: result: yes" >&5
12622 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
12623 #define $ac_tr_decl 1
12627 echo "$as_me:$LINENO: result: no" >&5
12628 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
12629 #define $ac_tr_decl 0
12637 # More time-related stuff.
12638 echo "$as_me:$LINENO: checking for struct tms" >&5
12639 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12640 if test "${ac_cv_struct_tms+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.
$ac_ext <<_ACEOF
12647 cat confdefs.h
>>conftest.
$ac_ext
12648 cat >>conftest.
$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12651 #include "ansidecl.h"
12652 #include "system.h"
12653 #ifdef HAVE_SYS_TIMES_H
12654 #include <sys/times.h>
12665 rm -f conftest.
$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1
>conftest.err
12671 cat conftest.err
>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try
='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try
='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_struct_tms
=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.
$ac_ext >&5
12692 ac_cv_struct_tms
=no
12694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12697 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12698 if test $ac_cv_struct_tms = yes; then
12700 cat >>confdefs.h
<<\_ACEOF
12701 #define HAVE_STRUCT_TMS 1
12706 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12707 # revisit after autoconf 2.50.
12708 echo "$as_me:$LINENO: checking for clock_t" >&5
12709 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12710 if test "${gcc_cv_type_clock_t+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.
$ac_ext <<_ACEOF
12717 cat confdefs.h
>>conftest.
$ac_ext
12718 cat >>conftest.
$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12721 #include "ansidecl.h"
12722 #include "system.h"
12732 rm -f conftest.
$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>conftest.er1
12736 grep -v '^ *+' conftest.er1
>conftest.err
12738 cat conftest.err
>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try
='test -z "$ac_c_werror_flag"
12742 || test ! -s conftest.err'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; } &&
12748 { ac_try
='test -s conftest.$ac_objext'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 gcc_cv_type_clock_t
=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 gcc_cv_type_clock_t
=no
12761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12763 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12764 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12765 if test $gcc_cv_type_clock_t = yes; then
12767 cat >>confdefs.h
<<\_ACEOF
12768 #define HAVE_CLOCK_T 1
12773 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12774 CFLAGS
="$saved_CFLAGS"
12776 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12777 if test "${enable_initfini_array+set}" = set; then
12778 enableval
="$enable_initfini_array"
12782 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12783 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12784 if test "${gcc_cv_initfini_array+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 if test "$cross_compiling" = yes; then
12788 gcc_cv_initfini_array
=no
12790 cat >conftest.
$ac_ext <<_ACEOF
12793 cat confdefs.h
>>conftest.
$ac_ext
12794 cat >>conftest.
$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12798 int main (void) { return x; }
12799 int foo (void) { x = 0; }
12800 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12802 rm -f conftest
$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 gcc_cv_initfini_array
=yes
12815 echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.
$ac_ext >&5
12819 ( exit $ac_status )
12820 gcc_cv_initfini_array
=no
12822 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12825 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12826 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12827 enable_initfini_array
=$gcc_cv_initfini_array
12830 if test $enable_initfini_array = yes; then
12832 cat >>confdefs.h
<<\_ACEOF
12833 #define HAVE_INITFINI_ARRAY 1
12838 # mkdir takes a single argument on some systems.
12839 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12840 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12841 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cat >conftest.
$ac_ext <<_ACEOF
12847 cat confdefs.h
>>conftest.
$ac_ext
12848 cat >>conftest.
$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12851 #include <sys/types.h>
12852 #ifdef HAVE_SYS_STAT_H
12853 # include <sys/stat.h>
12855 #ifdef HAVE_UNISTD_H
12856 # include <unistd.h>
12858 #ifdef HAVE_DIRECT_H
12859 # include <direct.h>
12869 rm -f conftest.
$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1
>conftest.err
12875 cat conftest.err
>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try
='test -z "$ac_c_werror_flag"
12879 || test ! -s conftest.err'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try
='test -s conftest.$ac_objext'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891 gcc_cv_mkdir_takes_one_arg
=no
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.
$ac_ext >&5
12896 gcc_cv_mkdir_takes_one_arg
=yes
12898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12900 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12901 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12904 cat >>confdefs.h
<<\_ACEOF
12905 #define MKDIR_TAKES_ONE_ARG 1
12917 # With Setjmp/Longjmp based exception handling.
12918 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12919 if test "${enable_sjlj_exceptions+set}" = set; then
12920 enableval
="$enable_sjlj_exceptions"
12923 if test $enableval != yes; then
12924 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12925 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12930 force_sjlj_exceptions
=yes
12934 force_sjlj_exceptions
=yes
12938 force_sjlj_exceptions
=no
12942 if test $force_sjlj_exceptions = yes; then
12943 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12945 cat >>confdefs.h
<<_ACEOF
12946 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12951 # For platforms with the unwind ABI which includes an unwind library,
12952 # libunwind, we can choose to use the system libunwind.
12953 # config.gcc also contains tests of with_system_libunwind.
12956 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12957 if test "${with_system_libunwind+set}" = set; then
12958 withval
="$with_system_libunwind"
12961 # If system-libunwind was not specifically set, pick a default setting.
12962 if test x
$with_system_libunwind = x
; then
12964 ia64-
*-hpux*) with_system_libunwind
=yes ;;
12965 *) with_system_libunwind
=no
;;
12968 # Based on system-libunwind and target, do we have ipinfo?
12969 if test x
$with_system_libunwind = xyes
; then
12971 ia64-
*-*) have_unwind_getipinfo
=no
;;
12972 *) have_unwind_getipinfo
=yes ;;
12975 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12978 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
12979 *) have_unwind_getipinfo
=yes ;;
12984 if test x
$have_unwind_getipinfo = xyes
; then
12986 cat >>confdefs.h
<<\_ACEOF
12987 #define HAVE_GETIPINFO 1
12993 # --------------------------------------------------------
12994 # Build, host, and target specific configuration fragments
12995 # --------------------------------------------------------
12997 # Collect build-machine-specific information.
12998 .
${srcdir}/config.build
13000 # Collect host-machine-specific information.
13001 .
${srcdir}/config.
host
13005 # Collect target-machine-specific information.
13006 .
${srcdir}/config.gcc
13008 extra_objs
="${host_extra_objs} ${extra_objs}"
13009 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
13011 # Default the target-machine variables that were not explicitly set.
13012 if test x
"$tm_file" = x
13013 then tm_file
=$cpu_type/$cpu_type.h
; fi
13015 if test x
"$extra_headers" = x
13016 then extra_headers
=; fi
13018 if test x
$md_file = x
13019 then md_file
=$cpu_type/$cpu_type.md
; fi
13021 if test x
$out_file = x
13022 then out_file
=$cpu_type/$cpu_type.c
; fi
13024 if test x
"$tmake_file" = x
13025 then tmake_file
=$cpu_type/t-
$cpu_type
13028 if test x
"$dwarf2" = xyes
13029 then tm_file
="$tm_file tm-dwarf2.h"
13032 # Say what files are being used for the output code and MD file.
13033 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13034 echo "Using \`$srcdir/config/$md_file' as machine description file."
13036 # If any of the xm_file variables contain nonexistent files, warn
13037 # about them and drop them.
13040 for x
in $build_xm_file; do
13041 if test -f $srcdir/config
/$x
13043 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13044 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13047 build_xm_file
="$bx"
13050 for x
in $host_xm_file; do
13051 if test -f $srcdir/config
/$x
13053 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13054 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13060 for x
in $xm_file; do
13061 if test -f $srcdir/config
/$x
13063 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13064 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13070 for f
in $tm_file; do
13073 if test $count = ax
; then
13074 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13076 echo "Using the following target machine macro files:"
13077 for f
in $tm_file; do
13078 echo " $srcdir/config/$f"
13082 if test x
$need_64bit_hwint = xyes
; then
13084 cat >>confdefs.h
<<\_ACEOF
13085 #define NEED_64BIT_HOST_WIDE_INT 1
13090 if test x
$use_long_long_for_widest_fast_int = xyes
; then
13092 cat >>confdefs.h
<<\_ACEOF
13093 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13099 for f
in $host_xm_file; do
13102 if test $count = a
; then
13104 elif test $count = ax
; then
13105 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13107 echo "Using the following host machine macro files:"
13108 for f
in $host_xm_file; do
13109 echo " $srcdir/config/$f"
13112 echo "Using ${out_host_hook_obj} for host machine hooks."
13114 if test "$host_xm_file" != "$build_xm_file"; then
13116 for f
in $build_xm_file; do
13119 if test $count = a
; then
13121 elif test $count = ax
; then
13122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13124 echo "Using the following build machine macro files:"
13125 for f
in $build_xm_file; do
13126 echo " $srcdir/config/$f"
13132 powerpc
*-*-darwin*)
13133 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13134 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13135 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 cat >conftest.
$ac_ext <<_ACEOF
13140 #include <sys/cdefs.h>
13141 #include <sys/signal.h>
13142 #include <ucontext.h>
13143 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13146 rm -f conftest.
$ac_objext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1
>conftest.err
13152 cat conftest.err
>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try
='test -z "$ac_c_werror_flag"
13156 || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try
='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 gcc_cv_mcontext_underscores
=no
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.
$ac_ext >&5
13173 gcc_cv_mcontext_underscores
=yes
13175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13177 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13178 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13179 if test $gcc_cv_mcontext_underscores = yes; then
13181 cat >>confdefs.h
<<\_ACEOF
13182 #define HAS_MCONTEXT_T_UNDERSCORES
13193 # Check if a valid thread package
13194 case ${enable_threads} in
13197 target_thread_file
='single'
13201 target_thread_file
='single'
13203 aix | dce | gnat | irix | posix | posix95 | rtems | \
13204 single | solaris | vxworks | win32 | mipssde
)
13205 target_thread_file
=${enable_threads}
13208 echo "${enable_threads} is an unknown thread package" 1>&2
13213 if test x
${thread_file} = x
; then
13214 # No thread file set by target-specific clauses in config.gcc,
13215 # so use file chosen by default logic above
13216 thread_file
=${target_thread_file}
13219 # Make gthr-default.h if we have a thread file.
13221 if test $thread_file != single
; then
13222 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13223 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
13224 rm -f gthr-default.h-t
13226 mv -f gthr-default.h-t gthr-default.h
13228 gthread_flags
=-DHAVE_GTHR_DEFAULT
13237 if test x
$enable___cxa_atexit = xyes || \
13238 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13239 if test x
$host = x
$target; then
13241 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13242 # keyed to flag_use_cxa_atexit
13247 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13248 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13249 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 cat >conftest.
$ac_ext <<_ACEOF
13255 cat confdefs.h
>>conftest.
$ac_ext
13256 cat >>conftest.
$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13260 #define __cxa_atexit innocuous___cxa_atexit
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char __cxa_atexit (); below.
13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265 <limits.h> exists even on freestanding compilers. */
13268 # include <limits.h>
13270 # include <assert.h>
13273 #undef __cxa_atexit
13275 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282 char __cxa_atexit ();
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13289 char (*f) () = __cxa_atexit;
13298 return f != __cxa_atexit;
13303 rm -f conftest.
$ac_objext conftest
$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try
='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try
='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_cv_func___cxa_atexit
=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.
$ac_ext >&5
13330 ac_cv_func___cxa_atexit
=no
13332 rm -f conftest.err conftest.
$ac_objext \
13333 conftest
$ac_exeext conftest.
$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13336 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13337 if test $ac_cv_func___cxa_atexit = yes; then
13340 echo "__cxa_atexit can't be enabled on this target"
13346 # We can't check for __cxa_atexit when building a cross, so assume
13350 if test x
$use_cxa_atexit = xyes
; then
13352 cat >>confdefs.h
<<\_ACEOF
13353 #define DEFAULT_USE_CXA_ATEXIT 2
13359 # Look for a file containing extra machine modes.
13360 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13361 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13364 cat >>confdefs.h
<<_ACEOF
13365 #define EXTRA_MODES_FILE "config/$extra_modes"
13370 # Convert extra_options into a form suitable for Makefile use.
13372 for f
in $extra_options; do
13373 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13377 # auto-host.h is the file containing items generated by autoconf and is
13378 # the first file included by config.h.
13379 # If host=build, it is correct to have bconfig include auto-host.h
13380 # as well. If host!=build, we are in error and need to do more
13381 # work to find out the build config parameters.
13382 if test x
$host = x
$build
13384 build_auto
=auto-host.h
13386 # We create a subdir, then run autoconf in the subdir.
13387 # To prevent recursion we set host and build for the new
13388 # invocation of configure to the build for this invocation
13395 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13396 *) realsrcdir
=..
/${srcdir};;
13398 saved_CFLAGS
="${CFLAGS}"
13399 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13400 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13401 ${realsrcdir}/configure \
13402 --enable-languages=${enable_languages-all} \
13403 --target=$target_alias --host=$build_alias --build=$build_alias
13404 CFLAGS
="${saved_CFLAGS}"
13406 # We just finished tests for the build machine, so rename
13407 # the file auto-build.h in the gcc directory.
13408 mv auto-host.h ..
/auto-build.h
13411 build_auto
=auto-build.h
13415 tm_file
="${tm_file} defaults.h"
13416 tm_p_file
="${tm_p_file} tm-preds.h"
13417 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13418 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13419 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13420 # put this back in temporarily.
13421 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13427 # Compile in configure arguments.
13428 if test -f configargs.h
; then
13429 # Being re-configured.
13430 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13431 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13433 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13436 # Double all backslashes and backslash all quotes to turn
13437 # gcc_config_arguments into a C string.
13438 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13439 $gcc_config_arguments
13441 gcc_config_arguments_str
=`cat conftest.out`
13444 cat > configargs.h
<<EOF
13445 /* Generated automatically. */
13446 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13447 static const char thread_model[] = "$thread_file";
13449 static const struct {
13450 const char *name, *value;
13451 } configure_default_options[] = $configure_default_options;
13454 # Internationalization
13455 # If we haven't got the data from the intl directory,
13456 # assume NLS is disabled.
13465 if test -f ..
/intl
/config.intl
; then
13466 . ..
/intl
/config.intl
13468 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13469 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13470 if test x
"$USE_NLS" != xyes
; then
13471 echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13474 echo "$as_me:$LINENO: result: yes" >&5
13475 echo "${ECHO_T}yes" >&6
13477 cat >>confdefs.h
<<\_ACEOF
13478 #define ENABLE_NLS 1
13482 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13483 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13484 # Look for .po and .gmo files in the source directory.
13487 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13488 # If there aren't any .gmo files the shell will give us the
13489 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13491 case "$cat" in *\
**)
13494 # The quadruple backslash is collapsed to a double backslash
13495 # by the backticks, then collapsed again by the double quotes,
13496 # leaving us with one backslash in the sed expression (right
13497 # before the dot that mustn't act as a wildcard).
13498 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13499 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13500 # The user is allowed to set LINGUAS to a list of languages to
13501 # install catalogs for. If it's empty that means "all of them."
13502 if test "x$LINGUAS" = x
; then
13503 CATALOGS
="$CATALOGS $cat"
13504 XLINGUAS
="$XLINGUAS $lang"
13506 case "$LINGUAS" in *$lang*)
13507 CATALOGS
="$CATALOGS $cat"
13508 XLINGUAS
="$XLINGUAS $lang"
13513 LINGUAS
="$XLINGUAS"
13514 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13515 echo "${ECHO_T}$LINGUAS" >&6
13528 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13529 # -liconv on the link line twice.
13530 case "$LIBINTL" in *$LIBICONV*)
13534 # Check whether --enable-secureplt or --disable-secureplt was given.
13535 if test "${enable_secureplt+set}" = set; then
13536 enableval
="$enable_secureplt"
13540 # Check whether --enable-cld or --disable-cld was given.
13541 if test "${enable_cld+set}" = set; then
13542 enableval
="$enable_cld"
13548 # Windows32 Registry support for specifying GCC installation paths.
13549 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13550 if test "${enable_win32_registry+set}" = set; then
13551 enableval
="$enable_win32_registry"
13556 win32 | pe | cygwin
* | mingw32
* | uwin
*)
13557 if test "x$enable_win32_registry" != xno
; then
13558 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13559 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13560 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_func_search_save_LIBS
=$LIBS
13564 ac_cv_search_RegOpenKeyExA
=no
13565 cat >conftest.
$ac_ext <<_ACEOF
13568 cat confdefs.h
>>conftest.
$ac_ext
13569 cat >>conftest.
$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13572 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13578 char RegOpenKeyExA ();
13587 rm -f conftest.
$ac_objext conftest
$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589 (eval $ac_link) 2>conftest.er1
13591 grep -v '^ *+' conftest.er1
>conftest.err
13593 cat conftest.err
>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try
='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try
='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_search_RegOpenKeyExA
="none required"
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.
$ac_ext >&5
13615 rm -f conftest.err conftest.
$ac_objext \
13616 conftest
$ac_exeext conftest.
$ac_ext
13617 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
13618 for ac_lib
in advapi32
; do
13619 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13620 cat >conftest.
$ac_ext <<_ACEOF
13623 cat confdefs.h
>>conftest.
$ac_ext
13624 cat >>conftest.
$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13627 /* Override any gcc2 internal prototype to avoid an error. */
13631 /* We use char because int might match the return type of a gcc2
13632 builtin and then its argument prototype would still apply. */
13633 char RegOpenKeyExA ();
13642 rm -f conftest.
$ac_objext conftest
$ac_exeext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13644 (eval $ac_link) 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try
='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try
='test -s conftest$ac_exeext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.
$ac_ext >&5
13671 rm -f conftest.err conftest.
$ac_objext \
13672 conftest
$ac_exeext conftest.
$ac_ext
13675 LIBS
=$ac_func_search_save_LIBS
13677 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13678 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13679 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
13680 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
13683 enable_win32_registry
=no
13688 if test "x$enable_win32_registry" != xno
; then
13690 cat >>confdefs.h
<<\_ACEOF
13691 #define ENABLE_WIN32_REGISTRY 1
13695 if test "x$enable_win32_registry" != xyes \
13696 && test "x$enable_win32_registry" != x
; then
13698 cat >>confdefs.h
<<_ACEOF
13699 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13707 # Get an absolute path to the GCC top-level source directory
13708 holddir
=`${PWDCMD-pwd}`
13710 topdir
=`${PWDCMD-pwd}`
13713 # Conditionalize the makefile for this host machine.
13715 for f
in ${host_xmake_file}
13717 if test -f ${srcdir}/config
/$f
13719 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13723 # Conditionalize the makefile for this target machine.
13725 for f
in ${tmake_file}
13727 if test -f ${srcdir}/config
/$f
13729 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13732 tmake_file
="${tmake_file_}"
13734 out_object_file
=`basename $out_file .c`.o
13736 tm_file_list
="options.h"
13737 tm_include_list
="options.h"
13738 for f
in $tm_file; do
13741 f
=`echo $f | sed 's/^..//'`
13742 tm_file_list
="${tm_file_list} $f"
13743 tm_include_list
="${tm_include_list} $f"
13746 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13747 tm_include_list
="${tm_include_list} $f"
13750 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13751 tm_include_list
="${tm_include_list} config/$f"
13758 for f
in $tm_p_file; do
13761 tm_p_file_list
="${tm_p_file_list} $f"
13762 tm_p_include_list
="${tm_p_include_list} $f"
13765 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13766 tm_p_include_list
="${tm_p_include_list} config/$f"
13772 for f
in $xm_file; do
13775 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13776 xm_include_list
="${xm_include_list} $f"
13779 xm_file_list
="${xm_file_list} $f"
13780 xm_include_list
="${xm_include_list} $f"
13783 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13784 xm_include_list
="${xm_include_list} config/$f"
13790 host_xm_include_list
=
13791 for f
in $host_xm_file; do
13794 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13795 host_xm_include_list
="${host_xm_include_list} $f"
13798 host_xm_file_list
="${host_xm_file_list} $f"
13799 host_xm_include_list
="${host_xm_include_list} $f"
13802 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13803 host_xm_include_list
="${host_xm_include_list} config/$f"
13808 build_xm_file_list
=
13809 for f
in $build_xm_file; do
13812 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13813 build_xm_include_list
="${build_xm_include_list} $f"
13815 auto-build.h | auto-host.h
)
13816 build_xm_file_list
="${build_xm_file_list} $f"
13817 build_xm_include_list
="${build_xm_include_list} $f"
13820 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13821 build_xm_include_list
="${build_xm_include_list} config/$f"
13826 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13827 # cross-compiler which does not use the native headers and libraries.
13828 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13831 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13833 if test "x$with_build_sysroot" != x
; then
13834 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13836 # This value is used, even on a native system, because
13837 # CROSS_SYSTEM_HEADER_DIR is just
13838 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13839 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13842 if test x
$host != x
$target
13844 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13846 SYSTEM_HEADER_DIR
=$build_system_header_dir
13847 case "$host","$target" in
13848 # Darwin crosses can use the host system's libraries and headers,
13849 # because of the fat library support. Of course, it must be the
13850 # same version of Darwin on both sides. Allow the user to
13851 # just say --target=foo-darwin without a version number to mean
13852 # "the version on this system".
13853 *-*-darwin*,*-*-darwin*)
13854 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13855 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13856 if test $hostos = $targetos -o $targetos = darwin
; then
13858 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13863 i?
86-*-*,x86_64-
*-* \
13864 | powerpc
*-*-*,powerpc64
*-*-*)
13865 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13867 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13868 SYSTEM_HEADER_DIR
=$build_system_header_dir
13871 # If this is a cross-compiler that does not
13872 # have its own set of headers then define
13875 # If this is using newlib, without having the headers available now,
13876 # then define inhibit_libc in LIBGCC2_CFLAGS.
13877 # This prevents libgcc2 from containing any code which requires libc
13879 : ${inhibit_libc=false}
13880 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13881 test x
$with_newlib = xyes
; } &&
13882 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13887 # When building gcc with a cross-compiler, we need to adjust things so
13888 # that the generator programs are still built with the native compiler.
13889 # Also, we cannot run fixincludes.
13891 # These are the normal (build=host) settings:
13892 CC_FOR_BUILD
='$(CC)'
13893 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13894 BUILD_LDFLAGS
='$(LDFLAGS)'
13895 STMP_FIXINC
=stmp-fixinc
13897 # And these apply if build != host, or we are generating coverage data
13898 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13900 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13901 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13904 # Expand extra_headers to include complete path.
13905 # This substitutes for lots of t-* files.
13906 extra_headers_list
=
13907 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13908 for file in ${extra_headers} ; do
13909 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13912 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13913 if test x
"$use_gcc_tgmath" = xyes
13914 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13917 # Define collect2 in Makefile.
13918 case $host_can_use_collect2 in
13920 *) collect2
='collect2$(exeext)' ;;
13924 # Add a definition of USE_COLLECT2 if system wants one.
13925 case $use_collect2 in
13926 no
) use_collect2
= ;;
13929 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13930 xm_defines
="${xm_defines} USE_COLLECT2"
13931 case $host_can_use_collect2 in
13933 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13934 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13935 { (exit 1); exit 1; }; }
13941 # ---------------------------
13942 # Assembler & linker features
13943 # ---------------------------
13945 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13946 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13947 # However when ld-new is first executed from the build tree, libtool will
13948 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13949 # to the build tree. While doing this we need to use the previous-stage
13950 # linker, or we have an infinite loop. The presence of a shell script as
13951 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13952 # the gcc/collect-ld script. So we need to know how libtool works, or
13953 # exec-tool will fail.
13958 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13959 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13964 macro_version
='2.2.6'
13965 macro_revision
='1.3012'
13979 ltmain
="$ac_aux_dir/ltmain.sh"
13981 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13982 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13983 if test "${lt_cv_path_SED+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 # Loop through the user's path and test for sed and gsed.
13987 # Then use that list of sed's as ones to test for truncation.
13988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13989 for as_dir
in $PATH
13992 test -z "$as_dir" && as_dir
=.
13993 for lt_ac_prog
in sed gsed
; do
13994 for ac_exec_ext
in '' $ac_executable_extensions; do
13995 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13996 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14004 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14005 # along with /bin/sed that truncates output.
14006 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
14007 test ! -f $lt_ac_sed && continue
14008 cat /dev
/null
> conftest.
in
14010 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
14011 # Check for GNU sed and select it if it is found.
14012 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
14013 lt_cv_path_SED
=$lt_ac_sed
14017 cat conftest.
in conftest.
in >conftest.tmp
14018 mv conftest.tmp conftest.
in
14019 cp conftest.
in conftest.
nl
14021 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
14022 cmp -s conftest.out conftest.
nl ||
break
14023 # 10000 chars as input seems more than enough
14024 test $lt_ac_count -gt 10 && break
14025 lt_ac_count
=`expr $lt_ac_count + 1`
14026 if test $lt_ac_count -gt $lt_ac_max; then
14027 lt_ac_max
=$lt_ac_count
14028 lt_cv_path_SED
=$lt_ac_sed
14035 SED
=$lt_cv_path_SED
14037 echo "$as_me:$LINENO: result: $SED" >&5
14038 echo "${ECHO_T}$SED" >&6
14040 test -z "$SED" && SED
=sed
14041 Xsed
="$SED -e 1s/^X//"
14053 echo "$as_me:$LINENO: checking for fgrep" >&5
14054 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14055 if test "${ac_cv_prog_fgrep+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
14059 then ac_cv_prog_fgrep
='grep -F'
14060 else ac_cv_prog_fgrep
='fgrep'
14063 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14064 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14065 FGREP
=$ac_cv_prog_fgrep
14068 test -z "$GREP" && GREP
=grep
14088 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14089 if test "${with_gnu_ld+set}" = set; then
14090 withval
="$with_gnu_ld"
14091 test "$withval" = no || with_gnu_ld
=yes
14096 if test "$GCC" = yes; then
14097 # Check if gcc -print-prog-name=ld gives a path.
14098 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14099 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14102 # gcc leaves a trailing carriage return which upsets mingw
14103 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14105 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14108 # Accept absolute paths.
14110 re_direlt
='/[^/][^/]*/\.\./'
14111 # Canonicalize the pathname of ld
14112 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14113 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14114 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14116 test -z "$LD" && LD
="$ac_prog"
14119 # If it fails, then pretend we aren't using GCC.
14123 # If it is relative, then search for the first ld in PATH.
14124 with_gnu_ld
=unknown
14127 elif test "$with_gnu_ld" = yes; then
14128 echo "$as_me:$LINENO: checking for GNU ld" >&5
14129 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14131 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14132 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14134 if test "${lt_cv_path_LD+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 if test -z "$LD"; then
14138 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14139 for ac_dir
in $PATH; do
14141 test -z "$ac_dir" && ac_dir
=.
14142 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14143 lt_cv_path_LD
="$ac_dir/$ac_prog"
14144 # Check to see if the program is GNU ld. I'd rather use --version,
14145 # but apparently some variants of GNU ld only accept -v.
14146 # Break only if it was the GNU/non-GNU ld that we prefer.
14147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14148 *GNU
* |
*'with BFD'*)
14149 test "$with_gnu_ld" != no
&& break
14152 test "$with_gnu_ld" != yes && break
14159 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14163 LD
="$lt_cv_path_LD"
14164 if test -n "$LD"; then
14165 echo "$as_me:$LINENO: result: $LD" >&5
14166 echo "${ECHO_T}$LD" >&6
14168 echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6
14171 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14172 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14173 { (exit 1); exit 1; }; }
14174 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14175 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14176 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14180 case `$LD -v 2>&1 </dev/null` in
14181 *GNU
* |
*'with BFD'*)
14182 lt_cv_prog_gnu_ld
=yes
14185 lt_cv_prog_gnu_ld
=no
14189 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14190 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14191 with_gnu_ld
=$lt_cv_prog_gnu_ld
14201 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14202 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14203 if test "${lt_cv_path_NM+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 if test -n "$NM"; then
14207 # Let the user override the test.
14208 lt_cv_path_NM
="$NM"
14210 lt_nm_to_check
="${ac_tool_prefix}nm"
14211 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14212 lt_nm_to_check
="$lt_nm_to_check nm"
14214 for lt_tmp_nm
in $lt_nm_to_check; do
14215 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14216 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14218 test -z "$ac_dir" && ac_dir
=.
14219 tmp_nm
="$ac_dir/$lt_tmp_nm"
14220 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14221 # Check to see if the nm accepts a BSD-compat flag.
14222 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14223 # nm: unknown option "B" ignored
14224 # Tru64's nm complains that /dev/null is an invalid object file
14225 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14226 */dev
/null
* |
*'Invalid file or object type'*)
14227 lt_cv_path_NM
="$tmp_nm -B"
14231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14233 lt_cv_path_NM
="$tmp_nm -p"
14237 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14238 continue # so that we can try to find one that supports BSD flags
14247 : ${lt_cv_path_NM=no}
14250 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14251 echo "${ECHO_T}$lt_cv_path_NM" >&6
14252 if test "$lt_cv_path_NM" != "no"; then
14253 NM
="$lt_cv_path_NM"
14255 # Didn't find any BSD compatible name lister, look for dumpbin.
14256 if test -n "$ac_tool_prefix"; then
14257 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14260 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14261 echo "$as_me:$LINENO: checking for $ac_word" >&5
14262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14263 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 if test -n "$DUMPBIN"; then
14267 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14270 for as_dir
in $PATH
14273 test -z "$as_dir" && as_dir
=.
14274 for ac_exec_ext
in '' $ac_executable_extensions; do
14275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14276 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14285 DUMPBIN
=$ac_cv_prog_DUMPBIN
14286 if test -n "$DUMPBIN"; then
14287 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14288 echo "${ECHO_T}$DUMPBIN" >&6
14290 echo "$as_me:$LINENO: result: no" >&5
14291 echo "${ECHO_T}no" >&6
14294 test -n "$DUMPBIN" && break
14297 if test -z "$DUMPBIN"; then
14298 ac_ct_DUMPBIN
=$DUMPBIN
14299 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
14301 # Extract the first word of "$ac_prog", so it can be a program name with args.
14302 set dummy
$ac_prog; ac_word
=$2
14303 echo "$as_me:$LINENO: checking for $ac_word" >&5
14304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14305 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 if test -n "$ac_ct_DUMPBIN"; then
14309 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14312 for as_dir
in $PATH
14315 test -z "$as_dir" && as_dir
=.
14316 for ac_exec_ext
in '' $ac_executable_extensions; do
14317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14318 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14327 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14328 if test -n "$ac_ct_DUMPBIN"; then
14329 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14330 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14332 echo "$as_me:$LINENO: result: no" >&5
14333 echo "${ECHO_T}no" >&6
14336 test -n "$ac_ct_DUMPBIN" && break
14338 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
14340 DUMPBIN
=$ac_ct_DUMPBIN
14344 if test "$DUMPBIN" != ":"; then
14348 test -z "$NM" && NM
=nm
14355 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14356 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14357 if test "${lt_cv_nm_interface+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 lt_cv_nm_interface
="BSD nm"
14361 echo "int some_variable = 0;" > conftest.
$ac_ext
14362 (eval echo "\"\$as_me:14362: $ac_compile\"" >&5)
14363 (eval "$ac_compile" 2>conftest.err
)
14364 cat conftest.err
>&5
14365 (eval echo "\"\$as_me:14365: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14366 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14367 cat conftest.err
>&5
14368 (eval echo "\"\$as_me:14368: output\"" >&5)
14369 cat conftest.out
>&5
14370 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14371 lt_cv_nm_interface
="MS dumpbin"
14375 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14376 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14378 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14379 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14381 if test "$LN_S" = "ln -s"; then
14382 echo "$as_me:$LINENO: result: yes" >&5
14383 echo "${ECHO_T}yes" >&6
14385 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14386 echo "${ECHO_T}no, using $LN_S" >&6
14389 # find the maximum length of command line arguments
14390 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 # On DJGPP, this test can blow up pretty badly due to problems in libc
14401 # (any single argument exceeding 2000 bytes causes a buffer overrun
14402 # during glob expansion). Even if it were fixed, the result of this
14403 # check would be larger than it should be.
14404 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14408 # Under GNU Hurd, this test is not required because there is
14409 # no limit to the length of command line arguments.
14410 # Libtool will interpret -1 as no limit whatsoever
14411 lt_cv_sys_max_cmd_len
=-1;
14414 cygwin
* | mingw
* | cegcc
*)
14415 # On Win9x/ME, this test blows up -- it succeeds, but takes
14416 # about 5 minutes as the teststring grows exponentially.
14417 # Worse, since 9x/ME are not pre-emptively multitasking,
14418 # you end up with a "frozen" computer, even though with patience
14419 # the test eventually succeeds (with a max line length of 256k).
14420 # Instead, let's just punt: use the minimum linelength reported by
14421 # all of the supported platforms: 8192 (on NT/2K/XP).
14422 lt_cv_sys_max_cmd_len
=8192;
14426 # On AmigaOS with pdksh, this test takes hours, literally.
14427 # So we just punt and use a minimum line length of 8192.
14428 lt_cv_sys_max_cmd_len
=8192;
14431 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14432 # This has been around since 386BSD, at least. Likely further.
14433 if test -x /sbin
/sysctl
; then
14434 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14435 elif test -x /usr
/sbin
/sysctl
; then
14436 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14438 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14440 # And add a safety zone
14441 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14442 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14447 lt_cv_sys_max_cmd_len
=196608
14451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14453 # nice to cause kernel panics so lets avoid the loop below.
14454 # First set a reasonable default.
14455 lt_cv_sys_max_cmd_len
=16384
14457 if test -x /sbin
/sysconfig
; then
14458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14459 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14464 lt_cv_sys_max_cmd_len
=102400
14466 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14467 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14468 if test -n "$kargmax"; then
14469 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14471 lt_cv_sys_max_cmd_len
=32768
14475 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14476 if test -n "$lt_cv_sys_max_cmd_len"; then
14477 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14478 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14480 # Make teststring a little bigger before we do anything with it.
14481 # a 1K string should be a reasonable start.
14482 for i
in 1 2 3 4 5 6 7 8 ; do
14483 teststring
=$teststring$teststring
14485 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14486 # If test is not a shell built-in, we'll probably end up computing a
14487 # maximum length that is only half of the actual maximum length, but
14489 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14490 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
14491 test $i != 17 # 1/2 MB should be enough
14494 teststring
=$teststring$teststring
14496 # Only check the string length outside the loop.
14497 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14499 # Add a significant safety factor because C++ compilers can tack on
14500 # massive amounts of additional arguments before passing them to the
14501 # linker. It appears as though 1/2 is a usable value.
14502 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14509 if test -n $lt_cv_sys_max_cmd_len ; then
14510 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14511 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14513 echo "$as_me:$LINENO: result: none" >&5
14514 echo "${ECHO_T}none" >&6
14516 max_cmd_len
=$lt_cv_sys_max_cmd_len
14527 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14528 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14529 # Try some XSI features
14531 ( _lt_dummy
="a/b/c"
14532 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14534 && eval 'test $(( 1 + 1 )) -eq 2 \
14535 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14537 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
14538 echo "${ECHO_T}$xsi_shell" >&6
14541 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
14542 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
14544 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14546 && lt_shell_append=yes
14547 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
14548 echo "${ECHO_T}$lt_shell_append" >&6
14551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14561 # test EBCDIC or ASCII
14562 case `echo X|tr X '\101'` in
14563 A) # ASCII based system
14564 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14565 lt_SP2NL='tr \040 \012'
14566 lt_NL2SP='tr \015\012 \040\040'
14568 *) # EBCDIC based system
14569 lt_SP2NL='tr \100 \n'
14570 lt_NL2SP='tr \r\n \100\100'
14582 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
14583 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
14584 if test "${lt_cv_ld_reload_flag+set}" = set; then
14585 echo $ECHO_N "(cached
) $ECHO_C" >&6
14587 lt_cv_ld_reload_flag='-r'
14589 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
14590 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14591 reload_flag=$lt_cv_ld_reload_flag
14592 case $reload_flag in
14594 *) reload_flag=" $reload_flag" ;;
14596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14599 if test "$GCC" = yes; then
14600 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14602 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14615 if test -n "$ac_tool_prefix"; then
14616 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14618 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14619 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14620 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14621 echo $ECHO_N "(cached
) $ECHO_C" >&6
14623 if test -n "$OBJDUMP"; then
14624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14627 for as_dir in $PATH
14630 test -z "$as_dir" && as_dir=.
14631 for ac_exec_ext in '' $ac_executable_extensions; do
14632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14633 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14634 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14642 OBJDUMP=$ac_cv_prog_OBJDUMP
14643 if test -n "$OBJDUMP"; then
14644 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
14645 echo "${ECHO_T}$OBJDUMP" >&6
14647 echo "$as_me:$LINENO: result
: no
" >&5
14648 echo "${ECHO_T}no
" >&6
14652 if test -z "$ac_cv_prog_OBJDUMP"; then
14653 ac_ct_OBJDUMP=$OBJDUMP
14654 # Extract the first word of "objdump
", so it can be a program name with args.
14655 set dummy objdump; ac_word=$2
14656 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14657 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14658 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14659 echo $ECHO_N "(cached
) $ECHO_C" >&6
14661 if test -n "$ac_ct_OBJDUMP"; then
14662 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14671 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14672 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14678 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false
"
14681 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14682 if test -n "$ac_ct_OBJDUMP"; then
14683 echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
14684 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14686 echo "$as_me:$LINENO: result
: no
" >&5
14687 echo "${ECHO_T}no
" >&6
14690 OBJDUMP=$ac_ct_OBJDUMP
14692 OBJDUMP="$ac_cv_prog_OBJDUMP"
14695 test -z "$OBJDUMP" && OBJDUMP=objdump
14705 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
14706 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
14707 if test "${lt_cv_deplibs_check_method+set}" = set; then
14708 echo $ECHO_N "(cached
) $ECHO_C" >&6
14710 lt_cv_file_magic_cmd='$MAGIC_CMD'
14711 lt_cv_file_magic_test_file=
14712 lt_cv_deplibs_check_method='unknown'
14713 # Need to set the preceding variable on all platforms that support
14714 # interlibrary dependencies.
14715 # 'none' -- dependencies not supported.
14716 # `unknown' -- same as none, but documents that we really don't know.
14717 # 'pass_all' -- all dependencies passed with no checks.
14718 # 'test_compile' -- check by making test program.
14719 # 'file_magic [[regex]]' -- check by looking for files in library path
14720 # which responds to the $file_magic_cmd with a given extended regex.
14721 # If you have `file' or equivalent on your system and you're not sure
14722 # whether `pass_all' will *always* work, you probably want this one.
14726 lt_cv_deplibs_check_method=pass_all
14730 lt_cv_deplibs_check_method=pass_all
14734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14735 lt_cv_file_magic_cmd='/usr/bin/file -L'
14736 lt_cv_file_magic_test_file=/shlib/libc.so
14740 # func_win32_libid is a shell function defined in ltmain.sh
14741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14742 lt_cv_file_magic_cmd='func_win32_libid'
14746 # Base MSYS/MinGW do not provide the 'file' command needed by
14747 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14748 # unless we find 'file', for example because we are cross-compiling.
14749 if ( file / ) >/dev/null 2>&1; then
14750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14751 lt_cv_file_magic_cmd='func_win32_libid'
14753 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14754 lt_cv_file_magic_cmd='$OBJDUMP -f'
14759 # use the weaker test based on 'objdump'. See mingw*.
14760 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14761 lt_cv_file_magic_cmd='$OBJDUMP -f'
14764 darwin* | rhapsody*)
14765 lt_cv_deplibs_check_method=pass_all
14768 freebsd* | dragonfly*)
14769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14772 # Not sure whether the presence of OpenBSD here was a mistake.
14773 # Let's accept both of them until this is cleared up.
14774 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14775 lt_cv_file_magic_cmd=/usr/bin/file
14776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14780 lt_cv_deplibs_check_method=pass_all
14785 lt_cv_deplibs_check_method=pass_all
14788 hpux10.20* | hpux11*)
14789 lt_cv_file_magic_cmd=/usr/bin/file
14792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14793 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14796 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]'
14797 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14801 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14807 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14811 irix5* | irix6* | nonstopux*)
14813 *-32|*"-32 ") libmagic=32-bit;;
14814 *-n32|*"-n32 ") libmagic=N32;;
14815 *-64|*"-64 ") libmagic=64-bit;;
14816 *) libmagic=never-match;;
14818 lt_cv_deplibs_check_method=pass_all
14821 # This must be Linux ELF.
14822 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14823 lt_cv_deplibs_check_method=pass_all
14827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14836 lt_cv_file_magic_cmd=/usr/bin/file
14837 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14841 lt_cv_deplibs_check_method=pass_all
14845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14852 osf3* | osf4* | osf5*)
14853 lt_cv_deplibs_check_method=pass_all
14857 lt_cv_deplibs_check_method=pass_all
14861 lt_cv_deplibs_check_method=pass_all
14864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14865 lt_cv_deplibs_check_method=pass_all
14869 case $host_vendor in
14871 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]'
14872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14875 lt_cv_deplibs_check_method=pass_all
14878 lt_cv_file_magic_cmd='/bin/file'
14879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14882 lt_cv_file_magic_cmd='/bin/file'
14883 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14884 lt_cv_file_magic_test_file=/lib/libc.so
14887 lt_cv_deplibs_check_method=pass_all
14890 lt_cv_deplibs_check_method=pass_all
14896 lt_cv_deplibs_check_method=pass_all
14901 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
14902 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14903 file_magic_cmd=$lt_cv_file_magic_cmd
14904 deplibs_check_method=$lt_cv_deplibs_check_method
14905 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14918 if test -n "$ac_tool_prefix"; then
14919 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14920 set dummy ${ac_tool_prefix}ar; ac_word=$2
14921 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14922 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14923 if test "${ac_cv_prog_AR+set}" = set; then
14924 echo $ECHO_N "(cached
) $ECHO_C" >&6
14926 if test -n "$AR"; then
14927 ac_cv_prog_AR="$AR" # Let the user override the test.
14929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14933 test -z "$as_dir" && as_dir=.
14934 for ac_exec_ext in '' $ac_executable_extensions; do
14935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14936 ac_cv_prog_AR="${ac_tool_prefix}ar"
14937 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14946 if test -n "$AR"; then
14947 echo "$as_me:$LINENO: result
: $AR" >&5
14948 echo "${ECHO_T}$AR" >&6
14950 echo "$as_me:$LINENO: result
: no
" >&5
14951 echo "${ECHO_T}no
" >&6
14955 if test -z "$ac_cv_prog_AR"; then
14957 # Extract the first word of "ar", so it can be a program name with args.
14958 set dummy ar; ac_word=$2
14959 echo "$as_me:$LINENO: checking
for $ac_word" >&5
14960 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
14961 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14962 echo $ECHO_N "(cached
) $ECHO_C" >&6
14964 if test -n "$ac_ct_AR"; then
14965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968 for as_dir in $PATH
14971 test -z "$as_dir" && as_dir=.
14972 for ac_exec_ext in '' $ac_executable_extensions; do
14973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974 ac_cv_prog_ac_ct_AR="ar"
14975 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14981 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
14984 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14985 if test -n "$ac_ct_AR"; then
14986 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
14987 echo "${ECHO_T}$ac_ct_AR" >&6
14989 echo "$as_me:$LINENO: result
: no
" >&5
14990 echo "${ECHO_T}no
" >&6
14995 AR="$ac_cv_prog_AR"
14998 test -z "$AR" && AR=ar
14999 test -z "$AR_FLAGS" && AR_FLAGS=cru
15011 if test -n "$ac_tool_prefix"; then
15012 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15013 set dummy ${ac_tool_prefix}strip; ac_word=$2
15014 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15015 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15016 if test "${ac_cv_prog_STRIP+set}" = set; then
15017 echo $ECHO_N "(cached
) $ECHO_C" >&6
15019 if test -n "$STRIP"; then
15020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in $PATH
15026 test -z "$as_dir" && as_dir=.
15027 for ac_exec_ext in '' $ac_executable_extensions; do
15028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15029 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15030 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15038 STRIP=$ac_cv_prog_STRIP
15039 if test -n "$STRIP"; then
15040 echo "$as_me:$LINENO: result
: $STRIP" >&5
15041 echo "${ECHO_T}$STRIP" >&6
15043 echo "$as_me:$LINENO: result
: no
" >&5
15044 echo "${ECHO_T}no
" >&6
15048 if test -z "$ac_cv_prog_STRIP"; then
15050 # Extract the first word of "strip
", so it can be a program name with args.
15051 set dummy strip; ac_word=$2
15052 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15053 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15054 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15055 echo $ECHO_N "(cached
) $ECHO_C" >&6
15057 if test -n "$ac_ct_STRIP"; then
15058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061 for as_dir in $PATH
15064 test -z "$as_dir" && as_dir=.
15065 for ac_exec_ext in '' $ac_executable_extensions; do
15066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15067 ac_cv_prog_ac_ct_STRIP="strip
"
15068 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15074 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15078 if test -n "$ac_ct_STRIP"; then
15079 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
15080 echo "${ECHO_T}$ac_ct_STRIP" >&6
15082 echo "$as_me:$LINENO: result
: no
" >&5
15083 echo "${ECHO_T}no
" >&6
15088 STRIP="$ac_cv_prog_STRIP"
15091 test -z "$STRIP" && STRIP=:
15098 if test -n "$ac_tool_prefix"; then
15099 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15101 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15102 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15103 if test "${ac_cv_prog_RANLIB+set}" = set; then
15104 echo $ECHO_N "(cached
) $ECHO_C" >&6
15106 if test -n "$RANLIB"; then
15107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15110 for as_dir in $PATH
15113 test -z "$as_dir" && as_dir=.
15114 for ac_exec_ext in '' $ac_executable_extensions; do
15115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15117 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15125 RANLIB=$ac_cv_prog_RANLIB
15126 if test -n "$RANLIB"; then
15127 echo "$as_me:$LINENO: result
: $RANLIB" >&5
15128 echo "${ECHO_T}$RANLIB" >&6
15130 echo "$as_me:$LINENO: result
: no
" >&5
15131 echo "${ECHO_T}no
" >&6
15135 if test -z "$ac_cv_prog_RANLIB"; then
15136 ac_ct_RANLIB=$RANLIB
15137 # Extract the first word of "ranlib
", so it can be a program name with args.
15138 set dummy ranlib; ac_word=$2
15139 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15140 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15142 echo $ECHO_N "(cached
) $ECHO_C" >&6
15144 if test -n "$ac_ct_RANLIB"; then
15145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15155 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15161 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15165 if test -n "$ac_ct_RANLIB"; then
15166 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
15167 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15169 echo "$as_me:$LINENO: result
: no
" >&5
15170 echo "${ECHO_T}no
" >&6
15173 RANLIB=$ac_ct_RANLIB
15175 RANLIB="$ac_cv_prog_RANLIB"
15178 test -z "$RANLIB" && RANLIB=:
15185 # Determine commands to create old-style static archives.
15186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15187 old_postinstall_cmds='chmod 644 $oldlib'
15188 old_postuninstall_cmds=
15190 if test -n "$RANLIB"; then
15193 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15196 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15199 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15235 # If no C compiler was specified, use CC.
15238 # If no C compiler flags were specified, use CFLAGS.
15239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15241 # Allow CC to be a program name with arguments.
15245 # Check for command to grab the raw symbol name followed by C symbol from nm.
15246 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
15247 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
15248 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15249 echo $ECHO_N "(cached
) $ECHO_C" >&6
15252 # These are sane defaults that work on at least a few old systems.
15253 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15255 # Character class describing NM global symbol codes.
15256 symcode='[BCDEGRST]'
15258 # Regexp to match symbols that can be accessed directly from C.
15259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15261 # Define system-specific variables.
15266 cygwin* | mingw* | pw32* | cegcc*)
15267 symcode='[ABCDGISTW]'
15270 if test "$host_cpu" = ia64; then
15271 symcode='[ABCDEGRST]'
15274 irix* | nonstopux*)
15275 symcode='[BCDEGRST]'
15278 symcode='[BCDEGQRST]'
15289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15297 # If we're using GNU nm, then use its standard symbol codes.
15298 case `$NM -V 2>&1` in
15299 *GNU* | *'with BFD'*)
15300 symcode='[ABCDGIRSTW]' ;;
15303 # Transform an extracted symbol line into a proper C declaration.
15304 # Some systems (esp. on ia64) link data and code symbols differently,
15305 # so use this general approach.
15306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15308 # Transform an extracted symbol line into symbol name and symbol address
15309 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15310 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'"
15312 # Handle CRLF in mingw tool chain
15316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15320 # Try without a prefix underscore, then with it.
15321 for ac_symprfx in "" "_
"; do
15323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15324 symxfrm="\\1 $ac_symprfx\\2 \\2"
15326 # Write the raw and C identifiers.
15327 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15328 # Fake it for dumpbin and say T for any non-static function
15329 # and D for any global variable.
15330 # Also find C++ and __fastcall symbols from MSVC++,
15331 # which start with @ or ?.
15332 lt_cv_sys_global_symbol_pipe="$AWK '"\
15333 " {last_section=section; section=\$ 3};"\
15334 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15335 " \$ 0!~/External *\|/{next};"\
15336 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15337 " {if(hide[section]) next};"\
15338 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15339 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15340 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15341 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15342 " ' prfx
=^
$ac_symprfx"
15344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15347 # Check to see that the pipe works correctly.
15351 cat > conftest.$ac_ext <<_LT_EOF
15356 void nm_test_func(void);
15357 void nm_test_func(void){}
15361 int main(){nm_test_var='a';nm_test_func();return(0);}
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>&5
15367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15368 (exit $ac_status); }; then
15369 # Now try to grab the symbols.
15371 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
15372 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15375 (exit $ac_status); } && test -s "$nlist"; then
15376 # Try sorting and uniquifying the output.
15377 if sort "$nlist" | uniq > "$nlist"T; then
15378 mv -f "$nlist"T "$nlist"
15383 # Make sure that we snagged all the symbols we need.
15384 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15385 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15386 cat <<_LT_EOF > conftest.$ac_ext
15392 # Now generate the symbol file.
15393 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15395 cat <<_LT_EOF >> conftest.$ac_ext
15397 /* The mapping between symbol names and symbols. */
15402 lt__PROGRAM__LTX_preloaded_symbols[] =
15404 { "@PROGRAM@
", (void *) 0 },
15406 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15407 cat <<\_LT_EOF >> conftest.$ac_ext
15411 /* This works around a problem in FreeBSD linker */
15412 #ifdef FREEBSD_WORKAROUND
15413 static const void *lt_preloaded_setup() {
15414 return lt__PROGRAM__LTX_preloaded_symbols;
15422 # Now try linking the two files.
15423 mv conftest.$ac_objext conftstm.$ac_objext
15424 lt_save_LIBS="$LIBS"
15425 lt_save_CFLAGS="$CFLAGS"
15426 LIBS="conftstm.
$ac_objext"
15427 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>&5
15431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15432 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15435 LIBS="$lt_save_LIBS"
15436 CFLAGS="$lt_save_CFLAGS"
15438 echo "cannot
find nm_test_func
in $nlist" >&5
15441 echo "cannot
find nm_test_var
in $nlist" >&5
15444 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15447 echo "$progname: failed program was
:" >&5
15448 cat conftest.$ac_ext >&5
15450 rm -rf conftest* conftst*
15452 # Do not use the global_symbol_pipe unless it works.
15453 if test "$pipe_works" = yes; then
15456 lt_cv_sys_global_symbol_pipe=
15462 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15463 lt_cv_sys_global_symbol_to_cdecl=
15465 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15466 echo "$as_me:$LINENO: result
: failed
" >&5
15467 echo "${ECHO_T}failed
" >&6
15469 echo "$as_me:$LINENO: result
: ok
" >&5
15470 echo "${ECHO_T}ok
" >&6
15494 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15495 if test "${enable_libtool_lock+set}" = set; then
15496 enableval="$enable_libtool_lock"
15499 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15501 # Some flags need to be propagated to the compiler or linker for good
15505 # Find out which ABI we are using.
15506 echo 'int i;' > conftest.$ac_ext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>&5
15510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15511 (exit $ac_status); }; then
15512 case `/usr/bin/file conftest.$ac_objext` in
15514 HPUX_IA64_MODE="32"
15517 HPUX_IA64_MODE="64"
15524 # Find out which ABI we are using.
15525 echo '#line 15525 "configure
"' > conftest.$ac_ext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>&5
15529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15530 (exit $ac_status); }; then
15531 if test "$lt_cv_prog_gnu_ld" = yes; then
15532 case `/usr/bin/file conftest.$ac_objext` in
15534 LD="${LD-ld} -melf32bsmip"
15537 LD="${LD-ld} -melf32bmipn32"
15540 LD="${LD-ld} -melf64bmip"
15544 case `/usr/bin/file conftest.$ac_objext` in
15560 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15561 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15562 # Find out which ABI we are using.
15563 echo 'int i;' > conftest.$ac_ext
15564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15565 (eval $ac_compile) 2>&5
15567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15568 (exit $ac_status); }; then
15569 case `/usr/bin/file conftest.o` in
15572 x86_64-*kfreebsd*-gnu)
15573 LD="${LD-ld} -m elf_i386_fbsd
"
15576 LD="${LD-ld} -m elf_i386
"
15578 ppc64-*linux*|powerpc64-*linux*)
15579 LD="${LD-ld} -m elf32ppclinux
"
15582 LD="${LD-ld} -m elf_s390
"
15585 LD="${LD-ld} -m elf32_sparc
"
15591 x86_64-*kfreebsd*-gnu)
15592 LD="${LD-ld} -m elf_x86_64_fbsd
"
15595 LD="${LD-ld} -m elf_x86_64
"
15597 ppc*-*linux*|powerpc*-*linux*)
15598 LD="${LD-ld} -m elf64ppc
"
15600 s390*-*linux*|s390*-*tpf*)
15601 LD="${LD-ld} -m elf64_s390
"
15604 LD="${LD-ld} -m elf64_sparc
"
15614 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15615 SAVE_CFLAGS="$CFLAGS"
15616 CFLAGS="$CFLAGS -belf"
15617 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
15618 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
15619 if test "${lt_cv_cc_needs_belf+set}" = set; then
15620 echo $ECHO_N "(cached
) $ECHO_C" >&6
15623 ac_cpp='$CPP $CPPFLAGS'
15624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag"
15653 || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 lt_cv_cc_needs_belf=yes
15667 echo "$as_me: failed program was
:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 lt_cv_cc_needs_belf=no
15672 rm -f conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15675 ac_cpp='$CPP $CPPFLAGS'
15676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15681 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
15682 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15683 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15684 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15685 CFLAGS="$SAVE_CFLAGS"
15689 # Find out which ABI we are using.
15690 echo 'int i;' > conftest.$ac_ext
15691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15692 (eval $ac_compile) 2>&5
15694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15695 (exit $ac_status); }; then
15696 case `/usr/bin/file conftest.o` in
15698 case $lt_cv_prog_gnu_ld in
15699 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15701 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15713 need_locks="$enable_libtool_lock"
15717 rhapsody* | darwin*)
15718 if test -n "$ac_tool_prefix"; then
15719 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15720 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15721 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15722 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15723 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15724 echo $ECHO_N "(cached
) $ECHO_C" >&6
15726 if test -n "$DSYMUTIL"; then
15727 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15730 for as_dir in $PATH
15733 test -z "$as_dir" && as_dir=.
15734 for ac_exec_ext in '' $ac_executable_extensions; do
15735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15736 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15737 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15745 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15746 if test -n "$DSYMUTIL"; then
15747 echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
15748 echo "${ECHO_T}$DSYMUTIL" >&6
15750 echo "$as_me:$LINENO: result
: no
" >&5
15751 echo "${ECHO_T}no
" >&6
15755 if test -z "$ac_cv_prog_DSYMUTIL"; then
15756 ac_ct_DSYMUTIL=$DSYMUTIL
15757 # Extract the first word of "dsymutil
", so it can be a program name with args.
15758 set dummy dsymutil; ac_word=$2
15759 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15760 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15761 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15762 echo $ECHO_N "(cached
) $ECHO_C" >&6
15764 if test -n "$ac_ct_DSYMUTIL"; then
15765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15771 test -z "$as_dir" && as_dir=.
15772 for ac_exec_ext in '' $ac_executable_extensions; do
15773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15775 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15781 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15784 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15785 if test -n "$ac_ct_DSYMUTIL"; then
15786 echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
15787 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15789 echo "$as_me:$LINENO: result
: no
" >&5
15790 echo "${ECHO_T}no
" >&6
15793 DSYMUTIL=$ac_ct_DSYMUTIL
15795 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15798 if test -n "$ac_tool_prefix"; then
15799 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15800 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15801 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15802 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15803 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15804 echo $ECHO_N "(cached
) $ECHO_C" >&6
15806 if test -n "$NMEDIT"; then
15807 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810 for as_dir in $PATH
15813 test -z "$as_dir" && as_dir=.
15814 for ac_exec_ext in '' $ac_executable_extensions; do
15815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15816 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15817 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15825 NMEDIT=$ac_cv_prog_NMEDIT
15826 if test -n "$NMEDIT"; then
15827 echo "$as_me:$LINENO: result
: $NMEDIT" >&5
15828 echo "${ECHO_T}$NMEDIT" >&6
15830 echo "$as_me:$LINENO: result
: no
" >&5
15831 echo "${ECHO_T}no
" >&6
15835 if test -z "$ac_cv_prog_NMEDIT"; then
15836 ac_ct_NMEDIT=$NMEDIT
15837 # Extract the first word of "nmedit
", so it can be a program name with args.
15838 set dummy nmedit; ac_word=$2
15839 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15840 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15841 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15842 echo $ECHO_N "(cached
) $ECHO_C" >&6
15844 if test -n "$ac_ct_NMEDIT"; then
15845 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 for as_dir in $PATH
15851 test -z "$as_dir" && as_dir=.
15852 for ac_exec_ext in '' $ac_executable_extensions; do
15853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15854 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15855 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15861 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15864 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15865 if test -n "$ac_ct_NMEDIT"; then
15866 echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
15867 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15869 echo "$as_me:$LINENO: result
: no
" >&5
15870 echo "${ECHO_T}no
" >&6
15873 NMEDIT=$ac_ct_NMEDIT
15875 NMEDIT="$ac_cv_prog_NMEDIT"
15878 if test -n "$ac_tool_prefix"; then
15879 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15880 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15881 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15882 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15883 if test "${ac_cv_prog_LIPO+set}" = set; then
15884 echo $ECHO_N "(cached
) $ECHO_C" >&6
15886 if test -n "$LIPO"; then
15887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15897 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15905 LIPO=$ac_cv_prog_LIPO
15906 if test -n "$LIPO"; then
15907 echo "$as_me:$LINENO: result
: $LIPO" >&5
15908 echo "${ECHO_T}$LIPO" >&6
15910 echo "$as_me:$LINENO: result
: no
" >&5
15911 echo "${ECHO_T}no
" >&6
15915 if test -z "$ac_cv_prog_LIPO"; then
15917 # Extract the first word of "lipo
", so it can be a program name with args.
15918 set dummy lipo; ac_word=$2
15919 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15920 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15921 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15922 echo $ECHO_N "(cached
) $ECHO_C" >&6
15924 if test -n "$ac_ct_LIPO"; then
15925 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $PATH
15931 test -z "$as_dir" && as_dir=.
15932 for ac_exec_ext in '' $ac_executable_extensions; do
15933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15934 ac_cv_prog_ac_ct_LIPO="lipo
"
15935 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15941 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15944 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15945 if test -n "$ac_ct_LIPO"; then
15946 echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
15947 echo "${ECHO_T}$ac_ct_LIPO" >&6
15949 echo "$as_me:$LINENO: result
: no
" >&5
15950 echo "${ECHO_T}no
" >&6
15955 LIPO="$ac_cv_prog_LIPO"
15958 if test -n "$ac_tool_prefix"; then
15959 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15960 set dummy ${ac_tool_prefix}otool; ac_word=$2
15961 echo "$as_me:$LINENO: checking
for $ac_word" >&5
15962 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
15963 if test "${ac_cv_prog_OTOOL+set}" = set; then
15964 echo $ECHO_N "(cached
) $ECHO_C" >&6
15966 if test -n "$OTOOL"; then
15967 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15973 test -z "$as_dir" && as_dir=.
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15977 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15985 OTOOL=$ac_cv_prog_OTOOL
15986 if test -n "$OTOOL"; then
15987 echo "$as_me:$LINENO: result
: $OTOOL" >&5
15988 echo "${ECHO_T}$OTOOL" >&6
15990 echo "$as_me:$LINENO: result
: no
" >&5
15991 echo "${ECHO_T}no
" >&6
15995 if test -z "$ac_cv_prog_OTOOL"; then
15997 # Extract the first word of "otool
", so it can be a program name with args.
15998 set dummy otool; ac_word=$2
15999 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16000 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16001 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16002 echo $ECHO_N "(cached
) $ECHO_C" >&6
16004 if test -n "$ac_ct_OTOOL"; then
16005 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16008 for as_dir in $PATH
16011 test -z "$as_dir" && as_dir=.
16012 for ac_exec_ext in '' $ac_executable_extensions; do
16013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16014 ac_cv_prog_ac_ct_OTOOL="otool
"
16015 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16021 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16024 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16025 if test -n "$ac_ct_OTOOL"; then
16026 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
16027 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16029 echo "$as_me:$LINENO: result
: no
" >&5
16030 echo "${ECHO_T}no
" >&6
16035 OTOOL="$ac_cv_prog_OTOOL"
16038 if test -n "$ac_tool_prefix"; then
16039 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16040 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16041 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16042 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16043 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16044 echo $ECHO_N "(cached
) $ECHO_C" >&6
16046 if test -n "$OTOOL64"; then
16047 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16053 test -z "$as_dir" && as_dir=.
16054 for ac_exec_ext in '' $ac_executable_extensions; do
16055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16057 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16065 OTOOL64=$ac_cv_prog_OTOOL64
16066 if test -n "$OTOOL64"; then
16067 echo "$as_me:$LINENO: result
: $OTOOL64" >&5
16068 echo "${ECHO_T}$OTOOL64" >&6
16070 echo "$as_me:$LINENO: result
: no
" >&5
16071 echo "${ECHO_T}no
" >&6
16075 if test -z "$ac_cv_prog_OTOOL64"; then
16076 ac_ct_OTOOL64=$OTOOL64
16077 # Extract the first word of "otool64
", so it can be a program name with args.
16078 set dummy otool64; ac_word=$2
16079 echo "$as_me:$LINENO: checking
for $ac_word" >&5
16080 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
16081 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16082 echo $ECHO_N "(cached
) $ECHO_C" >&6
16084 if test -n "$ac_ct_OTOOL64"; then
16085 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16088 for as_dir in $PATH
16091 test -z "$as_dir" && as_dir=.
16092 for ac_exec_ext in '' $ac_executable_extensions; do
16093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16094 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16095 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16101 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16104 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16105 if test -n "$ac_ct_OTOOL64"; then
16106 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
16107 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16109 echo "$as_me:$LINENO: result
: no
" >&5
16110 echo "${ECHO_T}no
" >&6
16113 OTOOL64=$ac_ct_OTOOL64
16115 OTOOL64="$ac_cv_prog_OTOOL64"
16144 echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
16145 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6
16146 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16147 echo $ECHO_N "(cached
) $ECHO_C" >&6
16149 lt_cv_apple_cc_single_mod=no
16150 if test -z "${LT_MULTI_MODULE}"; then
16151 # By default we will add the -single_module flag. You can override
16152 # by either setting the environment variable LT_MULTI_MODULE
16153 # non-empty at configure time, or by adding -multi_module to the
16155 rm -rf libconftest.dylib*
16156 echo "int foo
(void
){return 1;}" > conftest.c
16157 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16158 -dynamiclib -Wl,-single_module conftest.c
" >&5
16159 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16160 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16162 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16163 lt_cv_apple_cc_single_mod=yes
16165 cat conftest.err >&5
16167 rm -rf libconftest.dylib*
16171 echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
16172 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16173 echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
16174 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6
16175 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16176 echo $ECHO_N "(cached
) $ECHO_C" >&6
16178 lt_cv_ld_exported_symbols_list=no
16179 save_LDFLAGS=$LDFLAGS
16180 echo "_main
" > conftest.sym
16181 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16182 cat >conftest.$ac_ext <<_ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16197 rm -f conftest.$ac_objext conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199 (eval $ac_link) 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest$ac_exeext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 lt_cv_ld_exported_symbols_list=yes
16221 echo "$as_me: failed program was
:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 lt_cv_ld_exported_symbols_list=no
16226 rm -f conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 LDFLAGS="$save_LDFLAGS"
16231 echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
16232 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16234 rhapsody* | darwin1.[012])
16235 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16237 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16238 darwin*) # darwin 5.x on
16239 # if running on 10.5 or later, the deployment target defaults
16240 # to the OS version, if on x86, and 10.4, the deployment
16241 # target defaults to 10.4. Don't you love it?
16242 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16243 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16244 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16246 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16248 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16252 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16253 _lt_dar_single_mod='$single_module'
16255 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16256 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16258 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16260 if test "$DSYMUTIL" != ":"; then
16261 _lt_dsymutil='~$DSYMUTIL $lib || :'
16269 for ac_header in dlfcn.h
16271 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16272 echo "$as_me:$LINENO: checking
for $ac_header" >&5
16273 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
16274 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
16275 echo $ECHO_N "(cached
) $ECHO_C" >&6
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <$ac_header>
16285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
16286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16292 (exit $ac_status); } >/dev/null; then
16293 if test -s conftest.err; then
16294 ac_cpp_err=$ac_c_preproc_warn_flag
16295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16302 if test -z "$ac_cpp_err"; then
16303 eval "$as_ac_Header=yes"
16305 echo "$as_me: failed program was
:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 eval "$as_ac_Header=no
"
16310 rm -f conftest.err conftest.$ac_ext
16312 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
16313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16331 enable_win32_dll=no
16334 # Check whether --enable-shared or --disable-shared was given.
16335 if test "${enable_shared+set}" = set; then
16336 enableval="$enable_shared"
16337 p=${PACKAGE-default}
16339 yes) enable_shared=yes ;;
16340 no) enable_shared=no ;;
16343 # Look at the argument we got. We use all the common list separators.
16344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16345 for pkg in $enableval; do
16347 if test "X
$pkg" = "X
$p"; then
16365 # Check whether --enable-static or --disable-static was given.
16366 if test "${enable_static+set}" = set; then
16367 enableval="$enable_static"
16368 p=${PACKAGE-default}
16370 yes) enable_static=yes ;;
16371 no) enable_static=no ;;
16374 # Look at the argument we got. We use all the common list separators.
16375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16376 for pkg in $enableval; do
16378 if test "X
$pkg" = "X
$p"; then
16397 # Check whether --with-pic or --without-pic was given.
16398 if test "${with_pic+set}" = set; then
16399 withval="$with_pic"
16400 pic_mode="$withval"
16405 test -z "$pic_mode" && pic_mode=default
16413 # Check whether --enable-fast-install or --disable-fast-install was given.
16414 if test "${enable_fast_install+set}" = set; then
16415 enableval="$enable_fast_install"
16416 p=${PACKAGE-default}
16418 yes) enable_fast_install=yes ;;
16419 no) enable_fast_install=no ;;
16421 enable_fast_install=no
16422 # Look at the argument we got. We use all the common list separators.
16423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16424 for pkg in $enableval; do
16426 if test "X
$pkg" = "X
$p"; then
16427 enable_fast_install=yes
16434 enable_fast_install=yes
16446 # This can be used to rebuild libtool when needed
16447 LIBTOOL_DEPS="$ltmain"
16449 # Always use our own libtool.
16450 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16476 test -z "$LN_S" && LN_S="ln -s"
16491 if test -n "${ZSH_VERSION+set}" ; then
16492 setopt NO_GLOB_SUBST
16495 echo "$as_me:$LINENO: checking
for objdir
" >&5
16496 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6
16497 if test "${lt_cv_objdir+set}" = set; then
16498 echo $ECHO_N "(cached
) $ECHO_C" >&6
16500 rm -f .libs 2>/dev/null
16501 mkdir .libs 2>/dev/null
16502 if test -d .libs; then
16505 # MS-DOS does not allow filenames that begin with a dot.
16508 rmdir .libs 2>/dev/null
16510 echo "$as_me:$LINENO: result
: $lt_cv_objdir" >&5
16511 echo "${ECHO_T}$lt_cv_objdir" >&6
16512 objdir=$lt_cv_objdir
16518 cat >>confdefs.h <<_ACEOF
16519 #define LT_OBJDIR "$lt_cv_objdir/"
16540 # AIX sometimes has problems with the GCC collect2 program. For some
16541 # reason, if we set the COLLECT_NAMES environment variable, the problems
16542 # vanish in a puff of smoke.
16543 if test "X
${COLLECT_NAMES+set}" != Xset; then
16545 export COLLECT_NAMES
16550 # Sed substitution that helps us do robust quoting. It backslashifies
16551 # metacharacters that are still active within double-quoted strings.
16552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16554 # Same as above, but do not quote variable references.
16555 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
16557 # Sed substitution to delay expansion of an escaped shell variable in a
16558 # double_quote_subst'ed string.
16559 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
16561 # Sed substitution to delay expansion of an escaped single quote.
16562 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
16564 # Sed substitution to avoid accidental globbing in evaled expressions
16565 no_glob_subst
='s/\*/\\\*/g'
16567 # Global variables:
16569 can_build_shared
=yes
16571 # All known linkers require a `.a' archive for static linking (except MSVC,
16572 # which needs '.lib').
16575 with_gnu_ld
="$lt_cv_prog_gnu_ld"
16578 old_CFLAGS
="$CFLAGS"
16580 # Set sane defaults for various variables
16581 test -z "$CC" && CC
=cc
16582 test -z "$LTCC" && LTCC
=$CC
16583 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
16584 test -z "$LD" && LD
=ld
16585 test -z "$ac_objext" && ac_objext
=o
16587 for cc_temp
in $compiler""; do
16589 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16590 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16595 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16598 # Only perform the check for file, if the check method requires it
16599 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
16600 case $deplibs_check_method in
16602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16603 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16604 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16613 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16614 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16615 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16616 for ac_dir
in $ac_dummy; do
16618 test -z "$ac_dir" && ac_dir
=.
16619 if test -f $ac_dir/${ac_tool_prefix}file; then
16620 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
16621 if test -n "$file_magic_test_file"; then
16622 case $deplibs_check_method in
16624 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16625 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16626 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16627 $EGREP "$file_magic_regex" > /dev
/null
; then
16632 *** Warning: the command libtool uses to detect shared libraries,
16633 *** $file_magic_cmd, produces output that libtool cannot recognize.
16634 *** The result is that libtool may fail to recognize shared libraries
16635 *** as such. This will affect the creation of libtool libraries that
16636 *** depend on shared libraries, but programs linked with such libtool
16637 *** libraries will work regardless of this problem. Nevertheless, you
16638 *** may want to report the problem to your system manager and/or to
16639 *** bug-libtool@gnu.org
16649 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16654 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16655 if test -n "$MAGIC_CMD"; then
16656 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16657 echo "${ECHO_T}$MAGIC_CMD" >&6
16659 echo "$as_me:$LINENO: result: no" >&5
16660 echo "${ECHO_T}no" >&6
16667 if test -z "$lt_cv_path_MAGIC_CMD"; then
16668 if test -n "$ac_tool_prefix"; then
16669 echo "$as_me:$LINENO: checking for file" >&5
16670 echo $ECHO_N "checking for file... $ECHO_C" >&6
16671 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
16679 lt_save_MAGIC_CMD
="$MAGIC_CMD"
16680 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16681 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
16682 for ac_dir
in $ac_dummy; do
16684 test -z "$ac_dir" && ac_dir
=.
16685 if test -f $ac_dir/file; then
16686 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
16687 if test -n "$file_magic_test_file"; then
16688 case $deplibs_check_method in
16690 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16691 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16692 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
16693 $EGREP "$file_magic_regex" > /dev
/null
; then
16698 *** Warning: the command libtool uses to detect shared libraries,
16699 *** $file_magic_cmd, produces output that libtool cannot recognize.
16700 *** The result is that libtool may fail to recognize shared libraries
16701 *** as such. This will affect the creation of libtool libraries that
16702 *** depend on shared libraries, but programs linked with such libtool
16703 *** libraries will work regardless of this problem. Nevertheless, you
16704 *** may want to report the problem to your system manager and/or to
16705 *** bug-libtool@gnu.org
16715 MAGIC_CMD
="$lt_save_MAGIC_CMD"
16720 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
16721 if test -n "$MAGIC_CMD"; then
16722 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16723 echo "${ECHO_T}$MAGIC_CMD" >&6
16725 echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6
16739 # Use C for the default configuration in the libtool script
16743 ac_cpp
='$CPP $CPPFLAGS'
16744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16749 # Source file extension for C test sources.
16752 # Object file extension for compiled C test sources.
16756 # Code to be used in simple compile tests
16757 lt_simple_compile_test_code
="int some_variable = 0;"
16759 # Code to be used in simple link tests
16760 lt_simple_link_test_code
='int main(){return(0);}'
16768 # If no C compiler was specified, use CC.
16771 # If no C compiler flags were specified, use CFLAGS.
16772 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16774 # Allow CC to be a program name with arguments.
16777 # Save the default compiler, since it gets overwritten when the other
16778 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16779 compiler_DEFAULT
=$CC
16781 # save warnings/boilerplate of simple test code
16782 ac_outfile
=conftest.
$ac_objext
16783 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16784 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16785 _lt_compiler_boilerplate
=`cat conftest.err`
16788 ac_outfile
=conftest.
$ac_objext
16789 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16790 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16791 _lt_linker_boilerplate
=`cat conftest.err`
16796 ## There is no encapsulation within the following macros, do not change
16797 ## the running order or otherwise move them around unless you know exactly
16798 ## what you are doing...
16799 if test -n "$compiler"; then
16801 lt_prog_compiler_no_builtin_flag
=
16803 if test "$GCC" = yes; then
16804 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
16806 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16807 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 lt_cv_prog_compiler_rtti_exceptions
=no
16812 ac_outfile
=conftest.
$ac_objext
16813 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16814 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16815 # Insert the option either (1) after the last *FLAGS variable, or
16816 # (2) before a word containing "conftest.", or (3) at the end.
16817 # Note that $ac_compile itself does not contain backslashes and begins
16818 # with a dollar sign (not a hyphen), so the echo should work correctly.
16819 # The option is referenced via a variable to avoid confusing sed.
16820 lt_compile
=`echo "$ac_compile" | $SED \
16821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16823 -e 's:$: $lt_compiler_flag:'`
16824 (eval echo "\"\$as_me:16824: $lt_compile\"" >&5)
16825 (eval "$lt_compile" 2>conftest.err
)
16827 cat conftest.err
>&5
16828 echo "$as_me:16828: \$? = $ac_status" >&5
16829 if (exit $ac_status) && test -s "$ac_outfile"; then
16830 # The compiler can only warn and ignore the option if not recognized
16831 # So say no if there are warnings other than the usual output.
16832 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16833 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16834 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16835 lt_cv_prog_compiler_rtti_exceptions
=yes
16841 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16842 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16844 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16845 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16857 lt_prog_compiler_wl
=
16858 lt_prog_compiler_pic
=
16859 lt_prog_compiler_static
=
16861 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16862 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16864 if test "$GCC" = yes; then
16865 lt_prog_compiler_wl
='-Wl,'
16866 lt_prog_compiler_static
='-static'
16870 # All AIX code is PIC.
16871 if test "$host_cpu" = ia64
; then
16872 # AIX 5 now supports IA64 processor
16873 lt_prog_compiler_static
='-Bstatic'
16880 # see comment about AmigaOS4 .so support
16881 lt_prog_compiler_pic
='-fPIC'
16884 # FIXME: we need at least 68020 code to build shared libraries, but
16885 # adding the `-m68020' flag to GCC prevents building anything better,
16887 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
16892 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16893 # PIC is the default for these OSes.
16896 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
16897 # This hack is so that the source file can tell whether it is being
16898 # built for inclusion in a dll (and should export symbols for example).
16899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16900 # (--disable-auto-import) libraries
16901 lt_prog_compiler_pic
='-DDLL_EXPORT'
16904 darwin
* | rhapsody
*)
16905 # PIC is the default on this platform
16906 # Common symbols not allowed in MH_DYLIB files
16907 lt_prog_compiler_pic
='-fno-common'
16911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16913 # sets the default TLS model and affects inlining.
16919 lt_prog_compiler_pic
='-fPIC'
16925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16926 # Instead, we relocate shared libraries at runtime.
16930 # Just because we use GCC doesn't mean we suddenly get shared libraries
16931 # on systems that don't support them.
16932 lt_prog_compiler_can_build_shared
=no
16937 # QNX uses GNU C++, but need to define -shared option too, otherwise
16938 # it will coredump.
16939 lt_prog_compiler_pic
='-fPIC -shared'
16943 if test -d /usr
/nec
; then
16944 lt_prog_compiler_pic
=-Kconform_pic
16949 lt_prog_compiler_pic
='-fPIC'
16953 # PORTME Check for flag to pass linker flags through the system compiler.
16956 lt_prog_compiler_wl
='-Wl,'
16957 if test "$host_cpu" = ia64
; then
16958 # AIX 5 now supports IA64 processor
16959 lt_prog_compiler_static
='-Bstatic'
16961 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
16965 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
16966 # This hack is so that the source file can tell whether it is being
16967 # built for inclusion in a dll (and should export symbols for example).
16968 lt_prog_compiler_pic
='-DDLL_EXPORT'
16971 hpux9
* | hpux10
* | hpux11
*)
16972 lt_prog_compiler_wl
='-Wl,'
16973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16974 # not for PA HP-UX.
16980 lt_prog_compiler_pic
='+Z'
16983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16984 lt_prog_compiler_static
='${wl}-a ${wl}archive'
16987 irix5
* | irix6
* | nonstopux
*)
16988 lt_prog_compiler_wl
='-Wl,'
16989 # PIC (with -KPIC) is the default.
16990 lt_prog_compiler_static
='-non_shared'
16993 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16994 case $cc_basename in
16995 # old Intel for x86_64 which still supported -KPIC.
16997 lt_prog_compiler_wl
='-Wl,'
16998 lt_prog_compiler_pic
='-KPIC'
16999 lt_prog_compiler_static
='-static'
17001 # icc used to be incompatible with GCC.
17002 # ICC 10 doesn't accept -KPIC any more.
17004 lt_prog_compiler_wl
='-Wl,'
17005 lt_prog_compiler_pic
='-fPIC'
17006 lt_prog_compiler_static
='-static'
17008 # Lahey Fortran 8.1.
17010 lt_prog_compiler_wl
='-Wl,'
17011 lt_prog_compiler_pic
='--shared'
17012 lt_prog_compiler_static
='--static'
17014 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17015 # Portland Group compilers (*not* the Pentium gcc compiler,
17016 # which looks to be a dead project)
17017 lt_prog_compiler_wl
='-Wl,'
17018 lt_prog_compiler_pic
='-fpic'
17019 lt_prog_compiler_static
='-Bstatic'
17022 lt_prog_compiler_wl
='-Wl,'
17023 # All Alpha code is PIC.
17024 lt_prog_compiler_static
='-non_shared'
17027 # IBM XL C 8.0/Fortran 10.1 on PPC
17028 lt_prog_compiler_wl
='-Wl,'
17029 lt_prog_compiler_pic
='-qpic'
17030 lt_prog_compiler_static
='-qstaticlink'
17033 case `$CC -V 2>&1 | sed 5q` in
17036 lt_prog_compiler_pic
='-KPIC'
17037 lt_prog_compiler_static
='-Bstatic'
17038 lt_prog_compiler_wl
='-Wl,'
17041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17042 lt_prog_compiler_pic
='-KPIC'
17043 lt_prog_compiler_static
='-Bstatic'
17044 lt_prog_compiler_wl
=''
17052 lt_prog_compiler_pic
='-KPIC'
17053 lt_prog_compiler_static
='-Bstatic'
17057 # QNX uses GNU C++, but need to define -shared option too, otherwise
17058 # it will coredump.
17059 lt_prog_compiler_pic
='-fPIC -shared'
17062 osf3
* | osf4
* | osf5
*)
17063 lt_prog_compiler_wl
='-Wl,'
17064 # All OSF/1 code is PIC.
17065 lt_prog_compiler_static
='-non_shared'
17069 lt_prog_compiler_static
='-non_shared'
17073 lt_prog_compiler_pic
='-KPIC'
17074 lt_prog_compiler_static
='-Bstatic'
17075 case $cc_basename in
17076 f77
* | f90
* | f95
*)
17077 lt_prog_compiler_wl
='-Qoption ld ';;
17079 lt_prog_compiler_wl
='-Wl,';;
17084 lt_prog_compiler_wl
='-Qoption ld '
17085 lt_prog_compiler_pic
='-PIC'
17086 lt_prog_compiler_static
='-Bstatic'
17089 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17090 lt_prog_compiler_wl
='-Wl,'
17091 lt_prog_compiler_pic
='-KPIC'
17092 lt_prog_compiler_static
='-Bstatic'
17096 if test -d /usr
/nec
;then
17097 lt_prog_compiler_pic
='-Kconform_pic'
17098 lt_prog_compiler_static
='-Bstatic'
17102 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17103 lt_prog_compiler_wl
='-Wl,'
17104 lt_prog_compiler_pic
='-KPIC'
17105 lt_prog_compiler_static
='-Bstatic'
17109 lt_prog_compiler_wl
='-Wl,'
17110 lt_prog_compiler_can_build_shared
=no
17114 lt_prog_compiler_pic
='-pic'
17115 lt_prog_compiler_static
='-Bstatic'
17119 lt_prog_compiler_can_build_shared
=no
17125 # For platforms which do not support PIC, -DPIC is meaningless:
17127 lt_prog_compiler_pic
=
17130 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
17133 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17134 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17142 # Check to make sure the PIC flag actually works.
17144 if test -n "$lt_prog_compiler_pic"; then
17145 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17146 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17147 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 lt_cv_prog_compiler_pic_works
=no
17151 ac_outfile
=conftest.
$ac_objext
17152 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17153 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
17154 # Insert the option either (1) after the last *FLAGS variable, or
17155 # (2) before a word containing "conftest.", or (3) at the end.
17156 # Note that $ac_compile itself does not contain backslashes and begins
17157 # with a dollar sign (not a hyphen), so the echo should work correctly.
17158 # The option is referenced via a variable to avoid confusing sed.
17159 lt_compile
=`echo "$ac_compile" | $SED \
17160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17162 -e 's:$: $lt_compiler_flag:'`
17163 (eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
17164 (eval "$lt_compile" 2>conftest.err
)
17166 cat conftest.err
>&5
17167 echo "$as_me:17167: \$? = $ac_status" >&5
17168 if (exit $ac_status) && test -s "$ac_outfile"; then
17169 # The compiler can only warn and ignore the option if not recognized
17170 # So say no if there are warnings other than the usual output.
17171 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17172 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17173 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17174 lt_cv_prog_compiler_pic_works
=yes
17180 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17181 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17183 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
17184 case $lt_prog_compiler_pic in
17186 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
17189 lt_prog_compiler_pic
=
17190 lt_prog_compiler_can_build_shared
=no
17201 # Check to make sure the static flag actually works.
17203 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
17204 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17205 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17206 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 lt_cv_prog_compiler_static_works
=no
17210 save_LDFLAGS
="$LDFLAGS"
17211 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17212 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17213 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17214 # The linker can only warn and ignore the option if not recognized
17215 # So say no if there are warnings
17216 if test -s conftest.err
; then
17217 # Append any errors to the config.log.
17218 cat conftest.err
1>&5
17219 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17220 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17221 if diff conftest.exp conftest.er2
>/dev
/null
; then
17222 lt_cv_prog_compiler_static_works
=yes
17225 lt_cv_prog_compiler_static_works
=yes
17229 LDFLAGS
="$save_LDFLAGS"
17232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17233 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17235 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
17238 lt_prog_compiler_static
=
17247 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17248 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17249 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 lt_cv_prog_compiler_c_o
=no
17253 $RM -r conftest
2>/dev
/null
17257 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17259 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17260 # Insert the option either (1) after the last *FLAGS variable, or
17261 # (2) before a word containing "conftest.", or (3) at the end.
17262 # Note that $ac_compile itself does not contain backslashes and begins
17263 # with a dollar sign (not a hyphen), so the echo should work correctly.
17264 lt_compile
=`echo "$ac_compile" | $SED \
17265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17267 -e 's:$: $lt_compiler_flag:'`
17268 (eval echo "\"\$as_me:17268: $lt_compile\"" >&5)
17269 (eval "$lt_compile" 2>out
/conftest.err
)
17271 cat out
/conftest.err
>&5
17272 echo "$as_me:17272: \$? = $ac_status" >&5
17273 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17275 # The compiler can only warn and ignore the option if not recognized
17276 # So say no if there are warnings
17277 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17278 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17279 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17280 lt_cv_prog_compiler_c_o
=yes
17285 # SGI C++ compiler will create directory out/ii_files/ for
17286 # template instantiation
17287 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17288 $RM out
/* && rmdir out
17294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17295 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17302 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17304 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 lt_cv_prog_compiler_c_o
=no
17308 $RM -r conftest
2>/dev
/null
17312 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17314 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17315 # Insert the option either (1) after the last *FLAGS variable, or
17316 # (2) before a word containing "conftest.", or (3) at the end.
17317 # Note that $ac_compile itself does not contain backslashes and begins
17318 # with a dollar sign (not a hyphen), so the echo should work correctly.
17319 lt_compile
=`echo "$ac_compile" | $SED \
17320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17322 -e 's:$: $lt_compiler_flag:'`
17323 (eval echo "\"\$as_me:17323: $lt_compile\"" >&5)
17324 (eval "$lt_compile" 2>out
/conftest.err
)
17326 cat out
/conftest.err
>&5
17327 echo "$as_me:17327: \$? = $ac_status" >&5
17328 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17330 # The compiler can only warn and ignore the option if not recognized
17331 # So say no if there are warnings
17332 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17333 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17334 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17335 lt_cv_prog_compiler_c_o
=yes
17340 # SGI C++ compiler will create directory out/ii_files/ for
17341 # template instantiation
17342 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
17343 $RM out
/* && rmdir out
17349 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17350 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17355 hard_links
="nottested"
17356 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
17357 # do not overwrite the value of need_locks provided by the user
17358 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17359 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17362 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17364 ln conftest.a conftest.b
2>&5 || hard_links
=no
17365 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17366 echo "$as_me:$LINENO: result: $hard_links" >&5
17367 echo "${ECHO_T}$hard_links" >&6
17368 if test "$hard_links" = no
; then
17369 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17370 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17382 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17383 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17386 allow_undefined_flag
=
17387 always_export_symbols
=no
17389 archive_expsym_cmds
=
17390 compiler_needs_object
=no
17391 enable_shared_with_static_runtimes
=no
17392 export_dynamic_flag_spec
=
17393 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17394 hardcode_automatic
=no
17396 hardcode_direct_absolute
=no
17397 hardcode_libdir_flag_spec
=
17398 hardcode_libdir_flag_spec_ld
=
17399 hardcode_libdir_separator
=
17400 hardcode_minus_L
=no
17401 hardcode_shlibpath_var
=unsupported
17403 link_all_deplibs
=unknown
17405 module_expsym_cmds
=
17406 old_archive_from_new_cmds
=
17407 old_archive_from_expsyms_cmds
=
17408 thread_safe_flag_spec
=
17409 whole_archive_flag_spec
=
17410 # include_expsyms should be a list of space-separated symbols to be *always*
17411 # included in the symbol list
17413 # exclude_expsyms can be an extended regexp of symbols to exclude
17414 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17416 # as well as any symbol that contains `d'.
17417 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17419 # platforms (ab)use it in PIC code, but their linkers get confused if
17420 # the symbol is explicitly referenced. Since portable code cannot
17421 # rely on this symbol name, it's probably fine to never include it in
17422 # preloaded symbol tables.
17423 # Exclude shared library initialization/finalization symbols.
17424 extract_expsyms_cmds
=
17427 cygwin
* | mingw
* | pw32
* | cegcc
*)
17428 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17429 # When not using gcc, we currently assume that we are using
17430 # Microsoft Visual C++.
17431 if test "$GCC" != yes; then
17436 # we just hope/assume this is gcc and not c89 (= MSVC++)
17445 if test "$with_gnu_ld" = yes; then
17446 # If archive_cmds runs LD, not CC, wlarc should be empty
17449 # Set some defaults for GNU ld with shared library support. These
17450 # are reset later if shared libraries are not supported. Putting them
17451 # here allows them to be overridden if necessary.
17452 runpath_var
=LD_RUN_PATH
17453 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17454 export_dynamic_flag_spec
='${wl}--export-dynamic'
17455 # ancient GNU ld didn't support --whole-archive et. al.
17456 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
17457 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17459 whole_archive_flag_spec
=
17461 supports_anon_versioning
=no
17462 case `$LD -v 2>&1` in
17463 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17464 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17465 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17466 *\
2.11.
*) ;; # other 2.11 versions
17467 *) supports_anon_versioning
=yes ;;
17470 # See if GNU ld supports shared libraries.
17473 # On AIX/PPC, the GNU linker is very broken
17474 if test "$host_cpu" != ia64
; then
17478 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17479 *** to be unable to reliably create shared libraries on AIX.
17480 *** Therefore, libtool is disabling shared libraries support. If you
17481 *** really care for shared libraries, you may want to modify your PATH
17482 *** so that a non-GNU linker is found, and then restart.
17491 # see comment about AmigaOS4 .so support
17492 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493 archive_expsym_cmds
=''
17496 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)'
17497 hardcode_libdir_flag_spec
='-L$libdir'
17498 hardcode_minus_L
=yes
17504 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17505 allow_undefined_flag
=unsupported
17506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17507 # support --undefined. This deserves some investigation. FIXME
17508 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17514 cygwin
* | mingw
* | pw32
* | cegcc
*)
17515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17516 # as there is no search path for DLLs.
17517 hardcode_libdir_flag_spec
='-L$libdir'
17518 allow_undefined_flag
=unsupported
17519 always_export_symbols
=no
17520 enable_shared_with_static_runtimes
=yes
17521 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17523 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17524 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17525 # If the export-symbols file already is a .def file (1st line
17526 # is EXPORTS), use it as is; otherwise, prepend...
17527 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17528 cp $export_symbols $output_objdir/$soname.def;
17530 echo EXPORTS > $output_objdir/$soname.def;
17531 cat $export_symbols >> $output_objdir/$soname.def;
17533 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17541 hardcode_shlibpath_var
=no
17542 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17543 export_dynamic_flag_spec
='${wl}-E'
17544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17545 # Instead, shared libraries are loaded at an image base (0x10000000 by
17546 # default) and relocated if they conflict, which is a slow very memory
17547 # consuming and fragmenting process. To avoid this, we pick a random,
17548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17549 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17550 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17551 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'
17554 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17556 if test "$host_os" = linux-dietlibc
; then
17557 case $cc_basename in
17558 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17561 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17562 && test "$tmp_diet" = no
17565 tmp_sharedflag
='-shared'
17566 case $cc_basename,$host_cpu in
17567 pgcc
*) # Portland Group C compiler
17568 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'
17569 tmp_addflag
=' $pic_flag'
17571 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17572 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'
17573 tmp_addflag
=' $pic_flag -Mnomain' ;;
17574 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17575 tmp_addflag
=' -i_dynamic' ;;
17576 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17577 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17578 ifc
* | ifort
*) # Intel Fortran compiler
17579 tmp_addflag
=' -nofor_main' ;;
17580 lf95
*) # Lahey Fortran 8.1
17581 whole_archive_flag_spec
=
17582 tmp_sharedflag
='--shared' ;;
17583 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17584 tmp_sharedflag
='-qmkshrobj'
17587 case `$CC -V 2>&1 | sed 5q` in
17588 *Sun\ C
*) # Sun C 5.9
17589 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'
17590 compiler_needs_object
=yes
17591 tmp_sharedflag
='-G' ;;
17592 *Sun\ F
*) # Sun Fortran 8.3
17593 tmp_sharedflag
='-G' ;;
17595 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17597 if test "x$supports_anon_versioning" = xyes
; then
17598 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17600 echo "local: *; };" >> $output_objdir/$libname.ver~
17601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17604 case $cc_basename in
17606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17607 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17608 hardcode_libdir_flag_spec
=
17609 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17610 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17611 if test "x$supports_anon_versioning" = xyes
; then
17612 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17614 echo "local: *; };" >> $output_objdir/$libname.ver~
17615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17625 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17626 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17629 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17630 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17635 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17640 *** create shared libraries on Solaris systems. Therefore, libtool
17641 *** is disabling shared libraries support. We urge you to upgrade GNU
17642 *** binutils to release 2.9.1 or newer. Another option is to modify
17643 *** your PATH or compiler configuration so that the native linker is
17644 *** used, and then restart.
17647 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17649 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17656 case `$LD -v 2>&1` in
17657 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17662 *** reliably create shared libraries on SCO systems. Therefore, libtool
17663 *** is disabling shared libraries support. We urge you to upgrade GNU
17664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17665 *** your PATH or compiler configuration so that the native linker is
17666 *** used, and then restart.
17671 # For security reasons, it is highly recommended that you always
17672 # use absolute paths for naming shared libraries, and exclude the
17673 # DT_RUNPATH tag from executables and libraries. But doing so
17674 # requires that you compile everything twice, which is a pain.
17675 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17676 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17677 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17678 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17687 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17689 hardcode_direct
=yes
17690 hardcode_shlibpath_var
=no
17694 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17695 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17696 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17703 if test "$ld_shlibs" = no
; then
17705 hardcode_libdir_flag_spec
=
17706 export_dynamic_flag_spec
=
17707 whole_archive_flag_spec
=
17710 # PORTME fill in a description of your system's linker (not GNU ld)
17713 allow_undefined_flag
=unsupported
17714 always_export_symbols
=yes
17715 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'
17716 # Note: this linker hardcodes the directories in LIBPATH if there
17717 # are no directories specified by -L.
17718 hardcode_minus_L
=yes
17719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17720 # Neither direct hardcoding nor static linking is supported with a
17722 hardcode_direct
=unsupported
17727 if test "$host_cpu" = ia64
; then
17728 # On IA64, the linker does run time linking by default, so we don't
17729 # have to do anything special.
17730 aix_use_runtimelinking
=no
17731 exp_sym_flag
='-Bexport'
17734 # If we're using GNU nm, then we don't want the "-C" option.
17735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17736 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17737 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'
17739 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'
17741 aix_use_runtimelinking
=no
17743 # Test if we are trying to use run time linking or normal
17744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17745 # need to do runtime linking.
17746 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17747 for ld_flag
in $LDFLAGS; do
17748 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17749 aix_use_runtimelinking
=yes
17756 exp_sym_flag
='-bexport'
17757 no_entry_flag
='-bnoentry'
17760 # When large executables or shared objects are built, AIX ld can
17761 # have problems creating the table of contents. If linking a library
17762 # or program results in "error TOC overflow" add -mminimal-toc to
17763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17767 hardcode_direct
=yes
17768 hardcode_direct_absolute
=yes
17769 hardcode_libdir_separator
=':'
17770 link_all_deplibs
=yes
17771 file_list_spec
='${wl}-f,'
17773 if test "$GCC" = yes; then
17774 case $host_os in aix4.
[012]|aix4.
[012].
*)
17775 # We only want to do this on AIX 4.2 and lower, the check
17776 # below for broken collect2 doesn't work under 4.3+
17777 collect2name
=`${CC} -print-prog-name=collect2`
17778 if test -f "$collect2name" &&
17779 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17781 # We have reworked collect2
17784 # We have old collect2
17785 hardcode_direct
=unsupported
17786 # It fails to find uninstalled libraries when the uninstalled
17787 # path is not listed in the libpath. Setting hardcode_minus_L
17788 # to unsupported forces relinking
17789 hardcode_minus_L
=yes
17790 hardcode_libdir_flag_spec
='-L$libdir'
17791 hardcode_libdir_separator
=
17795 shared_flag
='-shared'
17796 if test "$aix_use_runtimelinking" = yes; then
17797 shared_flag
="$shared_flag "'${wl}-G'
17801 if test "$host_cpu" = ia64
; then
17802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17803 # chokes on -Wl,-G. The following line is correct:
17806 if test "$aix_use_runtimelinking" = yes; then
17807 shared_flag
='${wl}-G'
17809 shared_flag
='${wl}-bM:SRE'
17814 export_dynamic_flag_spec
='${wl}-bexpall'
17815 # It seems that -bexpall does not export symbols beginning with
17816 # underscore (_), so it is better to generate a list of symbols to export.
17817 always_export_symbols
=yes
17818 if test "$aix_use_runtimelinking" = yes; then
17819 # Warning - without using the other runtime loading flags (-brtl),
17820 # -berok will link without error, but may produce a broken library.
17821 allow_undefined_flag
='-berok'
17822 # Determine the default libpath from the value encoded in an
17823 # empty executable.
17824 cat >conftest.
$ac_ext <<_ACEOF
17827 cat confdefs.h
>>conftest.
$ac_ext
17828 cat >>conftest.
$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17839 rm -f conftest.
$ac_objext conftest
$ac_exeext
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>conftest.er1
17843 grep -v '^ *+' conftest.er1
>conftest.err
17845 cat conftest.err
>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try
='test -z "$ac_c_werror_flag"
17849 || test ! -s conftest.err'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try
='test -s conftest$ac_exeext'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17862 lt_aix_libpath_sed
='
17863 /Import File Strings/,/^$/ {
17869 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17870 # Check for a 64-bit object if we didn't find anything.
17871 if test -z "$aix_libpath"; then
17872 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.
$ac_ext >&5
17879 rm -f conftest.err conftest.
$ac_objext \
17880 conftest
$ac_exeext conftest.
$ac_ext
17881 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17883 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17884 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"
17886 if test "$host_cpu" = ia64
; then
17887 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17888 allow_undefined_flag
="-z nodefs"
17889 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"
17891 # Determine the default libpath from the value encoded in an
17892 # empty executable.
17893 cat >conftest.
$ac_ext <<_ACEOF
17896 cat confdefs.h
>>conftest.
$ac_ext
17897 cat >>conftest.
$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17908 rm -f conftest.
$ac_objext conftest
$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1
>conftest.err
17914 cat conftest.err
>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try
='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try
='test -s conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17931 lt_aix_libpath_sed
='
17932 /Import File Strings/,/^$/ {
17938 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17939 # Check for a 64-bit object if we didn't find anything.
17940 if test -z "$aix_libpath"; then
17941 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.
$ac_ext >&5
17948 rm -f conftest.err conftest.
$ac_objext \
17949 conftest
$ac_exeext conftest.
$ac_ext
17950 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17952 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17953 # Warning - without using the other run time loading flags,
17954 # -berok will link without error, but may produce a broken library.
17955 no_undefined_flag
=' ${wl}-bernotok'
17956 allow_undefined_flag
=' ${wl}-berok'
17957 # Exported symbols can be pulled into shared objects from archives
17958 whole_archive_flag_spec
='$convenience'
17959 archive_cmds_need_lc
=yes
17960 # This is similar to how AIX traditionally builds its shared libraries.
17961 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'
17969 # see comment about AmigaOS4 .so support
17970 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971 archive_expsym_cmds
=''
17974 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)'
17975 hardcode_libdir_flag_spec
='-L$libdir'
17976 hardcode_minus_L
=yes
17982 export_dynamic_flag_spec
=-rdynamic
17985 cygwin
* | mingw
* | pw32
* | cegcc
*)
17986 # When not using gcc, we currently assume that we are using
17987 # Microsoft Visual C++.
17988 # hardcode_libdir_flag_spec is actually meaningless, as there is
17989 # no search path for DLLs.
17990 hardcode_libdir_flag_spec
=' '
17991 allow_undefined_flag
=unsupported
17992 # Tell ltmain to make .lib files, not .a files.
17994 # Tell ltmain to make .dll files, not .so files.
17996 # FIXME: Setting linknames here is a bad hack.
17997 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17998 # The linker will automatically build a .lib file if we build a DLL.
17999 old_archive_from_new_cmds
='true'
18000 # FIXME: Should let the user specify the lib program.
18001 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18002 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18003 enable_shared_with_static_runtimes
=yes
18006 darwin
* | rhapsody
*)
18009 archive_cmds_need_lc
=no
18011 hardcode_automatic
=yes
18012 hardcode_shlibpath_var
=unsupported
18013 whole_archive_flag_spec
=''
18014 link_all_deplibs
=yes
18015 allow_undefined_flag
="$_lt_dar_allow_undefined"
18016 case $cc_basename in
18017 ifort
*) _lt_dar_can_shared
=yes ;;
18018 *) _lt_dar_can_shared
=$GCC ;;
18020 if test "$_lt_dar_can_shared" = "yes"; then
18021 output_verbose_link_cmd
=echo
18022 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18023 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18024 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}"
18025 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}"
18034 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18035 hardcode_libdir_flag_spec
='-L$libdir'
18036 hardcode_shlibpath_var
=no
18043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18044 # support. Future versions do this automatically, but an explicit c++rt0.o
18045 # does not break anything, and helps significantly (at the cost of a little
18048 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18049 hardcode_libdir_flag_spec
='-R$libdir'
18050 hardcode_direct
=yes
18051 hardcode_shlibpath_var
=no
18054 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18056 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18057 hardcode_direct
=yes
18058 hardcode_minus_L
=yes
18059 hardcode_shlibpath_var
=no
18062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18063 freebsd
* | dragonfly
*)
18064 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18065 hardcode_libdir_flag_spec
='-R$libdir'
18066 hardcode_direct
=yes
18067 hardcode_shlibpath_var
=no
18071 if test "$GCC" = yes; then
18072 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'
18074 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'
18076 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18077 hardcode_libdir_separator
=:
18078 hardcode_direct
=yes
18080 # hardcode_minus_L: Not really in the search PATH,
18081 # but as the default location of the library.
18082 hardcode_minus_L
=yes
18083 export_dynamic_flag_spec
='${wl}-E'
18087 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18088 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18090 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18092 if test "$with_gnu_ld" = no
; then
18093 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18094 hardcode_libdir_flag_spec_ld
='+b $libdir'
18095 hardcode_libdir_separator
=:
18096 hardcode_direct
=yes
18097 hardcode_direct_absolute
=yes
18098 export_dynamic_flag_spec
='${wl}-E'
18099 # hardcode_minus_L: Not really in the search PATH,
18100 # but as the default location of the library.
18101 hardcode_minus_L
=yes
18106 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18109 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18121 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18124 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18131 if test "$with_gnu_ld" = no
; then
18132 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18133 hardcode_libdir_separator
=:
18138 hardcode_shlibpath_var
=no
18141 hardcode_direct
=yes
18142 hardcode_direct_absolute
=yes
18143 export_dynamic_flag_spec
='${wl}-E'
18145 # hardcode_minus_L: Not really in the search PATH,
18146 # but as the default location of the library.
18147 hardcode_minus_L
=yes
18153 irix5
* | irix6
* | nonstopux
*)
18154 if test "$GCC" = yes; then
18155 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'
18156 # Try to use the -exported_symbol ld option, if it does not
18157 # work, assume that -exports_file does not work either and
18158 # implicitly export all symbols.
18159 save_LDFLAGS
="$LDFLAGS"
18160 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18161 cat >conftest.
$ac_ext <<_ACEOF
18164 rm -f conftest.
$ac_objext conftest
$ac_exeext
18165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18166 (eval $ac_link) 2>conftest.er1
18168 grep -v '^ *+' conftest.er1
>conftest.err
18170 cat conftest.err
>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } &&
18173 { ac_try
='test -z "$ac_c_werror_flag"
18174 || test ! -s conftest.err'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } &&
18180 { ac_try
='test -s conftest$ac_exeext'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18186 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'
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.
$ac_ext >&5
18193 rm -f conftest.err conftest.
$ac_objext \
18194 conftest
$ac_exeext conftest.
$ac_ext
18195 LDFLAGS
="$save_LDFLAGS"
18197 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'
18198 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'
18200 archive_cmds_need_lc
='no'
18201 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18202 hardcode_libdir_separator
=:
18204 link_all_deplibs
=yes
18208 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18209 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18211 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18213 hardcode_libdir_flag_spec
='-R$libdir'
18214 hardcode_direct
=yes
18215 hardcode_shlibpath_var
=no
18219 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220 hardcode_direct
=yes
18221 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18222 hardcode_libdir_separator
=:
18223 hardcode_shlibpath_var
=no
18230 if test -f /usr
/libexec
/ld.so
; then
18231 hardcode_direct
=yes
18232 hardcode_shlibpath_var
=no
18233 hardcode_direct_absolute
=yes
18234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18235 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18236 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18237 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18238 export_dynamic_flag_spec
='${wl}-E'
18241 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18242 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18243 hardcode_libdir_flag_spec
='-R$libdir'
18246 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18247 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18257 hardcode_libdir_flag_spec
='-L$libdir'
18258 hardcode_minus_L
=yes
18259 allow_undefined_flag
=unsupported
18260 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'
18261 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18265 if test "$GCC" = yes; then
18266 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18267 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'
18269 allow_undefined_flag
=' -expect_unresolved \*'
18270 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'
18272 archive_cmds_need_lc
='no'
18273 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18274 hardcode_libdir_separator
=:
18277 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18278 if test "$GCC" = yes; then
18279 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18280 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'
18281 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18283 allow_undefined_flag
=' -expect_unresolved \*'
18284 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'
18285 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~
18286 $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'
18288 # Both c and cxx compiler support -rpath directly
18289 hardcode_libdir_flag_spec
='-rpath $libdir'
18291 archive_cmds_need_lc
='no'
18292 hardcode_libdir_separator
=:
18296 no_undefined_flag
=' -z defs'
18297 if test "$GCC" = yes; then
18299 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18301 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18303 case `$CC -V 2>&1` in
18306 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18307 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18312 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18313 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18314 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18318 hardcode_libdir_flag_spec
='-R$libdir'
18319 hardcode_shlibpath_var
=no
18321 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18323 # The compiler driver will combine and reorder linker options,
18324 # but understands `-z linker_flag'. GCC discards it without `$wl',
18325 # but is careful enough not to reorder.
18326 # Supported since Solaris 2.6 (maybe 2.5.1?)
18327 if test "$GCC" = yes; then
18328 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18330 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18334 link_all_deplibs
=yes
18338 if test "x$host_vendor" = xsequent
; then
18339 # Use $CC to link under sequent, because it throws in some extra .o
18340 # files that make .init and .fini sections work.
18341 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18345 hardcode_libdir_flag_spec
='-L$libdir'
18346 hardcode_direct
=yes
18347 hardcode_minus_L
=yes
18348 hardcode_shlibpath_var
=no
18352 case $host_vendor in
18354 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355 hardcode_direct
=yes # is this really true???
18358 ## LD is ld it makes a PLAMLIB
18359 ## CC just makes a GrossModule.
18360 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18361 reload_cmds
='$CC -r -o $output$reload_objs'
18365 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18369 runpath_var
='LD_RUN_PATH'
18370 hardcode_shlibpath_var
=no
18374 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375 hardcode_shlibpath_var
=no
18376 export_dynamic_flag_spec
='-Bexport'
18380 if test -d /usr
/nec
; then
18381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382 hardcode_shlibpath_var
=no
18383 runpath_var
=LD_RUN_PATH
18384 hardcode_runpath_var
=yes
18389 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18390 no_undefined_flag
='${wl}-z,text'
18391 archive_cmds_need_lc
=no
18392 hardcode_shlibpath_var
=no
18393 runpath_var
='LD_RUN_PATH'
18395 if test "$GCC" = yes; then
18396 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18397 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18400 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18404 sysv5
* | sco3.2v5
* | sco5v6
*)
18405 # Note: We can NOT use -z defs as we might desire, because we do not
18406 # link with -lc, and that would cause any symbols used from libc to
18407 # always be unresolved, which means just about no library would
18408 # ever link correctly. If we're not using GNU ld we use -z text
18409 # though, which does catch some bad symbols but isn't as heavy-handed
18411 no_undefined_flag
='${wl}-z,text'
18412 allow_undefined_flag
='${wl}-z,nodefs'
18413 archive_cmds_need_lc
=no
18414 hardcode_shlibpath_var
=no
18415 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18416 hardcode_libdir_separator
=':'
18417 link_all_deplibs
=yes
18418 export_dynamic_flag_spec
='${wl}-Bexport'
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'
18431 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18432 hardcode_libdir_flag_spec
='-L$libdir'
18433 hardcode_shlibpath_var
=no
18441 if test x
$host_vendor = xsni
; then
18443 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18444 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18450 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18451 echo "${ECHO_T}$ld_shlibs" >&6
18452 test "$ld_shlibs" = no
&& can_build_shared
=no
18454 with_gnu_ld
=$with_gnu_ld
18471 # Do we need to explicitly link libc?
18473 case "x$archive_cmds_need_lc" in
18475 # Assume -lc should be added
18476 archive_cmds_need_lc
=yes
18478 if test "$enable_shared" = yes && test "$GCC" = yes; then
18479 case $archive_cmds in
18481 # FIXME: we may have to deal with multi-command sequences.
18484 # Test whether the compiler implicitly links with -lc since on some
18485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18486 # to ld, don't add -lc before -lgcc.
18487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18489 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } 2>conftest.err
; then
18502 libobjs
=conftest.
$ac_objext
18504 wl
=$lt_prog_compiler_wl
18505 pic_flag
=$lt_prog_compiler_pic
18511 lt_save_allow_undefined_flag
=$allow_undefined_flag
18512 allow_undefined_flag
=
18513 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18514 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }
18519 lt_cv_archive_cmds_need_lc
=no
18521 lt_cv_archive_cmds_need_lc
=yes
18523 allow_undefined_flag
=$lt_save_allow_undefined_flag
18525 cat conftest.err
1>&5
18530 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18531 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18532 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18695 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18698 if test "$GCC" = yes; then
18700 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18701 *) lt_awk_arg
="/^libraries:/" ;;
18703 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18704 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
18705 # if the path contains ";" then we assume it to be the separator
18706 # otherwise default to the standard path separator (i.e. ":") - it is
18707 # assumed that no part of a normal pathname contains ";" but that should
18708 # okay in the real world where ";" in dirpaths is itself problematic.
18709 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18711 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18713 # Ok, now we have the path, separated by spaces, we can step through it
18714 # and add multilib dir if necessary.
18715 lt_tmp_lt_search_path_spec
=
18716 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18717 for lt_sys_path
in $lt_search_path_spec; do
18718 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18719 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18721 test -d "$lt_sys_path" && \
18722 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18725 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18726 BEGIN {RS=" "; FS="/|\n";} {
18729 for (lt_i = NF; lt_i > 0; lt_i--) {
18730 if ($lt_i != "" && $lt_i != ".") {
18731 if ($lt_i == "..") {
18734 if (lt_count == 0) {
18735 lt_foo="/" $lt_i lt_foo;
18742 if (lt_foo != "") { lt_freq[lt_foo]++; }
18743 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18745 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
18747 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18749 library_names_spec
=
18750 libname_spec
='lib$name'
18754 postuninstall_cmds
=
18758 shlibpath_overrides_runpath
=unknown
18760 dynamic_linker
="$host_os ld.so"
18761 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18762 need_lib_prefix
=unknown
18763 hardcode_into_libs
=no
18765 # when you set need_version to no, make sure it does not cause -set_version
18766 # flags to be left without arguments
18767 need_version
=unknown
18772 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18773 shlibpath_var
=LIBPATH
18775 # AIX 3 has no versioning support, so we append a major version to the name.
18776 soname_spec
='${libname}${release}${shared_ext}$major'
18783 hardcode_into_libs
=yes
18784 if test "$host_cpu" = ia64
; then
18785 # AIX 5 supports IA64
18786 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18787 shlibpath_var
=LD_LIBRARY_PATH
18789 # With GCC up to 2.95.x, collect2 would create an import file
18790 # for dependence libraries. The import file would start with
18791 # the line `#! .'. This would cause the generated library to
18792 # depend on `.', always an invalid library. This was fixed in
18793 # development snapshots of GCC prior to 3.0.
18795 aix4 | aix4.
[01] | aix4.
[01].
*)
18796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18798 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18801 can_build_shared
=no
18805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18806 # soname into executable. Probably we can add versioning support to
18807 # collect2, so additional links can be useful in future.
18808 if test "$aix_use_runtimelinking" = yes; then
18809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18810 # instead of lib<name>.a to let people know that these are not
18811 # typical AIX shared libraries.
18812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814 # We preserve .a as extension for shared libraries through AIX4.2
18815 # and later when we are not doing run time linking.
18816 library_names_spec
='${libname}${release}.a $libname.a'
18817 soname_spec
='${libname}${release}${shared_ext}$major'
18819 shlibpath_var
=LIBPATH
18826 # Since July 2007 AmigaOS4 officially supports .so libraries.
18827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18831 library_names_spec
='$libname.ixlibrary $libname.a'
18832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18833 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'
18839 library_names_spec
='${libname}${shared_ext}'
18840 dynamic_linker
="$host_os ld.so"
18841 shlibpath_var
=LIBRARY_PATH
18847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18848 soname_spec
='${libname}${release}${shared_ext}$major'
18849 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18850 shlibpath_var
=LD_LIBRARY_PATH
18851 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18852 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18853 # the default ld.so.conf also contains /usr/contrib/lib and
18854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18855 # libtool to hard-code these into programs
18858 cygwin
* | mingw
* | pw32
* | cegcc
*)
18859 version_type
=windows
18864 case $GCC,$host_os in
18865 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18866 library_names_spec
='$libname.dll.a'
18867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18868 postinstall_cmds
='base_file=`basename \${file}`~
18869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18870 dldir=$destdir/`dirname \$dlpath`~
18871 test -d \$dldir || mkdir -p \$dldir~
18872 $install_prog $dir/$dlname \$dldir/$dlname~
18873 chmod a+x \$dldir/$dlname~
18874 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18875 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18877 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18878 dlpath=$dir/\$dldll~
18880 shlibpath_overrides_runpath
=yes
18884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18885 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18886 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18889 # MinGW DLLs use traditional 'lib' prefix
18890 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18891 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18892 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
18893 # It is most probably a Windows format PATH printed by
18894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18895 # path with ; separators, and with drive letters. We can handle the
18896 # drive letters (cygwin fileutils understands them), so leave them,
18897 # especially as we might pass files found there to a mingw objdump,
18898 # which wouldn't understand a cygwinified path. Ahh.
18899 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18901 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18905 # pw32 DLLs use 'pw' prefix rather than 'lib'
18906 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18912 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18915 dynamic_linker
='Win32 ld.exe'
18916 # FIXME: first we should search . and the directory the executable is in
18920 darwin
* | rhapsody
*)
18921 dynamic_linker
="$host_os dyld"
18922 version_type
=darwin
18925 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18926 soname_spec
='${libname}${release}${major}$shared_ext'
18927 shlibpath_overrides_runpath
=yes
18928 shlibpath_var
=DYLD_LIBRARY_PATH
18929 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18931 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18932 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18940 soname_spec
='${libname}${release}${shared_ext}$major'
18941 shlibpath_var
=LD_LIBRARY_PATH
18948 freebsd
* | dragonfly
*)
18949 # DragonFly does not have aout. When/if they implement a new
18950 # versioning mechanism, adjust this.
18951 if test -x /usr
/bin
/objformat
; then
18952 objformat
=`/usr/bin/objformat`
18955 freebsd
[123]*) objformat
=aout
;;
18956 *) objformat
=elf
;;
18959 version_type
=freebsd-
$objformat
18960 case $version_type in
18962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18967 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18971 shlibpath_var
=LD_LIBRARY_PATH
18974 shlibpath_overrides_runpath
=yes
18976 freebsd3.
[01]* | freebsdelf3.
[01]*)
18977 shlibpath_overrides_runpath
=yes
18978 hardcode_into_libs
=yes
18980 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18981 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18982 shlibpath_overrides_runpath
=no
18983 hardcode_into_libs
=yes
18985 *) # from 4.6 on, and DragonFly
18986 shlibpath_overrides_runpath
=yes
18987 hardcode_into_libs
=yes
18996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18997 soname_spec
='${libname}${release}${shared_ext}$major'
18998 shlibpath_var
=LD_LIBRARY_PATH
18999 hardcode_into_libs
=yes
19002 hpux9
* | hpux10
* | hpux11
*)
19003 # Give a soname corresponding to the major version so that dld.sl refuses to
19004 # link against other versions.
19011 hardcode_into_libs
=yes
19012 dynamic_linker
="$host_os dld.so"
19013 shlibpath_var
=LD_LIBRARY_PATH
19014 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016 soname_spec
='${libname}${release}${shared_ext}$major'
19017 if test "X$HPUX_IA64_MODE" = X32
; then
19018 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19020 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19022 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19026 hardcode_into_libs
=yes
19027 dynamic_linker
="$host_os dld.sl"
19028 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19029 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031 soname_spec
='${libname}${release}${shared_ext}$major'
19032 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19033 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19037 dynamic_linker
="$host_os dld.sl"
19038 shlibpath_var
=SHLIB_PATH
19039 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19041 soname_spec
='${libname}${release}${shared_ext}$major'
19044 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19045 postinstall_cmds
='chmod 555 $lib'
19052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19053 soname_spec
='${libname}${release}${shared_ext}$major'
19054 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19055 shlibpath_var
=LD_LIBRARY_PATH
19056 shlibpath_overrides_runpath
=no
19057 hardcode_into_libs
=yes
19060 irix5
* | irix6
* | nonstopux
*)
19062 nonstopux
*) version_type
=nonstopux
;;
19064 if test "$lt_cv_prog_gnu_ld" = yes; then
19072 soname_spec
='${libname}${release}${shared_ext}$major'
19073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19075 irix5
* | nonstopux
*)
19076 libsuff
= shlibsuff
=
19079 case $LD in # libtool.m4 will add one of these switches to LD
19080 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19081 libsuff
= shlibsuff
= libmagic
=32-bit;;
19082 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19083 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19084 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19085 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19086 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19090 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19091 shlibpath_overrides_runpath
=no
19092 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19093 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19094 hardcode_into_libs
=yes
19097 # No shared lib support for Linux oldld, aout, or coff.
19098 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19102 # This must be Linux ELF.
19103 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19108 soname_spec
='${libname}${release}${shared_ext}$major'
19109 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19110 shlibpath_var
=LD_LIBRARY_PATH
19111 shlibpath_overrides_runpath
=no
19113 # Some binutils ld are patched to set DT_RUNPATH
19114 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 lt_cv_shlibpath_overrides_runpath
=no
19118 save_LDFLAGS
=$LDFLAGS
19119 save_libdir
=$libdir
19120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19122 cat >conftest.
$ac_ext <<_ACEOF
19125 cat confdefs.h
>>conftest.
$ac_ext
19126 cat >>conftest.
$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19137 rm -f conftest.
$ac_objext conftest
$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>conftest.er1
19141 grep -v '^ *+' conftest.er1
>conftest.err
19143 cat conftest.err
>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try
='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try
='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
19160 lt_cv_shlibpath_overrides_runpath
=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.
$ac_ext >&5
19168 rm -f conftest.err conftest.
$ac_objext \
19169 conftest
$ac_exeext conftest.
$ac_ext
19170 LDFLAGS
=$save_LDFLAGS
19171 libdir
=$save_libdir
19175 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19177 # This implies no fast_install, which is unacceptable.
19178 # Some rework will be needed to allow for fast_install
19179 # before this can be enabled.
19180 hardcode_into_libs
=yes
19182 # Append ld.so.conf contents to the search path
19183 if test -f /etc
/ld.so.conf
; then
19184 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' ' '`
19185 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19188 # We used to test for /lib/ld.so.1 and disable shared libraries on
19189 # powerpc, because MkLinux only supported shared libraries with the
19190 # GNU dynamic linker. Since this was broken with cross compilers,
19191 # most powerpc-linux boxes support dynamic linking these days and
19192 # people can always --disable-shared, the test was removed, and we
19193 # assume the GNU/Linux dynamic linker is in use.
19194 dynamic_linker
='GNU/Linux ld.so'
19201 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19204 dynamic_linker
='NetBSD (a.out) ld.so'
19206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19207 soname_spec
='${libname}${release}${shared_ext}$major'
19208 dynamic_linker
='NetBSD ld.elf_so'
19210 shlibpath_var
=LD_LIBRARY_PATH
19211 shlibpath_overrides_runpath
=yes
19212 hardcode_into_libs
=yes
19217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218 shlibpath_var
=LD_LIBRARY_PATH
19219 shlibpath_overrides_runpath
=yes
19226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19227 soname_spec
='${libname}${release}${shared_ext}$major'
19228 shlibpath_var
=LD_LIBRARY_PATH
19229 shlibpath_overrides_runpath
=no
19230 hardcode_into_libs
=yes
19231 dynamic_linker
='ldqnx.so'
19236 sys_lib_dlsearch_path_spec
="/usr/lib"
19238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19240 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19241 *) need_version
=no
;;
19243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19244 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19245 shlibpath_var
=LD_LIBRARY_PATH
19246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19248 openbsd2.
[89] | openbsd2.
[89].
*)
19249 shlibpath_overrides_runpath
=no
19252 shlibpath_overrides_runpath
=yes
19256 shlibpath_overrides_runpath
=yes
19261 libname_spec
='$name'
19264 library_names_spec
='$libname${shared_ext} $libname.a'
19265 dynamic_linker
='OS/2 ld.exe'
19266 shlibpath_var
=LIBPATH
19269 osf3
* | osf4
* | osf5
*)
19273 soname_spec
='${libname}${release}${shared_ext}$major'
19274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 shlibpath_var
=LD_LIBRARY_PATH
19276 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19277 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19289 soname_spec
='${libname}${release}${shared_ext}$major'
19290 shlibpath_var
=LD_LIBRARY_PATH
19291 shlibpath_overrides_runpath
=yes
19292 hardcode_into_libs
=yes
19293 # ldd complains unless libraries are executable
19294 postinstall_cmds
='chmod +x $lib'
19299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19300 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19301 shlibpath_var
=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath
=yes
19303 if test "$with_gnu_ld" = yes; then
19311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19312 soname_spec
='${libname}${release}${shared_ext}$major'
19313 shlibpath_var
=LD_LIBRARY_PATH
19314 case $host_vendor in
19316 shlibpath_overrides_runpath
=no
19318 runpath_var
=LD_RUN_PATH
19326 shlibpath_overrides_runpath
=no
19327 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19333 if test -d /usr
/nec
;then
19335 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19336 soname_spec
='$libname${shared_ext}.$major'
19337 shlibpath_var
=LD_LIBRARY_PATH
19341 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19342 version_type
=freebsd-elf
19345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19346 soname_spec
='${libname}${release}${shared_ext}$major'
19347 shlibpath_var
=LD_LIBRARY_PATH
19348 shlibpath_overrides_runpath
=yes
19349 hardcode_into_libs
=yes
19350 if test "$with_gnu_ld" = yes; then
19351 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19353 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19356 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19360 sys_lib_dlsearch_path_spec
='/usr/lib'
19364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19369 shlibpath_var
=LD_LIBRARY_PATH
19370 shlibpath_overrides_runpath
=no
19371 hardcode_into_libs
=yes
19376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377 soname_spec
='${libname}${release}${shared_ext}$major'
19378 shlibpath_var
=LD_LIBRARY_PATH
19385 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19386 echo "${ECHO_T}$dynamic_linker" >&6
19387 test "$dynamic_linker" = no
&& can_build_shared
=no
19389 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19390 if test "$GCC" = yes; then
19391 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19395 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19398 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19490 if test -n "$hardcode_libdir_flag_spec" ||
19491 test -n "$runpath_var" ||
19492 test "X$hardcode_automatic" = "Xyes" ; then
19494 # We can hardcode non-existent directories.
19495 if test "$hardcode_direct" != no
&&
19496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19497 # have to relink, otherwise we might link with an installed library
19498 # when we should be linking with a yet-to-be-installed one
19499 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19500 test "$hardcode_minus_L" != no
; then
19501 # Linking always hardcodes the temporary library directory.
19502 hardcode_action
=relink
19504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19505 hardcode_action
=immediate
19508 # We cannot hardcode anything, or else we can only hardcode existing
19510 hardcode_action
=unsupported
19512 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19513 echo "${ECHO_T}$hardcode_action" >&6
19515 if test "$hardcode_action" = relink ||
19516 test "$inherit_rpath" = yes; then
19517 # Fast installation is not supported
19518 enable_fast_install
=no
19519 elif test "$shlibpath_overrides_runpath" = yes ||
19520 test "$enable_shared" = no
; then
19521 # Fast installation is not necessary
19522 enable_fast_install
=needless
19530 if test "x$enable_dlopen" != xyes
; then
19531 enable_dlopen
=unknown
19532 enable_dlopen_self
=unknown
19533 enable_dlopen_self_static
=unknown
19540 lt_cv_dlopen
="load_add_on"
19542 lt_cv_dlopen_self
=yes
19545 mingw
* | pw32
* | cegcc
*)
19546 lt_cv_dlopen
="LoadLibrary"
19551 lt_cv_dlopen
="dlopen"
19556 # if libdl is installed we need to link against it
19557 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19558 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 ac_check_lib_save_LIBS
=$LIBS
19564 cat >conftest.
$ac_ext <<_ACEOF
19567 cat confdefs.h
>>conftest.
$ac_ext
19568 cat >>conftest.
$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19571 /* Override any gcc2 internal prototype to avoid an error. */
19575 /* We use char because int might match the return type of a gcc2
19576 builtin and then its argument prototype would still apply. */
19586 rm -f conftest.
$ac_objext conftest
$ac_exeext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19588 (eval $ac_link) 2>conftest.er1
19590 grep -v '^ *+' conftest.er1
>conftest.err
19592 cat conftest.err
>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try
='test -z "$ac_c_werror_flag"
19596 || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try
='test -s conftest$ac_exeext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_lib_dl_dlopen
=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 ac_cv_lib_dl_dlopen
=no
19615 rm -f conftest.err conftest.
$ac_objext \
19616 conftest
$ac_exeext conftest.
$ac_ext
19617 LIBS
=$ac_check_lib_save_LIBS
19619 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19620 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19621 if test $ac_cv_lib_dl_dlopen = yes; then
19622 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19625 lt_cv_dlopen
="dyld"
19627 lt_cv_dlopen_self
=yes
19634 echo "$as_me:$LINENO: checking for shl_load" >&5
19635 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19636 if test "${ac_cv_func_shl_load+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 cat >conftest.
$ac_ext <<_ACEOF
19642 cat confdefs.h
>>conftest.
$ac_ext
19643 cat >>conftest.
$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19645 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19647 #define shl_load innocuous_shl_load
19649 /* System header to define __stub macros and hopefully few prototypes,
19650 which can conflict with char shl_load (); below.
19651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19652 <limits.h> exists even on freestanding compilers. */
19655 # include <limits.h>
19657 # include <assert.h>
19662 /* Override any gcc2 internal prototype to avoid an error. */
19667 /* We use char because int might match the return type of a gcc2
19668 builtin and then its argument prototype would still apply. */
19670 /* The GNU C library defines this for functions which it implements
19671 to always fail with ENOSYS. Some functions are actually named
19672 something starting with __ and the normal name is an alias. */
19673 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19676 char (*f) () = shl_load;
19685 return f != shl_load;
19690 rm -f conftest.
$ac_objext conftest
$ac_exeext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19692 (eval $ac_link) 2>conftest.er1
19694 grep -v '^ *+' conftest.er1
>conftest.err
19696 cat conftest.err
>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try
='test -z "$ac_c_werror_flag"
19700 || test ! -s conftest.err'
19701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702 (eval $ac_try) 2>&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try
='test -s conftest$ac_exeext'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_func_shl_load
=yes
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.
$ac_ext >&5
19717 ac_cv_func_shl_load
=no
19719 rm -f conftest.err conftest.
$ac_objext \
19720 conftest
$ac_exeext conftest.
$ac_ext
19722 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19723 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19724 if test $ac_cv_func_shl_load = yes; then
19725 lt_cv_dlopen
="shl_load"
19727 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19728 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19729 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 ac_check_lib_save_LIBS
=$LIBS
19734 cat >conftest.
$ac_ext <<_ACEOF
19737 cat confdefs.h
>>conftest.
$ac_ext
19738 cat >>conftest.
$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19741 /* Override any gcc2 internal prototype to avoid an error. */
19745 /* We use char because int might match the return type of a gcc2
19746 builtin and then its argument prototype would still apply. */
19756 rm -f conftest.
$ac_objext conftest
$ac_exeext
19757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758 (eval $ac_link) 2>conftest.er1
19760 grep -v '^ *+' conftest.er1
>conftest.err
19762 cat conftest.err
>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try
='test -z "$ac_c_werror_flag"
19766 || test ! -s conftest.err'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try
='test -s conftest$ac_exeext'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; }; then
19778 ac_cv_lib_dld_shl_load
=yes
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.
$ac_ext >&5
19783 ac_cv_lib_dld_shl_load
=no
19785 rm -f conftest.err conftest.
$ac_objext \
19786 conftest
$ac_exeext conftest.
$ac_ext
19787 LIBS
=$ac_check_lib_save_LIBS
19789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19790 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19791 if test $ac_cv_lib_dld_shl_load = yes; then
19792 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19794 echo "$as_me:$LINENO: checking for dlopen" >&5
19795 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19796 if test "${ac_cv_func_dlopen+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 cat >conftest.
$ac_ext <<_ACEOF
19802 cat confdefs.h
>>conftest.
$ac_ext
19803 cat >>conftest.
$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19807 #define dlopen innocuous_dlopen
19809 /* System header to define __stub macros and hopefully few prototypes,
19810 which can conflict with char dlopen (); below.
19811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19812 <limits.h> exists even on freestanding compilers. */
19815 # include <limits.h>
19817 # include <assert.h>
19822 /* Override any gcc2 internal prototype to avoid an error. */
19827 /* We use char because int might match the return type of a gcc2
19828 builtin and then its argument prototype would still apply. */
19830 /* The GNU C library defines this for functions which it implements
19831 to always fail with ENOSYS. Some functions are actually named
19832 something starting with __ and the normal name is an alias. */
19833 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19836 char (*f) () = dlopen;
19845 return f != dlopen;
19850 rm -f conftest.
$ac_objext conftest
$ac_exeext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>conftest.er1
19854 grep -v '^ *+' conftest.er1
>conftest.err
19856 cat conftest.err
>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try
='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try
='test -s conftest$ac_exeext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_func_dlopen
=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.
$ac_ext >&5
19877 ac_cv_func_dlopen
=no
19879 rm -f conftest.err conftest.
$ac_objext \
19880 conftest
$ac_exeext conftest.
$ac_ext
19882 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19883 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19884 if test $ac_cv_func_dlopen = yes; then
19885 lt_cv_dlopen
="dlopen"
19887 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 ac_check_lib_save_LIBS
=$LIBS
19894 cat >conftest.
$ac_ext <<_ACEOF
19897 cat confdefs.h
>>conftest.
$ac_ext
19898 cat >>conftest.
$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19901 /* Override any gcc2 internal prototype to avoid an error. */
19905 /* We use char because int might match the return type of a gcc2
19906 builtin and then its argument prototype would still apply. */
19916 rm -f conftest.
$ac_objext conftest
$ac_exeext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>conftest.er1
19920 grep -v '^ *+' conftest.er1
>conftest.err
19922 cat conftest.err
>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try
='test -z "$ac_c_werror_flag"
19926 || test ! -s conftest.err'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; } &&
19932 { ac_try
='test -s conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 ac_cv_lib_dl_dlopen
=yes
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.
$ac_ext >&5
19943 ac_cv_lib_dl_dlopen
=no
19945 rm -f conftest.err conftest.
$ac_objext \
19946 conftest
$ac_exeext conftest.
$ac_ext
19947 LIBS
=$ac_check_lib_save_LIBS
19949 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19951 if test $ac_cv_lib_dl_dlopen = yes; then
19952 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19954 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19955 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19956 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 ac_check_lib_save_LIBS
=$LIBS
19960 LIBS
="-lsvld $LIBS"
19961 cat >conftest.
$ac_ext <<_ACEOF
19964 cat confdefs.h
>>conftest.
$ac_ext
19965 cat >>conftest.
$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19968 /* Override any gcc2 internal prototype to avoid an error. */
19972 /* We use char because int might match the return type of a gcc2
19973 builtin and then its argument prototype would still apply. */
19983 rm -f conftest.
$ac_objext conftest
$ac_exeext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19985 (eval $ac_link) 2>conftest.er1
19987 grep -v '^ *+' conftest.er1
>conftest.err
19989 cat conftest.err
>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try
='test -z "$ac_c_werror_flag"
19993 || test ! -s conftest.err'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try
='test -s conftest$ac_exeext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_cv_lib_svld_dlopen
=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.
$ac_ext >&5
20010 ac_cv_lib_svld_dlopen
=no
20012 rm -f conftest.err conftest.
$ac_objext \
20013 conftest
$ac_exeext conftest.
$ac_ext
20014 LIBS
=$ac_check_lib_save_LIBS
20016 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20017 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20018 if test $ac_cv_lib_svld_dlopen = yes; then
20019 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
20021 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20022 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 ac_check_lib_save_LIBS
=$LIBS
20028 cat >conftest.
$ac_ext <<_ACEOF
20031 cat confdefs.h
>>conftest.
$ac_ext
20032 cat >>conftest.
$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any gcc2 internal prototype to avoid an error. */
20039 /* We use char because int might match the return type of a gcc2
20040 builtin and then its argument prototype would still apply. */
20050 rm -f conftest.
$ac_objext conftest
$ac_exeext
20051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20052 (eval $ac_link) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1
>conftest.err
20056 cat conftest.err
>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try
='test -z "$ac_c_werror_flag"
20060 || test ! -s conftest.err'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try
='test -s conftest$ac_exeext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_cv_lib_dld_dld_link
=yes
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.
$ac_ext >&5
20077 ac_cv_lib_dld_dld_link
=no
20079 rm -f conftest.err conftest.
$ac_objext \
20080 conftest
$ac_exeext conftest.
$ac_ext
20081 LIBS
=$ac_check_lib_save_LIBS
20083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20084 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20085 if test $ac_cv_lib_dld_dld_link = yes; then
20086 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
20107 if test "x$lt_cv_dlopen" != xno
; then
20113 case $lt_cv_dlopen in
20115 save_CPPFLAGS
="$CPPFLAGS"
20116 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
20118 save_LDFLAGS
="$LDFLAGS"
20119 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
20122 LIBS
="$lt_cv_dlopen_libs $LIBS"
20124 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20125 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20126 if test "${lt_cv_dlopen_self+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 if test "$cross_compiling" = yes; then :
20130 lt_cv_dlopen_self
=cross
20132 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20133 lt_status
=$lt_dlunknown
20134 cat > conftest.
$ac_ext <<_LT_EOF
20135 #line 20135 "configure"
20136 #include "confdefs.h"
20145 # define LT_DLGLOBAL RTLD_GLOBAL
20148 # define LT_DLGLOBAL DL_GLOBAL
20150 # define LT_DLGLOBAL 0
20154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20155 find out it does not work in some platform. */
20156 #ifndef LT_DLLAZY_OR_NOW
20158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20161 # define LT_DLLAZY_OR_NOW DL_LAZY
20164 # define LT_DLLAZY_OR_NOW RTLD_NOW
20167 # define LT_DLLAZY_OR_NOW DL_NOW
20169 # define LT_DLLAZY_OR_NOW 0
20176 void fnord() { int i=42;}
20179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20180 int status = $lt_dlunknown;
20184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20186 /* dlclose (self); */
20194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20195 (eval $ac_link) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20199 (.
/conftest
; exit; ) >&5 2>/dev
/null
20201 case x
$lt_status in
20202 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
20203 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
20204 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
20207 # compilation failed
20208 lt_cv_dlopen_self
=no
20215 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20216 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20218 if test "x$lt_cv_dlopen_self" = xyes
; then
20219 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
20220 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20221 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20222 if test "${lt_cv_dlopen_self_static+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 if test "$cross_compiling" = yes; then :
20226 lt_cv_dlopen_self_static
=cross
20228 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
20229 lt_status
=$lt_dlunknown
20230 cat > conftest.
$ac_ext <<_LT_EOF
20231 #line 20231 "configure"
20232 #include "confdefs.h"
20241 # define LT_DLGLOBAL RTLD_GLOBAL
20244 # define LT_DLGLOBAL DL_GLOBAL
20246 # define LT_DLGLOBAL 0
20250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20251 find out it does not work in some platform. */
20252 #ifndef LT_DLLAZY_OR_NOW
20254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20257 # define LT_DLLAZY_OR_NOW DL_LAZY
20260 # define LT_DLLAZY_OR_NOW RTLD_NOW
20263 # define LT_DLLAZY_OR_NOW DL_NOW
20265 # define LT_DLLAZY_OR_NOW 0
20272 void fnord() { int i=42;}
20275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20276 int status = $lt_dlunknown;
20280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20282 /* dlclose (self); */
20290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20291 (eval $ac_link) 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20295 (.
/conftest
; exit; ) >&5 2>/dev
/null
20297 case x
$lt_status in
20298 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20299 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20300 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20303 # compilation failed
20304 lt_cv_dlopen_self_static
=no
20311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20315 CPPFLAGS
="$save_CPPFLAGS"
20316 LDFLAGS
="$save_LDFLAGS"
20321 case $lt_cv_dlopen_self in
20322 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20323 *) enable_dlopen_self
=unknown
;;
20326 case $lt_cv_dlopen_self_static in
20327 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20328 *) enable_dlopen_self_static
=unknown
;;
20350 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20351 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20352 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20353 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20354 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20355 echo "$as_me:$LINENO: result: yes" >&5
20356 echo "${ECHO_T}yes" >&6
20358 # FIXME - insert some real tests, host_os isn't really good enough
20361 if test -n "$STRIP" ; then
20362 striplib
="$STRIP -x"
20363 old_striplib
="$STRIP -S"
20364 echo "$as_me:$LINENO: result: yes" >&5
20365 echo "${ECHO_T}yes" >&6
20367 echo "$as_me:$LINENO: result: no" >&5
20368 echo "${ECHO_T}no" >&6
20372 echo "$as_me:$LINENO: result: no" >&5
20373 echo "${ECHO_T}no" >&6
20389 # Report which library types will actually be built
20390 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20391 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20392 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20393 echo "${ECHO_T}$can_build_shared" >&6
20395 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20396 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20397 test "$can_build_shared" = "no" && enable_shared
=no
20399 # On AIX, shared libraries and static libraries use the same namespace, and
20400 # are all built from PIC.
20403 test "$enable_shared" = yes && enable_static
=no
20404 if test -n "$RANLIB"; then
20405 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20406 postinstall_cmds
='$RANLIB $lib'
20411 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20412 test "$enable_shared" = yes && enable_static
=no
20416 echo "$as_me:$LINENO: result: $enable_shared" >&5
20417 echo "${ECHO_T}$enable_shared" >&6
20419 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20420 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20421 # Make sure either enable_shared or enable_static is yes.
20422 test "$enable_shared" = yes || enable_static
=yes
20423 echo "$as_me:$LINENO: result: $enable_static" >&5
20424 echo "${ECHO_T}$enable_static" >&6
20431 ac_cpp
='$CPP $CPPFLAGS'
20432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20453 # Only expand once:
20459 # Identify the assembler which will work hand-in-glove with the newly
20460 # built GCC, so that we can examine its features. This is the assembler
20461 # which will be driven by the driver program.
20463 # If build != host, and we aren't building gas in-tree, we identify a
20464 # build->target assembler and hope that it will have the same features
20465 # as the host->target assembler we'll be using.
20466 gcc_cv_gas_major_version
=
20467 gcc_cv_gas_minor_version
=
20468 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20470 if test "${gcc_cv_as+set}" = set; then
20474 if test -x "$DEFAULT_ASSEMBLER"; then
20475 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20476 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20477 && test -f ..
/gas
/Makefile \
20478 && test x
$build = x
$host; then
20479 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20480 elif test -x as
$build_exeext; then
20481 # Build using assembler in the current directory.
20482 gcc_cv_as
=.
/as
$build_exeext
20483 elif test -x $AS_FOR_TARGET; then
20484 gcc_cv_as
="$AS_FOR_TARGET"
20486 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20487 set dummy
$AS_FOR_TARGET; ac_word
=$2
20488 echo "$as_me:$LINENO: checking for $ac_word" >&5
20489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20490 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20491 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20499 for as_dir
in $PATH
20502 test -z "$as_dir" && as_dir
=.
20503 for ac_exec_ext
in '' $ac_executable_extensions; do
20504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20505 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20515 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20517 if test -n "$gcc_cv_as"; then
20518 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20519 echo "${ECHO_T}$gcc_cv_as" >&6
20521 echo "$as_me:$LINENO: result: no" >&5
20522 echo "${ECHO_T}no" >&6
20529 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20531 case "$ORIGINAL_AS_FOR_TARGET" in
20532 .
/as | .
/as
$build_exeext) ;;
20533 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20537 echo "$as_me:$LINENO: checking what assembler to use" >&5
20538 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20539 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20540 # Single tree build which includes gas. We want to prefer it
20541 # over whatever linker top-level may have detected, since
20542 # we'll use what we're building after installation anyway.
20543 echo "$as_me:$LINENO: result: newly built gas" >&5
20544 echo "${ECHO_T}newly built gas" >&6
20546 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20547 for f
in $gcc_cv_as_bfd_srcdir/configure \
20548 $gcc_cv_as_gas_srcdir/configure \
20549 $gcc_cv_as_gas_srcdir/configure.
in \
20550 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20551 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20552 if test x
$gcc_cv_gas_version != x
; then
20556 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20557 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20558 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20559 case $gcc_cv_gas_patch_version in
20560 "") gcc_cv_gas_patch_version
="0" ;;
20562 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20563 + $gcc_cv_gas_minor_version \) \* 1000 \
20564 + $gcc_cv_gas_patch_version`
20566 in_tree_gas_is_elf
=no
20567 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20568 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20569 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20571 in_tree_gas_is_elf
=yes
20574 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20575 echo "${ECHO_T}$gcc_cv_as" >&6
20579 # Identify the linker which will work hand-in-glove with the newly
20580 # built GCC, so that we can examine its features. This is the linker
20581 # which will be driven by the driver program.
20583 # If build != host, and we aren't building gas in-tree, we identify a
20584 # build->target linker and hope that it will have the same features
20585 # as the host->target linker we'll be using.
20586 gcc_cv_gld_major_version
=
20587 gcc_cv_gld_minor_version
=
20588 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20589 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20591 if test "${gcc_cv_ld+set}" = set; then
20595 if test -x "$DEFAULT_LINKER"; then
20596 gcc_cv_ld
="$DEFAULT_LINKER"
20597 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20598 && test -f ..
/ld
/Makefile \
20599 && test x
$build = x
$host; then
20600 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20601 elif test -x collect-ld
$build_exeext; then
20602 # Build using linker in the current directory.
20603 gcc_cv_ld
=.
/collect-ld
$build_exeext
20604 elif test -x $LD_FOR_TARGET; then
20605 gcc_cv_ld
="$LD_FOR_TARGET"
20607 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20608 set dummy
$LD_FOR_TARGET; ac_word
=$2
20609 echo "$as_me:$LINENO: checking for $ac_word" >&5
20610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20611 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20620 for as_dir
in $PATH
20623 test -z "$as_dir" && as_dir
=.
20624 for ac_exec_ext
in '' $ac_executable_extensions; do
20625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20626 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20636 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20638 if test -n "$gcc_cv_ld"; then
20639 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20640 echo "${ECHO_T}$gcc_cv_ld" >&6
20642 echo "$as_me:$LINENO: result: no" >&5
20643 echo "${ECHO_T}no" >&6
20650 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20652 case "$ORIGINAL_LD_FOR_TARGET" in
20653 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20654 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20658 echo "$as_me:$LINENO: checking what linker to use" >&5
20659 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20660 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20661 # Single tree build which includes ld. We want to prefer it
20662 # over whatever linker top-level may have detected, since
20663 # we'll use what we're building after installation anyway.
20664 echo "$as_me:$LINENO: result: newly built ld" >&5
20665 echo "${ECHO_T}newly built ld" >&6
20667 in_tree_ld_is_elf
=no
20668 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20669 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20670 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20671 in_tree_ld_is_elf
=yes
20673 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
20675 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20676 if test x
$gcc_cv_gld_version != x
; then
20680 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20681 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20683 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20684 echo "${ECHO_T}$gcc_cv_ld" >&6
20688 # Figure out what nm we will be using.
20689 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20690 if test "${gcc_cv_nm+set}" = set; then
20694 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20695 && test -f ..
/binutils
/Makefile \
20696 && test x
$build = x
$host; then
20697 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20698 elif test -x nm
$build_exeext; then
20699 gcc_cv_nm
=.
/nm
$build_exeext
20700 elif test -x $NM_FOR_TARGET; then
20701 gcc_cv_nm
="$NM_FOR_TARGET"
20703 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20704 set dummy
$NM_FOR_TARGET; ac_word
=$2
20705 echo "$as_me:$LINENO: checking for $ac_word" >&5
20706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20707 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20716 for as_dir
in $PATH
20719 test -z "$as_dir" && as_dir
=.
20720 for ac_exec_ext
in '' $ac_executable_extensions; do
20721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20722 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20732 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20734 if test -n "$gcc_cv_nm"; then
20735 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20736 echo "${ECHO_T}$gcc_cv_nm" >&6
20738 echo "$as_me:$LINENO: result: no" >&5
20739 echo "${ECHO_T}no" >&6
20746 echo "$as_me:$LINENO: checking what nm to use" >&5
20747 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20748 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20749 # Single tree build which includes binutils.
20750 echo "$as_me:$LINENO: result: newly built nm" >&5
20751 echo "${ECHO_T}newly built nm" >&6
20754 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20755 echo "${ECHO_T}$gcc_cv_nm" >&6
20759 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20761 case "$ORIGINAL_NM_FOR_TARGET" in
20762 .
/nm | .
/nm
$build_exeext) ;;
20763 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20768 # Figure out what objdump we will be using.
20769 if test "${gcc_cv_objdump+set}" = set; then
20773 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20774 && test -f ..
/binutils
/Makefile \
20775 && test x
$build = x
$host; then
20776 # Single tree build which includes binutils.
20777 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20778 elif test -x objdump
$build_exeext; then
20779 gcc_cv_objdump
=.
/objdump
$build_exeext
20780 elif test -x $OBJDUMP_FOR_TARGET; then
20781 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20783 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20784 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20785 echo "$as_me:$LINENO: checking for $ac_word" >&5
20786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20787 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 case $gcc_cv_objdump in
20792 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20796 for as_dir
in $PATH
20799 test -z "$as_dir" && as_dir
=.
20800 for ac_exec_ext
in '' $ac_executable_extensions; do
20801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20802 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20812 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20814 if test -n "$gcc_cv_objdump"; then
20815 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20816 echo "${ECHO_T}$gcc_cv_objdump" >&6
20818 echo "$as_me:$LINENO: result: no" >&5
20819 echo "${ECHO_T}no" >&6
20826 echo "$as_me:$LINENO: checking what objdump to use" >&5
20827 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20828 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20829 # Single tree build which includes binutils.
20830 echo "$as_me:$LINENO: result: newly built objdump" >&5
20831 echo "${ECHO_T}newly built objdump" >&6
20832 elif test x
$gcc_cv_objdump = x
; then
20833 echo "$as_me:$LINENO: result: not found" >&5
20834 echo "${ECHO_T}not found" >&6
20836 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20837 echo "${ECHO_T}$gcc_cv_objdump" >&6
20840 # Figure out what readelf we will be using.
20841 if test "${gcc_cv_readelf+set}" = set; then
20845 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20846 && test -f ..
/binutils
/Makefile \
20847 && test x
$build = x
$host; then
20848 # Single tree build which includes binutils.
20849 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20850 elif test -x readelf
$build_exeext; then
20851 gcc_cv_readelf
=.
/readelf
$build_exeext
20853 # Extract the first word of "readelf", so it can be a program name with args.
20854 set dummy readelf
; ac_word
=$2
20855 echo "$as_me:$LINENO: checking for $ac_word" >&5
20856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20857 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 case $gcc_cv_readelf in
20862 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20866 for as_dir
in $PATH
20869 test -z "$as_dir" && as_dir
=.
20870 for ac_exec_ext
in '' $ac_executable_extensions; do
20871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20872 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20882 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20884 if test -n "$gcc_cv_readelf"; then
20885 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20886 echo "${ECHO_T}$gcc_cv_readelf" >&6
20888 echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20896 echo "$as_me:$LINENO: checking what readelf to use" >&5
20897 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20898 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20899 # Single tree build which includes binutils.
20900 echo "$as_me:$LINENO: result: newly built readelf" >&5
20901 echo "${ECHO_T}newly built readelf" >&6
20902 elif test x
$gcc_cv_readelf = x
; then
20903 echo "$as_me:$LINENO: result: not found" >&5
20904 echo "${ECHO_T}not found" >&6
20906 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20907 echo "${ECHO_T}$gcc_cv_readelf" >&6
20910 # Figure out what assembler alignment features are present.
20911 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20912 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20913 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 gcc_cv_as_balign_and_p2align
=no
20917 if test $in_tree_gas = yes; then
20918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20919 then gcc_cv_as_balign_and_p2align
=yes
20921 elif test x
$gcc_cv_as != x
; then
20923 .p2align 2' > conftest.s
20924 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }
20931 gcc_cv_as_balign_and_p2align
=yes
20933 echo "configure: failed program was" >&5
20936 rm -f conftest.o conftest.s
20939 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20940 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20941 if test $gcc_cv_as_balign_and_p2align = yes; then
20943 cat >>confdefs.h
<<\_ACEOF
20944 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20949 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20950 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20951 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 gcc_cv_as_max_skip_p2align
=no
20955 if test $in_tree_gas = yes; then
20956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20957 then gcc_cv_as_max_skip_p2align
=yes
20959 elif test x
$gcc_cv_as != x
; then
20960 echo '.p2align 4,,7' > conftest.s
20961 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }
20968 gcc_cv_as_max_skip_p2align
=yes
20970 echo "configure: failed program was" >&5
20973 rm -f conftest.o conftest.s
20976 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20977 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20978 if test $gcc_cv_as_max_skip_p2align = yes; then
20980 cat >>confdefs.h
<<\_ACEOF
20981 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20986 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20987 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20988 if test "${gcc_cv_as_literal16+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 gcc_cv_as_literal16
=no
20992 if test $in_tree_gas = yes; then
20993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20994 then gcc_cv_as_literal16
=yes
20996 elif test x
$gcc_cv_as != x
; then
20997 echo '.literal16' > conftest.s
20998 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }
21005 gcc_cv_as_literal16
=yes
21007 echo "configure: failed program was" >&5
21010 rm -f conftest.o conftest.s
21013 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21014 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21015 if test $gcc_cv_as_literal16 = yes; then
21017 cat >>confdefs.h
<<\_ACEOF
21018 #define HAVE_GAS_LITERAL16 1
21023 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21024 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21025 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 gcc_cv_as_subsection_m1
=no
21029 if test $in_tree_gas = yes; then
21030 if test $in_tree_gas_is_elf = yes \
21031 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21032 then gcc_cv_as_subsection_m1
=yes
21034 elif test x
$gcc_cv_as != x
; then
21035 echo 'conftest_label1: .word 0
21037 conftest_label2: .word 0
21038 .previous' > conftest.s
21039 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }
21046 if test x
$gcc_cv_nm != x
; then
21047 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21048 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21049 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21051 else gcc_cv_as_subsection_m1
=yes
21053 rm -f conftest.nm1 conftest.nm2
21056 echo "configure: failed program was" >&5
21059 rm -f conftest.o conftest.s
21062 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21063 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21064 if test $gcc_cv_as_subsection_m1 = yes; then
21066 cat >>confdefs.h
<<\_ACEOF
21067 #define HAVE_GAS_SUBSECTION_ORDERING 1
21072 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21073 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21074 if test "${gcc_cv_as_weak+set}" = set; then
21075 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 if test $in_tree_gas = yes; then
21079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21080 then gcc_cv_as_weak
=yes
21082 elif test x
$gcc_cv_as != x
; then
21083 echo ' .weak foobar' > conftest.s
21084 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }
21093 echo "configure: failed program was" >&5
21096 rm -f conftest.o conftest.s
21099 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21100 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21101 if test $gcc_cv_as_weak = yes; then
21103 cat >>confdefs.h
<<\_ACEOF
21104 #define HAVE_GAS_WEAK 1
21109 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21110 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21111 if test "${gcc_cv_as_weakref+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 gcc_cv_as_weakref
=no
21115 if test $in_tree_gas = yes; then
21116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21117 then gcc_cv_as_weakref
=yes
21119 elif test x
$gcc_cv_as != x
; then
21120 echo ' .weakref foobar, barfnot' > conftest.s
21121 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }
21128 gcc_cv_as_weakref
=yes
21130 echo "configure: failed program was" >&5
21133 rm -f conftest.o conftest.s
21136 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21137 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21138 if test $gcc_cv_as_weakref = yes; then
21140 cat >>confdefs.h
<<\_ACEOF
21141 #define HAVE_GAS_WEAKREF 1
21146 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21147 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21148 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 gcc_cv_as_nsubspa_comdat
=no
21152 if test $in_tree_gas = yes; then
21153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21154 then gcc_cv_as_nsubspa_comdat
=yes
21156 elif test x
$gcc_cv_as != x
; then
21157 echo ' .SPACE $TEXT$
21158 .NSUBSPA $CODE$,COMDAT' > conftest.s
21159 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }
21166 gcc_cv_as_nsubspa_comdat
=yes
21168 echo "configure: failed program was" >&5
21171 rm -f conftest.o conftest.s
21174 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21175 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21176 if test $gcc_cv_as_nsubspa_comdat = yes; then
21178 cat >>confdefs.h
<<\_ACEOF
21179 #define HAVE_GAS_NSUBSPA_COMDAT 1
21184 # .hidden needs to be supported in both the assembler and the linker,
21185 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21186 # This is irritatingly difficult to feature test for; we have to check the
21187 # date string after the version number. If we've got an in-tree
21188 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21190 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21191 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21192 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21193 if test "${gcc_cv_as_hidden+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 gcc_cv_as_hidden
=no
21197 if test $in_tree_gas = yes; then
21198 if test $in_tree_gas_is_elf = yes \
21199 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21200 then gcc_cv_as_hidden
=yes
21202 elif test x
$gcc_cv_as != x
; then
21203 echo ' .hidden foobar
21204 foobar:' > conftest.s
21205 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }
21212 gcc_cv_as_hidden
=yes
21214 echo "configure: failed program was" >&5
21217 rm -f conftest.o conftest.s
21220 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21221 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21224 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21225 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21226 if test "${gcc_cv_ld_hidden+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 if test $in_tree_ld = yes ; then
21230 gcc_cv_ld_hidden
=no
21231 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 \
21232 && test $in_tree_ld_is_elf = yes; then
21233 gcc_cv_ld_hidden
=yes
21236 gcc_cv_ld_hidden
=yes
21237 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21238 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21239 ld_vers
=`echo $ld_ver | sed -n \
21240 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21241 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'`
21242 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21243 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21244 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21245 if test 0"$ld_date" -lt 20020404; then
21246 if test -n "$ld_date"; then
21247 # If there was date string, but was earlier than 2002-04-04, fail
21248 gcc_cv_ld_hidden
=no
21249 elif test -z "$ld_vers"; then
21250 # If there was no date string nor ld version number, something is wrong
21251 gcc_cv_ld_hidden
=no
21253 test -z "$ld_vers_patch" && ld_vers_patch
=0
21254 if test "$ld_vers_major" -lt 2; then
21255 gcc_cv_ld_hidden
=no
21256 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21257 gcc_cv_ld_hidden
="no"
21258 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21259 gcc_cv_ld_hidden
=no
21264 case "${target}" in
21265 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21266 gcc_cv_ld_hidden
=yes
21268 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21269 gcc_cv_ld_hidden
=yes
21272 gcc_cv_ld_hidden
=no
21278 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21279 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21280 libgcc_visibility
=no
21283 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21284 libgcc_visibility
=yes
21286 cat >>confdefs.h
<<\_ACEOF
21287 #define HAVE_GAS_HIDDEN 1
21292 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21293 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21294 gcc_cv_ld_ro_rw_mix
=unknown
21295 if test $in_tree_ld = yes ; then
21296 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 \
21297 && test $in_tree_ld_is_elf = yes; then
21298 gcc_cv_ld_ro_rw_mix
=read-write
21300 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21301 echo '.section myfoosect, "a"' > conftest1.s
21302 echo '.section myfoosect, "aw"' > conftest2.s
21303 echo '.byte 1' >> conftest2.s
21304 echo '.section myfoosect, "a"' > conftest3.s
21305 echo '.byte 0' >> conftest3.s
21306 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21307 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21308 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21309 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21310 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21311 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21312 | sed -e '/myfoosect/!d' -e N`
21313 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21314 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21315 gcc_cv_ld_ro_rw_mix
=read-only
21317 gcc_cv_ld_ro_rw_mix
=read-write
21321 rm -f conftest.
* conftest
[123].
*
21323 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21325 cat >>confdefs.h
<<\_ACEOF
21326 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21330 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21331 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21333 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21334 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21335 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21336 if test "${gcc_cv_as_leb128+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 gcc_cv_as_leb128
=no
21340 if test $in_tree_gas = yes; then
21341 if test $in_tree_gas_is_elf = yes \
21342 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21343 then gcc_cv_as_leb128
=yes
21345 elif test x
$gcc_cv_as != x
; then
21352 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }
21359 # GAS versions before 2.11 do not support uleb128,
21360 # despite appearing to.
21361 # ??? There exists an elf-specific test that will crash
21362 # the assembler. Perhaps it's better to figure out whether
21363 # arbitrary sections are supported and try the test.
21364 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21365 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21366 as_vers
=`echo $as_ver | sed -n \
21367 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21368 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21369 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21370 if test $as_major -eq 2 && test $as_minor -lt 11
21372 else gcc_cv_as_leb128
=yes
21376 echo "configure: failed program was" >&5
21379 rm -f conftest.o conftest.s
21382 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21383 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21384 if test $gcc_cv_as_leb128 = yes; then
21386 cat >>confdefs.h
<<\_ACEOF
21387 #define HAVE_AS_LEB128 1
21392 # Check if we have assembler support for unwind directives.
21393 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21394 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21395 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 gcc_cv_as_cfi_directive
=no
21399 if test x
$gcc_cv_as != x
; then
21405 .cfi_escape 1, 2, 3, 4, 5
21406 .cfi_endproc' > conftest.s
21407 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }
21416 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21417 # read-only and read-write sections, we need to make sure that the
21418 # assembler used emits read-write .eh_frame sections.
21419 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21420 if test "x$gcc_cv_objdump" != x
; then
21421 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21422 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21423 gcc_cv_as_cfi_directive
=no
21425 gcc_cv_as_cfi_directive
=yes
21428 # no objdump, err on the side of caution
21429 gcc_cv_as_cfi_directive
=no
21432 gcc_cv_as_cfi_directive
=yes
21436 gcc_cv_as_cfi_directive
=yes
21440 echo "configure: failed program was" >&5
21443 rm -f conftest.o conftest.s
21446 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21447 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21449 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21450 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21451 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21452 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 gcc_cv_as_cfi_advance_working
=no
21456 if test x
$gcc_cv_as != x
; then
21459 .cfi_adjust_cfa_offset 64
21461 .cfi_adjust_cfa_offset 128
21462 .cfi_endproc' > conftest.s
21463 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }
21471 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21472 |
grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev
/null
; then
21473 gcc_cv_as_cfi_advance_working
=yes
21477 echo "configure: failed program was" >&5
21480 rm -f conftest.o conftest.s
21483 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21484 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21487 # no readelf, err on the side of caution
21488 gcc_cv_as_cfi_advance_working
=no
21491 cat >>confdefs.h
<<_ACEOF
21492 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21493 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21497 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21498 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21499 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 gcc_cv_as_cfi_personality_directive
=no
21503 if test x
$gcc_cv_as != x
; then
21506 .cfi_personality 0, symbol
21507 .cfi_endproc' > conftest.s
21508 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }
21515 gcc_cv_as_cfi_personality_directive
=yes
21517 echo "configure: failed program was" >&5
21520 rm -f conftest.o conftest.s
21523 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21524 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21527 cat >>confdefs.h
<<_ACEOF
21528 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21529 then echo 1; else echo 0; fi`
21533 # GAS versions up to and including 2.11.0 may mis-optimize
21535 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21536 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21537 if test "${gcc_cv_as_eh_frame+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 gcc_cv_as_eh_frame
=no
21541 if test $in_tree_gas = yes; then
21542 if test $in_tree_gas_is_elf = yes \
21543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21544 then gcc_cv_as_eh_frame
=yes
21546 elif test x
$gcc_cv_as != x
; then
21553 .section .eh_frame,"aw",@progbits
21555 .4byte .LECIE1-.LSCIE1
21569 .4byte .LEFDE1-.LASFDE1
21571 .4byte .LASFDE1-__FRAME_BEGIN__
21578 .LEFDE1:' > conftest.s
21579 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }
21586 cat > conftest.lit
<<EOF
21587 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21588 0010 01000000 12000000 18000000 00000000 ................
21589 0020 08000000 04080000 0044 .........D
21591 cat > conftest.big
<<EOF
21592 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21593 0010 00000001 00000012 00000018 00000000 ................
21594 0020 00000008 04000000 0844 .........D
21596 # If the assembler didn't choke, and we can objdump,
21597 # and we got the correct data, then succeed.
21598 # The text in the here-document typically retains its unix-style line
21599 # endings, while the output of objdump will use host line endings.
21600 # Therefore, use diff -b for the comparisons.
21601 if test x
$gcc_cv_objdump != x \
21602 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21603 |
tail -3 > conftest.got \
21604 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21605 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21607 gcc_cv_as_eh_frame
=yes
21608 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 gcc_cv_as_eh_frame
=buggy
21616 # Uh oh, what do we do now?
21617 gcc_cv_as_eh_frame
=no
21620 echo "configure: failed program was" >&5
21623 rm -f conftest.o conftest.s
21626 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21627 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21630 if test $gcc_cv_as_eh_frame = buggy
; then
21632 cat >>confdefs.h
<<\_ACEOF
21633 #define USE_AS_TRADITIONAL_FORMAT 1
21638 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21639 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21640 if test "${gcc_cv_as_shf_merge+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 gcc_cv_as_shf_merge
=no
21644 if test $in_tree_gas = yes; then
21645 if test $in_tree_gas_is_elf = yes \
21646 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21647 then gcc_cv_as_shf_merge
=yes
21649 elif test x
$gcc_cv_as != x
; then
21650 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21651 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }
21658 gcc_cv_as_shf_merge
=yes
21660 echo "configure: failed program was" >&5
21663 rm -f conftest.o conftest.s
21666 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21667 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21669 if test $gcc_cv_as_shf_merge = no
; then
21670 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21671 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21672 if test "${gcc_cv_as_shf_merge+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 gcc_cv_as_shf_merge
=no
21676 if test $in_tree_gas = yes; then
21677 if test $in_tree_gas_is_elf = yes \
21678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21679 then gcc_cv_as_shf_merge
=yes
21681 elif test x
$gcc_cv_as != x
; then
21682 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21683 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21685 (eval $ac_try) 2>&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); }; }
21690 gcc_cv_as_shf_merge
=yes
21692 echo "configure: failed program was" >&5
21695 rm -f conftest.o conftest.s
21698 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21699 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21703 cat >>confdefs.h
<<_ACEOF
21704 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21708 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21709 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21710 if test "${gcc_cv_as_comdat_group+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 gcc_cv_as_comdat_group
=no
21714 if test $in_tree_gas = yes; then
21715 if test $in_tree_gas_is_elf = yes \
21716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21717 then gcc_cv_as_comdat_group
=yes
21719 elif test x
$gcc_cv_as != x
; then
21720 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21721 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; }
21728 gcc_cv_as_comdat_group
=yes
21730 echo "configure: failed program was" >&5
21733 rm -f conftest.o conftest.s
21736 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21737 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21739 if test $gcc_cv_as_comdat_group = yes; then
21740 gcc_cv_as_comdat_group_percent
=no
21742 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21743 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21744 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21745 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 gcc_cv_as_comdat_group_percent
=no
21748 if test $in_tree_gas = yes; then
21749 if test $in_tree_gas_is_elf = yes \
21750 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21751 then gcc_cv_as_comdat_group_percent
=yes
21753 elif test x
$gcc_cv_as != x
; then
21754 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21755 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }
21762 gcc_cv_as_comdat_group_percent
=yes
21764 echo "configure: failed program was" >&5
21767 rm -f conftest.o conftest.s
21770 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21771 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21774 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
21776 if test 0"$ld_date" -lt 20050308; then
21777 if test -n "$ld_date"; then
21778 # If there was date string, but was earlier than 2005-03-08, fail
21780 elif test "$ld_vers_major" -lt 2; then
21782 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21787 # assume linkers other than GNU ld don't support COMDAT group
21790 if test $comdat_group = no
; then
21791 gcc_cv_as_comdat_group
=no
21792 gcc_cv_as_comdat_group_percent
=no
21795 cat >>confdefs.h
<<_ACEOF
21796 #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`
21800 # Thread-local storage - the check is heavily parameterized.
21808 .section ".tdata","awT",@progbits
21811 ldq $27,__tls_get_addr($29) !literal!1
21812 lda $16,foo($29) !tlsgd!1
21813 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21814 ldq $27,__tls_get_addr($29) !literal!2
21815 lda $16,foo($29) !tlsldm!2
21816 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21817 ldq $1,foo($29) !gotdtprel
21818 ldah $2,foo($29) !dtprelhi
21819 lda $3,foo($2) !dtprello
21820 lda $4,foo($29) !dtprel
21821 ldq $1,foo($29) !gottprel
21822 ldah $2,foo($29) !tprelhi
21823 lda $3,foo($2) !tprello
21824 lda $4,foo($29) !tprel'
21827 tls_as_opt
=--fatal-warnings
21829 cris-
*-*|crisv32-
*-*)
21831 .section ".tdata","awT",@progbits
21838 tls_as_opt
=--fatal-warnings
21842 .section ".tdata","awT",@progbits
21845 call #gettlsoff(x)'
21854 .section ".tdata","awT",@progbits
21858 addil LT%foo-$tls_gdidx$,gp
21859 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21862 addil LT%foo-$tls_ldidx$,gp
21864 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21865 addil LR%foo-$tls_dtpoff$,%ret0
21866 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21868 addil LT%foo-$tls_ieoff$,gp
21869 ldw RT%foo-$tls_ieoff$(%r1),%t2
21872 addil LR%foo-$tls_leoff$,%t1
21873 ldo RR%foo-$tls_leoff$(%r1),%t2'
21876 tls_as_opt
=--fatal-warnings
21880 .section ".tdata","awT",%progbits
21883 .word foo(gottpoff)
21893 .section ".tdata","awT",@progbits
21897 leal foo@TLSGD(,%ebx,1), %eax
21898 leal foo@TLSLDM(%ebx), %eax
21899 leal foo@DTPOFF(%eax), %edx
21900 movl foo@GOTTPOFF(%ebx), %eax
21901 subl foo@GOTTPOFF(%ebx), %eax
21902 addl foo@GOTNTPOFF(%ebx), %eax
21903 movl foo@INDNTPOFF, %eax
21904 movl $foo@TPOFF, %eax
21905 subl $foo@TPOFF, %eax
21906 leal foo@NTPOFF(%ecx), %eax'
21909 tls_as_opt
=--fatal-warnings
21913 .section ".tdata","awT",@progbits
21917 leaq foo@TLSGD(%rip), %rdi
21918 leaq foo@TLSLD(%rip), %rdi
21919 leaq foo@DTPOFF(%rax), %rdx
21920 movq foo@GOTTPOFF(%rip), %rax
21921 movq $foo@TPOFF, %rax'
21924 tls_as_opt
=--fatal-warnings
21928 .section ".tdata","awT",@progbits
21931 addl r16 = @ltoff(@dtpmod(foo#)), gp
21932 addl r17 = @ltoff(@dtprel(foo#)), gp
21933 addl r18 = @ltoff(@tprel(foo#)), gp
21934 addl r19 = @dtprel(foo#), gp
21935 adds r21 = @dtprel(foo#), r13
21936 movl r23 = @dtprel(foo#)
21937 addl r20 = @tprel(foo#), gp
21938 adds r22 = @tprel(foo#), r13
21939 movl r24 = @tprel(foo#)'
21942 tls_as_opt
=--fatal-warnings
21946 .section .tdata,"awT",@progbits
21950 addiu $4, $28, %tlsgd(x)
21951 addiu $4, $28, %tlsldm(x)
21952 lui $4, %dtprel_hi(x)
21953 addiu $4, $4, %dtprel_lo(x)
21954 lw $4, %gottprel(x)($28)
21955 lui $4, %tprel_hi(x)
21956 addiu $4, $4, %tprel_lo(x)'
21959 tls_as_opt
='-32 --fatal-warnings'
21963 .section ".tdata","awT",@progbits
21971 addi 3,31,ld0@got@tlsgd
21973 addi 3,31,x1@got@tlsld
21976 addis 9,3,x2@dtprel@ha
21977 addi 9,9,x2@dtprel@l
21978 lwz 9,x3@got@tprel(31)
21981 addis 9,2,x2@tprel@ha
21982 addi 9,9,x2@tprel@l'
21985 tls_as_opt
="-a32 --fatal-warnings"
21989 .section ".tdata","awT",@progbits
21997 addi 3,2,ld0@got@tlsgd
22003 addi 3,2,x1@got@tlsld
22009 addis 9,3,x2@dtprel@ha
22010 addi 9,9,x2@dtprel@l
22013 ld 9,x3@got@dtprel(2)
22019 tls_as_opt
="-a64 --fatal-warnings"
22023 .section ".tdata","awT",@progbits
22030 .long foo@GOTNTPOFF
22031 .long foo@INDNTPOFF
22032 l %r1,foo@GOTNTPOFF(%r12)
22033 l %r1,0(%r1):tls_load:foo
22034 bas %r14,0(%r1,%r13):tls_gdcall:foo
22035 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22038 tls_as_opt
="-m31 --fatal-warnings"
22042 .section ".tdata","awT",@progbits
22049 .quad foo@GOTNTPOFF
22050 lg %r1,foo@GOTNTPOFF(%r12)
22051 larl %r1,foo@INDNTPOFF
22052 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22053 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22056 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22058 sh-
*-* | sh
[34]-*-*)
22060 .section ".tdata","awT",@progbits
22070 tls_as_opt
=--fatal-warnings
22074 sparc
*-sun-solaris2.
[56789]*)
22075 # TLS was introduced in the Solaris 9 4/04 release but
22076 # we do not enable it by default on Solaris 9 either.
22077 if test "x$enable_tls" = xyes
; then
22083 sparc
*-sun-solaris2.
*)
22090 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22092 .section ".tdata",#alloc,#write,#tls
22095 sethi %tgd_hi22(foo), %o0
22096 add %o0, %tgd_lo10(foo), %o1
22097 add %l7, %o1, %o0, %tgd_add(foo)
22098 call __tls_get_addr, %tgd_call(foo)
22099 sethi %tldm_hi22(foo), %l1
22100 add %l1, %tldm_lo10(foo), %l2
22101 add %l7, %l2, %o0, %tldm_add(foo)
22102 call __tls_get_addr, %tldm_call(foo)
22103 sethi %tldo_hix22(foo), %l3
22104 xor %l3, %tldo_lox10(foo), %l4
22105 add %o0, %l4, %l5, %tldo_add(foo)
22106 sethi %tie_hi22(foo), %o3
22107 add %o3, %tie_lo10(foo), %o3
22108 ld [%l7 + %o3], %o2, %tie_ld(foo)
22109 add %g7, %o2, %o4, %tie_add(foo)
22110 sethi %tle_hix22(foo), %l1
22111 xor %l1, %tle_lox10(foo), %o5
22112 ld [%g7 + %o5], %o1'
22117 .section ".tdata","awT",@progbits
22120 sethi %tgd_hi22(foo), %o0
22121 add %o0, %tgd_lo10(foo), %o1
22122 add %l7, %o1, %o0, %tgd_add(foo)
22123 call __tls_get_addr, %tgd_call(foo)
22124 sethi %tldm_hi22(foo), %l1
22125 add %l1, %tldm_lo10(foo), %l2
22126 add %l7, %l2, %o0, %tldm_add(foo)
22127 call __tls_get_addr, %tldm_call(foo)
22128 sethi %tldo_hix22(foo), %l3
22129 xor %l3, %tldo_lox10(foo), %l4
22130 add %o0, %l4, %l5, %tldo_add(foo)
22131 sethi %tie_hi22(foo), %o3
22132 add %o3, %tie_lo10(foo), %o3
22133 ld [%l7 + %o3], %o2, %tie_ld(foo)
22134 add %g7, %o2, %o4, %tie_add(foo)
22135 sethi %tle_hix22(foo), %l1
22136 xor %l1, %tle_lox10(foo), %o5
22137 ld [%g7 + %o5], %o1'
22140 tls_as_opt
="-32 --fatal-warnings"
22145 .section ".tdata","awT",@progbits
22148 movi a8, foo@TLSFUNC
22149 movi a10, foo@TLSARG
22150 callx8.tls a8, foo@TLSCALL'
22156 if test "x$enable_tls" = xno
; then
22157 : # TLS explicitly disabled.
22158 elif test "x$enable_tls" = xyes
; then
22159 set_have_as_tls
=yes # TLS explicitly enabled.
22160 elif test -z "$tls_first_major"; then
22161 : # If we don't have a check, assume no support.
22163 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22164 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22165 if test "${gcc_cv_as_tls+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 if test $in_tree_gas = yes; then
22170 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22171 then gcc_cv_as_tls
=yes
22173 elif test x
$gcc_cv_as != x
; then
22174 echo "$conftest_s" > conftest.s
22175 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }
22184 echo "configure: failed program was" >&5
22187 rm -f conftest.o conftest.s
22190 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22191 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22192 if test $gcc_cv_as_tls = yes; then
22193 set_have_as_tls
=yes
22196 if test $set_have_as_tls = yes ; then
22198 cat >>confdefs.h
<<\_ACEOF
22199 #define HAVE_AS_TLS 1
22204 # Target-specific assembler checks.
22206 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22207 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22208 gcc_cv_ld_static_dynamic
=no
22209 if test $in_tree_ld = yes ; then
22210 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
22211 gcc_cv_ld_static_dynamic
=yes
22213 elif test x
$gcc_cv_ld != x
; then
22214 # Check if linker supports -Bstatic/-Bdynamic option
22215 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22216 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22217 gcc_cv_ld_static_dynamic
=yes
22220 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22222 cat >>confdefs.h
<<\_ACEOF
22223 #define HAVE_LD_STATIC_DYNAMIC 1
22227 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22228 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22230 if test x
"$demangler_in_ld" = xyes
; then
22231 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22232 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22233 gcc_cv_ld_demangle
=no
22234 if test $in_tree_ld = yes; then
22235 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 \
22236 gcc_cv_ld_demangle
=yes
22238 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22239 # Check if the GNU linker supports --demangle option
22240 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22241 gcc_cv_ld_demangle
=yes
22244 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22246 cat >>confdefs.h
<<\_ACEOF
22247 #define HAVE_LD_DEMANGLE 1
22251 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22252 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22256 # All TARGET_ABI_OSF targets.
22257 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22258 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22259 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22260 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 gcc_cv_as_alpha_explicit_relocs
=no
22264 if test $in_tree_gas = yes; then
22265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22266 then gcc_cv_as_alpha_explicit_relocs
=yes
22268 elif test x
$gcc_cv_as != x
; then
22269 echo ' .set nomacro
22271 extbl $3, $2, $3 !lituse_bytoff!1
22272 ldq $2, a($29) !literal!1
22273 ldq $4, b($29) !literal!2
22274 ldq_u $3, 0($2) !lituse_base!1
22275 ldq $27, f($29) !literal!5
22276 jsr $26, ($27), f !lituse_jsr!5
22277 ldah $29, 0($26) !gpdisp!3
22278 lda $0, c($29) !gprel
22279 ldah $1, d($29) !gprelhigh
22280 lda $1, d($1) !gprellow
22281 lda $29, 0($29) !gpdisp!3' > conftest.s
22282 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }
22289 gcc_cv_as_alpha_explicit_relocs
=yes
22291 echo "configure: failed program was" >&5
22294 rm -f conftest.o conftest.s
22297 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22298 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22299 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22301 cat >>confdefs.h
<<\_ACEOF
22302 #define HAVE_AS_EXPLICIT_RELOCS 1
22306 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22307 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22308 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 gcc_cv_as_alpha_jsrdirect_relocs
=no
22312 if test $in_tree_gas = yes; then
22313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22314 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22316 elif test x
$gcc_cv_as != x
; then
22317 echo ' .set nomacro
22319 ldq $27, a($29) !literal!1
22320 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22321 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }
22328 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22330 echo "configure: failed program was" >&5
22333 rm -f conftest.o conftest.s
22336 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22337 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22338 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22340 cat >>confdefs.h
<<\_ACEOF
22341 #define HAVE_AS_JSRDIRECT_RELOCS 1
22348 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22349 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22350 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 gcc_cv_as_cris_no_mul_bug
=no
22354 if test $in_tree_gas = yes; then
22355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22356 then gcc_cv_as_cris_no_mul_bug
=yes
22358 elif test x
$gcc_cv_as != x
; then
22359 echo '.text' > conftest.s
22360 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }
22367 gcc_cv_as_cris_no_mul_bug
=yes
22369 echo "configure: failed program was" >&5
22372 rm -f conftest.o conftest.s
22375 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22376 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22377 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22379 cat >>confdefs.h
<<\_ACEOF
22380 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22387 echo "$as_me:$LINENO: checking assembler for .register" >&5
22388 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22389 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22390 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 gcc_cv_as_sparc_register_op
=no
22393 if test x
$gcc_cv_as != x
; then
22394 echo '.register %g2, #scratch' > conftest.s
22395 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }
22402 gcc_cv_as_sparc_register_op
=yes
22404 echo "configure: failed program was" >&5
22407 rm -f conftest.o conftest.s
22410 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22411 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22412 if test $gcc_cv_as_sparc_register_op = yes; then
22414 cat >>confdefs.h
<<\_ACEOF
22415 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22420 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22421 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22422 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 gcc_cv_as_sparc_relax
=no
22426 if test x
$gcc_cv_as != x
; then
22427 echo '.text' > conftest.s
22428 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }
22435 gcc_cv_as_sparc_relax
=yes
22437 echo "configure: failed program was" >&5
22440 rm -f conftest.o conftest.s
22443 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22444 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22445 if test $gcc_cv_as_sparc_relax = yes; then
22447 cat >>confdefs.h
<<\_ACEOF
22448 #define HAVE_AS_RELAX_OPTION 1
22453 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22454 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22455 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22458 gcc_cv_as_sparc_ua_pcrel
=no
22459 if test x
$gcc_cv_as != x
; then
22466 .uaword %r_disp32(foo)' > conftest.s
22467 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }
22474 if test x
$gcc_cv_ld != x \
22475 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22476 gcc_cv_as_sparc_ua_pcrel
=yes
22480 echo "configure: failed program was" >&5
22483 rm -f conftest.o conftest.s
22486 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22487 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22488 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22490 cat >>confdefs.h
<<\_ACEOF
22491 #define HAVE_AS_SPARC_UA_PCREL 1
22495 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22496 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22497 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22501 if test x
$gcc_cv_as != x
; then
22505 .uaword %r_disp32(foo)
22506 .byte 0x32, 0x33, 0x34
22510 .skip 4' > conftest.s
22511 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; }
22518 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22519 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22520 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22521 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22522 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22523 |
grep 'DISP32' > /dev
/null
2>&1; then
22526 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22531 echo "configure: failed program was" >&5
22534 rm -f conftest.o conftest.s
22537 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22538 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22539 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22541 cat >>confdefs.h
<<\_ACEOF
22542 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22547 fi # unaligned pcrel relocs
22549 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22550 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22551 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 gcc_cv_as_sparc_offsetable_lo10
=no
22555 if test x
$gcc_cv_as != x
; then
22557 or %g1, %lo(ab) + 12, %g1
22558 or %g1, %lo(ab + 12), %g1' > conftest.s
22559 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }
22566 if test x
$gcc_cv_objdump != x \
22567 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22568 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22569 gcc_cv_as_sparc_offsetable_lo10
=yes
22572 echo "configure: failed program was" >&5
22575 rm -f conftest.o conftest.s
22578 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22579 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22580 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22582 cat >>confdefs.h
<<\_ACEOF
22583 #define HAVE_AS_OFFSETABLE_LO10 1
22589 i
[34567]86-*-* | x86_64-
*-*)
22591 cygwin
* | pe | mingw32
*)
22592 # Used for DWARF 2 in PE
22593 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22594 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22595 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 gcc_cv_as_ix86_pe_secrel32
=no
22599 if test $in_tree_gas = yes; then
22600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22601 then gcc_cv_as_ix86_pe_secrel32
=yes
22603 elif test x
$gcc_cv_as != x
; then
22607 .secrel32 foo' > conftest.s
22608 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }
22615 if test x
$gcc_cv_ld != x \
22616 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
22617 gcc_cv_as_ix86_pe_secrel32
=yes
22621 echo "configure: failed program was" >&5
22624 rm -f conftest.o conftest.s
22627 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22628 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22629 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22631 cat >>confdefs.h
<<\_ACEOF
22632 #define HAVE_GAS_PE_SECREL32_RELOC 1
22639 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22640 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22641 if test "${gcc_cv_as_ix86_filds+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 gcc_cv_as_ix86_filds
=no
22645 if test x
$gcc_cv_as != x
; then
22646 echo 'filds mem; fists mem' > conftest.s
22647 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; }
22654 gcc_cv_as_ix86_filds
=yes
22656 echo "configure: failed program was" >&5
22659 rm -f conftest.o conftest.s
22662 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
22663 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
22664 if test $gcc_cv_as_ix86_filds = yes; then
22666 cat >>confdefs.h
<<\_ACEOF
22667 #define HAVE_AS_IX86_FILDS 1
22672 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
22673 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
22674 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
22677 gcc_cv_as_ix86_fildq
=no
22678 if test x
$gcc_cv_as != x
; then
22679 echo 'fildq mem; fistpq mem' > conftest.s
22680 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }
22687 gcc_cv_as_ix86_fildq
=yes
22689 echo "configure: failed program was" >&5
22692 rm -f conftest.o conftest.s
22695 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
22696 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
22697 if test $gcc_cv_as_ix86_fildq = yes; then
22699 cat >>confdefs.h
<<\_ACEOF
22700 #define HAVE_AS_IX86_FILDQ 1
22705 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22706 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22707 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 gcc_cv_as_ix86_cmov_sun_syntax
=no
22711 if test x
$gcc_cv_as != x
; then
22712 echo 'cmovl.l %edx, %eax' > conftest.s
22713 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }
22720 gcc_cv_as_ix86_cmov_sun_syntax
=yes
22722 echo "configure: failed program was" >&5
22725 rm -f conftest.o conftest.s
22728 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22729 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22730 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22732 cat >>confdefs.h
<<\_ACEOF
22733 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22738 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22739 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22740 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22741 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 gcc_cv_as_ix86_ffreep
=no
22744 if test x
$gcc_cv_as != x
; then
22745 echo 'ffreep %st(1)' > conftest.s
22746 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }
22753 gcc_cv_as_ix86_ffreep
=yes
22755 echo "configure: failed program was" >&5
22758 rm -f conftest.o conftest.s
22761 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22762 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22763 if test $gcc_cv_as_ix86_ffreep = yes; then
22765 cat >>confdefs.h
<<\_ACEOF
22766 #define HAVE_AS_IX86_FFREEP 1
22771 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22772 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22773 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 gcc_cv_as_ix86_sahf
=no
22777 if test x
$gcc_cv_as != x
; then
22778 echo 'sahf' > conftest.s
22779 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }
22786 gcc_cv_as_ix86_sahf
=yes
22788 echo "configure: failed program was" >&5
22791 rm -f conftest.o conftest.s
22794 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22795 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22796 if test $gcc_cv_as_ix86_sahf = yes; then
22798 cat >>confdefs.h
<<\_ACEOF
22799 #define HAVE_AS_IX86_SAHF 1
22804 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22805 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22806 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 gcc_cv_as_ix86_diff_sect_delta
=no
22810 if test x
$gcc_cv_as != x
; then
22811 echo '.section .rodata
22817 .L2: nop' > conftest.s
22818 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }
22825 gcc_cv_as_ix86_diff_sect_delta
=yes
22827 echo "configure: failed program was" >&5
22830 rm -f conftest.o conftest.s
22833 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22834 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22835 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22837 cat >>confdefs.h
<<\_ACEOF
22838 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22843 # This one is used unconditionally by i386.[ch]; it is to be defined
22844 # to 1 if the feature is present, 0 otherwise.
22845 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22846 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22847 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22850 gcc_cv_as_ix86_gotoff_in_data
=no
22851 if test $in_tree_gas = yes; then
22852 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22853 then gcc_cv_as_ix86_gotoff_in_data
=yes
22855 elif test x
$gcc_cv_as != x
; then
22860 .long .L0@GOTOFF' > conftest.s
22861 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }
22868 gcc_cv_as_ix86_gotoff_in_data
=yes
22870 echo "configure: failed program was" >&5
22873 rm -f conftest.o conftest.s
22876 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22877 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22880 cat >>confdefs.h
<<_ACEOF
22881 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22887 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22888 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22889 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
22893 if test $in_tree_gas = yes; then
22894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22895 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22897 elif test x
$gcc_cv_as != x
; then
22899 addl r15 = @ltoffx(x#), gp
22901 ld8.mov r16 = [r15], x#' > conftest.s
22902 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }
22909 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
22911 echo "configure: failed program was" >&5
22914 rm -f conftest.o conftest.s
22917 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22918 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22919 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22921 cat >>confdefs.h
<<\_ACEOF
22922 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22931 *-*-aix*) conftest_s
=' .machine "pwr5"
22935 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22936 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22937 if test "${gcc_cv_as_machine_directive+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 gcc_cv_as_machine_directive
=no
22941 if test x
$gcc_cv_as != x
; then
22942 echo ' .machine ppc7400' > conftest.s
22943 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }
22950 gcc_cv_as_machine_directive
=yes
22952 echo "configure: failed program was" >&5
22955 rm -f conftest.o conftest.s
22958 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22959 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22961 if test x
$gcc_cv_as_machine_directive != xyes
; then
22962 echo "*** This target requires an assembler supporting \".machine\"" >&2
22963 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
22964 test x
$build = x
$target && exit 1
22968 *) conftest_s
=' .machine power4
22973 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22974 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22975 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 gcc_cv_as_powerpc_mfcrf
=no
22979 if test $in_tree_gas = yes; then
22980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22981 then gcc_cv_as_powerpc_mfcrf
=yes
22983 elif test x
$gcc_cv_as != x
; then
22984 echo "$conftest_s" > conftest.s
22985 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987 (eval $ac_try) 2>&5
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; }
22992 gcc_cv_as_powerpc_mfcrf
=yes
22994 echo "configure: failed program was" >&5
22997 rm -f conftest.o conftest.s
23000 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
23001 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
23002 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23004 cat >>confdefs.h
<<\_ACEOF
23005 #define HAVE_AS_MFCRF 1
23011 *-*-aix*) conftest_s
=' .machine "pwr5"
23014 *) conftest_s
=' .machine power5
23019 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
23020 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
23021 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23024 gcc_cv_as_powerpc_popcntb
=no
23025 if test $in_tree_gas = yes; then
23026 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23027 then gcc_cv_as_powerpc_popcntb
=yes
23029 elif test x
$gcc_cv_as != x
; then
23030 echo "$conftest_s" > conftest.s
23031 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }
23038 gcc_cv_as_powerpc_popcntb
=yes
23040 echo "configure: failed program was" >&5
23043 rm -f conftest.o conftest.s
23046 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23047 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23048 if test $gcc_cv_as_powerpc_popcntb = yes; then
23050 cat >>confdefs.h
<<\_ACEOF
23051 #define HAVE_AS_POPCNTB 1
23057 *-*-aix*) conftest_s
=' .machine "pwr5x"
23060 *) conftest_s
=' .machine power5
23065 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23066 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23067 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23070 gcc_cv_as_powerpc_fprnd
=no
23071 if test $in_tree_gas = yes; then
23072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23073 then gcc_cv_as_powerpc_fprnd
=yes
23075 elif test x
$gcc_cv_as != x
; then
23076 echo "$conftest_s" > conftest.s
23077 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }
23084 gcc_cv_as_powerpc_fprnd
=yes
23086 echo "configure: failed program was" >&5
23089 rm -f conftest.o conftest.s
23092 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23093 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23094 if test $gcc_cv_as_powerpc_fprnd = yes; then
23096 cat >>confdefs.h
<<\_ACEOF
23097 #define HAVE_AS_FPRND 1
23103 *-*-aix*) conftest_s
=' .machine "pwr6"
23106 *) conftest_s
=' .machine power6
23111 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23112 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23113 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 gcc_cv_as_powerpc_mfpgpr
=no
23117 if test $in_tree_gas = yes; then
23118 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23119 then gcc_cv_as_powerpc_mfpgpr
=yes
23121 elif test x
$gcc_cv_as != x
; then
23122 echo "$conftest_s" > conftest.s
23123 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }
23130 gcc_cv_as_powerpc_mfpgpr
=yes
23132 echo "configure: failed program was" >&5
23135 rm -f conftest.o conftest.s
23138 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23139 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23140 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23142 cat >>confdefs.h
<<\_ACEOF
23143 #define HAVE_AS_MFPGPR 1
23149 *-*-aix*) conftest_s
=' .csect .text[PR]
23151 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23155 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23156 *) conftest_s
=' .text
23158 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23161 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23162 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23163 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 gcc_cv_as_powerpc_rel16
=no
23167 if test $in_tree_gas = yes; then
23168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23169 then gcc_cv_as_powerpc_rel16
=yes
23171 elif test x
$gcc_cv_as != x
; then
23172 echo "$conftest_s" > conftest.s
23173 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }
23180 gcc_cv_as_powerpc_rel16
=yes
23182 echo "configure: failed program was" >&5
23185 rm -f conftest.o conftest.s
23188 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23189 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23190 if test $gcc_cv_as_powerpc_rel16 = yes; then
23192 cat >>confdefs.h
<<\_ACEOF
23193 #define HAVE_AS_REL16 1
23199 *-*-aix*) conftest_s
=' .machine "pwr6"
23202 *) conftest_s
=' .machine power6
23207 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23208 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23209 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 gcc_cv_as_powerpc_cmpb
=no
23213 if test $in_tree_gas = yes; then
23214 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23215 then gcc_cv_as_powerpc_cmpb
=yes
23217 elif test x
$gcc_cv_as != x
; then
23218 echo "$conftest_s" > conftest.s
23219 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }
23226 gcc_cv_as_powerpc_cmpb
=yes
23228 echo "configure: failed program was" >&5
23231 rm -f conftest.o conftest.s
23234 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23235 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23236 if test $gcc_cv_as_powerpc_cmpb = yes; then
23238 cat >>confdefs.h
<<\_ACEOF
23239 #define HAVE_AS_CMPB 1
23245 *-*-aix*) conftest_s
=' .machine "pwr6"
23248 *) conftest_s
=' .machine power6
23253 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23254 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23255 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 gcc_cv_as_powerpc_dfp
=no
23259 if test $in_tree_gas = yes; then
23260 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23261 then gcc_cv_as_powerpc_dfp
=yes
23263 elif test x
$gcc_cv_as != x
; then
23264 echo "$conftest_s" > conftest.s
23265 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; }
23272 gcc_cv_as_powerpc_dfp
=yes
23274 echo "configure: failed program was" >&5
23277 rm -f conftest.o conftest.s
23280 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23281 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23282 if test $gcc_cv_as_powerpc_dfp = yes; then
23284 cat >>confdefs.h
<<\_ACEOF
23285 #define HAVE_AS_DFP 1
23291 *-*-aix*) conftest_s
=' .machine "pwr7"
23294 *) conftest_s
=' .machine power7
23299 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23300 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23301 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 gcc_cv_as_powerpc_vsx
=no
23305 if test $in_tree_gas = yes; then
23306 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23307 then gcc_cv_as_powerpc_vsx
=yes
23309 elif test x
$gcc_cv_as != x
; then
23310 echo "$conftest_s" > conftest.s
23311 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }
23318 gcc_cv_as_powerpc_vsx
=yes
23320 echo "configure: failed program was" >&5
23323 rm -f conftest.o conftest.s
23326 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23327 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23328 if test $gcc_cv_as_powerpc_vsx = yes; then
23330 cat >>confdefs.h
<<\_ACEOF
23331 #define HAVE_AS_VSX 1
23336 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23337 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23338 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23341 gcc_cv_as_powerpc_gnu_attribute
=no
23342 if test $in_tree_gas = yes; then
23343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23344 then gcc_cv_as_powerpc_gnu_attribute
=yes
23346 elif test x
$gcc_cv_as != x
; then
23347 echo '.gnu_attribute 4,1' > conftest.s
23348 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }
23355 gcc_cv_as_powerpc_gnu_attribute
=yes
23357 echo "configure: failed program was" >&5
23360 rm -f conftest.o conftest.s
23363 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23364 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23365 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23367 cat >>confdefs.h
<<\_ACEOF
23368 #define HAVE_AS_GNU_ATTRIBUTE 1
23373 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23374 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23375 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 gcc_cv_as_powerpc_tls_markers
=no
23379 if test $in_tree_gas = yes; then
23380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23381 then gcc_cv_as_powerpc_tls_markers
=yes
23383 elif test x
$gcc_cv_as != x
; then
23384 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23385 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }
23392 gcc_cv_as_powerpc_tls_markers
=yes
23394 echo "configure: failed program was" >&5
23397 rm -f conftest.o conftest.s
23400 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23401 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23402 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23404 cat >>confdefs.h
<<\_ACEOF
23405 #define HAVE_AS_TLS_MARKERS 1
23412 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23413 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23414 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 gcc_cv_as_mips_explicit_relocs
=no
23418 if test $in_tree_gas = yes; then
23419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23420 then gcc_cv_as_mips_explicit_relocs
=yes
23422 elif test x
$gcc_cv_as != x
; then
23423 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23424 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }
23431 gcc_cv_as_mips_explicit_relocs
=yes
23433 echo "configure: failed program was" >&5
23436 rm -f conftest.o conftest.s
23439 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23440 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23441 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23442 if test x
$target_cpu_default = x
23443 then target_cpu_default
=MASK_EXPLICIT_RELOCS
23444 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23447 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23448 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23449 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 gcc_cv_as_mips_no_shared
=no
23453 if test $in_tree_gas = yes; then
23454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23455 then gcc_cv_as_mips_no_shared
=yes
23457 elif test x
$gcc_cv_as != x
; then
23458 echo 'nop' > conftest.s
23459 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }
23466 gcc_cv_as_mips_no_shared
=yes
23468 echo "configure: failed program was" >&5
23471 rm -f conftest.o conftest.s
23474 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23475 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23476 if test $gcc_cv_as_mips_no_shared = yes; then
23478 cat >>confdefs.h
<<\_ACEOF
23479 #define HAVE_AS_NO_SHARED 1
23484 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23485 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23486 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 gcc_cv_as_mips_gnu_attribute
=no
23490 if test $in_tree_gas = yes; then
23491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23492 then gcc_cv_as_mips_gnu_attribute
=yes
23494 elif test x
$gcc_cv_as != x
; then
23495 echo '.gnu_attribute 4,1' > conftest.s
23496 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498 (eval $ac_try) 2>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); }; }
23503 gcc_cv_as_mips_gnu_attribute
=yes
23505 echo "configure: failed program was" >&5
23508 rm -f conftest.o conftest.s
23511 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23512 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23513 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23515 cat >>confdefs.h
<<\_ACEOF
23516 #define HAVE_AS_GNU_ATTRIBUTE 1
23521 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23522 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23523 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23526 gcc_cv_as_mips_dtprelword
=no
23527 if test $in_tree_gas = yes; then
23528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23529 then gcc_cv_as_mips_dtprelword
=yes
23531 elif test x
$gcc_cv_as != x
; then
23532 echo '.section .tdata,"awT",@progbits
23536 .dtprelword x+0x8000' > conftest.s
23537 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; }
23544 gcc_cv_as_mips_dtprelword
=yes
23546 echo "configure: failed program was" >&5
23549 rm -f conftest.o conftest.s
23552 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23553 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23554 if test $gcc_cv_as_mips_dtprelword = yes; then
23556 cat >>confdefs.h
<<\_ACEOF
23557 #define HAVE_AS_DTPRELWORD 1
23564 # Mips and HP-UX need the GNU assembler.
23565 # Linux on IA64 might be able to use the Intel assembler.
23568 mips
*-*-* |
*-*-hpux* )
23569 if test x
$gas_flag = xyes \
23570 ||
test x
"$host" != x
"$build" \
23571 ||
test ! -x "$gcc_cv_as" \
23572 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
23575 echo "*** This configuration requires the GNU assembler" >&2
23581 # ??? Not all targets support dwarf2 debug_line, even within a version
23582 # of gas. Moreover, we need to emit a valid instruction to trigger any
23583 # info to the output file. So, as supported targets are added to gas 2.11,
23584 # add some instruction here to (also) show we expect this might work.
23585 # ??? Once 2.11 is released, probably need to add first known working
23586 # version to the per-target configury.
23588 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
23589 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
23590 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
23591 | spu-
*-* | fido
*-*-* | m32c-
*-*)
23594 ia64
*-*-* | s390
*-*-*)
23601 if test x
"$insn" != x
; then
23603 .file 1 \"conftest.s\"
23606 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23607 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23608 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 gcc_cv_as_dwarf2_debug_line
=no
23612 if test $in_tree_gas = yes; then
23613 if test $in_tree_gas_is_elf = yes \
23614 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23615 then gcc_cv_as_dwarf2_debug_line
=yes
23617 elif test x
$gcc_cv_as != x
; then
23618 echo "$conftest_s" > conftest.s
23619 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }
23626 if test x
$gcc_cv_objdump != x \
23627 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
23628 |
grep debug_line
> /dev
/null
2>&1; then
23629 gcc_cv_as_dwarf2_debug_line
=yes
23632 echo "configure: failed program was" >&5
23635 rm -f conftest.o conftest.s
23638 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23639 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23642 # The .debug_line file table must be in the exact order that
23643 # we specified the files, since these indices are also used
23644 # by DW_AT_decl_file. Approximate this test by testing if
23645 # the assembler bitches if the same index is assigned twice.
23646 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23647 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23648 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23651 gcc_cv_as_dwarf2_file_buggy
=no
23652 if test x
$gcc_cv_as != x
; then
23653 echo ' .file 1 "foo.s"
23654 .file 1 "bar.s"' > conftest.s
23655 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }
23662 gcc_cv_as_dwarf2_file_buggy
=yes
23664 echo "configure: failed program was" >&5
23667 rm -f conftest.o conftest.s
23670 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23671 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23674 if test $gcc_cv_as_dwarf2_debug_line = yes \
23675 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
23677 cat >>confdefs.h
<<\_ACEOF
23678 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23683 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23684 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23685 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23686 echo $ECHO_N "(cached) $ECHO_C" >&6
23688 gcc_cv_as_gdwarf2_flag
=no
23689 if test $in_tree_gas = yes; then
23690 if test $in_tree_gas_is_elf = yes \
23691 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23692 then gcc_cv_as_gdwarf2_flag
=yes
23694 elif test x
$gcc_cv_as != x
; then
23695 echo "$insn" > conftest.s
23696 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }
23703 gcc_cv_as_gdwarf2_flag
=yes
23705 echo "configure: failed program was" >&5
23708 rm -f conftest.o conftest.s
23711 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23712 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23713 if test $gcc_cv_as_gdwarf2_flag = yes; then
23715 cat >>confdefs.h
<<\_ACEOF
23716 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23721 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23722 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23723 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 gcc_cv_as_gstabs_flag
=no
23727 if test $in_tree_gas = yes; then
23728 if test $in_tree_gas_is_elf = yes \
23729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23730 then gcc_cv_as_gstabs_flag
=yes
23732 elif test x
$gcc_cv_as != x
; then
23733 echo "$insn" > conftest.s
23734 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }
23741 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23742 # and warns about it, but still exits successfully. So check for
23744 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }
23751 else gcc_cv_as_gstabs_flag
=yes
23754 echo "configure: failed program was" >&5
23757 rm -f conftest.o conftest.s
23760 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23761 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23762 if test $gcc_cv_as_gstabs_flag = yes; then
23764 cat >>confdefs.h
<<\_ACEOF
23765 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23770 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23771 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23772 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 gcc_cv_as_debug_prefix_map_flag
=no
23776 if test $in_tree_gas = yes; then
23777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23778 then gcc_cv_as_debug_prefix_map_flag
=yes
23780 elif test x
$gcc_cv_as != x
; then
23781 echo "$insn" > conftest.s
23782 if { ac_try
='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; }
23789 gcc_cv_as_debug_prefix_map_flag
=yes
23791 echo "configure: failed program was" >&5
23794 rm -f conftest.o conftest.s
23797 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23798 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23799 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23801 cat >>confdefs.h
<<\_ACEOF
23802 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23808 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23809 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23810 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 gcc_cv_as_lcomm_with_alignment
=no
23814 if test x
$gcc_cv_as != x
; then
23815 echo '.lcomm bar,4,16' > conftest.s
23816 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; }
23823 gcc_cv_as_lcomm_with_alignment
=yes
23825 echo "configure: failed program was" >&5
23828 rm -f conftest.o conftest.s
23831 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23832 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23833 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23835 cat >>confdefs.h
<<\_ACEOF
23836 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23841 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23842 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23843 if test "${gcc_cv_as_line_zero+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 gcc_cv_as_line_zero
=no
23847 if test $in_tree_gas = yes; then
23848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23849 then gcc_cv_as_line_zero
=yes
23851 elif test "x$gcc_cv_as" != x
; then
23852 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23853 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
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); }; } &&
23859 test "x`cat conftest.out`" = x
23861 gcc_cv_as_line_zero
=yes
23863 echo "configure: failed program was" >&5
23865 echo "configure: error output was" >&5
23866 cat conftest.out
>&5
23868 rm -f conftest.o conftest.s conftest.out
23871 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23872 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23873 if test "x$gcc_cv_as_line_zero" = xyes
; then
23875 cat >>confdefs.h
<<\_ACEOF
23876 #define HAVE_AS_LINE_ZERO 1
23881 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23882 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23883 gcc_cv_ld_eh_frame_hdr
=no
23884 if test $in_tree_ld = yes ; then
23885 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 \
23886 && test $in_tree_ld_is_elf = yes; then
23887 gcc_cv_ld_eh_frame_hdr
=yes
23889 elif test x
$gcc_cv_ld != x
; then
23890 # Check if linker supports --eh-frame-hdr option
23891 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
23892 gcc_cv_ld_eh_frame_hdr
=yes
23896 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
23898 cat >>confdefs.h
<<\_ACEOF
23899 #define HAVE_LD_EH_FRAME_HDR 1
23903 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23904 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23906 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23907 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23909 if test $in_tree_ld = yes ; then
23910 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 \
23911 && test $in_tree_ld_is_elf = yes; then
23914 elif test x
$gcc_cv_ld != x
; then
23915 # Check if linker supports -pie option
23916 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
23920 if test x
"$gcc_cv_ld_pie" = xyes
; then
23922 cat >>confdefs.h
<<\_ACEOF
23923 #define HAVE_LD_PIE 1
23927 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23928 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23930 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23931 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23932 gcc_cv_ld_eh_gc_sections
=no
23933 if test $in_tree_ld = yes ; then
23934 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 \
23935 && test $in_tree_ld_is_elf = yes; then
23936 gcc_cv_ld_eh_gc_sections
=yes
23938 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23939 cat > conftest.s
<<EOF
23942 .type _start, @function
23945 .size _start, .-_start
23946 .section .text.foo,"ax",@progbits
23947 .type foo, @function
23951 .section .gcc_except_table.foo,"a",@progbits
23954 .section .eh_frame,"a",@progbits
23957 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23958 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23959 |
grep "gc-sections option ignored" > /dev
/null
; then
23960 gcc_cv_ld_eh_gc_sections
=no
23961 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23962 gcc_cv_ld_eh_gc_sections
=yes
23963 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23964 if test x
$gcc_cv_as_comdat_group != xyes
; then
23965 gcc_cv_ld_eh_gc_sections
=no
23966 cat > conftest.s
<<EOF
23969 .type _start, @function
23972 .size _start, .-_start
23973 .section .gnu.linkonce.t.foo,"ax",@progbits
23974 .type foo, @function
23978 .section .gcc_except_table.foo,"a",@progbits
23981 .section .eh_frame,"a",@progbits
23984 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
23985 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
23986 |
grep "gc-sections option ignored" > /dev
/null
; then
23987 gcc_cv_ld_eh_gc_sections
=no
23988 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
23989 gcc_cv_ld_eh_gc_sections
=yes
23995 rm -f conftest.s conftest.o conftest
23999 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24000 gcc_cv_ld_eh_gc_sections
=no
24003 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24005 cat >>confdefs.h
<<\_ACEOF
24006 #define HAVE_LD_EH_GC_SECTIONS 1
24010 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
24011 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
24017 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
24018 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
24019 if test "${gcc_cv_ld_as_needed+set}" = set; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 gcc_cv_ld_as_needed
=no
24023 if test $in_tree_ld = yes ; then
24024 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 \
24025 && test $in_tree_ld_is_elf = yes; then
24026 gcc_cv_ld_as_needed
=yes
24028 elif test x
$gcc_cv_ld != x
; then
24029 # Check if linker supports --as-needed and --no-as-needed options
24030 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24031 gcc_cv_ld_as_needed
=yes
24036 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
24037 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
24038 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24040 cat >>confdefs.h
<<\_ACEOF
24041 #define HAVE_LD_AS_NEEDED 1
24046 case "$target:$tm_file" in
24047 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24048 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24049 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24050 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24053 gcc_cv_ld_no_dot_syms
=no
24054 if test $in_tree_ld = yes ; then
24055 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
24056 gcc_cv_ld_no_dot_syms
=yes
24058 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24059 cat > conftest1.s
<<EOF
24063 cat > conftest2.s
<<EOF
24064 .section ".opd","aw"
24067 .type foo,@function
24069 .quad .LEfoo,.TOC.@tocbase,0
24075 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24076 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24077 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24078 gcc_cv_ld_no_dot_syms
=yes
24080 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24084 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24085 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24086 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24088 cat >>confdefs.h
<<\_ACEOF
24089 #define HAVE_LD_NO_DOT_SYMS 1
24096 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24097 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24098 if test "${gcc_cv_ld_sysroot+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 gcc_cv_ld_sysroot
=no
24102 if test $in_tree_ld = yes ; then
24103 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
24104 gcc_cv_ld_sysroot
=yes
24106 elif test x
$gcc_cv_ld != x
; then
24107 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
24108 gcc_cv_ld_sysroot
=yes
24112 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24113 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24114 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
24116 cat >>confdefs.h
<<\_ACEOF
24117 #define HAVE_LD_SYSROOT 1
24122 if test x
$with_sysroot = x
&& test x
$host = x
$target \
24123 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24124 && test "$prefix" != "NONE"; then
24126 cat >>confdefs.h
<<_ACEOF
24127 #define PREFIX_INCLUDE_DIR "$prefix/include"
24132 # Test for stack protector support in target C library.
24133 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24134 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24135 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24136 echo $ECHO_N "(cached) $ECHO_C" >&6
24138 gcc_cv_libc_provides_ssp
=no
24140 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
24141 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
24142 if test "x$with_sysroot" = x
; then
24143 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
24144 elif test "x$with_build_sysroot" != "x"; then
24145 glibc_header_dir
="${with_build_sysroot}/usr/include"
24146 elif test "x$with_sysroot" = xyes
; then
24147 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24149 glibc_header_dir
="${with_sysroot}/usr/include"
24152 glibc_header_dir
=/usr
/include
24154 # glibc 2.4 and later provides __stack_chk_fail and
24155 # either __stack_chk_guard, or TLS access to stack guard canary.
24156 if test -f $glibc_header_dir/features.h \
24157 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24158 $glibc_header_dir/features.h
> /dev
/null
; then
24159 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24160 $glibc_header_dir/features.h
> /dev
/null
; then
24161 gcc_cv_libc_provides_ssp
=yes
24162 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24163 $glibc_header_dir/features.h
> /dev
/null \
24164 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24165 $glibc_header_dir/features.h
> /dev
/null
; then
24166 gcc_cv_libc_provides_ssp
=yes
24167 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24168 $glibc_header_dir/features.h
> /dev
/null
&& \
24169 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
24170 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24171 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
24172 gcc_cv_libc_provides_ssp
=yes
24177 # Avoid complicated tests (see
24178 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24179 # simply assert that glibc does provide this, which is true for all
24180 # realistically usable GNU/Hurd configurations.
24181 gcc_cv_libc_provides_ssp
=yes;;
24183 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24184 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24185 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24188 cat >conftest.
$ac_ext <<_ACEOF
24191 cat confdefs.h
>>conftest.
$ac_ext
24192 cat >>conftest.
$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24196 #define __stack_chk_fail innocuous___stack_chk_fail
24198 /* System header to define __stub macros and hopefully few prototypes,
24199 which can conflict with char __stack_chk_fail (); below.
24200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24201 <limits.h> exists even on freestanding compilers. */
24204 # include <limits.h>
24206 # include <assert.h>
24209 #undef __stack_chk_fail
24211 /* Override any gcc2 internal prototype to avoid an error. */
24216 /* We use char because int might match the return type of a gcc2
24217 builtin and then its argument prototype would still apply. */
24218 char __stack_chk_fail ();
24219 /* The GNU C library defines this for functions which it implements
24220 to always fail with ENOSYS. Some functions are actually named
24221 something starting with __ and the normal name is an alias. */
24222 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24225 char (*f) () = __stack_chk_fail;
24234 return f != __stack_chk_fail;
24239 rm -f conftest.
$ac_objext conftest
$ac_exeext
24240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24241 (eval $ac_link) 2>conftest.er1
24243 grep -v '^ *+' conftest.er1
>conftest.err
24245 cat conftest.err
>&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } &&
24248 { ac_try
='test -z "$ac_c_werror_flag"
24249 || test ! -s conftest.err'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; } &&
24255 { ac_try
='test -s conftest$ac_exeext'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_func___stack_chk_fail
=yes
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.
$ac_ext >&5
24266 ac_cv_func___stack_chk_fail
=no
24268 rm -f conftest.err conftest.
$ac_objext \
24269 conftest
$ac_exeext conftest.
$ac_ext
24271 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24272 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24273 if test $ac_cv_func___stack_chk_fail = yes; then
24274 gcc_cv_libc_provides_ssp
=yes
24276 echo "no __stack_chk_fail on this target"
24280 *) gcc_cv_libc_provides_ssp
=no
;;
24283 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24284 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24286 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
24288 cat >>confdefs.h
<<\_ACEOF
24289 #define TARGET_LIBC_PROVIDES_SSP 1
24294 # Check if TFmode long double should be used by default or not.
24295 # Some glibc targets used DFmode long double, but with glibc 2.4
24296 # and later they can use TFmode.
24298 powerpc
*-*-linux* | \
24299 powerpc
*-*-gnu* | \
24300 sparc
*-*-linux* | \
24304 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24305 if test "${with_long_double_128+set}" = set; then
24306 withval
="$with_long_double_128"
24307 gcc_cv_target_ldbl128
="$with_long_double_128"
24309 gcc_cv_target_ldbl128
=no
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 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24324 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
24325 && gcc_cv_target_ldbl128
=yes
24330 if test x
$gcc_cv_target_ldbl128 = xyes
; then
24332 cat >>confdefs.h
<<\_ACEOF
24333 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24338 # Find out what GC implementation we want, or may, use.
24340 # Check whether --with-gc or --without-gc was given.
24341 if test "${with_gc+set}" = set; then
24350 cat >>confdefs.h
<<\_ACEOF
24356 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24357 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24358 { (exit 1); exit 1; }; }
24365 echo "Using $GGC for garbage collection."
24367 # Use the system's zlib library.
24369 zlibinc
="-I\$(srcdir)/../zlib"
24371 # Check whether --with-system-zlib or --without-system-zlib was given.
24372 if test "${with_system_zlib+set}" = set; then
24373 withval
="$with_system_zlib"
24382 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24383 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24384 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24385 if test "${enable_maintainer_mode+set}" = set; then
24386 enableval
="$enable_maintainer_mode"
24387 maintainer_mode
=$enableval
24392 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24393 echo "${ECHO_T}$maintainer_mode" >&6
24395 if test "$maintainer_mode" = "yes"; then
24405 # Make empty files to contain the specs and options for each language.
24406 # Then add #include lines to for a compiler that has specs and/or options.
24412 # These (without "all_") are set in each config-lang.in.
24413 # `language' must be a single word so is spelled singularly.
24416 all_outputs
='Makefile gccbug'
24417 # List of language makefile fragments.
24418 all_lang_makefrags
=
24419 # List of language subdirectory makefiles. Deprecated.
24420 all_lang_makefiles
=
24421 # Additional files for gengtype
24422 all_gtfiles
="$target_gtfiles"
24424 # These are the languages that are set in --enable-languages,
24425 # and are available in the GCC tree.
24426 all_selected_languages
=
24428 # Add the language fragments.
24429 # Languages are added via two mechanisms. Some information must be
24430 # recorded in makefile variables, these are defined in config-lang.in.
24431 # We accumulate them and plug them into the main Makefile.
24432 # The other mechanism is a set of hooks for each of the main targets
24433 # like `clean', `install', etc.
24435 language_hooks
="Make-hooks"
24437 for lang
in ${srcdir}/*/config-lang.
in
24439 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24441 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24442 if test "x$lang_alias" = x
24444 echo "$lang doesn't set \$language." 1>&2
24447 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24448 subdirs
="$subdirs $subdir"
24450 # $gcc_subdir is where the gcc integration files are to be found
24451 # for a language, both for internal compiler purposes (compiler
24452 # sources implementing front-end to GCC tree converters), and for
24453 # build infrastructure purposes (Make-lang.in, etc.)
24455 # This will be <subdir> (relative to $srcdir) if a line like
24456 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24457 # is found in <langdir>/config-lang.in, and will remain <langdir>
24460 # Except for the language alias (fetched above), the regular
24461 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24462 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24463 # only this and the language alias.
24465 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24466 if [ "$gcc_subdir" = "" ]; then
24467 gcc_subdir
="$subdir"
24470 case ",$enable_languages," in
24472 all_selected_languages
="$all_selected_languages $lang_alias"
24473 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
24474 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24485 .
${srcdir}/$gcc_subdir/config-lang.
in
24486 if test "x$language" = x
24488 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24493 case ",$enable_languages," in
24494 *,$lang_alias,*) ;;
24496 for i
in $subdir_requires; do
24497 test -f "${srcdir}/$i/config-lang.in" && continue
24505 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24506 if test -f $srcdir/$gcc_subdir/lang.opt
; then
24507 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24509 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
24510 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24512 if test -f ${srcdir}/$gcc_subdir/Makefile.
in
24513 then all_lang_makefiles
="$gcc_subdir/Makefile"
24515 all_languages
="$all_languages $language"
24516 all_compilers
="$all_compilers $compilers"
24517 all_outputs
="$all_outputs $outputs"
24518 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
24521 # Pick up gtfiles for c
24523 .
${srcdir}/c-config-lang.
in
24524 all_gtfiles
="$all_gtfiles [c] $gtfiles"
24527 for language
in $all_selected_languages
24529 check_languages
="$check_languages check-$language"
24532 # We link each language in with a set of hooks, reached indirectly via
24533 # lang.${target}. Only do so for selected languages.
24537 target_list
="all.cross start.encap rest.encap tags \
24538 install-common install-man install-info install-pdf dvi pdf \
24539 html uninstall info man srcextra srcman srcinfo \
24540 mostlyclean clean distclean maintainer-clean"
24542 for t
in $target_list
24545 for lang
in $all_selected_languages
24549 echo "lang.$t: $x" >> Make-hooks
24558 echo "dir ." > .gdbinit
24559 echo "dir ${srcdir}" >> .gdbinit
24560 if test x
$gdb_needs_out_file_path = xyes
24562 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24564 if test "x$subdirs" != x
; then
24567 echo "dir ${srcdir}/$s" >> .gdbinit
24570 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24572 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24576 # Find a directory in which to install a shared libgcc.
24578 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24579 if test "${enable_version_specific_runtime_libs+set}" = set; then
24580 enableval
="$enable_version_specific_runtime_libs"
24585 # Check whether --with-slibdir or --without-slibdir was given.
24586 if test "${with_slibdir+set}" = set; then
24587 withval
="$with_slibdir"
24588 slibdir
="$with_slibdir"
24590 if test "${enable_version_specific_runtime_libs+set}" = set; then
24591 slibdir
='$(libsubdir)'
24592 elif test "$host" != "$target"; then
24593 slibdir
='$(build_tooldir)/lib'
24595 slibdir
='$(libdir)'
24601 # Check whether --with-datarootdir or --without-datarootdir was given.
24602 if test "${with_datarootdir+set}" = set; then
24603 withval
="$with_datarootdir"
24604 datarootdir
="\${prefix}/$with_datarootdir"
24606 datarootdir
='$(prefix)/share'
24611 # Check whether --with-docdir or --without-docdir was given.
24612 if test "${with_docdir+set}" = set; then
24613 withval
="$with_docdir"
24614 docdir
="\${prefix}/$with_docdir"
24616 docdir
='$(datarootdir)'
24621 # Check whether --with-htmldir or --without-htmldir was given.
24622 if test "${with_htmldir+set}" = set; then
24623 withval
="$with_htmldir"
24624 htmldir
="\${prefix}/$with_htmldir"
24626 htmldir
='$(docdir)'
24630 # Substitute configuration variables
24693 if test x
${build} = x
${host} ; then
24694 if test x
${host} = x
${target} ; then
24695 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24697 echo "Links are now set up to build a cross-compiler" 1>&2
24698 echo " from ${host} to ${target}." 1>&2
24701 if test x
${host} = x
${target} ; then
24702 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24703 echo " for ${target}." 1>&2
24705 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24706 echo " from ${host} to ${target}." 1>&2
24718 if test "x${CLOOGLIBS}" != "x" ; then
24720 cat >>confdefs.h
<<\_ACEOF
24721 #define HAVE_cloog 1
24726 # Check for plugin support
24727 # Check whether --enable-plugin or --disable-plugin was given.
24728 if test "${enable_plugin+set}" = set; then
24729 enableval
="$enable_plugin"
24730 enable_plugin
=$enableval
24732 enable_plugin
=yes; default_plugin
=yes
24736 if test x
"$enable_plugin" = x
"yes"; then
24737 # Check that the host supports -rdynamic and -ldl
24740 saved_LDFLAGS
="$LDFLAGS"
24745 LDFLAGS
="$LDFLAGS -rdynamic"
24746 echo "$as_me:$LINENO: checking for -rdynamic" >&5
24747 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24748 cat >conftest.
$ac_ext <<_ACEOF
24751 cat confdefs.h
>>conftest.
$ac_ext
24752 cat >>conftest.
$ac_ext <<_ACEOF
24753 /* end confdefs.h. */
24763 rm -f conftest.
$ac_objext conftest
$ac_exeext
24764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24765 (eval $ac_link) 2>conftest.er1
24767 grep -v '^ *+' conftest.er1
>conftest.err
24769 cat conftest.err
>&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } &&
24772 { ac_try
='test -z "$ac_c_werror_flag"
24773 || test ! -s conftest.err'
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; } &&
24779 { ac_try
='test -s conftest$ac_exeext'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 echo "$as_me:$LINENO: result: yes" >&5
24786 echo "${ECHO_T}yes" >&6; have_rdynamic
=yes
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.
$ac_ext >&5
24791 echo "$as_me:$LINENO: result: no" >&5
24792 echo "${ECHO_T}no" >&6
24794 rm -f conftest.err conftest.
$ac_objext \
24795 conftest
$ac_exeext conftest.
$ac_ext
24796 if test x
"$have_rdynamic" = x
"yes" ; then
24797 pluginlibs
="-rdynamic"
24801 LDFLAGS
="$LDFLAGS -ldl"
24802 echo "$as_me:$LINENO: checking for -ldl" >&5
24803 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24804 cat >conftest.
$ac_ext <<_ACEOF
24807 cat confdefs.h
>>conftest.
$ac_ext
24808 cat >>conftest.
$ac_ext <<_ACEOF
24809 /* end confdefs.h. */
24814 volatile int f = 0; if (f) dlopen ("dummy", 0);
24819 rm -f conftest.
$ac_objext conftest
$ac_exeext
24820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24821 (eval $ac_link) 2>conftest.er1
24823 grep -v '^ *+' conftest.er1
>conftest.err
24825 cat conftest.err
>&5
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); } &&
24828 { ac_try
='test -z "$ac_c_werror_flag"
24829 || test ! -s conftest.err'
24830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831 (eval $ac_try) 2>&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); }; } &&
24835 { ac_try
='test -s conftest$ac_exeext'
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 echo "$as_me:$LINENO: result: yes" >&5
24842 echo "${ECHO_T}yes" >&6; have_dl
=yes
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.
$ac_ext >&5
24847 echo "$as_me:$LINENO: result: no" >&5
24848 echo "${ECHO_T}no" >&6
24850 rm -f conftest.err conftest.
$ac_objext \
24851 conftest
$ac_exeext conftest.
$ac_ext
24852 if test x
"$have_dl" = x
"yes"; then
24853 pluginlibs
="$pluginlibs -ldl"
24856 # Check that we can build shared objects with -fPIC -shared
24857 LDFLAGS
="$LDFLAGS -fPIC -shared"
24858 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
24859 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
24860 cat >conftest.
$ac_ext <<_ACEOF
24863 cat confdefs.h
>>conftest.
$ac_ext
24864 cat >>conftest.
$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24875 rm -f conftest.
$ac_objext conftest
$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24879 grep -v '^ *+' conftest.er1
>conftest.err
24881 cat conftest.err
>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try
='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try
='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 echo "$as_me:$LINENO: result: yes" >&5
24898 echo "${ECHO_T}yes" >&6; have_pic_shared
=yes
24900 echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.
$ac_ext >&5
24903 echo "$as_me:$LINENO: result: no" >&5
24904 echo "${ECHO_T}no" >&6; have_pic_shared
=no
24906 rm -f conftest.err conftest.
$ac_objext \
24907 conftest
$ac_exeext conftest.
$ac_ext
24908 if test x
"$have_pic_shared" != x
"yes"; then
24913 # If plugin support had been requested but not available, fail.
24914 if test x
"$enable_plugin" = x
"no" ; then
24915 if test x
"$default_plugin" != x
"yes"; then
24916 { { echo "$as_me:$LINENO: error:
24917 Building GCC with plugin support requires a host that supports
24918 -fPIC, -shared, -ldl and -rdynamic." >&5
24919 echo "$as_me: error:
24920 Building GCC with plugin support requires a host that supports
24921 -fPIC, -shared, -ldl and -rdynamic." >&2;}
24922 { (exit 1); exit 1; }; }
24926 LDFLAGS
="$saved_LDFLAGS"
24932 if test x
"$enable_plugin" = x
"yes"; then
24934 cat >>confdefs.h
<<\_ACEOF
24935 #define ENABLE_PLUGIN 1
24940 # Configure the subdirectories
24941 # AC_CONFIG_SUBDIRS($subdirs)
24943 # Create the Makefile
24944 # and configure language subdirectories
24945 ac_config_files
="$ac_config_files $all_outputs"
24948 ac_config_commands
="$ac_config_commands default"
24950 cat >confcache
<<\_ACEOF
24951 # This file is a shell script that caches the results of configure
24952 # tests run on this system so they can be shared between configure
24953 # scripts and configure runs, see configure's option --config-cache.
24954 # It is not useful on other systems. If it contains results you don't
24955 # want to keep, you may remove or edit it.
24957 # config.status only pays attention to the cache file if you give it
24958 # the --recheck option to rerun configure.
24960 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24961 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24962 # following values.
24966 # The following way of writing the cache mishandles newlines in values,
24967 # but we know of no workaround that is simple, portable, and efficient.
24968 # So, don't put newlines in cache variables' values.
24969 # Ultrix sh set writes to stderr and can't be redirected directly,
24970 # and sets the high bit in the cache file unless we assign to the vars.
24973 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24975 # `set' does not quote correctly, so add quotes (double-quote
24976 # substitution turns \\\\ into \\, and sed turns \\ into \).
24979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24982 # `set' quotes correctly as required by POSIX, so do not add quotes.
24984 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24993 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24995 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
24996 if test -w $cache_file; then
24997 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24998 cat confcache
>$cache_file
25000 echo "not updating unwritable cache $cache_file"
25005 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25006 # Let make expand exec_prefix.
25007 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25009 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25010 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25011 # trailing colons and then remove the whole line if VPATH becomes empty
25012 # (actually we leave an empty line to preserve line numbers).
25013 if test "x$srcdir" = x.
; then
25014 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25015 s/:*\$(srcdir):*/:/;
25016 s/:*\${srcdir}:*/:/;
25018 s/^\([^=]*=[ ]*\):*/\1/;
25024 DEFS
=-DHAVE_CONFIG_H
25028 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25029 # 1. Remove the extension, and $U if already installed.
25030 ac_i
=`echo "$ac_i" |
25031 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25033 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
25034 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
25036 LIBOBJS
=$ac_libobjs
25038 LTLIBOBJS
=$ac_ltlibobjs
25042 : ${CONFIG_STATUS=./config.status}
25043 ac_clean_files_save
=$ac_clean_files
25044 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25045 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25046 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25047 cat >$CONFIG_STATUS <<_ACEOF
25049 # Generated by $as_me.
25050 # Run this file to recreate the current configuration.
25051 # Compiler output produced by configure, useful for debugging
25052 # configure, is in config.log if it exists.
25055 ac_cs_recheck=false
25057 SHELL=\${CONFIG_SHELL-$SHELL}
25060 cat >>$CONFIG_STATUS <<\_ACEOF
25061 ## --------------------- ##
25062 ## M4sh Initialization. ##
25063 ## --------------------- ##
25065 # Be Bourne compatible
25066 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25069 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25070 # is contrary to our usage. Disable this feature.
25071 alias -g '${1+"$@"}'='"$@"'
25072 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25075 DUALCASE
=1; export DUALCASE
# for MKS sh
25077 # Support unset when possible.
25078 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25085 # Work around bugs in pre-3.0 UWIN ksh.
25086 $as_unset ENV MAIL MAILPATH
25093 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25094 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25095 LC_TELEPHONE LC_TIME
25097 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25098 eval $as_var=C
; export $as_var
25104 # Required to use basename.
25105 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25111 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
25112 as_basename
=basename
25118 # Name of the executable.
25119 as_me
=`$as_basename "$0" ||
25120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25121 X"$0" : 'X\(//\)$' \| \
25122 X"$0" : 'X\(/\)$' \| \
25123 . : '\(.\)' 2>/dev/null ||
25125 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25126 /^X\/\(\/\/\)$/{ s//\1/; q; }
25127 /^X\/\(\/\).*/{ s//\1/; q; }
25131 # PATH needs CR, and LINENO needs CR and PATH.
25132 # Avoid depending upon Character Ranges.
25133 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25134 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25135 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25136 as_cr_digits
='0123456789'
25137 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25139 # The user is always right.
25140 if test "${PATH_SEPARATOR+set}" != set; then
25141 echo "#! /bin/sh" >conf$$.sh
25142 echo "exit 0" >>conf$$.sh
25144 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25153 as_lineno_1
=$LINENO
25154 as_lineno_2
=$LINENO
25155 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
25156 test "x$as_lineno_1" != "x$as_lineno_2" &&
25157 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
25158 # Find who we are. Look in the path if we contain no path at all
25161 *[\\/]* ) as_myself
=$0 ;;
25162 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25163 for as_dir
in $PATH
25166 test -z "$as_dir" && as_dir
=.
25167 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25172 # We did not find ourselves, most probably we were run as `sh COMMAND'
25173 # in which case we are not to be found in the path.
25174 if test "x$as_myself" = x
; then
25177 if test ! -f "$as_myself"; then
25178 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25179 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25180 { (exit 1); exit 1; }; }
25182 case $CONFIG_SHELL in
25184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
25188 test -z "$as_dir" && as_dir
=.
25189 for as_base
in sh bash ksh sh5
; do
25192 if ("$as_dir/$as_base" -c '
25193 as_lineno_1=$LINENO
25194 as_lineno_2=$LINENO
25195 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25196 test "x$as_lineno_1" != "x$as_lineno_2" &&
25197 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
25198 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
25199 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
25200 CONFIG_SHELL
=$as_dir/$as_base
25201 export CONFIG_SHELL
25202 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25210 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25211 # uniformly replaced by the line number. The first 'sed' inserts a
25212 # line-number line before each line; the second 'sed' does the real
25213 # work. The second script uses 'N' to pair each line-number line
25214 # with the numbered line, and appends trailing '-' during
25215 # substitution so that $LINENO is not a special case at line end.
25216 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25217 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25218 sed '=' <$as_myself |
25223 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25226 s,^['$as_cr_digits']*\n,,
25227 ' >$as_me.lineno
&&
25228 chmod +x
$as_me.lineno ||
25229 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25230 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25231 { (exit 1); exit 1; }; }
25233 # Don't try to exec as it changes $[0], causing all sort of problems
25234 # (the dirname of $[0] is not the place where we might find the
25235 # original and so on. Autoconf is especially sensible to this).
25237 # Exit status is that of the last command.
25242 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25243 *c
*,-n*) ECHO_N
= ECHO_C
='
25245 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
25246 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
25249 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25255 rm -f conf$$ conf$$.exe conf$$.
file
25257 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25258 # We could just check for DJGPP; but this test a) works b) is more generic
25259 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25260 if test -f conf$$.exe
; then
25261 # Don't use ln at all; we don't have any links
25266 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25271 rm -f conf$$ conf$$.exe conf$$.
file
25273 if mkdir
-p .
2>/dev
/null
; then
25276 test -d .
/-p && rmdir .
/-p
25280 as_executable_p
="test -f"
25282 # Sed expression to map a string onto a valid CPP name.
25283 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25285 # Sed expression to map a string onto a valid variable name.
25286 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25290 # We need space, tab and new line, in precisely that order.
25300 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25301 # report actual input values of CONFIG_FILES etc. instead of their
25302 # values after options handling. Logging --version etc. is OK.
25306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25307 ## Running $as_me. ##
25312 This file was extended by $as_me, which was
25313 generated by GNU Autoconf 2.59. Invocation command line was
25315 CONFIG_FILES = $CONFIG_FILES
25316 CONFIG_HEADERS = $CONFIG_HEADERS
25317 CONFIG_LINKS = $CONFIG_LINKS
25318 CONFIG_COMMANDS = $CONFIG_COMMANDS
25322 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25326 # Files that config.status was made for.
25327 if test -n "$ac_config_files"; then
25328 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25331 if test -n "$ac_config_headers"; then
25332 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25335 if test -n "$ac_config_links"; then
25336 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25339 if test -n "$ac_config_commands"; then
25340 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25343 cat >>$CONFIG_STATUS <<\_ACEOF
25346 \`$as_me' instantiates files from templates according to the
25347 current configuration.
25349 Usage: $0 [OPTIONS] [FILE]...
25351 -h, --help print this help, then exit
25352 -V, --version print version number, then exit
25353 -q, --quiet do not print progress messages
25354 -d, --debug don't remove temporary files
25355 --recheck update $as_me by reconfiguring in the same conditions
25356 --file=FILE[:TEMPLATE]
25357 instantiate the configuration file FILE
25358 --header=FILE[:TEMPLATE]
25359 instantiate the configuration header FILE
25361 Configuration files:
25364 Configuration headers:
25367 Configuration commands:
25370 Report bugs to <bug-autoconf@gnu.org>."
25373 cat >>$CONFIG_STATUS <<_ACEOF
25376 configured by $0, generated by GNU Autoconf 2.59,
25377 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25379 Copyright (C) 2003 Free Software Foundation, Inc.
25380 This config.status script is free software; the Free Software Foundation
25381 gives unlimited permission to copy, distribute and modify it."
25385 cat >>$CONFIG_STATUS <<\_ACEOF
25386 # If no file are specified by the user, then we need to provide default
25387 # value. By we need to know if files were specified by the user.
25393 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25394 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25402 *) # This is not an option, so the user has probably given explicit
25405 ac_need_defaults
=false
;;
25409 # Handling of the options.
25411 cat >>$CONFIG_STATUS <<\_ACEOF
25412 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25414 --version |
--vers* |
-V )
25415 echo "$ac_cs_version"; exit 0 ;;
25417 # Conflict between --help and --header
25418 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25419 Try \`$0 --help' for more information." >&5
25420 echo "$as_me: error: ambiguous option: $1
25421 Try \`$0 --help' for more information." >&2;}
25422 { (exit 1); exit 1; }; };;
25423 --help |
--hel |
-h )
25424 echo "$ac_cs_usage"; exit 0 ;;
25425 --debug |
--d* |
-d )
25427 --file |
--fil |
--fi |
--f )
25429 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25430 ac_need_defaults
=false
;;
25431 --header |
--heade |
--head |
--hea )
25433 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25434 ac_need_defaults
=false
;;
25435 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25436 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25439 # This is an error.
25440 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25441 Try \`$0 --help' for more information." >&5
25442 echo "$as_me: error: unrecognized option: $1
25443 Try \`$0 --help' for more information." >&2;}
25444 { (exit 1); exit 1; }; } ;;
25446 *) ac_config_targets
="$ac_config_targets $1" ;;
25452 ac_configure_extra_args
=
25454 if $ac_cs_silent; then
25456 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25460 cat >>$CONFIG_STATUS <<_ACEOF
25461 if \$ac_cs_recheck; then
25462 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25463 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25468 cat >>$CONFIG_STATUS <<_ACEOF
25470 # INIT-COMMANDS section.
25479 cat >>$CONFIG_STATUS <<\_ACEOF
25480 for ac_config_target
in $ac_config_targets
25482 case "$ac_config_target" in
25483 # Handling of arguments.
25484 "as" ) CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
25485 "collect-ld" ) CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25486 "nm" ) CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
25487 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
25488 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25489 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
25490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25492 { (exit 1); exit 1; }; };;
25496 # If the user did not use the arguments to specify the items to instantiate,
25497 # then the envvar interface is used. Set only those that are not.
25498 # We use the long form for the default assignment because of an extremely
25499 # bizarre bug on SunOS 4.1.3.
25500 if $ac_need_defaults; then
25501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25506 # Have a temporary directory for convenience. Make it in the build tree
25507 # simply because there is no reason to put it here, and in addition,
25508 # creating and moving files from /tmp can sometimes cause problems.
25509 # Create a temporary directory, and hook for its removal unless debugging.
25512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25513 trap '{ (exit 1); exit 1; }' 1 2 13 15
25516 # Create a (secure) tmp directory for tmp files.
25519 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25520 test -n "$tmp" && test -d "$tmp"
25523 tmp
=.
/confstat$$
-$RANDOM
25524 (umask 077 && mkdir
$tmp)
25527 echo "$me: cannot create a temporary directory in ." >&2
25528 { (exit 1); exit 1; }
25533 cat >>$CONFIG_STATUS <<_ACEOF
25536 # CONFIG_FILES section.
25539 # No need to generate the scripts if there are no CONFIG_FILES.
25540 # This happens for instance when ./config.status config.h
25541 if test -n "\$CONFIG_FILES"; then
25542 # Protect against being on the right side of a sed subst in config.status.
25543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25545 s,@SHELL@,$SHELL,;t t
25546 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25547 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25548 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25549 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25550 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25551 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25552 s,@exec_prefix@,$exec_prefix,;t t
25553 s,@prefix@,$prefix,;t t
25554 s,@program_transform_name@,$program_transform_name,;t t
25555 s,@bindir@,$bindir,;t t
25556 s,@sbindir@,$sbindir,;t t
25557 s,@libexecdir@,$libexecdir,;t t
25558 s,@datadir@,$datadir,;t t
25559 s,@sysconfdir@,$sysconfdir,;t t
25560 s,@sharedstatedir@,$sharedstatedir,;t t
25561 s,@localstatedir@,$localstatedir,;t t
25562 s,@libdir@,$libdir,;t t
25563 s,@includedir@,$includedir,;t t
25564 s,@oldincludedir@,$oldincludedir,;t t
25565 s,@infodir@,$infodir,;t t
25566 s,@mandir@,$mandir,;t t
25567 s,@build_alias@,$build_alias,;t t
25568 s,@host_alias@,$host_alias,;t t
25569 s,@target_alias@,$target_alias,;t t
25570 s,@DEFS@,$DEFS,;t t
25571 s,@ECHO_C@,$ECHO_C,;t t
25572 s,@ECHO_N@,$ECHO_N,;t t
25573 s,@ECHO_T@,$ECHO_T,;t t
25574 s,@LIBS@,$LIBS,;t t
25575 s,@build@,$build,;t t
25576 s,@build_cpu@,$build_cpu,;t t
25577 s,@build_vendor@,$build_vendor,;t t
25578 s,@build_os@,$build_os,;t t
25579 s,@host@,$host,;t t
25580 s,@host_cpu@,$host_cpu,;t t
25581 s,@host_vendor@,$host_vendor,;t t
25582 s,@host_os@,$host_os,;t t
25583 s,@target@,$target,;t t
25584 s,@target_cpu@,$target_cpu,;t t
25585 s,@target_vendor@,$target_vendor,;t t
25586 s,@target_os@,$target_os,;t t
25587 s,@target_noncanonical@,$target_noncanonical,;t t
25588 s,@build_libsubdir@,$build_libsubdir,;t t
25589 s,@build_subdir@,$build_subdir,;t t
25590 s,@host_subdir@,$host_subdir,;t t
25591 s,@target_subdir@,$target_subdir,;t t
25592 s,@GENINSRC@,$GENINSRC,;t t
25594 s,@CFLAGS@,$CFLAGS,;t t
25595 s,@LDFLAGS@,$LDFLAGS,;t t
25596 s,@CPPFLAGS@,$CPPFLAGS,;t t
25597 s,@ac_ct_CC@,$ac_ct_CC,;t t
25598 s,@EXEEXT@,$EXEEXT,;t t
25599 s,@OBJEXT@,$OBJEXT,;t t
25600 s,@GNATBIND@,$GNATBIND,;t t
25601 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25602 s,@GNATMAKE@,$GNATMAKE,;t t
25603 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25604 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25605 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25607 s,@EGREP@,$EGREP,;t t
25608 s,@loose_warn@,$loose_warn,;t t
25609 s,@strict_warn@,$strict_warn,;t t
25610 s,@warn_cflags@,$warn_cflags,;t t
25611 s,@nocommon_flag@,$nocommon_flag,;t t
25612 s,@TREEBROWSER@,$TREEBROWSER,;t t
25613 s,@valgrind_path@,$valgrind_path,;t t
25614 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25615 s,@valgrind_command@,$valgrind_command,;t t
25616 s,@coverage_flags@,$coverage_flags,;t t
25617 s,@enable_multilib@,$enable_multilib,;t t
25618 s,@enable_decimal_float@,$enable_decimal_float,;t t
25619 s,@enable_fixed_point@,$enable_fixed_point,;t t
25620 s,@enable_shared@,$enable_shared,;t t
25621 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25622 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25623 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25624 s,@onestep@,$onestep,;t t
25625 s,@PKGVERSION@,$PKGVERSION,;t t
25626 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25627 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25628 s,@datarootdir@,$datarootdir,;t t
25629 s,@docdir@,$docdir,;t t
25630 s,@htmldir@,$htmldir,;t t
25631 s,@SET_MAKE@,$SET_MAKE,;t t
25633 s,@LN_S@,$LN_S,;t t
25635 s,@RANLIB@,$RANLIB,;t t
25636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25637 s,@ranlib_flags@,$ranlib_flags,;t t
25638 s,@INSTALL@,$INSTALL,;t t
25639 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25640 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25641 s,@make_compare_target@,$make_compare_target,;t t
25642 s,@have_mktemp_command@,$have_mktemp_command,;t t
25643 s,@MAKEINFO@,$MAKEINFO,;t t
25644 s,@BUILD_INFO@,$BUILD_INFO,;t t
25645 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25646 s,@FLEX@,$FLEX,;t t
25647 s,@BISON@,$BISON,;t t
25650 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25651 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25652 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25653 s,@LIBICONV@,$LIBICONV,;t t
25654 s,@LTLIBICONV@,$LTLIBICONV,;t t
25655 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25656 s,@manext@,$manext,;t t
25657 s,@objext@,$objext,;t t
25658 s,@gthread_flags@,$gthread_flags,;t t
25659 s,@extra_modes_file@,$extra_modes_file,;t t
25660 s,@extra_opt_files@,$extra_opt_files,;t t
25661 s,@USE_NLS@,$USE_NLS,;t t
25662 s,@LIBINTL@,$LIBINTL,;t t
25663 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25664 s,@INCINTL@,$INCINTL,;t t
25665 s,@XGETTEXT@,$XGETTEXT,;t t
25666 s,@GMSGFMT@,$GMSGFMT,;t t
25667 s,@POSUB@,$POSUB,;t t
25668 s,@CATALOGS@,$CATALOGS,;t t
25669 s,@DATADIRNAME@,$DATADIRNAME,;t t
25670 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25671 s,@GENCAT@,$GENCAT,;t t
25672 s,@CATOBJEXT@,$CATOBJEXT,;t t
25673 s,@CROSS@,$CROSS,;t t
25675 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25676 s,@inhibit_libc@,$inhibit_libc,;t t
25677 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25678 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25679 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25680 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25681 s,@collect2@,$collect2,;t t
25682 s,@LIBTOOL@,$LIBTOOL,;t t
25684 s,@FGREP@,$FGREP,;t t
25685 s,@GREP@,$GREP,;t t
25687 s,@DUMPBIN@,$DUMPBIN,;t t
25688 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25689 s,@OBJDUMP@,$OBJDUMP,;t t
25690 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25691 s,@ac_ct_AR@,$ac_ct_AR,;t t
25692 s,@STRIP@,$STRIP,;t t
25693 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25694 s,@lt_ECHO@,$lt_ECHO,;t t
25695 s,@DSYMUTIL@,$DSYMUTIL,;t t
25696 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25697 s,@NMEDIT@,$NMEDIT,;t t
25698 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25699 s,@LIPO@,$LIPO,;t t
25700 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25701 s,@OTOOL@,$OTOOL,;t t
25702 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25703 s,@OTOOL64@,$OTOOL64,;t t
25704 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25705 s,@objdir@,$objdir,;t t
25706 s,@enable_fast_install@,$enable_fast_install,;t t
25707 s,@gcc_cv_as@,$gcc_cv_as,;t t
25708 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25709 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25710 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25711 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25712 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25713 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25714 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25715 s,@libgcc_visibility@,$libgcc_visibility,;t t
25717 s,@zlibdir@,$zlibdir,;t t
25718 s,@zlibinc@,$zlibinc,;t t
25719 s,@MAINT@,$MAINT,;t t
25720 s,@gcc_tooldir@,$gcc_tooldir,;t t
25721 s,@dollar@,$dollar,;t t
25722 s,@slibdir@,$slibdir,;t t
25723 s,@subdirs@,$subdirs,;t t
25724 s,@srcdir@,$srcdir,;t t
25725 s,@all_compilers@,$all_compilers,;t t
25726 s,@all_gtfiles@,$all_gtfiles,;t t
25727 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25728 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25729 s,@all_languages@,$all_languages,;t t
25730 s,@all_selected_languages@,$all_selected_languages,;t t
25731 s,@build_exeext@,$build_exeext,;t t
25732 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25733 s,@build_xm_file_list@,$build_xm_file_list,;t t
25734 s,@build_xm_include_list@,$build_xm_include_list,;t t
25735 s,@build_xm_defines@,$build_xm_defines,;t t
25736 s,@build_file_translate@,$build_file_translate,;t t
25737 s,@check_languages@,$check_languages,;t t
25738 s,@cpp_install_dir@,$cpp_install_dir,;t t
25739 s,@xmake_file@,$xmake_file,;t t
25740 s,@tmake_file@,$tmake_file,;t t
25741 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
25742 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
25743 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
25744 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25745 s,@extra_headers_list@,$extra_headers_list,;t t
25746 s,@extra_objs@,$extra_objs,;t t
25747 s,@extra_parts@,$extra_parts,;t t
25748 s,@extra_passes@,$extra_passes,;t t
25749 s,@extra_programs@,$extra_programs,;t t
25750 s,@float_h_file@,$float_h_file,;t t
25751 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25752 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25753 s,@host_exeext@,$host_exeext,;t t
25754 s,@host_xm_file_list@,$host_xm_file_list,;t t
25755 s,@host_xm_include_list@,$host_xm_include_list,;t t
25756 s,@host_xm_defines@,$host_xm_defines,;t t
25757 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25758 s,@install@,$install,;t t
25759 s,@lang_opt_files@,$lang_opt_files,;t t
25760 s,@lang_specs_files@,$lang_specs_files,;t t
25761 s,@lang_tree_files@,$lang_tree_files,;t t
25762 s,@local_prefix@,$local_prefix,;t t
25763 s,@md_file@,$md_file,;t t
25764 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25765 s,@out_file@,$out_file,;t t
25766 s,@out_object_file@,$out_object_file,;t t
25767 s,@thread_file@,$thread_file,;t t
25768 s,@tm_file_list@,$tm_file_list,;t t
25769 s,@tm_include_list@,$tm_include_list,;t t
25770 s,@tm_defines@,$tm_defines,;t t
25771 s,@tm_p_file_list@,$tm_p_file_list,;t t
25772 s,@tm_p_include_list@,$tm_p_include_list,;t t
25773 s,@xm_file_list@,$xm_file_list,;t t
25774 s,@xm_include_list@,$xm_include_list,;t t
25775 s,@xm_defines@,$xm_defines,;t t
25776 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25777 s,@c_target_objs@,$c_target_objs,;t t
25778 s,@cxx_target_objs@,$cxx_target_objs,;t t
25779 s,@fortran_target_objs@,$fortran_target_objs,;t t
25780 s,@target_cpu_default@,$target_cpu_default,;t t
25781 s,@GMPLIBS@,$GMPLIBS,;t t
25782 s,@GMPINC@,$GMPINC,;t t
25783 s,@PPLLIBS@,$PPLLIBS,;t t
25784 s,@PPLINC@,$PPLINC,;t t
25785 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25786 s,@CLOOGINC@,$CLOOGINC,;t t
25787 s,@pluginlibs@,$pluginlibs,;t t
25788 s,@enable_plugin@,$enable_plugin,;t t
25789 s,@LIBOBJS@,$LIBOBJS,;t t
25790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25791 /@language_hooks@/r $language_hooks
25792 s,@language_hooks@,,;t t
25797 cat >>$CONFIG_STATUS <<\_ACEOF
25798 # Split the substitutions into bite-sized pieces for seds with
25799 # small command number limits, like on Digital OSF/1 and HP-UX.
25800 ac_max_sed_lines
=48
25801 ac_sed_frag
=1 # Number of current file.
25802 ac_beg
=1 # First line for current file.
25803 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25806 while $ac_more_lines; do
25807 if test $ac_beg -gt 1; then
25808 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25810 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25812 if test ! -s $tmp/subs.frag
; then
25813 ac_more_lines
=false
25815 # The purpose of the label and of the branching condition is to
25816 # speed up the sed processing (if there are no `@' at all, there
25817 # is no need to browse any of the substitutions).
25818 # These are the two extra sed commands mentioned above.
25820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25821 if test -z "$ac_sed_cmds"; then
25822 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
25824 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25826 ac_sed_frag
=`expr $ac_sed_frag + 1`
25828 ac_end
=`expr $ac_end + $ac_max_sed_lines`
25831 if test -z "$ac_sed_cmds"; then
25834 fi # test -n "$CONFIG_FILES"
25837 cat >>$CONFIG_STATUS <<\_ACEOF
25838 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
25839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25841 - |
*:- |
*:-:* ) # input from stdin
25843 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25844 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25845 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25846 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25847 * ) ac_file_in
=$ac_file.
in ;;
25850 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25851 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25853 X"$ac_file" : 'X\(//\)[^/]' \| \
25854 X"$ac_file" : 'X\(//\)$' \| \
25855 X"$ac_file" : 'X\(/\)' \| \
25856 . : '\(.\)' 2>/dev/null ||
25858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25860 /^X\(\/\/\)$/{ s//\1/; q; }
25861 /^X\(\/\).*/{ s//\1/; q; }
25863 { if $as_mkdir_p; then
25868 while test ! -d "$as_dir"; do
25869 as_dirs
="$as_dir $as_dirs"
25870 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25872 X"$as_dir" : 'X\(//\)[^/]' \| \
25873 X"$as_dir" : 'X\(//\)$' \| \
25874 X"$as_dir" : 'X\(/\)' \| \
25875 . : '\(.\)' 2>/dev/null ||
25877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25879 /^X\(\/\/\)$/{ s//\1/; q; }
25880 /^X\(\/\).*/{ s//\1/; q; }
25883 test ! -n "$as_dirs" || mkdir
$as_dirs
25884 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25885 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25886 { (exit 1); exit 1; }; }; }
25890 if test "$ac_dir" != .
; then
25891 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25892 # A "../" for each directory in $ac_dir_suffix.
25893 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25895 ac_dir_suffix
= ac_top_builddir
=
25899 .
) # No --srcdir option. We are building in place.
25901 if test -z "$ac_top_builddir"; then
25904 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25906 [\\/]* | ?
:[\\/]* ) # Absolute path.
25907 ac_srcdir
=$srcdir$ac_dir_suffix;
25908 ac_top_srcdir
=$srcdir ;;
25909 *) # Relative path.
25910 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25911 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25914 # Do not use `cd foo && pwd` to compute absolute paths, because
25915 # the directories may not exist.
25917 .
) ac_abs_builddir
="$ac_dir";;
25920 .
) ac_abs_builddir
=`pwd`;;
25921 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25922 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25925 case $ac_abs_builddir in
25926 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25928 case ${ac_top_builddir}.
in
25929 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25930 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25931 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25934 case $ac_abs_builddir in
25935 .
) ac_abs_srcdir
=$ac_srcdir;;
25938 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25939 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25940 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25943 case $ac_abs_builddir in
25944 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25946 case $ac_top_srcdir in
25947 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25948 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25949 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25955 if test x
"$ac_file" != x-
; then
25956 { echo "$as_me:$LINENO: creating $ac_file" >&5
25957 echo "$as_me: creating $ac_file" >&6;}
25960 # Let's still pretend it is `configure' which instantiates (i.e., don't
25961 # use $as_me), people would be surprised to read:
25962 # /* config.h. Generated by config.status. */
25963 if test x
"$ac_file" = x-
; then
25966 configure_input
="$ac_file. "
25968 configure_input
=$configure_input"Generated from `echo $ac_file_in |
25969 sed 's,.*/,,'` by configure."
25971 # First look for the input files in the build tree, otherwise in the
25973 ac_file_inputs
=`IFS=:
25974 for f in $ac_file_in; do
25976 -) echo $tmp/stdin ;;
25978 # Absolute (can't be DOS-style, as IFS=:)
25979 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25980 echo "$as_me: error: cannot find input file: $f" >&2;}
25981 { (exit 1); exit 1; }; }
25984 if test -f "$f"; then
25987 elif test -f "$srcdir/$f"; then
25992 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25993 echo "$as_me: error: cannot find input file: $f" >&2;}
25994 { (exit 1); exit 1; }; }
25997 done` ||
{ (exit 1); exit 1; }
25999 cat >>$CONFIG_STATUS <<_ACEOF
26003 cat >>$CONFIG_STATUS <<\_ACEOF
26005 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26006 s
,@configure_input@
,$configure_input,;t t
26007 s
,@srcdir@
,$ac_srcdir,;t t
26008 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
26009 s
,@top_srcdir@
,$ac_top_srcdir,;t t
26010 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
26011 s
,@builddir@
,$ac_builddir,;t t
26012 s
,@abs_builddir@
,$ac_abs_builddir,;t t
26013 s
,@top_builddir@
,$ac_top_builddir,;t t
26014 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
26015 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26017 if test x"$ac_file" != x-; then
26018 mv $tmp/out $ac_file
26024 # Run the commands associated with the file.
26026 as ) chmod +x as ;;
26027 collect-ld ) chmod +x collect-ld ;;
26028 nm ) chmod +x nm ;;
26032 cat >>$CONFIG_STATUS <<\_ACEOF
26035 # CONFIG_HEADER section.
26038 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
26039 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26041 # ac_d sets the value in "#define NAME VALUE" lines.
26042 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26043 ac_dB
='[ ].*$,\1#\2'
26046 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26047 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26048 ac_uB
='$,\1#\2define\3'
26052 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
26053 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26055 - |
*:- |
*:-:* ) # input from stdin
26057 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26058 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26059 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26060 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26061 * ) ac_file_in
=$ac_file.
in ;;
26064 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
26065 echo "$as_me: creating $ac_file" >&6;}
26067 # First look for the input files in the build tree, otherwise in the
26069 ac_file_inputs
=`IFS=:
26070 for f in $ac_file_in; do
26072 -) echo $tmp/stdin ;;
26074 # Absolute (can't be DOS-style, as IFS=:)
26075 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26076 echo "$as_me: error: cannot find input file: $f" >&2;}
26077 { (exit 1); exit 1; }; }
26078 # Do quote $f, to prevent DOS paths from being IFS'd.
26081 if test -f "$f"; then
26084 elif test -f "$srcdir/$f"; then
26089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26090 echo "$as_me: error: cannot find input file: $f" >&2;}
26091 { (exit 1); exit 1; }; }
26094 done` ||
{ (exit 1); exit 1; }
26095 # Remove the trailing spaces.
26096 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26100 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26101 # `conftest.undefs', that substitutes the proper values into
26102 # config.h.in to produce config.h. The first handles `#define'
26103 # templates, and the second `#undef' templates.
26104 # And first: Protect against being on the right side of a sed subst in
26105 # config.status. Protect against being in an unquoted here document
26106 # in config.status.
26107 rm -f conftest.defines conftest.undefs
26108 # Using a here document instead of a string reduces the quoting nightmare.
26109 # Putting comments in sed scripts is not portable.
26111 # `end' is used to avoid that the second main sed command (meant for
26112 # 0-ary CPP macros) applies to n-ary macro definitions.
26113 # See the Autoconf documentation for `clear'.
26114 cat >confdef2sed.
sed <<\_ACEOF
26119 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26121 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26124 # If some macros were called several times there might be several times
26125 # the same #defines, which is useless. Nevertheless, we may not want to
26126 # sort them, since we want the *last* AC-DEFINE to be honored.
26127 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26128 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26129 rm -f confdef2sed.sed
26131 # This sed command replaces #undef with comments. This is necessary, for
26132 # example, in the case of _POSIX_SOURCE, which is predefined and required
26133 # on some systems where configure will not decide to define it.
26134 cat >>conftest.undefs <<\_ACEOF
26135 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26138 # Break up conftest.defines because some shells have a limit on the size
26139 # of here documents, and old seds have small limits too (100 cmds).
26140 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26141 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26142 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26143 echo ' :' >>$CONFIG_STATUS
26144 rm -f conftest.tail
26145 while grep . conftest.defines >/dev/null
26147 # Write a limited-size here document to $tmp/defines.sed.
26148 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26149 # Speed up: don't consider the non `#define' lines.
26150 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26151 # Work around the forget-to-reset-the-flag bug.
26152 echo 't clr' >>$CONFIG_STATUS
26153 echo ': clr' >>$CONFIG_STATUS
26154 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
26156 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26158 mv $tmp/out $tmp/in
26160 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
26161 rm -f conftest.defines
26162 mv conftest.
tail conftest.defines
26164 rm -f conftest.defines
26165 echo ' fi # grep' >>$CONFIG_STATUS
26166 echo >>$CONFIG_STATUS
26168 # Break up conftest.undefs because some shells have a limit on the size
26169 # of here documents, and old seds have small limits too (100 cmds).
26170 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26171 rm -f conftest.
tail
26172 while grep . conftest.undefs
>/dev
/null
26174 # Write a limited-size here document to $tmp/undefs.sed.
26175 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26176 # Speed up: don't consider the non
`#undef'
26177 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26178 # Work around the forget-to-reset-the-flag bug.
26179 echo 't clr' >>$CONFIG_STATUS
26180 echo ': clr' >>$CONFIG_STATUS
26181 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26183 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26185 mv $tmp/out $tmp/in
26187 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26188 rm -f conftest.undefs
26189 mv conftest.tail conftest.undefs
26191 rm -f conftest.undefs
26193 cat >>$CONFIG_STATUS <<\_ACEOF
26194 # Let's still pretend it is `configure
' which instantiates (i.e., don't
26195 # use $as_me), people would be surprised to read:
26196 # /* config.h. Generated by config.status. */
26197 if test x
"$ac_file" = x-
; then
26198 echo "/* Generated by configure. */" >$tmp/config.h
26200 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26202 cat $tmp/in >>$tmp/config.h
26204 if test x
"$ac_file" != x-
; then
26205 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
26206 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26207 echo "$as_me: $ac_file is unchanged" >&6;}
26209 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
26210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26211 X"$ac_file" : 'X\(//\)[^/]' \| \
26212 X"$ac_file" : 'X\(//\)$' \| \
26213 X"$ac_file" : 'X\(/\)' \| \
26214 . : '\(.\)' 2>/dev/null ||
26216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26218 /^X\(\/\/\)$/{ s//\1/; q; }
26219 /^X\(\/\).*/{ s//\1/; q; }
26221 { if $as_mkdir_p; then
26226 while test ! -d "$as_dir"; do
26227 as_dirs
="$as_dir $as_dirs"
26228 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26230 X"$as_dir" : 'X\(//\)[^/]' \| \
26231 X"$as_dir" : 'X\(//\)$' \| \
26232 X"$as_dir" : 'X\(/\)' \| \
26233 . : '\(.\)' 2>/dev/null ||
26235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26237 /^X\(\/\/\)$/{ s//\1/; q; }
26238 /^X\(\/\).*/{ s//\1/; q; }
26241 test ! -n "$as_dirs" || mkdir
$as_dirs
26242 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26243 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26244 { (exit 1); exit 1; }; }; }
26247 mv $tmp/config.h
$ac_file
26251 rm -f $tmp/config.h
26255 cat >>$CONFIG_STATUS <<\_ACEOF
26258 # CONFIG_COMMANDS section.
26260 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
26261 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
26262 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26263 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
26264 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26265 X"$ac_dest" : 'X\(//\)[^/]' \| \
26266 X"$ac_dest" : 'X\(//\)$' \| \
26267 X"$ac_dest" : 'X\(/\)' \| \
26268 . : '\(.\)' 2>/dev/null ||
26270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26272 /^X\(\/\/\)$/{ s//\1/; q; }
26273 /^X\(\/\).*/{ s//\1/; q; }
26275 { if $as_mkdir_p; then
26280 while test ! -d "$as_dir"; do
26281 as_dirs
="$as_dir $as_dirs"
26282 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26284 X"$as_dir" : 'X\(//\)[^/]' \| \
26285 X"$as_dir" : 'X\(//\)$' \| \
26286 X"$as_dir" : 'X\(/\)' \| \
26287 . : '\(.\)' 2>/dev/null ||
26289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26291 /^X\(\/\/\)$/{ s//\1/; q; }
26292 /^X\(\/\).*/{ s//\1/; q; }
26295 test ! -n "$as_dirs" || mkdir
$as_dirs
26296 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26298 { (exit 1); exit 1; }; }; }
26302 if test "$ac_dir" != .
; then
26303 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26304 # A "../" for each directory in $ac_dir_suffix.
26305 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26307 ac_dir_suffix
= ac_top_builddir
=
26311 .
) # No --srcdir option. We are building in place.
26313 if test -z "$ac_top_builddir"; then
26316 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26318 [\\/]* | ?
:[\\/]* ) # Absolute path.
26319 ac_srcdir
=$srcdir$ac_dir_suffix;
26320 ac_top_srcdir
=$srcdir ;;
26321 *) # Relative path.
26322 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26323 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26326 # Do not use `cd foo && pwd` to compute absolute paths, because
26327 # the directories may not exist.
26329 .
) ac_abs_builddir
="$ac_dir";;
26332 .
) ac_abs_builddir
=`pwd`;;
26333 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26334 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26337 case $ac_abs_builddir in
26338 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26340 case ${ac_top_builddir}.
in
26341 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26342 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26343 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26346 case $ac_abs_builddir in
26347 .
) ac_abs_srcdir
=$ac_srcdir;;
26350 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26351 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26352 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26355 case $ac_abs_builddir in
26356 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26358 case $ac_top_srcdir in
26359 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26360 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26361 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26366 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26367 echo "$as_me: executing $ac_dest commands" >&6;}
26370 case ${CONFIG_HEADERS} in
26371 *auto-host.h
:config.
in*)
26374 # Make sure all the subdirs exist.
26375 for d
in $subdirs doc build
26377 test -d $d || mkdir
$d
26384 cat >>$CONFIG_STATUS <<\_ACEOF
26386 { (exit 0); exit 0; }
26388 chmod +x
$CONFIG_STATUS
26389 ac_clean_files
=$ac_clean_files_save
26392 # configure is writing to config.log, and then calls config.status.
26393 # config.status does its own redirection, appending to config.log.
26394 # Unfortunately, on DOS this fails, as config.log is still kept open
26395 # by configure, so config.status won't be able to write to it; its
26396 # output is simply discarded. So we exec the FD to /dev/null,
26397 # effectively closing config.log, so it can be properly (re)opened and
26398 # appended to by config.status. When coming back to configure, we
26399 # need to make the FD available again.
26400 if test "$no_create" != yes; then
26402 ac_config_status_args
=
26403 test "$silent" = yes &&
26404 ac_config_status_args
="$ac_config_status_args --quiet"
26406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26409 # would make configure fail if this is the last instruction.
26410 $ac_cs_success ||
{ (exit 1); exit 1; }