2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
621 libgcc_tm_include_list
627 common_out_object_file
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
654 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
765 CROSS_SYSTEM_HEADER_DIR
766 TARGET_SYSTEM_ROOT_DEFINE
768 SYSROOT_CFLAGS_FOR_TARGET
773 ENABLE_BUILD_WITH_CXX
776 valgrind_path_defines
849 program_transform_name
860 ac_subst_files='option_includes
863 enable_option_checking
868 enable_generated_files_in_srcdir
878 enable_gather_detailed_mem_stats
879 enable_build_with_cxx
890 with_native_system_header_dir
900 enable_initfini_array
901 enable_sjlj_exceptions
903 enable_leading_mingw64_underscores
906 enable_win32_registry
912 enable_gnu_indirect_function
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1253 -site=* | --site=* | --sit=*)
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1309 eval with_$ac_useropt=no ;;
1312 # Obsolete; use --with-x.
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-build-with-cxx build with C++ compiler instead of C compiler
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-initfini-array use .init_array/.fini_array sections
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-version-specific-runtime-libs
1633 specify that runtime libraries should be installed
1634 in a compiler-specific directory
1635 --enable-plugin enable plugin support
1636 --disable-libquadmath-support
1637 disable libquadmath support for Fortran
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-build-libsubdir=DIR Directory where to find libraries for build system
1643 --with-local-prefix=DIR specifies directory to put local include
1644 --with-gxx-include-dir=DIR
1645 specifies directory to put g++ header files
1646 --with-cpp-install-dir=DIR
1647 install the user visible C preprocessor in DIR
1648 (relative to PREFIX) as well as PREFIX/bin
1649 --with-gnu-ld arrange to work with GNU ld
1650 --with-ld arrange to use the specified ld (full pathname)
1651 --with-demangler-in-ld try to use demangler in GNU ld
1652 --with-gnu-as arrange to work with GNU as
1653 --with-as arrange to use the specified as (full pathname)
1654 --with-stabs arrange to use stabs instead of host debug format
1655 --with-dwarf2 force the default debug format to be DWARF 2
1656 --with-native-system-header-dir=dir
1657 use dir as the directory to look for standard
1658 system header files in. Defaults to /usr/include.
1659 --with-build-sysroot=sysroot
1660 use sysroot as the system root during the build
1661 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1662 --with-specs=SPECS add SPECS to driver command-line processing
1663 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1664 --with-bugurl=URL Direct users to URL to report a bug
1665 --with-multilib-list select multilibs (SH and x86-64 only)
1666 --with-gnu-ld assume the C compiler uses GNU ld default=no
1667 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1668 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1669 --with-pic try to use only PIC/non-PIC objects [default=use
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-plugin-ld=[ARG] specify the plugin linker
1673 --with-long-double-128 use 128-bit long double by default
1674 --with-gc={page,zone} choose the garbage collection mechanism to use with
1676 --with-system-zlib use installed libz
1677 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1678 --with-linker-hash-style={sysv,gnu,both}
1679 specify the linker hash style
1681 Some influential environment variables:
1682 CC C compiler command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1685 nonstandard directory <lib dir>
1686 LIBS libraries to pass to the linker, e.g. -l<library>
1687 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688 you have headers in a nonstandard directory <include dir>
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1692 CXXCPP C++ preprocessor
1693 GMPLIBS How to link GMP
1694 GMPINC How to find GMP include files
1695 PPLLIBS How to link PPL
1696 PPLINC How to find PPL include files
1697 CLOOGLIBS How to link CLOOG
1698 CLOOGINC How to find CLOOG include files
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1703 Report bugs to the package provider.
1708 if test "$ac_init_help" = "recursive"; then
1709 # If there are subdirs, report their specific --help.
1710 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711 test -d "$ac_dir" ||
1712 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720 # A ".." for each directory in $ac_dir_suffix.
1721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722 case $ac_top_builddir_sub in
1723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1733 .) # We are building in place.
1735 ac_top_srcdir=$ac_top_builddir_sub
1736 ac_abs_top_srcdir=$ac_pwd ;;
1737 [\\/]* | ?:[\\/]* ) # Absolute name.
1738 ac_srcdir=$srcdir$ac_dir_suffix;
1739 ac_top_srcdir=$srcdir
1740 ac_abs_top_srcdir=$srcdir ;;
1742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743 ac_top_srcdir=$ac_top_build_prefix$srcdir
1744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1748 cd "$ac_dir" || { ac_status=$?; continue; }
1749 # Check for guested configure.
1750 if test -f "$ac_srcdir/configure.gnu"; then
1752 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753 elif test -f "$ac_srcdir/configure"; then
1755 $SHELL "$ac_srcdir/configure" --help=recursive
1757 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 cd "$ac_pwd" || { ac_status=$?; break; }
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1767 generated by GNU Autoconf 2.64
1769 Copyright (C) 2009 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_try_compile
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_cxx_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_cxx_try_compile
1856 # ac_fn_c_try_cpp LINENO
1857 # ----------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } >/dev/null && {
1878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896 # the include files in INCLUDES and setting the cache variable VAR
1898 ac_fn_c_check_header_mongrel ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 # Is the header compilable?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913 $as_echo_n "checking $2 usability... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_header_compiler=yes
1922 ac_header_compiler=no
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926 $as_echo "$ac_header_compiler" >&6; }
1928 # Is the header present?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930 $as_echo_n "checking $2 presence... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 if ac_fn_c_try_cpp "$LINENO"; then :
1936 ac_header_preproc=yes
1938 ac_header_preproc=no
1940 rm -f conftest.err conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942 $as_echo "$ac_header_preproc" >&6; }
1944 # So? What about this header?
1945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1956 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1960 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1970 eval "$3=\$ac_header_compiler"
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 } # ac_fn_c_check_header_mongrel
1980 # ac_fn_c_try_run LINENO
1981 # ----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1983 # that executables *can* be run.
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { { ac_try="$ac_link"
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>&5
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998 { { case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_try") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; }; }; then :
2010 $as_echo "$as_me: program exited with status $ac_status" >&5
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_retval=$ac_status
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_header_compile
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2058 ac_fn_c_compute_int ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if test "$cross_compiling" = yes; then
2062 # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_hi=$ac_mid; break
2095 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096 if test $ac_lo -le $ac_mid; then
2100 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) < 0)];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_lo=$ac_mid; break
2137 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2138 if test $ac_mid -le $ac_hi; then
2142 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 # Binary search between lo and hi bounds.
2153 while test "x$ac_lo" != "x$ac_hi"; do
2154 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168 if ac_fn_c_try_compile "$LINENO"; then :
2171 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2183 static long int longval () { return $2; }
2184 static unsigned long int ulongval () { return $2; }
2191 FILE *f = fopen ("conftest.val", "w");
2196 long int i = longval ();
2199 fprintf (f, "%ld", i);
2203 unsigned long int i = ulongval ();
2206 fprintf (f, "%lu", i);
2208 /* Do not output a trailing newline, as this causes \r\n confusion
2209 on some platforms. */
2210 return ferror (f) || fclose (f) != 0;
2216 if ac_fn_c_try_run "$LINENO"; then :
2217 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2222 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 } # ac_fn_c_compute_int
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 } # ac_fn_c_check_type
2285 # ac_fn_c_find_intX_t LINENO BITS VAR
2286 # -----------------------------------
2287 # Finds a signed integer type with width BITS, setting cache variable VAR
2289 ac_fn_c_find_intX_t ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2293 $as_echo_n "checking for int$2_t... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295 $as_echo_n "(cached) " >&6
2298 for ac_type in int$2_t 'int' 'long int' \
2299 'long long int' 'short int' 'signed char'; do
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 $ac_includes_default
2306 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 $ac_includes_default
2320 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2321 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$3=\$ac_type" ;;
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 if test "x$as_val" = x""no; then :
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_c_find_intX_t
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
2383 $as_test_x conftest$ac_exeext
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 } # ac_fn_c_try_link
2402 # ac_fn_c_find_uintX_t LINENO BITS VAR
2403 # ------------------------------------
2404 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2406 ac_fn_c_find_uintX_t ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2410 $as_echo_n "checking for uint$2_t... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412 $as_echo_n "(cached) " >&6
2415 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2416 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2419 $ac_includes_default
2423 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 eval "$3=\$ac_type" ;;
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 if test "x$as_val" = x""no; then :
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 } # ac_fn_c_find_uintX_t
2454 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2455 # ----------------------------------------------
2456 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2457 ac_fn_c_check_header_preproc ()
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 $as_echo_n "(cached) " >&6
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2469 if ac_fn_c_try_cpp "$LINENO"; then :
2474 rm -f conftest.err conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 } # ac_fn_c_check_header_preproc
2483 # ac_fn_cxx_try_cpp LINENO
2484 # ------------------------
2485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_cpp ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 if { { ac_try="$ac_cpp conftest.$ac_ext"
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2498 if test -s conftest.err; then
2499 grep -v '^ *+' conftest.err >conftest.er1
2500 cat conftest.er1 >&5
2501 mv -f conftest.er1 conftest.err
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; } >/dev/null && {
2505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2506 test ! -s conftest.err
2510 $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_cxx_try_cpp
2520 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2521 # ------------------------------------------------
2522 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2523 ac_fn_cxx_check_header_preproc ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 $as_echo_n "(cached) " >&6
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2535 if ac_fn_cxx_try_cpp "$LINENO"; then :
2540 rm -f conftest.err conftest.$ac_ext
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_cxx_check_header_preproc
2549 # ac_fn_c_check_func LINENO FUNC VAR
2550 # ----------------------------------
2551 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2552 ac_fn_c_check_func ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558 $as_echo_n "(cached) " >&6
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2562 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2564 #define $2 innocuous_$2
2566 /* System header to define __stub macros and hopefully few prototypes,
2567 which can conflict with char $2 (); below.
2568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2569 <limits.h> exists even on freestanding compilers. */
2572 # include <limits.h>
2574 # include <assert.h>
2579 /* Override any GCC internal prototype to avoid an error.
2580 Use char because int might match the return type of a GCC
2581 builtin and then its argument prototype would still apply. */
2586 /* The GNU C library defines this for functions which it implements
2587 to always fail with ENOSYS. Some functions are actually named
2588 something starting with __ and the normal name is an alias. */
2589 #if defined __stub_$2 || defined __stub___$2
2601 if ac_fn_c_try_link "$LINENO"; then :
2606 rm -f core conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_c_check_func
2616 # ac_fn_cxx_try_link LINENO
2617 # -------------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_cxx_try_link ()
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { { ac_try="$ac_link"
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>conftest.err
2632 if test -s conftest.err; then
2633 grep -v '^ *+' conftest.err >conftest.er1
2634 cat conftest.er1 >&5
2635 mv -f conftest.er1 conftest.err
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && {
2639 test -z "$ac_cxx_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest$ac_exeext && {
2642 test "$cross_compiling" = yes ||
2643 $as_test_x conftest$ac_exeext
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654 # interfere with the next link command; also delete a directory that is
2655 # left behind by Apple's compiler. We do this before executing the actions.
2656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 } # ac_fn_cxx_try_link
2661 cat >config.log <<_ACEOF
2662 This file contains any messages produced by compilers while
2663 running configure, to aid debugging if configure makes a mistake.
2665 It was created by $as_me, which was
2666 generated by GNU Autoconf 2.64. Invocation command line was
2678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 $as_echo "PATH: $as_dir"
2718 # Keep a trace of the command line.
2719 # Strip out --no-create and --no-recursion so they do not pile up.
2720 # Strip out --silent because we don't want to record it for future runs.
2721 # Also quote any args containing shell meta-characters.
2722 # Make two passes to allow for proper duplicate-argument suppression.
2726 ac_must_keep_next=false
2732 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2734 | -silent | --silent | --silen | --sile | --sil)
2737 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2742 as_fn_append ac_configure_args1 " '$ac_arg'"
2743 if test $ac_must_keep_next = true; then
2744 ac_must_keep_next=false # Got value, back to normal.
2747 *=* | --config-cache | -C | -disable-* | --disable-* \
2748 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2749 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2750 | -with-* | --with-* | -without-* | --without-* | --x)
2751 case "$ac_configure_args0 " in
2752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 -* ) ac_must_keep_next=true ;;
2758 as_fn_append ac_configure_args " '$ac_arg'"
2763 { ac_configure_args0=; unset ac_configure_args0;}
2764 { ac_configure_args1=; unset ac_configure_args1;}
2766 # When interrupted or exit'd, cleanup temporary files, and complete
2767 # config.log. We remove comments because anyway the quotes in there
2768 # would cause problems or look ugly.
2769 # WARNING: Use '\'' to represent an apostrophe within the trap.
2770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2771 trap 'exit_status=$?
2772 # Save into config.log some information that might help in debugging.
2777 ## ---------------- ##
2778 ## Cache variables. ##
2779 ## ---------------- ##
2782 # The following way of writing the cache mishandles newlines in values,
2784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2785 eval ac_val=\$$ac_var
2789 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 _ | IFS | as_nl) ;; #(
2794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795 *) { eval $ac_var=; unset $ac_var;} ;;
2800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2801 *${as_nl}ac_space=\ *)
2803 "s/'\''/'\''\\\\'\'''\''/g;
2804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2815 ## ----------------- ##
2816 ## Output variables. ##
2817 ## ----------------- ##
2820 for ac_var in $ac_subst_vars
2822 eval ac_val=\$$ac_var
2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2826 $as_echo "$ac_var='\''$ac_val'\''"
2830 if test -n "$ac_subst_files"; then
2832 ## ------------------- ##
2833 ## File substitutions. ##
2834 ## ------------------- ##
2837 for ac_var in $ac_subst_files
2839 eval ac_val=\$$ac_var
2841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2843 $as_echo "$ac_var='\''$ac_val'\''"
2848 if test -s confdefs.h; then
2858 test "$ac_signal" != 0 &&
2859 $as_echo "$as_me: caught signal $ac_signal"
2860 $as_echo "$as_me: exit $exit_status"
2862 rm -f core *.core core.conftest.* &&
2863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 for ac_signal in 1 2 13 15; do
2867 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2872 rm -f -r conftest* confdefs.h
2874 $as_echo "/* confdefs.h */" > confdefs.h
2876 # Predefined preprocessor variables.
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE_URL "$PACKAGE_URL"
2903 # Let the site file select an alternate cache file if it wants to.
2904 # Prefer an explicitly selected file to automatically selected ones.
2907 if test -n "$CONFIG_SITE"; then
2908 ac_site_file1=$CONFIG_SITE
2909 elif test "x$prefix" != xNONE; then
2910 ac_site_file1=$prefix/share/config.site
2911 ac_site_file2=$prefix/etc/config.site
2913 ac_site_file1=$ac_default_prefix/share/config.site
2914 ac_site_file2=$ac_default_prefix/etc/config.site
2916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2918 test "x$ac_site_file" = xNONE && continue
2919 if test -r "$ac_site_file"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2922 sed 's/^/| /' "$ac_site_file" >&5
2927 if test -r "$cache_file"; then
2928 # Some versions of bash will fail to source /dev/null (special
2929 # files actually), so we avoid doing that.
2930 if test -f "$cache_file"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2932 $as_echo "$as_me: loading cache $cache_file" >&6;}
2934 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2935 *) . "./$cache_file";;
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2940 $as_echo "$as_me: creating cache $cache_file" >&6;}
2944 # Check that the precious variables saved in the cache have kept the same
2946 ac_cache_corrupted=false
2947 for ac_var in $ac_precious_vars; do
2948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2949 eval ac_new_set=\$ac_env_${ac_var}_set
2950 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2951 eval ac_new_val=\$ac_env_${ac_var}_value
2952 case $ac_old_set,$ac_new_set in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2959 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2960 ac_cache_corrupted=: ;;
2963 if test "x$ac_old_val" != "x$ac_new_val"; then
2964 # differences in whitespace do not lead to failure.
2965 ac_old_val_w=`echo x $ac_old_val`
2966 ac_new_val_w=`echo x $ac_new_val`
2967 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2969 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2970 ac_cache_corrupted=:
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2973 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2974 eval $ac_var=\$ac_old_val
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2977 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2979 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2982 # Pass precious variables to config.status.
2983 if test "$ac_new_set" = set; then
2985 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2986 *) ac_arg=$ac_var=$ac_new_val ;;
2988 case " $ac_configure_args " in
2989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2990 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2994 if $ac_cache_corrupted; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2998 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2999 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3001 ## -------------------- ##
3002 ## Main body of script. ##
3003 ## -------------------- ##
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3019 gcc_version=`cat $srcdir/BASE-VER`
3021 # Determine the host, build, and target systems
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024 for ac_t in install-sh install.sh shtool; do
3025 if test -f "$ac_dir/$ac_t"; then
3027 ac_install_sh="$ac_aux_dir/$ac_t -c"
3032 if test -z "$ac_aux_dir"; then
3033 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if test "${ac_cv_build+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3054 ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3067 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3070 ac_save_IFS=$IFS; IFS='-'
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if test "${ac_cv_host+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3088 if test "x$host_alias" = x; then
3089 ac_cv_host=$ac_cv_build
3091 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3100 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3103 ac_save_IFS=$IFS; IFS='-'
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if test "${ac_cv_target+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3121 if test "x$target_alias" = x; then
3122 ac_cv_target=$ac_cv_host
3124 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3133 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152 test "$program_prefix$program_suffix$program_transform_name" = \
3154 program_prefix=${target_alias}-
3156 # Determine the noncanonical target name, for directory use.
3157 case ${build_alias} in
3158 "") build_noncanonical=${build} ;;
3159 *) build_noncanonical=${build_alias} ;;
3162 case ${host_alias} in
3163 "") host_noncanonical=${build_noncanonical} ;;
3164 *) host_noncanonical=${host_alias} ;;
3167 case ${target_alias} in
3168 "") target_noncanonical=${host_noncanonical} ;;
3169 *) target_noncanonical=${target_alias} ;;
3175 # Determine the target- and build-specific subdirectories
3177 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3178 # have matching libraries, they should use host libraries: Makefile.tpl
3179 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3180 # However, they still use the build modules, because the corresponding
3181 # host modules (e.g. bison) are only built for the host when bootstrap
3183 # - build_subdir is where we find build modules, and never changes.
3184 # - build_libsubdir is where we find build libraries, and can be overridden.
3186 # Prefix 'build-' so this never conflicts with target_subdir.
3187 build_subdir="build-${build_noncanonical}"
3189 # Check whether --with-build-libsubdir was given.
3190 if test "${with_build_libsubdir+set}" = set; then :
3191 withval=$with_build_libsubdir; build_libsubdir="$withval"
3193 build_libsubdir="$build_subdir"
3196 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3197 if ( test $srcdir = . && test -d gcc ) \
3198 || test -d $srcdir/../host-${host_noncanonical}; then
3199 host_subdir="host-${host_noncanonical}"
3204 target_subdir=${target_noncanonical}
3207 # Set program_transform_name
3208 test "$program_prefix" != NONE &&
3209 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3210 # Use a double $ so make ignores it.
3211 test "$program_suffix" != NONE &&
3212 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3213 # Double any \ or $.
3214 # By default was `s,x,x', remove it if useless.
3215 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3216 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3219 # Check for bogus environment variables.
3220 # Test if LIBRARY_PATH contains the notation for the current directory
3221 # since this would lead to problems installing/building glibc.
3222 # LIBRARY_PATH contains the current directory if one of the following
3224 # - one of the terminals (":" and ";") is the first or last sign
3225 # - two terminals occur directly after each other
3226 # - the path contains an element with a dot in it
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3228 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3229 case ${LIBRARY_PATH} in
3230 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3231 library_path_setting="contains current directory"
3234 library_path_setting="ok"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3238 $as_echo "$library_path_setting" >&6; }
3239 if test "$library_path_setting" != "ok"; then
3241 *** LIBRARY_PATH shouldn't contain the current directory when
3242 *** building gcc. Please change the environment variable
3243 *** and run configure again." "$LINENO" 5
3246 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # GCC_EXEC_PREFIX contains the current directory if one of the following
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3254 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3255 case ${GCC_EXEC_PREFIX} in
3256 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3257 gcc_exec_prefix_setting="contains current directory"
3260 gcc_exec_prefix_setting="ok"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3264 $as_echo "$gcc_exec_prefix_setting" >&6; }
3265 if test "$gcc_exec_prefix_setting" != "ok"; then
3267 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3276 # Specify the local prefix
3279 # Check whether --with-local-prefix was given.
3280 if test "${with_local_prefix+set}" = set; then :
3281 withval=$with_local_prefix; case "${withval}" in
3282 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3284 *) local_prefix=$with_local_prefix ;;
3289 # Default local prefix if it is empty
3290 if test x$local_prefix = x; then
3291 local_prefix=/usr/local
3294 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3295 # passed in by the toplevel make and thus we'd get different behavior
3296 # depending on where we built the sources.
3297 gcc_gxx_include_dir=
3298 # Specify the g++ header file directory
3300 # Check whether --with-gxx-include-dir was given.
3301 if test "${with_gxx_include_dir+set}" = set; then :
3302 withval=$with_gxx_include_dir; case "${withval}" in
3303 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3305 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3310 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3311 if test x${gcc_gxx_include_dir} = x; then
3312 if test x${enable_version_specific_runtime_libs} = xyes; then
3313 gcc_gxx_include_dir='${libsubdir}/include/c++'
3315 libstdcxx_incdir='include/c++/$(version)'
3316 if test x$host != x$target; then
3317 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3319 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3324 # Check whether --with-cpp_install_dir was given.
3325 if test "${with_cpp_install_dir+set}" = set; then :
3326 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3327 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3328 elif test x$withval != xno; then
3329 cpp_install_dir=$withval
3334 # We would like to our source tree to be readonly. However when releases or
3335 # pre-releases are generated, the flex/bison generated files as well as the
3336 # various formats of manuals need to be included along with the rest of the
3337 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3341 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3342 # Check whether --enable-generated-files-in-srcdir was given.
3343 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3344 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3346 generated_files_in_srcdir=no
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3351 $as_echo "$generated_files_in_srcdir" >&6; }
3353 if test "$generated_files_in_srcdir" = "yes"; then
3360 # -------------------
3361 # Find default linker
3362 # -------------------
3366 # Check whether --with-gnu-ld was given.
3367 if test "${with_gnu_ld+set}" = set; then :
3368 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3374 # With pre-defined ld
3376 # Check whether --with-ld was given.
3377 if test "${with_ld+set}" = set; then :
3378 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3381 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3382 if test ! -x "$DEFAULT_LINKER"; then
3383 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3384 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3388 cat >>confdefs.h <<_ACEOF
3389 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3394 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3396 cat >>confdefs.h <<_ACEOF
3397 #define HAVE_GNU_LD $gnu_ld
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test x"$gnu_ld_flag" = x"no"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3416 # With demangler in GNU ld
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447 if test ! -x "$DEFAULT_ASSEMBLER"; then
3448 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3461 cat >>confdefs.h <<_ACEOF
3462 #define HAVE_GNU_AS $gnu_as
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3467 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3468 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3469 if test x"$gas_flag" = x"no"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3485 # If a non-executable a.out is present (e.g. created by GNU as above even if
3486 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3487 # file, even when creating an executable, so an execution test fails.
3488 # Remove possible default executable files to avoid this.
3490 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3491 # Autoconf includes it.
3492 rm -f a.out a.exe b.out
3494 # Find the native compiler
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3539 if test -z "$ac_cv_prog_CC"; then
3541 # Extract the first word of "gcc", so it can be a program name with args.
3542 set dummy gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558 ac_cv_prog_ac_ct_CC="gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3577 if test "x$ac_ct_CC" = x; then
3580 case $cross_compiling:$ac_tool_warned in
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3592 if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="${ac_tool_prefix}cc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test -n "$CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 if test $ac_prog_rejected = yes; then
3665 # We found a bogon in the path, so make sure we never use it.
3666 set dummy $ac_cv_prog_CC
3668 if test $# != 0; then
3669 # We chose a different compiler from the bogus one.
3670 # However, it has the same basename, so the bogon will be chosen
3671 # first if we set CC to just the basename; use the full file name.
3673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 for ac_prog in cl.exe
3693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_CC+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$CC"; then
3701 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 if test -n "$CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3730 test -n "$CC" && break
3733 if test -z "$CC"; then
3735 for ac_prog in cl.exe
3737 # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_ac_ct_CC="$ac_prog"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3774 test -n "$ac_ct_CC" && break
3777 if test "x$ac_ct_CC" = x; then
3780 case $cross_compiling:$ac_tool_warned in
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3793 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error "no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." "$LINENO" 5; }
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 if test -s conftest.err; then
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3817 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3840 $as_echo_n "checking for C compiler default output file name... " >&6; }
3841 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3847 for ac_file in $ac_files
3850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3856 if { { ac_try="$ac_link_default"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_link_default") 2>&5
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3869 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3870 # so that the user can short-circuit this test for compilers unknown to
3872 for ac_file in $ac_files ''
3874 test -f "$ac_file" || continue
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3879 # We found the default executable, but exeext='' is most
3883 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 # We set ac_cv_exeext here because the later test for it is not
3888 # safe: cross compilers may not add the suffix if given an `-o'
3889 # argument, so we may need to know it at that point already.
3890 # Even if this section looks crufty: it has the advantage of
3897 test "$ac_cv_exeext" = no && ac_cv_exeext=
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3903 $as_echo "$ac_file" >&6; }
3904 if test -z "$ac_file"; then :
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { as_fn_set_status 77
3911 as_fn_error "C compiler cannot create executables
3912 See \`config.log' for more details." "$LINENO" 5; }; }
3914 ac_exeext=$ac_cv_exeext
3916 # Check that the compiler produces executables we can run. If not, either
3917 # the compiler is broken, or we cross compile.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3919 $as_echo_n "checking whether the C compiler works... " >&6; }
3920 # If not cross compiling, check that we can run a simple program.
3921 if test "$cross_compiling" != yes; then
3922 if { ac_try='./$ac_file'
3923 { { case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_try") 2>&5
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; }; then
3935 if test "$cross_compiling" = maybe; then
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot run C compiled programs.
3941 If you meant to cross compile, use \`--host'.
3942 See \`config.log' for more details." "$LINENO" 5; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3950 ac_clean_files=$ac_clean_files_save
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3975 for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details." "$LINENO" 5; }
3990 rm -f conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if test "${ac_cv_objext+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021 (eval "$ac_compile") 2>&5
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }; then :
4025 for ac_file in conftest.o conftest.obj conftest.*; do
4026 test -f "$ac_file" || continue;
4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details." "$LINENO" 5; }
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4067 if ac_fn_c_try_compile "$LINENO"; then :
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if test "${ac_cv_prog_cc_g+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4090 ac_save_c_werror_flag=$ac_c_werror_flag
4091 ac_c_werror_flag=yes
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4105 if ac_fn_c_try_compile "$LINENO"; then :
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149 CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151 if test "$GCC" = yes; then
4157 if test "$GCC" = yes; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4168 ac_cv_prog_cc_c89=no
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4190 s = g (p, va_arg (v,int));
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4196 function prototypes and stuff, but not '\xHH' hex character constants.
4197 These don't provoke an error unfortunately, instead are silently treated
4198 as 'x'. The following induces an error, until -std is added to get
4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4200 array size at least. It's necessary to write '\x00'==0 to get something
4201 that's true only with -std. */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205 inside strings and character constants. */
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_prog_cc_c89=$ac_arg
4230 rm -f core conftest.err conftest.$ac_objext
4231 test "x$ac_cv_prog_cc_c89" != "xno" && break
4233 rm -f conftest.$ac_ext
4238 case "x$ac_cv_prog_cc_c89" in
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4246 CC="$CC $ac_cv_prog_cc_c89"
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 if test "x$CC" != xcc; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4262 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4265 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4267 set dummy $CC; ac_cc=`$as_echo "$2" |
4268 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4269 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4270 $as_echo_n "(cached) " >&6
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 # Make sure it works both with $CC and with simple cc.
4284 # We do the test twice because some compilers refuse to overwrite an
4285 # existing .o file with -o, though they will create one.
4286 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4288 if { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; } &&
4298 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_try") 2>&5
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; };
4309 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4310 if test "x$CC" != xcc; then
4311 # Test first that cc exists at all.
4312 if { ac_try='cc -c conftest.$ac_ext >&5'
4313 { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; }; then
4323 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4325 if { { case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_try") 2>&5
4333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334 test $ac_status = 0; } &&
4335 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; };
4349 # cc exists but doesn't like -o.
4350 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4357 rm -f core conftest*
4360 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4367 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4371 # expand $ac_aux_dir to an absolute path
4372 am_aux_dir=`cd $ac_aux_dir && pwd`
4374 # FIXME: we rely on the cache variable name because
4375 # there is no other way.
4377 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4379 if test "$am_t" != yes; then
4380 # Losing compiler, so override with the script.
4381 # FIXME: It is wrong to rewrite CC.
4382 # But if we don't then we get into trouble of one sort or another.
4383 # A longer-term fix would be to have automake use am__CC in this case,
4384 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385 CC="$am_aux_dir/compile $CC"
4390 ac_cpp='$CXXCPP $CPPFLAGS'
4391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4394 if test -z "$CXX"; then
4395 if test -n "$CCC"; then
4398 if test -n "$ac_tool_prefix"; then
4399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_CXX+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 if test -n "$CXX"; then
4409 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 if test -n "$CXX"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$CXX" && break
4441 if test -z "$CXX"; then
4443 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4445 # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4452 if test -n "$ac_ct_CXX"; then
4453 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_ac_ct_CXX="$ac_prog"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4475 $as_echo "$ac_ct_CXX" >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4482 test -n "$ac_ct_CXX" && break
4485 if test "x$ac_ct_CXX" = x; then
4488 case $cross_compiling:$ac_tool_warned in
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4500 # Provide some information about the compiler.
4501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 for ac_option in --version -v -V -qversion; do
4505 { { ac_try="$ac_compiler $ac_option >&5"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4514 if test -s conftest.err; then
4516 ... rest of stderr output deleted ...
4517 10q' conftest.err >conftest.er1
4518 cat conftest.er1 >&5
4519 rm -f conftest.er1 conftest.err
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4526 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4544 if ac_fn_cxx_try_compile "$LINENO"; then :
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4554 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4555 if test $ac_compiler_gnu = yes; then
4560 ac_test_CXXFLAGS=${CXXFLAGS+set}
4561 ac_save_CXXFLAGS=$CXXFLAGS
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4563 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4564 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4568 ac_cxx_werror_flag=yes
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4583 ac_cv_prog_cxx_g=yes
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4597 if ac_fn_cxx_try_compile "$LINENO"; then :
4600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4613 if ac_fn_cxx_try_compile "$LINENO"; then :
4614 ac_cv_prog_cxx_g=yes
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4624 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4625 if test "$ac_test_CXXFLAGS" = set; then
4626 CXXFLAGS=$ac_save_CXXFLAGS
4627 elif test $ac_cv_prog_cxx_g = yes; then
4628 if test "$GXX" = yes; then
4634 if test "$GXX" = yes; then
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -n "$GNATBIND"; then
4658 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 GNATBIND=$ac_cv_prog_GNATBIND
4678 if test -n "$GNATBIND"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4680 $as_echo "$GNATBIND" >&6; }
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4688 if test -z "$ac_cv_prog_GNATBIND"; then
4689 ac_ct_GNATBIND=$GNATBIND
4690 # Extract the first word of "gnatbind", so it can be a program name with args.
4691 set dummy gnatbind; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$ac_ct_GNATBIND"; then
4698 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4718 if test -n "$ac_ct_GNATBIND"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4720 $as_echo "$ac_ct_GNATBIND" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4726 if test "x$ac_ct_GNATBIND" = x; then
4729 case $cross_compiling:$ac_tool_warned in
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4735 GNATBIND=$ac_ct_GNATBIND
4738 GNATBIND="$ac_cv_prog_GNATBIND"
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4749 if test -n "$GNATMAKE"; then
4750 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 GNATMAKE=$ac_cv_prog_GNATMAKE
4770 if test -n "$GNATMAKE"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4772 $as_echo "$GNATMAKE" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4780 if test -z "$ac_cv_prog_GNATMAKE"; then
4781 ac_ct_GNATMAKE=$GNATMAKE
4782 # Extract the first word of "gnatmake", so it can be a program name with args.
4783 set dummy gnatmake; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$ac_ct_GNATMAKE"; then
4790 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4810 if test -n "$ac_ct_GNATMAKE"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4812 $as_echo "$ac_ct_GNATMAKE" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4818 if test "x$ac_ct_GNATMAKE" = x; then
4821 case $cross_compiling:$ac_tool_warned in
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4827 GNATMAKE=$ac_ct_GNATMAKE
4830 GNATMAKE="$ac_cv_prog_GNATMAKE"
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4834 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4835 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4838 cat >conftest.adb <<EOF
4839 procedure conftest is begin null; end conftest;
4841 acx_cv_cc_gcc_supports_ada=no
4842 # There is a bug in old released versions of GCC which causes the
4843 # driver to exit successfully when the appropriate language module
4844 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4845 # Therefore we must check for the error message as well as an
4846 # unsuccessful exit.
4847 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4848 # given a .adb file, but produce no object file. So we must check
4849 # if an object file was really produced to guard against this.
4850 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4851 if test x"$errors" = x && test -f conftest.$ac_objext; then
4852 acx_cv_cc_gcc_supports_ada=yes
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4857 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4859 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4866 # autoconf is lame and doesn't give us any substitution variable for this.
4867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4868 NO_MINUS_C_MINUS_O=yes
4870 OUTPUT_OPTION='-o $@'
4875 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4876 # optimizations to be activated explicitly by the toplevel.
4878 */prev-gcc/xgcc*) ;;
4879 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4883 # Determine PICFLAG for target gnatlib.
4889 # PIC is the default on some targets or must not be used.
4891 # PIC is the default on this platform
4892 # Common symbols not allowed in MH_DYLIB files
4893 PICFLAG_FOR_TARGET=-fno-common
4896 # PIC is the default.
4899 # PIC is the default for 64-bit PA HP-UX.
4901 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4903 i[34567]86-*-interix3*)
4904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4905 # Instead, we relocate shared libraries at runtime.
4907 i[34567]86-*-nto-qnx*)
4908 # QNX uses GNU C++, but need to define -shared option too, otherwise
4910 PICFLAG_FOR_TARGET='-fPIC -shared'
4912 i[34567]86-pc-msdosdjgpp*)
4913 # DJGPP does not support shared libraries at all.
4916 # On IA64 HP-UX, PIC is the default but the pic flag
4917 # sets the default TLS model and affects inlining.
4918 PICFLAG_FOR_TARGET=-fPIC
4921 # PIC is the default.
4923 rs6000-ibm-aix* | powerpc-ibm-aix*)
4924 # All AIX code is PIC.
4927 # Some targets support both -fPIC and -fpic, but prefer the latter.
4929 i[34567]86-*-* | x86_64-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4933 PICFLAG_FOR_TARGET=-fpic
4936 PICFLAG_FOR_TARGET=-fpic
4938 # FIXME: Override -fPIC default in libgcc only?
4939 sh-*-linux* | sh[2346lbe]*-*-linux*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Simplify to sh*-*-netbsd*?
4943 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944 sh64-*-netbsd* | sh64l*-*-netbsd*)
4945 PICFLAG_FOR_TARGET=-fpic
4947 # Default to -fPIC unless specified otherwise.
4949 PICFLAG_FOR_TARGET=-fPIC
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4956 PICFLAG_FOR_TARGET=-fpic
4959 PICFLAG_FOR_TARGET=-fPIC
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4981 if test -z "$CPP"; then
4982 if test "${ac_cv_prog_CPP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 # Double quotes because CPP needs to be expanded
4986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4989 for ac_c_preproc_warn_flag in '' yes
4991 # Use a header file that comes with gcc, so configuring glibc
4992 # with a fresh cross-compiler works.
4993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994 # <limits.h> exists even on freestanding compilers.
4995 # On the NeXT, cc -E runs the code through the compiler's parser,
4996 # not just through cpp. "Syntax error" is here to catch this case.
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5000 # include <limits.h>
5002 # include <assert.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5009 # Broken: fails on valid input.
5012 rm -f conftest.err conftest.$ac_ext
5014 # OK, works on sane cases. Now check whether nonexistent headers
5015 # can be detected and how.
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: success on invalid input.
5024 # Passes both tests.
5028 rm -f conftest.err conftest.$ac_ext
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then :
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5048 for ac_c_preproc_warn_flag in '' yes
5050 # Use a header file that comes with gcc, so configuring glibc
5051 # with a fresh cross-compiler works.
5052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 # <limits.h> exists even on freestanding compilers.
5054 # On the NeXT, cc -E runs the code through the compiler's parser,
5055 # not just through cpp. "Syntax error" is here to catch this case.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5059 # include <limits.h>
5061 # include <assert.h>
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.$ac_ext
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: success on invalid input.
5083 # Passes both tests.
5087 rm -f conftest.err conftest.$ac_ext
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.$ac_ext
5092 if $ac_preproc_ok; then :
5095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -z "$GREP"; then
5114 ac_path_GREP_found=false
5115 # Loop through the user's path and test for each of PROGNAME-LIST
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 test -z "$as_dir" && as_dir=.
5121 for ac_prog in grep ggrep; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5124 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126 # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5129 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5132 $as_echo_n 0123456789 >"conftest.in"
5135 cat "conftest.in" "conftest.in" >"conftest.tmp"
5136 mv "conftest.tmp" "conftest.in"
5137 cp "conftest.in" "conftest.nl"
5138 $as_echo 'GREP' >> "conftest.nl"
5139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141 as_fn_arith $ac_count + 1 && ac_count=$as_val
5142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143 # Best one so far, save it but keep looking for a better one
5144 ac_cv_path_GREP="$ac_path_GREP"
5145 ac_path_GREP_max=$ac_count
5147 # 10*(2^10) chars as input seems more than enough
5148 test $ac_count -gt 10 && break
5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 $ac_path_GREP_found && break 3
5158 if test -z "$ac_cv_path_GREP"; then
5159 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 ac_cv_path_GREP=$GREP
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168 GREP="$ac_cv_path_GREP"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177 then ac_cv_path_EGREP="$GREP -E"
5179 if test -z "$EGREP"; then
5180 ac_path_EGREP_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in egrep; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192 # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5198 $as_echo_n 0123456789 >"conftest.in"
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo 'EGREP' >> "conftest.nl"
5205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_EGREP="$ac_path_EGREP"
5211 ac_path_EGREP_max=$ac_count
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 $ac_path_EGREP_found && break 3
5224 if test -z "$ac_cv_path_EGREP"; then
5225 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5228 ac_cv_path_EGREP=$EGREP
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235 EGREP="$ac_cv_path_EGREP"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_cv_header_stdc=yes
5261 ac_cv_header_stdc=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 if test $ac_cv_header_stdc = yes; then
5266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "memchr" >/dev/null 2>&1; then :
5276 ac_cv_header_stdc=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "free" >/dev/null 2>&1; then :
5293 ac_cv_header_stdc=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then :
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 # define ISLOWER(c) \
5313 (('a' <= (c) && (c) <= 'i') \
5314 || ('j' <= (c) && (c) <= 'r') \
5315 || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 for (i = 0; i < 256; i++)
5325 if (XOR (islower (i), ISLOWER (i))
5326 || toupper (i) != TOUPPER (i))
5331 if ac_fn_c_try_run "$LINENO"; then :
5334 ac_cv_header_stdc=no
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337 conftest.$ac_objext conftest.beam conftest.$ac_ext
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352 inttypes.h stdint.h unistd.h
5354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5357 eval as_val=\$$as_ac_Header
5358 if test "x$as_val" = x""yes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5377 if test "$MINIX" = yes; then
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5398 # define __EXTENSIONS__ 1
5399 $ac_includes_default
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_safe_to_define___extensions__=yes
5411 ac_cv_safe_to_define___extensions__=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417 test $ac_cv_safe_to_define___extensions__ = yes &&
5418 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5420 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5424 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5426 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5440 if test -z "$CPP"; then
5441 if test "${ac_cv_prog_CPP+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 # Double quotes because CPP needs to be expanded
5445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5448 for ac_c_preproc_warn_flag in '' yes
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 # include <limits.h>
5461 # include <assert.h>
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5468 # Broken: fails on valid input.
5471 rm -f conftest.err conftest.$ac_ext
5473 # OK, works on sane cases. Now check whether nonexistent headers
5474 # can be detected and how.
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #include <ac_nonexistent.h>
5479 if ac_fn_c_try_cpp "$LINENO"; then :
5480 # Broken: success on invalid input.
5483 # Passes both tests.
5487 rm -f conftest.err conftest.$ac_ext
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5507 for ac_c_preproc_warn_flag in '' yes
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5518 # include <limits.h>
5520 # include <assert.h>
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5527 # Broken: fails on valid input.
5530 rm -f conftest.err conftest.$ac_ext
5532 # OK, works on sane cases. Now check whether nonexistent headers
5533 # can be detected and how.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <ac_nonexistent.h>
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539 # Broken: success on invalid input.
5542 # Passes both tests.
5546 rm -f conftest.err conftest.$ac_ext
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5572 for ac_kw in inline __inline__ __inline; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_c_inline=$ac_kw
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 test "$ac_cv_c_inline" != no && break
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5593 case $ac_cv_c_inline in
5596 case $ac_cv_c_inline in
5598 *) ac_val=$ac_cv_c_inline;;
5600 cat >>confdefs.h <<_ACEOF
5602 #define inline $ac_val
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611 enableval=$enable_largefile;
5614 if test "$enable_largefile" != no; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_cv_sys_largefile_CC=no
5622 if test "$GCC" != yes; then
5625 # IRIX 6.2 and later do not support large files by default,
5626 # so use the C compiler's -n32 option if that helps.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <sys/types.h>
5630 /* Check that off_t can represent 2**63 - 1 correctly.
5631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632 since some C++ compilers masquerading as C compilers
5633 incorrectly reject 9223372036854775807. */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636 && LARGE_OFF_T % 2147483647 == 1)
5646 if ac_fn_c_try_compile "$LINENO"; then :
5649 rm -f core conftest.err conftest.$ac_objext
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_sys_largefile_CC=' -n32'; break
5654 rm -f core conftest.err conftest.$ac_objext
5658 rm -f conftest.$ac_ext
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663 if test "$ac_cv_sys_largefile_CC" != no; then
5664 CC=$CC$ac_cv_sys_largefile_CC
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <sys/types.h>
5676 /* Check that off_t can represent 2**63 - 1 correctly.
5677 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678 since some C++ compilers masquerading as C compilers
5679 incorrectly reject 9223372036854775807. */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682 && LARGE_OFF_T % 2147483647 == 1)
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693 ac_cv_sys_file_offset_bits=no; break
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700 /* Check that off_t can represent 2**63 - 1 correctly.
5701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702 since some C++ compilers masquerading as C compilers
5703 incorrectly reject 9223372036854775807. */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706 && LARGE_OFF_T % 2147483647 == 1)
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 ac_cv_sys_file_offset_bits=64; break
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cv_sys_file_offset_bits=unknown
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5729 cat >>confdefs.h <<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5735 if test $ac_cv_sys_file_offset_bits = unknown; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 /* Check that off_t can represent 2**63 - 1 correctly.
5746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747 since some C++ compilers masquerading as C compilers
5748 incorrectly reject 9223372036854775807. */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751 && LARGE_OFF_T % 2147483647 == 1)
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762 ac_cv_sys_large_files=no; break
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 ac_cv_sys_large_files=1; break
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_sys_large_files=unknown
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5821 if test "$ac_cv_type_void_p" = yes; then
5822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status 77
5825 as_fn_error "cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5828 ac_cv_sizeof_void_p=0
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5855 if test "$ac_cv_type_short" = yes; then
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status 77
5859 as_fn_error "cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5862 ac_cv_sizeof_short=0
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5872 cat >>confdefs.h <<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5886 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5889 if test "$ac_cv_type_int" = yes; then
5890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status 77
5893 as_fn_error "cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5906 cat >>confdefs.h <<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5923 if test "$ac_cv_type_long" = yes; then
5924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status 77
5927 as_fn_error "cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5945 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x""yes; then :
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_LONG_LONG 1
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5964 if test "$ac_cv_type_long_long" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5971 ac_cv_sizeof_long_long=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5988 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x""yes; then :
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE___INT64 1
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6007 if test "$ac_cv_type___int64" = yes; then
6008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6014 ac_cv_sizeof___int64=0
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6031 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6036 cat >>confdefs.h <<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6042 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6053 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6058 cat >>confdefs.h <<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6064 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6069 cat >>confdefs.h <<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6084 /* For now, do not test the preprocessor; as of 2007 there are too many
6085 implementations with broken preprocessors. Perhaps this can
6086 be revisited in 2012. In the meantime, code should not expect
6087 #if to work with literals wider than 32 bits. */
6088 /* Test literals. */
6089 long long int ll = 9223372036854775807ll;
6090 long long int nll = -9223372036854775807LL;
6091 unsigned long long int ull = 18446744073709551615ULL;
6092 /* Test constant expressions. */
6093 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6095 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6101 /* Test availability of runtime routines for shift and division. */
6102 long long int llmax = 9223372036854775807ll;
6103 unsigned long long int ullmax = 18446744073709551615ull;
6104 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105 | (llmax / ll) | (llmax % ll)
6106 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107 | (ullmax / ull) | (ullmax % ull));
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 if test "$cross_compiling" = yes; then :
6115 ac_cv_type_long_long_int=yes
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6122 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123 # define LLONG_MAX (HALF - 1 + HALF)
6128 long long int n = 1;
6132 long long int m = n << i;
6135 if (LLONG_MAX / 2 < m)
6143 if ac_fn_c_try_run "$LINENO"; then :
6144 ac_cv_type_long_long_int=yes
6146 ac_cv_type_long_long_int=no
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149 conftest.$ac_objext conftest.beam conftest.$ac_ext
6153 ac_cv_type_long_long_int=no
6155 rm -f core conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160 if test $ac_cv_type_long_long_int = yes; then
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6168 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6174 test $ac_cv_type_long_long_int = yes \
6175 && ac_type='long long int' \
6176 || ac_type='long int'
6178 cat >>confdefs.h <<_ACEOF
6179 #define intmax_t $ac_type
6186 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6192 for ac_type in 'int' 'long int' 'long long int'; do
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 $ac_includes_default
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6206 if ac_fn_c_try_compile "$LINENO"; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define intptr_t $ac_type
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 test -z "$ac_type" && break
6220 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6228 cat >>confdefs.h <<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6234 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6246 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6260 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6268 cat >>confdefs.h <<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6283 /* For now, do not test the preprocessor; as of 2007 there are too many
6284 implementations with broken preprocessors. Perhaps this can
6285 be revisited in 2012. In the meantime, code should not expect
6286 #if to work with literals wider than 32 bits. */
6287 /* Test literals. */
6288 long long int ll = 9223372036854775807ll;
6289 long long int nll = -9223372036854775807LL;
6290 unsigned long long int ull = 18446744073709551615ULL;
6291 /* Test constant expressions. */
6292 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6294 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6300 /* Test availability of runtime routines for shift and division. */
6301 long long int llmax = 9223372036854775807ll;
6302 unsigned long long int ullmax = 18446744073709551615ull;
6303 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304 | (llmax / ll) | (llmax % ll)
6305 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306 | (ullmax / ull) | (ullmax % ull));
6312 if ac_fn_c_try_link "$LINENO"; then :
6313 ac_cv_type_unsigned_long_long_int=yes
6315 ac_cv_type_unsigned_long_long_int=no
6317 rm -f core conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322 if test $ac_cv_type_unsigned_long_long_int = yes; then
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6330 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6336 test $ac_cv_type_unsigned_long_long_int = yes \
6337 && ac_type='unsigned long long int' \
6338 || ac_type='unsigned long int'
6340 cat >>confdefs.h <<_ACEOF
6341 #define uintmax_t $ac_type
6348 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6354 for ac_type in 'unsigned int' 'unsigned long int' \
6355 'unsigned long long int'; do
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 $ac_includes_default
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6369 if ac_fn_c_try_compile "$LINENO"; then :
6371 cat >>confdefs.h <<_ACEOF
6372 #define uintptr_t $ac_type
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 test -z "$ac_type" && break
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6404 # * overlong strings
6405 # So, we only use -pedantic if we can disable those warnings.
6408 save_CFLAGS="$CFLAGS"
6409 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6410 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 eval ac_res=\$$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 loose_warn="$loose_warn${loose_warn:+ }$option"
6444 CFLAGS="$save_CFLAGS"
6447 save_CFLAGS="$CFLAGS"
6448 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6449 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454 $as_echo_n "(cached) " >&6
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 eval "$as_acx_Woption=yes"
6471 eval "$as_acx_Woption=no"
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 eval ac_res=\$$as_acx_Woption
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6483 CFLAGS="$save_CFLAGS"
6486 save_CFLAGS="$CFLAGS"
6487 for option in -Wmissing-format-attribute; do
6488 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6491 $as_echo_n "checking whether $CC supports $option... " >&6; }
6492 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6493 $as_echo_n "(cached) " >&6
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508 eval "$as_acx_Woption=yes"
6510 eval "$as_acx_Woption=no"
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 eval ac_res=\$$as_acx_Woption
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6519 strict_warn="$strict_warn${strict_warn:+ }$option"
6522 CFLAGS="$save_CFLAGS"
6525 save_CFLAGS="$CFLAGS"
6526 for option in -Wold-style-definition -Wc++-compat; do
6527 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532 $as_echo_n "(cached) " >&6
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 eval "$as_acx_Woption=yes"
6549 eval "$as_acx_Woption=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 eval ac_res=\$$as_acx_Woption
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6561 CFLAGS="$save_CFLAGS"
6563 if test "$GCC" = yes; then :
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6565 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6566 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 save_CFLAGS="$CFLAGS"
6570 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6585 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 CFLAGS="$save_CFLAGS"
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6591 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6592 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6593 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6598 # Check whether --enable-werror-always was given.
6599 if test "${enable_werror_always+set}" = set; then :
6600 enableval=$enable_werror_always;
6602 enable_werror_always=no
6605 if test $enable_werror_always = yes; then :
6606 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6611 # The above macros do nothing if the compiler is not GCC. However, the
6612 # Makefile has more goo to add other flags, so these variables are used
6613 # to enable warnings only for GCC.
6616 if test "x$GCC" = "xyes"; then
6617 warn_cflags='$(GCC_WARN_CFLAGS)'
6618 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6623 # Enable expensive internal checks
6625 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6629 # Check whether --enable-checking was given.
6630 if test "${enable_checking+set}" = set; then :
6631 enableval=$enable_checking; ac_checking_flags="${enableval}"
6634 # Determine the default checks.
6635 if test x$is_release = x ; then
6636 ac_checking_flags=yes
6638 ac_checking_flags=release
6642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6643 for check in release $ac_checking_flags
6646 # these set all the flags to specific states
6647 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6648 ac_fold_checking= ; ac_gc_checking=1 ;
6649 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6650 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6651 ac_tree_checking=1 ; ac_valgrind_checking= ;
6652 ac_types_checking=1 ;;
6653 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6654 ac_fold_checking= ; ac_gc_checking= ;
6655 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6656 ac_rtlflag_checking= ; ac_runtime_checking= ;
6657 ac_tree_checking= ; ac_valgrind_checking= ;
6658 ac_types_checking= ;;
6659 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6660 ac_fold_checking=1 ; ac_gc_checking=1 ;
6661 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6662 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6663 ac_tree_checking=1 ; ac_valgrind_checking= ;
6664 ac_types_checking=1 ;;
6665 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6666 ac_fold_checking= ; ac_gc_checking= ;
6667 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6668 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6669 ac_tree_checking= ; ac_valgrind_checking= ;
6670 ac_types_checking= ;;
6671 # these enable particular checks
6672 assert) ac_assert_checking=1 ;;
6673 df) ac_df_checking=1 ;;
6674 fold) ac_fold_checking=1 ;;
6675 gc) ac_gc_checking=1 ;;
6676 gcac) ac_gc_always_collect=1 ;;
6677 gimple) ac_gimple_checking=1 ;;
6678 misc) ac_checking=1 ;;
6679 rtl) ac_rtl_checking=1 ;;
6680 rtlflag) ac_rtlflag_checking=1 ;;
6681 runtime) ac_runtime_checking=1 ;;
6682 tree) ac_tree_checking=1 ;;
6683 types) ac_types_checking=1 ;;
6684 valgrind) ac_valgrind_checking=1 ;;
6685 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6691 if test x$ac_checking != x ; then
6693 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6695 nocommon_flag=-fno-common
6698 if test x$ac_df_checking != x ; then
6700 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6703 if test x$ac_assert_checking != x ; then
6705 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6708 if test x$ac_gimple_checking != x ; then
6710 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6714 if test x$ac_runtime_checking != x ; then
6716 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6719 if test x$ac_tree_checking != x ; then
6721 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6723 TREEBROWSER=tree-browser.o
6725 if test x$ac_types_checking != x ; then
6727 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6731 if test x$ac_rtl_checking != x ; then
6733 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6736 if test x$ac_rtlflag_checking != x ; then
6738 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6741 if test x$ac_gc_checking != x ; then
6743 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6746 if test x$ac_gc_always_collect != x ; then
6748 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6751 if test x$ac_fold_checking != x ; then
6753 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6756 valgrind_path_defines=
6759 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6760 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6768 if test x$ac_valgrind_checking != x ; then
6769 # It is certainly possible that there's valgrind but no valgrind.h.
6770 # GCC relies on making annotations so we must have both.
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6772 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 #include <valgrind/memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781 gcc_cv_header_valgrind_memcheck_h=yes
6783 gcc_cv_header_valgrind_memcheck_h=no
6785 rm -f conftest.err conftest.$ac_ext
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6787 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6789 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <memcheck.h>
6793 #ifndef VALGRIND_DISCARD
6794 #error VALGRIND_DISCARD not defined
6797 if ac_fn_c_try_cpp "$LINENO"; then :
6798 gcc_cv_header_memcheck_h=yes
6800 gcc_cv_header_memcheck_h=no
6802 rm -f conftest.err conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6804 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6806 # Prepare PATH_SEPARATOR.
6807 # The user is always right.
6808 if test "${PATH_SEPARATOR+set}" != set; then
6809 echo "#! /bin/sh" >conf$$.sh
6810 echo "exit 0" >>conf$$.sh
6812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 # Find out how to test for executable files. Don't use a zero-byte file,
6821 # as systems may use methods other than mode bits to determine executability.
6822 cat >conf$$.file <<_ASEOF
6826 chmod +x conf$$.file
6827 if test -x conf$$.file >/dev/null 2>&1; then
6828 ac_executable_p="test -x"
6830 ac_executable_p="test -f"
6834 # Extract the first word of "valgrind", so it can be a program name with args.
6835 set dummy valgrind; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6841 case "$valgrind_path" in
6843 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6847 for ac_dir in $PATH; do
6849 test -z "$ac_dir" && ac_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6852 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6853 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6863 valgrind_path="$ac_cv_path_valgrind_path"
6864 if test -n "$valgrind_path"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6866 $as_echo "$valgrind_path" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6872 if test "x$valgrind_path" = "x" \
6873 || (test $have_valgrind_h = no \
6874 && test $gcc_cv_header_memcheck_h = no \
6875 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6876 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6878 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6879 valgrind_command="$valgrind_path -q"
6881 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6883 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6885 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6888 if test $gcc_cv_header_memcheck_h = yes; then
6890 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then :
6900 enableval=$enable_coverage; case "${enableval}" in
6902 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6905 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6908 # a.k.a. --disable-coverage
6912 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6921 # Check whether --enable-gather-detailed-mem-stats was given.
6922 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6923 enableval=$enable_gather_detailed_mem_stats;
6925 enable_gather_detailed_mem_stats=no
6928 if test x$enable_gather_detailed_mem_stats = xyes ; then
6930 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6934 # -------------------------------
6935 # Miscenalleous configure options
6936 # -------------------------------
6938 # See if we are building gcc with C++.
6939 # Check whether --enable-build-with-cxx was given.
6940 if test "${enable_build_with_cxx+set}" = set; then :
6941 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6943 ENABLE_BUILD_WITH_CXX=no
6947 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6949 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6955 # Check whether --with-stabs was given.
6956 if test "${with_stabs+set}" = set; then :
6957 withval=$with_stabs; stabs="$with_stabs"
6963 # Determine whether or not multilibs are enabled.
6964 # Check whether --enable-multilib was given.
6965 if test "${enable_multilib+set}" = set; then :
6966 enableval=$enable_multilib;
6973 # Enable __cxa_atexit for C++.
6974 # Check whether --enable-__cxa_atexit was given.
6975 if test "${enable___cxa_atexit+set}" = set; then :
6976 enableval=$enable___cxa_atexit;
6980 # Enable C extension for decimal float if target supports it.
6982 # Check whether --enable-decimal-float was given.
6983 if test "${enable_decimal_float+set}" = set; then :
6984 enableval=$enable_decimal_float;
6985 case $enable_decimal_float in
6986 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6987 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6988 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6994 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6995 i?86*-*-mingw* | x86_64*-*-mingw* | \
6997 enable_decimal_float=yes
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7002 enable_decimal_float=no
7009 # x86's use BID format instead of DPD
7010 case x$enable_decimal_float in
7013 i?86*-*-* | x86_64*-*-*)
7014 enable_decimal_float=bid
7017 enable_decimal_float=dpd
7020 default_decimal_float=$enable_decimal_float
7023 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7024 # dependency on libdecnumber.
7025 default_decimal_float=dpd
7032 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7039 # Use default_decimal_float for dependency.
7040 enable_decimal_float=$default_decimal_float
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then :
7052 enableval=$enable_fixed_point;
7057 enable_fixed_point=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7065 enable_fixed_point=no
7068 enable_fixed_point=yes
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7075 enable_fixed_point=no
7083 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7085 cat >>confdefs.h <<_ACEOF
7086 #define ENABLE_FIXED_POINT $fixedpoint
7091 # Pass with no value to take the default
7092 # Pass with a value to specify a thread package
7093 # Check whether --enable-threads was given.
7094 if test "${enable_threads+set}" = set; then :
7095 enableval=$enable_threads;
7101 # Check whether --enable-tls was given.
7102 if test "${enable_tls+set}" = set; then :
7103 enableval=$enable_tls;
7106 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7115 # Check whether --enable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then :
7117 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7128 # Check whether --with-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then :
7130 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7136 # Check whether --enable-shared was given.
7137 if test "${enable_shared+set}" = set; then :
7138 enableval=$enable_shared;
7139 case $enable_shared in
7143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7144 for pkg in $enableval; do
7145 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7160 # Check whether --with-native-system-header-dir was given.
7161 if test "${with_native_system_header_dir+set}" = set; then :
7162 withval=$with_native_system_header_dir;
7163 case ${with_native_system_header_dir} in
7164 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7165 /* | [A-Za-z]:[\\/]*) ;;
7166 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7168 configured_native_system_header_dir="${withval}"
7171 configured_native_system_header_dir=
7176 # Check whether --with-build-sysroot was given.
7177 if test "${with_build_sysroot+set}" = set; then :
7178 withval=$with_build_sysroot; if test x"$withval" != x ; then
7179 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7182 SYSROOT_CFLAGS_FOR_TARGET=
7188 # Check whether --with-sysroot was given.
7189 if test "${with_sysroot+set}" = set; then :
7190 withval=$with_sysroot;
7191 case ${with_sysroot} in
7192 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7193 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7196 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7197 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7199 if test "x$prefix" = xNONE; then
7200 test_prefix=/usr/local
7204 if test "x$exec_prefix" = xNONE; then
7205 test_exec_prefix=$test_prefix
7207 test_exec_prefix=$exec_prefix
7209 case ${TARGET_SYSTEM_ROOT} in
7210 "${test_prefix}"|"${test_prefix}/"*|\
7211 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7212 '${prefix}'|'${prefix}/'*|\
7213 '${exec_prefix}'|'${exec_prefix}/'*)
7214 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7215 TARGET_SYSTEM_ROOT_DEFINE="$t"
7222 TARGET_SYSTEM_ROOT_DEFINE=
7223 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7232 # Check whether --with-specs was given.
7233 if test "${with_specs+set}" = set; then :
7234 withval=$with_specs; CONFIGURE_SPECS=$withval
7244 # Check whether --with-pkgversion was given.
7245 if test "${with_pkgversion+set}" = set; then :
7246 withval=$with_pkgversion; case "$withval" in
7247 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7249 *) PKGVERSION="($withval) " ;;
7260 # Check whether --with-bugurl was given.
7261 if test "${with_bugurl+set}" = set; then :
7262 withval=$with_bugurl; case "$withval" in
7263 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7266 *) BUGURL="$withval"
7270 BUGURL="http://gcc.gnu.org/bugs.html"
7280 REPORT_BUGS_TO="<$BUGURL>"
7281 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7288 # Sanity check enable_languages in case someone does not run the toplevel
7289 # configure # script.
7290 # Check whether --enable-languages was given.
7291 if test "${enable_languages+set}" = set; then :
7292 enableval=$enable_languages; case ,${enable_languages}, in
7294 # go safe -- we cannot be much sure without the toplevel
7296 # analysis of which target libs are present and usable
7300 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7305 enable_languages=c,${enable_languages}
7314 # Check whether --with-multilib-list was given.
7315 if test "${with_multilib_list+set}" = set; then :
7316 withval=$with_multilib_list; :
7318 with_multilib_list=default
7322 # -------------------------
7323 # Checks for other programs
7324 # -------------------------
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7331 $as_echo_n "(cached) " >&6
7333 cat >conftest.make <<\_ACEOF
7336 @echo '@@@%%%=$(MAKE)=@@@%%%'
7338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7341 eval ac_cv_prog_make_${ac_make}_set=yes;;
7343 eval ac_cv_prog_make_${ac_make}_set=no;;
7347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 SET_MAKE="MAKE=${MAKE-make}"
7358 # Find some useful tools
7359 for ac_prog in gawk mawk nawk awk
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_AWK+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$AWK"; then
7369 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_AWK="$ac_prog"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 if test -n "$AWK"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7391 $as_echo "$AWK" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7398 test -n "$AWK" && break
7401 # We need awk to create options.c and options.h.
7402 # Bail out if it's missing.
7404 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7408 $as_echo_n "checking whether ln -s works... " >&6; }
7409 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 rm -f conftestdata_t
7413 echo >conftestdata_f
7414 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7416 gcc_cv_prog_LN_S="ln -s"
7418 if ln conftestdata_f conftestdata_t 2>/dev/null
7422 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7424 gcc_cv_prog_LN_S="cp -p"
7430 rm -f conftestdata_f conftestdata_t
7433 LN_S="$gcc_cv_prog_LN_S"
7434 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7438 if test "$gcc_cv_prog_LN_S" = "ln"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7440 $as_echo "no, using ln" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7443 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7448 $as_echo_n "checking whether ln works... " >&6; }
7449 if test "${acx_cv_prog_LN+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln conftestdata_f conftestdata_t 2>/dev/null
7460 rm -f conftestdata_f conftestdata_t
7463 if test $acx_cv_prog_LN = no; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7466 $as_echo "no, using $LN" >&6; }
7468 LN="$acx_cv_prog_LN"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$RANLIB"; then
7482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 RANLIB=$ac_cv_prog_RANLIB
7502 if test -n "$RANLIB"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7504 $as_echo "$RANLIB" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_RANLIB"; then
7513 ac_ct_RANLIB=$RANLIB
7514 # Extract the first word of "ranlib", so it can be a program name with args.
7515 set dummy ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_RANLIB"; then
7522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_RANLIB="ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7542 if test -n "$ac_ct_RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7544 $as_echo "$ac_ct_RANLIB" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_RANLIB" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7559 RANLIB=$ac_ct_RANLIB
7562 RANLIB="$ac_cv_prog_RANLIB"
7567 # By default, the Darwin ranlib will not treat common symbols as
7568 # definitions when building the archive table of contents. Other
7569 # ranlibs do that; pass an option to the Darwin ranlib that makes
7570 # it behave similarly.
7578 # Find a good install program. We prefer a C program (faster),
7579 # so one script is as good as another. But avoid the broken or
7580 # incompatible versions:
7581 # SysV /etc/install, /usr/sbin/install
7582 # SunOS /usr/etc/install
7583 # IRIX /sbin/install
7585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7587 # ./install, which can be erroneously created by make from ./install.sh.
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7589 $as_echo_n "checking for a BSD compatible install... " >&6; }
7590 if test -z "$INSTALL"; then
7591 if test "${ac_cv_path_install+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7595 for ac_dir in $PATH; do
7596 # Account for people who put trailing slashes in PATH elements.
7598 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7600 # OSF1 and SCO ODT 3.0 have their own names for install.
7601 for ac_prog in ginstall scoinst install; do
7602 if test -f $ac_dir/$ac_prog; then
7603 if test $ac_prog = install &&
7604 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7605 # AIX install. It has an incompatible calling convention.
7606 # OSF/1 installbsd also uses dspmsg, but is usable.
7609 ac_cv_path_install="$ac_dir/$ac_prog -c"
7620 if test "${ac_cv_path_install+set}" = set; then
7621 INSTALL="$ac_cv_path_install"
7623 # As a last resort, use the slow shell script. We don't cache a
7624 # path for INSTALL within a source directory, because that will
7625 # break other packages using the cache if that directory is
7626 # removed, or if the path is relative.
7627 INSTALL="$ac_install_sh"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7631 $as_echo "$INSTALL" >&6; }
7633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7634 # It thinks the first close brace ends the variable substitution.
7635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7640 # See if cmp has --ignore-initial.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7642 $as_echo_n "checking for cmp's capabilities... " >&6; }
7643 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7648 gcc_cv_prog_cmp_skip=slowcompare
7649 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7650 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7653 gcc_cv_prog_cmp_skip=gnucompare
7656 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7657 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7658 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7661 gcc_cv_prog_cmp_skip=fastcompare
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7669 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7670 make_compare_target=$gcc_cv_prog_cmp_skip
7674 # See if we have the mktemp command.
7675 # Extract the first word of "mktemp", so it can be a program name with args.
7676 set dummy mktemp; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7682 if test -n "$have_mktemp_command"; then
7683 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_have_mktemp_command="yes"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7703 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7704 if test -n "$have_mktemp_command"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7706 $as_echo "$have_mktemp_command" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7714 # See if makeinfo has been installed and is modern enough
7715 # that we can use it.
7717 # Extract the first word of "makeinfo", so it can be a program name with args.
7718 set dummy makeinfo; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$MAKEINFO"; then
7725 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_MAKEINFO="makeinfo"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 MAKEINFO=$ac_cv_prog_MAKEINFO
7745 if test -n "$MAKEINFO"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7747 $as_echo "$MAKEINFO" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 if test -n "$MAKEINFO"; then
7755 # Found it, now check the version.
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7757 $as_echo_n "checking for modern makeinfo... " >&6; }
7758 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7761 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7762 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7764 case $ac_prog_version in
7765 '') gcc_cv_prog_makeinfo_modern=no;;
7766 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7767 *) gcc_cv_prog_makeinfo_modern=no;;
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7772 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7774 gcc_cv_prog_makeinfo_modern=no
7776 if test $gcc_cv_prog_makeinfo_modern = no; then
7777 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7780 if test $gcc_cv_prog_makeinfo_modern = no; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7782 *** Makeinfo is missing or too old.
7783 *** Info documentation will not be built." >&5
7784 $as_echo "$as_me: WARNING:
7785 *** Makeinfo is missing or too old.
7786 *** Info documentation will not be built." >&2;}
7793 # Is pod2man recent enough to regenerate manpages?
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7795 $as_echo_n "checking for recent Pod::Man... " >&6; }
7796 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7798 $as_echo "yes" >&6; }
7799 GENERATED_MANPAGES=generated-manpages
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_FLEX+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$FLEX"; then
7820 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_FLEX="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 FLEX=$ac_cv_prog_FLEX
7840 if test -n "$FLEX"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7842 $as_echo "$FLEX" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$FLEX" && break
7851 test -n "$FLEX" || FLEX="$MISSING flex"
7855 for ac_prog in bison
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_BISON+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$BISON"; then
7865 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_BISON="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 BISON=$ac_cv_prog_BISON
7885 if test -n "$BISON"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7887 $as_echo "$BISON" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$BISON" && break
7896 test -n "$BISON" || BISON="$MISSING bison"
7899 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7900 # check for build == host before using them.
7903 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7904 && test -d ../binutils ; then
7905 NM='${objdir}/../binutils/nm-new'
7907 # Extract the first word of "nm", so it can be a program name with args.
7908 set dummy nm; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_NM+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7914 if test -n "$NM"; then
7915 ac_cv_prog_NM="$NM" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7936 if test -n "$NM"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7938 $as_echo "$NM" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7948 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7949 && test -d ../binutils ; then
7950 AR='${objdir}/../binutils/ar'
7952 # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if test "${ac_cv_prog_AR+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7959 if test -n "$AR"; then
7960 ac_cv_prog_AR="$AR" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7981 if test -n "$AR"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7983 $as_echo "$AR" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7993 # --------------------
7994 # Checks for C headers
7995 # --------------------
7997 # Need to reject headers which give warnings, so that the -Werror bootstrap
7998 # works later. *sigh* This needs to come before all header checks.
8000 ac_c_preproc_warn_flag=yes
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003 $as_echo_n "checking for ANSI C header files... " >&6; }
8004 if test "${ac_cv_header_stdc+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 ac_cv_header_stdc=yes
8025 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037 $EGREP "memchr" >/dev/null 2>&1; then :
8040 ac_cv_header_stdc=no
8046 if test $ac_cv_header_stdc = yes; then
8047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054 $EGREP "free" >/dev/null 2>&1; then :
8057 ac_cv_header_stdc=no
8063 if test $ac_cv_header_stdc = yes; then
8064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065 if test "$cross_compiling" = yes; then :
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8072 #if ((' ' & 0x0FF) == 0x020)
8073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8076 # define ISLOWER(c) \
8077 (('a' <= (c) && (c) <= 'i') \
8078 || ('j' <= (c) && (c) <= 'r') \
8079 || ('s' <= (c) && (c) <= 'z'))
8080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8088 for (i = 0; i < 256; i++)
8089 if (XOR (islower (i), ISLOWER (i))
8090 || toupper (i) != TOUPPER (i))
8095 if ac_fn_c_try_run "$LINENO"; then :
8098 ac_cv_header_stdc=no
8100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101 conftest.$ac_objext conftest.beam conftest.$ac_ext
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107 $as_echo "$ac_cv_header_stdc" >&6; }
8108 if test $ac_cv_header_stdc = yes; then
8110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8115 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8116 if test "${ac_cv_header_time+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <sys/types.h>
8122 #include <sys/time.h>
8128 if ((struct tm *) 0)
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 ac_cv_header_time=yes
8137 ac_cv_header_time=no
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8142 $as_echo "$ac_cv_header_time" >&6; }
8143 if test $ac_cv_header_time = yes; then
8145 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8150 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8151 if test "${gcc_cv_header_string+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8157 #include <strings.h>
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167 gcc_cv_header_string=yes
8169 gcc_cv_header_string=no
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8174 $as_echo "$gcc_cv_header_string" >&6; }
8175 if test $gcc_cv_header_string = yes; then
8177 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8183 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 #include <sys/types.h>
8189 #include <sys/wait.h>
8191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 ac_cv_header_sys_wait_h=yes
8210 ac_cv_header_sys_wait_h=no
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8216 if test $ac_cv_header_sys_wait_h = yes; then
8218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8222 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8223 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8224 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8225 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8229 eval as_val=\$$as_ac_Header
8230 if test "x$as_val" = x""yes; then :
8231 cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8239 # Check for thread headers.
8240 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8241 if test "x$ac_cv_header_thread_h" = x""yes; then :
8247 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8248 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8255 # These tests can't be done till we know if we have limits.h.
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8257 $as_echo_n "checking for CHAR_BIT... " >&6; }
8258 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 #ifdef HAVE_LIMITS_H
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271 $EGREP "found" >/dev/null 2>&1; then :
8272 gcc_cv_decl_char_bit=yes
8274 gcc_cv_decl_char_bit=no
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8281 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8282 if test $gcc_cv_decl_char_bit = no; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8284 $as_echo_n "checking number of bits in a byte... " >&6; }
8285 if test "${gcc_cv_c_nbby+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8290 while test $i -lt 65; do
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8298 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8299 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306 gcc_cv_c_nbby=$i; break
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8315 $as_echo "$gcc_cv_c_nbby" >&6; }
8316 if test $gcc_cv_c_nbby = failed; then
8317 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8320 cat >>confdefs.h <<_ACEOF
8321 #define CHAR_BIT $gcc_cv_c_nbby
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8328 if test "${ac_cv_c_bigendian+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8331 ac_cv_c_bigendian=unknown
8332 # See if we're dealing with a universal compiler.
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8335 #ifndef __APPLE_CC__
8336 not a universal capable compiler
8341 if ac_fn_c_try_compile "$LINENO"; then :
8343 # Check for potential -arch flags. It is not universal unless
8344 # there are at least two -arch flags with different values.
8347 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8348 if test -n "$ac_prev"; then
8350 i?86 | x86_64 | ppc | ppc64)
8351 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8354 ac_cv_c_bigendian=universal
8360 elif test "x$ac_word" = "x-arch"; then
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 if test $ac_cv_c_bigendian = unknown; then
8367 # See if sys/param.h defines the BYTE_ORDER macro.
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 #include <sys/types.h>
8371 #include <sys/param.h>
8376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8377 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 # It does; now see whether it defined to BIG_ENDIAN or not.
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/param.h>
8396 #if BYTE_ORDER != BIG_ENDIAN
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 ac_cv_c_bigendian=yes
8407 ac_cv_c_bigendian=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 if test $ac_cv_c_bigendian = unknown; then
8414 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 # It does; now see whether it defined to _BIG_ENDIAN or not.
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448 ac_cv_c_bigendian=yes
8450 ac_cv_c_bigendian=no
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test $ac_cv_c_bigendian = unknown; then
8457 # Compile a test program.
8458 if test "$cross_compiling" = yes; then :
8459 # Try to guess by grepping values from an object file.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 short int ascii_mm[] =
8463 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8464 short int ascii_ii[] =
8465 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8466 int use_ascii (int i) {
8467 return ascii_mm[i] + ascii_ii[i];
8469 short int ebcdic_ii[] =
8470 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8471 short int ebcdic_mm[] =
8472 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8473 int use_ebcdic (int i) {
8474 return ebcdic_mm[i] + ebcdic_ii[i];
8481 return use_ascii (foo) == use_ebcdic (foo);
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8488 ac_cv_c_bigendian=yes
8490 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8491 if test "$ac_cv_c_bigendian" = unknown; then
8492 ac_cv_c_bigendian=no
8494 # finding both strings is unlikely to happen, but who knows?
8495 ac_cv_c_bigendian=unknown
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 $ac_includes_default
8508 /* Are we little or big endian? From Harbison&Steele. */
8512 char c[sizeof (long int)];
8515 return u.c[sizeof (long int) - 1] == 1;
8521 if ac_fn_c_try_run "$LINENO"; then :
8522 ac_cv_c_bigendian=no
8524 ac_cv_c_bigendian=yes
8526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8527 conftest.$ac_objext conftest.beam conftest.$ac_ext
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8533 $as_echo "$ac_cv_c_bigendian" >&6; }
8534 case $ac_cv_c_bigendian in #(
8536 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8546 as_fn_error "unknown endianness
8547 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8551 # ----------------------
8552 # Checks for C++ headers
8553 # ----------------------
8556 ac_cpp='$CXXCPP $CPPFLAGS'
8557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8562 if test -z "$CXXCPP"; then
8563 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 # Double quotes because CXXCPP needs to be expanded
8567 for CXXCPP in "$CXX -E" "/lib/cpp"
8570 for ac_cxx_preproc_warn_flag in '' yes
8572 # Use a header file that comes with gcc, so configuring glibc
8573 # with a fresh cross-compiler works.
8574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8575 # <limits.h> exists even on freestanding compilers.
8576 # On the NeXT, cc -E runs the code through the compiler's parser,
8577 # not just through cpp. "Syntax error" is here to catch this case.
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 # include <limits.h>
8583 # include <assert.h>
8587 if ac_fn_cxx_try_cpp "$LINENO"; then :
8590 # Broken: fails on valid input.
8593 rm -f conftest.err conftest.$ac_ext
8595 # OK, works on sane cases. Now check whether nonexistent headers
8596 # can be detected and how.
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 #include <ac_nonexistent.h>
8601 if ac_fn_cxx_try_cpp "$LINENO"; then :
8602 # Broken: success on invalid input.
8605 # Passes both tests.
8609 rm -f conftest.err conftest.$ac_ext
8612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8613 rm -f conftest.err conftest.$ac_ext
8614 if $ac_preproc_ok; then :
8619 ac_cv_prog_CXXCPP=$CXXCPP
8622 CXXCPP=$ac_cv_prog_CXXCPP
8624 ac_cv_prog_CXXCPP=$CXXCPP
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8627 $as_echo "$CXXCPP" >&6; }
8629 for ac_cxx_preproc_warn_flag in '' yes
8631 # Use a header file that comes with gcc, so configuring glibc
8632 # with a fresh cross-compiler works.
8633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634 # <limits.h> exists even on freestanding compilers.
8635 # On the NeXT, cc -E runs the code through the compiler's parser,
8636 # not just through cpp. "Syntax error" is here to catch this case.
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8640 # include <limits.h>
8642 # include <assert.h>
8646 if ac_fn_cxx_try_cpp "$LINENO"; then :
8649 # Broken: fails on valid input.
8652 rm -f conftest.err conftest.$ac_ext
8654 # OK, works on sane cases. Now check whether nonexistent headers
8655 # can be detected and how.
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658 #include <ac_nonexistent.h>
8660 if ac_fn_cxx_try_cpp "$LINENO"; then :
8661 # Broken: success on invalid input.
8664 # Passes both tests.
8668 rm -f conftest.err conftest.$ac_ext
8671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8672 rm -f conftest.err conftest.$ac_ext
8673 if $ac_preproc_ok; then :
8676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8679 See \`config.log' for more details." >&5
8680 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8681 See \`config.log' for more details." >&2;}; }
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692 ac_cpp='$CXXCPP $CPPFLAGS'
8693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 for ac_header in unordered_map
8702 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8703 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_UNORDERED_MAP 1
8711 for ac_header in tr1/unordered_map
8713 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8714 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_TR1_UNORDERED_MAP 1
8722 for ac_header in ext/hash_map
8724 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8725 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_EXT_HASH_MAP 1
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8746 # These libraries may be used by collect2.
8747 # We may need a special search path to get them linked.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8749 $as_echo_n "checking for collect2 libraries... " >&6; }
8750 if test "${gcc_cv_collect2_libs+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8754 for libs in '' -lld -lmld \
8755 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8756 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8762 /* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 gcc_cv_collect2_libs="$libs"; break
8780 rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8787 $as_echo "$gcc_cv_collect2_libs" >&6; }
8788 case $gcc_cv_collect2_libs in
8790 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8794 # When building Ada code on Alpha, we need exc_resume which is usually in
8795 # -lexc. So test for it.
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8799 $as_echo_n "checking for library containing exc_resume... " >&6; }
8800 if test "${ac_cv_search_exc_resume+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8803 ac_func_search_save_LIBS=$LIBS
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8817 return exc_resume ();
8822 for ac_lib in '' exc; do
8823 if test -z "$ac_lib"; then
8824 ac_res="none required"
8827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8829 if ac_fn_c_try_link "$LINENO"; then :
8830 ac_cv_search_exc_resume=$ac_res
8832 rm -f core conftest.err conftest.$ac_objext \
8834 if test "${ac_cv_search_exc_resume+set}" = set; then :
8838 if test "${ac_cv_search_exc_resume+set}" = set; then :
8841 ac_cv_search_exc_resume=no
8844 LIBS=$ac_func_search_save_LIBS
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8847 $as_echo "$ac_cv_search_exc_resume" >&6; }
8848 ac_res=$ac_cv_search_exc_resume
8849 if test "$ac_res" != no; then :
8850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8862 $as_echo_n "checking for library containing kstat_open... " >&6; }
8863 if test "${ac_cv_search_kstat_open+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_func_search_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8880 return kstat_open ();
8885 for ac_lib in '' kstat; do
8886 if test -z "$ac_lib"; then
8887 ac_res="none required"
8890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 ac_cv_search_kstat_open=$ac_res
8895 rm -f core conftest.err conftest.$ac_objext \
8897 if test "${ac_cv_search_kstat_open+set}" = set; then :
8901 if test "${ac_cv_search_kstat_open+set}" = set; then :
8904 ac_cv_search_kstat_open=no
8907 LIBS=$ac_func_search_save_LIBS
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8910 $as_echo "$ac_cv_search_kstat_open" >&6; }
8911 ac_res=$ac_cv_search_kstat_open
8912 if test "$ac_res" != no; then :
8913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8917 EXTRA_GCC_LIBS="$LIBS"
8921 # Some systems put ldexp and frexp in libm instead of libc; assume
8922 # they're both in the same place. jcf-dump needs them.
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8926 $as_echo_n "checking for library containing ldexp... " >&6; }
8927 if test "${ac_cv_search_ldexp+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8949 for ac_lib in '' m; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 ac_cv_search_ldexp=$ac_res
8959 rm -f core conftest.err conftest.$ac_objext \
8961 if test "${ac_cv_search_ldexp+set}" = set; then :
8965 if test "${ac_cv_search_ldexp+set}" = set; then :
8968 ac_cv_search_ldexp=no
8971 LIBS=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8974 $as_echo "$ac_cv_search_ldexp" >&6; }
8975 ac_res=$ac_cv_search_ldexp
8976 if test "$ac_res" != no; then :
8977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 # Use <inttypes.h> only if it exists,
8986 # doesn't clash with <sys/types.h>, and declares intmax_t.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8988 $as_echo_n "checking for inttypes.h... " >&6; }
8989 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 #include <sys/types.h>
8995 #include <inttypes.h>
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 gcc_cv_header_inttypes_h=yes
9007 gcc_cv_header_inttypes_h=no
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9013 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9014 if test $gcc_cv_header_inttypes_h = yes; then
9016 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9022 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9023 sysconf strsignal getrusage nl_langinfo \
9024 gettimeofday mbstowcs wcswidth mmap setlocale \
9025 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 madvise
9027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9029 eval as_val=\$$as_ac_var
9030 if test "x$as_val" = x""yes; then :
9031 cat >>confdefs.h <<_ACEOF
9032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9039 if test x$ac_cv_func_mbstowcs = xyes; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9041 $as_echo_n "checking whether mbstowcs works... " >&6; }
9042 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 if test "$cross_compiling" = yes; then :
9046 gcc_cv_func_mbstowcs_works=yes
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9057 if ac_fn_c_try_run "$LINENO"; then :
9058 gcc_cv_func_mbstowcs_works=yes
9060 gcc_cv_func_mbstowcs_works=no
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063 conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9068 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9069 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9071 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9076 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9077 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9087 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9088 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define caddr_t char *
9100 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9101 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9102 gcc_header_sys_mman_h=yes
9104 gcc_header_sys_mman_h=no
9107 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9108 if test "x$ac_cv_func_mmap" = x""yes; then :
9114 if test "$gcc_header_sys_mman_h" != yes \
9115 || test "$gcc_func_mmap" != yes; then
9116 gcc_cv_func_mmap_file=no
9117 gcc_cv_func_mmap_dev_zero=no
9118 gcc_cv_func_mmap_anon=no
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9121 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9122 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9125 # Add a system to this blacklist if
9126 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9127 # memory area containing the same data that you'd get if you applied
9128 # read() to the same fd. The only system known to have a problem here
9129 # is VMS, where text files have record structure.
9132 gcc_cv_func_mmap_file=no ;;
9134 gcc_cv_func_mmap_file=yes;;
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9138 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9140 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9141 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9144 # Add a system to this blacklist if it has mmap() but /dev/zero
9145 # does not exist, or if mmapping /dev/zero does not give anonymous
9146 # zeroed pages with both the following properties:
9147 # 1. If you map N consecutive pages in with one call, and then
9148 # unmap any subset of those pages, the pages that were not
9149 # explicitly unmapped remain accessible.
9150 # 2. If you map two adjacent blocks of memory and then unmap them
9151 # both at once, they must both go away.
9152 # Systems known to be in this category are Windows (all variants),
9155 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9156 gcc_cv_func_mmap_dev_zero=no ;;
9158 gcc_cv_func_mmap_dev_zero=yes;;
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9162 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9164 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9166 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9167 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173 #include <sys/mman.h>
9176 #ifndef MAP_ANONYMOUS
9177 #define MAP_ANONYMOUS MAP_ANON
9183 int n = MAP_ANONYMOUS;
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 gcc_cv_decl_map_anon=yes
9191 gcc_cv_decl_map_anon=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9196 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9198 if test $gcc_cv_decl_map_anon = no; then
9199 gcc_cv_func_mmap_anon=no
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9202 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9203 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9207 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9208 # doesn't give anonymous zeroed pages with the same properties listed
9209 # above for use of /dev/zero.
9210 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9212 vms* | cygwin* | pe | mingw* | sco* | udk* )
9213 gcc_cv_func_mmap_anon=no ;;
9215 gcc_cv_func_mmap_anon=yes;;
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9219 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9223 if test $gcc_cv_func_mmap_file = yes; then
9225 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9228 if test $gcc_cv_func_mmap_dev_zero = yes; then
9230 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9233 if test $gcc_cv_func_mmap_anon = yes; then
9235 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9242 # Under VMS, vfork works very differently than on Unix. The standard test
9243 # won't work, and it isn't easily adaptable. It makes more sense to
9245 ac_cv_func_vfork_works=yes
9248 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9249 if test "x$ac_cv_type_pid_t" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9259 for ac_header in vfork.h
9261 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9262 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_VFORK_H 1
9270 for ac_func in fork vfork
9272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9274 eval as_val=\$$as_ac_var
9275 if test "x$as_val" = x""yes; then :
9276 cat >>confdefs.h <<_ACEOF
9277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9283 if test "x$ac_cv_func_fork" = xyes; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9285 $as_echo_n "checking for working fork... " >&6; }
9286 if test "${ac_cv_func_fork_works+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 if test "$cross_compiling" = yes; then :
9290 ac_cv_func_fork_works=cross
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 $ac_includes_default
9299 /* By Ruediger Kuhlmann. */
9306 if ac_fn_c_try_run "$LINENO"; then :
9307 ac_cv_func_fork_works=yes
9309 ac_cv_func_fork_works=no
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312 conftest.$ac_objext conftest.beam conftest.$ac_ext
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9317 $as_echo "$ac_cv_func_fork_works" >&6; }
9320 ac_cv_func_fork_works=$ac_cv_func_fork
9322 if test "x$ac_cv_func_fork_works" = xcross; then
9324 *-*-amigaos* | *-*-msdosdjgpp*)
9325 # Override, as these systems have only a dummy fork() stub
9326 ac_cv_func_fork_works=no
9329 ac_cv_func_fork_works=yes
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9333 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9335 ac_cv_func_vfork_works=$ac_cv_func_vfork
9336 if test "x$ac_cv_func_vfork" = xyes; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9338 $as_echo_n "checking for working vfork... " >&6; }
9339 if test "${ac_cv_func_vfork_works+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9342 if test "$cross_compiling" = yes; then :
9343 ac_cv_func_vfork_works=cross
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 /* Thanks to Paul Eggert for this test. */
9348 $ac_includes_default
9349 #include <sys/wait.h>
9353 /* On some sparc systems, changes by the child to local and incoming
9354 argument registers are propagated back to the parent. The compiler
9355 is told about this with #include <vfork.h>, but some compilers
9356 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9357 static variable whose address is put into a register that is
9358 clobbered by the vfork. */
9361 sparc_address_test (int arg)
9363 sparc_address_test (arg) int arg;
9384 pid_t parent = getpid ();
9387 sparc_address_test (0);
9392 /* Here is another test for sparc vfork register problems. This
9393 test uses lots of local variables, at least as many local
9394 variables as main has allocated so far including compiler
9395 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9396 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9397 reuse the register of parent for one of the local variables,
9398 since it will think that parent can't possibly be used any more
9399 in this routine. Assigning to the local variable will thus
9400 munge parent in the parent process. */
9402 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9403 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9404 /* Convince the compiler that p..p7 are live; otherwise, it might
9405 use the same hardware register for all 8 local variables. */
9406 if (p != p1 || p != p2 || p != p3 || p != p4
9407 || p != p5 || p != p6 || p != p7)
9410 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9411 from child file descriptors. If the child closes a descriptor
9412 before it execs or exits, this munges the parent's descriptor
9413 as well. Test for this by closing stdout in the child. */
9414 _exit(close(fileno(stdout)) != 0);
9419 while (wait(&status) != child)
9422 /* Was there some problem with vforking? */
9425 /* Did the child fail? (This shouldn't happen.) */
9428 /* Did the vfork/compiler bug occur? */
9429 || parent != getpid()
9431 /* Did the file descriptor bug occur? */
9432 || fstat(fileno(stdout), &st) != 0
9437 if ac_fn_c_try_run "$LINENO"; then :
9438 ac_cv_func_vfork_works=yes
9440 ac_cv_func_vfork_works=no
9442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443 conftest.$ac_objext conftest.beam conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9448 $as_echo "$ac_cv_func_vfork_works" >&6; }
9451 if test "x$ac_cv_func_fork_works" = xcross; then
9452 ac_cv_func_vfork_works=$ac_cv_func_vfork
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9454 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9457 if test "x$ac_cv_func_vfork_works" = xyes; then
9459 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9463 $as_echo "#define vfork fork" >>confdefs.h
9466 if test "x$ac_cv_func_fork_works" = xyes; then
9468 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9473 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9474 # iconv() prototype.
9476 if test "X$prefix" = "XNONE"; then
9477 acl_final_prefix="$ac_default_prefix"
9479 acl_final_prefix="$prefix"
9481 if test "X$exec_prefix" = "XNONE"; then
9482 acl_final_exec_prefix='${prefix}'
9484 acl_final_exec_prefix="$exec_prefix"
9486 acl_save_prefix="$prefix"
9487 prefix="$acl_final_prefix"
9488 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489 prefix="$acl_save_prefix"
9492 # Check whether --with-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then :
9494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502 echo "#! /bin/sh" >conf$$.sh
9503 echo "exit 0" >>conf$$.sh
9505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9513 if test "$GCC" = yes; then
9514 # Check if gcc -print-prog-name=ld gives a path.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9516 $as_echo_n "checking for ld used by GCC... " >&6; }
9519 # gcc leaves a trailing carriage return which upsets mingw
9520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9525 # Accept absolute paths.
9526 [\\/]* | [A-Za-z]:[\\/]*)
9527 re_direlt='/[^/][^/]*/\.\./'
9528 # Canonicalize the path of ld
9529 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9533 test -z "$LD" && LD="$ac_prog"
9536 # If it fails, then pretend we aren't using GCC.
9540 # If it is relative, then search for the first ld in PATH.
9544 elif test "$with_gnu_ld" = yes; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9546 $as_echo_n "checking for GNU ld... " >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9549 $as_echo_n "checking for non-GNU ld... " >&6; }
9551 if test "${acl_cv_path_LD+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 if test -z "$LD"; then
9555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556 for ac_dir in $PATH; do
9557 test -z "$ac_dir" && ac_dir=.
9558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559 acl_cv_path_LD="$ac_dir/$ac_prog"
9560 # Check to see if the program is GNU ld. I'd rather use --version,
9561 # but apparently some GNU ld's only accept -v.
9562 # Break only if it was the GNU/non-GNU ld that we prefer.
9563 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564 test "$with_gnu_ld" != no && break
9566 test "$with_gnu_ld" != yes && break
9572 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9579 $as_echo "$LD" >&6; }
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9587 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9590 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9591 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9592 acl_cv_prog_gnu_ld=yes
9594 acl_cv_prog_gnu_ld=no
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9598 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9599 with_gnu_ld=$acl_cv_prog_gnu_ld
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9604 $as_echo_n "checking for shared library run path origin... " >&6; }
9605 if test "${acl_cv_rpath+set}" = set; then :
9606 $as_echo_n "(cached) " >&6
9609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9617 $as_echo "$acl_cv_rpath" >&6; }
9619 libext="$acl_cv_libext"
9620 shlibext="$acl_cv_shlibext"
9621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9623 hardcode_direct="$acl_cv_hardcode_direct"
9624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9625 # Check whether --enable-rpath was given.
9626 if test "${enable_rpath+set}" = set; then :
9627 enableval=$enable_rpath; :
9641 acl_save_prefix="$prefix"
9642 prefix="$acl_final_prefix"
9643 acl_save_exec_prefix="$exec_prefix"
9644 exec_prefix="$acl_final_exec_prefix"
9646 eval additional_includedir=\"$includedir\"
9647 eval additional_libdir=\"$libdir\"
9649 exec_prefix="$acl_save_exec_prefix"
9650 prefix="$acl_save_prefix"
9653 # Check whether --with-libiconv-prefix was given.
9654 if test "${with_libiconv_prefix+set}" = set; then :
9655 withval=$with_libiconv_prefix;
9656 if test "X$withval" = "Xno"; then
9659 if test "X$withval" = "X"; then
9661 acl_save_prefix="$prefix"
9662 prefix="$acl_final_prefix"
9663 acl_save_exec_prefix="$exec_prefix"
9664 exec_prefix="$acl_final_exec_prefix"
9666 eval additional_includedir=\"$includedir\"
9667 eval additional_libdir=\"$libdir\"
9669 exec_prefix="$acl_save_exec_prefix"
9670 prefix="$acl_save_prefix"
9673 additional_includedir="$withval/include"
9674 additional_libdir="$withval/lib"
9685 names_already_handled=
9686 names_next_round='iconv '
9687 while test -n "$names_next_round"; do
9688 names_this_round="$names_next_round"
9690 for name in $names_this_round; do
9692 for n in $names_already_handled; do
9693 if test "$n" = "$name"; then
9698 if test -z "$already_handled"; then
9699 names_already_handled="$names_already_handled $name"
9700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9701 eval value=\"\$HAVE_LIB$uppername\"
9702 if test -n "$value"; then
9703 if test "$value" = yes; then
9704 eval value=\"\$LIB$uppername\"
9705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9706 eval value=\"\$LTLIB$uppername\"
9707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9716 if test $use_additional = yes; then
9717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9718 found_dir="$additional_libdir"
9719 found_so="$additional_libdir/lib$name.$shlibext"
9720 if test -f "$additional_libdir/lib$name.la"; then
9721 found_la="$additional_libdir/lib$name.la"
9724 if test -f "$additional_libdir/lib$name.$libext"; then
9725 found_dir="$additional_libdir"
9726 found_a="$additional_libdir/lib$name.$libext"
9727 if test -f "$additional_libdir/lib$name.la"; then
9728 found_la="$additional_libdir/lib$name.la"
9733 if test "X$found_dir" = "X"; then
9734 for x in $LDFLAGS $LTLIBICONV; do
9736 acl_save_prefix="$prefix"
9737 prefix="$acl_final_prefix"
9738 acl_save_exec_prefix="$exec_prefix"
9739 exec_prefix="$acl_final_exec_prefix"
9741 exec_prefix="$acl_save_exec_prefix"
9742 prefix="$acl_save_prefix"
9746 dir=`echo "X$x" | sed -e 's/^X-L//'`
9747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9749 found_so="$dir/lib$name.$shlibext"
9750 if test -f "$dir/lib$name.la"; then
9751 found_la="$dir/lib$name.la"
9754 if test -f "$dir/lib$name.$libext"; then
9756 found_a="$dir/lib$name.$libext"
9757 if test -f "$dir/lib$name.la"; then
9758 found_la="$dir/lib$name.la"
9764 if test "X$found_dir" != "X"; then
9769 if test "X$found_dir" != "X"; then
9770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9771 if test "X$found_so" != "X"; then
9772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9776 for x in $ltrpathdirs; do
9777 if test "X$x" = "X$found_dir"; then
9782 if test -z "$haveit"; then
9783 ltrpathdirs="$ltrpathdirs $found_dir"
9785 if test "$hardcode_direct" = yes; then
9786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9791 for x in $rpathdirs; do
9792 if test "X$x" = "X$found_dir"; then
9797 if test -z "$haveit"; then
9798 rpathdirs="$rpathdirs $found_dir"
9802 for x in $LDFLAGS $LIBICONV; do
9804 acl_save_prefix="$prefix"
9805 prefix="$acl_final_prefix"
9806 acl_save_exec_prefix="$exec_prefix"
9807 exec_prefix="$acl_final_exec_prefix"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9812 if test "X$x" = "X-L$found_dir"; then
9817 if test -z "$haveit"; then
9818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9820 if test "$hardcode_minus_L" != no; then
9821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9829 if test "X$found_a" != "X"; then
9830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9835 additional_includedir=
9836 case "$found_dir" in
9838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9839 additional_includedir="$basedir/include"
9842 if test "X$additional_includedir" != "X"; then
9843 if test "X$additional_includedir" != "X/usr/include"; then
9845 if test "X$additional_includedir" = "X/usr/local/include"; then
9846 if test -n "$GCC"; then
9848 linux*) haveit=yes;;
9852 if test -z "$haveit"; then
9853 for x in $CPPFLAGS $INCICONV; do
9855 acl_save_prefix="$prefix"
9856 prefix="$acl_final_prefix"
9857 acl_save_exec_prefix="$exec_prefix"
9858 exec_prefix="$acl_final_exec_prefix"
9860 exec_prefix="$acl_save_exec_prefix"
9861 prefix="$acl_save_prefix"
9863 if test "X$x" = "X-I$additional_includedir"; then
9868 if test -z "$haveit"; then
9869 if test -d "$additional_includedir"; then
9870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9876 if test -n "$found_la"; then
9877 save_libdir="$libdir"
9879 */* | *\\*) . "$found_la" ;;
9880 *) . "./$found_la" ;;
9882 libdir="$save_libdir"
9883 for dep in $dependency_libs; do
9886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9887 if test "X$additional_libdir" != "X/usr/lib"; then
9889 if test "X$additional_libdir" = "X/usr/local/lib"; then
9890 if test -n "$GCC"; then
9892 linux*) haveit=yes;;
9896 if test -z "$haveit"; then
9898 for x in $LDFLAGS $LIBICONV; do
9900 acl_save_prefix="$prefix"
9901 prefix="$acl_final_prefix"
9902 acl_save_exec_prefix="$exec_prefix"
9903 exec_prefix="$acl_final_exec_prefix"
9905 exec_prefix="$acl_save_exec_prefix"
9906 prefix="$acl_save_prefix"
9908 if test "X$x" = "X-L$additional_libdir"; then
9913 if test -z "$haveit"; then
9914 if test -d "$additional_libdir"; then
9915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9919 for x in $LDFLAGS $LTLIBICONV; do
9921 acl_save_prefix="$prefix"
9922 prefix="$acl_final_prefix"
9923 acl_save_exec_prefix="$exec_prefix"
9924 exec_prefix="$acl_final_exec_prefix"
9926 exec_prefix="$acl_save_exec_prefix"
9927 prefix="$acl_save_prefix"
9929 if test "X$x" = "X-L$additional_libdir"; then
9934 if test -z "$haveit"; then
9935 if test -d "$additional_libdir"; then
9936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9944 if test "$enable_rpath" != no; then
9946 for x in $rpathdirs; do
9947 if test "X$x" = "X$dir"; then
9952 if test -z "$haveit"; then
9953 rpathdirs="$rpathdirs $dir"
9956 for x in $ltrpathdirs; do
9957 if test "X$x" = "X$dir"; then
9962 if test -z "$haveit"; then
9963 ltrpathdirs="$ltrpathdirs $dir"
9968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9988 if test "X$rpathdirs" != "X"; then
9989 if test -n "$hardcode_libdir_separator"; then
9991 for found_dir in $rpathdirs; do
9992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9994 acl_save_libdir="$libdir"
9996 eval flag=\"$hardcode_libdir_flag_spec\"
9997 libdir="$acl_save_libdir"
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10000 for found_dir in $rpathdirs; do
10001 acl_save_libdir="$libdir"
10002 libdir="$found_dir"
10003 eval flag=\"$hardcode_libdir_flag_spec\"
10004 libdir="$acl_save_libdir"
10005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10009 if test "X$ltrpathdirs" != "X"; then
10010 for found_dir in $ltrpathdirs; do
10011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10016 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10028 am_save_CPPFLAGS="$CPPFLAGS"
10030 for element in $INCICONV; do
10032 for x in $CPPFLAGS; do
10034 acl_save_prefix="$prefix"
10035 prefix="$acl_final_prefix"
10036 acl_save_exec_prefix="$exec_prefix"
10037 exec_prefix="$acl_final_exec_prefix"
10039 exec_prefix="$acl_save_exec_prefix"
10040 prefix="$acl_save_prefix"
10042 if test "X$x" = "X$element"; then
10047 if test -z "$haveit"; then
10048 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10054 $as_echo_n "checking for iconv... " >&6; }
10055 if test "${am_cv_func_iconv+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10059 am_cv_func_iconv="no, consider installing GNU libiconv"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <stdlib.h>
10068 iconv_t cd = iconv_open("","");
10069 iconv(cd,NULL,NULL,NULL,NULL);
10075 if ac_fn_cxx_try_link "$LINENO"; then :
10076 am_cv_func_iconv=yes
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 if test "$am_cv_func_iconv" != yes; then
10081 am_save_LIBS="$LIBS"
10082 LIBS="$LIBS $LIBICONV"
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 #include <stdlib.h>
10090 iconv_t cd = iconv_open("","");
10091 iconv(cd,NULL,NULL,NULL,NULL);
10097 if ac_fn_cxx_try_link "$LINENO"; then :
10098 am_cv_lib_iconv=yes
10099 am_cv_func_iconv=yes
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS="$am_save_LIBS"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10108 $as_echo "$am_cv_func_iconv" >&6; }
10109 if test "$am_cv_func_iconv" = yes; then
10111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10114 if test "$am_cv_lib_iconv" = yes; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10116 $as_echo_n "checking how to link with libiconv... " >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10118 $as_echo "$LIBICONV" >&6; }
10120 CPPFLAGS="$am_save_CPPFLAGS"
10127 if test "$am_cv_func_iconv" = yes; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10129 $as_echo_n "checking for iconv declaration... " >&6; }
10130 if test "${am_cv_proto_iconv+set}" = set; then :
10131 $as_echo_n "(cached) " >&6
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 #include <stdlib.h>
10143 #if defined(__STDC__) || defined(__cplusplus)
10144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10157 if ac_fn_cxx_try_compile "$LINENO"; then :
10158 am_cv_proto_iconv_arg1=""
10160 am_cv_proto_iconv_arg1="const"
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 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);"
10166 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10168 }$am_cv_proto_iconv" >&5
10170 }$am_cv_proto_iconv" >&6; }
10172 cat >>confdefs.h <<_ACEOF
10173 #define ICONV_CONST $am_cv_proto_iconv_arg1
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10190 am_save_CPPFLAGS="$CPPFLAGS"
10192 for element in $INCICONV; do
10194 for x in $CPPFLAGS; do
10196 acl_save_prefix="$prefix"
10197 prefix="$acl_final_prefix"
10198 acl_save_exec_prefix="$exec_prefix"
10199 exec_prefix="$acl_final_exec_prefix"
10201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10204 if test "X$x" = "X$element"; then
10209 if test -z "$haveit"; then
10210 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10216 $as_echo_n "checking for iconv... " >&6; }
10217 if test "${am_cv_func_iconv+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10221 am_cv_func_iconv="no, consider installing GNU libiconv"
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 #include <stdlib.h>
10230 iconv_t cd = iconv_open("","");
10231 iconv(cd,NULL,NULL,NULL,NULL);
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 am_cv_func_iconv=yes
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 if test "$am_cv_func_iconv" != yes; then
10243 am_save_LIBS="$LIBS"
10244 LIBS="$LIBS $LIBICONV"
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10247 #include <stdlib.h>
10252 iconv_t cd = iconv_open("","");
10253 iconv(cd,NULL,NULL,NULL,NULL);
10259 if ac_fn_c_try_link "$LINENO"; then :
10260 am_cv_lib_iconv=yes
10261 am_cv_func_iconv=yes
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS="$am_save_LIBS"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10270 $as_echo "$am_cv_func_iconv" >&6; }
10271 if test "$am_cv_func_iconv" = yes; then
10273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10276 if test "$am_cv_lib_iconv" = yes; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10278 $as_echo_n "checking how to link with libiconv... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10280 $as_echo "$LIBICONV" >&6; }
10282 CPPFLAGS="$am_save_CPPFLAGS"
10289 if test "$am_cv_func_iconv" = yes; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10291 $as_echo_n "checking for iconv declaration... " >&6; }
10292 if test "${am_cv_proto_iconv+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10299 #include <stdlib.h>
10305 #if defined(__STDC__) || defined(__cplusplus)
10306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320 am_cv_proto_iconv_arg1=""
10322 am_cv_proto_iconv_arg1="const"
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 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);"
10328 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10330 }$am_cv_proto_iconv" >&5
10332 }$am_cv_proto_iconv" >&6; }
10334 cat >>confdefs.h <<_ACEOF
10335 #define ICONV_CONST $am_cv_proto_iconv_arg1
10342 # Until we have in-tree GNU iconv:
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10349 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #include <locale.h>
10363 if ac_fn_c_try_link "$LINENO"; then :
10364 am_cv_val_LC_MESSAGES=yes
10366 am_cv_val_LC_MESSAGES=no
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10373 if test $am_cv_val_LC_MESSAGES = yes; then
10375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10383 if test "${am_cv_langinfo_codeset+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #include <langinfo.h>
10392 char* cs = nl_langinfo(CODESET);
10397 if ac_fn_c_try_link "$LINENO"; then :
10398 am_cv_langinfo_codeset=yes
10400 am_cv_langinfo_codeset=no
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10407 $as_echo "$am_cv_langinfo_codeset" >&6; }
10408 if test $am_cv_langinfo_codeset = yes; then
10410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10415 # We will need to find libiberty.h and ansidecl.h
10416 saved_CFLAGS="$CFLAGS"
10417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10418 saved_CXXFLAGS="$CXXFLAGS"
10419 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10420 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10421 strsignal strstr strverscmp \
10422 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10423 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
10425 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10427 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10428 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10429 $as_echo_n "(cached) " >&6
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10434 #define $ac_tr_decl 1
10436 #include "ansidecl.h"
10437 #include "system.h"
10443 char *(*pfn) = (char *(*)) $ac_func ;
10449 if ac_fn_c_try_compile "$LINENO"; then :
10450 eval "gcc_cv_have_decl_$ac_func=yes"
10452 eval "gcc_cv_have_decl_$ac_func=no"
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10459 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10460 #define $ac_tr_decl 1
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10466 #define $ac_tr_decl 0
10474 for ac_func in getrlimit setrlimit getrusage
10476 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10478 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10479 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10480 $as_echo_n "(cached) " >&6
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10485 #define $ac_tr_decl 1
10487 #include "ansidecl.h"
10488 #include "system.h"
10489 #ifdef HAVE_SYS_RESOURCE_H
10490 #include <sys/resource.h>
10498 char *(*pfn) = (char *(*)) $ac_func ;
10504 if ac_fn_c_try_compile "$LINENO"; then :
10505 eval "gcc_cv_have_decl_$ac_func=yes"
10507 eval "gcc_cv_have_decl_$ac_func=no"
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10514 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10515 #define $ac_tr_decl 1
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10521 #define $ac_tr_decl 0
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10532 #include "ansidecl.h"
10533 #include "system.h"
10534 #ifdef HAVE_SYS_RESOURCE_H
10535 #include <sys/resource.h>
10546 if ac_fn_c_try_compile "$LINENO"; then :
10550 $as_echo "#define rlim_t long" >>confdefs.h
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10556 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10557 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10558 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10559 for ac_func in ldgetname
10561 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10563 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10564 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10565 $as_echo_n "(cached) " >&6
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10570 #define $ac_tr_decl 1
10572 #include "ansidecl.h"
10573 #include "system.h"
10574 #ifdef HAVE_LDFCN_H
10585 char *(*pfn) = (char *(*)) $ac_func ;
10591 if ac_fn_c_try_compile "$LINENO"; then :
10592 eval "gcc_cv_have_decl_$ac_func=yes"
10594 eval "gcc_cv_have_decl_$ac_func=no"
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 1
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10608 #define $ac_tr_decl 0
10616 for ac_func in times
10618 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10620 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10621 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10622 $as_echo_n "(cached) " >&6
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 #define $ac_tr_decl 1
10629 #include "ansidecl.h"
10630 #include "system.h"
10631 #ifdef HAVE_SYS_TIMES_H
10632 #include <sys/times.h>
10640 char *(*pfn) = (char *(*)) $ac_func ;
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647 eval "gcc_cv_have_decl_$ac_func=yes"
10649 eval "gcc_cv_have_decl_$ac_func=no"
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10656 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10657 #define $ac_tr_decl 1
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10663 #define $ac_tr_decl 0
10671 for ac_func in sigaltstack
10673 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677 $as_echo_n "(cached) " >&6
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 #define $ac_tr_decl 1
10684 #include "ansidecl.h"
10685 #include "system.h"
10686 #include <signal.h>
10693 char *(*pfn) = (char *(*)) $ac_func ;
10699 if ac_fn_c_try_compile "$LINENO"; then :
10700 eval "gcc_cv_have_decl_$ac_func=yes"
10702 eval "gcc_cv_have_decl_$ac_func=no"
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10710 #define $ac_tr_decl 1
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10716 #define $ac_tr_decl 0
10724 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10726 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10728 ac_cpp='$CXXCPP $CPPFLAGS'
10729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10733 for ac_func in madvise
10735 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10737 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10738 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10739 $as_echo_n "(cached) " >&6
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 #define $ac_tr_decl 1
10746 #include "ansidecl.h"
10747 #include "system.h"
10754 char *(*pfn) = (char *(*)) $ac_func ;
10760 if ac_fn_cxx_try_compile "$LINENO"; then :
10761 eval "gcc_cv_have_decl_$ac_func=yes"
10763 eval "gcc_cv_have_decl_$ac_func=no"
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10771 #define $ac_tr_decl 1
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10777 #define $ac_tr_decl 0
10785 ac_cpp='$CPP $CPPFLAGS'
10786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10791 for ac_func in madvise
10793 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10795 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10796 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #define $ac_tr_decl 1
10804 #include "ansidecl.h"
10805 #include "system.h"
10812 char *(*pfn) = (char *(*)) $ac_func ;
10818 if ac_fn_c_try_compile "$LINENO"; then :
10819 eval "gcc_cv_have_decl_$ac_func=yes"
10821 eval "gcc_cv_have_decl_$ac_func=no"
10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10828 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10829 #define $ac_tr_decl 1
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10835 #define $ac_tr_decl 0
10845 # More time-related stuff.
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10847 $as_echo_n "checking for struct tms... " >&6; }
10848 if test "${ac_cv_struct_tms+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 #include "ansidecl.h"
10856 #include "system.h"
10857 #ifdef HAVE_SYS_TIMES_H
10858 #include <sys/times.h>
10869 if ac_fn_c_try_compile "$LINENO"; then :
10870 ac_cv_struct_tms=yes
10872 ac_cv_struct_tms=no
10874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10877 $as_echo "$ac_cv_struct_tms" >&6; }
10878 if test $ac_cv_struct_tms = yes; then
10880 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10884 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10885 # revisit after autoconf 2.50.
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10887 $as_echo_n "checking for clock_t... " >&6; }
10888 if test "${gcc_cv_type_clock_t+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #include "ansidecl.h"
10896 #include "system.h"
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907 gcc_cv_type_clock_t=yes
10909 gcc_cv_type_clock_t=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10914 $as_echo "$gcc_cv_type_clock_t" >&6; }
10915 if test $gcc_cv_type_clock_t = yes; then
10917 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10921 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10922 CFLAGS="$saved_CFLAGS"
10923 CXXFLAGS="$saved_CXXFLAGS"
10925 # Check whether --enable-initfini-array was given.
10926 if test "${enable_initfini_array+set}" = set; then :
10927 enableval=$enable_initfini_array;
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10931 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10932 if test "${gcc_cv_initfini_array+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10935 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10936 if test "$cross_compiling" = yes; then :
10937 gcc_cv_initfini_array=no
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10943 #error Not an ELF OS
10946 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10947 if it can be used. */
10949 int main (void) { return x; }
10950 int foo (void) { x = 0; }
10951 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10953 extern void abort ();
10963 void (*const init_array1005) ()
10964 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10972 void (*const fini_array1005) ()
10973 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10983 void (*const ctors1007) ()
10984 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10993 void (*const dtors1007) ()
10994 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11004 void (*const init_array65530) ()
11005 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11010 if (count != 65530)
11014 void (*const fini_array65530) ()
11015 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11021 if (count != 65530)
11025 void (*const ctors65535) ()
11026 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11031 if (count != 65535)
11035 void (*const dtors65535) ()
11036 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11042 if (count != 65535)
11049 if ac_fn_c_try_run "$LINENO"; then :
11050 gcc_cv_initfini_array=yes
11052 gcc_cv_initfini_array=no
11054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11055 conftest.$ac_objext conftest.beam conftest.$ac_ext
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11060 $as_echo_n "checking cross compile... guessing... " >&6; }
11061 gcc_cv_initfini_array=no
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11065 $as_echo "$gcc_cv_initfini_array" >&6; }
11066 enable_initfini_array=$gcc_cv_initfini_array
11070 if test $enable_initfini_array = yes; then
11072 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11076 # mkdir takes a single argument on some systems.
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11078 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11079 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 #include <sys/types.h>
11086 #ifdef HAVE_SYS_STAT_H
11087 # include <sys/stat.h>
11089 #ifdef HAVE_UNISTD_H
11090 # include <unistd.h>
11092 #ifdef HAVE_DIRECT_H
11093 # include <direct.h>
11103 if ac_fn_c_try_compile "$LINENO"; then :
11104 gcc_cv_mkdir_takes_one_arg=no
11106 gcc_cv_mkdir_takes_one_arg=yes
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11111 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11112 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11114 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11125 # With Setjmp/Longjmp based exception handling.
11126 # Check whether --enable-sjlj-exceptions was given.
11127 if test "${enable_sjlj_exceptions+set}" = set; then :
11128 enableval=$enable_sjlj_exceptions; case $target in
11130 if test $enableval != yes; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11132 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11137 force_sjlj_exceptions=yes
11141 force_sjlj_exceptions=yes
11145 force_sjlj_exceptions=no
11150 if test $force_sjlj_exceptions = yes; then
11151 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11153 cat >>confdefs.h <<_ACEOF
11154 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11159 # --------------------------------------------------------
11160 # Build, host, and target specific configuration fragments
11161 # --------------------------------------------------------
11163 # Collect build-machine-specific information.
11164 . ${srcdir}/config.build
11166 # Collect host-machine-specific information.
11167 . ${srcdir}/config.host
11171 # Collect target-machine-specific information.
11172 . ${srcdir}/config.gcc
11174 extra_objs="${host_extra_objs} ${extra_objs}"
11175 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11177 # Default the target-machine variables that were not explicitly set.
11178 if test x"$tm_file" = x
11179 then tm_file=$cpu_type/$cpu_type.h; fi
11181 if test x"$extra_headers" = x
11182 then extra_headers=; fi
11184 if test x$md_file = x
11185 then md_file=$cpu_type/$cpu_type.md; fi
11187 if test x$out_file = x
11188 then out_file=$cpu_type/$cpu_type.c; fi
11190 if test x"$tmake_file" = x
11191 then tmake_file=$cpu_type/t-$cpu_type
11194 if test x"$dwarf2" = xyes
11195 then tm_file="$tm_file tm-dwarf2.h"
11198 # Say what files are being used for the output code and MD file.
11199 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11200 echo "Using \`$srcdir/config/$md_file' as machine description file."
11202 # If any of the xm_file variables contain nonexistent files, warn
11203 # about them and drop them.
11206 for x in $build_xm_file; do
11207 if test -f $srcdir/config/$x
11209 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11210 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11213 build_xm_file="$bx"
11216 for x in $host_xm_file; do
11217 if test -f $srcdir/config/$x
11219 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11220 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11226 for x in $xm_file; do
11227 if test -f $srcdir/config/$x
11229 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11230 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11236 for f in $tm_file; do
11239 if test $count = ax; then
11240 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11242 echo "Using the following target machine macro files:"
11243 for f in $tm_file; do
11244 echo " $srcdir/config/$f"
11248 if test x$need_64bit_hwint = xyes; then
11250 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11254 if test x$use_long_long_for_widest_fast_int = xyes; then
11256 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11261 for f in $host_xm_file; do
11264 if test $count = a; then
11266 elif test $count = ax; then
11267 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11269 echo "Using the following host machine macro files:"
11270 for f in $host_xm_file; do
11271 echo " $srcdir/config/$f"
11274 echo "Using ${out_host_hook_obj} for host machine hooks."
11276 if test "$host_xm_file" != "$build_xm_file"; then
11278 for f in $build_xm_file; do
11281 if test $count = a; then
11283 elif test $count = ax; then
11284 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11286 echo "Using the following build machine macro files:"
11287 for f in $build_xm_file; do
11288 echo " $srcdir/config/$f"
11293 if test -n "$configured_native_system_header_dir"; then
11294 native_system_header_dir=$configured_native_system_header_dir
11296 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11300 powerpc*-*-darwin*)
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11302 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11303 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 #include <sys/cdefs.h>
11310 #include <sys/signal.h>
11311 #include <ucontext.h>
11312 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11315 if ac_fn_c_try_compile "$LINENO"; then :
11316 gcc_cv_mcontext_underscores=no
11318 gcc_cv_mcontext_underscores=yes
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11323 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11324 if test $gcc_cv_mcontext_underscores = yes; then
11326 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11336 # Check if a valid thread package
11337 case ${enable_threads} in
11340 target_thread_file='single'
11344 target_thread_file='single'
11346 aix | dce | lynx | mipssde | posix | rtems | \
11347 single | tpf | vxworks | win32)
11348 target_thread_file=${enable_threads}
11351 echo "${enable_threads} is an unknown thread package" 1>&2
11356 if test x${thread_file} = x; then
11357 # No thread file set by target-specific clauses in config.gcc,
11358 # so use file chosen by default logic above
11359 thread_file=${target_thread_file}
11362 # Make gthr-default.h if we have a thread file.
11364 if test $thread_file != single; then
11365 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11366 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11367 rm -f gthr-default.h-t
11369 mv -f gthr-default.h-t gthr-default.h
11371 gthread_flags=-DHAVE_GTHR_DEFAULT
11380 if test x$enable___cxa_atexit = xyes || \
11381 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11382 if test x$host = x$target; then
11384 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11385 # keyed to flag_use_cxa_atexit
11390 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11391 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11394 echo "__cxa_atexit can't be enabled on this target"
11400 # We can't check for __cxa_atexit when building a cross, so assume
11404 if test x$use_cxa_atexit = xyes; then
11406 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11411 # Look for a file containing extra machine modes.
11412 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11413 extra_modes_file='$(srcdir)'/config/${extra_modes}
11416 cat >>confdefs.h <<_ACEOF
11417 #define EXTRA_MODES_FILE "config/$extra_modes"
11422 # Convert extra_options into a form suitable for Makefile use.
11425 for f in $extra_options; do
11426 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11427 all_opt_files="$all_opt_files $srcdir/config/$f"
11431 # auto-host.h is the file containing items generated by autoconf and is
11432 # the first file included by config.h.
11433 # If host=build, it is correct to have bconfig include auto-host.h
11434 # as well. If host!=build, we are in error and need to do more
11435 # work to find out the build config parameters.
11436 if test x$host = x$build
11438 build_auto=auto-host.h
11440 # We create a subdir, then run autoconf in the subdir.
11441 # To prevent recursion we set host and build for the new
11442 # invocation of configure to the build for this invocation
11449 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11450 *) realsrcdir=../${srcdir};;
11452 saved_CFLAGS="${CFLAGS}"
11453 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11454 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11455 ${realsrcdir}/configure \
11456 --enable-languages=${enable_languages-all} \
11457 --target=$target_alias --host=$build_alias --build=$build_alias
11458 CFLAGS="${saved_CFLAGS}"
11460 # We just finished tests for the build machine, so rename
11461 # the file auto-build.h in the gcc directory.
11462 mv auto-host.h ../auto-build.h
11465 build_auto=auto-build.h
11469 tm_file="${tm_file} defaults.h"
11470 tm_p_file="${tm_p_file} tm-preds.h"
11471 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11472 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11473 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11474 # put this back in temporarily.
11475 xm_file="auto-host.h ansidecl.h ${xm_file}"
11481 # Compile in configure arguments.
11482 if test -f configargs.h ; then
11483 # Being re-configured.
11484 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11485 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11487 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11490 # Double all backslashes and backslash all quotes to turn
11491 # gcc_config_arguments into a C string.
11492 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11493 $gcc_config_arguments
11495 gcc_config_arguments_str=`cat conftest.out`
11498 cat > configargs.h <<EOF
11499 /* Generated automatically. */
11500 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11501 static const char thread_model[] = "$thread_file";
11503 static const struct {
11504 const char *name, *value;
11505 } configure_default_options[] = $configure_default_options;
11508 gcc_BASEVER=`cat $srcdir/BASE-VER`
11509 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11510 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11511 if test -f $srcdir/REVISION ; then
11512 gcc_REVISION=`cat $srcdir/REVISION`
11516 cat > plugin-version.h <<EOF
11517 #include "configargs.h"
11519 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11520 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11521 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11522 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11524 static char basever[] = "$gcc_BASEVER";
11525 static char datestamp[] = "$gcc_DATESTAMP";
11526 static char devphase[] = "$gcc_DEVPHASE";
11527 static char revision[] = "$gcc_REVISION";
11529 /* FIXME plugins: We should make the version information more precise.
11530 One way to do is to add a checksum. */
11532 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11533 devphase, revision,
11534 configuration_arguments};
11537 # Internationalization
11538 # If we haven't got the data from the intl directory,
11539 # assume NLS is disabled.
11548 if test -f ../intl/config.intl; then
11549 . ../intl/config.intl
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11552 $as_echo_n "checking whether NLS is requested... " >&6; }
11553 if test x"$USE_NLS" != xyes; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11558 $as_echo "yes" >&6; }
11560 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11564 $as_echo_n "checking for catalogs to be installed... " >&6; }
11565 # Look for .po and .gmo files in the source directory.
11568 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11569 # If there aren't any .gmo files the shell will give us the
11570 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11572 case "$cat" in *\**)
11575 # The quadruple backslash is collapsed to a double backslash
11576 # by the backticks, then collapsed again by the double quotes,
11577 # leaving us with one backslash in the sed expression (right
11578 # before the dot that mustn't act as a wildcard).
11579 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11580 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11581 # The user is allowed to set LINGUAS to a list of languages to
11582 # install catalogs for. If it's empty that means "all of them."
11583 if test "x$LINGUAS" = x; then
11584 CATALOGS="$CATALOGS $cat"
11585 XLINGUAS="$XLINGUAS $lang"
11587 case "$LINGUAS" in *$lang*)
11588 CATALOGS="$CATALOGS $cat"
11589 XLINGUAS="$XLINGUAS $lang"
11594 LINGUAS="$XLINGUAS"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11596 $as_echo "$LINGUAS" >&6; }
11609 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11610 # -liconv on the link line twice.
11611 case "$LIBINTL" in *$LIBICONV*)
11615 # Check whether --enable-secureplt was given.
11616 if test "${enable_secureplt+set}" = set; then :
11617 enableval=$enable_secureplt;
11621 # Check whether --enable-leading-mingw64-underscores was given.
11622 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11623 enableval=$enable_leading_mingw64_underscores;
11626 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11628 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11632 # Check whether --enable-cld was given.
11633 if test "${enable_cld+set}" = set; then :
11634 enableval=$enable_cld;
11640 # Check whether --enable-frame-pointer was given.
11641 if test "${enable_frame_pointer+set}" = set; then :
11642 enableval=$enable_frame_pointer;
11646 linux* | darwin[8912]*)
11647 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11649 enable_frame_pointer=no
11652 enable_frame_pointer=yes
11659 # Windows32 Registry support for specifying GCC installation paths.
11660 # Check whether --enable-win32-registry was given.
11661 if test "${enable_win32_registry+set}" = set; then :
11662 enableval=$enable_win32_registry;
11667 win32 | pe | cygwin* | mingw32* | uwin*)
11668 if test "x$enable_win32_registry" != xno; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11670 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11671 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11674 ac_func_search_save_LIBS=$LIBS
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11684 char RegOpenKeyExA ();
11688 return RegOpenKeyExA ();
11693 for ac_lib in '' advapi32; do
11694 if test -z "$ac_lib"; then
11695 ac_res="none required"
11698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_search_RegOpenKeyExA=$ac_res
11703 rm -f core conftest.err conftest.$ac_objext \
11705 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11709 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11712 ac_cv_search_RegOpenKeyExA=no
11714 rm conftest.$ac_ext
11715 LIBS=$ac_func_search_save_LIBS
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11718 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11719 ac_res=$ac_cv_search_RegOpenKeyExA
11720 if test "$ac_res" != no; then :
11721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11724 enable_win32_registry=no
11729 if test "x$enable_win32_registry" != xno; then
11731 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11734 if test "x$enable_win32_registry" != xyes \
11735 && test "x$enable_win32_registry" != x; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11746 # Get an absolute path to the GCC top-level source directory
11747 holddir=`${PWDCMD-pwd}`
11749 topdir=`${PWDCMD-pwd}`
11752 # Conditionalize the makefile for this host machine.
11754 for f in ${host_xmake_file}
11756 if test -f ${srcdir}/config/$f
11758 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11762 # Conditionalize the makefile for this target machine.
11764 for f in ${tmake_file}
11766 if test -f ${srcdir}/config/$f
11768 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11771 tmake_file="${tmake_file_}"
11773 out_object_file=`basename $out_file .c`.o
11774 common_out_object_file=`basename $common_out_file .c`.o
11776 tm_file_list="options.h"
11777 tm_include_list="options.h insn-constants.h"
11778 for f in $tm_file; do
11781 f=`echo $f | sed 's/^..//'`
11782 tm_file_list="${tm_file_list} $f"
11783 tm_include_list="${tm_include_list} $f"
11786 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11787 tm_include_list="${tm_include_list} $f"
11790 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11791 tm_include_list="${tm_include_list} config/$f"
11796 libgcc_tm_file_list=
11797 libgcc_tm_include_list=
11798 for f in $libgcc_tm_file; do
11799 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11800 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11805 for f in $tm_p_file; do
11808 tm_p_file_list="${tm_p_file_list} $f"
11809 tm_p_include_list="${tm_p_include_list} $f"
11812 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11813 tm_p_include_list="${tm_p_include_list} config/$f"
11819 for f in $xm_file; do
11822 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11823 xm_include_list="${xm_include_list} $f"
11826 xm_file_list="${xm_file_list} $f"
11827 xm_include_list="${xm_include_list} $f"
11830 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11831 xm_include_list="${xm_include_list} config/$f"
11837 host_xm_include_list=
11838 for f in $host_xm_file; do
11841 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11842 host_xm_include_list="${host_xm_include_list} $f"
11845 host_xm_file_list="${host_xm_file_list} $f"
11846 host_xm_include_list="${host_xm_include_list} $f"
11849 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11850 host_xm_include_list="${host_xm_include_list} config/$f"
11855 build_xm_file_list=
11856 for f in $build_xm_file; do
11859 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11860 build_xm_include_list="${build_xm_include_list} $f"
11862 auto-build.h | auto-host.h )
11863 build_xm_file_list="${build_xm_file_list} $f"
11864 build_xm_include_list="${build_xm_include_list} $f"
11867 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11868 build_xm_include_list="${build_xm_include_list} config/$f"
11873 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11874 # cross-compiler which does not use the native headers and libraries.
11875 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11878 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11880 if test "x$with_build_sysroot" != x; then
11881 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11883 # This value is used, even on a native system, because
11884 # CROSS_SYSTEM_HEADER_DIR is just
11885 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11886 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11889 if test x$host != x$target
11891 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11893 SYSTEM_HEADER_DIR=$build_system_header_dir
11894 case "$host","$target" in
11895 # Darwin crosses can use the host system's libraries and headers,
11896 # because of the fat library support. Of course, it must be the
11897 # same version of Darwin on both sides. Allow the user to
11898 # just say --target=foo-darwin without a version number to mean
11899 # "the version on this system".
11900 *-*-darwin*,*-*-darwin*)
11901 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11902 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11903 if test $hostos = $targetos -o $targetos = darwin ; then
11905 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11910 i?86-*-*,x86_64-*-* \
11911 | powerpc*-*-*,powerpc64*-*-*)
11912 CROSS="$CROSS -DNATIVE_CROSS" ;;
11917 if test "x$with_headers" = x; then
11924 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11925 SYSTEM_HEADER_DIR=$build_system_header_dir
11928 # If this is a cross-compiler that does not
11929 # have its own set of headers then define
11932 # If this is using newlib, without having the headers available now,
11933 # then define inhibit_libc in LIBGCC2_CFLAGS.
11934 # This prevents libgcc2 from containing any code which requires libc
11936 : ${inhibit_libc=false}
11937 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11938 test x$with_newlib = xyes ; } &&
11939 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11944 # When building gcc with a cross-compiler, we need to adjust things so
11945 # that the generator programs are still built with the native compiler.
11946 # Also, we cannot run fixincludes.
11948 # These are the normal (build=host) settings:
11949 CC_FOR_BUILD='$(CC)'
11950 BUILD_CFLAGS='$(ALL_CFLAGS)'
11951 BUILD_LDFLAGS='$(LDFLAGS)'
11952 STMP_FIXINC=stmp-fixinc
11954 # And these apply if build != host, or we are generating coverage data
11955 if test x$build != x$host || test "x$coverage_flags" != x
11957 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11958 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11961 # Expand extra_headers to include complete path.
11962 # This substitutes for lots of t-* files.
11963 extra_headers_list=
11964 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11965 for file in ${extra_headers} ; do
11966 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11969 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11970 if test x"$use_gcc_tgmath" = xyes
11971 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11974 # Define collect2 in Makefile.
11975 case $host_can_use_collect2 in
11977 *) collect2='collect2$(exeext)' ;;
11981 # Add a definition of USE_COLLECT2 if system wants one.
11982 case $use_collect2 in
11983 no) use_collect2= ;;
11986 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11987 xm_defines="${xm_defines} USE_COLLECT2"
11988 case $host_can_use_collect2 in
11990 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11997 cat >>confdefs.h <<_ACEOF
11998 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12002 # ---------------------------
12003 # Assembler & linker features
12004 # ---------------------------
12006 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12007 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12008 # However when ld-new is first executed from the build tree, libtool will
12009 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12010 # to the build tree. While doing this we need to use the previous-stage
12011 # linker, or we have an infinite loop. The presence of a shell script as
12012 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12013 # the gcc/collect-ld script. So we need to know how libtool works, or
12014 # exec-tool will fail.
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12020 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12025 macro_version='2.2.7a'
12026 macro_revision='1.3134'
12040 ltmain="$ac_aux_dir/ltmain.sh"
12042 # Backslashify metacharacters that are still active within
12043 # double-quoted strings.
12044 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12046 # Same as above, but do not quote variable references.
12047 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12049 # Sed substitution to delay expansion of an escaped shell variable in a
12050 # double_quote_subst'ed string.
12051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12053 # Sed substitution to delay expansion of an escaped single quote.
12054 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12056 # Sed substitution to avoid accidental globbing in evaled expressions
12057 no_glob_subst='s/\*/\\\*/g'
12059 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12064 $as_echo_n "checking how to print strings... " >&6; }
12065 # Test print first, because it will be a builtin if present.
12066 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12067 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12069 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12072 # Use this function as a fallback that always works.
12073 func_fallback_echo ()
12075 eval 'cat <<_LTECHO_EOF
12079 ECHO='func_fallback_echo'
12082 # func_echo_all arg...
12083 # Invoke $ECHO with all args, space-separated.
12090 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12091 $as_echo "printf" >&6; } ;;
12092 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12093 $as_echo "print -r" >&6; } ;;
12094 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12095 $as_echo "cat" >&6; } ;;
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12113 if test "${ac_cv_path_SED+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12116 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12117 for ac_i in 1 2 3 4 5 6 7; do
12118 ac_script="$ac_script$as_nl$ac_script"
12120 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12121 { ac_script=; unset ac_script;}
12122 if test -z "$SED"; then
12123 ac_path_SED_found=false
12124 # Loop through the user's path and test for each of PROGNAME-LIST
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12129 test -z "$as_dir" && as_dir=.
12130 for ac_prog in sed gsed; do
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12133 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12134 # Check for GNU ac_path_SED and select it if it is found.
12135 # Check for GNU $ac_path_SED
12136 case `"$ac_path_SED" --version 2>&1` in
12138 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12141 $as_echo_n 0123456789 >"conftest.in"
12144 cat "conftest.in" "conftest.in" >"conftest.tmp"
12145 mv "conftest.tmp" "conftest.in"
12146 cp "conftest.in" "conftest.nl"
12147 $as_echo '' >> "conftest.nl"
12148 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12150 as_fn_arith $ac_count + 1 && ac_count=$as_val
12151 if test $ac_count -gt ${ac_path_SED_max-0}; then
12152 # Best one so far, save it but keep looking for a better one
12153 ac_cv_path_SED="$ac_path_SED"
12154 ac_path_SED_max=$ac_count
12156 # 10*(2^10) chars as input seems more than enough
12157 test $ac_count -gt 10 && break
12159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12162 $ac_path_SED_found && break 3
12167 if test -z "$ac_cv_path_SED"; then
12168 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12171 ac_cv_path_SED=$SED
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12176 $as_echo "$ac_cv_path_SED" >&6; }
12177 SED="$ac_cv_path_SED"
12180 test -z "$SED" && SED=sed
12181 Xsed="$SED -e 1s/^X//"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12194 $as_echo_n "checking for fgrep... " >&6; }
12195 if test "${ac_cv_path_FGREP+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12199 then ac_cv_path_FGREP="$GREP -F"
12201 if test -z "$FGREP"; then
12202 ac_path_FGREP_found=false
12203 # Loop through the user's path and test for each of PROGNAME-LIST
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12208 test -z "$as_dir" && as_dir=.
12209 for ac_prog in fgrep; do
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12212 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12213 # Check for GNU ac_path_FGREP and select it if it is found.
12214 # Check for GNU $ac_path_FGREP
12215 case `"$ac_path_FGREP" --version 2>&1` in
12217 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12220 $as_echo_n 0123456789 >"conftest.in"
12223 cat "conftest.in" "conftest.in" >"conftest.tmp"
12224 mv "conftest.tmp" "conftest.in"
12225 cp "conftest.in" "conftest.nl"
12226 $as_echo 'FGREP' >> "conftest.nl"
12227 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12229 as_fn_arith $ac_count + 1 && ac_count=$as_val
12230 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12231 # Best one so far, save it but keep looking for a better one
12232 ac_cv_path_FGREP="$ac_path_FGREP"
12233 ac_path_FGREP_max=$ac_count
12235 # 10*(2^10) chars as input seems more than enough
12236 test $ac_count -gt 10 && break
12238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12241 $ac_path_FGREP_found && break 3
12246 if test -z "$ac_cv_path_FGREP"; then
12247 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12250 ac_cv_path_FGREP=$FGREP
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12256 $as_echo "$ac_cv_path_FGREP" >&6; }
12257 FGREP="$ac_cv_path_FGREP"
12260 test -z "$GREP" && GREP=grep
12280 # Check whether --with-gnu-ld was given.
12281 if test "${with_gnu_ld+set}" = set; then :
12282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12288 if test "$GCC" = yes; then
12289 # Check if gcc -print-prog-name=ld gives a path.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12291 $as_echo_n "checking for ld used by $CC... " >&6; }
12294 # gcc leaves a trailing carriage return which upsets mingw
12295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12300 # Accept absolute paths.
12302 re_direlt='/[^/][^/]*/\.\./'
12303 # Canonicalize the pathname of ld
12304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12308 test -z "$LD" && LD="$ac_prog"
12311 # If it fails, then pretend we aren't using GCC.
12315 # If it is relative, then search for the first ld in PATH.
12316 with_gnu_ld=unknown
12319 elif test "$with_gnu_ld" = yes; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12321 $as_echo_n "checking for GNU ld... " >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12324 $as_echo_n "checking for non-GNU ld... " >&6; }
12326 if test "${lt_cv_path_LD+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12329 if test -z "$LD"; then
12330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12331 for ac_dir in $PATH; do
12333 test -z "$ac_dir" && ac_dir=.
12334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12335 lt_cv_path_LD="$ac_dir/$ac_prog"
12336 # Check to see if the program is GNU ld. I'd rather use --version,
12337 # but apparently some variants of GNU ld only accept -v.
12338 # Break only if it was the GNU/non-GNU ld that we prefer.
12339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12340 *GNU* | *'with BFD'*)
12341 test "$with_gnu_ld" != no && break
12344 test "$with_gnu_ld" != yes && break
12351 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12355 LD="$lt_cv_path_LD"
12356 if test -n "$LD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12358 $as_echo "$LD" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12363 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12366 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12370 case `$LD -v 2>&1 </dev/null` in
12371 *GNU* | *'with BFD'*)
12372 lt_cv_prog_gnu_ld=yes
12375 lt_cv_prog_gnu_ld=no
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12381 with_gnu_ld=$lt_cv_prog_gnu_ld
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12392 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12393 if test "${lt_cv_path_NM+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12396 if test -n "$NM"; then
12397 # Let the user override the test.
12398 lt_cv_path_NM="$NM"
12400 lt_nm_to_check="${ac_tool_prefix}nm"
12401 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12402 lt_nm_to_check="$lt_nm_to_check nm"
12404 for lt_tmp_nm in $lt_nm_to_check; do
12405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12406 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12408 test -z "$ac_dir" && ac_dir=.
12409 tmp_nm="$ac_dir/$lt_tmp_nm"
12410 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12411 # Check to see if the nm accepts a BSD-compat flag.
12412 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12413 # nm: unknown option "B" ignored
12414 # Tru64's nm complains that /dev/null is an invalid object file
12415 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12416 */dev/null* | *'Invalid file or object type'*)
12417 lt_cv_path_NM="$tmp_nm -B"
12421 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12423 lt_cv_path_NM="$tmp_nm -p"
12427 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12428 continue # so that we can try to find one that supports BSD flags
12437 : ${lt_cv_path_NM=no}
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12441 $as_echo "$lt_cv_path_NM" >&6; }
12442 if test "$lt_cv_path_NM" != "no"; then
12443 NM="$lt_cv_path_NM"
12445 # Didn't find any BSD compatible name lister, look for dumpbin.
12446 if test -n "$DUMPBIN"; then :
12447 # Let the user override the test.
12449 if test -n "$ac_tool_prefix"; then
12450 for ac_prog in dumpbin "link -dump"
12452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12459 if test -n "$DUMPBIN"; then
12460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 DUMPBIN=$ac_cv_prog_DUMPBIN
12480 if test -n "$DUMPBIN"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12482 $as_echo "$DUMPBIN" >&6; }
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12489 test -n "$DUMPBIN" && break
12492 if test -z "$DUMPBIN"; then
12493 ac_ct_DUMPBIN=$DUMPBIN
12494 for ac_prog in dumpbin "link -dump"
12496 # Extract the first word of "$ac_prog", so it can be a program name with args.
12497 set dummy $ac_prog; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12503 if test -n "$ac_ct_DUMPBIN"; then
12504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12524 if test -n "$ac_ct_DUMPBIN"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12526 $as_echo "$ac_ct_DUMPBIN" >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12533 test -n "$ac_ct_DUMPBIN" && break
12536 if test "x$ac_ct_DUMPBIN" = x; then
12539 case $cross_compiling:$ac_tool_warned in
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12543 ac_tool_warned=yes ;;
12545 DUMPBIN=$ac_ct_DUMPBIN
12549 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12551 DUMPBIN="$DUMPBIN -symbols"
12559 if test "$DUMPBIN" != ":"; then
12563 test -z "$NM" && NM=nm
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12571 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12572 if test "${lt_cv_nm_interface+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12575 lt_cv_nm_interface="BSD nm"
12576 echo "int some_variable = 0;" > conftest.$ac_ext
12577 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12578 (eval "$ac_compile" 2>conftest.err)
12579 cat conftest.err >&5
12580 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12582 cat conftest.err >&5
12583 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12584 cat conftest.out >&5
12585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12586 lt_cv_nm_interface="MS dumpbin"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12591 $as_echo "$lt_cv_nm_interface" >&6; }
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12594 $as_echo_n "checking whether ln -s works... " >&6; }
12596 if test "$LN_S" = "ln -s"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12601 $as_echo "no, using $LN_S" >&6; }
12604 # find the maximum length of command line arguments
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12606 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12607 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12615 # On DJGPP, this test can blow up pretty badly due to problems in libc
12616 # (any single argument exceeding 2000 bytes causes a buffer overrun
12617 # during glob expansion). Even if it were fixed, the result of this
12618 # check would be larger than it should be.
12619 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12623 # Under GNU Hurd, this test is not required because there is
12624 # no limit to the length of command line arguments.
12625 # Libtool will interpret -1 as no limit whatsoever
12626 lt_cv_sys_max_cmd_len=-1;
12629 cygwin* | mingw* | cegcc*)
12630 # On Win9x/ME, this test blows up -- it succeeds, but takes
12631 # about 5 minutes as the teststring grows exponentially.
12632 # Worse, since 9x/ME are not pre-emptively multitasking,
12633 # you end up with a "frozen" computer, even though with patience
12634 # the test eventually succeeds (with a max line length of 256k).
12635 # Instead, let's just punt: use the minimum linelength reported by
12636 # all of the supported platforms: 8192 (on NT/2K/XP).
12637 lt_cv_sys_max_cmd_len=8192;
12641 # On MiNT this can take a long time and run out of memory.
12642 lt_cv_sys_max_cmd_len=8192;
12646 # On AmigaOS with pdksh, this test takes hours, literally.
12647 # So we just punt and use a minimum line length of 8192.
12648 lt_cv_sys_max_cmd_len=8192;
12651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12652 # This has been around since 386BSD, at least. Likely further.
12653 if test -x /sbin/sysctl; then
12654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12655 elif test -x /usr/sbin/sysctl; then
12656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12660 # And add a safety zone
12661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12666 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12667 lt_cv_sys_max_cmd_len=196608
12671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12673 # nice to cause kernel panics so lets avoid the loop below.
12674 # First set a reasonable default.
12675 lt_cv_sys_max_cmd_len=16384
12677 if test -x /sbin/sysconfig; then
12678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12684 lt_cv_sys_max_cmd_len=102400
12686 sysv5* | sco5v6* | sysv4.2uw2*)
12687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12688 if test -n "$kargmax"; then
12689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12691 lt_cv_sys_max_cmd_len=32768
12695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12696 if test -n "$lt_cv_sys_max_cmd_len"; then
12697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12700 # Make teststring a little bigger before we do anything with it.
12701 # a 1K string should be a reasonable start.
12702 for i in 1 2 3 4 5 6 7 8 ; do
12703 teststring=$teststring$teststring
12705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12706 # If test is not a shell built-in, we'll probably end up computing a
12707 # maximum length that is only half of the actual maximum length, but
12709 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12711 test $i != 17 # 1/2 MB should be enough
12714 teststring=$teststring$teststring
12716 # Only check the string length outside the loop.
12717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12719 # Add a significant safety factor because C++ compilers can tack on
12720 # massive amounts of additional arguments before passing them to the
12721 # linker. It appears as though 1/2 is a usable value.
12722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12729 if test -n $lt_cv_sys_max_cmd_len ; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12734 $as_echo "none" >&6; }
12736 max_cmd_len=$lt_cv_sys_max_cmd_len
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12748 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12749 # Try some XSI features
12751 ( _lt_dummy="a/b/c"
12752 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12754 && eval 'test $(( 1 + 1 )) -eq 2 \
12755 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12758 $as_echo "$xsi_shell" >&6; }
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12762 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12764 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12766 && lt_shell_append=yes
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12768 $as_echo "$lt_shell_append" >&6; }
12771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12781 # test EBCDIC or ASCII
12782 case `echo X|tr X '\101'` in
12783 A) # ASCII based system
12784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12785 lt_SP2NL='tr \040 \012'
12786 lt_NL2SP='tr \015\012 \040\040'
12788 *) # EBCDIC based system
12789 lt_SP2NL='tr \100 \n'
12790 lt_NL2SP='tr \r\n \100\100'
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12804 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 lt_cv_ld_reload_flag='-r'
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12811 reload_flag=$lt_cv_ld_reload_flag
12812 case $reload_flag in
12814 *) reload_flag=" $reload_flag" ;;
12816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12819 if test "$GCC" = yes; then
12820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12835 if test -n "$ac_tool_prefix"; then
12836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12843 if test -n "$OBJDUMP"; then
12844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 OBJDUMP=$ac_cv_prog_OBJDUMP
12864 if test -n "$OBJDUMP"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12866 $as_echo "$OBJDUMP" >&6; }
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12874 if test -z "$ac_cv_prog_OBJDUMP"; then
12875 ac_ct_OBJDUMP=$OBJDUMP
12876 # Extract the first word of "objdump", so it can be a program name with args.
12877 set dummy objdump; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12883 if test -n "$ac_ct_OBJDUMP"; then
12884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12904 if test -n "$ac_ct_OBJDUMP"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12906 $as_echo "$ac_ct_OBJDUMP" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12912 if test "x$ac_ct_OBJDUMP" = x; then
12915 case $cross_compiling:$ac_tool_warned in
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919 ac_tool_warned=yes ;;
12921 OBJDUMP=$ac_ct_OBJDUMP
12924 OBJDUMP="$ac_cv_prog_OBJDUMP"
12927 test -z "$OBJDUMP" && OBJDUMP=objdump
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12938 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12939 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12942 lt_cv_file_magic_cmd='$MAGIC_CMD'
12943 lt_cv_file_magic_test_file=
12944 lt_cv_deplibs_check_method='unknown'
12945 # Need to set the preceding variable on all platforms that support
12946 # interlibrary dependencies.
12947 # 'none' -- dependencies not supported.
12948 # `unknown' -- same as none, but documents that we really don't know.
12949 # 'pass_all' -- all dependencies passed with no checks.
12950 # 'test_compile' -- check by making test program.
12951 # 'file_magic [[regex]]' -- check by looking for files in library path
12952 # which responds to the $file_magic_cmd with a given extended regex.
12953 # If you have `file' or equivalent on your system and you're not sure
12954 # whether `pass_all' will *always* work, you probably want this one.
12958 lt_cv_deplibs_check_method=pass_all
12962 lt_cv_deplibs_check_method=pass_all
12966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12967 lt_cv_file_magic_cmd='/usr/bin/file -L'
12968 lt_cv_file_magic_test_file=/shlib/libc.so
12972 # func_win32_libid is a shell function defined in ltmain.sh
12973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12974 lt_cv_file_magic_cmd='func_win32_libid'
12978 # Base MSYS/MinGW do not provide the 'file' command needed by
12979 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12980 # unless we find 'file', for example because we are cross-compiling.
12981 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12982 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12984 lt_cv_file_magic_cmd='func_win32_libid'
12986 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12987 lt_cv_file_magic_cmd='$OBJDUMP -f'
12992 # use the weaker test based on 'objdump'. See mingw*.
12993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12994 lt_cv_file_magic_cmd='$OBJDUMP -f'
12997 darwin* | rhapsody*)
12998 lt_cv_deplibs_check_method=pass_all
13001 freebsd* | dragonfly*)
13002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13005 # Not sure whether the presence of OpenBSD here was a mistake.
13006 # Let's accept both of them until this is cleared up.
13007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13008 lt_cv_file_magic_cmd=/usr/bin/file
13009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13013 lt_cv_deplibs_check_method=pass_all
13018 lt_cv_deplibs_check_method=pass_all
13022 lt_cv_deplibs_check_method=pass_all
13025 hpux10.20* | hpux11*)
13026 lt_cv_file_magic_cmd=/usr/bin/file
13029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13048 irix5* | irix6* | nonstopux*)
13050 *-32|*"-32 ") libmagic=32-bit;;
13051 *-n32|*"-n32 ") libmagic=N32;;
13052 *-64|*"-64 ") libmagic=64-bit;;
13053 *) libmagic=never-match;;
13055 lt_cv_deplibs_check_method=pass_all
13058 # This must be Linux ELF.
13059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13060 lt_cv_deplibs_check_method=pass_all
13064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13073 lt_cv_file_magic_cmd=/usr/bin/file
13074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13078 lt_cv_deplibs_check_method=pass_all
13082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13089 osf3* | osf4* | osf5*)
13090 lt_cv_deplibs_check_method=pass_all
13094 lt_cv_deplibs_check_method=pass_all
13098 lt_cv_deplibs_check_method=pass_all
13101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13102 lt_cv_deplibs_check_method=pass_all
13106 case $host_vendor in
13108 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]'
13109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13112 lt_cv_deplibs_check_method=pass_all
13115 lt_cv_file_magic_cmd='/bin/file'
13116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13119 lt_cv_file_magic_cmd='/bin/file'
13120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13121 lt_cv_file_magic_test_file=/lib/libc.so
13124 lt_cv_deplibs_check_method=pass_all
13127 lt_cv_deplibs_check_method=pass_all
13133 lt_cv_deplibs_check_method=pass_all
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13140 file_magic_cmd=$lt_cv_file_magic_cmd
13141 deplibs_check_method=$lt_cv_deplibs_check_method
13142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13155 if test -n "$ac_tool_prefix"; then
13156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13157 set dummy ${ac_tool_prefix}ar; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if test "${ac_cv_prog_AR+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13163 if test -n "$AR"; then
13164 ac_cv_prog_AR="$AR" # Let the user override the test.
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173 ac_cv_prog_AR="${ac_tool_prefix}ar"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 if test -n "$AR"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13186 $as_echo "$AR" >&6; }
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13194 if test -z "$ac_cv_prog_AR"; then
13196 # Extract the first word of "ar", so it can be a program name with args.
13197 set dummy ar; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13203 if test -n "$ac_ct_AR"; then
13204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_prog_ac_ct_AR="ar"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13224 if test -n "$ac_ct_AR"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13226 $as_echo "$ac_ct_AR" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13232 if test "x$ac_ct_AR" = x; then
13235 case $cross_compiling:$ac_tool_warned in
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13239 ac_tool_warned=yes ;;
13244 AR="$ac_cv_prog_AR"
13247 test -z "$AR" && AR=ar
13248 test -z "$AR_FLAGS" && AR_FLAGS=cru
13260 if test -n "$ac_tool_prefix"; then
13261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13262 set dummy ${ac_tool_prefix}strip; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if test "${ac_cv_prog_STRIP+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13268 if test -n "$STRIP"; then
13269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 STRIP=$ac_cv_prog_STRIP
13289 if test -n "$STRIP"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13291 $as_echo "$STRIP" >&6; }
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13299 if test -z "$ac_cv_prog_STRIP"; then
13301 # Extract the first word of "strip", so it can be a program name with args.
13302 set dummy strip; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13308 if test -n "$ac_ct_STRIP"; then
13309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_ac_ct_STRIP="strip"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13329 if test -n "$ac_ct_STRIP"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13331 $as_echo "$ac_ct_STRIP" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13337 if test "x$ac_ct_STRIP" = x; then
13340 case $cross_compiling:$ac_tool_warned in
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344 ac_tool_warned=yes ;;
13349 STRIP="$ac_cv_prog_STRIP"
13352 test -z "$STRIP" && STRIP=:
13359 if test -n "$ac_tool_prefix"; then
13360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13367 if test -n "$RANLIB"; then
13368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 RANLIB=$ac_cv_prog_RANLIB
13388 if test -n "$RANLIB"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13390 $as_echo "$RANLIB" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13398 if test -z "$ac_cv_prog_RANLIB"; then
13399 ac_ct_RANLIB=$RANLIB
13400 # Extract the first word of "ranlib", so it can be a program name with args.
13401 set dummy ranlib; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13407 if test -n "$ac_ct_RANLIB"; then
13408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13417 ac_cv_prog_ac_ct_RANLIB="ranlib"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13428 if test -n "$ac_ct_RANLIB"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13430 $as_echo "$ac_ct_RANLIB" >&6; }
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13436 if test "x$ac_ct_RANLIB" = x; then
13439 case $cross_compiling:$ac_tool_warned in
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13443 ac_tool_warned=yes ;;
13445 RANLIB=$ac_ct_RANLIB
13448 RANLIB="$ac_cv_prog_RANLIB"
13451 test -z "$RANLIB" && RANLIB=:
13458 # Determine commands to create old-style static archives.
13459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13460 old_postinstall_cmds='chmod 644 $oldlib'
13461 old_postuninstall_cmds=
13463 if test -n "$RANLIB"; then
13466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13477 lock_old_archive_extraction=yes ;;
13479 lock_old_archive_extraction=no ;;
13520 # If no C compiler was specified, use CC.
13523 # If no C compiler flags were specified, use CFLAGS.
13524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13526 # Allow CC to be a program name with arguments.
13530 # Check for command to grab the raw symbol name followed by C symbol from nm.
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13532 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13537 # These are sane defaults that work on at least a few old systems.
13538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13540 # Character class describing NM global symbol codes.
13541 symcode='[BCDEGRST]'
13543 # Regexp to match symbols that can be accessed directly from C.
13544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13546 # Define system-specific variables.
13551 cygwin* | mingw* | pw32* | cegcc*)
13552 symcode='[ABCDGISTW]'
13555 if test "$host_cpu" = ia64; then
13556 symcode='[ABCDEGRST]'
13559 irix* | nonstopux*)
13560 symcode='[BCDEGRST]'
13563 symcode='[BCDEGQRST]'
13574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13582 # If we're using GNU nm, then use its standard symbol codes.
13583 case `$NM -V 2>&1` in
13584 *GNU* | *'with BFD'*)
13585 symcode='[ABCDGIRSTW]' ;;
13588 # Transform an extracted symbol line into a proper C declaration.
13589 # Some systems (esp. on ia64) link data and code symbols differently,
13590 # so use this general approach.
13591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13593 # Transform an extracted symbol line into symbol name and symbol address
13594 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13595 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'"
13597 # Handle CRLF in mingw tool chain
13601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13605 # Try without a prefix underscore, then with it.
13606 for ac_symprfx in "" "_"; do
13608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13609 symxfrm="\\1 $ac_symprfx\\2 \\2"
13611 # Write the raw and C identifiers.
13612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13613 # Fake it for dumpbin and say T for any non-static function
13614 # and D for any global variable.
13615 # Also find C++ and __fastcall symbols from MSVC++,
13616 # which start with @ or ?.
13617 lt_cv_sys_global_symbol_pipe="$AWK '"\
13618 " {last_section=section; section=\$ 3};"\
13619 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13620 " \$ 0!~/External *\|/{next};"\
13621 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13622 " {if(hide[section]) next};"\
13623 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13624 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13625 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13626 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13627 " ' prfx=^$ac_symprfx"
13629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13632 # Check to see that the pipe works correctly.
13636 cat > conftest.$ac_ext <<_LT_EOF
13641 void nm_test_func(void);
13642 void nm_test_func(void){}
13646 int main(){nm_test_var='a';nm_test_func();return(0);}
13649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13650 (eval $ac_compile) 2>&5
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; }; then
13654 # Now try to grab the symbols.
13656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13657 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13660 test $ac_status = 0; } && test -s "$nlist"; then
13661 # Try sorting and uniquifying the output.
13662 if sort "$nlist" | uniq > "$nlist"T; then
13663 mv -f "$nlist"T "$nlist"
13668 # Make sure that we snagged all the symbols we need.
13669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13671 cat <<_LT_EOF > conftest.$ac_ext
13677 # Now generate the symbol file.
13678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13680 cat <<_LT_EOF >> conftest.$ac_ext
13682 /* The mapping between symbol names and symbols. */
13687 lt__PROGRAM__LTX_preloaded_symbols[] =
13689 { "@PROGRAM@", (void *) 0 },
13691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13692 cat <<\_LT_EOF >> conftest.$ac_ext
13696 /* This works around a problem in FreeBSD linker */
13697 #ifdef FREEBSD_WORKAROUND
13698 static const void *lt_preloaded_setup() {
13699 return lt__PROGRAM__LTX_preloaded_symbols;
13707 # Now try linking the two files.
13708 mv conftest.$ac_objext conftstm.$ac_objext
13709 lt_save_LIBS="$LIBS"
13710 lt_save_CFLAGS="$CFLAGS"
13711 LIBS="conftstm.$ac_objext"
13712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13714 (eval $ac_link) 2>&5
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13720 LIBS="$lt_save_LIBS"
13721 CFLAGS="$lt_save_CFLAGS"
13723 echo "cannot find nm_test_func in $nlist" >&5
13726 echo "cannot find nm_test_var in $nlist" >&5
13729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13732 echo "$progname: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13735 rm -rf conftest* conftst*
13737 # Do not use the global_symbol_pipe unless it works.
13738 if test "$pipe_works" = yes; then
13741 lt_cv_sys_global_symbol_pipe=
13747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13748 lt_cv_sys_global_symbol_to_cdecl=
13750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13752 $as_echo "failed" >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13755 $as_echo "ok" >&6; }
13779 # Check whether --enable-libtool-lock was given.
13780 if test "${enable_libtool_lock+set}" = set; then :
13781 enableval=$enable_libtool_lock;
13784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13786 # Some flags need to be propagated to the compiler or linker for good
13790 # Find out which ABI we are using.
13791 echo 'int i;' > conftest.$ac_ext
13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13793 (eval $ac_compile) 2>&5
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; }; then
13797 case `/usr/bin/file conftest.$ac_objext` in
13799 HPUX_IA64_MODE="32"
13802 HPUX_IA64_MODE="64"
13809 # Find out which ABI we are using.
13810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13812 (eval $ac_compile) 2>&5
13814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815 test $ac_status = 0; }; then
13816 if test "$lt_cv_prog_gnu_ld" = yes; then
13817 case `/usr/bin/file conftest.$ac_objext` in
13819 LD="${LD-ld} -melf32bsmip"
13822 LD="${LD-ld} -melf32bmipn32"
13825 LD="${LD-ld} -melf64bmip"
13829 case `/usr/bin/file conftest.$ac_objext` in
13845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13847 # Find out which ABI we are using.
13848 echo 'int i;' > conftest.$ac_ext
13849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13850 (eval $ac_compile) 2>&5
13852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853 test $ac_status = 0; }; then
13854 case `/usr/bin/file conftest.o` in
13857 x86_64-*kfreebsd*-gnu)
13858 LD="${LD-ld} -m elf_i386_fbsd"
13861 LD="${LD-ld} -m elf_i386"
13863 ppc64-*linux*|powerpc64-*linux*)
13864 LD="${LD-ld} -m elf32ppclinux"
13867 LD="${LD-ld} -m elf_s390"
13870 LD="${LD-ld} -m elf32_sparc"
13876 x86_64-*kfreebsd*-gnu)
13877 LD="${LD-ld} -m elf_x86_64_fbsd"
13880 LD="${LD-ld} -m elf_x86_64"
13882 ppc*-*linux*|powerpc*-*linux*)
13883 LD="${LD-ld} -m elf64ppc"
13885 s390*-*linux*|s390*-*tpf*)
13886 LD="${LD-ld} -m elf64_s390"
13889 LD="${LD-ld} -m elf64_sparc"
13899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13900 SAVE_CFLAGS="$CFLAGS"
13901 CFLAGS="$CFLAGS -belf"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13904 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 lt_cv_cc_needs_belf=yes
13927 lt_cv_cc_needs_belf=no
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13932 ac_cpp='$CPP $CPPFLAGS'
13933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13942 CFLAGS="$SAVE_CFLAGS"
13946 # Find out which ABI we are using.
13947 echo 'int i;' > conftest.$ac_ext
13948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13949 (eval $ac_compile) 2>&5
13951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13952 test $ac_status = 0; }; then
13953 case `/usr/bin/file conftest.o` in
13955 case $lt_cv_prog_gnu_ld in
13956 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13970 need_locks="$enable_libtool_lock"
13974 rhapsody* | darwin*)
13975 if test -n "$ac_tool_prefix"; then
13976 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 if test -n "$DSYMUTIL"; then
13984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14004 if test -n "$DSYMUTIL"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14006 $as_echo "$DSYMUTIL" >&6; }
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14014 if test -z "$ac_cv_prog_DSYMUTIL"; then
14015 ac_ct_DSYMUTIL=$DSYMUTIL
14016 # Extract the first word of "dsymutil", so it can be a program name with args.
14017 set dummy dsymutil; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14023 if test -n "$ac_ct_DSYMUTIL"; then
14024 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14030 test -z "$as_dir" && as_dir=.
14031 for ac_exec_ext in '' $ac_executable_extensions; do
14032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14033 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14044 if test -n "$ac_ct_DSYMUTIL"; then
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14052 if test "x$ac_ct_DSYMUTIL" = x; then
14055 case $cross_compiling:$ac_tool_warned in
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14059 ac_tool_warned=yes ;;
14061 DSYMUTIL=$ac_ct_DSYMUTIL
14064 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14067 if test -n "$ac_tool_prefix"; then
14068 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071 $as_echo_n "checking for $ac_word... " >&6; }
14072 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
14075 if test -n "$NMEDIT"; then
14076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14082 test -z "$as_dir" && as_dir=.
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14085 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 NMEDIT=$ac_cv_prog_NMEDIT
14096 if test -n "$NMEDIT"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14098 $as_echo "$NMEDIT" >&6; }
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14106 if test -z "$ac_cv_prog_NMEDIT"; then
14107 ac_ct_NMEDIT=$NMEDIT
14108 # Extract the first word of "nmedit", so it can be a program name with args.
14109 set dummy nmedit; ac_word=$2
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14111 $as_echo_n "checking for $ac_word... " >&6; }
14112 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14115 if test -n "$ac_ct_NMEDIT"; then
14116 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $PATH
14122 test -z "$as_dir" && as_dir=.
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14136 if test -n "$ac_ct_NMEDIT"; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14138 $as_echo "$ac_ct_NMEDIT" >&6; }
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141 $as_echo "no" >&6; }
14144 if test "x$ac_ct_NMEDIT" = x; then
14147 case $cross_compiling:$ac_tool_warned in
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14151 ac_tool_warned=yes ;;
14153 NMEDIT=$ac_ct_NMEDIT
14156 NMEDIT="$ac_cv_prog_NMEDIT"
14159 if test -n "$ac_tool_prefix"; then
14160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_prog_LIPO+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14167 if test -n "$LIPO"; then
14168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 LIPO=$ac_cv_prog_LIPO
14188 if test -n "$LIPO"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14190 $as_echo "$LIPO" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14198 if test -z "$ac_cv_prog_LIPO"; then
14200 # Extract the first word of "lipo", so it can be a program name with args.
14201 set dummy lipo; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14207 if test -n "$ac_ct_LIPO"; then
14208 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14214 test -z "$as_dir" && as_dir=.
14215 for ac_exec_ext in '' $ac_executable_extensions; do
14216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14217 ac_cv_prog_ac_ct_LIPO="lipo"
14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14228 if test -n "$ac_ct_LIPO"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14230 $as_echo "$ac_ct_LIPO" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14233 $as_echo "no" >&6; }
14236 if test "x$ac_ct_LIPO" = x; then
14239 case $cross_compiling:$ac_tool_warned in
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14243 ac_tool_warned=yes ;;
14248 LIPO="$ac_cv_prog_LIPO"
14251 if test -n "$ac_tool_prefix"; then
14252 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14253 set dummy ${ac_tool_prefix}otool; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14259 if test -n "$OTOOL"; then
14260 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14269 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 OTOOL=$ac_cv_prog_OTOOL
14280 if test -n "$OTOOL"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14282 $as_echo "$OTOOL" >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14290 if test -z "$ac_cv_prog_OTOOL"; then
14292 # Extract the first word of "otool", so it can be a program name with args.
14293 set dummy otool; ac_word=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 $as_echo_n "checking for $ac_word... " >&6; }
14296 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14299 if test -n "$ac_ct_OTOOL"; then
14300 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14309 ac_cv_prog_ac_ct_OTOOL="otool"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14320 if test -n "$ac_ct_OTOOL"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14322 $as_echo "$ac_ct_OTOOL" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14328 if test "x$ac_ct_OTOOL" = x; then
14331 case $cross_compiling:$ac_tool_warned in
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14335 ac_tool_warned=yes ;;
14340 OTOOL="$ac_cv_prog_OTOOL"
14343 if test -n "$ac_tool_prefix"; then
14344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14351 if test -n "$OTOOL64"; then
14352 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 OTOOL64=$ac_cv_prog_OTOOL64
14372 if test -n "$OTOOL64"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14374 $as_echo "$OTOOL64" >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14382 if test -z "$ac_cv_prog_OTOOL64"; then
14383 ac_ct_OTOOL64=$OTOOL64
14384 # Extract the first word of "otool64", so it can be a program name with args.
14385 set dummy otool64; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14391 if test -n "$ac_ct_OTOOL64"; then
14392 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_ac_ct_OTOOL64="otool64"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14412 if test -n "$ac_ct_OTOOL64"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14414 $as_echo "$ac_ct_OTOOL64" >&6; }
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14420 if test "x$ac_ct_OTOOL64" = x; then
14423 case $cross_compiling:$ac_tool_warned in
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14427 ac_tool_warned=yes ;;
14429 OTOOL64=$ac_ct_OTOOL64
14432 OTOOL64="$ac_cv_prog_OTOOL64"
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14462 $as_echo_n "checking for -single_module linker flag... " >&6; }
14463 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14466 lt_cv_apple_cc_single_mod=no
14467 if test -z "${LT_MULTI_MODULE}"; then
14468 # By default we will add the -single_module flag. You can override
14469 # by either setting the environment variable LT_MULTI_MODULE
14470 # non-empty at configure time, or by adding -multi_module to the
14472 rm -rf libconftest.dylib*
14473 echo "int foo(void){return 1;}" > conftest.c
14474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14475 -dynamiclib -Wl,-single_module conftest.c" >&5
14476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14479 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14480 lt_cv_apple_cc_single_mod=yes
14482 cat conftest.err >&5
14484 rm -rf libconftest.dylib*
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14489 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14491 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14492 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14493 $as_echo_n "(cached) " >&6
14495 lt_cv_ld_exported_symbols_list=no
14496 save_LDFLAGS=$LDFLAGS
14497 echo "_main" > conftest.sym
14498 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14510 if ac_fn_c_try_link "$LINENO"; then :
14511 lt_cv_ld_exported_symbols_list=yes
14513 lt_cv_ld_exported_symbols_list=no
14515 rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14517 LDFLAGS="$save_LDFLAGS"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14521 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14523 $as_echo_n "checking for -force_load linker flag... " >&6; }
14524 if test "${lt_cv_ld_force_load+set}" = set; then :
14525 $as_echo_n "(cached) " >&6
14527 lt_cv_ld_force_load=no
14528 cat > conftest.c << _LT_EOF
14529 int forced_loaded() { return 2;}
14531 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14532 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14533 echo "$AR cru libconftest.a conftest.o" >&5
14534 $AR cru libconftest.a conftest.o 2>&5
14535 cat > conftest.c << _LT_EOF
14536 int main() { return 0;}
14538 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14539 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14541 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14542 lt_cv_ld_force_load=yes
14544 cat conftest.err >&5
14546 rm -f conftest.err libconftest.a conftest conftest.c
14547 rm -rf conftest.dSYM
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14551 $as_echo "$lt_cv_ld_force_load" >&6; }
14553 rhapsody* | darwin1.[012])
14554 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14557 darwin*) # darwin 5.x on
14558 # if running on 10.5 or later, the deployment target defaults
14559 # to the OS version, if on x86, and 10.4, the deployment
14560 # target defaults to 10.4. Don't you love it?
14561 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14562 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14565 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14567 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14571 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14572 _lt_dar_single_mod='$single_module'
14574 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14575 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14577 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14579 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14580 _lt_dsymutil='~$DSYMUTIL $lib || :'
14587 for ac_header in dlfcn.h
14589 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14590 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14591 cat >>confdefs.h <<_ACEOF
14592 #define HAVE_DLFCN_H 1
14609 enable_win32_dll=no
14612 # Check whether --enable-shared was given.
14613 if test "${enable_shared+set}" = set; then :
14614 enableval=$enable_shared; p=${PACKAGE-default}
14616 yes) enable_shared=yes ;;
14617 no) enable_shared=no ;;
14620 # Look at the argument we got. We use all the common list separators.
14621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14622 for pkg in $enableval; do
14624 if test "X$pkg" = "X$p"; then
14643 # Check whether --enable-static was given.
14644 if test "${enable_static+set}" = set; then :
14645 enableval=$enable_static; p=${PACKAGE-default}
14647 yes) enable_static=yes ;;
14648 no) enable_static=no ;;
14651 # Look at the argument we got. We use all the common list separators.
14652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14653 for pkg in $enableval; do
14655 if test "X$pkg" = "X$p"; then
14675 # Check whether --with-pic was given.
14676 if test "${with_pic+set}" = set; then :
14677 withval=$with_pic; pic_mode="$withval"
14683 test -z "$pic_mode" && pic_mode=default
14691 # Check whether --enable-fast-install was given.
14692 if test "${enable_fast_install+set}" = set; then :
14693 enableval=$enable_fast_install; p=${PACKAGE-default}
14695 yes) enable_fast_install=yes ;;
14696 no) enable_fast_install=no ;;
14698 enable_fast_install=no
14699 # Look at the argument we got. We use all the common list separators.
14700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14701 for pkg in $enableval; do
14703 if test "X$pkg" = "X$p"; then
14704 enable_fast_install=yes
14711 enable_fast_install=yes
14724 # This can be used to rebuild libtool when needed
14725 LIBTOOL_DEPS="$ltmain"
14727 # Always use our own libtool.
14728 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14755 test -z "$LN_S" && LN_S="ln -s"
14770 if test -n "${ZSH_VERSION+set}" ; then
14771 setopt NO_GLOB_SUBST
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14775 $as_echo_n "checking for objdir... " >&6; }
14776 if test "${lt_cv_objdir+set}" = set; then :
14777 $as_echo_n "(cached) " >&6
14779 rm -f .libs 2>/dev/null
14780 mkdir .libs 2>/dev/null
14781 if test -d .libs; then
14784 # MS-DOS does not allow filenames that begin with a dot.
14787 rmdir .libs 2>/dev/null
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14790 $as_echo "$lt_cv_objdir" >&6; }
14791 objdir=$lt_cv_objdir
14797 cat >>confdefs.h <<_ACEOF
14798 #define LT_OBJDIR "$lt_cv_objdir/"
14806 # AIX sometimes has problems with the GCC collect2 program. For some
14807 # reason, if we set the COLLECT_NAMES environment variable, the problems
14808 # vanish in a puff of smoke.
14809 if test "X${COLLECT_NAMES+set}" != Xset; then
14811 export COLLECT_NAMES
14816 # Global variables:
14818 can_build_shared=yes
14820 # All known linkers require a `.a' archive for static linking (except MSVC,
14821 # which needs '.lib').
14824 with_gnu_ld="$lt_cv_prog_gnu_ld"
14827 old_CFLAGS="$CFLAGS"
14829 # Set sane defaults for various variables
14830 test -z "$CC" && CC=cc
14831 test -z "$LTCC" && LTCC=$CC
14832 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14833 test -z "$LD" && LD=ld
14834 test -z "$ac_objext" && ac_objext=o
14836 for cc_temp in $compiler""; do
14838 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14839 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14844 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14847 # Only perform the check for file, if the check method requires it
14848 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14849 case $deplibs_check_method in
14851 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14853 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14854 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14855 $as_echo_n "(cached) " >&6
14859 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14862 lt_save_MAGIC_CMD="$MAGIC_CMD"
14863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14864 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14865 for ac_dir in $ac_dummy; do
14867 test -z "$ac_dir" && ac_dir=.
14868 if test -f $ac_dir/${ac_tool_prefix}file; then
14869 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14870 if test -n "$file_magic_test_file"; then
14871 case $deplibs_check_method in
14873 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14875 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14876 $EGREP "$file_magic_regex" > /dev/null; then
14881 *** Warning: the command libtool uses to detect shared libraries,
14882 *** $file_magic_cmd, produces output that libtool cannot recognize.
14883 *** The result is that libtool may fail to recognize shared libraries
14884 *** as such. This will affect the creation of libtool libraries that
14885 *** depend on shared libraries, but programs linked with such libtool
14886 *** libraries will work regardless of this problem. Nevertheless, you
14887 *** may want to report the problem to your system manager and/or to
14888 *** bug-libtool@gnu.org
14898 MAGIC_CMD="$lt_save_MAGIC_CMD"
14903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14904 if test -n "$MAGIC_CMD"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14906 $as_echo "$MAGIC_CMD" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14916 if test -z "$lt_cv_path_MAGIC_CMD"; then
14917 if test -n "$ac_tool_prefix"; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14919 $as_echo_n "checking for file... " >&6; }
14920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14921 $as_echo_n "(cached) " >&6
14925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14928 lt_save_MAGIC_CMD="$MAGIC_CMD"
14929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14931 for ac_dir in $ac_dummy; do
14933 test -z "$ac_dir" && ac_dir=.
14934 if test -f $ac_dir/file; then
14935 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14936 if test -n "$file_magic_test_file"; then
14937 case $deplibs_check_method in
14939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14942 $EGREP "$file_magic_regex" > /dev/null; then
14947 *** Warning: the command libtool uses to detect shared libraries,
14948 *** $file_magic_cmd, produces output that libtool cannot recognize.
14949 *** The result is that libtool may fail to recognize shared libraries
14950 *** as such. This will affect the creation of libtool libraries that
14951 *** depend on shared libraries, but programs linked with such libtool
14952 *** libraries will work regardless of this problem. Nevertheless, you
14953 *** may want to report the problem to your system manager and/or to
14954 *** bug-libtool@gnu.org
14964 MAGIC_CMD="$lt_save_MAGIC_CMD"
14969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14970 if test -n "$MAGIC_CMD"; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14972 $as_echo "$MAGIC_CMD" >&6; }
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14988 # Use C for the default configuration in the libtool script
14992 ac_cpp='$CPP $CPPFLAGS'
14993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14998 # Source file extension for C test sources.
15001 # Object file extension for compiled C test sources.
15005 # Code to be used in simple compile tests
15006 lt_simple_compile_test_code="int some_variable = 0;"
15008 # Code to be used in simple link tests
15009 lt_simple_link_test_code='int main(){return(0);}'
15017 # If no C compiler was specified, use CC.
15020 # If no C compiler flags were specified, use CFLAGS.
15021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15023 # Allow CC to be a program name with arguments.
15026 # Save the default compiler, since it gets overwritten when the other
15027 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15028 compiler_DEFAULT=$CC
15030 # save warnings/boilerplate of simple test code
15031 ac_outfile=conftest.$ac_objext
15032 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15034 _lt_compiler_boilerplate=`cat conftest.err`
15037 ac_outfile=conftest.$ac_objext
15038 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15040 _lt_linker_boilerplate=`cat conftest.err`
15045 ## There is no encapsulation within the following macros, do not change
15046 ## the running order or otherwise move them around unless you know exactly
15047 ## what you are doing...
15048 if test -n "$compiler"; then
15050 lt_prog_compiler_no_builtin_flag=
15052 if test "$GCC" = yes; then
15053 case $cc_basename in
15055 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15057 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15061 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15063 $as_echo_n "(cached) " >&6
15065 lt_cv_prog_compiler_rtti_exceptions=no
15066 ac_outfile=conftest.$ac_objext
15067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068 lt_compiler_flag="-fno-rtti -fno-exceptions"
15069 # Insert the option either (1) after the last *FLAGS variable, or
15070 # (2) before a word containing "conftest.", or (3) at the end.
15071 # Note that $ac_compile itself does not contain backslashes and begins
15072 # with a dollar sign (not a hyphen), so the echo should work correctly.
15073 # The option is referenced via a variable to avoid confusing sed.
15074 lt_compile=`echo "$ac_compile" | $SED \
15075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15077 -e 's:$: $lt_compiler_flag:'`
15078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15079 (eval "$lt_compile" 2>conftest.err)
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 if (exit $ac_status) && test -s "$ac_outfile"; then
15084 # The compiler can only warn and ignore the option if not recognized
15085 # So say no if there are warnings other than the usual output.
15086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15089 lt_cv_prog_compiler_rtti_exceptions=yes
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15096 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15099 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15111 lt_prog_compiler_wl=
15112 lt_prog_compiler_pic=
15113 lt_prog_compiler_static=
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15118 if test "$GCC" = yes; then
15119 lt_prog_compiler_wl='-Wl,'
15120 lt_prog_compiler_static='-static'
15124 # All AIX code is PIC.
15125 if test "$host_cpu" = ia64; then
15126 # AIX 5 now supports IA64 processor
15127 lt_prog_compiler_static='-Bstatic'
15134 # see comment about AmigaOS4 .so support
15135 lt_prog_compiler_pic='-fPIC'
15138 # FIXME: we need at least 68020 code to build shared libraries, but
15139 # adding the `-m68020' flag to GCC prevents building anything better,
15141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15147 # PIC is the default for these OSes.
15150 mingw* | cygwin* | pw32* | os2* | cegcc*)
15151 # This hack is so that the source file can tell whether it is being
15152 # built for inclusion in a dll (and should export symbols for example).
15153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15154 # (--disable-auto-import) libraries
15155 lt_prog_compiler_pic='-DDLL_EXPORT'
15158 darwin* | rhapsody*)
15159 # PIC is the default on this platform
15160 # Common symbols not allowed in MH_DYLIB files
15161 lt_prog_compiler_pic='-fno-common'
15165 # PIC is the default for Haiku.
15166 # The "-static" flag exists, but is broken.
15167 lt_prog_compiler_static=
15171 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15172 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15173 # sets the default TLS model and affects inlining.
15179 lt_prog_compiler_pic='-fPIC'
15185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15186 # Instead, we relocate shared libraries at runtime.
15190 # Just because we use GCC doesn't mean we suddenly get shared libraries
15191 # on systems that don't support them.
15192 lt_prog_compiler_can_build_shared=no
15197 # QNX uses GNU C++, but need to define -shared option too, otherwise
15198 # it will coredump.
15199 lt_prog_compiler_pic='-fPIC -shared'
15203 if test -d /usr/nec; then
15204 lt_prog_compiler_pic=-Kconform_pic
15209 lt_prog_compiler_pic='-fPIC'
15213 case $cc_basename in
15214 nvcc*) # Cuda Compiler Driver 2.2
15215 lt_prog_compiler_wl='-Xlinker '
15216 lt_prog_compiler_pic='-Xcompiler -fPIC'
15220 # PORTME Check for flag to pass linker flags through the system compiler.
15223 lt_prog_compiler_wl='-Wl,'
15224 if test "$host_cpu" = ia64; then
15225 # AIX 5 now supports IA64 processor
15226 lt_prog_compiler_static='-Bstatic'
15228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15232 mingw* | cygwin* | pw32* | os2* | cegcc*)
15233 # This hack is so that the source file can tell whether it is being
15234 # built for inclusion in a dll (and should export symbols for example).
15235 lt_prog_compiler_pic='-DDLL_EXPORT'
15238 hpux9* | hpux10* | hpux11*)
15239 lt_prog_compiler_wl='-Wl,'
15240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15241 # not for PA HP-UX.
15247 lt_prog_compiler_pic='+Z'
15250 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15251 lt_prog_compiler_static='${wl}-a ${wl}archive'
15254 irix5* | irix6* | nonstopux*)
15255 lt_prog_compiler_wl='-Wl,'
15256 # PIC (with -KPIC) is the default.
15257 lt_prog_compiler_static='-non_shared'
15260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15261 case $cc_basename in
15262 # old Intel for x86_64 which still supported -KPIC.
15264 lt_prog_compiler_wl='-Wl,'
15265 lt_prog_compiler_pic='-KPIC'
15266 lt_prog_compiler_static='-static'
15268 # icc used to be incompatible with GCC.
15269 # ICC 10 doesn't accept -KPIC any more.
15271 lt_prog_compiler_wl='-Wl,'
15272 lt_prog_compiler_pic='-fPIC'
15273 lt_prog_compiler_static='-static'
15275 # Lahey Fortran 8.1.
15277 lt_prog_compiler_wl='-Wl,'
15278 lt_prog_compiler_pic='--shared'
15279 lt_prog_compiler_static='--static'
15281 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15282 # Portland Group compilers (*not* the Pentium gcc compiler,
15283 # which looks to be a dead project)
15284 lt_prog_compiler_wl='-Wl,'
15285 lt_prog_compiler_pic='-fpic'
15286 lt_prog_compiler_static='-Bstatic'
15289 lt_prog_compiler_wl='-Wl,'
15290 # All Alpha code is PIC.
15291 lt_prog_compiler_static='-non_shared'
15293 xl* | bgxl* | bgf* | mpixl*)
15294 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15295 lt_prog_compiler_wl='-Wl,'
15296 lt_prog_compiler_pic='-qpic'
15297 lt_prog_compiler_static='-qstaticlink'
15300 case `$CC -V 2>&1 | sed 5q` in
15301 *Sun\ F* | *Sun*Fortran*)
15302 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15303 lt_prog_compiler_pic='-KPIC'
15304 lt_prog_compiler_static='-Bstatic'
15305 lt_prog_compiler_wl=''
15309 lt_prog_compiler_pic='-KPIC'
15310 lt_prog_compiler_static='-Bstatic'
15311 lt_prog_compiler_wl='-Wl,'
15319 lt_prog_compiler_pic='-KPIC'
15320 lt_prog_compiler_static='-Bstatic'
15324 # QNX uses GNU C++, but need to define -shared option too, otherwise
15325 # it will coredump.
15326 lt_prog_compiler_pic='-fPIC -shared'
15329 osf3* | osf4* | osf5*)
15330 lt_prog_compiler_wl='-Wl,'
15331 # All OSF/1 code is PIC.
15332 lt_prog_compiler_static='-non_shared'
15336 lt_prog_compiler_static='-non_shared'
15340 lt_prog_compiler_pic='-KPIC'
15341 lt_prog_compiler_static='-Bstatic'
15342 case $cc_basename in
15343 f77* | f90* | f95*)
15344 lt_prog_compiler_wl='-Qoption ld ';;
15346 lt_prog_compiler_wl='-Wl,';;
15351 lt_prog_compiler_wl='-Qoption ld '
15352 lt_prog_compiler_pic='-PIC'
15353 lt_prog_compiler_static='-Bstatic'
15356 sysv4 | sysv4.2uw2* | sysv4.3*)
15357 lt_prog_compiler_wl='-Wl,'
15358 lt_prog_compiler_pic='-KPIC'
15359 lt_prog_compiler_static='-Bstatic'
15363 if test -d /usr/nec ;then
15364 lt_prog_compiler_pic='-Kconform_pic'
15365 lt_prog_compiler_static='-Bstatic'
15369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15370 lt_prog_compiler_wl='-Wl,'
15371 lt_prog_compiler_pic='-KPIC'
15372 lt_prog_compiler_static='-Bstatic'
15376 lt_prog_compiler_wl='-Wl,'
15377 lt_prog_compiler_can_build_shared=no
15381 lt_prog_compiler_pic='-pic'
15382 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_can_build_shared=no
15392 # For platforms which do not support PIC, -DPIC is meaningless:
15394 lt_prog_compiler_pic=
15397 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15401 $as_echo "$lt_prog_compiler_pic" >&6; }
15409 # Check to make sure the PIC flag actually works.
15411 if test -n "$lt_prog_compiler_pic"; then
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15414 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15415 $as_echo_n "(cached) " >&6
15417 lt_cv_prog_compiler_pic_works=no
15418 ac_outfile=conftest.$ac_objext
15419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15421 # Insert the option either (1) after the last *FLAGS variable, or
15422 # (2) before a word containing "conftest.", or (3) at the end.
15423 # Note that $ac_compile itself does not contain backslashes and begins
15424 # with a dollar sign (not a hyphen), so the echo should work correctly.
15425 # The option is referenced via a variable to avoid confusing sed.
15426 lt_compile=`echo "$ac_compile" | $SED \
15427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15429 -e 's:$: $lt_compiler_flag:'`
15430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15431 (eval "$lt_compile" 2>conftest.err)
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 if (exit $ac_status) && test -s "$ac_outfile"; then
15436 # The compiler can only warn and ignore the option if not recognized
15437 # So say no if there are warnings other than the usual output.
15438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15441 lt_cv_prog_compiler_pic_works=yes
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15448 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15450 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15451 case $lt_prog_compiler_pic in
15453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15456 lt_prog_compiler_pic=
15457 lt_prog_compiler_can_build_shared=no
15468 # Check to make sure the static flag actually works.
15470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15473 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15476 lt_cv_prog_compiler_static_works=no
15477 save_LDFLAGS="$LDFLAGS"
15478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15481 # The linker can only warn and ignore the option if not recognized
15482 # So say no if there are warnings
15483 if test -s conftest.err; then
15484 # Append any errors to the config.log.
15485 cat conftest.err 1>&5
15486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15488 if diff conftest.exp conftest.er2 >/dev/null; then
15489 lt_cv_prog_compiler_static_works=yes
15492 lt_cv_prog_compiler_static_works=yes
15496 LDFLAGS="$save_LDFLAGS"
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15500 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15502 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15505 lt_prog_compiler_static=
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15517 $as_echo_n "(cached) " >&6
15519 lt_cv_prog_compiler_c_o=no
15520 $RM -r conftest 2>/dev/null
15524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15526 lt_compiler_flag="-o out/conftest2.$ac_objext"
15527 # Insert the option either (1) after the last *FLAGS variable, or
15528 # (2) before a word containing "conftest.", or (3) at the end.
15529 # Note that $ac_compile itself does not contain backslashes and begins
15530 # with a dollar sign (not a hyphen), so the echo should work correctly.
15531 lt_compile=`echo "$ac_compile" | $SED \
15532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15534 -e 's:$: $lt_compiler_flag:'`
15535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15536 (eval "$lt_compile" 2>out/conftest.err)
15538 cat out/conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15542 # The compiler can only warn and ignore the option if not recognized
15543 # So say no if there are warnings
15544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15547 lt_cv_prog_compiler_c_o=yes
15552 # SGI C++ compiler will create directory out/ii_files/ for
15553 # template instantiation
15554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15555 $RM out/* && rmdir out
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15572 $as_echo_n "(cached) " >&6
15574 lt_cv_prog_compiler_c_o=no
15575 $RM -r conftest 2>/dev/null
15579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15581 lt_compiler_flag="-o out/conftest2.$ac_objext"
15582 # Insert the option either (1) after the last *FLAGS variable, or
15583 # (2) before a word containing "conftest.", or (3) at the end.
15584 # Note that $ac_compile itself does not contain backslashes and begins
15585 # with a dollar sign (not a hyphen), so the echo should work correctly.
15586 lt_compile=`echo "$ac_compile" | $SED \
15587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15589 -e 's:$: $lt_compiler_flag:'`
15590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15591 (eval "$lt_compile" 2>out/conftest.err)
15593 cat out/conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15597 # The compiler can only warn and ignore the option if not recognized
15598 # So say no if there are warnings
15599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15602 lt_cv_prog_compiler_c_o=yes
15607 # SGI C++ compiler will create directory out/ii_files/ for
15608 # template instantiation
15609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15610 $RM out/* && rmdir out
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15617 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15622 hard_links="nottested"
15623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15624 # do not overwrite the value of need_locks provided by the user
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15626 $as_echo_n "checking if we can lock with hard links... " >&6; }
15629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15631 ln conftest.a conftest.b 2>&5 || hard_links=no
15632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15634 $as_echo "$hard_links" >&6; }
15635 if test "$hard_links" = no; then
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15653 allow_undefined_flag=
15654 always_export_symbols=no
15656 archive_expsym_cmds=
15657 compiler_needs_object=no
15658 enable_shared_with_static_runtimes=no
15659 export_dynamic_flag_spec=
15660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15661 hardcode_automatic=no
15663 hardcode_direct_absolute=no
15664 hardcode_libdir_flag_spec=
15665 hardcode_libdir_flag_spec_ld=
15666 hardcode_libdir_separator=
15667 hardcode_minus_L=no
15668 hardcode_shlibpath_var=unsupported
15670 link_all_deplibs=unknown
15672 module_expsym_cmds=
15673 old_archive_from_new_cmds=
15674 old_archive_from_expsyms_cmds=
15675 thread_safe_flag_spec=
15676 whole_archive_flag_spec=
15677 # include_expsyms should be a list of space-separated symbols to be *always*
15678 # included in the symbol list
15680 # exclude_expsyms can be an extended regexp of symbols to exclude
15681 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15682 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15683 # as well as any symbol that contains `d'.
15684 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15685 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15686 # platforms (ab)use it in PIC code, but their linkers get confused if
15687 # the symbol is explicitly referenced. Since portable code cannot
15688 # rely on this symbol name, it's probably fine to never include it in
15689 # preloaded symbol tables.
15690 # Exclude shared library initialization/finalization symbols.
15691 extract_expsyms_cmds=
15694 cygwin* | mingw* | pw32* | cegcc*)
15695 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15696 # When not using gcc, we currently assume that we are using
15697 # Microsoft Visual C++.
15698 if test "$GCC" != yes; then
15703 # we just hope/assume this is gcc and not c89 (= MSVC++)
15713 # On some targets, GNU ld is compatible enough with the native linker
15714 # that we're better off using the native interface for both.
15715 lt_use_gnu_ld_interface=no
15716 if test "$with_gnu_ld" = yes; then
15719 # The AIX port of GNU ld has always aspired to compatibility
15720 # with the native linker. However, as the warning in the GNU ld
15721 # block says, versions before 2.19.5* couldn't really create working
15722 # shared libraries, regardless of the interface used.
15723 case `$LD -v 2>&1` in
15724 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15725 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15726 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15728 lt_use_gnu_ld_interface=yes
15733 lt_use_gnu_ld_interface=yes
15738 if test "$lt_use_gnu_ld_interface" = yes; then
15739 # If archive_cmds runs LD, not CC, wlarc should be empty
15742 # Set some defaults for GNU ld with shared library support. These
15743 # are reset later if shared libraries are not supported. Putting them
15744 # here allows them to be overridden if necessary.
15745 runpath_var=LD_RUN_PATH
15746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15747 export_dynamic_flag_spec='${wl}--export-dynamic'
15748 # ancient GNU ld didn't support --whole-archive et. al.
15749 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15750 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15752 whole_archive_flag_spec=
15754 supports_anon_versioning=no
15755 case `$LD -v 2>&1` in
15756 *GNU\ gold*) supports_anon_versioning=yes ;;
15757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15760 *\ 2.11.*) ;; # other 2.11 versions
15761 *) supports_anon_versioning=yes ;;
15764 # See if GNU ld supports shared libraries.
15767 # On AIX/PPC, the GNU linker is very broken
15768 if test "$host_cpu" != ia64; then
15772 *** Warning: the GNU linker, at least up to release 2.19, is reported
15773 *** to be unable to reliably create shared libraries on AIX.
15774 *** Therefore, libtool is disabling shared libraries support. If you
15775 *** really care for shared libraries, you may want to install binutils
15776 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15777 *** You will then need to restart the configuration process.
15786 # see comment about AmigaOS4 .so support
15787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788 archive_expsym_cmds=''
15791 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)'
15792 hardcode_libdir_flag_spec='-L$libdir'
15793 hardcode_minus_L=yes
15799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15800 allow_undefined_flag=unsupported
15801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15802 # support --undefined. This deserves some investigation. FIXME
15803 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 cygwin* | mingw* | pw32* | cegcc*)
15810 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15811 # as there is no search path for DLLs.
15812 hardcode_libdir_flag_spec='-L$libdir'
15813 export_dynamic_flag_spec='${wl}--export-all-symbols'
15814 allow_undefined_flag=unsupported
15815 always_export_symbols=no
15816 enable_shared_with_static_runtimes=yes
15817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15821 # If the export-symbols file already is a .def file (1st line
15822 # is EXPORTS), use it as is; otherwise, prepend...
15823 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15824 cp $export_symbols $output_objdir/$soname.def;
15826 echo EXPORTS > $output_objdir/$soname.def;
15827 cat $export_symbols >> $output_objdir/$soname.def;
15829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 link_all_deplibs=yes
15842 hardcode_shlibpath_var=no
15843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15844 export_dynamic_flag_spec='${wl}-E'
15845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15846 # Instead, shared libraries are loaded at an image base (0x10000000 by
15847 # default) and relocated if they conflict, which is a slow very memory
15848 # consuming and fragmenting process. To avoid this, we pick a random,
15849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15852 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'
15855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15857 if test "$host_os" = linux-dietlibc; then
15858 case $cc_basename in
15859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15863 && test "$tmp_diet" = no
15866 tmp_sharedflag='-shared'
15867 case $cc_basename,$host_cpu in
15868 pgcc*) # Portland Group C compiler
15869 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15870 tmp_addflag=' $pic_flag'
15872 pgf77* | pgf90* | pgf95* | pgfortran*)
15873 # Portland Group f77 and f90 compilers
15874 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15875 tmp_addflag=' $pic_flag -Mnomain' ;;
15876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15877 tmp_addflag=' -i_dynamic' ;;
15878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15879 tmp_addflag=' -i_dynamic -nofor_main' ;;
15880 ifc* | ifort*) # Intel Fortran compiler
15881 tmp_addflag=' -nofor_main' ;;
15882 lf95*) # Lahey Fortran 8.1
15883 whole_archive_flag_spec=
15884 tmp_sharedflag='--shared' ;;
15885 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15886 tmp_sharedflag='-qmkshrobj'
15888 nvcc*) # Cuda Compiler Driver 2.2
15889 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15890 compiler_needs_object=yes
15893 case `$CC -V 2>&1 | sed 5q` in
15894 *Sun\ C*) # Sun C 5.9
15895 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15896 compiler_needs_object=yes
15897 tmp_sharedflag='-G' ;;
15898 *Sun\ F*) # Sun Fortran 8.3
15899 tmp_sharedflag='-G' ;;
15901 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903 if test "x$supports_anon_versioning" = xyes; then
15904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15906 echo "local: *; };" >> $output_objdir/$libname.ver~
15907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15910 case $cc_basename in
15911 xlf* | bgf* | bgxlf* | mpixlf*)
15912 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15913 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15914 hardcode_libdir_flag_spec=
15915 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15916 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15917 if test "x$supports_anon_versioning" = xyes; then
15918 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15920 echo "local: *; };" >> $output_objdir/$libname.ver~
15921 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15932 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15941 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15945 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15946 *** create shared libraries on Solaris systems. Therefore, libtool
15947 *** is disabling shared libraries support. We urge you to upgrade GNU
15948 *** binutils to release 2.9.1 or newer. Another option is to modify
15949 *** your PATH or compiler configuration so that the native linker is
15950 *** used, and then restart.
15953 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15962 case `$LD -v 2>&1` in
15963 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15967 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15968 *** reliably create shared libraries on SCO systems. Therefore, libtool
15969 *** is disabling shared libraries support. We urge you to upgrade GNU
15970 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15971 *** your PATH or compiler configuration so that the native linker is
15972 *** used, and then restart.
15977 # For security reasons, it is highly recommended that you always
15978 # use absolute paths for naming shared libraries, and exclude the
15979 # DT_RUNPATH tag from executables and libraries. But doing so
15980 # requires that you compile everything twice, which is a pain.
15981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15993 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15995 hardcode_direct=yes
15996 hardcode_shlibpath_var=no
16000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16009 if test "$ld_shlibs" = no; then
16011 hardcode_libdir_flag_spec=
16012 export_dynamic_flag_spec=
16013 whole_archive_flag_spec=
16016 # PORTME fill in a description of your system's linker (not GNU ld)
16019 allow_undefined_flag=unsupported
16020 always_export_symbols=yes
16021 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'
16022 # Note: this linker hardcodes the directories in LIBPATH if there
16023 # are no directories specified by -L.
16024 hardcode_minus_L=yes
16025 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16026 # Neither direct hardcoding nor static linking is supported with a
16028 hardcode_direct=unsupported
16033 if test "$host_cpu" = ia64; then
16034 # On IA64, the linker does run time linking by default, so we don't
16035 # have to do anything special.
16036 aix_use_runtimelinking=no
16037 exp_sym_flag='-Bexport'
16040 # If we're using GNU nm, then we don't want the "-C" option.
16041 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16042 # Also, AIX nm treats weak defined symbols like other global
16043 # defined symbols, whereas GNU nm marks them as "W".
16044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16045 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16047 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'
16049 aix_use_runtimelinking=no
16051 # Test if we are trying to use run time linking or normal
16052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16053 # need to do runtime linking.
16054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16055 for ld_flag in $LDFLAGS; do
16056 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16057 aix_use_runtimelinking=yes
16064 exp_sym_flag='-bexport'
16065 no_entry_flag='-bnoentry'
16068 # When large executables or shared objects are built, AIX ld can
16069 # have problems creating the table of contents. If linking a library
16070 # or program results in "error TOC overflow" add -mminimal-toc to
16071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16075 hardcode_direct=yes
16076 hardcode_direct_absolute=yes
16077 hardcode_libdir_separator=':'
16078 link_all_deplibs=yes
16079 file_list_spec='${wl}-f,'
16081 if test "$GCC" = yes; then
16082 case $host_os in aix4.[012]|aix4.[012].*)
16083 # We only want to do this on AIX 4.2 and lower, the check
16084 # below for broken collect2 doesn't work under 4.3+
16085 collect2name=`${CC} -print-prog-name=collect2`
16086 if test -f "$collect2name" &&
16087 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16089 # We have reworked collect2
16092 # We have old collect2
16093 hardcode_direct=unsupported
16094 # It fails to find uninstalled libraries when the uninstalled
16095 # path is not listed in the libpath. Setting hardcode_minus_L
16096 # to unsupported forces relinking
16097 hardcode_minus_L=yes
16098 hardcode_libdir_flag_spec='-L$libdir'
16099 hardcode_libdir_separator=
16103 shared_flag='-shared'
16104 if test "$aix_use_runtimelinking" = yes; then
16105 shared_flag="$shared_flag "'${wl}-G'
16109 if test "$host_cpu" = ia64; then
16110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16111 # chokes on -Wl,-G. The following line is correct:
16114 if test "$aix_use_runtimelinking" = yes; then
16115 shared_flag='${wl}-G'
16117 shared_flag='${wl}-bM:SRE'
16122 export_dynamic_flag_spec='${wl}-bexpall'
16123 # It seems that -bexpall does not export symbols beginning with
16124 # underscore (_), so it is better to generate a list of symbols to export.
16125 always_export_symbols=yes
16126 if test "$aix_use_runtimelinking" = yes; then
16127 # Warning - without using the other runtime loading flags (-brtl),
16128 # -berok will link without error, but may produce a broken library.
16129 allow_undefined_flag='-berok'
16130 # Determine the default libpath from the value encoded in an
16131 # empty executable.
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16143 if ac_fn_c_try_link "$LINENO"; then :
16145 lt_aix_libpath_sed='
16146 /Import File Strings/,/^$/ {
16152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16153 # Check for a 64-bit object if we didn't find anything.
16154 if test -z "$aix_libpath"; then
16155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16163 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16165 if test "$host_cpu" = ia64; then
16166 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16167 allow_undefined_flag="-z nodefs"
16168 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"
16170 # Determine the default libpath from the value encoded in an
16171 # empty executable.
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16183 if ac_fn_c_try_link "$LINENO"; then :
16185 lt_aix_libpath_sed='
16186 /Import File Strings/,/^$/ {
16192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16193 # Check for a 64-bit object if we didn't find anything.
16194 if test -z "$aix_libpath"; then
16195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16198 rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16203 # Warning - without using the other run time loading flags,
16204 # -berok will link without error, but may produce a broken library.
16205 no_undefined_flag=' ${wl}-bernotok'
16206 allow_undefined_flag=' ${wl}-berok'
16207 if test "$with_gnu_ld" = yes; then
16208 # We only use this code for GNU lds that support --whole-archive.
16209 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16211 # Exported symbols can be pulled into shared objects from archives
16212 whole_archive_flag_spec='$convenience'
16214 archive_cmds_need_lc=yes
16215 # This is similar to how AIX traditionally builds its shared libraries.
16216 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'
16224 # see comment about AmigaOS4 .so support
16225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 archive_expsym_cmds=''
16229 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)'
16230 hardcode_libdir_flag_spec='-L$libdir'
16231 hardcode_minus_L=yes
16237 export_dynamic_flag_spec=-rdynamic
16240 cygwin* | mingw* | pw32* | cegcc*)
16241 # When not using gcc, we currently assume that we are using
16242 # Microsoft Visual C++.
16243 # hardcode_libdir_flag_spec is actually meaningless, as there is
16244 # no search path for DLLs.
16245 hardcode_libdir_flag_spec=' '
16246 allow_undefined_flag=unsupported
16247 # Tell ltmain to make .lib files, not .a files.
16249 # Tell ltmain to make .dll files, not .so files.
16251 # FIXME: Setting linknames here is a bad hack.
16252 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16253 # The linker will automatically build a .lib file if we build a DLL.
16254 old_archive_from_new_cmds='true'
16255 # FIXME: Should let the user specify the lib program.
16256 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16257 fix_srcfile_path='`cygpath -w "$srcfile"`'
16258 enable_shared_with_static_runtimes=yes
16261 darwin* | rhapsody*)
16264 archive_cmds_need_lc=no
16266 hardcode_automatic=yes
16267 hardcode_shlibpath_var=unsupported
16268 if test "$lt_cv_ld_force_load" = "yes"; then
16269 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16271 whole_archive_flag_spec=''
16273 link_all_deplibs=yes
16274 allow_undefined_flag="$_lt_dar_allow_undefined"
16275 case $cc_basename in
16276 ifort*) _lt_dar_can_shared=yes ;;
16277 *) _lt_dar_can_shared=$GCC ;;
16279 if test "$_lt_dar_can_shared" = "yes"; then
16280 output_verbose_link_cmd=func_echo_all
16281 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16282 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16283 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}"
16284 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}"
16293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16294 hardcode_libdir_flag_spec='-L$libdir'
16295 hardcode_shlibpath_var=no
16298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16299 # support. Future versions do this automatically, but an explicit c++rt0.o
16300 # does not break anything, and helps significantly (at the cost of a little
16303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16304 hardcode_libdir_flag_spec='-R$libdir'
16305 hardcode_direct=yes
16306 hardcode_shlibpath_var=no
16309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_direct=yes
16313 hardcode_minus_L=yes
16314 hardcode_shlibpath_var=no
16317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16318 freebsd* | dragonfly*)
16319 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16320 hardcode_libdir_flag_spec='-R$libdir'
16321 hardcode_direct=yes
16322 hardcode_shlibpath_var=no
16326 if test "$GCC" = yes; then
16327 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'
16329 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'
16331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16332 hardcode_libdir_separator=:
16333 hardcode_direct=yes
16335 # hardcode_minus_L: Not really in the search PATH,
16336 # but as the default location of the library.
16337 hardcode_minus_L=yes
16338 export_dynamic_flag_spec='${wl}-E'
16342 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16347 if test "$with_gnu_ld" = no; then
16348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16349 hardcode_libdir_flag_spec_ld='+b $libdir'
16350 hardcode_libdir_separator=:
16351 hardcode_direct=yes
16352 hardcode_direct_absolute=yes
16353 export_dynamic_flag_spec='${wl}-E'
16354 # hardcode_minus_L: Not really in the search PATH,
16355 # but as the default location of the library.
16356 hardcode_minus_L=yes
16361 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16364 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16370 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16379 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16383 # Older versions of the 11.00 compiler do not understand -b yet
16384 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16386 $as_echo_n "checking if $CC understands -b... " >&6; }
16387 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16388 $as_echo_n "(cached) " >&6
16390 lt_cv_prog_compiler__b=no
16391 save_LDFLAGS="$LDFLAGS"
16392 LDFLAGS="$LDFLAGS -b"
16393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16395 # The linker can only warn and ignore the option if not recognized
16396 # So say no if there are warnings
16397 if test -s conftest.err; then
16398 # Append any errors to the config.log.
16399 cat conftest.err 1>&5
16400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16402 if diff conftest.exp conftest.er2 >/dev/null; then
16403 lt_cv_prog_compiler__b=yes
16406 lt_cv_prog_compiler__b=yes
16410 LDFLAGS="$save_LDFLAGS"
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16414 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16416 if test x"$lt_cv_prog_compiler__b" = xyes; then
16417 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16425 if test "$with_gnu_ld" = no; then
16426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16427 hardcode_libdir_separator=:
16432 hardcode_shlibpath_var=no
16435 hardcode_direct=yes
16436 hardcode_direct_absolute=yes
16437 export_dynamic_flag_spec='${wl}-E'
16439 # hardcode_minus_L: Not really in the search PATH,
16440 # but as the default location of the library.
16441 hardcode_minus_L=yes
16447 irix5* | irix6* | nonstopux*)
16448 if test "$GCC" = yes; then
16449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16450 # Try to use the -exported_symbol ld option, if it does not
16451 # work, assume that -exports_file does not work either and
16452 # implicitly export all symbols.
16453 save_LDFLAGS="$LDFLAGS"
16454 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16459 if ac_fn_c_try_link "$LINENO"; then :
16460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16463 rm -f core conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16465 LDFLAGS="$save_LDFLAGS"
16467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16470 archive_cmds_need_lc='no'
16471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16472 hardcode_libdir_separator=:
16474 link_all_deplibs=yes
16478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16481 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16483 hardcode_libdir_flag_spec='-R$libdir'
16484 hardcode_direct=yes
16485 hardcode_shlibpath_var=no
16489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_direct=yes
16491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16492 hardcode_libdir_separator=:
16493 hardcode_shlibpath_var=no
16500 if test -f /usr/libexec/ld.so; then
16501 hardcode_direct=yes
16502 hardcode_shlibpath_var=no
16503 hardcode_direct_absolute=yes
16504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16507 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16508 export_dynamic_flag_spec='${wl}-E'
16511 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_libdir_flag_spec='-R$libdir'
16516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16527 hardcode_libdir_flag_spec='-L$libdir'
16528 hardcode_minus_L=yes
16529 allow_undefined_flag=unsupported
16530 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'
16531 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16535 if test "$GCC" = yes; then
16536 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16537 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16539 allow_undefined_flag=' -expect_unresolved \*'
16540 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16542 archive_cmds_need_lc='no'
16543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16544 hardcode_libdir_separator=:
16547 osf4* | osf5*) # as osf3* with the addition of -msym flag
16548 if test "$GCC" = yes; then
16549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16550 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16553 allow_undefined_flag=' -expect_unresolved \*'
16554 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16555 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~
16556 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16558 # Both c and cxx compiler support -rpath directly
16559 hardcode_libdir_flag_spec='-rpath $libdir'
16561 archive_cmds_need_lc='no'
16562 hardcode_libdir_separator=:
16566 no_undefined_flag=' -z defs'
16567 if test "$GCC" = yes; then
16569 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16570 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16571 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16573 case `$CC -V 2>&1` in
16576 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16582 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16584 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16588 hardcode_libdir_flag_spec='-R$libdir'
16589 hardcode_shlibpath_var=no
16591 solaris2.[0-5] | solaris2.[0-5].*) ;;
16593 # The compiler driver will combine and reorder linker options,
16594 # but understands `-z linker_flag'. GCC discards it without `$wl',
16595 # but is careful enough not to reorder.
16596 # Supported since Solaris 2.6 (maybe 2.5.1?)
16597 if test "$GCC" = yes; then
16598 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16600 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16604 link_all_deplibs=yes
16608 if test "x$host_vendor" = xsequent; then
16609 # Use $CC to link under sequent, because it throws in some extra .o
16610 # files that make .init and .fini sections work.
16611 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16613 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_libdir_flag_spec='-L$libdir'
16616 hardcode_direct=yes
16617 hardcode_minus_L=yes
16618 hardcode_shlibpath_var=no
16622 case $host_vendor in
16624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct=yes # is this really true???
16628 ## LD is ld it makes a PLAMLIB
16629 ## CC just makes a GrossModule.
16630 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16631 reload_cmds='$CC -r -o $output$reload_objs'
16635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16639 runpath_var='LD_RUN_PATH'
16640 hardcode_shlibpath_var=no
16644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645 hardcode_shlibpath_var=no
16646 export_dynamic_flag_spec='-Bexport'
16650 if test -d /usr/nec; then
16651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_shlibpath_var=no
16653 runpath_var=LD_RUN_PATH
16654 hardcode_runpath_var=yes
16659 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16660 no_undefined_flag='${wl}-z,text'
16661 archive_cmds_need_lc=no
16662 hardcode_shlibpath_var=no
16663 runpath_var='LD_RUN_PATH'
16665 if test "$GCC" = yes; then
16666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 sysv5* | sco3.2v5* | sco5v6*)
16675 # Note: We can NOT use -z defs as we might desire, because we do not
16676 # link with -lc, and that would cause any symbols used from libc to
16677 # always be unresolved, which means just about no library would
16678 # ever link correctly. If we're not using GNU ld we use -z text
16679 # though, which does catch some bad symbols but isn't as heavy-handed
16681 no_undefined_flag='${wl}-z,text'
16682 allow_undefined_flag='${wl}-z,nodefs'
16683 archive_cmds_need_lc=no
16684 hardcode_shlibpath_var=no
16685 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16686 hardcode_libdir_separator=':'
16687 link_all_deplibs=yes
16688 export_dynamic_flag_spec='${wl}-Bexport'
16689 runpath_var='LD_RUN_PATH'
16691 if test "$GCC" = yes; then
16692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16702 hardcode_libdir_flag_spec='-L$libdir'
16703 hardcode_shlibpath_var=no
16711 if test x$host_vendor = xsni; then
16713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16714 export_dynamic_flag_spec='${wl}-Blargedynsym'
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16721 $as_echo "$ld_shlibs" >&6; }
16722 test "$ld_shlibs" = no && can_build_shared=no
16724 with_gnu_ld=$with_gnu_ld
16741 # Do we need to explicitly link libc?
16743 case "x$archive_cmds_need_lc" in
16745 # Assume -lc should be added
16746 archive_cmds_need_lc=yes
16748 if test "$enable_shared" = yes && test "$GCC" = yes; then
16749 case $archive_cmds in
16751 # FIXME: we may have to deal with multi-command sequences.
16754 # Test whether the compiler implicitly links with -lc since on some
16755 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16756 # to ld, don't add -lc before -lgcc.
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16758 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16759 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16766 (eval $ac_compile) 2>&5
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; } 2>conftest.err; then
16772 libobjs=conftest.$ac_objext
16774 wl=$lt_prog_compiler_wl
16775 pic_flag=$lt_prog_compiler_pic
16781 lt_save_allow_undefined_flag=$allow_undefined_flag
16782 allow_undefined_flag=
16783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16784 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787 test $ac_status = 0; }
16789 lt_cv_archive_cmds_need_lc=no
16791 lt_cv_archive_cmds_need_lc=yes
16793 allow_undefined_flag=$lt_save_allow_undefined_flag
16795 cat conftest.err 1>&5
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16801 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16802 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16966 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16968 if test "$GCC" = yes; then
16970 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16971 *) lt_awk_arg="/^libraries:/" ;;
16974 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16975 *) lt_sed_strip_eq="s,=/,/,g" ;;
16977 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16978 case $lt_search_path_spec in
16980 # if the path contains ";" then we assume it to be the separator
16981 # otherwise default to the standard path separator (i.e. ":") - it is
16982 # assumed that no part of a normal pathname contains ";" but that should
16983 # okay in the real world where ";" in dirpaths is itself problematic.
16984 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16990 # Ok, now we have the path, separated by spaces, we can step through it
16991 # and add multilib dir if necessary.
16992 lt_tmp_lt_search_path_spec=
16993 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16994 for lt_sys_path in $lt_search_path_spec; do
16995 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16998 test -d "$lt_sys_path" && \
16999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17002 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17003 BEGIN {RS=" "; FS="/|\n";} {
17006 for (lt_i = NF; lt_i > 0; lt_i--) {
17007 if ($lt_i != "" && $lt_i != ".") {
17008 if ($lt_i == "..") {
17011 if (lt_count == 0) {
17012 lt_foo="/" $lt_i lt_foo;
17019 if (lt_foo != "") { lt_freq[lt_foo]++; }
17020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17022 # AWK program above erroneously prepends '/' to C:/dos/paths
17025 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17026 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17028 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17032 library_names_spec=
17033 libname_spec='lib$name'
17037 postuninstall_cmds=
17041 shlibpath_overrides_runpath=unknown
17043 dynamic_linker="$host_os ld.so"
17044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17045 need_lib_prefix=unknown
17046 hardcode_into_libs=no
17048 # when you set need_version to no, make sure it does not cause -set_version
17049 # flags to be left without arguments
17050 need_version=unknown
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17056 shlibpath_var=LIBPATH
17058 # AIX 3 has no versioning support, so we append a major version to the name.
17059 soname_spec='${libname}${release}${shared_ext}$major'
17066 hardcode_into_libs=yes
17067 if test "$host_cpu" = ia64; then
17068 # AIX 5 supports IA64
17069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17070 shlibpath_var=LD_LIBRARY_PATH
17072 # With GCC up to 2.95.x, collect2 would create an import file
17073 # for dependence libraries. The import file would start with
17074 # the line `#! .'. This would cause the generated library to
17075 # depend on `.', always an invalid library. This was fixed in
17076 # development snapshots of GCC prior to 3.0.
17078 aix4 | aix4.[01] | aix4.[01].*)
17079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17081 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17084 can_build_shared=no
17088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17089 # soname into executable. Probably we can add versioning support to
17090 # collect2, so additional links can be useful in future.
17091 if test "$aix_use_runtimelinking" = yes; then
17092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17093 # instead of lib<name>.a to let people know that these are not
17094 # typical AIX shared libraries.
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 # We preserve .a as extension for shared libraries through AIX4.2
17098 # and later when we are not doing run time linking.
17099 library_names_spec='${libname}${release}.a $libname.a'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17102 shlibpath_var=LIBPATH
17109 # Since July 2007 AmigaOS4 officially supports .so libraries.
17110 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17114 library_names_spec='$libname.ixlibrary $libname.a'
17115 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17116 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17122 library_names_spec='${libname}${shared_ext}'
17123 dynamic_linker="$host_os ld.so"
17124 shlibpath_var=LIBRARY_PATH
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 soname_spec='${libname}${release}${shared_ext}$major'
17132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133 shlibpath_var=LD_LIBRARY_PATH
17134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136 # the default ld.so.conf also contains /usr/contrib/lib and
17137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138 # libtool to hard-code these into programs
17141 cygwin* | mingw* | pw32* | cegcc*)
17142 version_type=windows
17147 case $GCC,$host_os in
17148 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17149 library_names_spec='$libname.dll.a'
17150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151 postinstall_cmds='base_file=`basename \${file}`~
17152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17153 dldir=$destdir/`dirname \$dlpath`~
17154 test -d \$dldir || mkdir -p \$dldir~
17155 $install_prog $dir/$dlname \$dldir/$dlname~
17156 chmod a+x \$dldir/$dlname~
17157 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17158 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17161 dlpath=$dir/\$dldll~
17163 shlibpath_overrides_runpath=yes
17167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17170 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17173 # MinGW DLLs use traditional 'lib' prefix
17174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17177 # pw32 DLLs use 'pw' prefix rather than 'lib'
17178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17187 dynamic_linker='Win32 ld.exe'
17188 # FIXME: first we should search . and the directory the executable is in
17192 darwin* | rhapsody*)
17193 dynamic_linker="$host_os dyld"
17194 version_type=darwin
17197 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17198 soname_spec='${libname}${release}${major}$shared_ext'
17199 shlibpath_overrides_runpath=yes
17200 shlibpath_var=DYLD_LIBRARY_PATH
17201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 shlibpath_var=LD_LIBRARY_PATH
17216 freebsd* | dragonfly*)
17217 # DragonFly does not have aout. When/if they implement a new
17218 # versioning mechanism, adjust this.
17219 if test -x /usr/bin/objformat; then
17220 objformat=`/usr/bin/objformat`
17223 freebsd[123]*) objformat=aout ;;
17224 *) objformat=elf ;;
17227 version_type=freebsd-$objformat
17228 case $version_type in
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17239 shlibpath_var=LD_LIBRARY_PATH
17242 shlibpath_overrides_runpath=yes
17244 freebsd3.[01]* | freebsdelf3.[01]*)
17245 shlibpath_overrides_runpath=yes
17246 hardcode_into_libs=yes
17248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17250 shlibpath_overrides_runpath=no
17251 hardcode_into_libs=yes
17253 *) # from 4.6 on, and DragonFly
17254 shlibpath_overrides_runpath=yes
17255 hardcode_into_libs=yes
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 hardcode_into_libs=yes
17274 dynamic_linker="$host_os runtime_loader"
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 shlibpath_var=LIBRARY_PATH
17278 shlibpath_overrides_runpath=yes
17279 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17280 hardcode_into_libs=yes
17283 hpux9* | hpux10* | hpux11*)
17284 # Give a soname corresponding to the major version so that dld.sl refuses to
17285 # link against other versions.
17292 hardcode_into_libs=yes
17293 dynamic_linker="$host_os dld.so"
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 if test "X$HPUX_IA64_MODE" = X32; then
17299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307 hardcode_into_libs=yes
17308 dynamic_linker="$host_os dld.sl"
17309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318 dynamic_linker="$host_os dld.sl"
17319 shlibpath_var=SHLIB_PATH
17320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17326 postinstall_cmds='chmod 555 $lib'
17327 # or fails outright, so override atomically:
17328 install_override_mode=555
17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336 soname_spec='${libname}${release}${shared_ext}$major'
17337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17338 shlibpath_var=LD_LIBRARY_PATH
17339 shlibpath_overrides_runpath=no
17340 hardcode_into_libs=yes
17343 irix5* | irix6* | nonstopux*)
17345 nonstopux*) version_type=nonstopux ;;
17347 if test "$lt_cv_prog_gnu_ld" = yes; then
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17358 irix5* | nonstopux*)
17359 libsuff= shlibsuff=
17362 case $LD in # libtool.m4 will add one of these switches to LD
17363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17364 libsuff= shlibsuff= libmagic=32-bit;;
17365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17366 libsuff=32 shlibsuff=N32 libmagic=N32;;
17367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17369 *) libsuff= shlibsuff= libmagic=never-match;;
17373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17374 shlibpath_overrides_runpath=no
17375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17377 hardcode_into_libs=yes
17380 # No shared lib support for Linux oldld, aout, or coff.
17381 linux*oldld* | linux*aout* | linux*coff*)
17385 # This must be Linux ELF.
17386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17393 shlibpath_var=LD_LIBRARY_PATH
17394 shlibpath_overrides_runpath=no
17396 # Some binutils ld are patched to set DT_RUNPATH
17397 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17398 $as_echo_n "(cached) " >&6
17400 lt_cv_shlibpath_overrides_runpath=no
17401 save_LDFLAGS=$LDFLAGS
17402 save_libdir=$libdir
17403 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17404 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17416 if ac_fn_c_try_link "$LINENO"; then :
17417 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17418 lt_cv_shlibpath_overrides_runpath=yes
17421 rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LDFLAGS=$save_LDFLAGS
17424 libdir=$save_libdir
17428 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17430 # This implies no fast_install, which is unacceptable.
17431 # Some rework will be needed to allow for fast_install
17432 # before this can be enabled.
17433 hardcode_into_libs=yes
17435 # Append ld.so.conf contents to the search path
17436 if test -f /etc/ld.so.conf; then
17437 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;s/"//g;/^$/d' | tr '\n' ' '`
17438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441 # We used to test for /lib/ld.so.1 and disable shared libraries on
17442 # powerpc, because MkLinux only supported shared libraries with the
17443 # GNU dynamic linker. Since this was broken with cross compilers,
17444 # most powerpc-linux boxes support dynamic linking these days and
17445 # people can always --disable-shared, the test was removed, and we
17446 # assume the GNU/Linux dynamic linker is in use.
17447 dynamic_linker='GNU/Linux ld.so'
17454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17457 dynamic_linker='NetBSD (a.out) ld.so'
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17460 soname_spec='${libname}${release}${shared_ext}$major'
17461 dynamic_linker='NetBSD ld.elf_so'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=yes
17465 hardcode_into_libs=yes
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath=yes
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=no
17483 hardcode_into_libs=yes
17484 dynamic_linker='ldqnx.so'
17489 sys_lib_dlsearch_path_spec="/usr/lib"
17491 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17493 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17494 *) need_version=no ;;
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17498 shlibpath_var=LD_LIBRARY_PATH
17499 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17501 openbsd2.[89] | openbsd2.[89].*)
17502 shlibpath_overrides_runpath=no
17505 shlibpath_overrides_runpath=yes
17509 shlibpath_overrides_runpath=yes
17514 libname_spec='$name'
17517 library_names_spec='$libname${shared_ext} $libname.a'
17518 dynamic_linker='OS/2 ld.exe'
17519 shlibpath_var=LIBPATH
17522 osf3* | osf4* | osf5*)
17526 soname_spec='${libname}${release}${shared_ext}$major'
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 hardcode_into_libs=yes
17546 # ldd complains unless libraries are executable
17547 postinstall_cmds='chmod +x $lib'
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17554 shlibpath_var=LD_LIBRARY_PATH
17555 shlibpath_overrides_runpath=yes
17556 if test "$with_gnu_ld" = yes; then
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 case $host_vendor in
17569 shlibpath_overrides_runpath=no
17571 runpath_var=LD_RUN_PATH
17579 shlibpath_overrides_runpath=no
17580 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17586 if test -d /usr/nec ;then
17588 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17589 soname_spec='$libname${shared_ext}.$major'
17590 shlibpath_var=LD_LIBRARY_PATH
17594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17595 version_type=freebsd-elf
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=yes
17602 hardcode_into_libs=yes
17603 if test "$with_gnu_ld" = yes; then
17604 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17606 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17609 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17613 sys_lib_dlsearch_path_spec='/usr/lib'
17617 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath=no
17624 hardcode_into_libs=yes
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 shlibpath_var=LD_LIBRARY_PATH
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17639 $as_echo "$dynamic_linker" >&6; }
17640 test "$dynamic_linker" = no && can_build_shared=no
17642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17643 if test "$GCC" = yes; then
17644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17647 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17648 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17650 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17651 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17748 if test -n "$hardcode_libdir_flag_spec" ||
17749 test -n "$runpath_var" ||
17750 test "X$hardcode_automatic" = "Xyes" ; then
17752 # We can hardcode non-existent directories.
17753 if test "$hardcode_direct" != no &&
17754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17755 # have to relink, otherwise we might link with an installed library
17756 # when we should be linking with a yet-to-be-installed one
17757 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17758 test "$hardcode_minus_L" != no; then
17759 # Linking always hardcodes the temporary library directory.
17760 hardcode_action=relink
17762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17763 hardcode_action=immediate
17766 # We cannot hardcode anything, or else we can only hardcode existing
17768 hardcode_action=unsupported
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17771 $as_echo "$hardcode_action" >&6; }
17773 if test "$hardcode_action" = relink ||
17774 test "$inherit_rpath" = yes; then
17775 # Fast installation is not supported
17776 enable_fast_install=no
17777 elif test "$shlibpath_overrides_runpath" = yes ||
17778 test "$enable_shared" = no; then
17779 # Fast installation is not necessary
17780 enable_fast_install=needless
17788 if test "x$enable_dlopen" != xyes; then
17789 enable_dlopen=unknown
17790 enable_dlopen_self=unknown
17791 enable_dlopen_self_static=unknown
17798 lt_cv_dlopen="load_add_on"
17800 lt_cv_dlopen_self=yes
17803 mingw* | pw32* | cegcc*)
17804 lt_cv_dlopen="LoadLibrary"
17809 lt_cv_dlopen="dlopen"
17814 # if libdl is installed we need to link against it
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17816 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17817 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17820 ac_check_lib_save_LIBS=$LIBS
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17825 /* Override any GCC internal prototype to avoid an error.
17826 Use char because int might match the return type of a GCC
17827 builtin and then its argument prototype would still apply. */
17840 if ac_fn_c_try_link "$LINENO"; then :
17841 ac_cv_lib_dl_dlopen=yes
17843 ac_cv_lib_dl_dlopen=no
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17851 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17855 lt_cv_dlopen="dyld"
17857 lt_cv_dlopen_self=yes
17864 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17865 if test "x$ac_cv_func_shl_load" = x""yes; then :
17866 lt_cv_dlopen="shl_load"
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17869 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17870 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17871 $as_echo_n "(cached) " >&6
17873 ac_check_lib_save_LIBS=$LIBS
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17888 return shl_load ();
17893 if ac_fn_c_try_link "$LINENO"; then :
17894 ac_cv_lib_dld_shl_load=yes
17896 ac_cv_lib_dld_shl_load=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17903 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17904 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17905 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17907 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17908 if test "x$ac_cv_func_dlopen" = x""yes; then :
17909 lt_cv_dlopen="dlopen"
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17912 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17916 ac_check_lib_save_LIBS=$LIBS
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17936 if ac_fn_c_try_link "$LINENO"; then :
17937 ac_cv_lib_dl_dlopen=yes
17939 ac_cv_lib_dl_dlopen=no
17941 rm -f core conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17946 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17947 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17951 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17952 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lsvld $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_svld_dlopen=yes
17978 ac_cv_lib_svld_dlopen=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17985 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17986 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17990 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17992 $as_echo_n "(cached) " >&6
17994 ac_check_lib_save_LIBS=$LIBS
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17999 /* Override any GCC internal prototype to avoid an error.
18000 Use char because int might match the return type of a GCC
18001 builtin and then its argument prototype would still apply. */
18009 return dld_link ();
18014 if ac_fn_c_try_link "$LINENO"; then :
18015 ac_cv_lib_dld_dld_link=yes
18017 ac_cv_lib_dld_dld_link=no
18019 rm -f core conftest.err conftest.$ac_objext \
18020 conftest$ac_exeext conftest.$ac_ext
18021 LIBS=$ac_check_lib_save_LIBS
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18025 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18026 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18047 if test "x$lt_cv_dlopen" != xno; then
18053 case $lt_cv_dlopen in
18055 save_CPPFLAGS="$CPPFLAGS"
18056 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18058 save_LDFLAGS="$LDFLAGS"
18059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18062 LIBS="$lt_cv_dlopen_libs $LIBS"
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18066 if test "${lt_cv_dlopen_self+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18069 if test "$cross_compiling" = yes; then :
18070 lt_cv_dlopen_self=cross
18072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18073 lt_status=$lt_dlunknown
18074 cat > conftest.$ac_ext <<_LT_EOF
18075 #line 18075 "configure"
18076 #include "confdefs.h"
18085 # define LT_DLGLOBAL RTLD_GLOBAL
18088 # define LT_DLGLOBAL DL_GLOBAL
18090 # define LT_DLGLOBAL 0
18094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18095 find out it does not work in some platform. */
18096 #ifndef LT_DLLAZY_OR_NOW
18098 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18101 # define LT_DLLAZY_OR_NOW DL_LAZY
18104 # define LT_DLLAZY_OR_NOW RTLD_NOW
18107 # define LT_DLLAZY_OR_NOW DL_NOW
18109 # define LT_DLLAZY_OR_NOW 0
18116 /* When -fvisbility=hidden is used, assume the code has been annotated
18117 correspondingly for the symbols needed. */
18118 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18119 void fnord () __attribute__((visibility("default")));
18122 void fnord () { int i=42; }
18125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18126 int status = $lt_dlunknown;
18130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18134 else puts (dlerror ());
18136 /* dlclose (self); */
18144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18145 (eval $ac_link) 2>&5
18147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18148 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18149 (./conftest; exit; ) >&5 2>/dev/null
18151 case x$lt_status in
18152 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18153 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18154 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18157 # compilation failed
18158 lt_cv_dlopen_self=no
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18166 $as_echo "$lt_cv_dlopen_self" >&6; }
18168 if test "x$lt_cv_dlopen_self" = xyes; then
18169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18172 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18175 if test "$cross_compiling" = yes; then :
18176 lt_cv_dlopen_self_static=cross
18178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18179 lt_status=$lt_dlunknown
18180 cat > conftest.$ac_ext <<_LT_EOF
18181 #line 18181 "configure"
18182 #include "confdefs.h"
18191 # define LT_DLGLOBAL RTLD_GLOBAL
18194 # define LT_DLGLOBAL DL_GLOBAL
18196 # define LT_DLGLOBAL 0
18200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18201 find out it does not work in some platform. */
18202 #ifndef LT_DLLAZY_OR_NOW
18204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18207 # define LT_DLLAZY_OR_NOW DL_LAZY
18210 # define LT_DLLAZY_OR_NOW RTLD_NOW
18213 # define LT_DLLAZY_OR_NOW DL_NOW
18215 # define LT_DLLAZY_OR_NOW 0
18222 /* When -fvisbility=hidden is used, assume the code has been annotated
18223 correspondingly for the symbols needed. */
18224 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18225 void fnord () __attribute__((visibility("default")));
18228 void fnord () { int i=42; }
18231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18232 int status = $lt_dlunknown;
18236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18239 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18240 else puts (dlerror ());
18242 /* dlclose (self); */
18250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18251 (eval $ac_link) 2>&5
18253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18255 (./conftest; exit; ) >&5 2>/dev/null
18257 case x$lt_status in
18258 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18259 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18260 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18263 # compilation failed
18264 lt_cv_dlopen_self_static=no
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18275 CPPFLAGS="$save_CPPFLAGS"
18276 LDFLAGS="$save_LDFLAGS"
18281 case $lt_cv_dlopen_self in
18282 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18283 *) enable_dlopen_self=unknown ;;
18286 case $lt_cv_dlopen_self_static in
18287 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18288 *) enable_dlopen_self_static=unknown ;;
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18313 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18314 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18318 # FIXME - insert some real tests, host_os isn't really good enough
18321 if test -n "$STRIP" ; then
18322 striplib="$STRIP -x"
18323 old_striplib="$STRIP -S"
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18349 # Report which library types will actually be built
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18353 $as_echo "$can_build_shared" >&6; }
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18356 $as_echo_n "checking whether to build shared libraries... " >&6; }
18357 test "$can_build_shared" = "no" && enable_shared=no
18359 # On AIX, shared libraries and static libraries use the same namespace, and
18360 # are all built from PIC.
18363 test "$enable_shared" = yes && enable_static=no
18364 if test -n "$RANLIB"; then
18365 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18366 postinstall_cmds='$RANLIB $lib'
18371 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18372 test "$enable_shared" = yes && enable_static=no
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18377 $as_echo "$enable_shared" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18380 $as_echo_n "checking whether to build static libraries... " >&6; }
18381 # Make sure either enable_shared or enable_static is yes.
18382 test "$enable_shared" = yes || enable_static=yes
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18384 $as_echo "$enable_static" >&6; }
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18398 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18399 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18400 (test "X$CXX" != "Xg++"))) ; then
18402 ac_cpp='$CXXCPP $CPPFLAGS'
18403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18407 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18408 if test -z "$CXXCPP"; then
18409 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18412 # Double quotes because CXXCPP needs to be expanded
18413 for CXXCPP in "$CXX -E" "/lib/cpp"
18415 ac_preproc_ok=false
18416 for ac_cxx_preproc_warn_flag in '' yes
18418 # Use a header file that comes with gcc, so configuring glibc
18419 # with a fresh cross-compiler works.
18420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 # <limits.h> exists even on freestanding compilers.
18422 # On the NeXT, cc -E runs the code through the compiler's parser,
18423 # not just through cpp. "Syntax error" is here to catch this case.
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18427 # include <limits.h>
18429 # include <assert.h>
18433 if ac_fn_cxx_try_cpp "$LINENO"; then :
18436 # Broken: fails on valid input.
18439 rm -f conftest.err conftest.$ac_ext
18441 # OK, works on sane cases. Now check whether nonexistent headers
18442 # can be detected and how.
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445 #include <ac_nonexistent.h>
18447 if ac_fn_cxx_try_cpp "$LINENO"; then :
18448 # Broken: success on invalid input.
18451 # Passes both tests.
18455 rm -f conftest.err conftest.$ac_ext
18458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18459 rm -f conftest.err conftest.$ac_ext
18460 if $ac_preproc_ok; then :
18465 ac_cv_prog_CXXCPP=$CXXCPP
18468 CXXCPP=$ac_cv_prog_CXXCPP
18470 ac_cv_prog_CXXCPP=$CXXCPP
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18473 $as_echo "$CXXCPP" >&6; }
18474 ac_preproc_ok=false
18475 for ac_cxx_preproc_warn_flag in '' yes
18477 # Use a header file that comes with gcc, so configuring glibc
18478 # with a fresh cross-compiler works.
18479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18480 # <limits.h> exists even on freestanding compilers.
18481 # On the NeXT, cc -E runs the code through the compiler's parser,
18482 # not just through cpp. "Syntax error" is here to catch this case.
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18486 # include <limits.h>
18488 # include <assert.h>
18492 if ac_fn_cxx_try_cpp "$LINENO"; then :
18495 # Broken: fails on valid input.
18498 rm -f conftest.err conftest.$ac_ext
18500 # OK, works on sane cases. Now check whether nonexistent headers
18501 # can be detected and how.
18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18504 #include <ac_nonexistent.h>
18506 if ac_fn_cxx_try_cpp "$LINENO"; then :
18507 # Broken: success on invalid input.
18510 # Passes both tests.
18514 rm -f conftest.err conftest.$ac_ext
18517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18518 rm -f conftest.err conftest.$ac_ext
18519 if $ac_preproc_ok; then :
18522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18524 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18525 See \`config.log' for more details." "$LINENO" 5; }
18529 ac_cpp='$CPP $CPPFLAGS'
18530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18535 _lt_caught_CXX_error=yes
18539 ac_cpp='$CXXCPP $CPPFLAGS'
18540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18544 archive_cmds_need_lc_CXX=no
18545 allow_undefined_flag_CXX=
18546 always_export_symbols_CXX=no
18547 archive_expsym_cmds_CXX=
18548 compiler_needs_object_CXX=no
18549 export_dynamic_flag_spec_CXX=
18550 hardcode_direct_CXX=no
18551 hardcode_direct_absolute_CXX=no
18552 hardcode_libdir_flag_spec_CXX=
18553 hardcode_libdir_flag_spec_ld_CXX=
18554 hardcode_libdir_separator_CXX=
18555 hardcode_minus_L_CXX=no
18556 hardcode_shlibpath_var_CXX=unsupported
18557 hardcode_automatic_CXX=no
18558 inherit_rpath_CXX=no
18560 module_expsym_cmds_CXX=
18561 link_all_deplibs_CXX=unknown
18562 old_archive_cmds_CXX=$old_archive_cmds
18563 reload_flag_CXX=$reload_flag
18564 reload_cmds_CXX=$reload_cmds
18565 no_undefined_flag_CXX=
18566 whole_archive_flag_spec_CXX=
18567 enable_shared_with_static_runtimes_CXX=no
18569 # Source file extension for C++ test sources.
18572 # Object file extension for compiled C++ test sources.
18576 # No sense in running all these tests if we already determined that
18577 # the CXX compiler isn't working. Some variables (like enable_shared)
18578 # are currently assumed to apply to all compilers on this platform,
18579 # and will be corrupted by setting them based on a non-working compiler.
18580 if test "$_lt_caught_CXX_error" != yes; then
18581 # Code to be used in simple compile tests
18582 lt_simple_compile_test_code="int some_variable = 0;"
18584 # Code to be used in simple link tests
18585 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18594 # If no C compiler was specified, use CC.
18597 # If no C compiler flags were specified, use CFLAGS.
18598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18600 # Allow CC to be a program name with arguments.
18604 # save warnings/boilerplate of simple test code
18605 ac_outfile=conftest.$ac_objext
18606 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18608 _lt_compiler_boilerplate=`cat conftest.err`
18611 ac_outfile=conftest.$ac_objext
18612 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18614 _lt_linker_boilerplate=`cat conftest.err`
18618 # Allow CC to be a program name with arguments.
18623 lt_save_with_gnu_ld=$with_gnu_ld
18624 lt_save_path_LD=$lt_cv_path_LD
18625 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18626 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18628 $as_unset lt_cv_prog_gnu_ld
18630 if test -n "${lt_cv_path_LDCXX+set}"; then
18631 lt_cv_path_LD=$lt_cv_path_LDCXX
18633 $as_unset lt_cv_path_LD
18635 test -z "${LDCXX+set}" || LD=$LDCXX
18639 for cc_temp in $compiler""; do
18641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18647 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18650 if test -n "$compiler"; then
18651 # We don't want -fno-exception when compiling C++ code, so set the
18652 # no_builtin_flag separately
18653 if test "$GXX" = yes; then
18654 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18656 lt_prog_compiler_no_builtin_flag_CXX=
18659 if test "$GXX" = yes; then
18660 # Set up default GNU C++ configuration
18664 # Check whether --with-gnu-ld was given.
18665 if test "${with_gnu_ld+set}" = set; then :
18666 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18672 if test "$GCC" = yes; then
18673 # Check if gcc -print-prog-name=ld gives a path.
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18675 $as_echo_n "checking for ld used by $CC... " >&6; }
18678 # gcc leaves a trailing carriage return which upsets mingw
18679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18684 # Accept absolute paths.
18686 re_direlt='/[^/][^/]*/\.\./'
18687 # Canonicalize the pathname of ld
18688 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18689 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18690 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18692 test -z "$LD" && LD="$ac_prog"
18695 # If it fails, then pretend we aren't using GCC.
18699 # If it is relative, then search for the first ld in PATH.
18700 with_gnu_ld=unknown
18703 elif test "$with_gnu_ld" = yes; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18705 $as_echo_n "checking for GNU ld... " >&6; }
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18708 $as_echo_n "checking for non-GNU ld... " >&6; }
18710 if test "${lt_cv_path_LD+set}" = set; then :
18711 $as_echo_n "(cached) " >&6
18713 if test -z "$LD"; then
18714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18715 for ac_dir in $PATH; do
18717 test -z "$ac_dir" && ac_dir=.
18718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18719 lt_cv_path_LD="$ac_dir/$ac_prog"
18720 # Check to see if the program is GNU ld. I'd rather use --version,
18721 # but apparently some variants of GNU ld only accept -v.
18722 # Break only if it was the GNU/non-GNU ld that we prefer.
18723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18724 *GNU* | *'with BFD'*)
18725 test "$with_gnu_ld" != no && break
18728 test "$with_gnu_ld" != yes && break
18735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18739 LD="$lt_cv_path_LD"
18740 if test -n "$LD"; then
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18742 $as_echo "$LD" >&6; }
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745 $as_echo "no" >&6; }
18747 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18749 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18750 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18754 case `$LD -v 2>&1 </dev/null` in
18755 *GNU* | *'with BFD'*)
18756 lt_cv_prog_gnu_ld=yes
18759 lt_cv_prog_gnu_ld=no
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18764 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18765 with_gnu_ld=$lt_cv_prog_gnu_ld
18773 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18774 # archiving commands below assume that GNU ld is being used.
18775 if test "$with_gnu_ld" = yes; then
18776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18782 # If archive_cmds runs LD, not CC, wlarc should be empty
18783 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18784 # investigate it a little bit more. (MM)
18787 # ancient GNU ld didn't support --whole-archive et. al.
18788 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18789 $GREP 'no-whole-archive' > /dev/null; then
18790 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18792 whole_archive_flag_spec_CXX=
18798 # A generic and very simple default shared library creation
18799 # command for GNU C++ for the case where it uses the native
18800 # linker, instead of GNU ld. If possible, this setting should
18801 # overridden to take advantage of the native linker features on
18802 # the platform it is being used on.
18803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18806 # Commands to make compiler produce verbose output that lists
18807 # what "hidden" libraries, object files and flags are used when
18808 # linking a shared library.
18809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18817 # PORTME: fill in a description of your system's C++ link characteristics
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18823 # FIXME: insert proper C++ library support
18827 if test "$host_cpu" = ia64; then
18828 # On IA64, the linker does run time linking by default, so we don't
18829 # have to do anything special.
18830 aix_use_runtimelinking=no
18831 exp_sym_flag='-Bexport'
18834 aix_use_runtimelinking=no
18836 # Test if we are trying to use run time linking or normal
18837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18838 # need to do runtime linking.
18839 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18840 for ld_flag in $LDFLAGS; do
18843 aix_use_runtimelinking=yes
18851 exp_sym_flag='-bexport'
18852 no_entry_flag='-bnoentry'
18855 # When large executables or shared objects are built, AIX ld can
18856 # have problems creating the table of contents. If linking a library
18857 # or program results in "error TOC overflow" add -mminimal-toc to
18858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18861 archive_cmds_CXX=''
18862 hardcode_direct_CXX=yes
18863 hardcode_direct_absolute_CXX=yes
18864 hardcode_libdir_separator_CXX=':'
18865 link_all_deplibs_CXX=yes
18866 file_list_spec_CXX='${wl}-f,'
18868 if test "$GXX" = yes; then
18869 case $host_os in aix4.[012]|aix4.[012].*)
18870 # We only want to do this on AIX 4.2 and lower, the check
18871 # below for broken collect2 doesn't work under 4.3+
18872 collect2name=`${CC} -print-prog-name=collect2`
18873 if test -f "$collect2name" &&
18874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18876 # We have reworked collect2
18879 # We have old collect2
18880 hardcode_direct_CXX=unsupported
18881 # It fails to find uninstalled libraries when the uninstalled
18882 # path is not listed in the libpath. Setting hardcode_minus_L
18883 # to unsupported forces relinking
18884 hardcode_minus_L_CXX=yes
18885 hardcode_libdir_flag_spec_CXX='-L$libdir'
18886 hardcode_libdir_separator_CXX=
18889 shared_flag='-shared'
18890 if test "$aix_use_runtimelinking" = yes; then
18891 shared_flag="$shared_flag "'${wl}-G'
18895 if test "$host_cpu" = ia64; then
18896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18897 # chokes on -Wl,-G. The following line is correct:
18900 if test "$aix_use_runtimelinking" = yes; then
18901 shared_flag='${wl}-G'
18903 shared_flag='${wl}-bM:SRE'
18908 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18909 # It seems that -bexpall does not export symbols beginning with
18910 # underscore (_), so it is better to generate a list of symbols to
18912 always_export_symbols_CXX=yes
18913 if test "$aix_use_runtimelinking" = yes; then
18914 # Warning - without using the other runtime loading flags (-brtl),
18915 # -berok will link without error, but may produce a broken library.
18916 allow_undefined_flag_CXX='-berok'
18917 # Determine the default libpath from the value encoded in an empty
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18930 if ac_fn_cxx_try_link "$LINENO"; then :
18932 lt_aix_libpath_sed='
18933 /Import File Strings/,/^$/ {
18939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18940 # Check for a 64-bit object if we didn't find anything.
18941 if test -z "$aix_libpath"; then
18942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18949 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18951 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18953 if test "$host_cpu" = ia64; then
18954 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18955 allow_undefined_flag_CXX="-z nodefs"
18956 archive_expsym_cmds_CXX="\$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"
18958 # Determine the default libpath from the value encoded in an
18959 # empty executable.
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18971 if ac_fn_cxx_try_link "$LINENO"; then :
18973 lt_aix_libpath_sed='
18974 /Import File Strings/,/^$/ {
18980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18981 # Check for a 64-bit object if we didn't find anything.
18982 if test -z "$aix_libpath"; then
18983 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18986 rm -f core conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
18988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18990 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18991 # Warning - without using the other run time loading flags,
18992 # -berok will link without error, but may produce a broken library.
18993 no_undefined_flag_CXX=' ${wl}-bernotok'
18994 allow_undefined_flag_CXX=' ${wl}-berok'
18995 if test "$with_gnu_ld" = yes; then
18996 # We only use this code for GNU lds that support --whole-archive.
18997 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18999 # Exported symbols can be pulled into shared objects from archives
19000 whole_archive_flag_spec_CXX='$convenience'
19002 archive_cmds_need_lc_CXX=yes
19003 # This is similar to how AIX traditionally builds its shared
19005 archive_expsym_cmds_CXX="\$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'
19011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19012 allow_undefined_flag_CXX=unsupported
19013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19014 # support --undefined. This deserves some investigation. FIXME
19015 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19022 case $cc_basename in
19024 # FIXME: insert proper C++ library support
19030 cygwin* | mingw* | pw32* | cegcc*)
19031 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19032 # as there is no search path for DLLs.
19033 hardcode_libdir_flag_spec_CXX='-L$libdir'
19034 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19035 allow_undefined_flag_CXX=unsupported
19036 always_export_symbols_CXX=no
19037 enable_shared_with_static_runtimes_CXX=yes
19039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19041 # If the export-symbols file already is a .def file (1st line
19042 # is EXPORTS), use it as is; otherwise, prepend...
19043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19044 cp $export_symbols $output_objdir/$soname.def;
19046 echo EXPORTS > $output_objdir/$soname.def;
19047 cat $export_symbols >> $output_objdir/$soname.def;
19049 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19054 darwin* | rhapsody*)
19057 archive_cmds_need_lc_CXX=no
19058 hardcode_direct_CXX=no
19059 hardcode_automatic_CXX=yes
19060 hardcode_shlibpath_var_CXX=unsupported
19061 if test "$lt_cv_ld_force_load" = "yes"; then
19062 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19064 whole_archive_flag_spec_CXX=''
19066 link_all_deplibs_CXX=yes
19067 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19068 case $cc_basename in
19069 ifort*) _lt_dar_can_shared=yes ;;
19070 *) _lt_dar_can_shared=$GCC ;;
19072 if test "$_lt_dar_can_shared" = "yes"; then
19073 output_verbose_link_cmd=func_echo_all
19074 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19075 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19076 archive_expsym_cmds_CXX="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}"
19077 module_expsym_cmds_CXX="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}"
19078 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19079 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19080 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19090 case $cc_basename in
19092 # FIXME: insert proper C++ library support
19096 # Green Hills C++ Compiler
19097 # FIXME: insert proper C++ library support
19101 # FIXME: insert proper C++ library support
19108 # C++ shared libraries reported to be fairly broken before
19114 archive_cmds_need_lc_CXX=no
19117 freebsd* | dragonfly*)
19118 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19127 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128 link_all_deplibs_CXX=yes
19132 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19133 hardcode_libdir_separator_CXX=:
19134 export_dynamic_flag_spec_CXX='${wl}-E'
19135 hardcode_direct_CXX=yes
19136 hardcode_minus_L_CXX=yes # Not in the search PATH,
19137 # but as the default
19138 # location of the library.
19140 case $cc_basename in
19142 # FIXME: insert proper C++ library support
19146 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19147 # Commands to make compiler produce verbose output that lists
19148 # what "hidden" libraries, object files and flags are used when
19149 # linking a shared library.
19151 # There doesn't appear to be a way to prevent this compiler from
19152 # explicitly linking system object files so we need to strip them
19153 # from the output so that they don't get included in the library
19155 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19158 if test "$GXX" = yes; then
19159 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19161 # FIXME: insert proper C++ library support
19169 if test $with_gnu_ld = no; then
19170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19171 hardcode_libdir_separator_CXX=:
19177 export_dynamic_flag_spec_CXX='${wl}-E'
19183 hardcode_direct_CXX=no
19184 hardcode_shlibpath_var_CXX=no
19187 hardcode_direct_CXX=yes
19188 hardcode_direct_absolute_CXX=yes
19189 hardcode_minus_L_CXX=yes # Not in the search PATH,
19190 # but as the default
19191 # location of the library.
19195 case $cc_basename in
19197 # FIXME: insert proper C++ library support
19203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212 # Commands to make compiler produce verbose output that lists
19213 # what "hidden" libraries, object files and flags are used when
19214 # linking a shared library.
19216 # There doesn't appear to be a way to prevent this compiler from
19217 # explicitly linking system object files so we need to strip them
19218 # from the output so that they don't get included in the library
19220 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19223 if test "$GXX" = yes; then
19224 if test $with_gnu_ld = no; then
19227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19238 # FIXME: insert proper C++ library support
19246 hardcode_direct_CXX=no
19247 hardcode_shlibpath_var_CXX=no
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249 export_dynamic_flag_spec_CXX='${wl}-E'
19250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19251 # Instead, shared libraries are loaded at an image base (0x10000000 by
19252 # default) and relocated if they conflict, which is a slow very memory
19253 # consuming and fragmenting process. To avoid this, we pick a random,
19254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19256 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19257 archive_expsym_cmds_CXX='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'
19260 case $cc_basename in
19263 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19265 # Archives containing C++ object files must be created using
19266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19267 # necessary to make sure instantiated templates are included
19269 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 if test "$GXX" = yes; then
19273 if test "$with_gnu_ld" = no; then
19274 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19279 link_all_deplibs_CXX=yes
19282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19283 hardcode_libdir_separator_CXX=:
19284 inherit_rpath_CXX=yes
19287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19288 case $cc_basename in
19290 # Kuck and Associates, Inc. (KAI) C++ Compiler
19292 # KCC will only create a shared library if the output file
19293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294 # to its proper name (with version) after linking.
19295 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19296 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19301 # There doesn't appear to be a way to prevent this compiler from
19302 # explicitly linking system object files so we need to strip them
19303 # from the output so that they don't get included in the library
19305 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 # Archives containing C++ object files must be created using
19311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19317 # version 8.0 and above of icpc choke on multiply defined symbols
19318 # if we add $predep_objects and $postdep_objects, however 7.1 and
19319 # earlier do not add the objects themselves.
19320 case `$CC -V 2>&1` in
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19325 *) # Version 8.0 or newer
19328 ia64*) tmp_idyn=' -i_dynamic';;
19330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19334 archive_cmds_need_lc_CXX=no
19335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19340 # Portland Group C++ compiler
19342 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19343 prelink_cmds_CXX='tpldir=Template.dir~
19345 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19346 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19347 old_archive_cmds_CXX='tpldir=Template.dir~
19349 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19350 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19352 archive_cmds_CXX='tpldir=Template.dir~
19354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19355 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19356 archive_expsym_cmds_CXX='tpldir=Template.dir~
19358 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19359 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19361 *) # Version 6 and above use weak symbols
19362 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19363 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19367 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19369 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19374 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19376 runpath_var=LD_RUN_PATH
19377 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19378 hardcode_libdir_separator_CXX=:
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19384 # There doesn't appear to be a way to prevent this compiler from
19385 # explicitly linking system object files so we need to strip them
19386 # from the output so that they don't get included in the library
19388 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19390 xl* | mpixl* | bgxl*)
19391 # IBM XL 8.0 on PPC, with GNU ld
19392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19394 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395 if test "x$supports_anon_versioning" = xyes; then
19396 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19398 echo "local: *; };" >> $output_objdir/$libname.ver~
19399 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19403 case `$CC -V 2>&1 | sed 5q` in
19406 no_undefined_flag_CXX=' -zdefs'
19407 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19408 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19409 hardcode_libdir_flag_spec_CXX='-R$libdir'
19410 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19411 compiler_needs_object_CXX=yes
19413 # Not sure whether something based on
19414 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19416 output_verbose_link_cmd='func_echo_all'
19418 # Archives containing C++ object files must be created using
19419 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19420 # necessary to make sure instantiated templates are included
19422 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19430 # FIXME: insert proper C++ library support
19435 # FIXME: insert proper C++ library support
19440 case $cc_basename in
19442 # FIXME: insert proper C++ library support
19446 # FIXME: insert proper C++ library support
19453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19454 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19456 hardcode_libdir_flag_spec_CXX='-R$libdir'
19457 hardcode_direct_CXX=yes
19458 hardcode_shlibpath_var_CXX=no
19460 # Workaround some broken pre-1.5 toolchains
19461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19469 # C++ shared libraries are fairly broken
19474 if test -f /usr/libexec/ld.so; then
19475 hardcode_direct_CXX=yes
19476 hardcode_shlibpath_var_CXX=no
19477 hardcode_direct_absolute_CXX=yes
19478 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19481 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19482 export_dynamic_flag_spec_CXX='${wl}-E'
19483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19485 output_verbose_link_cmd=func_echo_all
19491 osf3* | osf4* | osf5*)
19492 case $cc_basename in
19494 # Kuck and Associates, Inc. (KAI) C++ Compiler
19496 # KCC will only create a shared library if the output file
19497 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19498 # to its proper name (with version) after linking.
19499 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19502 hardcode_libdir_separator_CXX=:
19504 # Archives containing C++ object files must be created using
19505 # the KAI C++ compiler.
19507 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19508 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19512 # Rational C++ 2.4.1
19513 # FIXME: insert proper C++ library support
19519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19520 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19524 allow_undefined_flag_CXX=' -expect_unresolved \*'
19525 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19527 echo "-hidden">> $lib.exp~
19528 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19530 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19534 hardcode_libdir_separator_CXX=:
19536 # Commands to make compiler produce verbose output that lists
19537 # what "hidden" libraries, object files and flags are used when
19538 # linking a shared library.
19540 # There doesn't appear to be a way to prevent this compiler from
19541 # explicitly linking system object files so we need to strip them
19542 # from the output so that they don't get included in the library
19544 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19547 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19551 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19554 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19559 hardcode_libdir_separator_CXX=:
19561 # Commands to make compiler produce verbose output that lists
19562 # what "hidden" libraries, object files and flags are used when
19563 # linking a shared library.
19564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19567 # FIXME: insert proper C++ library support
19575 # FIXME: insert proper C++ library support
19580 case $cc_basename in
19583 # FIXME: insert proper C++ library support
19588 # FIXME: insert proper C++ library support
19592 # FIXME: insert proper C++ library support
19599 case $cc_basename in
19601 # Sun C++ 4.2, 5.x and Centerline C++
19602 archive_cmds_need_lc_CXX=yes
19603 no_undefined_flag_CXX=' -zdefs'
19604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19606 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19608 hardcode_libdir_flag_spec_CXX='-R$libdir'
19609 hardcode_shlibpath_var_CXX=no
19611 solaris2.[0-5] | solaris2.[0-5].*) ;;
19613 # The compiler driver will combine and reorder linker options,
19614 # but understands `-z linker_flag'.
19615 # Supported since Solaris 2.6 (maybe 2.5.1?)
19616 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19619 link_all_deplibs_CXX=yes
19621 output_verbose_link_cmd='func_echo_all'
19623 # Archives containing C++ object files must be created using
19624 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19625 # necessary to make sure instantiated templates are included
19627 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19630 # Green Hills C++ Compiler
19631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19633 # The C++ compiler must be used to create the archive.
19634 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19637 # GNU C++ compiler with Solaris linker
19638 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19639 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19640 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19641 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19642 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19643 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19645 # Commands to make compiler produce verbose output that lists
19646 # what "hidden" libraries, object files and flags are used when
19647 # linking a shared library.
19648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19650 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19652 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19653 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19654 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19656 # Commands to make compiler produce verbose output that lists
19657 # what "hidden" libraries, object files and flags are used when
19658 # linking a shared library.
19659 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19662 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19664 solaris2.[0-5] | solaris2.[0-5].*) ;;
19666 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19675 no_undefined_flag_CXX='${wl}-z,text'
19676 archive_cmds_need_lc_CXX=no
19677 hardcode_shlibpath_var_CXX=no
19678 runpath_var='LD_RUN_PATH'
19680 case $cc_basename in
19682 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692 sysv5* | sco3.2v5* | sco5v6*)
19693 # Note: We can NOT use -z defs as we might desire, because we do not
19694 # link with -lc, and that would cause any symbols used from libc to
19695 # always be unresolved, which means just about no library would
19696 # ever link correctly. If we're not using GNU ld we use -z text
19697 # though, which does catch some bad symbols but isn't as heavy-handed
19699 no_undefined_flag_CXX='${wl}-z,text'
19700 allow_undefined_flag_CXX='${wl}-z,nodefs'
19701 archive_cmds_need_lc_CXX=no
19702 hardcode_shlibpath_var_CXX=no
19703 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19704 hardcode_libdir_separator_CXX=':'
19705 link_all_deplibs_CXX=yes
19706 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19707 runpath_var='LD_RUN_PATH'
19709 case $cc_basename in
19711 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19712 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19713 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19714 '"$old_archive_cmds_CXX"
19715 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19716 '"$reload_cmds_CXX"
19719 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19720 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19726 case $cc_basename in
19728 # NonStop-UX NCC 3.20
19729 # FIXME: insert proper C++ library support
19733 # FIXME: insert proper C++ library support
19740 # FIXME: insert proper C++ library support
19745 # FIXME: insert proper C++ library support
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19751 $as_echo "$ld_shlibs_CXX" >&6; }
19752 test "$ld_shlibs_CXX" = no && can_build_shared=no
19758 ## There is no encapsulation within the following macros, do not change
19759 ## the running order or otherwise move them around unless you know exactly
19760 ## what you are doing...
19761 # Dependencies to place before and after the object being linked:
19762 predep_objects_CXX=
19763 postdep_objects_CXX=
19766 compiler_lib_search_path_CXX=
19768 cat > conftest.$ac_ext <<_LT_EOF
19772 Foo (void) { a = 0; }
19778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19779 (eval $ac_compile) 2>&5
19781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19782 test $ac_status = 0; }; then
19783 # Parse the compiler output and extract the necessary
19784 # objects, libraries and library flags.
19786 # Sentinel used to keep track of whether or not we are before
19787 # the conftest object file.
19788 pre_test_object_deps_done=no
19790 for p in `eval "$output_verbose_link_cmd"`; do
19794 # Some compilers place space between "-{L,R}" and the path.
19795 # Remove the space.
19796 if test $p = "-L" ||
19797 test $p = "-R"; then
19804 if test "$pre_test_object_deps_done" = no; then
19807 # Internal compiler library paths should come after those
19808 # provided the user. The postdeps already come after the
19809 # user supplied libs so there is no need to process them.
19810 if test -z "$compiler_lib_search_path_CXX"; then
19811 compiler_lib_search_path_CXX="${prev}${p}"
19813 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19816 # The "-l" case would never come before the object being
19817 # linked, so don't bother handling this case.
19820 if test -z "$postdeps_CXX"; then
19821 postdeps_CXX="${prev}${p}"
19823 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19829 # This assumes that the test object file only shows up
19830 # once in the compiler output.
19831 if test "$p" = "conftest.$objext"; then
19832 pre_test_object_deps_done=yes
19836 if test "$pre_test_object_deps_done" = no; then
19837 if test -z "$predep_objects_CXX"; then
19838 predep_objects_CXX="$p"
19840 predep_objects_CXX="$predep_objects_CXX $p"
19843 if test -z "$postdep_objects_CXX"; then
19844 postdep_objects_CXX="$p"
19846 postdep_objects_CXX="$postdep_objects_CXX $p"
19851 *) ;; # Ignore the rest.
19859 echo "libtool.m4: error: problem compiling CXX test program"
19862 $RM -f confest.$objext
19864 # PORTME: override above test on systems where it is broken
19867 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19868 # hack all around it, let's just trust "g++" to DTRT.
19869 predep_objects_CXX=
19870 postdep_objects_CXX=
19875 case `$CC -V 2>&1 | sed 5q` in
19879 # The more standards-conforming stlport4 library is
19880 # incompatible with the Cstd library. Avoid specifying
19881 # it if it's in CXXFLAGS. Ignore libCrun as
19882 # -library=stlport4 depends on it.
19883 case " $CXX $CXXFLAGS " in
19884 *" -library=stlport4 "*)
19885 solaris_use_stlport4=yes
19889 if test "$solaris_use_stlport4" != yes; then
19890 postdeps_CXX='-library=Cstd -library=Crun'
19897 case $cc_basename in
19899 # The more standards-conforming stlport4 library is
19900 # incompatible with the Cstd library. Avoid specifying
19901 # it if it's in CXXFLAGS. Ignore libCrun as
19902 # -library=stlport4 depends on it.
19903 case " $CXX $CXXFLAGS " in
19904 *" -library=stlport4 "*)
19905 solaris_use_stlport4=yes
19909 # Adding this requires a known-good setup of shared libraries for
19910 # Sun compiler versions before 5.6, else PIC objects from an old
19911 # archive will be linked into the output, leading to subtle bugs.
19912 if test "$solaris_use_stlport4" != yes; then
19913 postdeps_CXX='-library=Cstd -library=Crun'
19921 case " $postdeps_CXX " in
19922 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19924 compiler_lib_search_dirs_CXX=
19925 if test -n "${compiler_lib_search_path_CXX}"; then
19926 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19959 lt_prog_compiler_wl_CXX=
19960 lt_prog_compiler_pic_CXX=
19961 lt_prog_compiler_static_CXX=
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19964 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19966 # C++ specific cases for pic, static, wl, etc.
19967 if test "$GXX" = yes; then
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 lt_prog_compiler_static_CXX='-static'
19973 # All AIX code is PIC.
19974 if test "$host_cpu" = ia64; then
19975 # AIX 5 now supports IA64 processor
19976 lt_prog_compiler_static_CXX='-Bstatic'
19983 # see comment about AmigaOS4 .so support
19984 lt_prog_compiler_pic_CXX='-fPIC'
19987 # FIXME: we need at least 68020 code to build shared libraries, but
19988 # adding the `-m68020' flag to GCC prevents building anything better,
19990 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19996 # PIC is the default for these OSes.
19998 mingw* | cygwin* | os2* | pw32* | cegcc*)
19999 # This hack is so that the source file can tell whether it is being
20000 # built for inclusion in a dll (and should export symbols for example).
20001 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20002 # (--disable-auto-import) libraries
20003 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20005 darwin* | rhapsody*)
20006 # PIC is the default on this platform
20007 # Common symbols not allowed in MH_DYLIB files
20008 lt_prog_compiler_pic_CXX='-fno-common'
20011 # DJGPP does not support shared libraries at all
20012 lt_prog_compiler_pic_CXX=
20015 # PIC is the default for Haiku.
20016 # The "-static" flag exists, but is broken.
20017 lt_prog_compiler_static_CXX=
20020 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20021 # Instead, we relocate shared libraries at runtime.
20024 if test -d /usr/nec; then
20025 lt_prog_compiler_pic_CXX=-Kconform_pic
20029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20031 # sets the default TLS model and affects inlining.
20036 lt_prog_compiler_pic_CXX='-fPIC'
20041 # QNX uses GNU C++, but need to define -shared option too, otherwise
20042 # it will coredump.
20043 lt_prog_compiler_pic_CXX='-fPIC -shared'
20046 lt_prog_compiler_pic_CXX='-fPIC'
20052 # All AIX code is PIC.
20053 if test "$host_cpu" = ia64; then
20054 # AIX 5 now supports IA64 processor
20055 lt_prog_compiler_static_CXX='-Bstatic'
20057 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20061 case $cc_basename in
20063 # Green Hills C++ Compiler
20064 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20069 case $cc_basename in
20071 lt_prog_compiler_pic_CXX='-KPIC'
20074 # Green Hills C++ Compiler
20075 lt_prog_compiler_pic_CXX='-pic'
20081 freebsd* | dragonfly*)
20082 # FreeBSD uses GNU C++
20084 hpux9* | hpux10* | hpux11*)
20085 case $cc_basename in
20087 lt_prog_compiler_wl_CXX='-Wl,'
20088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20089 if test "$host_cpu" != ia64; then
20090 lt_prog_compiler_pic_CXX='+Z'
20094 lt_prog_compiler_wl_CXX='-Wl,'
20095 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20101 lt_prog_compiler_pic_CXX='+Z'
20110 # This is c89, which is MS Visual C++ (no shared libs)
20111 # Anyone wants to do a port?
20113 irix5* | irix6* | nonstopux*)
20114 case $cc_basename in
20116 lt_prog_compiler_wl_CXX='-Wl,'
20117 lt_prog_compiler_static_CXX='-non_shared'
20118 # CC pic flag -KPIC is the default.
20124 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20125 case $cc_basename in
20128 lt_prog_compiler_wl_CXX='--backend -Wl,'
20129 lt_prog_compiler_pic_CXX='-fPIC'
20132 # old Intel C++ for x86_64 which still supported -KPIC.
20133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-KPIC'
20135 lt_prog_compiler_static_CXX='-static'
20138 # Intel C++, used to be incompatible with GCC.
20139 # ICC 10 doesn't accept -KPIC any more.
20140 lt_prog_compiler_wl_CXX='-Wl,'
20141 lt_prog_compiler_pic_CXX='-fPIC'
20142 lt_prog_compiler_static_CXX='-static'
20145 # Portland Group C++ compiler
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_pic_CXX='-fpic'
20148 lt_prog_compiler_static_CXX='-Bstatic'
20152 # Make sure the PIC flag is empty. It appears that all Alpha
20153 # Linux and Compaq Tru64 Unix objects are PIC.
20154 lt_prog_compiler_pic_CXX=
20155 lt_prog_compiler_static_CXX='-non_shared'
20157 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20158 # IBM XL 8.0, 9.0 on PPC and BlueGene
20159 lt_prog_compiler_wl_CXX='-Wl,'
20160 lt_prog_compiler_pic_CXX='-qpic'
20161 lt_prog_compiler_static_CXX='-qstaticlink'
20164 case `$CC -V 2>&1 | sed 5q` in
20167 lt_prog_compiler_pic_CXX='-KPIC'
20168 lt_prog_compiler_static_CXX='-Bstatic'
20169 lt_prog_compiler_wl_CXX='-Qoption ld '
20180 case $cc_basename in
20182 lt_prog_compiler_pic_CXX='-W c,exportall'
20191 # QNX uses GNU C++, but need to define -shared option too, otherwise
20192 # it will coredump.
20193 lt_prog_compiler_pic_CXX='-fPIC -shared'
20195 osf3* | osf4* | osf5*)
20196 case $cc_basename in
20198 lt_prog_compiler_wl_CXX='--backend -Wl,'
20201 # Rational C++ 2.4.1
20202 lt_prog_compiler_pic_CXX='-pic'
20205 # Digital/Compaq C++
20206 lt_prog_compiler_wl_CXX='-Wl,'
20207 # Make sure the PIC flag is empty. It appears that all Alpha
20208 # Linux and Compaq Tru64 Unix objects are PIC.
20209 lt_prog_compiler_pic_CXX=
20210 lt_prog_compiler_static_CXX='-non_shared'
20219 case $cc_basename in
20221 # Sun C++ 4.2, 5.x and Centerline C++
20222 lt_prog_compiler_pic_CXX='-KPIC'
20223 lt_prog_compiler_static_CXX='-Bstatic'
20224 lt_prog_compiler_wl_CXX='-Qoption ld '
20227 # Green Hills C++ Compiler
20228 lt_prog_compiler_pic_CXX='-PIC'
20235 case $cc_basename in
20238 lt_prog_compiler_pic_CXX='-pic'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20243 lt_prog_compiler_pic_CXX='-pic'
20249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20250 case $cc_basename in
20252 lt_prog_compiler_wl_CXX='-Wl,'
20253 lt_prog_compiler_pic_CXX='-KPIC'
20254 lt_prog_compiler_static_CXX='-Bstatic'
20259 case $cc_basename in
20261 # NonStop-UX NCC 3.20
20262 lt_prog_compiler_pic_CXX='-KPIC'
20271 lt_prog_compiler_can_build_shared_CXX=no
20277 # For platforms which do not support PIC, -DPIC is meaningless:
20279 lt_prog_compiler_pic_CXX=
20282 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20286 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20291 # Check to make sure the PIC flag actually works.
20293 if test -n "$lt_prog_compiler_pic_CXX"; then
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20296 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20297 $as_echo_n "(cached) " >&6
20299 lt_cv_prog_compiler_pic_works_CXX=no
20300 ac_outfile=conftest.$ac_objext
20301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20302 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20303 # Insert the option either (1) after the last *FLAGS variable, or
20304 # (2) before a word containing "conftest.", or (3) at the end.
20305 # Note that $ac_compile itself does not contain backslashes and begins
20306 # with a dollar sign (not a hyphen), so the echo should work correctly.
20307 # The option is referenced via a variable to avoid confusing sed.
20308 lt_compile=`echo "$ac_compile" | $SED \
20309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20311 -e 's:$: $lt_compiler_flag:'`
20312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20313 (eval "$lt_compile" 2>conftest.err)
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 if (exit $ac_status) && test -s "$ac_outfile"; then
20318 # The compiler can only warn and ignore the option if not recognized
20319 # So say no if there are warnings other than the usual output.
20320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20323 lt_cv_prog_compiler_pic_works_CXX=yes
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20330 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20332 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20333 case $lt_prog_compiler_pic_CXX in
20335 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20338 lt_prog_compiler_pic_CXX=
20339 lt_prog_compiler_can_build_shared_CXX=no
20347 # Check to make sure the static flag actually works.
20349 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20351 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20352 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20353 $as_echo_n "(cached) " >&6
20355 lt_cv_prog_compiler_static_works_CXX=no
20356 save_LDFLAGS="$LDFLAGS"
20357 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20358 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20360 # The linker can only warn and ignore the option if not recognized
20361 # So say no if there are warnings
20362 if test -s conftest.err; then
20363 # Append any errors to the config.log.
20364 cat conftest.err 1>&5
20365 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20367 if diff conftest.exp conftest.er2 >/dev/null; then
20368 lt_cv_prog_compiler_static_works_CXX=yes
20371 lt_cv_prog_compiler_static_works_CXX=yes
20375 LDFLAGS="$save_LDFLAGS"
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20379 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20381 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20384 lt_prog_compiler_static_CXX=
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20393 $as_echo_n "(cached) " >&6
20395 lt_cv_prog_compiler_c_o_CXX=no
20396 $RM -r conftest 2>/dev/null
20400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20402 lt_compiler_flag="-o out/conftest2.$ac_objext"
20403 # Insert the option either (1) after the last *FLAGS variable, or
20404 # (2) before a word containing "conftest.", or (3) at the end.
20405 # Note that $ac_compile itself does not contain backslashes and begins
20406 # with a dollar sign (not a hyphen), so the echo should work correctly.
20407 lt_compile=`echo "$ac_compile" | $SED \
20408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20410 -e 's:$: $lt_compiler_flag:'`
20411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20412 (eval "$lt_compile" 2>out/conftest.err)
20414 cat out/conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20418 # The compiler can only warn and ignore the option if not recognized
20419 # So say no if there are warnings
20420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20423 lt_cv_prog_compiler_c_o_CXX=yes
20428 # SGI C++ compiler will create directory out/ii_files/ for
20429 # template instantiation
20430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20431 $RM out/* && rmdir out
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20438 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20443 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20444 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20445 $as_echo_n "(cached) " >&6
20447 lt_cv_prog_compiler_c_o_CXX=no
20448 $RM -r conftest 2>/dev/null
20452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20454 lt_compiler_flag="-o out/conftest2.$ac_objext"
20455 # Insert the option either (1) after the last *FLAGS variable, or
20456 # (2) before a word containing "conftest.", or (3) at the end.
20457 # Note that $ac_compile itself does not contain backslashes and begins
20458 # with a dollar sign (not a hyphen), so the echo should work correctly.
20459 lt_compile=`echo "$ac_compile" | $SED \
20460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20462 -e 's:$: $lt_compiler_flag:'`
20463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20464 (eval "$lt_compile" 2>out/conftest.err)
20466 cat out/conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20470 # The compiler can only warn and ignore the option if not recognized
20471 # So say no if there are warnings
20472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20475 lt_cv_prog_compiler_c_o_CXX=yes
20480 # SGI C++ compiler will create directory out/ii_files/ for
20481 # template instantiation
20482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20483 $RM out/* && rmdir out
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20490 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20495 hard_links="nottested"
20496 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20497 # do not overwrite the value of need_locks provided by the user
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20499 $as_echo_n "checking if we can lock with hard links... " >&6; }
20502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20504 ln conftest.a conftest.b 2>&5 || hard_links=no
20505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20507 $as_echo "$hard_links" >&6; }
20508 if test "$hard_links" = no; then
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20510 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20520 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20522 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20525 # If we're using GNU nm, then we don't want the "-C" option.
20526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20527 # Also, AIX nm treats weak defined symbols like other global defined
20528 # symbols, whereas GNU nm marks them as "W".
20529 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20530 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20532 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20536 export_symbols_cmds_CXX="$ltdll_cmds"
20538 cygwin* | mingw* | cegcc*)
20539 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20542 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20545 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20548 $as_echo "$ld_shlibs_CXX" >&6; }
20549 test "$ld_shlibs_CXX" = no && can_build_shared=no
20551 with_gnu_ld_CXX=$with_gnu_ld
20559 # Do we need to explicitly link libc?
20561 case "x$archive_cmds_need_lc_CXX" in
20563 # Assume -lc should be added
20564 archive_cmds_need_lc_CXX=yes
20566 if test "$enable_shared" = yes && test "$GCC" = yes; then
20567 case $archive_cmds_CXX in
20569 # FIXME: we may have to deal with multi-command sequences.
20572 # Test whether the compiler implicitly links with -lc since on some
20573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20574 # to ld, don't add -lc before -lgcc.
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20576 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20577 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20578 $as_echo_n "(cached) " >&6
20581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20584 (eval $ac_compile) 2>&5
20586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20587 test $ac_status = 0; } 2>conftest.err; then
20590 libobjs=conftest.$ac_objext
20592 wl=$lt_prog_compiler_wl_CXX
20593 pic_flag=$lt_prog_compiler_pic_CXX
20599 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20600 allow_undefined_flag_CXX=
20601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20602 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605 test $ac_status = 0; }
20607 lt_cv_archive_cmds_need_lc_CXX=no
20609 lt_cv_archive_cmds_need_lc_CXX=yes
20611 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20613 cat conftest.err 1>&5
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20619 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20620 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20691 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20693 library_names_spec=
20694 libname_spec='lib$name'
20698 postuninstall_cmds=
20702 shlibpath_overrides_runpath=unknown
20704 dynamic_linker="$host_os ld.so"
20705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20706 need_lib_prefix=unknown
20707 hardcode_into_libs=no
20709 # when you set need_version to no, make sure it does not cause -set_version
20710 # flags to be left without arguments
20711 need_version=unknown
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20717 shlibpath_var=LIBPATH
20719 # AIX 3 has no versioning support, so we append a major version to the name.
20720 soname_spec='${libname}${release}${shared_ext}$major'
20727 hardcode_into_libs=yes
20728 if test "$host_cpu" = ia64; then
20729 # AIX 5 supports IA64
20730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20731 shlibpath_var=LD_LIBRARY_PATH
20733 # With GCC up to 2.95.x, collect2 would create an import file
20734 # for dependence libraries. The import file would start with
20735 # the line `#! .'. This would cause the generated library to
20736 # depend on `.', always an invalid library. This was fixed in
20737 # development snapshots of GCC prior to 3.0.
20739 aix4 | aix4.[01] | aix4.[01].*)
20740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20742 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20745 can_build_shared=no
20749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20750 # soname into executable. Probably we can add versioning support to
20751 # collect2, so additional links can be useful in future.
20752 if test "$aix_use_runtimelinking" = yes; then
20753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20754 # instead of lib<name>.a to let people know that these are not
20755 # typical AIX shared libraries.
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 # We preserve .a as extension for shared libraries through AIX4.2
20759 # and later when we are not doing run time linking.
20760 library_names_spec='${libname}${release}.a $libname.a'
20761 soname_spec='${libname}${release}${shared_ext}$major'
20763 shlibpath_var=LIBPATH
20770 # Since July 2007 AmigaOS4 officially supports .so libraries.
20771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775 library_names_spec='$libname.ixlibrary $libname.a'
20776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20777 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
20783 library_names_spec='${libname}${shared_ext}'
20784 dynamic_linker="$host_os ld.so"
20785 shlibpath_var=LIBRARY_PATH
20791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792 soname_spec='${libname}${release}${shared_ext}$major'
20793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20794 shlibpath_var=LD_LIBRARY_PATH
20795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20797 # the default ld.so.conf also contains /usr/contrib/lib and
20798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20799 # libtool to hard-code these into programs
20802 cygwin* | mingw* | pw32* | cegcc*)
20803 version_type=windows
20808 case $GCC,$host_os in
20809 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20810 library_names_spec='$libname.dll.a'
20811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20812 postinstall_cmds='base_file=`basename \${file}`~
20813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20814 dldir=$destdir/`dirname \$dlpath`~
20815 test -d \$dldir || mkdir -p \$dldir~
20816 $install_prog $dir/$dlname \$dldir/$dlname~
20817 chmod a+x \$dldir/$dlname~
20818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20821 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20822 dlpath=$dir/\$dldll~
20824 shlibpath_overrides_runpath=yes
20828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20829 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20833 # MinGW DLLs use traditional 'lib' prefix
20834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20837 # pw32 DLLs use 'pw' prefix rather than 'lib'
20838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20847 dynamic_linker='Win32 ld.exe'
20848 # FIXME: first we should search . and the directory the executable is in
20852 darwin* | rhapsody*)
20853 dynamic_linker="$host_os dyld"
20854 version_type=darwin
20857 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20858 soname_spec='${libname}${release}${major}$shared_ext'
20859 shlibpath_overrides_runpath=yes
20860 shlibpath_var=DYLD_LIBRARY_PATH
20861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20871 soname_spec='${libname}${release}${shared_ext}$major'
20872 shlibpath_var=LD_LIBRARY_PATH
20875 freebsd* | dragonfly*)
20876 # DragonFly does not have aout. When/if they implement a new
20877 # versioning mechanism, adjust this.
20878 if test -x /usr/bin/objformat; then
20879 objformat=`/usr/bin/objformat`
20882 freebsd[123]*) objformat=aout ;;
20883 *) objformat=elf ;;
20886 version_type=freebsd-$objformat
20887 case $version_type in
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20898 shlibpath_var=LD_LIBRARY_PATH
20901 shlibpath_overrides_runpath=yes
20903 freebsd3.[01]* | freebsdelf3.[01]*)
20904 shlibpath_overrides_runpath=yes
20905 hardcode_into_libs=yes
20907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20909 shlibpath_overrides_runpath=no
20910 hardcode_into_libs=yes
20912 *) # from 4.6 on, and DragonFly
20913 shlibpath_overrides_runpath=yes
20914 hardcode_into_libs=yes
20923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20924 soname_spec='${libname}${release}${shared_ext}$major'
20925 shlibpath_var=LD_LIBRARY_PATH
20926 hardcode_into_libs=yes
20933 dynamic_linker="$host_os runtime_loader"
20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20935 soname_spec='${libname}${release}${shared_ext}$major'
20936 shlibpath_var=LIBRARY_PATH
20937 shlibpath_overrides_runpath=yes
20938 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20939 hardcode_into_libs=yes
20942 hpux9* | hpux10* | hpux11*)
20943 # Give a soname corresponding to the major version so that dld.sl refuses to
20944 # link against other versions.
20951 hardcode_into_libs=yes
20952 dynamic_linker="$host_os dld.so"
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 soname_spec='${libname}${release}${shared_ext}$major'
20957 if test "X$HPUX_IA64_MODE" = X32; then
20958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20966 hardcode_into_libs=yes
20967 dynamic_linker="$host_os dld.sl"
20968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20977 dynamic_linker="$host_os dld.sl"
20978 shlibpath_var=SHLIB_PATH
20979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec='${libname}${release}${shared_ext}$major'
20984 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20985 postinstall_cmds='chmod 555 $lib'
20986 # or fails outright, so override atomically:
20987 install_override_mode=555
20994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20995 soname_spec='${libname}${release}${shared_ext}$major'
20996 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20997 shlibpath_var=LD_LIBRARY_PATH
20998 shlibpath_overrides_runpath=no
20999 hardcode_into_libs=yes
21002 irix5* | irix6* | nonstopux*)
21004 nonstopux*) version_type=nonstopux ;;
21006 if test "$lt_cv_prog_gnu_ld" = yes; then
21014 soname_spec='${libname}${release}${shared_ext}$major'
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21017 irix5* | nonstopux*)
21018 libsuff= shlibsuff=
21021 case $LD in # libtool.m4 will add one of these switches to LD
21022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21023 libsuff= shlibsuff= libmagic=32-bit;;
21024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21025 libsuff=32 shlibsuff=N32 libmagic=N32;;
21026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21028 *) libsuff= shlibsuff= libmagic=never-match;;
21032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21033 shlibpath_overrides_runpath=no
21034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21036 hardcode_into_libs=yes
21039 # No shared lib support for Linux oldld, aout, or coff.
21040 linux*oldld* | linux*aout* | linux*coff*)
21044 # This must be Linux ELF.
21045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec='${libname}${release}${shared_ext}$major'
21051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21052 shlibpath_var=LD_LIBRARY_PATH
21053 shlibpath_overrides_runpath=no
21055 # Some binutils ld are patched to set DT_RUNPATH
21056 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21057 $as_echo_n "(cached) " >&6
21059 lt_cv_shlibpath_overrides_runpath=no
21060 save_LDFLAGS=$LDFLAGS
21061 save_libdir=$libdir
21062 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21063 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065 /* end confdefs.h. */
21075 if ac_fn_cxx_try_link "$LINENO"; then :
21076 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21077 lt_cv_shlibpath_overrides_runpath=yes
21080 rm -f core conftest.err conftest.$ac_objext \
21081 conftest$ac_exeext conftest.$ac_ext
21082 LDFLAGS=$save_LDFLAGS
21083 libdir=$save_libdir
21087 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21089 # This implies no fast_install, which is unacceptable.
21090 # Some rework will be needed to allow for fast_install
21091 # before this can be enabled.
21092 hardcode_into_libs=yes
21094 # Append ld.so.conf contents to the search path
21095 if test -f /etc/ld.so.conf; then
21096 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;s/"//g;/^$/d' | tr '\n' ' '`
21097 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21100 # We used to test for /lib/ld.so.1 and disable shared libraries on
21101 # powerpc, because MkLinux only supported shared libraries with the
21102 # GNU dynamic linker. Since this was broken with cross compilers,
21103 # most powerpc-linux boxes support dynamic linking these days and
21104 # people can always --disable-shared, the test was removed, and we
21105 # assume the GNU/Linux dynamic linker is in use.
21106 dynamic_linker='GNU/Linux ld.so'
21113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21116 dynamic_linker='NetBSD (a.out) ld.so'
21118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21119 soname_spec='${libname}${release}${shared_ext}$major'
21120 dynamic_linker='NetBSD ld.elf_so'
21122 shlibpath_var=LD_LIBRARY_PATH
21123 shlibpath_overrides_runpath=yes
21124 hardcode_into_libs=yes
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 shlibpath_var=LD_LIBRARY_PATH
21131 shlibpath_overrides_runpath=yes
21138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21139 soname_spec='${libname}${release}${shared_ext}$major'
21140 shlibpath_var=LD_LIBRARY_PATH
21141 shlibpath_overrides_runpath=no
21142 hardcode_into_libs=yes
21143 dynamic_linker='ldqnx.so'
21148 sys_lib_dlsearch_path_spec="/usr/lib"
21150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21153 *) need_version=no ;;
21155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21157 shlibpath_var=LD_LIBRARY_PATH
21158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21160 openbsd2.[89] | openbsd2.[89].*)
21161 shlibpath_overrides_runpath=no
21164 shlibpath_overrides_runpath=yes
21168 shlibpath_overrides_runpath=yes
21173 libname_spec='$name'
21176 library_names_spec='$libname${shared_ext} $libname.a'
21177 dynamic_linker='OS/2 ld.exe'
21178 shlibpath_var=LIBPATH
21181 osf3* | osf4* | osf5*)
21185 soname_spec='${libname}${release}${shared_ext}$major'
21186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21187 shlibpath_var=LD_LIBRARY_PATH
21188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21201 soname_spec='${libname}${release}${shared_ext}$major'
21202 shlibpath_var=LD_LIBRARY_PATH
21203 shlibpath_overrides_runpath=yes
21204 hardcode_into_libs=yes
21205 # ldd complains unless libraries are executable
21206 postinstall_cmds='chmod +x $lib'
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21213 shlibpath_var=LD_LIBRARY_PATH
21214 shlibpath_overrides_runpath=yes
21215 if test "$with_gnu_ld" = yes; then
21223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21224 soname_spec='${libname}${release}${shared_ext}$major'
21225 shlibpath_var=LD_LIBRARY_PATH
21226 case $host_vendor in
21228 shlibpath_overrides_runpath=no
21230 runpath_var=LD_RUN_PATH
21238 shlibpath_overrides_runpath=no
21239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21245 if test -d /usr/nec ;then
21247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21248 soname_spec='$libname${shared_ext}.$major'
21249 shlibpath_var=LD_LIBRARY_PATH
21253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21254 version_type=freebsd-elf
21257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21258 soname_spec='${libname}${release}${shared_ext}$major'
21259 shlibpath_var=LD_LIBRARY_PATH
21260 shlibpath_overrides_runpath=yes
21261 hardcode_into_libs=yes
21262 if test "$with_gnu_ld" = yes; then
21263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21272 sys_lib_dlsearch_path_spec='/usr/lib'
21276 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21281 shlibpath_var=LD_LIBRARY_PATH
21282 shlibpath_overrides_runpath=no
21283 hardcode_into_libs=yes
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 shlibpath_var=LD_LIBRARY_PATH
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21298 $as_echo "$dynamic_linker" >&6; }
21299 test "$dynamic_linker" = no && can_build_shared=no
21301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21302 if test "$GCC" = yes; then
21303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21306 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21307 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21309 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21310 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21352 hardcode_action_CXX=
21353 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21354 test -n "$runpath_var_CXX" ||
21355 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21357 # We can hardcode non-existent directories.
21358 if test "$hardcode_direct_CXX" != no &&
21359 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21360 # have to relink, otherwise we might link with an installed library
21361 # when we should be linking with a yet-to-be-installed one
21362 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21363 test "$hardcode_minus_L_CXX" != no; then
21364 # Linking always hardcodes the temporary library directory.
21365 hardcode_action_CXX=relink
21367 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21368 hardcode_action_CXX=immediate
21371 # We cannot hardcode anything, or else we can only hardcode existing
21373 hardcode_action_CXX=unsupported
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21376 $as_echo "$hardcode_action_CXX" >&6; }
21378 if test "$hardcode_action_CXX" = relink ||
21379 test "$inherit_rpath_CXX" = yes; then
21380 # Fast installation is not supported
21381 enable_fast_install=no
21382 elif test "$shlibpath_overrides_runpath" = yes ||
21383 test "$enable_shared" = no; then
21384 # Fast installation is not necessary
21385 enable_fast_install=needless
21394 fi # test -n "$compiler"
21400 with_gnu_ld=$lt_save_with_gnu_ld
21401 lt_cv_path_LDCXX=$lt_cv_path_LD
21402 lt_cv_path_LD=$lt_save_path_LD
21403 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21404 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21405 fi # test "$_lt_caught_CXX_error" != yes
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21428 # Only expand once:
21434 # Identify the assembler which will work hand-in-glove with the newly
21435 # built GCC, so that we can examine its features. This is the assembler
21436 # which will be driven by the driver program.
21438 # If build != host, and we aren't building gas in-tree, we identify a
21439 # build->target assembler and hope that it will have the same features
21440 # as the host->target assembler we'll be using.
21441 gcc_cv_gas_major_version=
21442 gcc_cv_gas_minor_version=
21443 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21445 if test "${gcc_cv_as+set}" = set; then :
21449 if test -x "$DEFAULT_ASSEMBLER"; then
21450 gcc_cv_as="$DEFAULT_ASSEMBLER"
21451 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21452 && test -f ../gas/Makefile \
21453 && test x$build = x$host; then
21454 gcc_cv_as=../gas/as-new$build_exeext
21455 elif test -x as$build_exeext; then
21456 # Build using assembler in the current directory.
21457 gcc_cv_as=./as$build_exeext
21458 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21459 gcc_cv_as="$AS_FOR_TARGET"
21461 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21462 set dummy $AS_FOR_TARGET; ac_word=$2
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21464 $as_echo_n "checking for $ac_word... " >&6; }
21465 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21466 $as_echo_n "(cached) " >&6
21470 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21474 for as_dir in $PATH
21477 test -z "$as_dir" && as_dir=.
21478 for ac_exec_ext in '' $ac_executable_extensions; do
21479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21480 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21491 gcc_cv_as=$ac_cv_path_gcc_cv_as
21492 if test -n "$gcc_cv_as"; then
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21494 $as_echo "$gcc_cv_as" >&6; }
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21497 $as_echo "no" >&6; }
21504 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21506 case "$ORIGINAL_AS_FOR_TARGET" in
21507 ./as | ./as$build_exeext) ;;
21508 *) ac_config_files="$ac_config_files as:exec-tool.in"
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21513 $as_echo_n "checking what assembler to use... " >&6; }
21514 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21515 # Single tree build which includes gas. We want to prefer it
21516 # over whatever linker top-level may have detected, since
21517 # we'll use what we're building after installation anyway.
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21519 $as_echo "newly built gas" >&6; }
21521 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21522 for f in $gcc_cv_as_bfd_srcdir/configure \
21523 $gcc_cv_as_gas_srcdir/configure \
21524 $gcc_cv_as_gas_srcdir/configure.in \
21525 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21526 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21527 if test x$gcc_cv_gas_version != x; then
21531 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21532 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21533 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21534 case $gcc_cv_gas_patch_version in
21535 "") gcc_cv_gas_patch_version="0" ;;
21537 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21538 + $gcc_cv_gas_minor_version \) \* 1000 \
21539 + $gcc_cv_gas_patch_version`
21541 in_tree_gas_is_elf=no
21542 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21543 || (grep 'obj_format = multi' ../gas/Makefile \
21544 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21546 in_tree_gas_is_elf=yes
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21550 $as_echo "$gcc_cv_as" >&6; }
21554 # Identify the linker which will work hand-in-glove with the newly
21555 # built GCC, so that we can examine its features. This is the linker
21556 # which will be driven by the driver program.
21558 # If build != host, and we aren't building gas in-tree, we identify a
21559 # build->target linker and hope that it will have the same features
21560 # as the host->target linker we'll be using.
21561 gcc_cv_gld_major_version=
21562 gcc_cv_gld_minor_version=
21563 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21564 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21566 if test "${gcc_cv_ld+set}" = set; then :
21570 if test -x "$DEFAULT_LINKER"; then
21571 gcc_cv_ld="$DEFAULT_LINKER"
21572 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21573 && test -f ../ld/Makefile \
21574 && test x$build = x$host; then
21575 gcc_cv_ld=../ld/ld-new$build_exeext
21576 elif test -x collect-ld$build_exeext; then
21577 # Build using linker in the current directory.
21578 gcc_cv_ld=./collect-ld$build_exeext
21579 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21580 gcc_cv_ld="$LD_FOR_TARGET"
21582 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21583 set dummy $LD_FOR_TARGET; ac_word=$2
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21585 $as_echo_n "checking for $ac_word... " >&6; }
21586 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21587 $as_echo_n "(cached) " >&6
21591 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21598 test -z "$as_dir" && as_dir=.
21599 for ac_exec_ext in '' $ac_executable_extensions; do
21600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21601 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21612 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21613 if test -n "$gcc_cv_ld"; then
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21615 $as_echo "$gcc_cv_ld" >&6; }
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21625 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21626 PLUGIN_LD=`basename $gcc_cv_ld`
21628 # Check whether --with-plugin-ld was given.
21629 if test "${with_plugin_ld+set}" = set; then :
21630 withval=$with_plugin_ld; if test x"$withval" != x; then
21631 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21632 PLUGIN_LD="$withval"
21638 cat >>confdefs.h <<_ACEOF
21639 #define PLUGIN_LD "$PLUGIN_LD"
21643 # Check to see if we are using gold instead of ld
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21645 $as_echo_n "checking whether we are using gold... " >&6; }
21647 if test x$gcc_cv_ld != x; then
21648 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21649 | grep "GNU gold" > /dev/null; then
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21654 $as_echo "$ld_is_gold" >&6; }
21656 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21658 case "$ORIGINAL_LD_FOR_TARGET" in
21659 ./collect-ld | ./collect-ld$build_exeext) ;;
21660 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21665 $as_echo_n "checking what linker to use... " >&6; }
21666 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21667 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21668 # Single tree build which includes ld. We want to prefer it
21669 # over whatever linker top-level may have detected, since
21670 # we'll use what we're building after installation anyway.
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21672 $as_echo "newly built ld" >&6; }
21674 in_tree_ld_is_elf=no
21675 if (grep 'EMUL = .*elf' ../ld/Makefile \
21676 || grep 'EMUL = .*linux' ../ld/Makefile \
21677 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21678 in_tree_ld_is_elf=yes
21679 elif test "$ld_is_gold" = yes; then
21680 in_tree_ld_is_elf=yes
21682 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
21684 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21685 if test x$gcc_cv_gld_version != x; then
21689 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21690 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21693 $as_echo "$gcc_cv_ld" >&6; }
21697 # Figure out what nm we will be using.
21698 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21699 if test "${gcc_cv_nm+set}" = set; then :
21703 if test -f $gcc_cv_binutils_srcdir/configure.in \
21704 && test -f ../binutils/Makefile \
21705 && test x$build = x$host; then
21706 gcc_cv_nm=../binutils/nm-new$build_exeext
21707 elif test -x nm$build_exeext; then
21708 gcc_cv_nm=./nm$build_exeext
21709 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21710 gcc_cv_nm="$NM_FOR_TARGET"
21712 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21713 set dummy $NM_FOR_TARGET; ac_word=$2
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21715 $as_echo_n "checking for $ac_word... " >&6; }
21716 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21717 $as_echo_n "(cached) " >&6
21721 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21725 for as_dir in $PATH
21728 test -z "$as_dir" && as_dir=.
21729 for ac_exec_ext in '' $ac_executable_extensions; do
21730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21731 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21742 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21743 if test -n "$gcc_cv_nm"; then
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21745 $as_echo "$gcc_cv_nm" >&6; }
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 $as_echo "no" >&6; }
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21756 $as_echo_n "checking what nm to use... " >&6; }
21757 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21758 # Single tree build which includes binutils.
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21760 $as_echo "newly built nm" >&6; }
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21764 $as_echo "$gcc_cv_nm" >&6; }
21768 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21770 case "$ORIGINAL_NM_FOR_TARGET" in
21771 ./nm | ./nm$build_exeext) ;;
21772 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21777 # Figure out what objdump we will be using.
21778 if test "${gcc_cv_objdump+set}" = set; then :
21782 if test -f $gcc_cv_binutils_srcdir/configure.in \
21783 && test -f ../binutils/Makefile \
21784 && test x$build = x$host; then
21785 # Single tree build which includes binutils.
21786 gcc_cv_objdump=../binutils/objdump$build_exeext
21787 elif test -x objdump$build_exeext; then
21788 gcc_cv_objdump=./objdump$build_exeext
21789 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21790 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21792 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21793 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21795 $as_echo_n "checking for $ac_word... " >&6; }
21796 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21797 $as_echo_n "(cached) " >&6
21799 case $gcc_cv_objdump in
21801 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21805 for as_dir in $PATH
21808 test -z "$as_dir" && as_dir=.
21809 for ac_exec_ext in '' $ac_executable_extensions; do
21810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21811 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21822 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21823 if test -n "$gcc_cv_objdump"; then
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21825 $as_echo "$gcc_cv_objdump" >&6; }
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21828 $as_echo "no" >&6; }
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21836 $as_echo_n "checking what objdump to use... " >&6; }
21837 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21838 # Single tree build which includes binutils.
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21840 $as_echo "newly built objdump" >&6; }
21841 elif test x$gcc_cv_objdump = x; then
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21843 $as_echo "not found" >&6; }
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21846 $as_echo "$gcc_cv_objdump" >&6; }
21849 # Figure out what readelf we will be using.
21850 if test "${gcc_cv_readelf+set}" = set; then :
21854 if test -f $gcc_cv_binutils_srcdir/configure.in \
21855 && test -f ../binutils/Makefile \
21856 && test x$build = x$host; then
21857 # Single tree build which includes binutils.
21858 gcc_cv_readelf=../binutils/readelf$build_exeext
21859 elif test -x readelf$build_exeext; then
21860 gcc_cv_readelf=./readelf$build_exeext
21862 # Extract the first word of "readelf", so it can be a program name with args.
21863 set dummy readelf; ac_word=$2
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21865 $as_echo_n "checking for $ac_word... " >&6; }
21866 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
21869 case $gcc_cv_readelf in
21871 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875 for as_dir in $PATH
21878 test -z "$as_dir" && as_dir=.
21879 for ac_exec_ext in '' $ac_executable_extensions; do
21880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21881 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21892 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21893 if test -n "$gcc_cv_readelf"; then
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21895 $as_echo "$gcc_cv_readelf" >&6; }
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21906 $as_echo_n "checking what readelf to use... " >&6; }
21907 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21908 # Single tree build which includes binutils.
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21910 $as_echo "newly built readelf" >&6; }
21911 elif test x$gcc_cv_readelf = x; then
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21913 $as_echo "not found" >&6; }
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21916 $as_echo "$gcc_cv_readelf" >&6; }
21919 # Figure out what assembler alignment features are present.
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21921 $as_echo_n "checking assembler flags... " >&6; }
21922 if test "${gcc_cv_as_flags+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21926 i[34567]86-*-linux*)
21927 gcc_cv_as_flags="--32"
21929 powerpc*-*-darwin*)
21930 gcc_cv_as_flags="-arch ppc"
21933 gcc_cv_as_flags=" "
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21938 $as_echo "$gcc_cv_as_flags" >&6; }
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21941 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21942 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21945 gcc_cv_as_balign_and_p2align=no
21946 if test $in_tree_gas = yes; then
21947 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21948 then gcc_cv_as_balign_and_p2align=yes
21950 elif test x$gcc_cv_as != x; then
21951 $as_echo '.balign 4
21952 .p2align 2' > conftest.s
21953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21955 (eval $ac_try) 2>&5
21957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958 test $ac_status = 0; }; }
21960 gcc_cv_as_balign_and_p2align=yes
21962 echo "configure: failed program was" >&5
21965 rm -f conftest.o conftest.s
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21969 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21970 if test $gcc_cv_as_balign_and_p2align = yes; then
21972 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21977 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21978 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21981 gcc_cv_as_max_skip_p2align=no
21982 if test $in_tree_gas = yes; then
21983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21984 then gcc_cv_as_max_skip_p2align=yes
21986 elif test x$gcc_cv_as != x; then
21987 $as_echo '.p2align 4,,7' > conftest.s
21988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21990 (eval $ac_try) 2>&5
21992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993 test $ac_status = 0; }; }
21995 gcc_cv_as_max_skip_p2align=yes
21997 echo "configure: failed program was" >&5
22000 rm -f conftest.o conftest.s
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22004 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22005 if test $gcc_cv_as_max_skip_p2align = yes; then
22007 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22012 $as_echo_n "checking assembler for .literal16... " >&6; }
22013 if test "${gcc_cv_as_literal16+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22016 gcc_cv_as_literal16=no
22017 if test $in_tree_gas = yes; then
22018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22019 then gcc_cv_as_literal16=yes
22021 elif test x$gcc_cv_as != x; then
22022 $as_echo '.literal16' > conftest.s
22023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22025 (eval $ac_try) 2>&5
22027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22028 test $ac_status = 0; }; }
22030 gcc_cv_as_literal16=yes
22032 echo "configure: failed program was" >&5
22035 rm -f conftest.o conftest.s
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22039 $as_echo "$gcc_cv_as_literal16" >&6; }
22040 if test $gcc_cv_as_literal16 = yes; then
22042 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22047 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22048 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22049 $as_echo_n "(cached) " >&6
22051 gcc_cv_as_subsection_m1=no
22052 if test $in_tree_gas = yes; then
22053 if test $in_tree_gas_is_elf = yes \
22054 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22055 then gcc_cv_as_subsection_m1=yes
22057 elif test x$gcc_cv_as != x; then
22058 $as_echo 'conftest_label1: .word 0
22060 conftest_label2: .word 0
22061 .previous' > conftest.s
22062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22064 (eval $ac_try) 2>&5
22066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22067 test $ac_status = 0; }; }
22069 if test x$gcc_cv_nm != x; then
22070 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22071 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22072 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22074 else gcc_cv_as_subsection_m1=yes
22076 rm -f conftest.nm1 conftest.nm2
22079 echo "configure: failed program was" >&5
22082 rm -f conftest.o conftest.s
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22086 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22087 if test $gcc_cv_as_subsection_m1 = yes; then
22089 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22094 $as_echo_n "checking assembler for .weak... " >&6; }
22095 if test "${gcc_cv_as_weak+set}" = set; then :
22096 $as_echo_n "(cached) " >&6
22099 if test $in_tree_gas = yes; then
22100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22101 then gcc_cv_as_weak=yes
22103 elif test x$gcc_cv_as != x; then
22104 $as_echo ' .weak foobar' > conftest.s
22105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22107 (eval $ac_try) 2>&5
22109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22110 test $ac_status = 0; }; }
22114 echo "configure: failed program was" >&5
22117 rm -f conftest.o conftest.s
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22121 $as_echo "$gcc_cv_as_weak" >&6; }
22122 if test $gcc_cv_as_weak = yes; then
22124 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22129 $as_echo_n "checking assembler for .weakref... " >&6; }
22130 if test "${gcc_cv_as_weakref+set}" = set; then :
22131 $as_echo_n "(cached) " >&6
22133 gcc_cv_as_weakref=no
22134 if test $in_tree_gas = yes; then
22135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22136 then gcc_cv_as_weakref=yes
22138 elif test x$gcc_cv_as != x; then
22139 $as_echo ' .weakref foobar, barfnot' > conftest.s
22140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22142 (eval $ac_try) 2>&5
22144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22145 test $ac_status = 0; }; }
22147 gcc_cv_as_weakref=yes
22149 echo "configure: failed program was" >&5
22152 rm -f conftest.o conftest.s
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22156 $as_echo "$gcc_cv_as_weakref" >&6; }
22157 if test $gcc_cv_as_weakref = yes; then
22159 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22164 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22165 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22166 $as_echo_n "(cached) " >&6
22168 gcc_cv_as_nsubspa_comdat=no
22169 if test $in_tree_gas = yes; then
22170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22171 then gcc_cv_as_nsubspa_comdat=yes
22173 elif test x$gcc_cv_as != x; then
22174 $as_echo ' .SPACE $TEXT$
22175 .NSUBSPA $CODE$,COMDAT' > conftest.s
22176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22178 (eval $ac_try) 2>&5
22180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22181 test $ac_status = 0; }; }
22183 gcc_cv_as_nsubspa_comdat=yes
22185 echo "configure: failed program was" >&5
22188 rm -f conftest.o conftest.s
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22192 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22193 if test $gcc_cv_as_nsubspa_comdat = yes; then
22195 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22199 # .hidden needs to be supported in both the assembler and the linker,
22200 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22201 # This is irritatingly difficult to feature test for; we have to check the
22202 # date string after the version number. If we've got an in-tree
22203 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22205 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22207 $as_echo_n "checking assembler for .hidden... " >&6; }
22208 if test "${gcc_cv_as_hidden+set}" = set; then :
22209 $as_echo_n "(cached) " >&6
22211 gcc_cv_as_hidden=no
22212 if test $in_tree_gas = yes; then
22213 if test $in_tree_gas_is_elf = yes \
22214 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22215 then gcc_cv_as_hidden=yes
22217 elif test x$gcc_cv_as != x; then
22218 $as_echo ' .hidden foobar
22219 foobar:' > conftest.s
22220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22222 (eval $ac_try) 2>&5
22224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22225 test $ac_status = 0; }; }
22228 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22229 # STV_HIDDEN, so disable .hidden support if so.
22230 case "${target}" in
22231 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22232 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22233 cat > conftest.s <<EOF
22238 .set default,hidden
22240 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22241 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22242 grep '\.hidden default' > /dev/null; then
22243 gcc_cv_as_hidden=no
22245 gcc_cv_as_hidden=yes
22248 # Assume bug is present if objdump is missing.
22249 gcc_cv_as_hidden=no
22253 gcc_cv_as_hidden=yes
22257 echo "configure: failed program was" >&5
22260 rm -f conftest.o conftest.s
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22264 $as_echo "$gcc_cv_as_hidden" >&6; }
22266 case "${target}" in
22268 # Darwin as has some visibility support, though with a different syntax.
22269 gcc_cv_as_hidden=yes
22273 # gnu_indirect_function type is an extension proposed at
22274 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22275 # selection of function implementation
22276 # Check whether --enable-gnu-indirect-function was given.
22277 if test "${enable_gnu_indirect_function+set}" = set; then :
22278 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22280 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22281 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22284 enable_gnu_indirect_function="$default_gnu_indirect_function"
22287 if test x$enable_gnu_indirect_function = xyes; then
22289 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22293 if test $in_tree_ld != yes ; then
22294 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22295 if echo "$ld_ver" | grep GNU > /dev/null; then
22296 if test x"$ld_is_gold" = xyes; then
22297 # GNU gold --version looks like this:
22299 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22301 # We extract the binutils version which is more familiar and specific
22302 # than the gold version.
22303 ld_vers=`echo $ld_ver | sed -n \
22304 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22306 # GNU ld --version looks like this:
22308 # GNU ld (GNU Binutils) 2.21.51.20110225
22309 ld_vers=`echo $ld_ver | sed -n \
22310 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22312 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'`
22313 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22314 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22315 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22317 case "${target}" in
22320 # Solaris 2 ld -V output looks like this for a regular version:
22322 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22324 # but test versions add stuff at the end:
22326 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22328 ld_ver=`$gcc_cv_ld -V 2>&1`
22329 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22330 ld_vers=`echo $ld_ver | sed -n \
22331 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22332 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22333 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22341 $as_echo_n "checking linker for .hidden support... " >&6; }
22342 if test "${gcc_cv_ld_hidden+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
22345 if test $in_tree_ld = yes ; then
22346 gcc_cv_ld_hidden=no
22347 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 \
22348 && test $in_tree_ld_is_elf = yes; then
22349 gcc_cv_ld_hidden=yes
22352 gcc_cv_ld_hidden=yes
22353 if test x"$ld_is_gold" = xyes; then
22355 elif echo "$ld_ver" | grep GNU > /dev/null; then
22356 if test 0"$ld_date" -lt 20020404; then
22357 if test -n "$ld_date"; then
22358 # If there was date string, but was earlier than 2002-04-04, fail
22359 gcc_cv_ld_hidden=no
22360 elif test -z "$ld_vers"; then
22361 # If there was no date string nor ld version number, something is wrong
22362 gcc_cv_ld_hidden=no
22364 test -z "$ld_vers_patch" && ld_vers_patch=0
22365 if test "$ld_vers_major" -lt 2; then
22366 gcc_cv_ld_hidden=no
22367 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22368 gcc_cv_ld_hidden="no"
22369 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22370 gcc_cv_ld_hidden=no
22375 case "${target}" in
22377 # Darwin ld has some visibility support.
22378 gcc_cv_ld_hidden=yes
22380 hppa64*-*-hpux* | ia64*-*-hpux*)
22381 gcc_cv_ld_hidden=yes
22384 # .hidden support was backported to Solaris 8, starting with ld
22386 if test "$ld_vers_minor" -ge 276; then
22387 gcc_cv_ld_hidden=yes
22389 gcc_cv_ld_hidden=no
22392 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22393 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22394 # .symbolic was only added in Solaris 9 12/02.
22395 gcc_cv_ld_hidden=yes
22398 gcc_cv_ld_hidden=no
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22405 $as_echo "$gcc_cv_ld_hidden" >&6; }
22406 libgcc_visibility=no
22409 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22410 libgcc_visibility=yes
22412 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22417 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22418 gcc_cv_ld_ro_rw_mix=unknown
22419 if test $in_tree_ld = yes ; then
22420 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 \
22421 && test $in_tree_ld_is_elf = yes; then
22422 gcc_cv_ld_ro_rw_mix=read-write
22424 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22425 echo '.section myfoosect, "a"' > conftest1.s
22426 echo '.section myfoosect, "aw"' > conftest2.s
22427 echo '.byte 1' >> conftest2.s
22428 echo '.section myfoosect, "a"' > conftest3.s
22429 echo '.byte 0' >> conftest3.s
22430 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22431 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22432 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22433 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22434 conftest2.o conftest3.o > /dev/null 2>&1; then
22435 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22436 | sed -e '/myfoosect/!d' -e N`
22437 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22438 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22439 gcc_cv_ld_ro_rw_mix=read-only
22441 gcc_cv_ld_ro_rw_mix=read-write
22445 rm -f conftest.* conftest[123].*
22447 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22449 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22453 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22455 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22457 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22458 if test "${gcc_cv_as_leb128+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22461 gcc_cv_as_leb128=no
22462 if test $in_tree_gas = yes; then
22463 if test $in_tree_gas_is_elf = yes \
22464 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22465 then gcc_cv_as_leb128=yes
22467 elif test x$gcc_cv_as != x; then
22474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22476 (eval $ac_try) 2>&5
22478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22479 test $ac_status = 0; }; }
22481 # GAS versions before 2.11 do not support uleb128,
22482 # despite appearing to.
22483 # ??? There exists an elf-specific test that will crash
22484 # the assembler. Perhaps it's better to figure out whether
22485 # arbitrary sections are supported and try the test.
22486 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22487 if echo "$as_ver" | grep GNU > /dev/null; then
22488 as_vers=`echo $as_ver | sed -n \
22489 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22490 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22491 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22492 if test $as_major -eq 2 && test $as_minor -lt 11
22494 else gcc_cv_as_leb128=yes
22498 echo "configure: failed program was" >&5
22501 rm -f conftest.o conftest.s
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22505 $as_echo "$gcc_cv_as_leb128" >&6; }
22506 if test $gcc_cv_as_leb128 = yes; then
22508 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22512 # Check if we have assembler support for unwind directives.
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22514 $as_echo_n "checking assembler for cfi directives... " >&6; }
22515 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22516 $as_echo_n "(cached) " >&6
22518 gcc_cv_as_cfi_directive=no
22519 if test x$gcc_cv_as != x; then
22525 .cfi_escape 1, 2, 3, 4, 5
22526 .cfi_endproc' > conftest.s
22527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22529 (eval $ac_try) 2>&5
22531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22532 test $ac_status = 0; }; }
22536 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22537 # read-only and read-write sections, we need to make sure that the
22538 # assembler used emits read-write .eh_frame sections.
22539 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22540 if test "x$gcc_cv_objdump" != x; then
22541 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22542 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22543 gcc_cv_as_cfi_directive=no
22546 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22547 # On Solaris/x86, make sure that GCC and gas agree on using
22548 # read-only .eh_frame sections for 64-bit.
22549 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22550 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22551 sed -e /.eh_frame/!d -e N | \
22552 grep READONLY > /dev/null; then
22553 gcc_cv_as_cfi_directive=yes
22555 gcc_cv_as_cfi_directive=no
22559 gcc_cv_as_cfi_directive=yes
22564 # no objdump, err on the side of caution
22565 gcc_cv_as_cfi_directive=no
22568 gcc_cv_as_cfi_directive=yes
22572 gcc_cv_as_cfi_directive=yes
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22583 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22585 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22587 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22588 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22591 gcc_cv_as_cfi_advance_working=no
22592 if test x$gcc_cv_as != x; then
22595 .cfi_adjust_cfa_offset 64
22597 .cfi_adjust_cfa_offset 128
22598 .cfi_endproc' > conftest.s
22599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22601 (eval $ac_try) 2>&5
22603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22604 test $ac_status = 0; }; }
22607 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22608 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22609 gcc_cv_as_cfi_advance_working=yes
22613 echo "configure: failed program was" >&5
22616 rm -f conftest.o conftest.s
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22620 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22623 # no objdump, err on the side of caution
22624 gcc_cv_as_cfi_advance_working=no
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22630 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22636 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22637 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22638 $as_echo_n "(cached) " >&6
22640 gcc_cv_as_cfi_personality_directive=no
22641 if test x$gcc_cv_as != x; then
22644 .cfi_personality 0, symbol
22645 .cfi_endproc' > conftest.s
22646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648 (eval $ac_try) 2>&5
22650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651 test $ac_status = 0; }; }
22653 gcc_cv_as_cfi_personality_directive=yes
22655 echo "configure: failed program was" >&5
22658 rm -f conftest.o conftest.s
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22662 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22665 cat >>confdefs.h <<_ACEOF
22666 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22667 then echo 1; else echo 0; fi`
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22672 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22673 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22674 $as_echo_n "(cached) " >&6
22676 gcc_cv_as_cfi_sections_directive=no
22677 if test x$gcc_cv_as != x; then
22679 .cfi_sections .debug_frame, .eh_frame
22681 .cfi_endproc' > conftest.s
22682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22684 (eval $ac_try) 2>&5
22686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687 test $ac_status = 0; }; }
22690 win32 | pe | cygwin* | mingw32* | uwin*)
22691 # Need to check that we generated the correct relocation for the
22692 # .debug_frame section. This was fixed for binutils 2.21.
22693 gcc_cv_as_cfi_sections_directive=no
22694 if test "x$gcc_cv_objdump" != x; then
22695 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22696 grep secrel > /dev/null; then
22697 gcc_cv_as_cfi_sections_directive=yes
22702 gcc_cv_as_cfi_sections_directive=yes
22706 echo "configure: failed program was" >&5
22709 rm -f conftest.o conftest.s
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22713 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22719 then echo 1; else echo 0; fi`
22723 # GAS versions up to and including 2.11.0 may mis-optimize
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22726 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22727 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22728 $as_echo_n "(cached) " >&6
22730 gcc_cv_as_eh_frame=no
22731 if test $in_tree_gas = yes; then
22732 if test $in_tree_gas_is_elf = yes \
22733 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22734 then gcc_cv_as_eh_frame=yes
22736 elif test x$gcc_cv_as != x; then
22743 .section .eh_frame,"aw",@progbits
22745 .4byte .LECIE1-.LSCIE1
22759 .4byte .LEFDE1-.LASFDE1
22761 .4byte .LASFDE1-__FRAME_BEGIN__
22768 .LEFDE1:' > conftest.s
22769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22771 (eval $ac_try) 2>&5
22773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774 test $ac_status = 0; }; }
22776 cat > conftest.lit <<EOF
22777 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22778 0010 01000000 12000000 18000000 00000000 ................
22779 0020 08000000 04080000 0044 .........D
22781 cat > conftest.big <<EOF
22782 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22783 0010 00000001 00000012 00000018 00000000 ................
22784 0020 00000008 04000000 0844 .........D
22786 # If the assembler didn't choke, and we can objdump,
22787 # and we got the correct data, then succeed.
22788 # The text in the here-document typically retains its unix-style line
22789 # endings, while the output of objdump will use host line endings.
22790 # Therefore, use diff -b for the comparisons.
22791 if test x$gcc_cv_objdump != x \
22792 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22793 | tail -3 > conftest.got \
22794 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22795 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22797 gcc_cv_as_eh_frame=yes
22798 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22800 (eval $ac_try) 2>&5
22802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22803 test $ac_status = 0; }; }; then
22804 gcc_cv_as_eh_frame=buggy
22806 # Uh oh, what do we do now?
22807 gcc_cv_as_eh_frame=no
22810 echo "configure: failed program was" >&5
22813 rm -f conftest.o conftest.s
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22817 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22820 if test $gcc_cv_as_eh_frame = buggy; then
22822 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22827 $as_echo_n "checking assembler for section merging support... " >&6; }
22828 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22831 gcc_cv_as_shf_merge=no
22832 if test $in_tree_gas = yes; then
22833 if test $in_tree_gas_is_elf = yes \
22834 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22835 then gcc_cv_as_shf_merge=yes
22837 elif test x$gcc_cv_as != x; then
22838 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22841 (eval $ac_try) 2>&5
22843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22844 test $ac_status = 0; }; }
22846 gcc_cv_as_shf_merge=yes
22848 echo "configure: failed program was" >&5
22851 rm -f conftest.o conftest.s
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22855 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22857 if test $gcc_cv_as_shf_merge = no; then
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22859 $as_echo_n "checking assembler for section merging support... " >&6; }
22860 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22863 gcc_cv_as_shf_merge=no
22864 if test $in_tree_gas = yes; then
22865 if test $in_tree_gas_is_elf = yes \
22866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22867 then gcc_cv_as_shf_merge=yes
22869 elif test x$gcc_cv_as != x; then
22870 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873 (eval $ac_try) 2>&5
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }; }
22878 gcc_cv_as_shf_merge=yes
22880 echo "configure: failed program was" >&5
22883 rm -f conftest.o conftest.s
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22887 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22891 cat >>confdefs.h <<_ACEOF
22892 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22897 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22898 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22901 gcc_cv_as_comdat_group=no
22902 if test $in_tree_gas = yes; then
22903 if test $in_tree_gas_is_elf = yes \
22904 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22905 then gcc_cv_as_comdat_group=yes
22907 elif test x$gcc_cv_as != x; then
22908 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911 (eval $ac_try) 2>&5
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; }
22916 gcc_cv_as_comdat_group=yes
22918 echo "configure: failed program was" >&5
22921 rm -f conftest.o conftest.s
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22925 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22927 if test $gcc_cv_as_comdat_group = yes; then
22928 gcc_cv_as_comdat_group_percent=no
22929 gcc_cv_as_comdat_group_group=no
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22932 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22933 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22934 $as_echo_n "(cached) " >&6
22936 gcc_cv_as_comdat_group_percent=no
22937 if test $in_tree_gas = yes; then
22938 if test $in_tree_gas_is_elf = yes \
22939 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22940 then gcc_cv_as_comdat_group_percent=yes
22942 elif test x$gcc_cv_as != x; then
22943 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22946 (eval $ac_try) 2>&5
22948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22949 test $ac_status = 0; }; }
22951 gcc_cv_as_comdat_group_percent=yes
22953 echo "configure: failed program was" >&5
22956 rm -f conftest.o conftest.s
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22960 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22962 if test $gcc_cv_as_comdat_group_percent = yes; then
22963 gcc_cv_as_comdat_group_group=no
22965 case "${target}" in
22966 # Sun as uses a completely different syntax.
22968 case "${target}" in
22969 sparc*-*-solaris2*)
22971 .group foo,".text%foo",#comdat
22972 .section ".text%foo", #alloc,#execinstr,#progbits
22977 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22979 .group foo,.text%foo,#comdat
22980 .section .text%foo, "ax", @progbits
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22987 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22988 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22989 $as_echo_n "(cached) " >&6
22991 gcc_cv_as_comdat_group_group=no
22992 if test x$gcc_cv_as != x; then
22993 $as_echo "$conftest_s" > conftest.s
22994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996 (eval $ac_try) 2>&5
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }; }
23001 gcc_cv_as_comdat_group_group=yes
23003 echo "configure: failed program was" >&5
23006 rm -f conftest.o conftest.s
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23010 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23016 if test x"$ld_is_gold" = xyes; then
23018 elif test $in_tree_ld = yes ; then
23020 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 \
23021 && test $in_tree_ld_is_elf = yes; then
23024 elif echo "$ld_ver" | grep GNU > /dev/null; then
23026 if test 0"$ld_date" -lt 20050308; then
23027 if test -n "$ld_date"; then
23028 # If there was date string, but was earlier than 2005-03-08, fail
23030 elif test "$ld_vers_major" -lt 2; then
23032 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23037 case "${target}" in
23038 *-*-solaris2.1[1-9]*)
23040 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23041 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23044 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23045 # least ld version 1.2267.
23046 if test "$ld_vers_major" -gt 1; then
23048 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23050 elif test "$ld_vers_minor" -ge 2267; then
23055 # Assume linkers other than GNU ld don't support COMDAT group.
23060 # Allow overriding the automatic COMDAT group tests above.
23061 # Check whether --enable-comdat was given.
23062 if test "${enable_comdat+set}" = set; then :
23063 enableval=$enable_comdat; comdat_group="$enable_comdat"
23066 if test $comdat_group = no; then
23067 gcc_cv_as_comdat_group=no
23068 gcc_cv_as_comdat_group_percent=no
23069 gcc_cv_as_comdat_group_group=no
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23074 || test $gcc_cv_as_comdat_group_percent = yes \
23075 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23080 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23081 if test "${gcc_cv_as_discriminator+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23084 gcc_cv_as_discriminator=no
23085 if test $in_tree_gas = yes; then
23086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23087 then gcc_cv_as_discriminator=yes
23089 elif test x$gcc_cv_as != x; then
23092 .loc 1 1 0 discriminator 1' > conftest.s
23093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23095 (eval $ac_try) 2>&5
23097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23098 test $ac_status = 0; }; }
23100 gcc_cv_as_discriminator=yes
23102 echo "configure: failed program was" >&5
23105 rm -f conftest.o conftest.s
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23109 $as_echo "$gcc_cv_as_discriminator" >&6; }
23110 if test $gcc_cv_as_discriminator = yes; then
23112 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23116 # Thread-local storage - the check is heavily parameterized.
23124 .section ".tdata","awT",@progbits
23127 ldq $27,__tls_get_addr($29) !literal!1
23128 lda $16,foo($29) !tlsgd!1
23129 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23130 ldq $27,__tls_get_addr($29) !literal!2
23131 lda $16,foo($29) !tlsldm!2
23132 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23133 ldq $1,foo($29) !gotdtprel
23134 ldah $2,foo($29) !dtprelhi
23135 lda $3,foo($2) !dtprello
23136 lda $4,foo($29) !dtprel
23137 ldq $1,foo($29) !gottprel
23138 ldah $2,foo($29) !tprelhi
23139 lda $3,foo($2) !tprello
23140 lda $4,foo($29) !tprel'
23143 tls_as_opt=--fatal-warnings
23145 cris-*-*|crisv32-*-*)
23147 .section ".tdata","awT",@progbits
23154 tls_as_opt=--fatal-warnings
23158 .section ".tdata","awT",@progbits
23161 call #gettlsoff(x)'
23170 .section ".tdata","awT",@progbits
23174 addil LT%foo-$tls_gdidx$,gp
23175 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23178 addil LT%foo-$tls_ldidx$,gp
23180 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23181 addil LR%foo-$tls_dtpoff$,%ret0
23182 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23184 addil LT%foo-$tls_ieoff$,gp
23185 ldw RT%foo-$tls_ieoff$(%r1),%t2
23188 addil LR%foo-$tls_leoff$,%t1
23189 ldo RR%foo-$tls_leoff$(%r1),%t2'
23192 tls_as_opt=--fatal-warnings
23196 .section ".tdata","awT",%progbits
23199 .word foo(gottpoff)
23207 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23209 i[34567]86-*-solaris2.*)
23211 tga_func=___tls_get_addr
23213 x86_64-*-solaris2.1[0-9]*)
23215 tga_func=__tls_get_addr
23221 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23223 .section .tdata,"awt",@progbits'
23227 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23231 .section ".tdata","awT",@progbits'
23234 tls_as_opt="--fatal-warnings"
23236 conftest_s="$conftest_s
23240 leal foo@tlsgd(,%ebx,1), %eax
23241 leal foo@tlsldm(%ebx), %eax
23242 leal foo@dtpoff(%eax), %edx
23243 movl foo@gottpoff(%ebx), %eax
23244 subl foo@gottpoff(%ebx), %eax
23245 addl foo@gotntpoff(%ebx), %eax
23246 movl foo@indntpoff, %eax
23247 movl \$foo@tpoff, %eax
23248 subl \$foo@tpoff, %eax
23249 leal foo@ntpoff(%ecx), %eax"
23253 .section ".tdata","awT",@progbits
23257 leaq foo@TLSGD(%rip), %rdi
23258 leaq foo@TLSLD(%rip), %rdi
23259 leaq foo@DTPOFF(%rax), %rdx
23260 movq foo@GOTTPOFF(%rip), %rax
23261 movq $foo@TPOFF, %rax'
23264 tls_as_opt=--fatal-warnings
23268 .section ".tdata","awT",@progbits
23271 addl r16 = @ltoff(@dtpmod(foo#)), gp
23272 addl r17 = @ltoff(@dtprel(foo#)), gp
23273 addl r18 = @ltoff(@tprel(foo#)), gp
23274 addl r19 = @dtprel(foo#), gp
23275 adds r21 = @dtprel(foo#), r13
23276 movl r23 = @dtprel(foo#)
23277 addl r20 = @tprel(foo#), gp
23278 adds r22 = @tprel(foo#), r13
23279 movl r24 = @tprel(foo#)'
23282 tls_as_opt=--fatal-warnings
23286 .section .tdata,"awT",@progbits
23290 addiu $4, $28, %tlsgd(x)
23291 addiu $4, $28, %tlsldm(x)
23292 lui $4, %dtprel_hi(x)
23293 addiu $4, $4, %dtprel_lo(x)
23294 lw $4, %gottprel(x)($28)
23295 lui $4, %tprel_hi(x)
23296 addiu $4, $4, %tprel_lo(x)'
23299 tls_as_opt='-32 --fatal-warnings'
23303 .section .tdata,"awT",@progbits
23308 move.l x@TLSGD(%a5),%a0
23309 move.l x@TLSLDM(%a5),%a0
23310 move.l x@TLSLDO(%a5),%a0
23311 move.l x@TLSIE(%a5),%a0
23312 move.l x@TLSLE(%a5),%a0'
23315 tls_as_opt='--fatal-warnings'
23319 .section ".tdata","awT",@progbits
23327 addi 3,31,ld0@got@tlsgd
23329 addi 3,31,x1@got@tlsld
23332 addis 9,3,x2@dtprel@ha
23333 addi 9,9,x2@dtprel@l
23334 lwz 9,x3@got@tprel(31)
23337 addis 9,2,x2@tprel@ha
23338 addi 9,9,x2@tprel@l'
23341 tls_as_opt="-a32 --fatal-warnings"
23345 .section ".tdata","awT",@progbits
23353 addi 3,2,ld0@got@tlsgd
23359 addi 3,2,x1@got@tlsld
23365 addis 9,3,x2@dtprel@ha
23366 addi 9,9,x2@dtprel@l
23369 ld 9,x3@got@dtprel(2)
23375 tls_as_opt="-a64 --fatal-warnings"
23379 .section ".tdata","awT",@progbits
23386 .long foo@GOTNTPOFF
23387 .long foo@INDNTPOFF
23388 l %r1,foo@GOTNTPOFF(%r12)
23389 l %r1,0(%r1):tls_load:foo
23390 bas %r14,0(%r1,%r13):tls_gdcall:foo
23391 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23394 tls_as_opt="-m31 --fatal-warnings"
23398 .section ".tdata","awT",@progbits
23405 .quad foo@GOTNTPOFF
23406 lg %r1,foo@GOTNTPOFF(%r12)
23407 larl %r1,foo@INDNTPOFF
23408 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23409 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23412 tls_as_opt="-m64 -Aesame --fatal-warnings"
23414 sh-*-* | sh[34]-*-*)
23416 .section ".tdata","awT",@progbits
23426 tls_as_opt=--fatal-warnings
23430 sparc*-sun-solaris2.*)
23432 tga_func=__tls_get_addr
23438 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23440 .section ".tdata",#alloc,#write,#tls'
23445 .section ".tdata","awT",@progbits'
23448 tls_as_opt="-32 --fatal-warnings"
23450 conftest_s="$conftest_s
23453 sethi %tgd_hi22(foo), %o0
23454 add %o0, %tgd_lo10(foo), %o1
23455 add %l7, %o1, %o0, %tgd_add(foo)
23456 call __tls_get_addr, %tgd_call(foo)
23457 sethi %tldm_hi22(foo), %l1
23458 add %l1, %tldm_lo10(foo), %l2
23459 add %l7, %l2, %o0, %tldm_add(foo)
23460 call __tls_get_addr, %tldm_call(foo)
23461 sethi %tldo_hix22(foo), %l3
23462 xor %l3, %tldo_lox10(foo), %l4
23463 add %o0, %l4, %l5, %tldo_add(foo)
23464 sethi %tie_hi22(foo), %o3
23465 add %o3, %tie_lo10(foo), %o3
23466 ld [%l7 + %o3], %o2, %tie_ld(foo)
23467 add %g7, %o2, %o4, %tie_add(foo)
23468 sethi %tle_hix22(foo), %l1
23469 xor %l1, %tle_lox10(foo), %o5
23470 ld [%g7 + %o5], %o1"
23474 .section ".tdata","awT",@progbits
23477 movi a8, foo@TLSFUNC
23478 movi a10, foo@TLSARG
23479 callx8.tls a8, foo@TLSCALL'
23485 if test "x$enable_tls" = xno ; then
23486 : # TLS explicitly disabled.
23487 elif test "x$enable_tls" = xyes ; then
23488 set_have_as_tls=yes # TLS explicitly enabled.
23489 elif test -z "$tls_first_major"; then
23490 : # If we don't have a check, assume no support.
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23493 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23494 if test "${gcc_cv_as_tls+set}" = set; then :
23495 $as_echo_n "(cached) " >&6
23498 if test $in_tree_gas = yes; then
23499 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23500 then gcc_cv_as_tls=yes
23502 elif test x$gcc_cv_as != x; then
23503 $as_echo "$conftest_s" > conftest.s
23504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23506 (eval $ac_try) 2>&5
23508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23509 test $ac_status = 0; }; }
23513 echo "configure: failed program was" >&5
23516 rm -f conftest.o conftest.s
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23520 $as_echo "$gcc_cv_as_tls" >&6; }
23521 if test $gcc_cv_as_tls = yes; then
23522 set_have_as_tls=yes
23527 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23528 # with TLS support are in use, native TLS cannot work.
23532 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23533 # gld with TLS support are in use, native TLS cannot work.
23536 # TLS was introduced in the Solaris 9 FCS release and backported to
23537 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23538 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23539 # ld and GCC don't support any longer.
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23542 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23544 # Check ld and ld.so.1 TLS support.
23545 if echo "$ld_ver" | grep GNU > /dev/null; then
23546 # Assume all interesting versions of GNU ld have TLS support.
23547 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23551 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23553 min_tls_ld_vers_minor=280
23555 # Solaris 8/SPARC ld has TLS support since version 1.272.
23556 sparc*-*-solaris2.8)
23557 min_tls_ld_vers_minor=272
23559 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23561 min_tls_ld_vers_minor=374
23563 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23564 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23565 min_tls_ld_vers_minor=343
23568 if test "$ld_vers_major" -gt 1 || \
23569 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23576 $as_echo "$ld_tls_support" >&6; }
23579 save_LDFLAGS="$LDFLAGS"
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23584 $as_echo_n "checking alternate thread library... " >&6; }
23586 # TLS support was backported to Solaris 8 patches, but only lives in
23587 # the alternate thread library which became the default in Solaris 9.
23588 # We want to always use that, irrespective of TLS support.
23590 # Take multilib subdir into account. There's no spec to handle
23591 # this. The 64 symlink exists since Solaris 8.
23592 lwp_dir=/usr/lib/lwp
23593 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23594 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23601 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23603 cat >>confdefs.h <<_ACEOF
23604 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23608 $as_echo "$lwp_dir" >&6; }
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23611 $as_echo_n "checking library containing $tga_func... " >&6; }
23612 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23613 # (32-bit x86) only lived in libthread, so check for that. Keep
23614 # set_have_as_tls if found, disable if not.
23615 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23617 $as_echo_n "checking for library containing $tga_func... " >&6; }
23618 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23619 $as_echo_n "(cached) " >&6
23621 ac_func_search_save_LIBS=$LIBS
23622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h. */
23625 /* Override any GCC internal prototype to avoid an error.
23626 Use char because int might match the return type of a GCC
23627 builtin and then its argument prototype would still apply. */
23635 return $tga_func ();
23640 for ac_lib in '' thread; do
23641 if test -z "$ac_lib"; then
23642 ac_res="none required"
23645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23647 if ac_fn_c_try_link "$LINENO"; then :
23648 eval "$as_ac_Search=\$ac_res"
23650 rm -f core conftest.err conftest.$ac_objext \
23652 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23656 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23659 eval "$as_ac_Search=no"
23661 rm conftest.$ac_ext
23662 LIBS=$ac_func_search_save_LIBS
23664 eval ac_res=\$$as_ac_Search
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23666 $as_echo "$ac_res" >&6; }
23667 eval ac_res=\$$as_ac_Search
23668 if test "$ac_res" != no; then :
23669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23675 # Clear LIBS if we cannot support TLS.
23676 if test $set_have_as_tls = no; then
23679 # Always define LIB_TLS_SPEC, even without TLS support.
23681 cat >>confdefs.h <<_ACEOF
23682 #define LIB_TLS_SPEC "$LIBS"
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23686 $as_echo "$LIBS" >&6; }
23689 LDFLAGS="$save_LDFLAGS"
23692 if test $set_have_as_tls = yes ; then
23694 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23698 # Target-specific assembler checks.
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23701 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23702 gcc_cv_ld_static_dynamic=no
23703 gcc_cv_ld_static_option='-Bstatic'
23704 gcc_cv_ld_dynamic_option='-Bdynamic'
23705 if test $in_tree_ld = yes ; then
23706 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
23707 gcc_cv_ld_static_dynamic=yes
23709 elif test x$gcc_cv_ld != x; then
23710 # Check if linker supports -Bstatic/-Bdynamic option
23711 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23712 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23713 gcc_cv_ld_static_dynamic=yes
23716 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23718 gcc_cv_ld_static_dynamic=yes
23719 gcc_cv_ld_static_option="-noso"
23720 gcc_cv_ld_dynamic_option="-so_archive"
23722 # HP-UX ld uses -a flags to select between shared and archive.
23724 if test x"$gnu_ld" = xno; then
23725 gcc_cv_ld_static_dynamic=yes
23726 gcc_cv_ld_static_option="-aarchive_shared"
23727 gcc_cv_ld_dynamic_option="-adefault"
23730 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23732 gcc_cv_ld_static_dynamic=yes
23734 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23736 gcc_cv_ld_static_dynamic=yes
23741 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23743 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23746 cat >>confdefs.h <<_ACEOF
23747 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23751 cat >>confdefs.h <<_ACEOF
23752 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23757 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23759 if test x"$demangler_in_ld" = xyes; then
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23761 $as_echo_n "checking linker --demangle support... " >&6; }
23762 gcc_cv_ld_demangle=no
23763 if test $in_tree_ld = yes; then
23764 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 \
23765 gcc_cv_ld_demangle=yes
23767 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23768 # Check if the GNU linker supports --demangle option
23769 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23770 gcc_cv_ld_demangle=yes
23773 if test x"$gcc_cv_ld_demangle" = xyes; then
23775 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23779 $as_echo "$gcc_cv_ld_demangle" >&6; }
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23783 $as_echo_n "checking linker plugin support... " >&6; }
23784 gcc_cv_lto_plugin=0
23785 if test -f liblto_plugin.la; then
23786 save_ld_ver="$ld_ver"
23787 save_ld_vers_major="$ld_vers_major"
23788 save_ld_vers_minor="$ld_vers_minor"
23789 save_ld_is_gold="$ld_is_gold"
23793 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23795 # FIXME: ld_is_gold?
23796 ld_vers_major="$gcc_cv_gld_major_version"
23797 ld_vers_minor="$gcc_cv_gld_minor_version"
23799 # Determine plugin linker version.
23800 # FIXME: Partial duplicate from above, generalize.
23801 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23802 if echo "$ld_ver" | grep GNU > /dev/null; then
23803 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23805 ld_vers=`echo $ld_ver | sed -n \
23806 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23808 ld_vers=`echo $ld_ver | sed -n \
23809 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23811 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23812 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23816 # Determine plugin support.
23817 if echo "$ld_ver" | grep GNU > /dev/null; then
23818 # Require GNU ld or gold 2.21+ for plugin support by default.
23819 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23820 gcc_cv_lto_plugin=2
23821 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23822 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23823 gcc_cv_lto_plugin=1
23827 ld_ver="$save_ld_ver"
23828 ld_vers_major="$save_ld_vers_major"
23829 ld_vers_minor="$save_ld_vers_minor"
23830 ld_is_gold="$save_ld_is_gold"
23833 cat >>confdefs.h <<_ACEOF
23834 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23838 $as_echo "$gcc_cv_lto_plugin" >&6; }
23841 # All TARGET_ABI_OSF targets.
23842 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23844 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23845 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23846 $as_echo_n "(cached) " >&6
23848 gcc_cv_as_alpha_explicit_relocs=no
23849 if test $in_tree_gas = yes; then
23850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23851 then gcc_cv_as_alpha_explicit_relocs=yes
23853 elif test x$gcc_cv_as != x; then
23854 $as_echo ' .set nomacro
23856 extbl $3, $2, $3 !lituse_bytoff!1
23857 ldq $2, a($29) !literal!1
23858 ldq $4, b($29) !literal!2
23859 ldq_u $3, 0($2) !lituse_base!1
23860 ldq $27, f($29) !literal!5
23861 jsr $26, ($27), f !lituse_jsr!5
23862 ldah $29, 0($26) !gpdisp!3
23863 lda $0, c($29) !gprel
23864 ldah $1, d($29) !gprelhigh
23865 lda $1, d($1) !gprellow
23866 lda $29, 0($29) !gpdisp!3' > conftest.s
23867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869 (eval $ac_try) 2>&5
23871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872 test $ac_status = 0; }; }
23874 gcc_cv_as_alpha_explicit_relocs=yes
23876 echo "configure: failed program was" >&5
23879 rm -f conftest.o conftest.s
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23883 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23884 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23886 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23890 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23891 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23892 $as_echo_n "(cached) " >&6
23894 gcc_cv_as_alpha_jsrdirect_relocs=no
23895 if test $in_tree_gas = yes; then
23896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23897 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23899 elif test x$gcc_cv_as != x; then
23900 $as_echo ' .set nomacro
23902 ldq $27, a($29) !literal!1
23903 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23906 (eval $ac_try) 2>&5
23908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23909 test $ac_status = 0; }; }
23911 gcc_cv_as_alpha_jsrdirect_relocs=yes
23913 echo "configure: failed program was" >&5
23916 rm -f conftest.o conftest.s
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23920 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23921 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23923 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23930 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23931 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23932 $as_echo_n "(cached) " >&6
23934 gcc_cv_as_cris_no_mul_bug=no
23935 if test $in_tree_gas = yes; then
23936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23937 then gcc_cv_as_cris_no_mul_bug=yes
23939 elif test x$gcc_cv_as != x; then
23940 $as_echo '.text' > conftest.s
23941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23943 (eval $ac_try) 2>&5
23945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23946 test $ac_status = 0; }; }
23948 gcc_cv_as_cris_no_mul_bug=yes
23950 echo "configure: failed program was" >&5
23953 rm -f conftest.o conftest.s
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23957 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23958 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23960 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23967 $as_echo_n "checking assembler for .register... " >&6; }
23968 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23969 $as_echo_n "(cached) " >&6
23971 gcc_cv_as_sparc_register_op=no
23972 if test x$gcc_cv_as != x; then
23973 $as_echo '.register %g2, #scratch' > conftest.s
23974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23981 gcc_cv_as_sparc_register_op=yes
23983 echo "configure: failed program was" >&5
23986 rm -f conftest.o conftest.s
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23990 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23991 if test $gcc_cv_as_sparc_register_op = yes; then
23993 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23998 $as_echo_n "checking assembler for -relax option... " >&6; }
23999 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24000 $as_echo_n "(cached) " >&6
24002 gcc_cv_as_sparc_relax=no
24003 if test x$gcc_cv_as != x; then
24004 $as_echo '.text' > conftest.s
24005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007 (eval $ac_try) 2>&5
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; }
24012 gcc_cv_as_sparc_relax=yes
24014 echo "configure: failed program was" >&5
24017 rm -f conftest.o conftest.s
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24021 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24022 if test $gcc_cv_as_sparc_relax = yes; then
24024 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24029 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24030 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24031 $as_echo_n "(cached) " >&6
24033 gcc_cv_as_sparc_gotdata_op=no
24034 if test x$gcc_cv_as != x; then
24040 sethi %gdop_hix22(foo), %g1
24041 xor %g1, %gdop_lox10(foo), %g1
24042 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24050 if test x$gcc_cv_ld != x \
24051 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24052 if test x$gcc_cv_objdump != x; then
24053 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24054 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24055 gcc_cv_as_sparc_gotdata_op=no
24057 gcc_cv_as_sparc_gotdata_op=yes
24063 echo "configure: failed program was" >&5
24066 rm -f conftest.o conftest.s
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24070 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24071 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24073 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24078 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24079 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24082 gcc_cv_as_sparc_ua_pcrel=no
24083 if test x$gcc_cv_as != x; then
24090 .uaword %r_disp32(foo)' > conftest.s
24091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24098 if test x$gcc_cv_ld != x \
24099 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24100 gcc_cv_as_sparc_ua_pcrel=yes
24104 echo "configure: failed program was" >&5
24107 rm -f conftest.o conftest.s
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24111 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24112 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24114 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24118 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24119 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24120 $as_echo_n "(cached) " >&6
24122 gcc_cv_as_sparc_ua_pcrel_hidden=no
24123 if test x$gcc_cv_as != x; then
24127 .uaword %r_disp32(foo)
24128 .byte 0x32, 0x33, 0x34
24132 .skip 4' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24140 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24141 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24142 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24143 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24144 if $gcc_cv_objdump -R conftest 2> /dev/null \
24145 | grep 'DISP32' > /dev/null 2>&1; then
24148 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24153 echo "configure: failed program was" >&5
24156 rm -f conftest.o conftest.s
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24160 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24161 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24163 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24167 fi # unaligned pcrel relocs
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24170 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24171 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24174 gcc_cv_as_sparc_offsetable_lo10=no
24175 if test x$gcc_cv_as != x; then
24177 or %g1, %lo(ab) + 12, %g1
24178 or %g1, %lo(ab + 12), %g1' > conftest.s
24179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24181 (eval $ac_try) 2>&5
24183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24184 test $ac_status = 0; }; }
24186 if test x$gcc_cv_objdump != x \
24187 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24188 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24189 gcc_cv_as_sparc_offsetable_lo10=yes
24192 echo "configure: failed program was" >&5
24195 rm -f conftest.o conftest.s
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24199 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24200 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24202 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24207 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24208 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24211 gcc_cv_as_sparc_fmaf=no
24212 if test x$gcc_cv_as != x; then
24214 .register %g2, #scratch
24215 .register %g3, #scratch
24217 fmaddd %f0, %f2, %f4, %f6
24218 addxccc %g1, %g2, %g3
24219 fsrl32 %f2, %f4, %f8
24220 fnaddd %f10, %f12, %f14' > conftest.s
24221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223 (eval $ac_try) 2>&5
24225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226 test $ac_status = 0; }; }
24228 gcc_cv_as_sparc_fmaf=yes
24230 echo "configure: failed program was" >&5
24233 rm -f conftest.o conftest.s
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24237 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24238 if test $gcc_cv_as_sparc_fmaf = yes; then
24240 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24245 i[34567]86-*-* | x86_64-*-*)
24248 # Full C++ conformance when using a shared libstdc++-v3 requires some
24249 # support from the Cygwin DLL, which in more recent versions exports
24250 # wrappers to aid in interposing and redirecting operators new, delete,
24251 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24252 # are configuring for a version of Cygwin that exports the wrappers.
24253 if test x$host = x$target; then
24254 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24255 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24256 gcc_ac_cygwin_dll_wrappers=yes
24258 gcc_ac_cygwin_dll_wrappers=no
24262 # Can't check presence of libc functions during cross-compile, so
24263 # we just have to assume we're building for an up-to-date target.
24264 gcc_ac_cygwin_dll_wrappers=yes
24267 cat >>confdefs.h <<_ACEOF
24268 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24273 cygwin* | pe | mingw32*)
24274 # Recent binutils allows the three-operand form of ".comm" on PE. This
24275 # definition is used unconditionally to initialise the default state of
24276 # the target option variable that governs usage of the feature.
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24278 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24279 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24280 $as_echo_n "(cached) " >&6
24282 gcc_cv_as_comm_has_align=no
24283 if test $in_tree_gas = yes; then
24284 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24285 then gcc_cv_as_comm_has_align=yes
24287 elif test x$gcc_cv_as != x; then
24288 $as_echo '.comm foo,1,32' > conftest.s
24289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24296 gcc_cv_as_comm_has_align=yes
24298 echo "configure: failed program was" >&5
24301 rm -f conftest.o conftest.s
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24305 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24308 cat >>confdefs.h <<_ACEOF
24309 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24312 # Used for DWARF 2 in PE
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24314 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24315 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24318 gcc_cv_as_ix86_pe_secrel32=no
24319 if test $in_tree_gas = yes; then
24320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24321 then gcc_cv_as_ix86_pe_secrel32=yes
24323 elif test x$gcc_cv_as != x; then
24327 .secrel32 foo' > conftest.s
24328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24335 if test x$gcc_cv_ld != x \
24336 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24337 gcc_cv_as_ix86_pe_secrel32=yes
24341 echo "configure: failed program was" >&5
24344 rm -f conftest.o conftest.s
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24348 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24349 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24351 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24354 # Test if the assembler supports the extended form of the .section
24355 # directive that specifies section alignment. LTO support uses this,
24356 # but normally only after installation, so we warn but don't fail the
24357 # configure if LTO is enabled but the assembler does not support it.
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24359 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24360 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24361 $as_echo_n "(cached) " >&6
24363 gcc_cv_as_section_has_align=no
24364 if test $in_tree_gas = yes; then
24365 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24366 then gcc_cv_as_section_has_align=yes
24368 elif test x$gcc_cv_as != x; then
24369 $as_echo '.section lto_test,"dr0"' > conftest.s
24370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24372 (eval $ac_try) 2>&5
24374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24375 test $ac_status = 0; }; }
24377 gcc_cv_as_section_has_align=yes
24379 echo "configure: failed program was" >&5
24382 rm -f conftest.o conftest.s
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24386 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24388 if test x$gcc_cv_as_section_has_align != xyes; then
24389 case ",$enable_languages," in
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24392 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24396 # Test if the assembler supports the section flag 'e' for specifying
24397 # an excluded section.
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24399 $as_echo_n "checking assembler for .section with e... " >&6; }
24400 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24401 $as_echo_n "(cached) " >&6
24403 gcc_cv_as_section_has_e=no
24404 if test $in_tree_gas = yes; then
24405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24406 then gcc_cv_as_section_has_e=yes
24408 elif test x$gcc_cv_as != x; then
24409 $as_echo '.section foo1,"e"
24410 .byte 0,0,0,0' > conftest.s
24411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; }
24418 gcc_cv_as_section_has_e=yes
24420 echo "configure: failed program was" >&5
24423 rm -f conftest.o conftest.s
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24427 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24430 cat >>confdefs.h <<_ACEOF
24431 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24438 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24439 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24442 gcc_cv_as_ix86_filds=no
24443 if test x$gcc_cv_as != x; then
24444 $as_echo 'filds mem; fists mem' > conftest.s
24445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24452 gcc_cv_as_ix86_filds=yes
24454 echo "configure: failed program was" >&5
24457 rm -f conftest.o conftest.s
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24461 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24462 if test $gcc_cv_as_ix86_filds = yes; then
24464 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24469 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24470 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24473 gcc_cv_as_ix86_fildq=no
24474 if test x$gcc_cv_as != x; then
24475 $as_echo 'fildq mem; fistpq mem' > conftest.s
24476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24483 gcc_cv_as_ix86_fildq=yes
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24492 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24493 if test $gcc_cv_as_ix86_fildq = yes; then
24495 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24500 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24501 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24504 gcc_cv_as_ix86_cmov_sun_syntax=no
24505 if test x$gcc_cv_as != x; then
24506 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24509 (eval $ac_try) 2>&5
24511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24512 test $ac_status = 0; }; }
24514 gcc_cv_as_ix86_cmov_sun_syntax=yes
24516 echo "configure: failed program was" >&5
24519 rm -f conftest.o conftest.s
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24523 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24524 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24526 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24531 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24532 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24535 gcc_cv_as_ix86_ffreep=no
24536 if test x$gcc_cv_as != x; then
24537 $as_echo 'ffreep %st(1)' > conftest.s
24538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }
24545 gcc_cv_as_ix86_ffreep=yes
24547 echo "configure: failed program was" >&5
24550 rm -f conftest.o conftest.s
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24554 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24555 if test $gcc_cv_as_ix86_ffreep = yes; then
24557 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24562 $as_echo_n "checking assembler for .quad directive... " >&6; }
24563 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24566 gcc_cv_as_ix86_quad=no
24567 if test x$gcc_cv_as != x; then
24568 $as_echo '.quad 0' > conftest.s
24569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24576 gcc_cv_as_ix86_quad=yes
24578 echo "configure: failed program was" >&5
24581 rm -f conftest.o conftest.s
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24585 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24586 if test $gcc_cv_as_ix86_quad = yes; then
24588 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24593 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24594 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 gcc_cv_as_ix86_sahf=no
24598 if test x$gcc_cv_as != x; then
24601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603 (eval $ac_try) 2>&5
24605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606 test $ac_status = 0; }; }
24608 gcc_cv_as_ix86_sahf=yes
24610 echo "configure: failed program was" >&5
24613 rm -f conftest.o conftest.s
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24617 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24618 if test $gcc_cv_as_ix86_sahf = yes; then
24620 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24625 $as_echo_n "checking assembler for swap suffix... " >&6; }
24626 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24629 gcc_cv_as_ix86_swap=no
24630 if test x$gcc_cv_as != x; then
24631 $as_echo 'movl.s %esp, %ebp' > conftest.s
24632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637 test $ac_status = 0; }; }
24639 gcc_cv_as_ix86_swap=yes
24641 echo "configure: failed program was" >&5
24644 rm -f conftest.o conftest.s
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24648 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24649 if test $gcc_cv_as_ix86_swap = yes; then
24651 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24656 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24657 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24658 $as_echo_n "(cached) " >&6
24660 gcc_cv_as_ix86_diff_sect_delta=no
24661 if test x$gcc_cv_as != x; then
24662 $as_echo '.section .rodata
24668 .L2: nop' > conftest.s
24669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24671 (eval $ac_try) 2>&5
24673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24674 test $ac_status = 0; }; }
24676 gcc_cv_as_ix86_diff_sect_delta=yes
24678 echo "configure: failed program was" >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24685 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24686 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24688 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24692 # These two are used unconditionally by i386.[ch]; it is to be defined
24693 # to 1 if the feature is present, 0 otherwise.
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24695 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24696 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24697 $as_echo_n "(cached) " >&6
24699 gcc_cv_as_ix86_gotoff_in_data=no
24700 if test $in_tree_gas = yes; then
24701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24702 then gcc_cv_as_ix86_gotoff_in_data=yes
24704 elif test x$gcc_cv_as != x; then
24709 .long .L0@GOTOFF' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24717 gcc_cv_as_ix86_gotoff_in_data=yes
24719 echo "configure: failed program was" >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24726 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24729 cat >>confdefs.h <<_ACEOF
24730 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24735 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24736 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24739 gcc_cv_as_ix86_rep_lock_prefix=no
24740 if test x$gcc_cv_as != x; then
24741 $as_echo 'rep movsl
24742 lock addl %edi, (%eax,%esi)
24743 lock orl $0, (%esp)' > conftest.s
24744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24746 (eval $ac_try) 2>&5
24748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24749 test $ac_status = 0; }; }
24751 gcc_cv_as_ix86_rep_lock_prefix=yes
24753 echo "configure: failed program was" >&5
24756 rm -f conftest.o conftest.s
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24760 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24761 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24763 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24768 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24769 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24772 gcc_cv_as_ix86_tlsgdplt=no
24773 if test x$gcc_cv_as != x; then
24774 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24775 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24777 (eval $ac_try) 2>&5
24779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24780 test $ac_status = 0; }; }
24782 gcc_cv_as_ix86_tlsgdplt=yes
24784 echo "configure: failed program was" >&5
24787 rm -f conftest.o conftest.s
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24791 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24792 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24794 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24799 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24800 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24801 $as_echo_n "(cached) " >&6
24803 gcc_cv_as_ix86_tlsldmplt=no
24804 if test x$gcc_cv_as != x; then
24805 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808 (eval $ac_try) 2>&5
24810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811 test $ac_status = 0; }; }
24813 gcc_cv_as_ix86_tlsldmplt=yes
24815 echo "configure: failed program was" >&5
24818 rm -f conftest.o conftest.s
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24822 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24823 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24825 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24833 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24834 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24835 $as_echo_n "(cached) " >&6
24837 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24838 if test $in_tree_gas = yes; then
24839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24840 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24842 elif test x$gcc_cv_as != x; then
24844 addl r15 = @ltoffx(x#), gp
24846 ld8.mov r16 = [r15], x#' > conftest.s
24847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; }
24854 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24856 echo "configure: failed program was" >&5
24859 rm -f conftest.o conftest.s
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24863 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24864 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24866 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24874 *-*-aix*) conftest_s=' .machine "pwr5"
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24879 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24880 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24883 gcc_cv_as_machine_directive=no
24884 if test x$gcc_cv_as != x; then
24885 $as_echo ' .machine ppc7400' > conftest.s
24886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24888 (eval $ac_try) 2>&5
24890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24891 test $ac_status = 0; }; }
24893 gcc_cv_as_machine_directive=yes
24895 echo "configure: failed program was" >&5
24898 rm -f conftest.o conftest.s
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24902 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24904 if test x$gcc_cv_as_machine_directive != xyes; then
24905 echo "*** This target requires an assembler supporting \".machine\"" >&2
24906 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24907 test x$build = x$target && exit 1
24911 *) conftest_s=' .machine power4
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24917 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24918 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24921 gcc_cv_as_powerpc_mfcrf=no
24922 if test $in_tree_gas = yes; then
24923 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24924 then gcc_cv_as_powerpc_mfcrf=yes
24926 elif test x$gcc_cv_as != x; then
24927 $as_echo "$conftest_s" > conftest.s
24928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24930 (eval $ac_try) 2>&5
24932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24933 test $ac_status = 0; }; }
24935 gcc_cv_as_powerpc_mfcrf=yes
24937 echo "configure: failed program was" >&5
24940 rm -f conftest.o conftest.s
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24944 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24945 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24947 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24952 *-*-aix*) conftest_s=' .machine "pwr5"
24955 *) conftest_s=' .machine power5
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24961 $as_echo_n "checking assembler for popcntb support... " >&6; }
24962 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24965 gcc_cv_as_powerpc_popcntb=no
24966 if test $in_tree_gas = yes; then
24967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24968 then gcc_cv_as_powerpc_popcntb=yes
24970 elif test x$gcc_cv_as != x; then
24971 $as_echo "$conftest_s" > conftest.s
24972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24979 gcc_cv_as_powerpc_popcntb=yes
24981 echo "configure: failed program was" >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24988 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24989 if test $gcc_cv_as_powerpc_popcntb = yes; then
24991 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24996 *-*-aix*) conftest_s=' .machine "pwr5x"
24999 *) conftest_s=' .machine power5
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25005 $as_echo_n "checking assembler for fp round support... " >&6; }
25006 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25009 gcc_cv_as_powerpc_fprnd=no
25010 if test $in_tree_gas = yes; then
25011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25012 then gcc_cv_as_powerpc_fprnd=yes
25014 elif test x$gcc_cv_as != x; then
25015 $as_echo "$conftest_s" > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25023 gcc_cv_as_powerpc_fprnd=yes
25025 echo "configure: failed program was" >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25032 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25033 if test $gcc_cv_as_powerpc_fprnd = yes; then
25035 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25040 *-*-aix*) conftest_s=' .machine "pwr6"
25043 *) conftest_s=' .machine power6
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25049 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25050 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25051 $as_echo_n "(cached) " >&6
25053 gcc_cv_as_powerpc_mfpgpr=no
25054 if test $in_tree_gas = yes; then
25055 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25056 then gcc_cv_as_powerpc_mfpgpr=yes
25058 elif test x$gcc_cv_as != x; then
25059 $as_echo "$conftest_s" > conftest.s
25060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25067 gcc_cv_as_powerpc_mfpgpr=yes
25069 echo "configure: failed program was" >&5
25072 rm -f conftest.o conftest.s
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25076 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25077 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25079 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25084 *-*-aix*) conftest_s=' .csect .text[PR]
25086 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25090 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25091 *) conftest_s=' .text
25093 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25097 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25098 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25099 $as_echo_n "(cached) " >&6
25101 gcc_cv_as_powerpc_rel16=no
25102 if test $in_tree_gas = yes; then
25103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25104 then gcc_cv_as_powerpc_rel16=yes
25106 elif test x$gcc_cv_as != x; then
25107 $as_echo "$conftest_s" > conftest.s
25108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25115 gcc_cv_as_powerpc_rel16=yes
25117 echo "configure: failed program was" >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25124 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25125 if test $gcc_cv_as_powerpc_rel16 = yes; then
25127 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25132 *-*-aix*) conftest_s=' .machine "pwr6"
25135 *) conftest_s=' .machine power6
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25141 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25142 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25143 $as_echo_n "(cached) " >&6
25145 gcc_cv_as_powerpc_cmpb=no
25146 if test $in_tree_gas = yes; then
25147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25148 then gcc_cv_as_powerpc_cmpb=yes
25150 elif test x$gcc_cv_as != x; then
25151 $as_echo "$conftest_s" > conftest.s
25152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25159 gcc_cv_as_powerpc_cmpb=yes
25161 echo "configure: failed program was" >&5
25164 rm -f conftest.o conftest.s
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25168 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25169 if test $gcc_cv_as_powerpc_cmpb = yes; then
25171 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25176 *-*-aix*) conftest_s=' .machine "pwr6"
25179 *) conftest_s=' .machine power6
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25185 $as_echo_n "checking assembler for decimal float support... " >&6; }
25186 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25189 gcc_cv_as_powerpc_dfp=no
25190 if test $in_tree_gas = yes; then
25191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25192 then gcc_cv_as_powerpc_dfp=yes
25194 elif test x$gcc_cv_as != x; then
25195 $as_echo "$conftest_s" > conftest.s
25196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198 (eval $ac_try) 2>&5
25200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201 test $ac_status = 0; }; }
25203 gcc_cv_as_powerpc_dfp=yes
25205 echo "configure: failed program was" >&5
25208 rm -f conftest.o conftest.s
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25212 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25213 if test $gcc_cv_as_powerpc_dfp = yes; then
25215 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25220 *-*-aix*) conftest_s=' .machine "pwr7"
25223 *) conftest_s=' .machine power7
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25229 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25230 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25233 gcc_cv_as_powerpc_vsx=no
25234 if test $in_tree_gas = yes; then
25235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25236 then gcc_cv_as_powerpc_vsx=yes
25238 elif test x$gcc_cv_as != x; then
25239 $as_echo "$conftest_s" > conftest.s
25240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25242 (eval $ac_try) 2>&5
25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25245 test $ac_status = 0; }; }
25247 gcc_cv_as_powerpc_vsx=yes
25249 echo "configure: failed program was" >&5
25252 rm -f conftest.o conftest.s
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25256 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25257 if test $gcc_cv_as_powerpc_vsx = yes; then
25259 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25264 *-*-aix*) conftest_s=' .machine "pwr7"
25267 *) conftest_s=' .machine power7
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25273 $as_echo_n "checking assembler for popcntd support... " >&6; }
25274 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25275 $as_echo_n "(cached) " >&6
25277 gcc_cv_as_powerpc_popcntd=no
25278 if test $in_tree_gas = yes; then
25279 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25280 then gcc_cv_as_powerpc_popcntd=yes
25282 elif test x$gcc_cv_as != x; then
25283 $as_echo "$conftest_s" > conftest.s
25284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25286 (eval $ac_try) 2>&5
25288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25289 test $ac_status = 0; }; }
25291 gcc_cv_as_powerpc_popcntd=yes
25293 echo "configure: failed program was" >&5
25296 rm -f conftest.o conftest.s
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25300 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25301 if test $gcc_cv_as_powerpc_popcntd = yes; then
25303 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25308 *-*-aix*) conftest_s=' .csect .text[PR]
25310 *) conftest_s=' .text
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25315 $as_echo_n "checking assembler for lwsync support... " >&6; }
25316 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25319 gcc_cv_as_powerpc_lwsync=no
25320 if test $in_tree_gas = yes; then
25321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25322 then gcc_cv_as_powerpc_lwsync=yes
25324 elif test x$gcc_cv_as != x; then
25325 $as_echo "$conftest_s" > conftest.s
25326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25328 (eval $ac_try) 2>&5
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; }
25333 gcc_cv_as_powerpc_lwsync=yes
25335 echo "configure: failed program was" >&5
25338 rm -f conftest.o conftest.s
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25342 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25343 if test $gcc_cv_as_powerpc_lwsync = yes; then
25345 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25350 *-*-aix*) conftest_s=' .machine "476"
25353 *) conftest_s=' .machine "476"
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25359 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25360 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25363 gcc_cv_as_powerpc_dci=no
25364 if test $in_tree_gas = yes; then
25365 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25366 then gcc_cv_as_powerpc_dci=yes
25368 elif test x$gcc_cv_as != x; then
25369 $as_echo "$conftest_s" > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25377 gcc_cv_as_powerpc_dci=yes
25379 echo "configure: failed program was" >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25386 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25387 if test $gcc_cv_as_powerpc_dci = yes; then
25389 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25394 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25395 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25398 gcc_cv_as_powerpc_gnu_attribute=no
25399 if test $in_tree_gas = yes; then
25400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25401 then gcc_cv_as_powerpc_gnu_attribute=yes
25403 elif test x$gcc_cv_as != x; then
25404 $as_echo '.gnu_attribute 4,1' > conftest.s
25405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25407 (eval $ac_try) 2>&5
25409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410 test $ac_status = 0; }; }
25412 gcc_cv_as_powerpc_gnu_attribute=yes
25414 echo "configure: failed program was" >&5
25417 rm -f conftest.o conftest.s
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25421 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25422 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25424 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25429 $as_echo_n "checking assembler for tls marker support... " >&6; }
25430 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25431 $as_echo_n "(cached) " >&6
25433 gcc_cv_as_powerpc_tls_markers=no
25434 if test $in_tree_gas = yes; then
25435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25436 then gcc_cv_as_powerpc_tls_markers=yes
25438 elif test x$gcc_cv_as != x; then
25439 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25447 gcc_cv_as_powerpc_tls_markers=yes
25449 echo "configure: failed program was" >&5
25452 rm -f conftest.o conftest.s
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25456 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25457 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25459 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25466 $as_echo_n "checking assembler for .ref support... " >&6; }
25467 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25470 gcc_cv_as_aix_ref=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25475 elif test x$gcc_cv_as != x; then
25476 $as_echo ' .csect stuff[rw]
25482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484 (eval $ac_try) 2>&5
25486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487 test $ac_status = 0; }; }
25489 gcc_cv_as_aix_ref=yes
25491 echo "configure: failed program was" >&5
25494 rm -f conftest.o conftest.s
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25498 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25499 if test $gcc_cv_as_aix_ref = yes; then
25501 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25510 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25511 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25514 gcc_cv_as_mips_explicit_relocs=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25517 then gcc_cv_as_mips_explicit_relocs=yes
25519 elif test x$gcc_cv_as != x; then
25520 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25528 gcc_cv_as_mips_explicit_relocs=yes
25530 echo "configure: failed program was" >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25537 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25538 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25539 if test x$target_cpu_default = x
25540 then target_cpu_default=MASK_EXPLICIT_RELOCS
25541 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25545 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25546 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25549 gcc_cv_as_mips_no_shared=no
25550 if test $in_tree_gas = yes; then
25551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25552 then gcc_cv_as_mips_no_shared=yes
25554 elif test x$gcc_cv_as != x; then
25555 $as_echo 'nop' > conftest.s
25556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25558 (eval $ac_try) 2>&5
25560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561 test $ac_status = 0; }; }
25563 gcc_cv_as_mips_no_shared=yes
25565 echo "configure: failed program was" >&5
25568 rm -f conftest.o conftest.s
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25572 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25573 if test $gcc_cv_as_mips_no_shared = yes; then
25575 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25580 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25581 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25584 gcc_cv_as_mips_gnu_attribute=no
25585 if test $in_tree_gas = yes; then
25586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25587 then gcc_cv_as_mips_gnu_attribute=yes
25589 elif test x$gcc_cv_as != x; then
25590 $as_echo '.gnu_attribute 4,1' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25598 gcc_cv_as_mips_gnu_attribute=yes
25600 echo "configure: failed program was" >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25607 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25608 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25610 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25615 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25616 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25619 gcc_cv_as_mips_dtprelword=no
25620 if test $in_tree_gas = yes; then
25621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25622 then gcc_cv_as_mips_dtprelword=yes
25624 elif test x$gcc_cv_as != x; then
25625 $as_echo '.section .tdata,"awT",@progbits
25629 .dtprelword x+0x8000' > conftest.s
25630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632 (eval $ac_try) 2>&5
25634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }; }
25637 gcc_cv_as_mips_dtprelword=yes
25639 echo "configure: failed program was" >&5
25642 rm -f conftest.o conftest.s
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25646 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25647 if test $gcc_cv_as_mips_dtprelword = yes; then
25649 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25654 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25655 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25658 gcc_cv_as_mips_dspr1_mult=no
25659 if test x$gcc_cv_as != x; then
25660 $as_echo ' .set mips32r2
25668 multu $ac3,$4,$5' > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25676 gcc_cv_as_mips_dspr1_mult=yes
25678 echo "configure: failed program was" >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25685 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25686 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25688 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25693 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25694 gcc_cv_as_ld_jalr_reloc=no
25695 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25696 if test $in_tree_ld = yes ; then
25697 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
25698 && test $in_tree_ld_is_elf = yes; then
25699 gcc_cv_as_ld_jalr_reloc=yes
25701 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25702 echo ' .ent x' > conftest.s
25703 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25704 echo ' ld $25,%call16(y)($28)' >> conftest.s
25705 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25706 echo '1: jalr $25' >> conftest.s
25707 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25708 echo '1: jalr $25' >> conftest.s
25709 echo ' .end x' >> conftest.s
25710 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25711 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25712 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25713 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25714 gcc_cv_as_ld_jalr_reloc=yes
25720 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25721 if test x$target_cpu_default = x; then
25722 target_cpu_default=MASK_RELAX_PIC_CALLS
25724 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25728 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25731 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25732 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25733 $as_echo_n "(cached) " >&6
25735 gcc_cv_ld_mips_personality_relaxation=no
25736 if test $in_tree_ld = yes ; then
25737 if test "$gcc_cv_gld_major_version" -eq 2 \
25738 -a "$gcc_cv_gld_minor_version" -ge 21 \
25739 -o "$gcc_cv_gld_major_version" -gt 2; then
25740 gcc_cv_ld_mips_personality_relaxation=yes
25742 elif test x$gcc_cv_as != x \
25743 -a x$gcc_cv_ld != x \
25744 -a x$gcc_cv_readelf != x ; then
25745 cat > conftest.s <<EOF
25747 .cfi_personality 0x80,indirect_ptr
25754 .section .data,"aw",@progbits
25758 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25759 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25760 if $gcc_cv_readelf -d conftest 2>&1 \
25761 | grep TEXTREL > /dev/null 2>&1; then
25763 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25764 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25767 gcc_cv_ld_mips_personality_relaxation=yes
25771 rm -f conftest.s conftest.o conftest
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25774 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25775 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25777 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25783 # Mips and HP-UX need the GNU assembler.
25784 # Linux on IA64 might be able to use the Intel assembler.
25787 mips*-*-* | *-*-hpux* )
25788 if test x$gas_flag = xyes \
25789 || test x"$host" != x"$build" \
25790 || test ! -x "$gcc_cv_as" \
25791 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25794 echo "*** This configuration requires the GNU assembler" >&2
25800 # ??? Not all targets support dwarf2 debug_line, even within a version
25801 # of gas. Moreover, we need to emit a valid instruction to trigger any
25802 # info to the output file. So, as supported targets are added to gas 2.11,
25803 # add some instruction here to (also) show we expect this might work.
25804 # ??? Once 2.11 is released, probably need to add first known working
25805 # version to the per-target configury.
25806 case "$cpu_type" in
25807 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25808 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25818 if test x"$insn" != x; then
25820 .file 1 \"conftest.s\"
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25824 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25825 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_dwarf2_debug_line=no
25829 if test $in_tree_gas = yes; then
25830 if test $in_tree_gas_is_elf = yes \
25831 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25832 then gcc_cv_as_dwarf2_debug_line=yes
25834 elif test x$gcc_cv_as != x; then
25835 $as_echo "$conftest_s" > conftest.s
25836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25843 if test x$gcc_cv_objdump != x \
25844 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25845 | grep debug_line > /dev/null 2>&1; then
25846 gcc_cv_as_dwarf2_debug_line=yes
25849 echo "configure: failed program was" >&5
25852 rm -f conftest.o conftest.s
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25856 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25859 # The .debug_line file table must be in the exact order that
25860 # we specified the files, since these indices are also used
25861 # by DW_AT_decl_file. Approximate this test by testing if
25862 # the assembler bitches if the same index is assigned twice.
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25864 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25865 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25866 $as_echo_n "(cached) " >&6
25868 gcc_cv_as_dwarf2_file_buggy=no
25869 if test x$gcc_cv_as != x; then
25870 $as_echo ' .file 1 "foo.s"
25871 .file 1 "bar.s"' > conftest.s
25872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25879 gcc_cv_as_dwarf2_file_buggy=yes
25881 echo "configure: failed program was" >&5
25884 rm -f conftest.o conftest.s
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25888 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25891 if test $gcc_cv_as_dwarf2_debug_line = yes \
25892 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25894 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25899 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25900 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25901 $as_echo_n "(cached) " >&6
25903 gcc_cv_as_gdwarf2_flag=no
25904 if test $in_tree_gas = yes; then
25905 if test $in_tree_gas_is_elf = yes \
25906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25907 then gcc_cv_as_gdwarf2_flag=yes
25909 elif test x$gcc_cv_as != x; then
25910 $as_echo "$insn" > conftest.s
25911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25918 gcc_cv_as_gdwarf2_flag=yes
25920 echo "configure: failed program was" >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25927 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25928 if test $gcc_cv_as_gdwarf2_flag = yes; then
25930 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25935 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25936 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25939 gcc_cv_as_gstabs_flag=no
25940 if test $in_tree_gas = yes; then
25941 if test $in_tree_gas_is_elf = yes \
25942 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25943 then gcc_cv_as_gstabs_flag=yes
25945 elif test x$gcc_cv_as != x; then
25946 $as_echo "$insn" > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25954 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25955 # and warns about it, but still exits successfully. So check for
25957 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25964 else gcc_cv_as_gstabs_flag=yes
25967 echo "configure: failed program was" >&5
25970 rm -f conftest.o conftest.s
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25974 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25975 if test $gcc_cv_as_gstabs_flag = yes; then
25977 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25982 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25983 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25984 $as_echo_n "(cached) " >&6
25986 gcc_cv_as_debug_prefix_map_flag=no
25987 if test $in_tree_gas = yes; then
25988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25989 then gcc_cv_as_debug_prefix_map_flag=yes
25991 elif test x$gcc_cv_as != x; then
25992 $as_echo "$insn" > conftest.s
25993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; }
26000 gcc_cv_as_debug_prefix_map_flag=yes
26002 echo "configure: failed program was" >&5
26005 rm -f conftest.o conftest.s
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26009 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26010 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26012 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26018 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26019 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26020 $as_echo_n "(cached) " >&6
26022 gcc_cv_as_lcomm_with_alignment=no
26023 if test x$gcc_cv_as != x; then
26024 $as_echo '.lcomm bar,4,16' > conftest.s
26025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26032 gcc_cv_as_lcomm_with_alignment=yes
26034 echo "configure: failed program was" >&5
26037 rm -f conftest.o conftest.s
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26041 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26042 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26044 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26048 # Check whether --enable-gnu-unique-object was given.
26049 if test "${enable_gnu_unique_object+set}" = set; then :
26050 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26052 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26057 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26058 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26059 $as_echo_n "(cached) " >&6
26061 gcc_cv_as_gnu_unique_object=no
26062 if test $in_tree_gas = yes; then
26063 if test $in_tree_gas_is_elf = yes \
26064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26065 then gcc_cv_as_gnu_unique_object=yes
26067 elif test x$gcc_cv_as != x; then
26068 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26076 gcc_cv_as_gnu_unique_object=yes
26078 echo "configure: failed program was" >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26085 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26086 if test $gcc_cv_as_gnu_unique_object = yes; then
26087 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26088 if test x$host = x$build -a x$host = x$target &&
26089 ldd --version 2>/dev/null &&
26090 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26091 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26092 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26093 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26094 if test "$glibcnum" -ge 2011 ; then
26095 enable_gnu_unique_object=yes
26101 if test x$enable_gnu_unique_object = xyes; then
26103 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26108 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26109 if test "${gcc_cv_as_line_zero+set}" = set; then :
26110 $as_echo_n "(cached) " >&6
26112 gcc_cv_as_line_zero=no
26113 if test $in_tree_gas = yes; then
26114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26115 then gcc_cv_as_line_zero=yes
26117 elif test "x$gcc_cv_as" != x; then
26118 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26119 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26121 (eval $ac_try) 2>&5
26123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26124 test $ac_status = 0; }; } &&
26125 test "x`cat conftest.out`" = x
26127 gcc_cv_as_line_zero=yes
26129 echo "configure: failed program was" >&5
26131 echo "configure: error output was" >&5
26132 cat conftest.out >&5
26134 rm -f conftest.o conftest.s conftest.out
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26138 $as_echo "$gcc_cv_as_line_zero" >&6; }
26139 if test "x$gcc_cv_as_line_zero" = xyes; then
26141 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26146 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26147 gcc_cv_ld_eh_frame_hdr=no
26148 if test $in_tree_ld = yes ; then
26149 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 \
26150 && test $in_tree_ld_is_elf = yes; then
26151 gcc_cv_ld_eh_frame_hdr=yes
26153 elif test x$gcc_cv_ld != x; then
26154 if echo "$ld_ver" | grep GNU > /dev/null; then
26155 # Check if linker supports --eh-frame-hdr option
26156 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26157 gcc_cv_ld_eh_frame_hdr=yes
26162 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26163 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26164 gcc_cv_ld_eh_frame_hdr=yes
26171 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26173 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26177 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26180 $as_echo_n "checking linker position independent executable support... " >&6; }
26182 if test $in_tree_ld = yes ; then
26183 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 \
26184 && test $in_tree_ld_is_elf = yes; then
26187 elif test x$gcc_cv_ld != x; then
26188 # Check if linker supports -pie option
26189 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26193 if test x"$gcc_cv_ld_pie" = xyes; then
26195 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26199 $as_echo "$gcc_cv_ld_pie" >&6; }
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26202 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26203 gcc_cv_ld_eh_gc_sections=no
26204 if test $in_tree_ld = yes ; then
26205 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 \
26206 && test $in_tree_ld_is_elf = yes; then
26207 gcc_cv_ld_eh_gc_sections=yes
26209 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26210 cat > conftest.s <<EOF
26213 .type _start, @function
26216 .size _start, .-_start
26217 .section .text.foo,"ax",@progbits
26218 .type foo, @function
26222 .section .gcc_except_table.foo,"a",@progbits
26225 .section .eh_frame,"a",@progbits
26228 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26229 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26230 | grep "gc-sections option ignored" > /dev/null; then
26231 gcc_cv_ld_eh_gc_sections=no
26232 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26233 | grep gcc_except_table > /dev/null; then
26234 gcc_cv_ld_eh_gc_sections=yes
26235 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26236 if test x$gcc_cv_as_comdat_group != xyes; then
26237 gcc_cv_ld_eh_gc_sections=no
26238 cat > conftest.s <<EOF
26241 .type _start, @function
26244 .size _start, .-_start
26245 .section .gnu.linkonce.t.foo,"ax",@progbits
26246 .type foo, @function
26250 .section .gcc_except_table.foo,"a",@progbits
26253 .section .eh_frame,"a",@progbits
26256 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26257 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26258 | grep "gc-sections option ignored" > /dev/null; then
26259 gcc_cv_ld_eh_gc_sections=no
26260 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26261 | grep gcc_except_table > /dev/null; then
26262 gcc_cv_ld_eh_gc_sections=yes
26268 rm -f conftest.s conftest.o conftest
26272 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26273 gcc_cv_ld_eh_gc_sections=no
26276 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26278 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26282 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26285 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26286 gcc_cv_ld_eh_gc_sections_bug=no
26287 if test $in_tree_ld = yes ; then
26288 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26289 && test $in_tree_ld_is_elf = yes; then
26290 gcc_cv_ld_eh_gc_sections_bug=yes
26292 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26293 gcc_cv_ld_eh_gc_sections_bug=yes
26294 cat > conftest.s <<EOF
26297 .type _start, @function
26300 .size _start, .-_start
26301 .section .text.startup.foo,"ax",@progbits
26302 .type foo, @function
26306 .section .gcc_except_table.foo,"a",@progbits
26309 .section .eh_frame,"a",@progbits
26312 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26313 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26314 | grep "gc-sections option ignored" > /dev/null; then
26316 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26317 | grep gcc_except_table > /dev/null; then
26318 gcc_cv_ld_eh_gc_sections_bug=no
26321 rm -f conftest.s conftest.o conftest
26323 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26325 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26329 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26336 $as_echo_n "checking linker --as-needed support... " >&6; }
26337 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26340 gcc_cv_ld_as_needed=no
26341 if test $in_tree_ld = yes ; then
26342 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 \
26343 && test $in_tree_ld_is_elf = yes; then
26344 gcc_cv_ld_as_needed=yes
26346 elif test x$gcc_cv_ld != x; then
26347 # Check if linker supports --as-needed and --no-as-needed options
26348 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26349 gcc_cv_ld_as_needed=yes
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26355 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26356 if test x"$gcc_cv_ld_as_needed" = xyes; then
26358 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26362 case "$target:$tm_file" in
26363 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26365 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26366 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26367 $as_echo_n "(cached) " >&6
26369 gcc_cv_ld_no_dot_syms=no
26370 if test $in_tree_ld = yes ; then
26371 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
26372 gcc_cv_ld_no_dot_syms=yes
26374 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26375 cat > conftest1.s <<EOF
26379 cat > conftest2.s <<EOF
26380 .section ".opd","aw"
26383 .type foo,@function
26385 .quad .LEfoo,.TOC.@tocbase,0
26391 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26392 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26393 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26394 gcc_cv_ld_no_dot_syms=yes
26396 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26401 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26402 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26404 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26409 $as_echo_n "checking linker large toc support... " >&6; }
26410 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26411 $as_echo_n "(cached) " >&6
26413 gcc_cv_ld_large_toc=no
26414 if test $in_tree_ld = yes ; then
26415 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26416 gcc_cv_ld_large_toc=yes
26418 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26419 cat > conftest.s <<EOF
26420 .section ".tbss","awT",@nobits
26426 addis 9,13,ie0@got@tprel@ha
26427 ld 9,ie0@got@tprel@l(9)
26429 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26430 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26431 gcc_cv_ld_large_toc=yes
26433 rm -f conftest conftest.o conftest.s
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26438 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26439 if test x"$gcc_cv_ld_large_toc" = xyes; then
26441 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26448 $as_echo_n "checking linker --build-id support... " >&6; }
26449 if test "${gcc_cv_ld_buildid+set}" = set; then :
26450 $as_echo_n "(cached) " >&6
26452 gcc_cv_ld_buildid=no
26453 if test $in_tree_ld = yes ; then
26454 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26455 "$gcc_cv_gld_minor_version" -ge 18 -o \
26456 "$gcc_cv_gld_major_version" -gt 2 \
26457 && test $in_tree_ld_is_elf = yes; then
26458 gcc_cv_ld_buildid=yes
26460 elif test x$gcc_cv_ld != x; then
26461 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26462 gcc_cv_ld_buildid=yes
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26467 $as_echo "$gcc_cv_ld_buildid" >&6; }
26468 if test x"$gcc_cv_ld_buildid" = xyes; then
26470 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26474 # Check whether --enable-linker-build-id was given.
26475 if test "${enable_linker_build_id+set}" = set; then :
26476 enableval=$enable_linker_build_id;
26478 enable_linker_build_id=no
26482 if test x"$enable_linker_build_id" = xyes; then
26483 if test x"$gcc_cv_ld_buildid" = xyes; then
26485 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26489 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26493 # In binutils 2.21, GNU ld gained support for new emulations fully
26494 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26496 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26497 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26500 gcc_cv_ld_sol2_emulation=no
26501 if test $in_tree_ld = yes ; then
26502 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26503 "$gcc_cv_gld_minor_version" -ge 21 -o \
26504 "$gcc_cv_gld_major_version" -gt 2 \
26505 && test $in_tree_ld_is_elf = yes; then
26506 gcc_cv_ld_sol2_emulation=yes
26508 elif test x$gcc_cv_ld != x; then
26509 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26510 grep _sol2 > /dev/null; then
26511 gcc_cv_ld_sol2_emulation=yes
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26516 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26517 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26519 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26524 $as_echo_n "checking linker --sysroot support... " >&6; }
26525 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26526 $as_echo_n "(cached) " >&6
26528 gcc_cv_ld_sysroot=no
26529 if test $in_tree_ld = yes ; then
26530 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
26531 gcc_cv_ld_sysroot=yes
26533 elif test x$gcc_cv_ld != x; then
26534 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26535 gcc_cv_ld_sysroot=yes
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26540 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26541 if test x"$gcc_cv_ld_sysroot" = xyes; then
26543 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26547 if test x$with_sysroot = x && test x$host = x$target \
26548 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26549 && test "$prefix" != "NONE"; then
26551 cat >>confdefs.h <<_ACEOF
26552 #define PREFIX_INCLUDE_DIR "$prefix/include"
26557 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26558 if test "x$with_headers" != x; then
26559 target_header_dir=$with_headers
26560 elif test "x$with_sysroot" = x; then
26561 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26562 elif test "x$with_build_sysroot" != "x"; then
26563 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26564 elif test "x$with_sysroot" = xyes; then
26565 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26567 target_header_dir="${with_sysroot}${native_system_header_dir}"
26570 target_header_dir=${native_system_header_dir}
26573 # Test for stack protector support in target C library.
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26575 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26576 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26577 $as_echo_n "(cached) " >&6
26579 gcc_cv_libc_provides_ssp=no
26581 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26582 # glibc 2.4 and later provides __stack_chk_fail and
26583 # either __stack_chk_guard, or TLS access to stack guard canary.
26584 if test -f $target_header_dir/features.h \
26585 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26586 $target_header_dir/features.h > /dev/null; then
26587 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26588 $target_header_dir/features.h > /dev/null; then
26589 gcc_cv_libc_provides_ssp=yes
26590 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26591 $target_header_dir/features.h > /dev/null \
26592 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26593 $target_header_dir/features.h > /dev/null; then
26594 gcc_cv_libc_provides_ssp=yes
26595 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26596 $target_header_dir/features.h > /dev/null && \
26597 test -f $target_header_dir/bits/uClibc_config.h && \
26598 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26599 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26600 gcc_cv_libc_provides_ssp=yes
26605 # Avoid complicated tests (see
26606 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26607 # simply assert that glibc does provide this, which is true for all
26608 # realistically usable GNU/Hurd configurations.
26609 gcc_cv_libc_provides_ssp=yes;;
26610 *-*-darwin* | *-*-freebsd*)
26611 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26612 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26613 gcc_cv_libc_provides_ssp=yes
26615 echo "no __stack_chk_fail on this target"
26619 *) gcc_cv_libc_provides_ssp=no ;;
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26623 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26625 if test x$gcc_cv_libc_provides_ssp = xyes; then
26627 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26631 # Test for <sys/sdt.h> on the target.
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26634 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26636 if test -f $target_header_dir/sys/sdt.h; then
26639 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26643 $as_echo "$have_sys_sdt_h" >&6; }
26645 # Check if TFmode long double should be used by default or not.
26646 # Some glibc targets used DFmode long double, but with glibc 2.4
26647 # and later they can use TFmode.
26649 powerpc*-*-linux* | \
26650 sparc*-*-linux* | \
26654 # Check whether --with-long-double-128 was given.
26655 if test "${with_long_double_128+set}" = set; then :
26656 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26658 gcc_cv_target_ldbl128=no
26659 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26660 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26661 && gcc_cv_target_ldbl128=yes
26667 if test x$gcc_cv_target_ldbl128 = xyes; then
26669 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26674 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26675 gcc_cv_target_dl_iterate_phdr=unknown
26678 # <link.h> needs both a dl_iterate_phdr declaration and support for
26679 # compilation with largefile support.
26680 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26681 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26682 gcc_cv_target_dl_iterate_phdr=yes
26684 gcc_cv_target_dl_iterate_phdr=no
26689 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26691 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26695 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26697 # Find out what GC implementation we want, or may, use.
26699 # Check whether --with-gc was given.
26700 if test "${with_gc+set}" = set; then :
26701 withval=$with_gc; case "$withval" in
26708 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26712 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26720 echo "Using $GGC for garbage collection."
26722 # Libraries to use on the host. This will normally be set by the top
26723 # level Makefile. Here we simply capture the value for our Makefile.
26724 if test -z "${HOST_LIBS+set}"; then
26729 # Use the system's zlib library.
26731 zlibinc="-I\$(srcdir)/../zlib"
26733 # Check whether --with-system-zlib was given.
26734 if test "${with_system_zlib+set}" = set; then :
26735 withval=$with_system_zlib; zlibdir=
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26745 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26746 # Check whether --enable-maintainer-mode was given.
26747 if test "${enable_maintainer_mode+set}" = set; then :
26748 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26755 $as_echo "$maintainer_mode" >&6; }
26757 if test "$maintainer_mode" = "yes"; then
26767 # Make empty files to contain the specs and options for each language.
26768 # Then add #include lines to for a compiler that has specs and/or options.
26774 # These (without "all_") are set in each config-lang.in.
26775 # `language' must be a single word so is spelled singularly.
26778 all_outputs='Makefile'
26779 # List of language makefile fragments.
26780 all_lang_makefrags=
26781 # Additional files for gengtype
26782 all_gtfiles="$target_gtfiles"
26784 # These are the languages that are set in --enable-languages,
26785 # and are available in the GCC tree.
26786 all_selected_languages=
26788 # Add the language fragments.
26789 # Languages are added via two mechanisms. Some information must be
26790 # recorded in makefile variables, these are defined in config-lang.in.
26791 # We accumulate them and plug them into the main Makefile.
26792 # The other mechanism is a set of hooks for each of the main targets
26793 # like `clean', `install', etc.
26795 language_hooks="Make-hooks"
26797 for lang in ${srcdir}/*/config-lang.in
26799 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26801 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26802 if test "x$lang_alias" = x
26804 echo "$lang doesn't set \$language." 1>&2
26807 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26808 subdirs="$subdirs $subdir"
26810 # $gcc_subdir is where the gcc integration files are to be found
26811 # for a language, both for internal compiler purposes (compiler
26812 # sources implementing front-end to GCC tree converters), and for
26813 # build infrastructure purposes (Make-lang.in, etc.)
26815 # This will be <subdir> (relative to $srcdir) if a line like
26816 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26817 # is found in <langdir>/config-lang.in, and will remain <langdir>
26820 # Except for the language alias (fetched above), the regular
26821 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26822 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26823 # only this and the language alias.
26825 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26826 if [ "$gcc_subdir" = "" ]; then
26827 gcc_subdir="$subdir"
26830 case ",$enable_languages," in
26832 all_selected_languages="$all_selected_languages $lang_alias"
26833 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26834 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26845 . ${srcdir}/$gcc_subdir/config-lang.in
26846 if test "x$language" = x
26848 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26853 case ",$enable_languages," in
26854 *,$lang_alias,*) ;;
26856 for i in $subdir_requires; do
26857 test -f "${srcdir}/$i/config-lang.in" && continue
26865 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26866 if test -f $srcdir/$gcc_subdir/lang.opt; then
26867 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26868 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26870 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26871 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26873 all_languages="$all_languages $language"
26874 all_compilers="$all_compilers $compilers"
26875 all_outputs="$all_outputs $outputs"
26876 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26877 case ",$enable_languages," in
26880 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26889 # Pick up gtfiles for c
26891 . ${srcdir}/c-config-lang.in
26892 all_gtfiles="$all_gtfiles [c] $gtfiles"
26895 for language in $all_selected_languages
26897 check_languages="$check_languages check-$language"
26900 # We link each language in with a set of hooks, reached indirectly via
26901 # lang.${target}. Only do so for selected languages.
26905 target_list="all.cross start.encap rest.encap tags \
26906 install-common install-man install-info install-pdf install-html dvi \
26907 pdf html uninstall info man srcextra srcman srcinfo \
26908 mostlyclean clean distclean maintainer-clean install-plugin"
26910 for t in $target_list
26913 for lang in $all_selected_languages
26917 echo "lang.$t: $x" >> Make-hooks
26921 # Option include files
26924 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26925 option_includes="option-includes.mk"
26934 echo "dir ." > .gdbinit
26935 echo "dir ${srcdir}" >> .gdbinit
26936 if test x$gdb_needs_out_file_path = xyes
26938 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26940 if test "x$subdirs" != x; then
26943 echo "dir ${srcdir}/$s" >> .gdbinit
26946 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26948 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26952 # Find a directory in which to install a shared libgcc.
26954 # Check whether --enable-version-specific-runtime-libs was given.
26955 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26956 enableval=$enable_version_specific_runtime_libs;
26961 # Check whether --with-slibdir was given.
26962 if test "${with_slibdir+set}" = set; then :
26963 withval=$with_slibdir; slibdir="$with_slibdir"
26965 if test "${enable_version_specific_runtime_libs+set}" = set; then
26966 slibdir='$(libsubdir)'
26967 elif test "$host" != "$target"; then
26968 slibdir='$(build_tooldir)/lib'
26970 slibdir='$(libdir)'
26976 # Substitute configuration variables
27044 if test x${build} = x${host} ; then
27045 if test x${host} = x${target} ; then
27046 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27048 echo "Links are now set up to build a cross-compiler" 1>&2
27049 echo " from ${host} to ${target}." 1>&2
27052 if test x${host} = x${target} ; then
27053 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27054 echo " for ${target}." 1>&2
27056 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27057 echo " from ${host} to ${target}." 1>&2
27069 if test "x${CLOOGLIBS}" != "x" ; then
27071 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27075 # Check for plugin support
27076 # Check whether --enable-plugin was given.
27077 if test "${enable_plugin+set}" = set; then :
27078 enableval=$enable_plugin; enable_plugin=$enableval
27080 enable_plugin=yes; default_plugin=yes
27088 if test x$build = x$host; then
27089 export_sym_check="nm${exeext} -g"
27090 elif test x$host = x$target; then
27091 export_sym_check="$gcc_cv_nm -g"
27097 if test x$build = x$host; then
27098 export_sym_check="objdump${exeext} -T"
27099 elif test x$host = x$target; then
27100 export_sym_check="$gcc_cv_objdump -T"
27107 if test x"$enable_plugin" = x"yes"; then
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27110 $as_echo_n "checking for exported symbols... " >&6; }
27111 if test "x$export_sym_check" != x; then
27112 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27113 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27114 if $export_sym_check conftest | grep foobar > /dev/null; then
27115 : # No need to use a flag
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27117 $as_echo "yes" >&6; }
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27120 $as_echo "yes" >&6; }
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27122 $as_echo_n "checking for -rdynamic... " >&6; }
27123 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27124 if $export_sym_check conftest | grep foobar > /dev/null; then
27125 plugin_rdynamic=yes
27126 pluginlibs="-rdynamic"
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27132 $as_echo "$plugin_rdynamic" >&6; }
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27136 $as_echo "unable to check" >&6; }
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27142 $as_echo_n "checking for library containing dlopen... " >&6; }
27143 if test "${ac_cv_search_dlopen+set}" = set; then :
27144 $as_echo_n "(cached) " >&6
27146 ac_func_search_save_LIBS=$LIBS
27147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27148 /* end confdefs.h. */
27150 /* Override any GCC internal prototype to avoid an error.
27151 Use char because int might match the return type of a GCC
27152 builtin and then its argument prototype would still apply. */
27165 for ac_lib in '' dl; do
27166 if test -z "$ac_lib"; then
27167 ac_res="none required"
27170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27172 if ac_fn_c_try_link "$LINENO"; then :
27173 ac_cv_search_dlopen=$ac_res
27175 rm -f core conftest.err conftest.$ac_objext \
27177 if test "${ac_cv_search_dlopen+set}" = set; then :
27181 if test "${ac_cv_search_dlopen+set}" = set; then :
27184 ac_cv_search_dlopen=no
27186 rm conftest.$ac_ext
27187 LIBS=$ac_func_search_save_LIBS
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27190 $as_echo "$ac_cv_search_dlopen" >&6; }
27191 ac_res=$ac_cv_search_dlopen
27192 if test "$ac_res" != no; then :
27193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27197 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27198 pluginlibs="$pluginlibs -ldl"
27202 # Check that we can build shared objects with -fPIC -shared
27203 saved_LDFLAGS="$LDFLAGS"
27204 saved_CFLAGS="$CFLAGS"
27207 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27208 CFLAGS="$CFLAGS -fPIC"
27209 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27212 CFLAGS="$CFLAGS -fPIC"
27213 LDFLAGS="$LDFLAGS -fPIC -shared"
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27217 $as_echo_n "checking for -fPIC -shared... " >&6; }
27218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27219 /* end confdefs.h. */
27229 if ac_fn_c_try_link "$LINENO"; then :
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27231 $as_echo "yes" >&6; }; have_pic_shared=yes
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27234 $as_echo "no" >&6; }; have_pic_shared=no
27236 rm -f core conftest.err conftest.$ac_objext \
27237 conftest$ac_exeext conftest.$ac_ext
27238 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27242 LDFLAGS="$saved_LDFLAGS"
27243 CFLAGS="$saved_CFLAGS"
27245 # If plugin support had been requested but not available, fail.
27246 if test x"$enable_plugin" = x"no" ; then
27247 if test x"$default_plugin" != x"yes"; then
27249 Building GCC with plugin support requires a host that supports
27250 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27257 if test x"$enable_plugin" = x"yes"; then
27259 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27264 # Check whether --enable-libquadmath-support was given.
27265 if test "${enable_libquadmath_support+set}" = set; then :
27266 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27268 ENABLE_LIBQUADMATH_SUPPORT=yes
27271 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27273 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27278 # Specify what hash style to use by default.
27280 # Check whether --with-linker-hash-style was given.
27281 if test "${with_linker_hash_style+set}" = set; then :
27282 withval=$with_linker_hash_style; case x"$withval" in
27284 LINKER_HASH_STYLE=sysv
27287 LINKER_HASH_STYLE=gnu
27290 LINKER_HASH_STYLE=both
27293 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27297 LINKER_HASH_STYLE=''
27300 if test x"${LINKER_HASH_STYLE}" != x; then
27302 cat >>confdefs.h <<_ACEOF
27303 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27308 # Configure the subdirectories
27309 # AC_CONFIG_SUBDIRS($subdirs)
27311 # Create the Makefile
27312 # and configure language subdirectories
27313 ac_config_files="$ac_config_files $all_outputs"
27316 ac_config_commands="$ac_config_commands default"
27318 cat >confcache <<\_ACEOF
27319 # This file is a shell script that caches the results of configure
27320 # tests run on this system so they can be shared between configure
27321 # scripts and configure runs, see configure's option --config-cache.
27322 # It is not useful on other systems. If it contains results you don't
27323 # want to keep, you may remove or edit it.
27325 # config.status only pays attention to the cache file if you give it
27326 # the --recheck option to rerun configure.
27328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27330 # following values.
27334 # The following way of writing the cache mishandles newlines in values,
27335 # but we know of no workaround that is simple, portable, and efficient.
27336 # So, we kill variables containing newlines.
27337 # Ultrix sh set writes to stderr and can't be redirected directly,
27338 # and sets the high bit in the cache file unless we assign to the vars.
27340 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27341 eval ac_val=\$$ac_var
27345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27349 _ | IFS | as_nl) ;; #(
27350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27351 *) { eval $ac_var=; unset $ac_var;} ;;
27357 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27358 *${as_nl}ac_space=\ *)
27359 # `set' does not quote correctly, so add quotes: double-quote
27360 # substitution turns \\\\ into \\, and sed turns \\ into \.
27363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27366 # `set' quotes correctly as required by POSIX, so do not add quotes.
27367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27376 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27378 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27380 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27381 if test -w "$cache_file"; then
27382 test "x$cache_file" != "x/dev/null" &&
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27384 $as_echo "$as_me: updating cache $cache_file" >&6;}
27385 cat confcache >$cache_file
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27388 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27394 # Let make expand exec_prefix.
27395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27397 DEFS=-DHAVE_CONFIG_H
27401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27402 # 1. Remove the extension, and $U if already installed.
27403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27404 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27406 # will be set to the directory where LIBOBJS objects are built.
27407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27410 LIBOBJS=$ac_libobjs
27412 LTLIBOBJS=$ac_ltlibobjs
27417 : ${CONFIG_STATUS=./config.status}
27419 ac_clean_files_save=$ac_clean_files
27420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27422 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27424 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27426 # Generated by $as_me.
27427 # Run this file to recreate the current configuration.
27428 # Compiler output produced by configure, useful for debugging
27429 # configure, is in config.log if it exists.
27432 ac_cs_recheck=false
27435 SHELL=\${CONFIG_SHELL-$SHELL}
27438 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27439 ## -------------------- ##
27440 ## M4sh Initialization. ##
27441 ## -------------------- ##
27443 # Be more Bourne compatible
27444 DUALCASE=1; export DUALCASE # for MKS sh
27445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27449 # is contrary to our usage. Disable this feature.
27450 alias -g '${1+"$@"}'='"$@"'
27451 setopt NO_GLOB_SUBST
27453 case `(set -o) 2>/dev/null` in #(
27465 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27466 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27469 # Prefer a ksh shell builtin over an external printf program on Solaris,
27470 # but without wasting forks for bash or zsh.
27471 if test -z "$BASH_VERSION$ZSH_VERSION" \
27472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27473 as_echo='print -r --'
27474 as_echo_n='print -rn --'
27475 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27476 as_echo='printf %s\n'
27477 as_echo_n='printf %s'
27479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27480 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27481 as_echo_n='/usr/ucb/echo -n'
27483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27484 as_echo_n_body='eval
27488 expr "X$arg" : "X\\(.*\\)$as_nl";
27489 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27491 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27493 export as_echo_n_body
27494 as_echo_n='sh -c $as_echo_n_body as_echo'
27496 export as_echo_body
27497 as_echo='sh -c $as_echo_body as_echo'
27500 # The user is always right.
27501 if test "${PATH_SEPARATOR+set}" != set; then
27503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27504 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27511 # We need space, tab and new line, in precisely that order. Quoting is
27512 # there to prevent editors from complaining about space-tab.
27513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27514 # splitting by setting IFS to empty value.)
27517 # Find who we are. Look in the path if we contain no directory separator.
27519 *[\\/]* ) as_myself=$0 ;;
27520 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27521 for as_dir in $PATH
27524 test -z "$as_dir" && as_dir=.
27525 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27531 # We did not find ourselves, most probably we were run as `sh COMMAND'
27532 # in which case we are not to be found in the path.
27533 if test "x$as_myself" = x; then
27536 if test ! -f "$as_myself"; then
27537 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27541 # Unset variables that we do not need and which cause bugs (e.g. in
27542 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27543 # suppresses any "Segmentation fault" message there. '((' could
27544 # trigger a bug in pdksh 5.2.14.
27545 for as_var in BASH_ENV ENV MAIL MAILPATH
27546 do eval test x\${$as_var+set} = xset \
27547 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27563 # as_fn_error ERROR [LINENO LOG_FD]
27564 # ---------------------------------
27565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27567 # script with status $?, using 1 if that was 0.
27570 as_status=$?; test $as_status -eq 0 && as_status=1
27572 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27573 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27575 $as_echo "$as_me: error: $1" >&2
27576 as_fn_exit $as_status
27580 # as_fn_set_status STATUS
27581 # -----------------------
27582 # Set $? to STATUS, without forking.
27583 as_fn_set_status ()
27586 } # as_fn_set_status
27588 # as_fn_exit STATUS
27589 # -----------------
27590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27594 as_fn_set_status $1
27600 # Portably unset VAR.
27603 { eval $1=; unset $1;}
27605 as_unset=as_fn_unset
27606 # as_fn_append VAR VALUE
27607 # ----------------------
27608 # Append the text in VALUE to the end of the definition contained in VAR. Take
27609 # advantage of any shell optimizations that allow amortized linear growth over
27610 # repeated appends, instead of the typical quadratic growth present in naive
27612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27613 eval 'as_fn_append ()
27624 # as_fn_arith ARG...
27625 # ------------------
27626 # Perform arithmetic evaluation on the ARGs, and store the result in the
27627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27628 # must be portable across $(()) and expr.
27629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27630 eval 'as_fn_arith ()
27637 as_val=`expr "$@" || test $? -eq 1`
27642 if expr a : '\(a\)' >/dev/null 2>&1 &&
27643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27649 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27650 as_basename=basename
27655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27661 as_me=`$as_basename -- "$0" ||
27662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27663 X"$0" : 'X\(//\)$' \| \
27664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27666 sed '/^.*\/\([^/][^/]*\)\/*$/{
27680 # Avoid depending upon Character Ranges.
27681 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27682 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27683 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27684 as_cr_digits='0123456789'
27685 as_cr_alnum=$as_cr_Letters$as_cr_digits
27687 ECHO_C= ECHO_N= ECHO_T=
27688 case `echo -n x` in #(((((
27690 case `echo 'xy\c'` in
27691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27693 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27700 rm -f conf$$ conf$$.exe conf$$.file
27701 if test -d conf$$.dir; then
27702 rm -f conf$$.dir/conf$$.file
27705 mkdir conf$$.dir 2>/dev/null
27707 if (echo >conf$$.file) 2>/dev/null; then
27708 if ln -s conf$$.file conf$$ 2>/dev/null; then
27710 # ... but there are two gotchas:
27711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27713 # In both cases, we have to default to `cp -p'.
27714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27716 elif ln conf$$.file conf$$ 2>/dev/null; then
27724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27725 rmdir conf$$.dir 2>/dev/null
27730 # Create "$as_dir" as a directory, including parents if necessary.
27735 -*) as_dir=./$as_dir;;
27737 test -d "$as_dir" || eval $as_mkdir_p || {
27741 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27742 *) as_qdir=$as_dir;;
27744 as_dirs="'$as_qdir' $as_dirs"
27745 as_dir=`$as_dirname -- "$as_dir" ||
27746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27747 X"$as_dir" : 'X\(//\)[^/]' \| \
27748 X"$as_dir" : 'X\(//\)$' \| \
27749 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27750 $as_echo X"$as_dir" |
27751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27755 /^X\(\/\/\)[^/].*/{
27768 test -d "$as_dir" && break
27770 test -z "$as_dirs" || eval "mkdir $as_dirs"
27771 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27775 if mkdir -p . 2>/dev/null; then
27776 as_mkdir_p='mkdir -p "$as_dir"'
27778 test -d ./-p && rmdir ./-p
27782 if test -x / >/dev/null 2>&1; then
27783 as_test_x='test -x'
27785 if ls -dL / >/dev/null 2>&1; then
27792 if test -d "$1"; then
27798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27799 ???[sx]*):;;*)false;;esac;fi
27803 as_executable_p=$as_test_x
27805 # Sed expression to map a string onto a valid CPP name.
27806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27808 # Sed expression to map a string onto a valid variable name.
27809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27813 ## ----------------------------------- ##
27814 ## Main body of $CONFIG_STATUS script. ##
27815 ## ----------------------------------- ##
27817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27820 # Save the log message, to keep $0 and so on meaningful, and to
27821 # report actual input values of CONFIG_FILES etc. instead of their
27822 # values after options handling.
27824 This file was extended by $as_me, which was
27825 generated by GNU Autoconf 2.64. Invocation command line was
27827 CONFIG_FILES = $CONFIG_FILES
27828 CONFIG_HEADERS = $CONFIG_HEADERS
27829 CONFIG_LINKS = $CONFIG_LINKS
27830 CONFIG_COMMANDS = $CONFIG_COMMANDS
27833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27838 case $ac_config_files in *"
27839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27842 case $ac_config_headers in *"
27843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 # Files that config.status was made for.
27849 config_files="$ac_config_files"
27850 config_headers="$ac_config_headers"
27851 config_commands="$ac_config_commands"
27855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27857 \`$as_me' instantiates files and other configuration actions
27858 from templates according to the current configuration. Unless the files
27859 and actions are specified as TAGs, all are instantiated by default.
27861 Usage: $0 [OPTION]... [TAG]...
27863 -h, --help print this help, then exit
27864 -V, --version print version number and configuration settings, then exit
27865 -q, --quiet, --silent
27866 do not print progress messages
27867 -d, --debug don't remove temporary files
27868 --recheck update $as_me by reconfiguring in the same conditions
27869 --file=FILE[:TEMPLATE]
27870 instantiate the configuration file FILE
27871 --header=FILE[:TEMPLATE]
27872 instantiate the configuration header FILE
27874 Configuration files:
27877 Configuration headers:
27880 Configuration commands:
27883 Report bugs to the package provider."
27886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27889 configured by $0, generated by GNU Autoconf 2.64,
27890 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27892 Copyright (C) 2009 Free Software Foundation, Inc.
27893 This config.status script is free software; the Free Software Foundation
27894 gives unlimited permission to copy, distribute and modify it."
27899 test -n "\$AWK" || AWK=awk
27902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27903 # The default lists apply if the user does not specify any file.
27909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27921 # Handling of the options.
27922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27925 $as_echo "$ac_cs_version"; exit ;;
27926 --debug | --debu | --deb | --de | --d | -d )
27928 --file | --fil | --fi | --f )
27931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27933 as_fn_append CONFIG_FILES " '$ac_optarg'"
27934 ac_need_defaults=false;;
27935 --header | --heade | --head | --hea )
27938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27940 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27941 ac_need_defaults=false;;
27943 # Conflict between --help and --header
27944 as_fn_error "ambiguous option: \`$1'
27945 Try \`$0 --help' for more information.";;
27946 --help | --hel | -h )
27947 $as_echo "$ac_cs_usage"; exit ;;
27948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27952 # This is an error.
27953 -*) as_fn_error "unrecognized option: \`$1'
27954 Try \`$0 --help' for more information." ;;
27956 *) as_fn_append ac_config_targets " $1"
27957 ac_need_defaults=false ;;
27963 ac_configure_extra_args=
27965 if $ac_cs_silent; then
27967 ac_configure_extra_args="$ac_configure_extra_args --silent"
27971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27972 if \$ac_cs_recheck; then
27973 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27975 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27976 CONFIG_SHELL='$SHELL'
27977 export CONFIG_SHELL
27982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27986 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27987 ## Running $as_me. ##
27993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28003 # Handling of arguments.
28004 for ac_config_target in $ac_config_targets
28006 case $ac_config_target in
28007 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28008 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28009 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28010 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28011 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28012 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28014 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28019 # If the user did not use the arguments to specify the items to instantiate,
28020 # then the envvar interface is used. Set only those that are not.
28021 # We use the long form for the default assignment because of an extremely
28022 # bizarre bug on SunOS 4.1.3.
28023 if $ac_need_defaults; then
28024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28029 # Have a temporary directory for convenience. Make it in the build tree
28030 # simply because there is no reason against having it here, and in addition,
28031 # creating and moving files from /tmp can sometimes cause problems.
28032 # Hook for its removal unless debugging.
28033 # Note that there is a small window in which the directory will not be cleaned:
28034 # after its creation but before its name has been assigned to `$tmp'.
28038 trap 'exit_status=$?
28039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28041 trap 'as_fn_exit 1' 1 2 13 15
28043 # Create a (secure) tmp directory for tmp files.
28046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28047 test -n "$tmp" && test -d "$tmp"
28050 tmp=./conf$$-$RANDOM
28051 (umask 077 && mkdir "$tmp")
28052 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28054 # Set up the scripts for CONFIG_FILES section.
28055 # No need to generate them if there are no CONFIG_FILES.
28056 # This happens for instance with `./config.status config.h'.
28057 if test -n "$CONFIG_FILES"; then
28059 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28060 ac_cs_awk_getline=:
28061 ac_cs_awk_pipe_init=
28062 ac_cs_awk_read_file='
28063 while ((getline aline < (F[key])) > 0)
28066 ac_cs_awk_pipe_fini=
28068 ac_cs_awk_getline=false
28069 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28070 ac_cs_awk_read_file='
28072 print "cat " F[key] " &&"
28073 '$ac_cs_awk_pipe_init
28074 # The final `:' finishes the AND list.
28075 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28077 ac_cr=`echo X | tr X '\015'`
28078 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28079 # But we know of no other shell where ac_cr would be empty at this
28080 # point, so we can use a bashism as a fallback.
28081 if test "x$ac_cr" = x; then
28082 eval ac_cr=\$\'\\r\'
28084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28088 ac_cs_awk_cr=$ac_cr
28091 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28094 # Create commands to substitute file output variables.
28096 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28097 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28098 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28101 } >conf$$files.sh &&
28102 . ./conf$$files.sh ||
28103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28104 rm -f conf$$files.sh
28107 echo "cat >conf$$subs.awk <<_ACEOF" &&
28108 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28110 } >conf$$subs.sh ||
28111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28112 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28114 for ac_last_try in false false false false false :; do
28115 . ./conf$$subs.sh ||
28116 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28118 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28119 if test $ac_delim_n = $ac_delim_num; then
28121 elif $ac_last_try; then
28122 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28127 rm -f conf$$subs.sh
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28130 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28134 s/^/S["/; s/!.*/"]=/
28144 s/\(.\{148\}\).*/\1/
28146 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28158 s/\(.\{148\}\).*/\1/
28160 s/["\\]/\\&/g; s/^/"/; s/$/"/
28164 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28169 ' <conf$$subs.awk | sed '
28174 ' >>$CONFIG_STATUS || ac_write_fail=1
28175 rm -f conf$$subs.awk
28176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28178 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28179 for (key in S) S_is_set[key] = 1
28181 \$ac_cs_awk_pipe_init
28185 nfields = split(line, field, "@")
28187 len = length(field[1])
28188 for (i = 2; i < nfields; i++) {
28190 keylen = length(key)
28191 if (S_is_set[key]) {
28193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28194 len += length(value) + length(field[++i])
28199 if (nfields == 3 && !substed) {
28201 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28202 \$ac_cs_awk_read_file
28208 \$ac_cs_awk_pipe_fini
28211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28212 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28216 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28217 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28222 # trailing colons and then remove the whole line if VPATH becomes empty
28223 # (actually we leave an empty line to preserve line numbers).
28224 if test "x$srcdir" = x.; then
28225 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28226 s/:*\$(srcdir):*/:/
28227 s/:*\${srcdir}:*/:/
28229 s/^\([^=]*=[ ]*\):*/\1/
28235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28236 fi # test -n "$CONFIG_FILES"
28238 # Set up the scripts for CONFIG_HEADERS section.
28239 # No need to generate them if there are no CONFIG_HEADERS.
28240 # This happens for instance with `./config.status Makefile'.
28241 if test -n "$CONFIG_HEADERS"; then
28242 cat >"$tmp/defines.awk" <<\_ACAWK ||
28246 # Transform confdefs.h into an awk script `defines.awk', embedded as
28247 # here-document in config.status, that substitutes the proper values into
28248 # config.h.in to produce config.h.
28250 # Create a delimiter string that does not exist in confdefs.h, to ease
28251 # handling of long lines.
28253 for ac_last_try in false false :; do
28254 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28255 if test -z "$ac_t"; then
28257 elif $ac_last_try; then
28258 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28264 # For the awk script, D is an array of macro values keyed by name,
28265 # likewise P contains macro parameters if any. Preserve backslash
28266 # newline sequences.
28268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28270 s/.\{148\}/&'"$ac_delim"'/g
28273 s/^[ ]*#[ ]*define[ ][ ]*/ /
28280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28287 D["\1"]=" \3\\\\\\n"\\/p
28289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28294 s/.\{148\}/&'"$ac_delim"'/g
28299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28304 ' <confdefs.h | sed '
28305 s/'"$ac_delim"'/"\\\
28306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28309 for (key in D) D_is_set[key] = 1
28312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28314 split(line, arg, " ")
28315 if (arg[1] == "#") {
28319 defundef = substr(arg[1], 2)
28322 split(mac1, mac2, "(") #)
28324 prefix = substr(line, 1, index(line, defundef) - 1)
28325 if (D_is_set[macro]) {
28326 # Preserve the white space surrounding the "#".
28327 print prefix "define", macro P[macro] D[macro]
28330 # Replace #undef with comments. This is necessary, for example,
28331 # in the case of _POSIX_SOURCE, which is predefined and required
28332 # on some systems where configure will not decide to define it.
28333 if (defundef == "undef") {
28334 print "/*", prefix defundef, macro, "*/"
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28343 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28344 fi # test -n "$CONFIG_HEADERS"
28347 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28352 :[FHLC]) ac_mode=$ac_tag; continue;;
28354 case $ac_mode$ac_tag in
28356 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28357 :[FH]-) ac_tag=-:-;;
28358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28375 -) ac_f="$tmp/stdin";;
28376 *) # Look for the file first in the build tree, then in the source tree
28377 # (if the path is not absolute). The absolute path cannot be DOS-style,
28378 # because $ac_f cannot contain `:'.
28382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28384 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28387 as_fn_append ac_file_inputs " '$ac_f'"
28390 # Let's still pretend it is `configure' which instantiates (i.e., don't
28391 # use $as_me), people would be surprised to read:
28392 # /* config.h. Generated by config.status. */
28393 configure_input='Generated from '`
28394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28396 if test x"$ac_file" != x-; then
28397 configure_input="$ac_file. $configure_input"
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28399 $as_echo "$as_me: creating $ac_file" >&6;}
28401 # Neutralize special characters interpreted by sed in replacement strings.
28402 case $configure_input in #(
28403 *\&* | *\|* | *\\* )
28404 ac_sed_conf_input=`$as_echo "$configure_input" |
28405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28406 *) ac_sed_conf_input=$configure_input;;
28410 *:-:* | *:-) cat >"$tmp/stdin" \
28411 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28416 ac_dir=`$as_dirname -- "$ac_file" ||
28417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28418 X"$ac_file" : 'X\(//\)[^/]' \| \
28419 X"$ac_file" : 'X\(//\)$' \| \
28420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28421 $as_echo X"$ac_file" |
28422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28426 /^X\(\/\/\)[^/].*/{
28439 as_dir="$ac_dir"; as_fn_mkdir_p
28443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28446 # A ".." for each directory in $ac_dir_suffix.
28447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28448 case $ac_top_builddir_sub in
28449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28453 ac_abs_top_builddir=$ac_pwd
28454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28455 # for backward compatibility:
28456 ac_top_builddir=$ac_top_build_prefix
28459 .) # We are building in place.
28461 ac_top_srcdir=$ac_top_builddir_sub
28462 ac_abs_top_srcdir=$ac_pwd ;;
28463 [\\/]* | ?:[\\/]* ) # Absolute name.
28464 ac_srcdir=$srcdir$ac_dir_suffix;
28465 ac_top_srcdir=$srcdir
28466 ac_abs_top_srcdir=$srcdir ;;
28467 *) # Relative name.
28468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28469 ac_top_srcdir=$ac_top_build_prefix$srcdir
28470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28484 # If the template does not know about datarootdir, expand it.
28485 # FIXME: This hack should be removed a few years after 2.60.
28486 ac_datarootdir_hack=; ac_datarootdir_seen=
28497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28498 *datarootdir*) ac_datarootdir_seen=yes;;
28499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28504 ac_datarootdir_hack='
28505 s&@datadir@&$datadir&g
28506 s&@docdir@&$docdir&g
28507 s&@infodir@&$infodir&g
28508 s&@localedir@&$localedir&g
28509 s&@mandir@&$mandir&g
28510 s&\\\${datarootdir}&$datarootdir&g' ;;
28514 # Neutralize VPATH when `$srcdir' = `.'.
28515 # Shell code in configure.ac might set extrasub.
28516 # FIXME: do we really want to maintain this feature?
28517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28518 ac_sed_extra="$ac_vpsub
28521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28524 s|@configure_input@|$ac_sed_conf_input|;t t
28525 s&@top_builddir@&$ac_top_builddir_sub&;t t
28526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28527 s&@srcdir@&$ac_srcdir&;t t
28528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28529 s&@top_srcdir@&$ac_top_srcdir&;t t
28530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28531 s&@builddir@&$ac_builddir&;t t
28532 s&@abs_builddir@&$ac_abs_builddir&;t t
28533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28534 $ac_datarootdir_hack
28536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28537 if $ac_cs_awk_getline; then
28538 $AWK -f "$tmp/subs.awk"
28540 $AWK -f "$tmp/subs.awk" | $SHELL
28542 || as_fn_error "could not create $ac_file" "$LINENO" 5
28544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28548 which seems to be undefined. Please make sure it is defined." >&5
28549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28550 which seems to be undefined. Please make sure it is defined." >&2;}
28554 -) cat "$tmp/out" && rm -f "$tmp/out";;
28555 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28557 || as_fn_error "could not create $ac_file" "$LINENO" 5
28563 if test x"$ac_file" != x-; then
28565 $as_echo "/* $configure_input */" \
28566 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28567 } >"$tmp/config.h" \
28568 || as_fn_error "could not create $ac_file" "$LINENO" 5
28569 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28571 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28574 mv "$tmp/config.h" "$ac_file" \
28575 || as_fn_error "could not create $ac_file" "$LINENO" 5
28578 $as_echo "/* $configure_input */" \
28579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28580 || as_fn_error "could not create -" "$LINENO" 5
28584 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28585 $as_echo "$as_me: executing $ac_file commands" >&6;}
28590 case $ac_file$ac_mode in
28591 "as":F) chmod +x as ;;
28592 "collect-ld":F) chmod +x collect-ld ;;
28593 "nm":F) chmod +x nm ;;
28595 case ${CONFIG_HEADERS} in
28596 *auto-host.h:config.in*)
28599 # Make sure all the subdirs exist.
28600 for d in $subdirs doc build common c-family
28602 test -d $d || mkdir $d
28612 ac_clean_files=$ac_clean_files_save
28614 test $ac_write_fail = 0 ||
28615 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28618 # configure is writing to config.log, and then calls config.status.
28619 # config.status does its own redirection, appending to config.log.
28620 # Unfortunately, on DOS this fails, as config.log is still kept open
28621 # by configure, so config.status won't be able to write to it; its
28622 # output is simply discarded. So we exec the FD to /dev/null,
28623 # effectively closing config.log, so it can be properly (re)opened and
28624 # appended to by config.status. When coming back to configure, we
28625 # need to make the FD available again.
28626 if test "$no_create" != yes; then
28628 ac_config_status_args=
28629 test "$silent" = yes &&
28630 ac_config_status_args="$ac_config_status_args --quiet"
28632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28635 # would make configure fail if this is the last instruction.
28636 $ac_cs_success || as_fn_exit $?
28638 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28640 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}